text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const c=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(r(s))try{s.call(this)}catch(o){e=o instanceof c?d(o.errors):[o]}if(l(i)){let t=-1,n=i.length;for(;++t<n;){const n=i[t];if(u(n))try{n.unsubscribe()}catch(o){e=e||[],o instanceof c?e=e.concat(d(o.errors)):e.push(o)}}}if(e)throw new c(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof c?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const r=new f(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,n,s){let i;super(),this._parentSubscriber=t;let o=this;r(e)?i=e:e&&(i=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),r(o.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(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}function v(...t){return w(t)}function w(t){return 0===t.length?y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(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(t){try{return this._subscribe(t)}catch(e){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:w(t)(this)}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=i.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const S=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class C extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class x extends f{constructor(t){super(t),this.destination=t}}let k=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new x(this)}lift(t){const e=new E(this,this);return e.operator=t,e}next(t){if(this.closed)throw new S;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].next(t)}}error(t){if(this.closed)throw new S;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new S;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new S;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new S;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new C(this,t))}asObservable(){const t=new _;return t.source=this,t}}return t.create=(t,e)=>new E(t,e),t})();class E extends k{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function T(t){return t&&"function"==typeof t.schedule}class A extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const I=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()};function R(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const O=R(),P=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function N(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const j=t=>{if(t&&"function"==typeof t[m])return r=t,t=>{const e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(P(t))return I(t);if(N(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[O])return e=t,t=>{const n=e[O]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var e,n,r};function U(t,e,n,r,s=new A(t,n,r)){if(!s.closed)return e instanceof _?e.subscribe(s):j(e)(s)}class D extends f{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function L(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new M(t,this.project,this.thisArg))}}class M extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function H(t,e){return new _(n=>{const r=new h;let s=0;return r.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function V(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new _(n=>{const r=new h;return r.add(e.schedule(()=>{const s=t[m]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(N(t))return function(t,e){return new _(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(P(t))return H(t,e);if(function(t){return t&&"function"==typeof t[O]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[O](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(j(t))}function $(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe($((n,r)=>V(t(n,r)).pipe(L((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new q(t,n)))}class q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends D{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const r=new A(this,e,n),s=this.destination;s.add(r);const i=U(this,t,void 0,void 0,r);i!==r&&s.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function B(t=Number.POSITIVE_INFINITY){return $(y,t)}function W(t,e){return e?H(t,e):new _(I(t))}function Z(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return T(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:B(e)(W(t,n))}function G(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new K(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class K extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class J extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new X(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return G()(this)}}const Y=(()=>{const t=J.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class X extends x{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function tt(t,e){return function(n){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new et(r,e));const s=Object.create(n,Y);return s.source=n,s.subjectFactory=r,s}}class et{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,r=this.subjectFactory(),s=n(r).subscribe(t);return s.add(e.subscribe(r)),s}}function nt(){return new k}function rt(t){return{toString:t}.toString()}function st(t,e,n){return rt(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=st("Inject",t=>({token:t})),ot=st("Optional"),at=st("Self"),lt=st("SkipSelf");var ut=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function ct(t){for(let e in t)if(t[e]===ct)return e;throw Error("Could not find renamed property on target object.")}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function pt(t){return ft(t,t[mt])||ft(t,t[wt])}function ft(t,e){return e&&e.token===t?e:null}function gt(t){return t&&(t.hasOwnProperty(yt)||t.hasOwnProperty(_t))?t[yt]:null}const mt=ct({"\u0275prov":ct}),yt=ct({"\u0275inj":ct}),vt=ct({"\u0275provFallback":ct}),wt=ct({ngInjectableDef:ct}),_t=ct({ngInjectorDef:ct});function bt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(bt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function St(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ct=ct({__forward_ref__:ct});function xt(t){return t.__forward_ref__=xt,t.toString=function(){return bt(this())},t}function kt(t){return"function"==typeof(e=t)&&e.hasOwnProperty(Ct)&&e.__forward_ref__===xt?t():t;var e}const Et="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,At="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,It="undefined"!=typeof global&&global,Rt=Et||It||Tt||At,Ot=ct({"\u0275cmp":ct}),Pt=ct({"\u0275dir":ct}),Nt=ct({"\u0275pipe":ct}),jt=ct({"\u0275mod":ct}),Ut=ct({"\u0275loc":ct}),Dt=ct({"\u0275fac":ct}),Lt=ct({__NG_ELEMENT_ID__:ct});class Ft{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Mt=new Ft("INJECTOR",-1),Ht={},Vt=/\n/gm,$t=ct({provide:String,useValue:ct});let qt,zt=void 0;function Bt(t){const e=zt;return zt=t,e}function Wt(t){const e=qt;return qt=t,e}function Zt(t,e=ut.Default){if(void 0===zt)throw new Error("inject() must be called from an injection context");return null===zt?Qt(t,void 0,e):zt.get(t,e&ut.Optional?null:void 0,e)}function Gt(t,e=ut.Default){return(qt||Zt)(kt(t),e)}function Qt(t,e,n){const r=pt(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ut.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${bt(t)}]`)}function Kt(t){const e=[];for(let n=0;n<t.length;n++){const r=kt(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=ut.Default;for(let e=0;e<r.length;e++){const s=r[e];s instanceof ot||"Optional"===s.ngMetadataName||s===ot?n|=ut.Optional:s instanceof lt||"SkipSelf"===s.ngMetadataName||s===lt?n|=ut.SkipSelf:s instanceof at||"Self"===s.ngMetadataName||s===at?n|=ut.Self:t=s instanceof it||s===it?s.token:s}e.push(Gt(t,n))}else e.push(Gt(r))}return e}class Jt{get(t,e=Ht){if(e===Ht){const e=new Error(`NullInjectorError: No provider for ${bt(t)}!`);throw e.name="NullInjectorError",e}return e}}class Yt{}class Xt{}function te(t,e){t.forEach(t=>Array.isArray(t)?te(t,e):e(t))}function ee(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ne(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const re=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),se=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),ie={},oe=[];let ae=0;function le(t){return rt(()=>{const e=t.type,n=e.prototype,r={},s={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===re.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||oe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||se.Emulated,id:"c",styles:t.styles||oe,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,a=t.pipes;return s.id+=ae++,s.inputs=pe(t.inputs,r),s.outputs=pe(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=i?()=>("function"==typeof i?i():i).map(ue):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(ce):null,s})}function ue(t){return ge(t)||function(t){return t[Pt]||null}(t)}function ce(t){return function(t){return t[Nt]||null}(t)}const he={};function de(t){const e={type:t.type,bootstrap:t.bootstrap||oe,declarations:t.declarations||oe,imports:t.imports||oe,exports:t.exports||oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&rt(()=>{he[t.id]=t.type}),e}function pe(t,e){if(null==t)return ie;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const fe=le;function ge(t){return t[Ot]||null}function me(t,e){return t.hasOwnProperty(Dt)?t[Dt]:null}function ye(t,e){const n=t[jt]||null;if(!n&&!0===e)throw new Error(`Type ${bt(t)} does not have '\u0275mod' property.`);return n}function ve(t){return Array.isArray(t)&&"object"==typeof t[1]}function we(t){return Array.isArray(t)&&!0===t[1]}function _e(t){return 0!=(8&t.flags)}function be(t){return 2==(2&t.flags)}function Se(t){return 1==(1&t.flags)}function Ce(t){return null!==t.template}function xe(t){return 0!=(512&t[2])}let ke=void 0;function Ee(t){return!!t.listen}const Te={createRenderer:(t,e)=>void 0!==ke?ke:"undefined"!=typeof document?document:void 0};function Ae(t){for(;Array.isArray(t);)t=t[0];return t}function Ie(t,e){return Ae(e[t.index])}function Re(t,e){return t.data[e+19]}function Oe(t,e){const n=e[t];return ve(n)?n:n[0]}function Pe(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ne(t){return 4==(4&t[2])}function je(t){return 128==(128&t[2])}function Ue(t,e){return null===t||null==e?null:t[e]}function De(t){t[18]=0}const Le={lFrame:tn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Fe(){return Le.bindingsEnabled}function Me(){return Le.lFrame.lView}function He(){return Le.lFrame.tView}function Ve(){return Le.lFrame.previousOrParentTNode}function $e(t,e){Le.lFrame.previousOrParentTNode=t,Le.lFrame.isParent=e}function qe(){return Le.lFrame.isParent}function ze(){return Le.checkNoChangesMode}function Be(t){Le.checkNoChangesMode=t}function We(){return Le.lFrame.bindingIndex++}function Ze(t,e){const n=Le.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ge(e)}function Ge(t){Le.lFrame.currentDirectiveIndex=t}function Qe(){return Le.lFrame.currentQueryIndex}function Ke(t){Le.lFrame.currentQueryIndex=t}function Je(t,e){const n=Xe();Le.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function Ye(t,e){const n=Xe(),r=t[1];Le.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function Xe(){const t=Le.lFrame,e=null===t?null:t.child;return null===e?tn(t):e}function tn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function en(){const t=Le.lFrame;return Le.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const nn=en;function rn(){const t=en();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function sn(){return Le.lFrame.selectedIndex}function on(t){Le.lFrame.selectedIndex=t}function an(){const t=Le.lFrame;return Re(t.tView,t.selectedIndex)}function ln(){Le.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function un(){Le.lFrame.currentNamespace=null}function cn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function hn(t,e,n){fn(t,e,3,n)}function dn(t,e,n,r){(3&t[2])===n&&fn(t,e,n,r)}function pn(t,e){let n=t[2];(3&n)===e&&(n&=1023,n+=1,t[2]=n)}function fn(t,e,n,r){const s=null!=r?r:-1;let i=0;for(let o=void 0!==r?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(i=e[o],null!=r&&i>=r)break}else e[o]<0&&(t[18]+=65536),(i<s||-1==s)&&(gn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function gn(t,e,n,r){const s=n[r]<0,i=n[r+1],o=t[s?-n[r]:n[r]];s?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,i.call(o)):i.call(o)}class mn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function yn(t,e,n){const r=Ee(t);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const o=n[s++],a=n[s++],l=n[s++];r?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=i,a=n[++s];wn(o)?r&&t.setProperty(e,o,a):r?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function vn(t){return 3===t||4===t||6===t}function wn(t){return 64===t.charCodeAt(0)}function _n(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?n=s:0===n||bn(t,n,s,null,-1===n||2===n?e[++r]:null)}}return t}function bn(t,e,n,r,s){let i=0,o=t.length;if(-1===e)o=-1;else for(;i<t.length;){const n=t[i++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=i-1;break}}}for(;i<t.length;){const e=t[i];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==s&&(t[i+1]=s));if(r===t[i+1])return void(t[i+2]=s)}i++,null!==r&&i++,null!==s&&i++}-1!==o&&(t.splice(o,0,e),i=o+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==s&&t.splice(i++,0,s)}function Sn(t){return-1!==t}function Cn(t){return 32767&t}function xn(t){return t>>16}function kn(t,e){let n=xn(t),r=e;for(;n>0;)r=r[15],n--;return r}function En(t){return"string"==typeof t?t:null==t?"":""+t}function Tn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():En(t)}const An=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Rt))();function In(t){return t instanceof Function?t():t}let Rn=!0;function On(t){const e=Rn;return Rn=t,e}let Pn=0;function Nn(t,e){const n=Un(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,jn(r.data,t),jn(e,null),jn(r.blueprint,null));const s=Dn(t,e),i=t.injectorIndex;if(Sn(s)){const t=Cn(s),n=kn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function jn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Un(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Dn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Ln(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[Lt]:n.charCodeAt(0)||0;null==r&&(r=n[Lt]=Pn++);const s=255&r,i=1<<s,o=64&s,a=32&s,l=e.data;128&s?o?a?l[t+7]|=i:l[t+6]|=i:a?l[t+5]|=i:l[t+4]|=i:o?a?l[t+3]|=i:l[t+2]|=i:a?l[t+1]|=i:l[t]|=i}(t,e,n)}function Fn(t,e,n,r=ut.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[Lt];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){Je(e,t);try{const t=s();if(null!=t||r&ut.Optional)return t;throw new Error(`No provider for ${Tn(n)}!`)}finally{nn()}}else if("number"==typeof s){if(-1===s)return new Bn(t,e);let i=null,o=Un(t,e),a=-1,l=r&ut.Host?e[16][6]:null;for((-1===o||r&ut.SkipSelf)&&(a=-1===o?Dn(t,e):e[o+8],zn(r,!1)?(i=e[1],o=Cn(a),e=kn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(qn(s,o,t.data)){const t=Hn(o,e,n,i,r,l);if(t!==Mn)return t}zn(r,e[1].data[o+8]===l)&&qn(s,o,e)?(i=t,o=Cn(a),e=kn(a,e)):o=-1}}}if(r&ut.Optional&&void 0===s&&(s=null),0==(r&(ut.Self|ut.Host))){const t=e[9],i=Wt(void 0);try{return t?t.get(n,s,r&ut.Optional):Qt(n,s,r&ut.Optional)}finally{Wt(i)}}if(r&ut.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Tn(n)}]`)}const Mn={};function Hn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=Vn(a,o,n,null==r?be(a)&&Rn:r!=o&&3===a.type,s&ut.Host&&i===a);return null!==l?$n(e,o,l,a):Mn}function Vn(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=65535&i,l=t.directiveStart,u=i>>16,c=s?a+u:t.directiveEnd;for(let h=r?a:a+u;h<c;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(s){const t=o[l];if(t&&Ce(t)&&t.type===n)return l}return null}function $n(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof mn){const o=s;if(o.resolving)throw new Error(`Circular dep for ${Tn(i[n])}`);const a=On(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Wt(o.injectImpl)),Je(t,r);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:s,doCheck:i}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{o.injectImpl&&Wt(l),On(a),o.resolving=!1,nn()}}return s}function qn(t,e,n){const r=64&t,s=32&t;let i;return i=128&t?r?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:r?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(i&1<<t)}function zn(t,e){return!(t&ut.Self||t&ut.Host&&e)}class Bn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Fn(this._tNode,this._lView,t,void 0,e)}}function Wn(t){return t.ngDebugContext}function Zn(t){return t.ngOriginalError}function Gn(t,...e){t.error(...e)}class Qn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Gn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Wn(t)?Wn(t):this._findContext(Zn(t)):null}_findOriginalError(t){let e=Zn(t);for(;e&&Zn(e);)e=Zn(e);return e}}class Kn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}let Jn=!0,Yn=!1;function Xn(){return Yn=!0,Jn}const tr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,er=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,nr=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}();function rr(t){const e=function(){const t=Me();return t&&t[12]}();return e?e.sanitize(nr.URL,t)||"":function(t,e){const n=function(t){return t instanceof Kn&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}(t,"URL")?(r=t)instanceof Kn?r.changingThisBreaksApplicationSecurity:r:(n=En(t),(n=String(n)).match(tr)||n.match(er)?n:(Xn()&&console.warn(`WARNING: sanitizing unsafe URL value ${n} (see http://g.co/ng/security#xss)`),"unsafe:"+n));var n,r}function sr(t,e){t.__ngContext__=e}function ir(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function or(){throw new Error("Cannot mix multi providers and regular providers")}function ar(t,e,n){let r=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===r||t.charCodeAt(s+n)<=32)return s}n=s+1}}function lr(t,e,n){let r=0;for(;r<t.length;){let s=t[r++];if(n&&"class"===s){if(s=t[r],-1!==ar(s.toLowerCase(),e,0))return!0}else if(1===s){for(;r<t.length&&"string"==typeof(s=t[r++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function ur(t){return 0===t.type&&"ng-template"!==t.tagName}function cr(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function hr(t,e,n){let r=4;const s=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(vn(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!cr(t,l,n)||""===l&&1===e.length){if(dr(r))return!1;o=!0}}else{const u=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!lr(t.attrs,u,n)){if(dr(r))return!1;o=!0}continue}const c=pr(8&r?"class":l,s,ur(t),n);if(-1===c){if(dr(r))return!1;o=!0;continue}if(""!==u){let t;t=c>i?"":s[c+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==ar(e,u,0)||2&r&&u!==t){if(dr(r))return!1;o=!0}}}}else{if(!o&&!dr(r)&&!dr(l))return!1;if(o&&dr(l))continue;o=!1,r=l|1&r}}return dr(r)||o}function dr(t){return 0==(1&t)}function pr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s<e.length;){const r=e[s];if(r===t)return s;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===r)break;if(0===r){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function fr(t,e,n=!1){for(let r=0;r<e.length;r++)if(hr(t,e[r],n))return!0;return!1}function gr(t,e){return t?":not("+e.trim()+")":e}function mr(t){let e=t[0],n=1,r=2,s="",i=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&r){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||dr(o)||(e+=gr(i,s),s=""),r=o,i=i||!dr(r);n++}return""!==s&&(e+=gr(i,s)),e}const yr={};function vr(t){const e=t[3];return we(e)?e[3]:e}function wr(t){_r(He(),Me(),sn()+t,ze())}function _r(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&hn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&dn(e,r,0,n)}on(n)}function br(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],i=n[r+1];if(-1!==i){const n=t.data[i];Ke(s),n.contentQueries(2,e[i],i)}}}function Sr(t,e,n){return Ee(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Cr(t,e,n,r,s,i,o,a,l,u){const c=e.blueprint.slice();return c[0]=s,c[2]=140|r,De(c),c[3]=c[15]=t,c[8]=n,c[10]=o||t&&t[10],c[11]=a||t&&t[11],c[12]=l||t&&t[12]||null,c[9]=u||t&&t[9]||null,c[6]=i,c[16]=2==e.type?t[16]:c,c}function xr(t,e,n,r,s,i){const o=n+19,a=t.data[o]||function(t,e,n,r,s,i){const o=Ve(),a=qe(),l=a?o:o&&o.parent,u=t.data[n]=Nr(0,l&&l!==e?l:null,r,n,s,i);return null===t.firstChild&&(t.firstChild=u),o&&(!a||null!=o.child||null===u.parent&&2!==o.type?a||(o.next=u):o.child=u),u}(t,e,o,r,s,i);return $e(a,!0),a}function kr(t,e,n){Ye(e,e[6]);try{const r=t.viewQuery;null!==r&&ns(1,r,n);const s=t.template;null!==s&&Ar(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&br(t,e),t.staticViewQueries&&ns(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)Jr(t,e[n])}(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,rn()}}function Er(t,e,n,r){const s=e[2];if(256==(256&s))return;Ye(e,e[6]);const i=ze();try{De(e),Le.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ar(t,e,n,2,r);const o=3==(3&s);if(!i)if(o){const n=t.preOrderCheckHooks;null!==n&&hn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&dn(e,n,0,null),pn(e,0)}if(function(t){let e=t[13];for(;null!==e;){let n;if(we(e)&&(n=e[2])>>1==-1){for(let t=9;t<e.length;t++){const n=e[t],r=n[1];je(n)&&Er(r,n,r.template,n[8])}0!=(1&n)&&Qr(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&br(t,e),!i)if(o){const n=t.contentCheckHooks;null!==n&&hn(e,n)}else{const n=t.contentHooks;null!==n&&dn(e,n,1),pn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,s=-1,i=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(i=0-o,on(i),r+=9+n[++t],s=r):r+=o:(null!==o&&(Ze(r,s),o(2,e[s])),s++)}}}finally{on(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Kr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&ns(2,l,r),!i)if(o){const n=t.viewCheckHooks;null!==n&&hn(e,n)}else{const n=t.viewHooks;null!==n&&dn(e,n,2),pn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73)}finally{rn()}}function Tr(t,e,n,r){const s=e[10],i=!ze(),o=Ne(e);try{i&&!o&&s.begin&&s.begin(),o&&kr(t,e,r),Er(t,e,n,r)}finally{i&&!o&&s.end&&s.end()}}function Ar(t,e,n,r,s){const i=sn();try{on(-1),2&r&&e.length>19&&_r(t,e,0,ze()),n(r,s)}finally{on(i)}}function Ir(t,e,n){Fe()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||Nn(n,e),sr(r,e);const o=n.initialInputs;for(let a=s;a<i;a++){const r=t.data[a],i=Ce(r);i&&Br(e,n,r);const l=$n(e,t,a,n);sr(l,e),null!==o&&Wr(0,a-s,l,r,0,o),i&&(Oe(n.index,e)[8]=l)}}(t,e,n,Ie(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,s=n.directiveEnd,i=t.expandoInstructions,o=t.firstCreatePass,a=n.index-19,l=Le.lFrame.currentDirectiveIndex;try{on(a);for(let n=r;n<s;n++){const r=t.data[n],s=e[n];Ge(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?Mr(r,s):o&&i.push(null)}}finally{on(-1),Ge(l)}}(t,e,n))}function Rr(t,e,n=Ie){const r=e.localNames;if(null!==r){let s=e.index+1;for(let i=0;i<r.length;i+=2){const o=r[i+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Or(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Pr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Pr(t,e,n,r,s,i,o,a,l,u){const c=19+r,h=c+s,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:yr);return n}(c,h);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:u,incompleteFirstPass:!1}}function Nr(t,e,n,r,s,i){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function jr(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const s=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,s):n[r]=[e,s]}return n}function Ur(t,e,n,r,s,i,o,a){const l=Ie(e,n);let u,c=e.inputs;var h;!a&&null!=c&&(u=c[r])?(as(t,n,u,r,s),be(e)&&function(t,e){const n=Oe(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,e.tagName||"",r):s,Ee(i)?i.setProperty(l,r,s):wn(r)||(l.setProperty?l.setProperty(r,s):l[r]=s))}function Dr(t,e,n,r){let s=!1;if(Fe()){const i=function(t,e,n){const r=t.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const o=r[i];fr(n,o.selectors,!1)&&(s||(s=[]),Ln(Nn(n,e),t,o.type),Ce(o)?(2&n.flags&&ir(n),Vr(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===r?null:{"":-1};if(null!==i){let r=0;s=!0,qr(n,t.data.length,i.length);for(let t=0;t<i.length;t++){const e=i[t];e.providersResolver&&e.providersResolver(e)}Hr(t,n,i.length);let a=!1,l=!1;for(let s=0;s<i.length;s++){const u=i[s];n.mergedAttrs=_n(n.mergedAttrs,u.hostAttrs),zr(t,e,u),$r(t.data.length-1,u,o),null!==u.contentQueries&&(n.flags|=8),null===u.hostBindings&&null===u.hostAttrs&&0===u.hostVars||(n.flags|=128),!a&&(u.onChanges||u.onInit||u.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-19),a=!0),l||!u.onChanges&&!u.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-19),l=!0),Lr(t,u),r+=u.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,s=e.attrs,i=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=r[l],n=t.inputs,u=null===s||ur(e)?null:Zr(n,s);i.push(u),o=jr(n,l,o),a=jr(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=i,e.inputs=o,e.outputs=a}(t,n),Fr(t,e,r)}o&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],s)}}}(n,r,o)}return n.mergedAttrs=_n(n.mergedAttrs,n.attrs),s}function Lr(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Fr(t,e,n){for(let r=0;r<n;r++)e.push(yr),t.blueprint.push(yr),t.data.push(null)}function Mr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Hr(t,e,n){const r=19-e.index,s=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,s,n)}function Vr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function $r(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ce(e)&&(n[""]=t)}}function qr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function zr(t,e,n){t.data.push(n);const r=n.factory||(n.factory=me(n.type)),s=new mn(r,Ce(n),null);t.blueprint.push(s),e.push(s)}function Br(t,e,n){const r=Ie(e,t),s=Or(n),i=t[10],o=Yr(t,Cr(t,s,null,n.onPush?64:16,r,e,i,i.createRenderer(r,n)));t[e.index]=o}function Wr(t,e,n,r,s,i){const o=i[e];if(null!==o){const t=r.setInput;for(let e=0;e<o.length;){const s=o[e++],i=o[e++],a=o[e++];null!==t?r.setInput(n,a,s,i):n[i]=a}}}function Zr(t,e){let n=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[r+1])),r+=2}else r+=2;else r+=4}return n}function Gr(t,e,n,r){return new Array(t,!0,-2,e,null,null,r,n,null)}function Qr(t,e){const n=t[5];for(let r=0;r<n.length;r++){const t=n[r],s=t[3][3][16];if(s!==e&&0==(16&s[2])){const e=t[1];Er(e,t,e.template,t[8])}}}function Kr(t,e){const n=Oe(e,t);if(je(n)&&80&n[2]){const t=n[1];Er(t,n,t.template,n[8])}}function Jr(t,e){const n=Oe(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),kr(r,n,n[8])}function Yr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Xr(t){for(;t;){t[2]|=64;const e=vr(t);if(xe(t)&&!e)return t;t=e}return null}function ts(t,e,n){const r=e[10];r.begin&&r.begin();try{Er(t,e,t.template,n)}catch(s){throw os(e,s),s}finally{r.end&&r.end()}}function es(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Pe(n),s=r[1];Tr(s,r,s.template,n)}}(t[8])}function ns(t,e,n){Ke(0),e(t,n)}const rs=(()=>Promise.resolve(null))();function ss(t){return t[7]||(t[7]=[])}function is(t){return t.cleanup||(t.cleanup=[])}function os(t,e){const n=t[9],r=n?n.get(Qn,null):null;r&&r.handleError(e)}function as(t,e,n,r,s){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=e[o],u=t.data[o];null!==u.setInput?u.setInput(l,s,r,a):l[a]=s}}function ls(t,e,n){const r=function(t,e){return Ae(e[t+19])}(e,t),s=t[11];Ee(s)?s.setValue(r,n):r.textContent=n}function us(t,e){const n=e[3];return-1===t.index?we(n)?n:null:n}function cs(t,e){const n=us(t,e);return n?bs(e[11],n[7]):null}function hs(t,e,n,r,s){if(null!=r){let i,o=!1;we(r)?i=r:ve(r)&&(o=!0,r=r[0]);const a=Ae(r);0===t&&null!==n?null==s?ws(e,n,a):vs(e,n,a,s||null):1===t&&null!==n?vs(e,n,a,s||null):2===t?function(t,e,n){const r=bs(t,e);r&&function(t,e,n,r){Ee(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==Ae(n)&&hs(e,t,r,i,s);for(let o=9;o<n.length;o++){const s=n[o];ks(s[1],s,t,e,r,i)}}(e,t,i,n,s)}}function ds(t,e,n,r){const s=cs(t.node,e);s&&ks(t,e,e[11],n?1:2,s,r)}function ps(t,e){const n=t[5],r=n.indexOf(e);n.splice(r,1)}function fs(t,e){if(t.length<=9)return;const n=9+e,r=t[n];if(r){const s=r[17];null!==s&&s!==t&&ps(s,r),e>0&&(t[n-1][4]=r[4]);const i=ne(t,9+e);ds(r[1],r,!1,null);const o=i[5];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function gs(t,e){if(!(256&e[2])){const n=e[11];Ee(n)&&n.destroyNode&&ks(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return ys(t[1],t);for(;e;){let n=null;if(ve(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ve(e)&&ys(e[1],e),e=ms(e,t);null===e&&(e=t),ve(e)&&ys(e[1],e),n=e&&e[4]}e=n}}(e)}}function ms(t,e){let n;return ve(t)&&(n=t[6])&&2===n.type?us(n,t):t[3]===e?null:t[3]}function ys(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];if(!(t instanceof mn)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const s=n[r+1],i="function"==typeof s?s(e):Ae(e[s]),o=t[n[r+2]],a=n[r+3];"boolean"==typeof a?i.removeEventListener(n[r],o,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Ee(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&we(e[3])){r!==e[3]&&ps(r,e);const n=e[5];null!==n&&n.detachView(t)}}}function vs(t,e,n,r){Ee(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function ws(t,e,n){Ee(t)?t.appendChild(e,n):e.appendChild(n)}function _s(t,e,n,r){null!==r?vs(t,e,n,r):ws(t,e,n)}function bs(t,e){return Ee(t)?t.parentNode(e):e.parentNode}function Ss(t,e,n,r){const s=function(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?cs(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ie(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==se.ShadowDom&&n!==se.Native)return null}return Ie(r,n)}(t,r,e);if(null!=s){const t=e[11],i=function(t,e){if(2===t.type){const n=us(t,e);return null===n?null:Cs(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Ie(t,e):null}(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)_s(t,s,n[e],i);else _s(t,s,n,i)}}function Cs(t,e){const n=9+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){const r=n.type;if(3===r)return Ie(n,e);if(0===r)return Cs(-1,e[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return t(e,r);{const t=e[n.index];return we(t)?Cs(-1,t):Ae(t)}}{const r=e[16],s=r[6],i=vr(r),o=s.projection[n.projection];return null!=o?t(i,o):t(e,n.next)}}return null}(t,r)}return e[7]}function xs(t,e,n,r,s,i,o){for(;null!=n;){const a=r[n.index],l=n.type;o&&0===e&&(a&&sr(Ae(a),r),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(xs(t,e,n.child,r,s,i,!1),hs(e,t,s,a,i)):1===l?Es(t,e,r,n,s,i):hs(e,t,s,a,i)),n=o?n.projectionNext:n.next}}function ks(t,e,n,r,s,i){xs(n,r,t.node.child,e,s,i,!1)}function Es(t,e,n,r,s,i){const o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)hs(e,t,s,a[l],i);else xs(t,e,a,o[3],s,i,!0)}function Ts(t,e,n){Ee(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function As(t,e,n){Ee(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Is{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,s,i=!1){for(;null!==r;){const o=n[r.index];if(null!==o&&s.push(Ae(o)),we(o))for(let e=9;e<o.length;e++){const n=o[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,s)}const a=r.type;if(4===a||5===a)t(e,n,r.child,s);else if(1===a){const e=n[16],i=e[6],o=vr(e);let a=i.projection[r.projection];null!==a&&null!==o&&t(o[1],o,a,s,!0)}r=i?r.projectionNext:r.next}return s}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}gs(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,ss(n=this._lView).push(r),e.firstCreatePass&&is(e).push(n[7].length-1,null)}markForCheck(){Xr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ts(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Be(!0);try{ts(t,e,n)}finally{Be(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,ks(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Rs extends Is{constructor(t){super(t),this._view=t}detectChanges(){es(this._view)}checkNoChanges(){!function(t){Be(!0);try{es(t)}finally{Be(!1)}}(this._view)}get context(){return null}}let Os,Ps,Ns;function js(t,e,n){return Os||(Os=class extends t{}),new Os(Ie(e,n))}function Us(t,e,n,r){return Ps||(Ps=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Cr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(e)),kr(e,n,t);const s=new Is(n);return s._tViewNode=n[6],s}}),0===n.type?new Ps(r,n,js(e,n,r)):null}function Ds(t,e,n,r){let s;Ns||(Ns=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return js(e,this._hostTNode,this._hostView)}get injector(){return new Bn(this._hostTNode,this._hostView)}get parentInjector(){const t=Dn(this._hostTNode,this._hostView),e=kn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=xn(t),s=e,i=e[6];for(;r>1;)s=s[15],i=s[6],r--;return i}(t,this._hostView,this._hostTNode);return Sn(t)&&null!=n?new Bn(n,e):new Bn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-9}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(Yt,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),we(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Ns(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,r){const s=9+r,i=n.length;r>0&&(n[s-1][4]=e),r<i-9?(e[4]=n[s],ee(n,9+r,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[5],r=e[3][3][16];16!=(16&r[2])&&e[16]!==r&&(t[2]|=1),null===n?t[5]=[e]:n.push(e)}(o,e);const a=e[5];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,s),ds(r,n,!0,Cs(s,this._lContainer)),t.attachToViewContainerRef(this),ee(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);(function(t,e){const n=fs(t,e);n&&gs(n[1],n)})(this._lContainer,e),ne(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=fs(this._lContainer,e);return n&&null!=ne(this._lContainer[8],e)?new Is(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=r[n.index];if(we(i))s=i,function(t,e){t[2]=-2}(s);else{let t;if(4===n.type)t=Ae(i);else if(t=r[11].createComment(""),xe(r)){const e=r[11],s=Ie(n,r);vs(e,bs(e,s),t,function(t,e){return Ee(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Ss(r[1],r,t,n);r[n.index]=s=Gr(i,r,t,n),Yr(r,s)}return new Ns(s,n,r)}let Ls=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Fs(),t})();const Fs=function(t=!1){return function(t,e,n){if(!n&&be(t)){const n=Oe(t.index,e);return new Is(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Is(e[16],e):null}(Ve(),Me(),t)},Ms=new Ft("Set Injector scope."),Hs={},Vs={},$s=[];let qs=void 0;function zs(){return void 0===qs&&(qs=new Jt),qs}function Bs(t,e=null,n=null,r){return new Ws(t,n,e||zs(),r)}class Ws{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&te(e,n=>this.processProvider(n,t,e)),te([t],t=>this.processInjectorType(t,[],s)),this.records.set(Mt,Gs(void 0,this));const i=this.records.get(Ms);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:bt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Ht,n=ut.Default){this.assertNotDestroyed();const r=Bt(this);try{if(!(n&ut.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Ft)&&pt(t);e=n&&this.injectableDefInScope(n)?Gs(Zs(t),Hs):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&ut.Self?zs():this.parent).get(t,e=n&ut.Optional&&e===Ht?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(bt(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=bt(e);if(Array.isArray(e))s=e.map(bt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):bt(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Vt,"\n  ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{Bt(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(bt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=kt(t)))return!1;let r=gt(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=gt(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{te(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];te(r,t=>this.processProvider(t,n,r||$s))}}this.injectorDefTypes.add(i),this.records.set(i,Gs(r.factory,Hs));const a=r.providers;if(null!=a&&!o){const e=t;te(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=Ks(t=kt(t))?t:kt(t&&t.provide);const s=function(t,e,n){return Qs(t)?Gs(void 0,t.useValue):Gs(function(t,e,n){let r=void 0;if(Ks(t)){const e=kt(t);return me(e)||Zs(e)}if(Qs(t))r=()=>kt(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...Kt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Gt(kt(t.useExisting));else{const s=kt(t&&(t.useClass||t.provide));if(s||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${bt(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return me(s)||Zs(s);r=()=>new s(...Kt(t.deps))}var s;return r}(t,e,n),Hs)}(t,e,n);if(Ks(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&or()}else{let e=this.records.get(r);e?void 0===e.multi&&or():(e=Gs(void 0,Hs,!0),e.factory=()=>Kt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===Vs?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(bt(t)):e.value===Hs&&(e.value=Vs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Zs(t){const e=pt(t),n=null!==e?e.factory:me(t);if(null!==n)return n;const r=gt(t);if(null!==r)return r.factory;if(t instanceof Ft)throw new Error(`Token ${bt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let r=0;r<t;r++)n.push("?");return n}(e);throw new Error(`Can't resolve all parameters for ${bt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[mt]||t[wt]||t[vt]&&t[vt]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Gs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Qs(t){return null!==t&&"object"==typeof t&&$t in t}function Ks(t){return"function"==typeof t}const Js=function(t,e,n){return function(t,e=null,n=null,r){const s=Bs(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Ys=(()=>{class t{static create(t,e){return Array.isArray(t)?Js(t,e,""):Js(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ht,t.NULL=new Jt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Gt(Mt)}),t.__NG_ELEMENT_ID__=-1,t})();const Xs=new Ft("AnalyzeForEntryComponents");let ti=new Map;const ei=new Set;function ni(t){return"string"==typeof t?t:t.text()}function ri(t,e){let n=t.styles,r=t.classes,s=0;for(let i=0;i<e.length;i++){const t=e[i];"number"==typeof t?s=t:1==s?r=St(r,t):2==s&&(n=St(n,t+": "+e[++i]+";"))}null!==n&&(t.styles=n),null!==r&&(t.classes=r)}let si=null;function ii(){if(!si){const t=Rt.Symbol;if(t&&t.iterator)si=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(si=n)}}}return si}function oi(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function ai(t){return!!li(t)&&(Array.isArray(t)||!(t instanceof Map)&&ii()in t)}function li(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ui(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function ci(t,e,n,r){const s=Me();return ui(s,We(),e)&&(He(),function(t,e,n,r,s,i){const o=Ie(t,e),a=e[11];if(null==r)Ee(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const e=null==s?En(r):s(r,t.tagName||"",n);Ee(a)?a.setAttribute(o,n,e,i):i?o.setAttributeNS(i,n,e):o.setAttribute(n,e)}}(an(),s,t,e,n,r)),ci}function hi(t,e,n,r){return ui(t,We(),n)?e+En(n)+r:yr}function di(t,e,n,r,s,i,o,a){const l=Me(),u=He(),c=t+19,h=u.firstCreatePass?function(t,e,n,r,s,i,o,a,l){const u=e.consts,c=xr(e,n[6],t,0,o||null,Ue(u,a));Dr(e,n,c,Ue(u,l)),cn(e,c);const h=c.tViews=Pr(2,-1,r,s,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u),d=Nr(0,null,2,-1,null,null);return d.injectorIndex=c.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,c),h.queries=e.queries.embeddedTView(c)),c}(t,u,l,e,n,r,s,i,o):u.data[c];$e(h,!1);const d=l[11].createComment("");Ss(u,l,d,h),sr(d,l),Yr(l,l[c]=Gr(d,l,d,h)),Se(h)&&Ir(u,l,h),null!=o&&Rr(l,h,a)}function pi(t,e=ut.Default){const n=Me();return null==n?Gt(t,e):Fn(Ve(),n,kt(t),e)}function fi(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const s=n[r];if(vn(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(s===e)return n[r+1];r+=2}}}return null}(Ve(),t)}function gi(){throw new Error("invalid")}function mi(t,e,n){const r=Me();return ui(r,We(),e)&&Ur(He(),an(),r,t,e,r[11],n,!1),mi}function yi(t,e,n,r,s){const i=s?"class":"style";as(t,n,e.inputs[i],i,r)}function vi(t,e,n,r){const s=Me(),i=He(),o=19+t,a=s[11],l=s[o]=Sr(e,a,Le.lFrame.currentNamespace),u=i.firstCreatePass?function(t,e,n,r,s,i,o){const a=e.consts,l=Ue(a,i),u=xr(e,n[6],t,3,s,l);return Dr(e,n,u,Ue(a,o)),null!==u.mergedAttrs&&ri(u,u.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,u),u}(t,i,s,0,e,n,r):i.data[o];$e(u,!0);const c=u.mergedAttrs;null!==c&&yn(a,l,c);const h=u.classes;null!==h&&As(a,l,h);const d=u.styles;null!==d&&Ts(a,l,d),Ss(i,s,l,u),0===Le.lFrame.elementDepthCount&&sr(l,s),Le.lFrame.elementDepthCount++,Se(u)&&(Ir(i,s,u),function(t,e,n){if(_e(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}(i,u,s)),null!==r&&Rr(s,u)}function wi(){let t=Ve();qe()?Le.lFrame.isParent=!1:(t=t.parent,$e(t,!1));const e=t;Le.lFrame.elementDepthCount--;const n=He();n.firstCreatePass&&(cn(n,t),_e(t)&&n.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&yi(n,e,Me(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&yi(n,e,Me(),e.styles,!1)}function _i(t,e,n,r){vi(t,e,n,r),wi()}function bi(t){return!!t&&"function"==typeof t.then}function Si(t,e,n=!1,r){const s=Me(),i=He(),o=Ve();return function(t,e,n,r,s,i,o=!1,a){const l=Se(r),u=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),c=ss(e);let h=!0;if(3===r.type){const d=Ie(r,e),p=a?a(d):ie,f=p.target||d,g=c.length,m=a?t=>a(Ae(t[r.index])).target:r.index;if(Ee(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const t=s[i];if(t===n&&s[i+1]===r){const t=e[7],n=s[i+2];return t.length>n?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=xi(r,e,i,!1);const t=n.listen(p.name||f,s,i);c.push(i,t),u&&u.push(s,m,g,g+1)}}else i=xi(r,e,i,!0),f.addEventListener(s,i,o),c.push(i),u&&u.push(s,m,g,o)}const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(i),o=c.length;c.push(i,t),u&&u.push(s,r.index,o,-(o+1))}}}(i,s,s[11],o,t,e,n,r),Si}function Ci(t,e,n){try{return!1!==e(n)}catch(r){return os(t,r),!1}}function xi(t,e,n,r){return function s(i){if(i===Function)return n;const o=2&t.flags?Oe(t.index,e):e;0==(32&e[2])&&Xr(o);let a=Ci(e,n,i),l=s.__ngNextListenerFn__;for(;l;)a=Ci(e,l,i)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function ki(t=1){return function(t){return(Le.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Le.lFrame.contextLView))[8]}(t)}function Ei(t,e,n,r,s){const i=Me(),o=hi(i,e,n,r);return o!==yr&&Ur(He(),an(),i,t,o,i[11],s,!1),Ei}function Ti(t,e=""){const n=Me(),r=He(),s=t+19,i=r.firstCreatePass?xr(r,n[6],t,3,null,null):r.data[s],o=n[s]=function(t,e){return Ee(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ss(r,n,o,i),$e(i,!1)}function Ai(t){return Ii("",t,""),Ai}function Ii(t,e,n){const r=Me(),s=hi(r,t,e,n);return s!==yr&&ls(r,sn(),s),Ii}function Ri(t,e,n,r,s){const i=Me(),o=function(t,e,n,r,s,i){const o=function(t,e,n,r){const s=ui(t,e,n);return ui(t,e+1,r)||s}(t,Le.lFrame.bindingIndex,n,s);return function(t){const e=Le.lFrame;e.bindingIndex=e.bindingIndex+2}(),o?e+En(n)+r+En(s)+i:yr}(i,t,e,n,r,s);return o!==yr&&ls(i,sn(),o),Ri}function Oi(t,e,n){const r=Me();return ui(r,We(),e)&&Ur(He(),an(),r,t,e,r[11],n,!0),Oi}function Pi(t,e){const n=Pe(t)[1],r=n.data.length-1;cn(n,{directiveStart:r,directiveEnd:r+1})}class Ni{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ji(t){t.type.prototype.ngOnChanges&&(t.setInput=Ui,t.onChanges=function(){const t=Di(this),e=t&&t.current;if(e){const n=t.previous;if(n===ie)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function Ui(t,e,n,r){const s=Di(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ie,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new Ni(l&&l.currentValue,e,o===ie),t[r]=e}function Di(t){return t.__ngSimpleChanges__||null}ji.ngInherit=!0;class Li{}class Fi{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${bt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Mi=(()=>{class t{}return t.NULL=new Fi,t})(),Hi=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Vi(t),t})();const Vi=function(t){return js(t,Ve(),Me())};class $i{}const qi=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let zi=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Bi(),t})();const Bi=function(){const t=Me(),e=Oe(Ve().index,t);return function(t){const e=t[11];if(Ee(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(ve(e)?e:t)};let Wi=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class Zi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Gi=new Zi("9.1.4");class Qi{constructor(){}supports(t){return ai(t)}create(t){return new Ji(t)}}const Ki=(t,e)=>e;class Ji{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ki}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex<eo(n,r,s)?e:n,o=eo(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{s||(s=[]);const t=o-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;e<=i&&i<t&&(s[n]=r+1)}s[i.previousIndex]=e-t}}o!==a&&t(i,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!ai(t))throw new Error(`Error trying to diff '${bt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,s=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==s&&oi(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,e)),oi(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,e),i=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[ii()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==s&&oi(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),oi(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(oi(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(oi(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new Yi(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new to),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new to),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Yi{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Xi{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&oi(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class to{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Xi,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eo(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+e+s}class no{constructor(){}supports(t){return t instanceof Map||li(t)}create(){return new ro}}class ro{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||li(t)))throw new Error(`Error trying to diff '${bt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new so(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){oi(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class so{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let io=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lt,new ot]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new Qi])}),t})(),oo=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lt,new ot]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new no])}),t})();const ao=[new no],lo=new io([new Qi]),uo=new oo(ao);let co=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ho(t,Hi),t})();const ho=function(t,e){return Us(t,e,Ve(),Me())};let po=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>fo(t,Hi),t})();const fo=function(t,e){return Ds(t,e,Ve(),Me())},go={};class mo extends Mi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ge(t);return new wo(e,this.ngModule)}}function yo(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const vo=new Ft("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>An});class wo extends Li{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(mr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return yo(this.componentDef.inputs)}get outputs(){return yo(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,go,s);return i!==go||r===go?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get($i,Te),o=s.get(Wi,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(Ee(t))return t.selectRootElement(e,n===se.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Sr(l,i.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:An,clean:rs,playerHandler:null,flags:0},p=Pr(0,-1,null,1,0,null,null,null,null,null),f=Cr(null,p,d,c,null,null,i,a,o,s);let g,m;Ye(f,null);try{const t=function(t,e,n,r,s,i){const o=n[1];n[19]=t;const a=xr(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ri(a,l),null!==t&&(yn(s,t,l),null!==a.classes&&As(s,t,a.classes),null!==a.styles&&Ts(s,t,a.styles)));const u=r.createRenderer(t,e),c=Cr(n,Or(e),null,e.onPush?64:16,n[19],a,r,u,void 0);return o.firstCreatePass&&(Ln(Nn(a,n),o,e.type),Vr(o,a),qr(a,n.length,1)),Yr(n,c),n[19]=c}(u,this.componentDef,f,i,a);if(u)if(n)yn(a,u,["ng-version",Gi.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r<t.length;){let i=t[r];if("string"==typeof i)2===s?""!==i&&e.push(i,t[++r]):8===s&&n.push(i);else{if(!dr(s))break;s=i}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&yn(a,u,t),e&&e.length>0&&As(a,u,e.join(" "))}m=Re(f[1],0),e&&(m.projection=e.map(t=>Array.from(t))),g=function(t,e,n,r,s){const i=n[1],o=function(t,e,n){const r=Ve();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Hr(t,r,1),zr(t,e,n));const s=$n(e,t,e.length-1,r);sr(s,e);const i=Ie(r,e);return i&&sr(i,e),s}(i,n,e);r.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=Ve();if(i.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){on(a.index-19);const t=n[1];Lr(t,e),Fr(t,n,e.hostVars),Mr(e,o)}return o}(t,this.componentDef,f,d,[Pi]),kr(p,f,null)}finally{rn()}const y=new _o(this.componentType,g,js(Hi,m,f),f,m);return n&&!h||(y.hostView._tViewNode.child=m),y}}class _o extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Rs(r),this.hostView._tViewNode=function(t,e,n,r){let s=t.node;return null==s&&(t.node=s=Nr(0,null,2,-1,null,null)),r[6]=s}(r[1],0,0,r),this.componentType=t}get injector(){return new Bn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const bo=void 0;var So=["en",[["a","p"],["AM","PM"],bo],[["AM","PM"],bo,bo],[["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"]],bo,[["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"]],bo,[["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}",bo,"{1} 'at' {0}",bo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Co={};function xo(t){return t in Co||(Co[t]=Rt.ng&&Rt.ng.common&&Rt.ng.common.locales&&Rt.ng.common.locales[t]),Co[t]}const ko=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let Eo="en-US";function To(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Eo=t.toLowerCase().replace(/_/g,"-"))}const Ao=new Map;class Io extends Yt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new mo(this);const n=ye(t),r=t[Ut]||null;r&&To(r),this._bootstrapComponents=In(n.bootstrap),this._r3Injector=Bs(t,e,[{provide:Yt,useValue:this},{provide:Mi,useValue:this.componentFactoryResolver}],bt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ys.THROW_IF_NOT_FOUND,n=ut.Default){return t===Ys||t===Yt||t===Mt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ro extends Xt{constructor(t){super(),this.moduleType=t,null!==ye(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${bt(e)} vs ${bt(e.name)}`)})(t,Ao.get(t),e),Ao.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Io(this.moduleType,t)}}function Oo(t,e,n,r){return function(t,e,n,r,s,i){const o=e+n;return ui(t,o,s)?function(t,e,n){return t[e]=n}(t,o+1,i?r.call(i,s):r(s)):function(t,e){const n=t[e];return n===yr?void 0:n}(t,o+1)}(Me(),function(){const t=Le.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),t,e,n,r)}class Po extends k{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,s=t=>null,i=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(i=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return t instanceof h&&t.add(o),o}}function No(){return this._results[ii()]()}class jo{constructor(){this.dirty=!0,this._results=[],this.changes=new Po,this.length=0;const t=ii(),e=jo.prototype;e[t]||(e[t]=No)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?(n===e&&(n=e.slice(0,r)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Uo{constructor(t){this.queryList=t,this.matches=null}clone(){return new Uo(this.queryList)}setDirty(){this.queryList.setDirty()}}class Do{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new Do(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Wo(t,e).matches&&this.queries[e].setDirty()}}class Lo{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class Fo{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,r);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new Fo(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Mo{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Mo(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let r=0;r<n.length;r++)this.matchTNodeWithReadOption(t,e,Ho(e,n[r]))}else{const n=this.metadata.predicate;n===co?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Vn(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Hi||r===po||r===co&&0===e.type)this.addMatch(e.index,-2);else{const n=Vn(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Ho(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Vo(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?js(Hi,t,e):0===t.type?Us(co,Hi,t,e):null}(e,t):-2===n?function(t,e,n){return n===Hi?js(Hi,e,t):n===co?Us(co,Hi,e,t):n===po?Ds(po,Hi,e,t):void 0}(t,e,r):$n(t,t[1],n,e)}function $o(t,e,n,r){const s=e[5].queries[r];if(null===s.matches){const r=t.data,i=n.matches,o=[];for(let t=0;t<i.length;t+=2){const s=i[t];o.push(s<0?null:Vo(e,r[s],i[t+1],n.metadata.read))}s.matches=o}return s.matches}function qo(t){const e=Me(),n=He(),r=Qe();Ke(r+1);const s=Wo(n,r);if(t.dirty&&Ne(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const i=s.crossesNgTemplate?function t(e,n,r,s){const i=e.queries.getByIndex(r),o=i.matches;if(null!==o){const a=$o(e,n,i,r);for(let e=0;e<o.length;e+=2){const r=o[e];if(r>0)s.push(a[e/2]);else{const i=o[e+1],a=n[-r];for(let e=9;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,i,s)}if(null!==a[5]){const e=a[5];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,i,s)}}}}}return s}(n,e,r,[]):$o(n,e,s,r);t.reset(i),t.notifyOnChanges()}return!0}return!1}function zo(t,e,n,r){!function(t,e,n,r,s,i,o,a){t.firstCreatePass&&(function(t,e,n){null===t.queries&&(t.queries=new Fo),t.queries.track(new Mo(e,n))}(t,new Lo(n,r,!1,s),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),function(t,e){const n=new jo;!function(t,e,n,r){const s=ss(e);s.push(n),t.firstCreatePass&&is(t).push(r,s.length-1)}(t,e,n,n.destroy),null===e[5]&&(e[5]=new Do),e[5].queries.push(new Uo(n))}(t,e)}(He(),Me(),e,n,r,0,Ve(),t)}function Bo(){return t=Me(),e=Qe(),t[5].queries[e].queryList;var t,e}function Wo(t,e){return t.queries.getByIndex(e)}const Zo=new Ft("Application Initializer");let Go=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();bi(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Gt(Zo,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Qo=new Ft("AppId"),Ko={provide:Qo,useFactory:function(){return`${Jo()}${Jo()}${Jo()}`},deps:[]};function Jo(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Yo=new Ft("Platform Initializer"),Xo=new Ft("Platform ID"),ta=new Ft("appBootstrapListener");let ea=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const na=new Ft("LocaleId"),ra=new Ft("DefaultCurrencyCode");class sa{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ia=function(t){return new Ro(t)},oa=ia,aa=function(t){return Promise.resolve(ia(t))},la=function(t){const e=ia(t),n=In(ye(t).declarations).reduce((t,e)=>{const n=ge(e);return n&&t.push(new wo(n)),t},[]);return new sa(e,n)},ua=la,ca=function(t){return Promise.resolve(la(t))};let ha=(()=>{class t{constructor(){this.compileModuleSync=oa,this.compileModuleAsync=aa,this.compileModuleAndAllComponentsSync=ua,this.compileModuleAndAllComponentsAsync=ca}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const da=new Ft("compilerOptions"),pa=(()=>Promise.resolve(0))();function fa(t){"undefined"==typeof Zone?pa.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ga{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Po(!1),this.onMicrotaskEmpty=new Po(!1),this.onStable=new Po(!1),this.onError=new Po(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Rt.requestAnimationFrame,e=Rt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Rt,()=>{t.lastRequestAnimationFrameId=-1,wa(t),va(t)}),wa(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,i,o,a)=>{try{return _a(t),n.invokeTask(s,i,o,a)}finally{e&&"eventTask"===i.type&&e(),ba(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return _a(t),e.invoke(r,s,i,o,a)}finally{ba(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,wa(t),va(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ga.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ga.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,ya,ma,ma);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function ma(){}const ya={};function va(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function wa(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function _a(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ba(t){t._nesting--,va(t)}class Sa{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Po,this.onMicrotaskEmpty=new Po,this.onStable=new Po,this.onError=new Po}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let Ca=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ga.assertNotInAngularZone(),fa(()=>{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())fa(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Gt(ga))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),xa=(()=>{class t{constructor(){this._applications=new Map,Ta.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ta.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class ka{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Ea,Ta=new ka,Aa=function(t,e,n){const r=t.get(da,[]).concat(e),s=new Ro(n);if(0===ti.size)return Promise.resolve(s);const i=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(r.map(t=>t.providers));if(0===i.length)return Promise.resolve(s);const o=function(){const t=Rt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=Ys.create({providers:i}).get(o.ResourceLoader);return function(t){const e=[],n=new Map;function r(t){let e=n.get(t);if(!e){const r=(t=>Promise.resolve(a.get(t)))(t);n.set(t,e=r.then(ni))}return e}return ti.forEach((t,n)=>{const s=[];t.templateUrl&&s.push(r(t.templateUrl).then(e=>{t.template=e}));const i=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;i&&i.forEach((e,n)=>{o.push(""),s.push(r(e).then(r=>{o[a+n]=r,i.splice(i.indexOf(e),1),0==i.length&&(t.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>function(t){ei.delete(t)}(n));e.push(l)}),ti=new Map,Promise.all(e).then(()=>{})}().then(()=>s)};const Ia=new Ft("AllowMultipleToken");class Ra{constructor(t,e){this.name=t,this.token=e}}function Oa(t,e,n=[]){const r=`Platform: ${e}`,s=new Ft(r);return(e=[])=>{let i=Pa();if(!i||i.injector.get(Ia,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ms,useValue:"platform"});!function(t){if(Ea&&!Ea.destroyed&&!Ea.injector.get(Ia,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ea=t.get(Na);const e=t.get(Yo,null);e&&e.forEach(t=>t())}(Ys.create({providers:t,name:r}))}return function(t){const e=Pa();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Pa(){return Ea&&!Ea.destroyed?Ea:null}let Na=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Sa:("zone.js"===t?void 0:t)||new ga({enableLongStackTrace:Xn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:ga,useValue:n}];return n.run(()=>{const e=Ys.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(Qn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Da(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return bi(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(Go);return t.runInitializers(),t.donePromise.then(()=>(To(s.injector.get(na,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=ja({},e);return Aa(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Ua);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${bt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Gt(Ys))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function ja(t,e){return Array.isArray(e)?e.reduce(ja,t):Object.assign(Object.assign({},t),e)}let Ua=(()=>{class t{constructor(t,e,n,r,s,i){this._zone=t,this._console=e,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=Xn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{ga.assertNotInAngularZone(),fa(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ga.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Z(o,a.pipe(t=>G()(tt(nt)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Li?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Yt),s=n.create(Ys.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(Ca,null);return i&&s.injector.get(xa).registerApplication(s.location.nativeElement,i),this._loadComponent(s),Xn()&&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");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Da(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ta,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Da(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Gt(ga),Gt(ea),Gt(Ys),Gt(Qn),Gt(Mi),Gt(Go))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Da(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class La{}class Fa{}const Ma={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ha=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ma}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>Va(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>Va(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Gt(ha),Gt(Fa,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Va(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const $a=Oa(null,"core",[{provide:Xo,useValue:"unknown"},{provide:Na,deps:[Ys]},{provide:xa,deps:[]},{provide:ea,deps:[]}]),qa=[{provide:Ua,useClass:Ua,deps:[ga,ea,Ys,Qn,Mi,Go]},{provide:vo,deps:[ga],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Go,useClass:Go,deps:[[new ot,Zo]]},{provide:ha,useClass:ha,deps:[]},Ko,{provide:io,useFactory:function(){return lo},deps:[]},{provide:oo,useFactory:function(){return uo},deps:[]},{provide:na,useFactory:function(t){return To(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(na),new ot,new lt]]},{provide:ra,useValue:"USD"}];let za=(()=>{class t{constructor(t){}}return t.\u0275mod=de({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Gt(Ua))},providers:qa}),t})(),Ba=null;function Wa(){return Ba}const Za=new Ft("DocumentToken");let Ga=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:Qa,token:t,providedIn:"platform"}),t})();function Qa(){return Gt(Ja)}const Ka=new Ft("Location Initialized");let Ja=(()=>{class t extends Ga{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Wa().getLocation(),this._history=Wa().getHistory()}getBaseHrefFromDOM(){return Wa().getBaseHref(this._doc)}onPopState(t){Wa().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Wa().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Ya()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Ya()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Gt(Za))},t.\u0275prov=ht({factory:Xa,token:t,providedIn:"platform"}),t})();function Ya(){return!!window.history.pushState}function Xa(){return new Ja(Gt(Za))}function tl(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function el(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function nl(t){return t&&"?"!==t[0]?"?"+t:t}let rl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:sl,token:t,providedIn:"root"}),t})();function sl(t){const e=Gt(Za).location;return new ol(Gt(Ga),e&&e.origin||"")}const il=new Ft("appBaseHref");let ol=(()=>{class t extends rl{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return tl(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+nl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+nl(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+nl(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Gt(Ga),Gt(il,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),al=(()=>{class t extends rl{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=tl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+nl(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+nl(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Gt(Ga),Gt(il,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),ll=(()=>{class t{constructor(t,e){this._subject=new Po,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=el(cl(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+nl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,cl(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+nl(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+nl(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Gt(rl),Gt(Ga))},t.normalizeQueryParams=nl,t.joinWithSlash=tl,t.stripTrailingSlash=el,t.\u0275prov=ht({factory:ul,token:t,providedIn:"root"}),t})();function ul(){return new ll(Gt(rl),Gt(Ga))}function cl(t){return t.replace(/\/index.html$/,"")}const hl=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}();class dl{}let pl=(()=>{class t extends dl{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=xo(e);if(n)return n;const r=e.split("-")[0];if(n=xo(r),n)return n;if("en"===r)return So;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[ko.PluralCase]}(e||this.locale)(t)){case hl.Zero:return"zero";case hl.One:return"one";case hl.Two:return"two";case hl.Few:return"few";case hl.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Gt(na))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function fl(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}class gl{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ml=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Xn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new gl(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new yl(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new yl(t,s);e.push(i)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(pi(po),pi(co),pi(io))},t.\u0275dir=fe({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class yl{constructor(t,e){this.record=t,this.view=e}}let vl=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new wl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){_l("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_l("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(pi(po),pi(co))},t.\u0275dir=fe({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class wl{constructor(){this.$implicit=null,this.ngIf=null}}function _l(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${bt(e)}'.`)}let bl=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(pi(Hi),pi(oo),pi(zi))},t.\u0275dir=fe({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Sl=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:dl,useClass:pl}]}),t})();function Cl(t){return"browser"===t}let xl=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new kl(Gt(Za),window,Gt(Qn))}),t})();class kl{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class El extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new El,Ba||(Ba=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Al||(Al=document.querySelector("base"),Al)?Al.getAttribute("href"):null;return null==e?null:(n=e,Tl||(Tl=document.createElement("a")),Tl.setAttribute("href",n),"/"===Tl.pathname.charAt(0)?Tl.pathname:"/"+Tl.pathname);var n}resetBaseElement(){Al=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return fl(document.cookie,t)}}let Tl,Al=null;const Il=new Ft("TRANSITION_ID"),Rl=[{provide:Zo,useFactory:function(t,e,n){return()=>{n.get(Go).donePromise.then(()=>{const n=Wa();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Il,Za,Ys],multi:!0}];class Ol{static init(){var t;t=new Ol,Ta=t}addToWindow(t){Rt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Rt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Rt.getAllAngularRootElements=()=>t.getAllRootElements(),Rt.frameworkStabilizers||(Rt.frameworkStabilizers=[]),Rt.frameworkStabilizers.push(t=>{const e=Rt.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Wa().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Pl=new Ft("EventManagerPlugins");let Nl=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Pl),Gt(ga))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class jl{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Wa().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let Ul=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Dl=(()=>{class t extends Ul{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Wa().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Za))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ll={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/"},Fl=/%COMP%/g;function Ml(t,e,n){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?Ml(t,s,n):(s=s.replace(Fl,t),n.push(s))}return n}function Hl(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Vl=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new $l(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case se.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new ql(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case se.Native:case se.ShadowDom:return new zl(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Ml(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Gt(Nl),Gt(Dl),Gt(Qo))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class $l{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Ll[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=Ll[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Ll[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&qi.DashCase?t.style.setProperty(e,n,r&qi.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&qi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Hl(n)):this.eventManager.addEventListener(t,e,Hl(n))}}class ql extends $l{constructor(t,e,n,r){super(t),this.component=n;const s=Ml(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Fl,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Fl,t)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class zl extends $l{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===se.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ml(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const t=document.createElement("style");t.textContent=s[i],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Bl=(()=>{class t extends jl{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Za))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Wl=["alt","control","meta","shift"],Zl={"\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"},Gl={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"},Ql={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Kl=(()=>{class t extends jl{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),i=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wa().onAndCancel(e,s.domEventName,i))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(Wl.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Gl.hasOwnProperty(e)&&(e=Gl[e]))}return Zl[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Wl.forEach(r=>{r!=n&&(0,Ql[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Gt(Za))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Jl=Oa($a,"browser",[{provide:Xo,useValue:"browser"},{provide:Yo,useValue:function(){El.makeCurrent(),Ol.init()},multi:!0},{provide:Za,useFactory:function(){return function(t){ke=t}(document),document},deps:[]}]),Yl=[[],{provide:Ms,useValue:"root"},{provide:Qn,useFactory:function(){return new Qn},deps:[]},{provide:Pl,useClass:Bl,multi:!0,deps:[Za,ga,Xo]},{provide:Pl,useClass:Kl,multi:!0,deps:[Za]},[],{provide:Vl,useClass:Vl,deps:[Nl,Dl,Qo]},{provide:$i,useExisting:Vl},{provide:Ul,useExisting:Dl},{provide:Dl,useClass:Dl,deps:[Za]},{provide:Ca,useClass:Ca,deps:[ga]},{provide:Nl,useClass:Nl,deps:[Pl,ga]},[]];let Xl=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Qo,useValue:e.appId},{provide:Il,useExisting:Qo},Rl]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Gt(t,12))},providers:Yl,imports:[Sl,za]}),t})();function tu(...t){let e=t[t.length-1];return T(e)?(t.pop(),H(t,e)):W(t)}function eu(t,e){return $(t,e,1)}function nu(t,e){return function(n){return n.lift(new ru(t,e))}}"undefined"!=typeof window&&window;class ru{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new su(t,this.predicate,this.thisArg))}}class su extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class iu{}class ou{}class au{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+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(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof au?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new au;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof au?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class lu{encodeKey(t){return uu(t)}encodeValue(t){return uu(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function uu(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class cu{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new lu,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new cu({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function hu(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function du(t){return"undefined"!=typeof Blob&&t instanceof Blob}function pu(t){return"undefined"!=typeof FormData&&t instanceof FormData}class fu{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||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 au),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new cu,this.urlWithParams=e}serializeBody(){return null===this.body?null:hu(this.body)||du(this.body)||pu(this.body)||"string"==typeof this.body?this.body:this.body instanceof cu?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||pu(this.body)?null:du(this.body)?this.body.type||null:hu(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof cu?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,i=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new fu(e,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}const gu=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class mu{constructor(t,e=200,n="OK"){this.headers=t.headers||new au,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class yu extends mu{constructor(t={}){super(t),this.type=gu.ResponseHeader}clone(t={}){return new yu({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class vu extends mu{constructor(t={}){super(t),this.type=gu.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new vu({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class wu extends mu{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function _u(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let bu=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof fu)r=t;else{let s=void 0;s=n.headers instanceof au?n.headers:new au(n.headers);let i=void 0;n.params&&(i=n.params instanceof cu?n.params:new cu({fromObject:n.params})),r=new fu(t,e,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=tu(r).pipe(eu(t=>this.handler.handle(t)));if(t instanceof fu||"events"===n.observe)return s;const i=s.pipe(nu(t=>t instanceof vu));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return i.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return i.pipe(L(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return i.pipe(L(t=>t.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new cu).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,_u(n,e))}post(t,e,n={}){return this.request("POST",t,_u(n,e))}put(t,e,n={}){return this.request("PUT",t,_u(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Gt(iu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Su{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Cu=new Ft("HTTP_INTERCEPTORS");let xu=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const ku=/^\)\]\}',?\n/;class Eu{}let Tu=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Au=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new _(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new au(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new yu({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(ku,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=t,u&&(u=!1,l={error:c,text:l})}}u?(e.next(new vu({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new wu({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new wu({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const u=r=>{l||(e.next(i()),l=!0);let s={type:gu.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},c=t=>{let n={type:gu.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),e.next({type:gu.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Gt(Eu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Iu=new Ft("XSRF_COOKIE_NAME"),Ru=new Ft("XSRF_HEADER_NAME");class Ou{}let Pu=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=fl(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Gt(Za),Gt(Xo),Gt(Iu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Nu=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Ou),Gt(Ru))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),ju=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Cu,[]);this.chain=t.reduceRight((t,e)=>new Su(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(ou),Gt(Ys))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Uu=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Nu,useClass:xu}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Iu,useValue:e.cookieName}:[],e.headerName?{provide:Ru,useValue:e.headerName}:[]]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Nu,{provide:Cu,useExisting:Nu,multi:!0},{provide:Ou,useClass:Pu},{provide:Iu,useValue:"XSRF-TOKEN"},{provide:Ru,useValue:"X-XSRF-TOKEN"}]}),t})(),Du=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[bu,{provide:iu,useClass:ju},Au,{provide:ou,useExisting:Au},Tu,{provide:Eu,useExisting:Tu}],imports:[[Uu.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class Lu extends k{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}next(t){super.next(this._value=t)}}const Fu=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Mu={};class Hu{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Vu(t,this.resultSelector))}}class Vu extends D{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Mu),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(U(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,r,s){const i=this.values,o=this.toRespond?i[n]===Mu?--this.toRespond:this.toRespond:0;i[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const $u=new _(t=>t.complete());function qu(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):$u}function zu(t){return new _(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?V(n):qu()).subscribe(e)})}function Bu(){return B(1)}const Wu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Zu(t){return function(e){return 0===t?qu():e.lift(new Gu(t))}}class Gu{constructor(t){if(this.total=t,this.total<0)throw new Wu}call(t,e){return e.subscribe(new Qu(t,this.total))}}class Qu extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(r[s])}}t.complete()}}function Ku(t=Xu){return e=>e.lift(new Ju(t))}class Ju{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Yu(t,this.errorFactory))}}class Yu extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Xu(){return new Fu}function tc(t=null){return e=>e.lift(new ec(t))}class ec{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new nc(t,this.defaultValue))}}class nc extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function rc(t,e){const n=arguments.length>=2;return r=>r.pipe(t?nu((e,n)=>t(e,n,r)):y,Zu(1),n?tc(e):Ku(()=>new Fu))}function sc(t){return function(e){const n=new ic(t),r=e.lift(n);return n.caught=r}}class ic{constructor(t){this.selector=t}call(t,e){return e.subscribe(new oc(t,this.selector,this.caught))}}class oc extends D{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new A(this,void 0,void 0);this.add(r);const s=U(this,n,void 0,void 0,r);s!==r&&this.add(s)}}}function ac(t){return e=>0===t?qu():e.lift(new lc(t))}class lc{constructor(t){if(this.total=t,this.total<0)throw new Wu}call(t,e){return e.subscribe(new uc(t,this.total))}}class uc extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function cc(t,e){const n=arguments.length>=2;return r=>r.pipe(t?nu((e,n)=>t(e,n,r)):y,ac(1),n?tc(e):Ku(()=>new Fu))}class hc{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new dc(t,this.predicate,this.thisArg,this.source))}}class dc extends f{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function pc(t,e){return"function"==typeof e?n=>n.pipe(pc((n,r)=>V(t(n,r)).pipe(L((t,s)=>e(n,t,r,s))))):e=>e.lift(new fc(t))}class fc{constructor(t){this.project=t}call(t,e){return e.subscribe(new gc(t,this.project))}}class gc extends D{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new A(this,e,n),i=this.destination;i.add(s),this.innerSubscription=U(this,t,void 0,void 0,s),this.innerSubscription!==s&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,s){this.destination.next(e)}}function mc(...t){return Bu()(tu(...t))}function yc(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new vc(t,e,n))}}class vc{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new wc(t,this.accumulator,this.seed,this.hasSeed))}}class wc extends f{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function _c(){}function bc(t,e,n){return function(r){return r.lift(new Sc(t,e,n))}}class Sc{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Cc(t,this.nextOrObserver,this.error,this.complete))}}class Cc extends f{constructor(t,e,n,s){super(t),this._tapNext=_c,this._tapError=_c,this._tapComplete=_c,this._tapError=n||_c,this._tapComplete=s||_c,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||_c,this._tapError=e.error||_c,this._tapComplete=e.complete||_c)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class xc{constructor(t){this.callback=t}call(t,e){return e.subscribe(new kc(t,this.callback))}}class kc extends f{constructor(t,e){super(t),this.add(new h(e))}}class Ec{constructor(t,e){this.id=t,this.url=e}}class Tc extends Ec{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ac extends Ec{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ic extends Ec{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Rc extends Ec{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Oc extends Ec{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pc extends Ec{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nc extends Ec{constructor(t,e,n,r,s){super(t,e),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 jc extends Ec{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Uc extends Ec{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dc{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Lc{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Fc{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mc{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hc{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vc{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $c{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let qc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&_i(0,"router-outlet")},directives:function(){return[Gd]},encapsulation:2}),t})();class zc{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Bc(t){return new zc(t)}function Wc(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Zc(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const s={};for(let i=0;i<r.length;i++){const e=r[i],n=t[i];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:s}}class Gc{constructor(t,e){this.routes=t,this.module=e}}function Qc(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Kc(r,Jc(e,r))}}function Kc(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': 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(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&Qc(t.children,e)}function Jc(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Yc(t){const e=t.children&&t.children.map(Yc),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=qc),n}function Xc(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(s=n[i],!th(t[s],e[s]))return!1;return!0}function th(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function eh(t){return Array.prototype.concat.apply([],t)}function nh(t){return t.length>0?t[t.length-1]:null}function rh(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function sh(t){return(e=t)&&"function"==typeof e.subscribe?t:bi(t)?V(Promise.resolve(t)):tu(t);var e}function ih(t,e,n){return n?function(t,e){return Xc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!uh(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>th(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,s){if(n.segments.length>s.length)return!!uh(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!uh(n.segments,s))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!uh(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,i)}}(e,n,n.segments)}(t.root,e.root)}class oh{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Bc(this.queryParams)),this._queryParamMap}toString(){return ph.serialize(this)}}class ah{constructor(t,e){this.segments=t,this.children=e,this.parent=null,rh(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fh(this)}}class lh{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Bc(this.parameters)),this._parameterMap}toString(){return _h(this)}}function uh(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function ch(t,e){let n=[];return rh(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),rh(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class hh{}class dh{parse(t){const e=new kh(t);return new oh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return fh(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return rh(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=ch(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${fh(e)}/(${n.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${mh(e)}=${mh(t)}`).join("&"):`${mh(e)}=${mh(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const ph=new dh;function fh(t){return t.segments.map(t=>_h(t)).join("/")}function gh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mh(t){return gh(t).replace(/%3B/gi,";")}function yh(t){return gh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function vh(t){return decodeURIComponent(t)}function wh(t){return vh(t.replace(/\+/g,"%20"))}function _h(t){return`${yh(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${yh(t)}=${yh(e[t])}`).join("")}`;var e}const bh=/^[^\/()?;=#]+/;function Sh(t){const e=t.match(bh);return e?e[0]:""}const Ch=/^[^=?&#]+/,xh=/^[^?&#]+/;class kh{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ah([],{}):new ah([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new ah(t,e)),n}parseSegment(){const t=Sh(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new lh(vh(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Sh(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Sh(this.remaining);t&&(n=t,this.capture(n))}t[vh(e)]=vh(n)}parseQueryParam(t){const e=function(t){const e=t.match(Ch);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(xh);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=wh(e),s=wh(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Sh(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(":")):t&&(s="primary");const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new ah([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Eh{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Th(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Th(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ah(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ah(t,this._root).map(t=>t.value)}}function Th(t,e){if(t===e.value)return e;for(const n of e.children){const e=Th(t,n);if(e)return e}return null}function Ah(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Ah(t,n);if(r.length)return r.unshift(e),r}return[]}class Ih{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Rh(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Oh extends Eh{constructor(t,e){super(t),this.snapshot=e,Lh(this,t)}toString(){return this.snapshot.toString()}}function Ph(t,e){const n=function(t,e){const n=new Uh([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Dh("",new Ih(n,[]))}(t,e),r=new Lu([new lh("",{})]),s=new Lu({}),i=new Lu({}),o=new Lu({}),a=new Lu(""),l=new Nh(r,s,o,a,i,"primary",e,n.root);return l.snapshot=n.root,new Oh(new Ih(l,[]),n)}class Nh{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(L(t=>Bc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>Bc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jh(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Uh{constructor(t,e,n,r,s,i,o,a,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,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=Bc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Bc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Dh extends Eh{constructor(t,e){super(e),this.url=t,Lh(this,e)}toString(){return Fh(this._root)}}function Lh(t,e){e.value._routerState=t,e.children.forEach(e=>Lh(t,e))}function Fh(t){const e=t.children.length>0?` { ${t.children.map(Fh).join(", ")} } `:"";return`${t.value}${e}`}function Mh(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Xc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Xc(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Xc(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Xc(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Hh(t,e){var n,r;return Xc(t.params,e.params)&&uh(n=t.url,r=e.url)&&n.every((t,e)=>Xc(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Hh(t.parent,e.parent))}function Vh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function $h(t,e,n,r,s){let i={};return r&&rh(r,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new oh(n.root===t?e:function t(e,n,r){const s={};return rh(e.children,(e,i)=>{s[i]=e===n?r:t(e,n,r)}),new ah(e.segments,s)}(n.root,t,e),i,s)}class qh{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Vh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==nh(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zh{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Bh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Wh(t,e,n){if(t||(t=new ah([],{})),0===t.segments.length&&t.hasChildren())return Zh(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(r>=n.length)return i;const e=t.segments[s],o=Bh(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Jh(o,a,e))return i;r+=2}else{if(!Jh(o,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new ah(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new ah(t.segments.slice(r.pathIndex),t.children),Zh(e,0,s)}return r.match&&0===s.length?new ah(t.segments,{}):r.match&&!t.hasChildren()?Gh(t,e,n):r.match?Zh(t,0,s):Gh(t,e,n)}function Zh(t,e,n){if(0===n.length)return new ah(t.segments,{});{const r=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),s={};return rh(r,(n,r)=>{null!==n&&(s[r]=Wh(t.children[r],e,n))}),rh(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new ah(t.segments,s)}}function Gh(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const t=Qh(n[s].outlets);return new ah(r,t)}if(0===s&&Vh(n[0])){r.push(new lh(t.segments[e].path,n[0])),s++;continue}const i=Bh(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&Vh(o)?(r.push(new lh(i,Kh(o))),s+=2):(r.push(new lh(i,{})),s++)}return new ah(r,{})}function Qh(t){const e={};return rh(t,(t,n)=>{null!==t&&(e[n]=Gh(new ah([],{}),0,t))}),e}function Kh(t){const e={};return rh(t,(t,n)=>e[n]=`${t}`),e}function Jh(t,e,n){return t==n.path&&Xc(e,n.parameters)}class Yh{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Mh(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Rh(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),rh(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=Rh(t),s=t.value.component?n.children:e;rh(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=Rh(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new Vc(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Mc(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(Mh(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Xh(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Xh(t){Mh(t.value),t.children.forEach(Xh)}function td(t){return"function"==typeof t}function ed(t){return t instanceof oh}class nd{constructor(t){this.segmentGroup=t||null}}class rd{constructor(t){this.urlTree=t}}function sd(t){return new _(e=>e.error(new nd(t)))}function id(t){return new _(e=>e.error(new rd(t)))}function od(t){return new _(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class ad{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Yt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(L(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(sc(t=>{if(t instanceof rd)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof nd)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(L(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(sc(t=>{if(t instanceof nd)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new ah([],{primary:t}):t;return new oh(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(L(t=>new ah([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return tu({});const n=[],r=[],s={};return rh(t,(t,i)=>{const o=e(i,t).pipe(L(t=>s[i]=t));"primary"===i?n.push(o):r.push(o)}),tu.apply(null,n.concat(r)).pipe(Bu(),rc(),L(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,i){return tu(...n).pipe(L(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,s,i).pipe(sc(t=>{if(t instanceof nd)return tu(null);throw t}))),Bu(),cc(t=>!!t),sc((t,n)=>{if(t instanceof Fu||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return tu(new ah([],{}));throw new nd(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return hd(r)!==i?sd(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):sd(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?id(s):this.lineralizeSegments(n,s).pipe($(n=>{const s=new ah(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=ld(e,r,s);if(!o)return sd(e);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?id(c):this.lineralizeSegments(r,c).pipe($(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(L(t=>(n._loadedConfig=t,new ah(r,{})))):tu(new ah(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=ld(e,n,r);if(!s)return sd(e);const a=r.slice(o);return this.getChildConfig(t,n,r).pipe($(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>cd(t,e,n)&&"primary"!==hd(n))}(t,n,r)?{segmentGroup:ud(new ah(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==hd(r)&&(n[hd(r)]=new ah([],{}));return n}(r,new ah(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>cd(t,e,n))}(t,n,r)?{segmentGroup:ud(new ah(t.segments,function(t,e,n,r){const s={};for(const i of n)cd(t,e,i)&&!r[hd(i)]&&(s[hd(i)]=new ah([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,i,a,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(L(t=>new ah(i,t))):0===r.length&&0===o.length?tu(new ah(i,{})):this.expandSegment(n,s,r,o,"primary",!0).pipe(L(t=>new ah(i.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?tu(new Gc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?tu(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?V(r).pipe(L(r=>{const s=t.get(r);let i;if(function(t){return t&&td(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!td(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return sh(i)})).pipe(Bu(),(s=t=>!0===t,t=>t.lift(new hc(s,void 0,t)))):tu(!0);var s}(t.injector,e,n).pipe($(n=>n?this.configLoader.load(t.injector,e).pipe(L(t=>(e._loadedConfig=t,t))):function(t){return new _(e=>e.error(Wc(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):tu(new Gc([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return tu(n);if(r.numberOfChildren>1||!r.children.primary)return od(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new oh(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return rh(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return rh(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new ah(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function ld(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||Zc)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ud(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new ah(t.segments.concat(e.segments),e.children)}return t}function cd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function hd(t){return t.outlet||"primary"}class dd{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class pd{constructor(t,e){this.component=t,this.route=e}}function fd(t,e,n){const r=t._root;return function t(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Rh(n);return e.children.forEach(e=>{!function(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=r?r.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!uh(t.url,e.url);case"pathParamsOrQueryParamsChange":return!uh(t.url,e.url)||!Xc(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hh(t,e)||!Xc(t.queryParams,e.queryParams);case"paramsChange":default:return!Hh(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new dd(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:r,s,i),u&&i.canDeactivateChecks.push(new pd(l&&l.outlet&&l.outlet.component||null,a))}else a&&md(n,l,i),i.canActivateChecks.push(new dd(s)),t(e,null,o.component?l?l.children:null:r,s,i)}(e,o[e.value.outlet],r,s.concat([e.value]),i),delete o[e.value.outlet]}),rh(o,(t,e)=>md(t,r.getContext(e),i)),i}(r,e?e._root:null,n,[r.value])}function gd(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function md(t,e,n){const r=Rh(t),s=t.value;rh(r,(t,r)=>{md(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new pd(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const yd=Symbol("INITIAL_VALUE");function vd(){return pc(t=>function(...t){let e=null,n=null;return T(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),W(t,n).lift(new Hu(e))}(...t.map(t=>t.pipe(ac(1),function(...t){const e=t[t.length-1];return T(e)?(t.pop(),n=>mc(t,n,e)):e=>mc(t,e)}(yd)))).pipe(yc((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==yd)return t;if(r===yd&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||ed(r))return r}return t},t)},yd),nu(t=>t!==yd),L(t=>ed(t)?t:!0===t),ac(1)))}function wd(t,e){return null!==t&&e&&e(new Hc(t)),tu(!0)}function _d(t,e){return null!==t&&e&&e(new Fc(t)),tu(!0)}function bd(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?tu(r.map(r=>zu(()=>{const s=gd(r,e,n);let i;if(function(t){return t&&td(t.canActivate)}(s))i=sh(s.canActivate(e,t));else{if(!td(s))throw new Error("Invalid CanActivate guard");i=sh(s(e,t))}return i.pipe(cc())}))).pipe(vd()):tu(!0)}function Sd(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>zu(()=>tu(e.guards.map(s=>{const i=gd(s,e.node,n);let o;if(function(t){return t&&td(t.canActivateChild)}(i))o=sh(i.canActivateChild(r,t));else{if(!td(i))throw new Error("Invalid CanActivateChild guard");o=sh(i(r,t))}return o.pipe(cc())})).pipe(vd())));return tu(s).pipe(vd())}class Cd{}class xd{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=Td(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Uh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ih(n,e),s=new Dh(this.url,r);return this.inheritParamsAndData(s._root),tu(s)}catch(t){return new _(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=jh(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=ch(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof Cd))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new Cd}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new Cd;if((t.outlet||"primary")!==r)throw new Cd;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?nh(n).parameters:{};s=new Uh(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rd(t),r,t.component,t,kd(e),Ed(e)+n.length,Od(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Cd;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||Zc)(n,t,e);if(!r)throw new Cd;const s={};rh(r.posParams,(t,e)=>{s[e]=t.path});const i=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new Uh(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rd(t),r,t.component,t,kd(e),Ed(e)+i.length,Od(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:u}=Td(e,i,o,a,this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Ih(s,t)]}if(0===a.length&&0===u.length)return[new Ih(s,[])];const c=this.processSegment(a,l,u,"primary");return[new Ih(s,c)]}}function kd(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ed(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Td(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>Ad(t,e,n)&&"primary"!==Id(n))}(t,n,r)){const s=new ah(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&"primary"!==Id(i)){const n=new ah([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Id(i)]=n}return s}(t,e,r,new ah(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ad(t,e,n))}(t,n,r)){const i=new ah(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(Ad(t,n,a)&&!s[Id(a)]){const n=new ah([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[Id(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new ah(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Ad(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Id(t){return t.outlet||"primary"}function Rd(t){return t.data||{}}function Od(t){return t.resolve||{}}function Pd(t,e,n,r){const s=gd(t,e,r);return sh(s.resolve?s.resolve(e,n):s(e,n))}function Nd(t){return function(e){return e.pipe(pc(e=>{const n=t(e);return n?V(n).pipe(L(()=>e)):V([e])}))}}class jd{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const Ud=new Ft("ROUTES");class Dd{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(L(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Gc(eh(r.injector.get(Ud)).map(Yc),r)}))}loadModuleFactory(t){return"string"==typeof t?V(this.loader.load(t)):sh(t()).pipe($(t=>t instanceof Xt?tu(t):V(this.compiler.compileModuleAsync(t))))}}class Ld{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Fd(t){throw t}function Md(t,e,n){return e.parse("/")}function Hd(t,e){return tu(null)}let Vd=(()=>{class t{constructor(t,e,n,r,s,i,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=Fd,this.malformedUriErrorHandler=Md,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hd,afterPreactivation:Hd},this.urlHandlingStrategy=new Ld,this.routeReuseStrategy=new jd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Yt),this.console=s.get(ea);const l=s.get(ga);this.isNgZoneEnabled=l instanceof ga,this.resetConfig(a),this.currentUrlTree=new oh(new ah([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Dd(i,o,t=>this.triggerEvent(new Dc(t)),t=>this.triggerEvent(new Lc(t))),this.routerState=Ph(this.currentUrlTree,this.rootComponentType),this.transitions=new Lu({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(nu(t=>0!==t.id),L(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),pc(t=>{let n=!1,r=!1;return tu(t).pipe(bc(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),pc(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return tu(t).pipe(pc(t=>{const n=this.transitions.getValue();return e.next(new Tc(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?$u:[t]}),pc(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,i=this.urlSerializer,o=this.config,function(t){return t.pipe(pc(t=>function(t,e,n,r,s){return new ad(t,e,n,r,s).apply()}(r,s,i,t.extractedUrl,o).pipe(L(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),bc(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe($(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){return new xd(t,e,n,r,s,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(L(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),bc(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),bc(t=>{const n=new Oc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,i,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=t,a=new Tc(n,this.serializeUrl(r),s,i);e.next(a);const l=Ph(r,this.rootComponentType).snapshot;return tu(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),$u}),Nd(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),bc(t=>{const e=new Pc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),L(t=>Object.assign(Object.assign({},t),{guards:fd(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe($(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?tu(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return V(t).pipe($(t=>function(t,e,n,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?tu(i.map(i=>{const o=gd(i,e,s);let a;if(function(t){return t&&td(t.canDeactivate)}(o))a=sh(o.canDeactivate(t,e,n,r));else{if(!td(o))throw new Error("Invalid CanDeactivate guard");a=sh(o(t,e,n,r))}return a.pipe(cc())})).pipe(vd()):tu(!0)}(t.component,t.route,n,e,r)),cc(t=>!0!==t,!0))}(o,r,s,t).pipe($(n=>n&&"boolean"==typeof n?function(t,e,n,r){return V(e).pipe(eu(e=>V([_d(e.route.parent,r),wd(e.route,r),Sd(t,e.path,n),bd(t,e.route,n)]).pipe(Bu(),cc(t=>!0!==t,!0))),cc(t=>!0!==t,!0))}(r,i,t,e):tu(n)),L(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),bc(t=>{if(ed(t.guardsResult)){const e=Wc(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),bc(t=>{const e=new Nc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),nu(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Ic(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Nd(t=>{if(t.guards.canActivateChecks.length)return tu(t).pipe(bc(t=>{const e=new jc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe($(t=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=t;return s.length?V(s).pipe(eu(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return tu({});if(1===s.length){const i=s[0];return Pd(t[i],e,n,r).pipe(L(t=>({[i]:t})))}const i={};return V(s).pipe($(s=>Pd(t[s],e,n,r).pipe(L(t=>(i[s]=t,t))))).pipe(rc(),L(()=>i))}(t._resolve,t,e,r).pipe(L(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),jh(t,n).resolve),null)))}(t.route,r,e,n)),function(t,e){return arguments.length>=2?function(n){return v(yc(t,e),Zu(1),tc(e))(n)}:function(e){return v(yc((e,n,r)=>t(e,n,r+1)),Zu(1))(e)}}((t,e)=>t),L(e=>t)):tu(t)}))}),bc(t=>{const e=new Uc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),Nd(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),L(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(e,n,r){return n.children.map(n=>{for(const s of r.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,r);return new Ih(s,i)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new Nh(new Lu((s=n.value).url),new Lu(s.params),new Lu(s.queryParams),new Lu(s.fragment),new Lu(s.data),s.outlet,s.component,s),i=n.children.map(n=>t(e,n));return new Ih(r,i)}}var s}(t,e._root,n?n._root:void 0);return new Oh(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),bc(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),L(t=>(new Yh(o,t.targetRouterState,t.currentRouterState,a).activate(i),t))),bc({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Ic(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new xc(s))),sc(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=ed(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Ic(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new Rc(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return $u}));var s,i,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Qc(t),this.config=t.map(Yc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:a}=e;Xn()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=a?this.currentUrlTree.fragment:s;let c=null;if(o)switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=i?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,r,s){if(0===n.length)return $h(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new qh(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return rh(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new qh(n,e,r)}(n);if(i.toRoot())return $h(e.root,new ah([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new zh(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new zh(n.snapshot._urlSegment,!0,0);const r=Vh(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new zh(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?Zh(o.segmentGroup,o.index,i.commands):Wh(o.segmentGroup,o.index,i.commands);return $h(o.segmentGroup,a,e,r,s)}(l,this.currentUrlTree,t,c,u)}navigateByUrl(t,e={skipLocationChange:!1}){Xn()&&this.isNgZoneEnabled&&!ga.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=ed(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(ed(t))return ih(this.currentUrlTree,t,e);const n=this.parseUrl(t);return ih(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Ac(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){const i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;s?(o=s.resolve,a=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,a=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){gi()},t.\u0275dir=fe({type:t}),t})(),$d=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Xn()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:zd(this.skipLocationChange),replaceUrl:zd(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:zd(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:zd(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(pi(Vd),pi(Nh),fi("tabindex"),pi(zi),pi(Hi))},t.\u0275dir=fe({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Si("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),qd=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof Ac&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Xn()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:zd(this.skipLocationChange),replaceUrl:zd(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:zd(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:zd(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(pi(Vd),pi(Nh),pi(rl))},t.\u0275dir=fe({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Si("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(Oi("href",e.href,rr),ci("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[ji]}),t})();function zd(t){return""===t||!!t}let Bd=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.element=e,this.renderer=n,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof Ac&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(pi(Vd),pi(Hi),pi(zi),pi($d,8),pi(qd,8))},t.\u0275dir=fe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(zo(n,$d,!0),zo(n,qd,!0)),2&t&&(qo(r=Bo())&&(e.links=r),qo(r=Bo())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ji]}),t})();class Wd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Zd,this.attachRef=null}}class Zd{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Wd,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Gd=(()=>{class t{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Po,this.deactivateEvents=new Po,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Qd(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(pi(Zd),pi(po),pi(Mi),fi("name"),pi(Ls))},t.\u0275dir=fe({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Qd{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Nh?this.route:t===Zd?this.childContexts:this.parent.get(t,e)}}class Kd{}class Jd{preload(t,e){return tu(null)}}let Yd=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new Dd(e,n,e=>t.triggerEvent(new Dc(e)),e=>t.triggerEvent(new Lc(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(nu(t=>t instanceof Ac),eu(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Yt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return V(n).pipe(B(),L(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe($(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Vd),Gt(La),Gt(ha),Gt(Ys),Gt(Kd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Xd=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Tc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ac&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof $c&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new $c(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){gi()},t.\u0275dir=fe({type:t}),t})();const tp=new Ft("ROUTER_CONFIGURATION"),ep=new Ft("ROUTER_FORROOT_GUARD"),np=[ll,{provide:hh,useClass:dh},{provide:Vd,useFactory:function(t,e,n,r,s,i,o,a={},l,u){const c=new Vd(null,t,e,n,r,s,i,eh(o));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),a.errorHandler&&(c.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(c.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Wa();c.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(c.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(c.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(c.relativeLinkResolution=a.relativeLinkResolution),c},deps:[hh,Zd,ll,Ys,La,ha,Ud,tp,[class{},new ot],[class{},new ot]]},Zd,{provide:Nh,useFactory:function(t){return t.routerState.root},deps:[Vd]},{provide:La,useClass:Ha},Yd,Jd,class{preload(t,e){return e().pipe(sc(()=>tu(null)))}},{provide:tp,useValue:{enableTracing:!1}}];function rp(){return new Ra("Router",Vd)}let sp=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[np,lp(e),{provide:ep,useFactory:ap,deps:[[Vd,new ot,new lt]]},{provide:tp,useValue:n||{}},{provide:rl,useFactory:op,deps:[Ga,[new it(il),new ot],tp]},{provide:Xd,useFactory:ip,deps:[Vd,xl,tp]},{provide:Kd,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Jd},{provide:Ra,multi:!0,useFactory:rp},[up,{provide:Zo,multi:!0,useFactory:cp,deps:[up]},{provide:dp,useFactory:hp,deps:[up]},{provide:ta,multi:!0,useExisting:dp}]]}}static forChild(e){return{ngModule:t,providers:[lp(e)]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Gt(ep,8),Gt(Vd,8))}}),t})();function ip(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Xd(t,e,n)}function op(t,e,n={}){return n.useHash?new al(t,e):new ol(t,e)}function ap(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function lp(t){return[{provide:Xs,multi:!0,useValue:t},{provide:Ud,multi:!0,useValue:t}]}let up=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(Ka,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Vd),r=this.injector.get(tp);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?tu(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(tp),n=this.injector.get(Yd),r=this.injector.get(Xd),s=this.injector.get(Vd),i=this.injector.get(Ua);t===i.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Gt(Ys))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function cp(t){return t.appInitializer.bind(t)}function hp(t){return t.bootstrapListener.bind(t)}const dp=new Ft("Router Initializer");let pp=(()=>{class t{constructor(t){this.http=t,this.loadingProducts=!0,this.products=[],this.productsFilter=[],this.loadProducts()}loadProducts(){return new Promise((t,e)=>{this.http.get("https://catalog-virtual-angular.firebaseio.com/productos_idx.json").subscribe(e=>{this.products=e,t(),this.quickLoading()})})}getProduct(t){return this.http.get(`https://catalog-virtual-angular.firebaseio.com/productos/${t}.json`)}searchProduct(t){0===this.products.length?this.loadProducts().then(()=>{this.filterProducts(t),this.quickLoading()}):this.filterProducts(t)}quickLoading(){setTimeout(()=>{this.loadingProducts=!1},2e3)}filterProducts(t){this.productsFilter=[],t=t.toLowerCase(),this.products.forEach(e=>{const n=e.titulo.toLowerCase();(e.categoria.indexOf(t)>=0||n.indexOf(t)>=0)&&this.productsFilter.push(e)})}}return t.\u0275fac=function(e){return new(e||t)(Gt(bu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function fp(t,e){1&t&&(vi(0,"div",3),vi(1,"div",4),_i(2,"div",5),_i(3,"div",6),_i(4,"div",7),_i(5,"div",8),wi(),vi(6,"h6",9),Ti(7,"Cargando..."),wi(),wi())}const gp=function(t){return["/item",t]};function mp(t,e){if(1&t&&(vi(0,"a",12),_i(1,"img",13),vi(2,"div",14),vi(3,"h2"),Ti(4),wi(),vi(5,"p"),Ti(6),wi(),wi(),wi()),2&t){const t=e.$implicit;mi("routerLink",Oo(4,gp,t.cod)),wr(1),Ei("src","assets/products/",t.url,".jpg",rr),wr(3),Ai(t.titulo),wr(2),Ai(t.categoria)}}function yp(t,e){if(1&t&&(vi(0,"div",10),di(1,mp,7,6,"a",11),wi()),2&t){const t=ki();wr(1),mi("ngForOf",t.productsService.products)}}let vp=(()=>{class t{constructor(t){this.productsService=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(pi(pp))},t.\u0275cmp=le({type:t,selectors:[["app-portafolio"]],decls:3,vars:2,consts:[[1,"ae-container-fluid","ae-container-fluid--inner","rk-portfolio"],["class","spinner",4,"ngIf"],["class","animated fadeIn ae-masonry ae-masonry-md-2 ae-masonry-xl-4",4,"ngIf"],[1,"spinner"],[1,"sk-folding-cube"],[1,"sk-cube1","sk-cube"],[1,"sk-cube2","sk-cube"],[1,"sk-cube4","sk-cube"],[1,"sk-cube3","sk-cube"],["id","loading"],[1,"animated","fadeIn","ae-masonry","ae-masonry-md-2","ae-masonry-xl-4"],["class","animated fadeIn rk-item ae-masonry__item",3,"routerLink",4,"ngFor","ngForOf"],[1,"animated","fadeIn","rk-item","ae-masonry__item",3,"routerLink"],["alt","",3,"src"],[1,"item-meta"]],template:function(t,e){1&t&&(vi(0,"section",0),di(1,fp,8,0,"div",1),di(2,yp,2,1,"div",2),wi()),2&t&&(wr(1),mi("ngIf",e.productsService.loadingProducts),wr(1),mi("ngIf",!e.productsService.loadingProducts))},directives:[vl,ml,qd],styles:[""]}),t})(),wp=(()=>{class t{constructor(t){this.http=t,this.info={},this.loading=!1,this.loadingTeam=!0,this.team={},this.loadInfo(),this.loadTeam()}loadInfo(){this.http.get("assets/data/data-pages.json").subscribe(t=>{this.loading=!0,this.info=t})}loadTeam(){return new Promise((t,e)=>{this.http.get("https://catalog-virtual-angular.firebaseio.com/equipo.json").subscribe(t=>{this.team=t,this.quickLoading()})})}quickLoading(){setTimeout(()=>{this.loadingTeam=!1},3e3)}}return t.\u0275fac=function(e){return new(e||t)(Gt(bu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function _p(t,e){1&t&&(vi(0,"div",2),vi(1,"div",3),_i(2,"div",4),_i(3,"div",5),_i(4,"div",6),_i(5,"div",7),wi(),vi(6,"h6",8),Ti(7,"Cargando..."),wi(),wi())}function bp(t,e){if(1&t&&(vi(0,"div",22),_i(1,"img",23),vi(2,"h5",24),Ti(3),wi(),vi(4,"p",25),Ti(5),wi(),vi(6,"p",26),Ti(7),wi(),vi(8,"a",27),Ti(9),wi(),wi()),2&t){const t=e.$implicit;wr(1),mi("src",t.url,rr),wr(2),Ai(t.nombre),wr(2),Ai(t.subtitulo),wr(2),Ii(" ",t.frase," "),wr(1),Ei("href","https://twitter.com/",t.twitter,"",rr),wr(1),Ai(t.twitter)}}function Sp(t,e){if(1&t&&(vi(0,"div",9),di(1,bp,10,6,"div",10),vi(2,"div",11),vi(3,"div",12),vi(4,"h4",13),Ti(5,"Title example"),wi(),vi(6,"p"),Ti(7," Totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur. "),wi(),wi(),wi(),vi(8,"div",14),vi(9,"div",15),vi(10,"h6",16),Ti(11,"About Us"),wi(),vi(12,"p",17),Ti(13," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. "),wi(),wi(),vi(14,"div",15),vi(15,"h6",16),Ti(16,"Our Mission"),wi(),vi(17,"p",17),Ti(18," Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. "),_i(19,"br"),Ti(20,"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. "),wi(),wi(),vi(21,"div",15),vi(22,"h6",16),Ti(23,"Our Clients"),wi(),vi(24,"p",17),Ti(25," Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. "),wi(),vi(26,"p",17),Ti(27,"Nemo enim ipsam voluptatem quia voluptas"),wi(),wi(),wi(),vi(28,"p",18),vi(29,"a",19),Ti(30,"View Our Portfolio"),vi(31,"span",20),ln(),vi(32,"svg"),_i(33,"use",21),wi(),wi(),wi(),wi(),wi()),2&t){const t=ki();wr(1),mi("ngForOf",t.infoPages.team)}}const Cp=function(t){return{"background-image":t}};function xp(t,e){if(1&t&&(vi(0,"section"),vi(1,"header",1),vi(2,"div",2),vi(3,"h1",3),Ti(4),wi(),vi(5,"p",4),Ti(6),wi(),wi(),wi(),vi(7,"div",5),vi(8,"div",6),vi(9,"div",7),vi(10,"h2",8),Ti(11),wi(),wi(),vi(12,"div",9),vi(13,"p",10),vi(14,"span",11),Ti(15,"Client: "),wi(),vi(16,"span",12),Ti(17,"Agency Design Studio"),wi(),wi(),vi(18,"p",13),vi(19,"a",14),Ti(20,"www.agencydesign.com"),wi(),wi(),vi(21,"p",15),Ti(22," 12 August, 2015 "),wi(),wi(),wi(),wi(),vi(23,"div",16),vi(24,"div",17),vi(25,"div",18),vi(26,"h4",12),Ti(27),wi(),vi(28,"p",19),Ti(29),wi(),wi(),vi(30,"div",20),_i(31,"img",21),wi(),wi(),vi(32,"div",22),vi(33,"div",23),_i(34,"img",21),wi(),vi(35,"div",24),_i(36,"p"),vi(37,"p",25),Ti(38),wi(),wi(),wi(),vi(39,"div",26),vi(40,"div",27),vi(41,"h4",12),Ti(42),wi(),vi(43,"p",19),Ti(44),wi(),wi(),wi(),wi(),wi()),2&t){const t=ki();wr(1),mi("ngStyle",Oo(11,Cp,"url(assets/products/"+t.id+"/main.jpg)")),wr(3),Ai(t.products.producto),wr(2),Ai(t.products.categoria),wr(5),Ii(" ",t.products.subtitulo1," "),wr(16),Ai(t.products.subtitulo1),wr(2),Ii(" ",t.products.desc1," "),wr(2),Ei("src","assets/products/",t.id,"/pic-1.jpg",rr),wr(3),Ei("src","assets/products/",t.id,"/pic-2.jpg",rr),wr(4),Ii(" ",t.products.desc2," "),wr(4),Ii(" ",t.products.producto,""),wr(2),Ii(" ",t.products.resumen,"")}}function kp(t,e){1&t&&(vi(0,"div",3),vi(1,"div",4),_i(2,"div",5),_i(3,"div",6),_i(4,"div",7),_i(5,"div",8),wi(),vi(6,"h6",9),Ti(7,"Cargando..."),wi(),wi())}const Ep=function(t){return["/item",t]};function Tp(t,e){if(1&t&&(vi(0,"a",12),_i(1,"img",13),vi(2,"div",14),vi(3,"h2"),Ti(4),wi(),vi(5,"p"),Ti(6),wi(),wi(),wi()),2&t){const t=e.$implicit;mi("routerLink",Oo(4,Ep,t.cod)),wr(1),Ei("src","assets/products/",t.url,".jpg",rr),wr(3),Ai(t.titulo),wr(2),Ai(t.categoria)}}function Ap(t,e){if(1&t&&(vi(0,"div",10),di(1,Tp,7,6,"a",11),wi()),2&t){const t=ki();wr(1),mi("ngForOf",t.productServices.productsFilter)}}const Ip=[{path:"home",component:vp},{path:"about",component:(()=>{class t{constructor(t){this.infoPages=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(pi(wp))},t.\u0275cmp=le({type:t,selectors:[["app-about"]],decls:2,vars:2,consts:[["class","spinner",4,"ngIf"],["class"," animatedlow fadeIn ae-grid au-xs-ta-center au-mb-4",4,"ngIf"],[1,"spinner"],[1,"sk-folding-cube"],[1,"sk-cube1","sk-cube"],[1,"sk-cube2","sk-cube"],[1,"sk-cube4","sk-cube"],[1,"sk-cube3","sk-cube"],["id","loading"],[1,"animatedlow","fadeIn","ae-grid","au-xs-ta-center","au-mb-4"],["class","ae-grid__item item-lg-4 ae-kappa au-mb-3",4,"ngFor","ngForOf"],[1,"ae-grid","au-pt-2"],[1,"ae-grid__item","item-lg-8","item-lg--offset-2"],[1,"ae-u-bolder"],[1,"ae-grid","ae-grid--alt","au-xs-ptp-1"],[1,"ae-grid__item--alt","item-lg-4"],[1,"ae-u-boldest"],[1,"au-lh-3"],[1,"au-flex","au-pt-4","group-buttons"],["href","portfolio.html",1,"au-mt-4","arrow-button","arrow-button--right","arrow-button--out"],[1,"arrow-cont"],[0,"xlink","href","assets/img/symbols.svg#arrow"],[1,"ae-grid__item","item-lg-4","ae-kappa","au-mb-3"],["alt","",1,"animated","fadeIn","au-mb-3",3,"src"],[1,"ae-u-bolder","au-mt-2"],[1,"ae-u-bolder","au-mb-3"],[1,"au-lg-ta-left","au-mb-3","au-pl-4","au-pr-4"],["target","_blank",1,"ae-u-bolder","au-underline",3,"href"]],template:function(t,e){1&t&&(di(0,_p,8,0,"div",0),di(1,Sp,34,1,"div",1)),2&t&&(mi("ngIf",e.infoPages.loadingTeam),wr(1),mi("ngIf",!e.infoPages.loadingTeam))},directives:[vl,ml],styles:[""]}),t})()},{path:"item/:id",component:(()=>{class t{constructor(t,e){this.route=t,this.productServices=e}ngOnInit(){this.route.params.subscribe(t=>{this.productServices.getProduct(t.id).subscribe(e=>{this.id=t.id,this.products=e})})}}return t.\u0275fac=function(e){return new(e||t)(pi(Nh),pi(pp))},t.\u0275cmp=le({type:t,selectors:[["app-item"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"animated","fadeIn","rk-portfolio-cover","item-inside-1",3,"ngStyle"],["id","title",1,"item-inside__meta"],[1,"ae-u-bolder","rk-portfolio-title"],[1,"ae-theta","rk-portfolio-category"],[1,"ae-container-fluid"],[1,"ae-grid","ae-grid--collapse","rk-portfolio-info"],[1,"ae-grid__item","item-lg-8","item-sm--center","au-xs-ta-center","au-lg-ta-left"],[1,"rk-portfolio-inner-title"],[1,"ae-grid__item","item-lg-4","au-xs-ta-center","au-lg-ta-right","rk-portfolio-details"],[1,"rk-portfolio-inner-client"],[1,"ae-lambda"],[1,"ae-u-bolder"],[1,"au-underline","rk-portfolio-inner-website"],["href","#0",1,"ae-kappa"],[1,"ae-kappa","ae-u-bold","rk-portfolio-inner-date"],[1,"ae-container-fluid","ae-container-fluid--inner","rk-portfolio--inner"],[1,"ae-grid","ae-grid--collapse","au-xs-ptp-1"],[1,"ae-grid__item","item-lg-5","au-lg-ptp-1"],[1,"ae-eta"],[1,"ae-grid__item","item-lg-6","item-lg--offset-1"],["alt","Urku Portfolio",3,"src"],[1,"ae-grid","ae-grid--collapse"],[1,"ae-grid__item","item-lg-8"],[1,"ae-grid__item","item-lg-3","item-lg--offset-1","au-lg-ptp-1"],[1,"au-mb-3"],[1,"ae-grid","ae-grid--collapse","au-xs-ptp-1","au-xs-pbp-1"],[1,"ae-grid__item","item-lg-8","item-lg--offset-2"]],template:function(t,e){1&t&&di(0,xp,45,13,"section",0),2&t&&mi("ngIf",e.products)},directives:[vl,bl],styles:[""]}),t})()},{path:"search/:txt",component:(()=>{class t{constructor(t,e){this.router=t,this.productServices=e}ngOnInit(){this.router.params.subscribe(t=>{this.productServices.searchProduct(t.txt)})}}return t.\u0275fac=function(e){return new(e||t)(pi(Nh),pi(pp))},t.\u0275cmp=le({type:t,selectors:[["app-search"]],decls:3,vars:2,consts:[[1,"ae-container-fluid","ae-container-fluid--inner","rk-portfolio"],["class","spinner",4,"ngIf"],["class","animated fadeIn ae-masonry ae-masonry-md-2 ae-masonry-xl-4",4,"ngIf"],[1,"spinner"],[1,"sk-folding-cube"],[1,"sk-cube1","sk-cube"],[1,"sk-cube2","sk-cube"],[1,"sk-cube4","sk-cube"],[1,"sk-cube3","sk-cube"],["id","loading"],[1,"animated","fadeIn","ae-masonry","ae-masonry-md-2","ae-masonry-xl-4"],["class","animated fadeIn rk-item ae-masonry__item",3,"routerLink",4,"ngFor","ngForOf"],[1,"animated","fadeIn","rk-item","ae-masonry__item",3,"routerLink"],["alt","",3,"src"],[1,"item-meta"]],template:function(t,e){1&t&&(vi(0,"section",0),di(1,kp,8,0,"div",1),di(2,Ap,2,1,"div",2),wi()),2&t&&(wr(1),mi("ngIf",e.productServices.loadingProducts),wr(1),mi("ngIf",!e.productServices.loadingProducts))},directives:[vl,ml,qd],styles:[""]}),t})()},{path:"**",pathMatch:"full",redirectTo:"home"}];let Rp=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[sp.forRoot(Ip,{useHash:!0})],sp]}),t})(),Op=(()=>{class t{constructor(t,e){this.infoPages=t,this.router=e}ngOnInit(){}Search(t){t.length<1||this.router.navigate(["/search",t])}}return t.\u0275fac=function(e){return new(e||t)(pi(wp),pi(Vd))},t.\u0275cmp=le({type:t,selectors:[["app-header"]],decls:29,vars:1,consts:[[1,"ae-container-fluid","ae-container-fluid--full","rk-header"],["type","checkbox","id","mobile-menu",1,"rk-mobile-menu"],["for","mobile-menu"],[0,"xlink","href","assets/img/symbols.svg#bar"],[1,"ae-container-fluid","rk-topbar"],[1,"rk-logo"],["routerLink","home"],[1,"rk-navigation"],[1,"rk-menu"],["routerLinkActive","active",1,"rk-menu__item"],["routerLink","home",1,"rk-menu__link"],["routerLink","about",1,"rk-menu__link"],[1,"rk-search"],["type","text","placeholder","Buscar..","id","urku-search",1,"rk-search-field",3,"keyup.enter"],["txtSearch",""],["for","urku-search"],[0,"xlink","href","assets/img/symbols.svg#icon-search"]],template:function(t,e){if(1&t){const t=Me();vi(0,"header",0),_i(1,"input",1),vi(2,"label",2),ln(),vi(3,"svg"),_i(4,"use",3),wi(),vi(5,"svg"),_i(6,"use",3),wi(),vi(7,"svg"),_i(8,"use",3),wi(),wi(),un(),vi(9,"div",4),vi(10,"h1",5),vi(11,"a",6),Ti(12),vi(13,"sup"),Ti(14,"tm"),wi(),wi(),wi(),vi(15,"nav",7),vi(16,"ul",8),vi(17,"li",9),vi(18,"a",10),Ti(19,"Home"),wi(),wi(),vi(20,"li",9),vi(21,"a",11),Ti(22,"About"),wi(),wi(),wi(),vi(23,"div",12),vi(24,"input",13,14),Si("keyup.enter",(function(){Le.lFrame.contextLView=t;const n=Le.lFrame.contextLView[44];return e.Search(n.value)})),wi(),vi(26,"label",15),ln(),vi(27,"svg"),_i(28,"use",16),wi(),wi(),wi(),wi(),wi(),wi()}2&t&&(wr(12),Ai(e.infoPages.info.title))},directives:[qd,Bd],styles:[""]}),t})(),Pp=(()=>{class t{constructor(t){this.infoPages=t,this.year=(new Date).getFullYear()}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(pi(wp))},t.\u0275cmp=le({type:t,selectors:[["app-footer"]],decls:43,vars:7,consts:[[1,"ae-container-fluid","rk-footer"],[1,"ae-grid","ae-grid--collapse"],[1,"ae-grid__item","item-lg-4","au-xs-ta-center","au-lg-ta-left"],[1,"rk-menu","rk-footer-menu"],[1,"rk-menu__item"],["routerLink","home",1,"rk-menu__link"],["routerLink","about",1,"rk-menu__link"],["href","contact.html",1,"rk-menu__link"],[1,"rk-footer__text","rk-footer__copy"],[1,"ae-u-bold"],[1,"ae-u-bolder"],[1,"ae-grid__item","item-lg-4","au-xs-ta-center"],["target","_blank",1,"rk-social-btn",3,"href"],[0,"xlink","href","assets/img/symbols.svg#icon-facebook"],[0,"xlink","href","assets/img/symbols.svg#icon-twitter"],[0,"xlink","href","assets/img/symbols.svg#icon-pinterest"],[0,"xlink","href","assets/img/symbols.svg#icon-tumblr"],[1,"ae-grid__item","item-lg-4","au-xs-ta-center","au-lg-ta-right"],[1,"rk-footer__text","rk-footer__contact"],["href","#0",1,"rk-dark-color"],[1,"rk-footer__text","rk-footer__by"],["href","http://pixeden.com",1,"ae-u-bolder"]],template:function(t,e){1&t&&(vi(0,"footer",0),vi(1,"div",1),vi(2,"div",2),vi(3,"ul",3),vi(4,"li",4),vi(5,"a",5),Ti(6,"Home"),wi(),wi(),vi(7,"li",4),vi(8,"a",6),Ti(9,"About"),wi(),wi(),vi(10,"li",4),vi(11,"a",7),Ti(12,"Contact"),wi(),wi(),wi(),vi(13,"p",8),vi(14,"span",9),Ti(15,"\xa9 "),wi(),vi(16,"span",10),Ti(17),wi(),Ti(18,"All Right Reserved."),wi(),wi(),vi(19,"div",11),vi(20,"a",12),ln(),vi(21,"svg"),_i(22,"use",13),wi(),wi(),un(),vi(23,"a",12),ln(),vi(24,"svg"),_i(25,"use",14),wi(),wi(),un(),vi(26,"a",12),ln(),vi(27,"svg"),_i(28,"use",15),wi(),wi(),un(),vi(29,"a",12),ln(),vi(30,"svg"),_i(31,"use",16),wi(),wi(),wi(),un(),vi(32,"div",17),vi(33,"p",18),vi(34,"span",9),Ti(35,"Email: "),wi(),vi(36,"span",10),vi(37,"a",19),Ti(38),wi(),wi(),wi(),vi(39,"p",20),Ti(40,"Theme by "),vi(41,"a",21),Ti(42,"Pixeden."),wi(),wi(),wi(),wi(),wi()),2&t&&(wr(17),Ri("",e.year," ",e.infoPages.info.title," "),wr(3),mi("href",e.infoPages.info.facebook,rr),wr(3),mi("href",e.infoPages.info.twitter,rr),wr(3),mi("href",e.infoPages.info.instagram,rr),wr(3),mi("href",e.infoPages.info.tumblr,rr),wr(9),Ii("",e.infoPages.info.email," "))},directives:[qd],styles:[""]}),t})(),Np=(()=>{class t{constructor(t,e){this.infoPagina=t,this.productos=e}}return t.\u0275fac=function(e){return new(e||t)(pi(wp),pi(pp))},t.\u0275cmp=le({type:t,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"ae-container-fluid","rk-main"]],template:function(t,e){1&t&&(_i(0,"app-header"),vi(1,"section",0),_i(2,"router-outlet"),wi(),_i(3,"app-footer"))},directives:[Op,Gd,Pp],styles:[""]}),t})();function jp(t,e){return new _(e?n=>e.schedule(Up,0,{error:t,subscriber:n}):e=>e.error(t))}function Up({error:t,subscriber:e}){e.error(t)}function Dp(t,e,n,s){return r(n)&&(s=n,n=void 0),s?Dp(t,e,n).pipe(L(t=>l(t)?s(...t):s(t))):new _(r=>{!function t(e,n,r,s,i){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,i),o=()=>t.removeEventListener(n,r,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),o=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),o=()=>t.removeListener(n,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,r,s,i)}s.add(o)}(t,e,(function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),r,n)})}const Lp=new _(_c);class Fp extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class Mp extends Fp{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Hp=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Vp extends Hp{constructor(t,e=Hp.now){super(t,()=>Vp.delegate&&Vp.delegate!==this?Vp.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Vp.delegate&&Vp.delegate!==this?Vp.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const $p=new Vp(Mp);let qp=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return tu(this.value);case"E":return jp(this.error);case"C":return qu()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class zp{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Bp(t,this.delay,this.scheduler))}}class Bp extends f{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,r=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Bp.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new Wp(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(qp.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(qp.createComplete()),this.unsubscribe()}}class Wp{constructor(t,e){this.time=t,this.notification=e}}const Zp="Service workers are disabled or not supported by this browser";class Gp{constructor(t){if(this.serviceWorker=t,t){const e=Dp(t,"controllerchange").pipe(L(()=>t.controller)),n=mc(zu(()=>tu(t.controller)),e);this.worker=n.pipe(nu(t=>!!t)),this.registration=this.worker.pipe(pc(()=>t.getRegistration()));const r=Dp(t,"message").pipe(L(t=>t.data)).pipe(nu(t=>t&&t.type)).pipe(tt(new k));r.connect(),this.events=r}else this.worker=this.events=this.registration=zu(()=>jp(new Error("Service workers are disabled or not supported by this browser")))}postMessage(t,e){return this.worker.pipe(ac(1),bc(n=>{n.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithStatus(t,e,n){const r=this.waitForStatus(n),s=this.postMessage(t,e);return Promise.all([r,s]).then(()=>{})}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){return this.events.pipe(nu(e=>e.type===t))}nextEventOfType(t){return this.eventsOfType(t).pipe(ac(1))}waitForStatus(t){return this.eventsOfType("STATUS").pipe(nu(e=>e.nonce===t),ac(1),L(t=>{if(!t.status)throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Qp=(()=>{class t{constructor(t){if(this.sw=t,this.subscriptionChanges=new k,!t.isEnabled)return this.messages=Lp,this.notificationClicks=Lp,void(this.subscription=Lp);this.messages=this.sw.eventsOfType("PUSH").pipe(L(t=>t.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(L(t=>t.data)),this.pushManager=this.sw.registration.pipe(L(t=>t.pushManager));const e=this.pushManager.pipe(pc(t=>t.getSubscription()));this.subscription=Z(e,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(t){if(!this.sw.isEnabled)return Promise.reject(new Error(Zp));const e={userVisibleOnly:!0};let n=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),r=new Uint8Array(new ArrayBuffer(n.length));for(let s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return e.applicationServerKey=r,this.pushManager.pipe(pc(t=>t.subscribe(e)),ac(1)).toPromise().then(t=>(this.subscriptionChanges.next(t),t))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(ac(1),pc(t=>{if(null===t)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then(t=>{if(!t)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Zp))}decodeBase64(t){return atob(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Gp))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Kp=(()=>{class t{constructor(t){if(this.sw=t,!t.isEnabled)return this.available=Lp,void(this.activated=Lp);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Zp));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Zp));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:t},t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Gp))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Jp{}const Yp=new Ft("NGSW_REGISTER_SCRIPT");function Xp(t,e,n,r){return()=>{if(!Cl(r)||!("serviceWorker"in navigator)||!1===n.enabled)return;let s;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)s=n.registrationStrategy();else{const[e,...r]=(n.registrationStrategy||"registerWhenStable").split(":");switch(e){case"registerImmediately":s=tu(null);break;case"registerWithDelay":s=tu(null).pipe(function(t,e=$p){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new zp(r,e))}(+r[0]||0));break;case"registerWhenStable":s=t.get(Ua).isStable.pipe(nu(t=>t));break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}s.pipe(ac(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(t=>console.error("Service worker registration failed with:",t)))}}function tf(t,e){return new Gp(Cl(e)&&!1!==t.enabled?navigator.serviceWorker:void 0)}let ef=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[{provide:Yp,useValue:e},{provide:Jp,useValue:n},{provide:Gp,useFactory:tf,deps:[Jp,Xo]},{provide:Zo,useFactory:Xp,deps:[Ys,Yp,Jp,Xo],multi:!0}]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Qp,Kp]}),t})(),nf=(()=>{class t{}return t.\u0275mod=de({type:t,bootstrap:[Np]}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[],imports:[[Xl,Rp,Du,ef.register("ngsw-worker.js",{enabled:!0})]]}),t})();(function(){if(Yn)throw new Error("Cannot enable prod mode after platform setup.");Jn=!1})(),Jl().bootstrapModule(nf).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);