homebridge-gsh-kazari
Version:
1 lines • 137 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},jim7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function i(e){setTimeout(()=>{throw e},0)}const u={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const a=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(r(o)){s&&(this._unsubscribe=void 0);try{o.call(this)}catch(u){t=u instanceof a?d(u.errors):[u]}}if(l(i)){let e=-1,n=i.length;for(;++e<n;){const n=i[e];if(c(n))try{n.unsubscribe()}catch(u){t=t||[],u instanceof a?t=t.concat(d(u.errors)):t.push(u)}}}if(t)throw new a(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof e){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(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof a?t.errors:t),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=u;break;case 1:if(!e){this.destination=u;break}if("object"==typeof e){e instanceof p?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new p(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class g extends p{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let i=this;r(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==u&&(i=Object.create(t),r(i.unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(i(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(e){return e}let y=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof p)return e;if(e[f])return e[f]()}return e||t||n?new p(e,t,n):new p(u)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof p?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=D(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[m](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?_:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=D(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function D(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const w=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class b extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class C extends p{constructor(e){super(e),this.destination=e}}let v=(()=>{class e extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new C(this)}lift(e){const t=new E(this,this);return t.operator=e,t}next(e){if(this.closed)throw new w;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].next(e)}}error(e){if(this.closed)throw new w;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new w;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new w;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new w;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new b(this,e))}asObservable(){const e=new y;return e.source=this,e}}return e.create=(e,t)=>new E(e,t),e})();class E extends v{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}class A{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new F(e,this.project,this.thisArg))}}class F extends p{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const x=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()};function k(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const T=k(),I=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function S(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const B=e=>{if(e&&"function"==typeof e[m])return r=e,e=>{const t=r[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(I(e))return x(e);if(S(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i),e);if(e&&"function"==typeof e[T])return t=e,e=>{const n=t[T]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,r};function O(e,t){return new y(n=>{const r=new h;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}class N extends p{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class R extends p{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function P(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(P((n,r)=>{return(s=e(n,r),o?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[m]}(e))return function(e,t){return new y(n=>{const r=new h;return r.add(t.schedule(()=>{const s=e[m]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(S(e))return function(e,t){return new y(n=>{const r=new h;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(I(e))return O(e,t);if(function(e){return e&&"function"==typeof e[T]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new y(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[T](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(s,o):s instanceof y?s:new y(B(s))).pipe(function(e,t){return function(t){return t.lift(new A(e,undefined))}}((e,s)=>t(n,e,r,s)));var s,o},n)):("number"==typeof t&&(n=t),t=>t.lift(new j(e,n)))}class j{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new H(e,this.project,this.concurrent))}}class H extends R{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new N(this),n=this.destination;n.add(t);const r=function(e,t){if(!t.closed)return e instanceof y?e.subscribe(t):B(e)(t)}(e,t);r!==t&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function M(){return function(e){return e.lift(new V(e))}}class V{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new L(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class L extends p{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class z extends y{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new U(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return M()(this)}}const Z=(()=>{const e=z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class U extends C{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function $(){return new v}function W(e){return{toString:e}.toString()}function q(e,t,n){return W(()=>{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}const G=q("Inject",e=>({token:e})),Q=q("Optional"),J=q("Self"),Y=q("SkipSelf");var K=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function X(e){for(let t in e)if(e[t]===X)return t;throw Error("Could not find renamed property on target object.")}function ee(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function te(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ne(e){return re(e,e[oe])||re(e,e[le])}function re(e,t){return t&&t.token===e?t:null}function se(e){return e&&(e.hasOwnProperty(ie)||e.hasOwnProperty(ce))?e[ie]:null}const oe=X({\u0275prov:X}),ie=X({\u0275inj:X}),ue=X({\u0275provFallback:X}),le=X({ngInjectableDef:X}),ce=X({ngInjectorDef:X});function ae(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ae).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function he(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const de=X({__forward_ref__:X});function fe(e){return e.__forward_ref__=fe,e.toString=function(){return ae(this())},e}function pe(e){return"function"==typeof(t=e)&&t.hasOwnProperty(de)&&t.__forward_ref__===fe?e():e;var t}const ge="undefined"!=typeof globalThis&&globalThis,me="undefined"!=typeof window&&window,_e="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ye="undefined"!=typeof global&&global,De=ge||ye||me||_e,we=X({\u0275cmp:X}),be=X({\u0275dir:X}),Ce=X({\u0275pipe:X}),ve=X({\u0275mod:X}),Ee=X({\u0275loc:X}),Ae=X({\u0275fac:X}),Fe=X({__NG_ELEMENT_ID__:X});class xe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ee({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const ke=new xe("INJECTOR",-1),Te={},Ie=/\n/gm,Se=X({provide:String,useValue:X});let Be,Oe=void 0;function Ne(e){const t=Oe;return Oe=e,t}function Re(e){const t=Be;return Be=e,t}function Pe(e,t=K.Default){if(void 0===Oe)throw new Error("inject() must be called from an injection context");return null===Oe?He(e,void 0,t):Oe.get(e,t&K.Optional?null:void 0,t)}function je(e,t=K.Default){return(Be||Pe)(pe(e),t)}function He(e,t,n){const r=ne(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&K.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${ae(e)}]`)}function Me(e){const t=[];for(let n=0;n<e.length;n++){const r=pe(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=K.Default;for(let t=0;t<r.length;t++){const s=r[t];s instanceof Q||"Optional"===s.ngMetadataName||s===Q?n|=K.Optional:s instanceof Y||"SkipSelf"===s.ngMetadataName||s===Y?n|=K.SkipSelf:s instanceof J||"Self"===s.ngMetadataName||s===J?n|=K.Self:e=s instanceof G||s===G?s.token:s}t.push(je(e,n))}else t.push(je(r))}return t}class Ve{get(e,t=Te){if(t===Te){const t=new Error(`NullInjectorError: No provider for ${ae(e)}!`);throw t.name="NullInjectorError",t}return t}}class Le{}function ze(e,t){e.forEach(e=>Array.isArray(e)?ze(e,t):t(e))}function Ze(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ue(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var $e=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),We=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const qe={},Ge=[];let Qe=0;function Je(e){return W(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===$e.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ge,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||We.Emulated,id:"c",styles:e.styles||Ge,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,o=e.pipes;return n.id+=Qe++,n.inputs=tt(e.inputs,t),n.outputs=tt(e.outputs),s&&s.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ye):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ke):null,n})}function Ye(e){return st(e)||function(e){return e[be]||null}(e)}function Ke(e){return function(e){return e[Ce]||null}(e)}const Xe={};function et(e){const t={type:e.type,bootstrap:e.bootstrap||Ge,declarations:e.declarations||Ge,imports:e.imports||Ge,exports:e.exports||Ge,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&W(()=>{Xe[e.id]=e.type}),t}function tt(e,t){if(null==e)return qe;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=r,t&&(t[s]=o)}return n}const nt=Je;function rt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function st(e){return e[we]||null}function ot(e,t){return e.hasOwnProperty(Ae)?e[Ae]:null}function it(e,t){const n=e[ve]||null;if(!n&&!0===t)throw new Error(`Type ${ae(e)} does not have '\u0275mod' property.`);return n}function ut(e){return Array.isArray(e)&&"object"==typeof e[1]}function lt(e){return Array.isArray(e)&&!0===e[1]}function ct(e){return 0!=(8&e.flags)}function at(e){return 2==(2&e.flags)}function ht(e){return 1==(1&e.flags)}function dt(e){return null!==e.template}function ft(e){return 0!=(512&e[2])}function pt(e){return"string"==typeof e?e:null==e?"":""+e}function gt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():pt(e)}const mt=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(De))();function _t(e){return e instanceof Function?e():e}function yt(e,t){const n=t?" in "+t:"";throw new Error(`No provider for ${gt(e)} found${n}`)}class Dt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function wt(){const e=Ct(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===qe)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function bt(e,t,n,r){const s=Ct(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:qe,current:null}),o=s.current||(s.current={}),i=s.previous,u=this.declaredInputs[n],l=i[u];o[u]=new Dt(l&&l.currentValue,t,i===qe),e[r]=t}function Ct(e){return e.__ngSimpleChanges__||null}let vt=void 0;function Et(){return void 0!==vt?vt:"undefined"!=typeof document?document:void 0}function At(e){return!!e.listen}const Ft={createRenderer:(e,t)=>Et()};function xt(e){for(;Array.isArray(e);)e=e[0];return e}function kt(e,t){return xt(t[e.index])}function Tt(e,t){return e.data[t+20]}function It(e,t){const n=t[e];return ut(n)?n:n[0]}function St(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Bt(e){return 128==(128&e[2])}function Ot(e,t){return null===e||null==t?null:e[t]}function Nt(e){e[18]=0}function Rt(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Pt={lFrame:Xt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function jt(){return Pt.bindingsEnabled}function Ht(){return Pt.lFrame.lView}function Mt(){return Pt.lFrame.tView}function Vt(){return Pt.lFrame.currentTNode}function Lt(e,t){Pt.lFrame.currentTNode=e,Pt.lFrame.isParent=t}function zt(){return Pt.lFrame.isParent}function Zt(){return Pt.isInCheckNoChangesMode}function Ut(e){Pt.isInCheckNoChangesMode=e}function $t(){return Pt.lFrame.bindingIndex}function Wt(){return Pt.lFrame.bindingIndex++}function qt(e,t){const n=Pt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Gt(t)}function Gt(e){Pt.lFrame.currentDirectiveIndex=e}function Qt(e){Pt.lFrame.currentQueryIndex=e}function Jt(e,t){const n=Kt();Pt.lFrame=n,n.currentTNode=t,n.lView=e}function Yt(e){const t=Kt(),n=e[1];Pt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex}function Kt(){const e=Pt.lFrame,t=null===e?null:e.child;return null===t?Xt(e):t}function Xt(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function en(){const e=Pt.lFrame;return Pt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const tn=en;function nn(){const e=en();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function rn(){return Pt.lFrame.selectedIndex}function sn(e){Pt.lFrame.selectedIndex=e}function on(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:s,ngAfterViewInit:o,ngAfterViewChecked:i,ngOnDestroy:u}=t;r&&(e.contentHooks||(e.contentHooks=[])).push(-n,r),s&&((e.contentHooks||(e.contentHooks=[])).push(n,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,s)),o&&(e.viewHooks||(e.viewHooks=[])).push(-n,o),i&&((e.viewHooks||(e.viewHooks=[])).push(n,i),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,i)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(n,u)}}function un(e,t,n){an(e,t,3,n)}function ln(e,t,n,r){(3&e[2])===n&&an(e,t,n,r)}function cn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function an(e,t,n,r){const s=null!=r?r:-1;let o=0;for(let i=void 0!==r?65535&e[18]:0;i<t.length;i++)if("number"==typeof t[i+1]){if(o=t[i],null!=r&&o>=r)break}else t[i]<0&&(e[18]+=65536),(o<s||-1==s)&&(hn(e,n,t,i),e[18]=(4294901760&e[18])+i+2),i++}function hn(e,t,n,r){const s=n[r]<0,o=n[r+1],i=e[s?-n[r]:n[r]];s?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(i)):o.call(i)}class dn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function fn(e,t,n){const r=At(e);let s=0;for(;s<n.length;){const o=n[s];if("number"==typeof o){if(0!==o)break;s++;const i=n[s++],u=n[s++],l=n[s++];r?e.setAttribute(t,u,l,i):t.setAttributeNS(i,u,l)}else{const i=o,u=n[++s];pn(i)?r&&e.setProperty(t,i,u):r?e.setAttribute(t,i,u):t.setAttribute(i,u),s++}}return s}function pn(e){return 64===e.charCodeAt(0)}function gn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?n=s:0===n||mn(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function mn(e,t,n,r,s){let o=0,i=e.length;if(-1===t)i=-1;else for(;o<e.length;){const n=e[o++];if("number"==typeof n){if(n===t){i=-1;break}if(n>t){i=o-1;break}}}for(;o<e.length;){const t=e[o];if("number"==typeof t)break;if(t===n){if(null===r)return void(null!==s&&(e[o+1]=s));if(r===e[o+1])return void(e[o+2]=s)}o++,null!==r&&o++,null!==s&&o++}-1!==i&&(e.splice(i,0,t),o=i+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==s&&e.splice(o++,0,s)}function _n(e){return-1!==e}function yn(e){return 32767&e}function Dn(e,t){let n=e>>16,r=t;for(;n>0;)r=r[15],n--;return r}let wn=!0;function bn(e){const t=wn;return wn=e,t}let Cn=0;function vn(e,t){const n=An(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,En(r.data,e),En(t,null),En(r.blueprint,null));const s=Fn(e,t),o=e.injectorIndex;if(_n(s)){const e=yn(s),n=Dn(s,t),r=n[1].data;for(let s=0;s<8;s++)t[o+s]=n[e+s]|r[e+s]}return t[o+8]=s,o}function En(e,t){e.push(0,0,0,0,0,0,0,0,t)}function An(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Fn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){const e=s[1],t=e.type;if(r=2===t?e.declTNode:1===t?s[6]:null,null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function xn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Fe)&&(r=n[Fe]),null==r&&(r=n[Fe]=Cn++);const s=255&r,o=1<<s,i=64&s,u=32&s,l=t.data;128&s?i?u?l[e+7]|=o:l[e+6]|=o:u?l[e+5]|=o:l[e+4]|=o:i?u?l[e+3]|=o:l[e+2]|=o:u?l[e+1]|=o:l[e]|=o}(e,t,n)}function kn(e,t,n,r=K.Default,s){if(null!==e){const s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Fe)?e[Fe]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof s){Jt(t,e);try{const e=s();if(null!=e||r&K.Optional)return e;yt(n)}finally{tn()}}else if("number"==typeof s){if(-1===s)return new Nn(e,t);let o=null,i=An(e,t),u=-1,l=r&K.Host?t[16][6]:null;for((-1===i||r&K.SkipSelf)&&(u=-1===i?Fn(e,t):t[i+8],-1!==u&&On(r,!1)?(o=t[1],i=yn(u),t=Dn(u,t)):i=-1);-1!==i;){const e=t[1];if(Bn(s,i,e.data)){const e=In(i,t,n,o,r,l);if(e!==Tn)return e}u=t[i+8],-1!==u&&On(r,t[1].data[i+8]===l)&&Bn(s,i,t)?(o=e,i=yn(u),t=Dn(u,t)):i=-1}}}if(r&K.Optional&&void 0===s&&(s=null),0==(r&(K.Self|K.Host))){const e=t[9],o=Re(void 0);try{return e?e.get(n,s,r&K.Optional):He(n,s,r&K.Optional)}finally{Re(o)}}if(r&K.Optional)return s;yt(n,"NodeInjector")}const Tn={};function In(e,t,n,r,s,o){const i=t[1],u=i.data[e+8],l=function(e,t,n,r,s){const o=e.providerIndexes,i=t.data,u=1048575&o,l=e.directiveStart,c=o>>20,a=s?u+c:e.directiveEnd;for(let h=r?u:u+c;h<a;h++){const e=i[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(s){const e=i[l];if(e&&dt(e)&&e.type===n)return l}return null}(u,i,n,null==r?at(u)&&wn:r!=i&&2===u.type,s&K.Host&&o===u);return null!==l?Sn(t,i,l,u):Tn}function Sn(e,t,n,r){let s=e[n];const o=t.data;if(s instanceof dn){const i=s;i.resolving&&function(e,t){throw new Error("Circular dependency in DI detected for "+e)}(gt(o[n]));const u=bn(i.canSeeViewProviders);i.resolving=!0;const l=i.injectImpl?Re(i.injectImpl):null;Jt(e,r);try{s=e[n]=i.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:o}=t.type.prototype;if(r){const r=((i=t).type.prototype.ngOnChanges&&(i.setInput=bt),wt);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}var i;s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==l&&Re(l),bn(u),i.resolving=!1,tn()}}return s}function Bn(e,t,n){const r=64&e,s=32&e;let o;return o=128&e?r?s?n[t+7]:n[t+6]:s?n[t+5]:n[t+4]:r?s?n[t+3]:n[t+2]:s?n[t+1]:n[t],!!(o&1<<e)}function On(e,t){return!(e&K.Self||e&K.Host&&t)}class Nn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return kn(this._tNode,this._lView,e,void 0,t)}}function Rn(e){return e.ngDebugContext}function Pn(e){return e.ngOriginalError}function jn(e,...t){e.error(...t)}class Hn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||jn}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Rn(e)?Rn(e):this._findContext(Pn(e)):null}_findOriginalError(e){let t=Pn(e);for(;t&&Pn(t);)t=Pn(t);return t}}class Mn{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}let Vn=!0,Ln=!1;function zn(){return Ln=!0,Vn}class Zn{getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}}class Un{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;const n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const $n=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Wn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function qn(e){return(e=String(e)).match($n)||e.match(Wn)?e:(zn()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function Gn(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Qn(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Jn=Gn("area,br,col,hr,img,wbr"),Yn=Gn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Kn=Gn("rp,rt"),Xn=Qn(Kn,Yn),er=Qn(Jn,Qn(Yn,Gn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Qn(Kn,Gn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Xn),tr=Gn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),nr=Gn("srcset"),rr=Qn(tr,nr,Gn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Gn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),sr=Gn("script,style,template");class or{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!er.hasOwnProperty(t))return this.sanitizedSomething=!0,!sr.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,o=t.toLowerCase();if(!rr.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let i=e.value;tr[o]&&(i=qn(i)),nr[o]&&(r=i,i=(r=String(r)).split(",").map(e=>qn(e.trim())).join(", ")),this.buf.push(" ",t,'="',lr(i),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();er.hasOwnProperty(t)&&!Jn.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(lr(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}const ir=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ur=/([^\#-~ |!])/g;function lr(e){return e.replace(/&/g,"&").replace(ir,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(ur,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let cr;function ar(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var hr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function dr(e){const t=function(){const e=Ht();return e&&e[12]}();return t?t.sanitize(hr.HTML,e)||"":function(e,t){const n=function(e){return e instanceof Mn&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===t}(e,"HTML")?(n=e)instanceof Mn?n.changingThisBreaksApplicationSecurity:n:function(e,t){let n=null;try{cr=cr||function(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new Zn:new Un(e)}(e);let r=t?String(t):"";n=cr.getInertBodyElement(r);let s=5,o=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=o,o=n.innerHTML,n=cr.getInertBodyElement(r)}while(r!==o);const i=new or,u=i.sanitizeChildren(ar(n)||n);return zn()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n){const e=ar(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(Et(),pt(e));var n}function fr(e,t){e.__ngContext__=t}function pr(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const n=t.length;if(s+n===r||e.charCodeAt(s+n)<=32)return s}n=s+1}}function gr(e,t,n){let r=0;for(;r<e.length;){let s=e[r++];if(n&&"class"===s){if(s=e[r],-1!==pr(s.toLowerCase(),t,0))return!0}else if(1===s){for(;r<e.length&&"string"==typeof(s=e[r++]);)if(s.toLowerCase()===t)return!0;return!1}}return!1}function mr(e){return 0===e.type&&"ng-template"!==e.tagName}function _r(e,t,n){return t===(0!==e.type||n?e.tagName:"ng-template")}function yr(e,t,n){let r=4;const s=e.attrs||[],o=function(e){for(let n=0;n<e.length;n++)if(3===(t=e[n])||4===t||6===t)return n;var t;return e.length}(s);let i=!1;for(let u=0;u<t.length;u++){const l=t[u];if("number"!=typeof l){if(!i)if(4&r){if(r=2|1&r,""!==l&&!_r(e,l,n)||""===l&&1===t.length){if(Dr(r))return!1;i=!0}}else{const c=8&r?l:t[++u];if(8&r&&null!==e.attrs){if(!gr(e.attrs,c,n)){if(Dr(r))return!1;i=!0}continue}const a=wr(8&r?"class":l,s,mr(e),n);if(-1===a){if(Dr(r))return!1;i=!0;continue}if(""!==c){let e;e=a>o?"":s[a+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==pr(t,c,0)||2&r&&c!==e){if(Dr(r))return!1;i=!0}}}}else{if(!i&&!Dr(r)&&!Dr(l))return!1;if(i&&Dr(l))continue;i=!1,r=l|1&r}}return Dr(r)||i}function Dr(e){return 0==(1&e)}function wr(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let n=!1;for(;s<t.length;){const r=t[s];if(r===e)return s;if(3===r||6===r)n=!0;else{if(1===r||2===r){let e=t[++s];for(;"string"==typeof e;)e=t[++s];continue}if(4===r)break;if(0===r){s+=4;continue}}s+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function br(e,t,n=!1){for(let r=0;r<t.length;r++)if(yr(e,t[r],n))return!0;return!1}function Cr(e,t){return e?":not("+t.trim()+")":t}function vr(e){let t=e[0],n=1,r=2,s="",o=!1;for(;n<e.length;){let i=e[n];if("string"==typeof i)if(2&r){const t=e[++n];s+="["+i+(t.length>0?'="'+t+'"':"")+"]"}else 8&r?s+="."+i:4&r&&(s+=" "+i);else""===s||Dr(i)||(t+=Cr(o,s),s=""),r=i,o=o||!Dr(r);n++}return""!==s&&(t+=Cr(o,s)),t}const Er={};function Ar(e){const t=e[3];return lt(t)?t[3]:t}function Fr(e){return kr(e[13])}function xr(e){return kr(e[4])}function kr(e){for(;null!==e&&!lt(e);)e=e[4];return e}function Tr(e){Ir(Mt(),Ht(),rn()+e,Zt())}function Ir(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&un(t,r,n)}else{const r=e.preOrderHooks;null!==r&&ln(t,r,0,n)}sn(n)}function Sr(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],o=n[r+1];if(-1!==o){const n=e.data[o];Qt(s),n.contentQueries(2,t[o],o)}}}function Br(e,t,n){return At(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Or(e,t,n,r,s,o,i,u,l,c){const a=t.blueprint.slice();return a[0]=s,a[2]=140|r,Nt(a),a[3]=a[15]=e,a[8]=n,a[10]=i||e&&e[10],a[11]=u||e&&e[11],a[12]=l||e&&e[12]||null,a[9]=c||e&&e[9]||null,a[6]=o,a[16]=2==t.type?e[16]:a,a}function Nr(e,t,n,r,s){const o=t+20,i=e.data[o]||function(e,t,n,r,s){const o=Vt(),i=zt(),u=e.data[t]=function(e,t,n,r,s,o){return{type:n,index:r,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,i?o:o&&o.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=u),null!==o&&(i&&null==o.child&&null!==u.parent?o.child=u:i||(o.next=u)),u}(e,o,n,r,s);return Lt(i,!0),i}function Rr(e,t,n){Yt(t);try{const r=e.viewQuery;null!==r&&cs(1,r,n);const s=e.template;null!==s&&Hr(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Sr(e,t),e.staticViewQueries&&cs(2,e.viewQuery,n);const o=e.components;null!==o&&function(e,t){for(let n=0;n<t.length;n++)ss(e,t[n])}(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),r}finally{t[2]&=-5,nn()}}function Pr(e,t,n,r){const s=t[2];if(256==(256&s))return;Yt(t);const o=Zt();try{Nt(t),Pt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Hr(e,t,n,2,r);const i=3==(3&s);if(!o)if(i){const n=e.preOrderCheckHooks;null!==n&&un(t,n,null)}else{const n=e.preOrderHooks;null!==n&&ln(t,n,0,null),cn(t,0)}if(function(e){for(let t=Fr(e);null!==t;t=xr(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],r=n[3];0==(1024&n[2])&&Rt(r,1),n[2]|=1024}}}(t),function(e){for(let t=Fr(e);null!==t;t=xr(t))for(let e=10;e<t.length;e++){const n=t[e],r=n[1];Bt(n)&&Pr(r,n,r.template,n[8])}}(t),null!==e.contentQueries&&Sr(e,t),!o)if(i){const n=e.contentCheckHooks;null!==n&&un(t,n)}else{const n=e.contentHooks;null!==n&&ln(t,n,1),cn(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let r=e.expandoStartIndex,s=-1,o=-1;for(let e=0;e<n.length;e++){const i=n[e];"number"==typeof i?i<=0?(o=0-i,sn(o),r+=9+n[++e],s=r):r+=i:(null!==i&&(qt(r,s),i(2,t[s])),s++)}}}finally{sn(-1)}}(e,t);const u=e.components;null!==u&&function(e,t){for(let n=0;n<t.length;n++)rs(e,t[n])}(t,u);const l=e.viewQuery;if(null!==l&&cs(2,l,r),!o)if(i){const n=e.viewCheckHooks;null!==n&&un(t,n)}else{const n=e.viewHooks;null!==n&&ln(t,n,2),cn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Rt(t[3],-1))}finally{nn()}}function jr(e,t,n,r){const s=t[10],o=!Zt(),i=4==(4&t[2]);try{o&&!i&&s.begin&&s.begin(),i&&Rr(e,t,r),Pr(e,t,n,r)}finally{o&&!i&&s.end&&s.end()}}function Hr(e,t,n,r,s){const o=rn();try{sn(-1),2&r&&t.length>20&&Ir(e,t,0,Zt()),n(r,s)}finally{sn(o)}}function Mr(e,t,n){jt()&&(function(e,t,n,r){const s=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||vn(n,t),fr(r,t);const i=n.initialInputs;for(let u=s;u<o;u++){const r=e.data[u],o=dt(r);o&&Xr(t,n,r);const l=Sn(t,e,u,n);fr(l,t),null!==i&&es(0,u-s,l,r,0,i),o&&(It(n.index,t)[8]=l)}}(e,t,n,kt(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,s=n.directiveEnd,o=e.expandoInstructions,i=e.firstCreatePass,u=n.index-20,l=Pt.lFrame.currentDirectiveIndex;try{sn(u);for(let n=r;n<s;n++){const r=e.data[n],s=t[n];Gt(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?qr(r,s):i&&o.push(null)}}finally{sn(-1),Gt(l)}}(e,t,n))}function Vr(e,t,n=kt){const r=t.localNames;if(null!==r){let s=t.index+1;for(let o=0;o<r.length;o+=2){const i=r[o+1],u=-1===i?n(t,e):e[i];e[s++]=u}}}function Lr(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=zr(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function zr(e,t,n,r,s,o,i,u,l,c){const a=20+r,h=a+s,d=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Er);return n}(a,h),f="function"==typeof c?c():c;return d[1]={type:e,blueprint:d,template:n,queries:null,viewQuery:u,declTNode:t,data:d.slice().fill(null,a),bindingStartIndex:a,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 o?o():o,pipeRegistry:"function"==typeof i?i():i,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Zr(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const s=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,s):n[r]=[t,s]}return n}function Ur(e,t,n,r){let s=!1;if(jt()){const o=function(e,t,n){const r=e.directiveRegistry;let s=null;if(r)for(let o=0;o<r.length;o++){const i=r[o];br(n,i.selectors,!1)&&(s||(s=[]),xn(vn(n,t),e,i.type),dt(i)?(Qr(e,n),s.unshift(i)):s.push(i))}return s}(e,t,n),i=null===r?null:{"":-1};if(null!==o){let r=0;s=!0,Yr(n,e.data.length,o.length);for(let e=0;e<o.length;e++){const t=o[e];t.providersResolver&&t.providersResolver(t)}Gr(e,n,o.length);let u=!1,l=!1;for(let s=0;s<o.length;s++){const c=o[s];n.mergedAttrs=gn(n.mergedAttrs,c.hostAttrs),Kr(e,t,c),Jr(e.data.length-1,c,i),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const a=c.type.prototype;!u&&(a.ngOnChanges||a.ngOnInit||a.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-20),u=!0),l||!a.ngOnChanges&&!a.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-20),l=!0),$r(e,c),r+=c.hostVars}!function(e,t){const n=t.directiveEnd,r=e.data,s=t.attrs,o=[];let i=null,u=null;for(let l=t.directiveStart;l<n;l++){const e=r[l],n=e.inputs,c=null===s||mr(t)?null:ts(n,s);o.push(c),i=Zr(n,l,i),u=Zr(e.outputs,l,u)}null!==i&&(i.hasOwnProperty("class")&&(t.flags|=16),i.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=i,t.outputs=u}(e,n),Wr(e,t,r)}i&&function(e,t,n){if(t){const r=e.localNames=[];for(let e=0;e<t.length;e+=2){const s=n[t[e+1]];if(null==s)throw new Error(`Export of name '${t[e+1]}' not found!`);r.push(t[e],s)}}}(n,r,i)}return n.mergedAttrs=gn(n.mergedAttrs,n.attrs),s}function $r(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function Wr(e,t,n){for(let r=0;r<n;r++)t.push(Er),e.blueprint.push(Er),e.data.push(null)}function qr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Gr(e,t,n){const r=20-t.index,s=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(r,s,n)}function Qr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Jr(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;dt(t)&&(n[""]=e)}}function Yr(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Kr(e,t,n){e.data.push(n);const r=n.factory||(n.factory=ot(n.type)),s=new dn(r,dt(n),null);e.blueprint.push(s),t.push(s)}function Xr(e,t,n){const r=kt(t,e),s=Lr(n),o=e[10],i=os(e,Or(e,s,null,n.onPush?64:16,r,t,o,o.createRenderer(r,n),null,null));e[t.index]=i}function es(e,t,n,r,s,o){const i=o[t];if(null!==i){const e=r.setInput;for(let t=0;t<i.length;){const s=i[t++],o=i[t++],u=i[t++];null!==e?r.setInput(n,u,s,o):n[o]=u}}}function ts(e,t){let n=null,r=0;for(;r<t.length;){const s=t[r];if(0!==s)if(5!==s){if("number"==typeof s)break;e.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,e[s],t[r+1])),r+=2}else r+=2;else r+=4}return n}function ns(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function rs(e,t){const n=It(t,e);if(Bt(n)){const e=n[1];80&n[2]?Pr(e,n,e.template,n[8]):n[5]>0&&function e(t){for(let r=Fr(t);null!==r;r=xr(r))for(let t=10;t<r.length;t++){const n=r[t];if(1024&n[2]){const e=n[1];Pr(e,n,e.template,n[8])}else n[5]>0&&e(n)}const n=t[1].components;if(null!==n)for(let r=0;r<n.length;r++){const s=It(n[r],t);Bt(s)&&s[5]>0&&e(s)}}(n)}}function ss(e,t){const n=It(t,e),r=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),Rr(r,n,n[8])}function os(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function is(e){for(;e;){e[2]|=64;const t=Ar(e);if(ft(e)&&!t)return e;e=t}return null}function us(e,t,n){const r=t[10];r.begin&&r.begin();try{Pr(e,t,e.template,n)}catch(s){throw ds(t,s),s}finally{r.end&&r.end()}}function ls(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=St(n),s=r[1];jr(s,r,s.template,n)}}(e[8])}function cs(e,t,n){Qt(0),t(e,n)}const as=(()=>Promise.resolve(null))();function hs(e){return e[7]||(e[7]=[])}function ds(e,t){const n=e[9],r=n?n.get(Hn,null):null;r&&r.handleError(t)}function fs(e,t,n,r,s){for(let o=0;o<n.length;){const i=n[o++],u=n[o++],l=t[i],c=e.data[i];null!==c.setInput?c.setInput(l,s,r,u):l[u]=s}}function ps(e,t,n){const r=function(e,t){return xt(t[e+20])}(t,e),s=e[11];At(s)?s.setValue(r,n):r.textContent=n}function gs(e,t,n,r,s){if(null!=r){let o,i=!1;lt(r)?o=r:ut(r)&&(i=!0,r=r[0]);const u=xt(r);0===e&&null!==n?null==s?bs(t,n,u):ws(t,n,u,s||null):1===e&&null!==n?ws(t,n,u,s||null):2===e?function(e,t,n){const r=vs(e,t);r&&function(e,t,n,r){At(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,u,i):3===e&&t.destroyNode(u),null!=o&&function(e,t,n,r,s){const o=n[7];o!==xt(n)&&gs(t,e,r,o,s);for(let i=10;i<n.length;i++){const s=n[i];Fs(s[1],s,e,t,r,o)}}(t,e,o,n,s)}}function ms(e,t){const n=e[9],r=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,Rt(s,-1)),n.splice(r,1)}function _s(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&ms(o,r),t>0&&(e[n-1][4]=r[4]);const i=Ue(e,10+t);Fs(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const u=i[19];null!==u&&u.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function ys(e,t){if(!(256&t[2])){const n=t[11];At(n)&&n.destroyNode&&Fs(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ds(e[1],e);for(;t;){let n=null;if(ut(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)ut(t)&&Ds(t[1],t),t=t[3];null===t&&(t=e),ut(t)&&Ds(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ds(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const e=t[n[r]];if(!(e instanceof dn)){const t=n[r+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const s=n[r+1],o="function"==typeof s?s(t):xt(t[s]),i=e[n[r+2]],u=n[r+3];"boolean"==typeof u?o.removeEventListener(n[r],i,u):u>=0?e[u]():e[-u].unsubscribe(),r+=2}else n[r].call(e[n[r+1]]);t[7]=null}}(e,t),1===t[1].type&&At(t[11])&&t[11].destroy();const n=t[17];if(null!==n&<(t[3])){n!==t[3]&&ms(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function ws(e,t,n,r){At(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function bs(e,t,n){At(e)?e.appendChild(t,n):t.appendChild(n)}function Cs(e,t,n,r){null!==r?ws(e,t,n,r):bs(e,t,n)}function vs(e,t){return At(e)?e.parentNode(t):t.parentNode}function Es(e,t,n,r){const s=function(e,t,n){let r=t.parent;for(;null!=r&&(3===r.type||4===r.type);)r=(t=r).parent;if(null===r)return n[0];if(t&&4===t.type&&4&t.flags)return kt(t,n).parentNode;if(2&r.flags){const t=e.data,n=t[t[r.index].directiveStart].encapsulation;if(n!==We.ShadowDom&&n!==We.Native)return null}return kt(r,n)}(e,r,t);if(null!=s){const e=t[11],o=function(e,t){return 3===e.type||4===e.type?kt(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)Cs(e,s,n[t],o);else Cs(e,s,n,o)}}function As(e,t,n,r,s,o,i){for(;null!=n;){const u=r[n.index],l=n.type;i&&0===t&&(u&&fr(xt(u),r),n.flags|=4),64!=(64&n.flags)&&(3===l||4===l?(As(e,t,n.child,r,s,o,!1),gs(t,e,s,u,o)):1===l?xs(e,t,r,n,s,o):gs(t,e,s,u,o)),n=i?n.projectionNext:n.next}}function Fs(e,t,n,r,s,o){As(n,r,e.firstChild,t,s,o,!1)}function xs(e,t,n,r,s,o){const i=n[16],u=i[6].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++)gs(t,e,s,u[l],o);else As(e,t,u,i[3],s,o,!0)}function ks(e,t,n){At(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Ts(e,t,n){At(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class Is{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView,t=e[1];return function e(t,n,r,s,o=!1){for(;null!==r;){const i=n[r.index];if(null!==i&&s.push(xt(i)),lt(i))for(let t=10;t<i.length;t++){const n=i[t],r=n[1].firstChild;null!==r&&e(n[1],n,r,s)}const u=r.type;if(3===u||4===u)e(t,n,r.child,s);else if(1===u){const t=n[16],o=t[6].projection[r.projection];if(Array.isArray(o))s.push(...o);else{const n=Ar(t);e(n[1],n,o,s,!0)}}r=o?r.projectionNext:r.next}return s}(t,e,t.firstChild,[])}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 e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}ys(this._lView[1],this._lView)}onDestroy(e){!function(e,t,n,r){const s=hs(t);s.push(null),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(r,s.length-1)}(this._lView[1],this._lView,0,e)}markForCheck(){is(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){us(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Ut(!0);try{us(e,t,n)}finally{Ut(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Fs(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Ss extends Is{constructor(e){super(e),this._view=e}detectChanges(){ls(this._view)}checkNoChanges(){!function(e){Ut(!0);try{ls(e)}finally{Ut(!1)}}(this._view)}get context(){return null}}let Bs,Os,Ns;function Rs(e,t,n){return Bs||(Bs=class extends e{}),new Bs(kt(t,n))}const Ps=new xe("Set Injector scope."),js={},Hs={},Ms=[];let Vs=void 0;function Ls(){return void 0===Vs&&(Vs=new Ve),Vs}function zs(e,t=null,n=null,r){return new Zs(e,n,t||Ls(),r)}class Zs{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&ze(t,n=>this.processProvider(n,e,t)),ze([e],e=>this.processInjectorType(e,[],s)),this.records.set(ke,$s(void 0,this));const o=this.records.get(Ps);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ae(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Te,n=K.Default){this.assertNotDestroyed();const r=Ne(this);try{if(!(n&K.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(s=e)||"object"==typeof s&&s instanceof xe)&&ne(e);t=n&&this.injectableDefInScope(n)?$s(Us(e),js):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&K.Self?Ls():this.parent).get(e,t=n&K.Optional&&t===Te?null:t)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(ae(e)),r)throw o;return function(e,t,n,r){const s=e.ngTempTokenPath;throw t.__source&&s.unshift(t.__source),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=ae(t);if(Array.isArray(t))s=t.map(ae).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):ae(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Ie,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e.ngTempTokenPath=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{Ne(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ae(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=pe(e)))return!1;let r=se(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,i=-1!==n.indexOf(o);if(void 0!==s&&(r=se(s)),null==r)return!1;if(null!=r.imports&&!i){let e;n.push(o);try{ze(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:r}=e[t];ze(r,e=>this.processProvider(e,n,r||Ms))}}this.injectorDefTypes.add(o),this.records.set(o,$s(r.factory,js));const u=r.providers;if(null!=u&&!i){const t=e;ze(u,e=>this.processProvider(e,t,u))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,n){let r=qs(e=pe(e))?e:pe(e&&e.provide);const s=function(e,t,n){return Ws(e)?$s(void 0,e.useValue):$s(function(e,t,n){let r=void 0;if(qs(e)){const t=pe(e);return ot(t)||Us(t)}if(Ws(e))r=()=>pe(e.useValue);else if((s=e)&&s.useFactory)r=()=>e.useFactory(...Me(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>je(pe(e.useExisting));else{const t=pe(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ot(t)||Us(t);r=()=>new t(...Me(e.deps))}var s;return r}(e),js)}(e);if(qs(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=$s(void 0,js,!0),t.factory=()=>Me(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,s)}hydrate(e,t){var n;return t.value===js&&(t.value=Hs,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function Us(e){const t=ne(e),n=null!==t?t.factory:ot(e);if(null!==n)return n;const r=se(e);if(null!==r)return r.factory;if(e instanceof xe)throw new Error(`Token ${ae(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=function(e,t){const n=[];for(let r=0;r<e;r++)n.push("?");return n}(t);throw new Error(`Can't resolve all parameters for ${ae(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[oe]||e[le]||e[ue]&&e[ue]());if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function $s(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ws(e){return null!==e&&"object"==typeof e&&Se in e}function qs(e){return"function"==typeof e}const Gs=function(e,t,n){return function(e,t=null,n=null,r){const s=zs(e,t,n,r);return s._resolveInjectorDefTypes(),s}({name:n},t,e,n)};let Qs=(()=>{class e{static create(e,t){return Array.isArray(e)?Gs(e,t,""):Gs(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Te,e.NULL=new Ve,e.\u0275prov=ee({token:e,providedIn:"any",factory:()=>je(ke)}),e.__NG_ELEMENT_ID__=-1,e})();function Js(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,o=0;if(null!==t)for(let i=0;i<t.length;i++){const e=t[i];"number"==typeof e?o=e:1==o?s=he(s,e):2==o&&(r=he(r,e+": "+t[++i]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}function Ys(e,t){const n=St(e)[1],r=n.data.length-1;on(n,{directiveStart:r,directiveEnd:r+1})}let Ks=null;function Xs(){if(!Ks){const e=De.Symbol;if(e&&e.iterator)Ks=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Ks=n)}}}return Ks}class eo{constructor(e){this.wrapped=e}static wrap(e){return new eo(e)}static unwrap(e){return eo.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof eo}}function to(e){return!!no(e)&&(Array.isArray(e)||!(e instanceof Map)&&Xs()in e)}function no(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ro(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function so(e,t,n,r,s,o,i,u){const l=Ht(),c=Mt(),a=e+20,h=c.firstCreatePass?function(e,t,n,r,s,o,i,u,l){const c=t.consts,a=Nr(t,e,0,i||null,Ot(c,u));Ur(t,n,a,Ot(c,l)),on(t,a);const h=a.tViews=zr(2,a,r,s,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,a),h.queries=t.queries.embeddedTView(a)),a}(e,c,l,t,n,r,s,o,i):c.data[a];Lt(h,!1);const d=l[11].createComment("");Es(c,l,d,h),fr(d,l),os(l,l[a]=ns(d,l,d,h)),ht(h)&&Mr(c,l,h),null!=i&&Vr(l,h,u)}function oo(e,t=K.Default){const n=Ht();return null===n?je(e,t):kn(Vt(),n,pe(e),t)}function io(e,t,n){const r=Ht();return ro(r,Wt(),t)&&function(e,t,n,r,s,o,i,u){const l=kt(t,n);let c,a=t.inputs;var h;null!=a&&(c=a[r])?(fs(e,n,c,r,s),at(t)&&function(e,t){const n=It(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):2===t.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=i?i(s,t.tagName||"",r):s,At(o)?o.setProperty(l,r,s):pn(r)||(l.setProperty?l.setProperty(r,s):l[r]=s))}(Mt(),function(){const e=Pt.lFrame;return Tt(e.tView,e.selectedIndex)}(),r,e,t,r[11],n),io}function uo(e,t,n,r,s){const o=s?"class":"style";fs(e,n,t.inputs[o],o,r)}function lo(e,t,n,r){const s=Ht(),o=Mt(),i=20+e,u=s[11],l=s[i]=Br(t,u,Pt.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,r,s,o,i){const u=t.consts,l=Nr(t,e,2,s,Ot(u,o));return Ur(t,n,l,Ot(u,i)),null!==l.attrs&&Js(l,l.attrs,!1),null!==l.mergedAttrs&&Js(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(e,o,s,0,t,n,r):o.data[i];Lt(c,!0);const a=c.mergedAttrs;null!==a&&fn(u,l,a);const h=c.classes;null!==h&&Ts(u,l,h);const d=c.styles;null!==d&&ks(u,l,d),Es(o,s,l,c),0===Pt.lFrame.elementDepthCount&&fr(l,s),Pt.lFrame.elementDepthCount++,ht(c)&&(Mr(o,s,c),function(e,t,n){if(ct(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const t=e.data[s];t.contentQueries&&t.contentQueries(1,n[s],s)}}}(o,c,s)),null!==r&&Vr(s,c)}function co(){let e=Vt();zt()?Pt.lFrame.isParent=!1:(e=e.parent,Lt(e,!1));const t=e;Pt.lFrame.elementDepthCount--;const n=Mt();n.firstCreatePass&&(on(n,e),ct(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&uo(n,t,Ht(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&uo(n,t,Ht(),t.stylesWithoutHost,!1)}function ao(e,t,n,r){lo(e,t,n,r),co()}function ho(e){return!!e&&"function"==typeof e.then}function fo(e,t,n=!1,r){const s=Ht(),o=Mt(),i=Vt();return function(e,t,n,r,s,o,i=!1,u){const l=ht(r),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),a=hs(t);let h=!0;if(2===r.type){const d=kt(r,t),f=u?u(d):qe,p=f.target||d,g=a.length,m=u?e=>u(xt(e[r.index])).target:r.index;if(At(n)){let i=null;if(!u&&l&&(i=function(e,t,n,r){const s=e.cleanup;if(null!=s)for(let o=0;o<s.length-1;o+=2){const e=s[o];if(e===n&&s[o+1]===r){const e=t[7],n=s[o+2];return e.length>n?e[n]:null}"string"==typeof e&&(o+=2)}return null}(e,t,s,r.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=o,i.__ngLastListenerFn__=o,h=!1;else{o=go(r,t,o,!1);const e=n.listen(f.name||p,s,o);a.push(o,e),c&&c.push(s,m,g,g+1)}}else o=go(r,t,o,!0),p.addEventListener(s,o,i),a.push(o),c&&c.push(s,m,g,i)}const d=r.outputs;let f;if(h&&null!==d&&(f=d[s])){const e=f.length;if(e)for(let n=0;n<e;n+=2){const e=t[f[n]][f[n+1]].subscribe(o),i=a.length;a.push(o,e),c&&c.push(s,r.index,i,-(i+1))}}}(o,s,s[11],i,e,t,n,r),fo}function po(e,t,n){try{return!1!==t(n)}catch(r){return ds(e,r),!1}}function go(e,t,n,r){return function s(o){if(o===Function)return n;const i=2&e.flags?It(e.index,t):t;0==(32&t[2])&&is(i);let u=po(t,n,o),l=s.__ngNextListenerFn__;for(;l;)u=po(t,l,o)&&u,l=l.__ngNextListenerFn__;return r&&!1===u&&(o.preventDefault(),o.returnValue=!1),u}}function mo(e=1){return function(e){return(Pt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Pt.lFrame.contextLView))[8]}(e)}function _o(e,t=""){const n=Ht(),r=Mt(),s=e+20,o=r.firstCreatePass?Nr(r,e,2,null,null):r.data[s],i=n[s]=function(e,t){return At(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Es(r,n,i,o),Lt(o,!1)}function yo(e){return Do("",e,""),yo}function Do(e,t,n){const r=Ht(),s=function(e,t,n,r){return ro(e,Wt(),n)?t+pt(n)+r:Er}(r,e,t,n);return s!==Er&&ps(r,rn(),s),Do}function wo(e,t,n,r,s){const o=Ht(),i=function(e,t,n,r,s,o){const i=function(e,t,n,r){const s=ro(e,t,n);return ro(e,t+1,r)||s}(e,$t(),n,s);return function(e){const t=Pt.lFrame;t.bindingIndex=t.bindingIndex+2}(),i?t+pt(n)+r+pt(s)+o:Er}(o,e,t,n,r,s);return i!==Er&&ps(o,rn(),i),wo}const bo=void 0;var Co=["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(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let vo={};function Eo(e){return e in vo||(vo[e]=De.ng&&De.ng.common&&De.ng.common.locales&&De.ng.common.locales[e]),vo[e]}var Ao=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});let Fo="en-US";function xo(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Fo=e.toLowerCase().replace(/_/g,"-"))}class ko{}class To{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ae(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let Io=(()=>{class e{}return e.NULL=new To,e})(),So=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>Bo(e),e})();const Bo=function(e){return Rs(e,Vt(),Ht())};class Oo{}var No=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Ro=(()=>{class e{}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>null}),e})();class Po{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const jo=new Po("10.2.3");class Ho{constructor(){}supports(e){return to(e)}create(e){return new Vo(e)}}const Mo=(e,t)=>t;class Vo{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Mo}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const o=!n||t&&t.currentIndex<Uo(n,r,s)?t:n,i=Uo(o,r,s),u=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const e=i-r,t=u-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,o=r+n;t<=o&&o<e&&(s[n]=r+1)}s[o.previousIndex]=t-e}}i!==u&&e(o,i,u)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!to(e))throw new Error(`Error trying to diff '${ae(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,s=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==s&&Object.is(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,n,r,t)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),o=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Xs()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&Object.is(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,e,r,t)),Object.is(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),o=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new Lo(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Zo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Zo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Lo{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class zo{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Zo{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new zo,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Uo(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class $o{constructor(){}supports(e){return e instanceof Map||no(e)}create(){return new Wo}}class Wo{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||no(e)))throw new Error(`Error trying to diff '${ae(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new qo(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class qo{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Go=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Y,new Q]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>new e([new Ho])}),e})(),Qo=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Y,new Q]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>new e([new $o])}),e})();const Jo=[new $o],Yo=new Go([new Ho]),Ko=new Qo(Jo);let Xo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ei(e,So),e})();const ei=function(e,t){return function(e,t,n,r){return Os||(Os=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=Or(this._declarationView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),Rr(t,n,e),new Is(n)}}),0===n.type?new Os(r,n,Rs(t,n,r)):null}(e,t,Vt(),Ht())};let ti=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ni(e,So),e})();const ni=function(e,t){return function(e,t,n,r){let s;Ns||(Ns=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return Rs(t,this._hostTNode,this._hostView)}get injector(){return new Nn(this._hostTNode,this._hostView)}get parentInjector(){const e=Fn(this._hostTNode,this._hostView);if(_n(e)){const t=Dn(e,this._hostView),n=yn(e);return new Nn(t[1].data[n+8],t)}return new Nn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const o=n||this.parentInjector;if(!s&&null==e.ngModule&&o){const e=o.get(Le,null);e&&(s=e)}const i=e.create(o,r,void 0,s);return this.insert(i.hostView,t),i}insert(e,t){const n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),lt(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new Ns(t,t[6],t[3]);r.detach(r.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function(e,t,n,r){const s=10+r,o=n.length;r>0&&(n[s-1][4]=t),r<o-10?(t[4]=n[s],Ze(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const i=t[17];null!==i&&n!==i&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(i,t);const u=t[19];null!==u&&u.insertView(e),t[2]|=128}(r,n,o,s);const i=function e(t,n){const r=10+t+1;if(r<n.length){const t=n[r],s=t[1].firstChild;if(null!==s)return function t(n,r){if(null!==r){const s=r.type;if(2===s)return kt(r,n);if(0===s)return e(-1,n[r.index]);if(3===s||4===s){const s=r.child;if(null!==s)return t(n,s);{const t=n[r.index];return lt(t)?e(-1,t):xt(t)}}{const e=n[16],s=e[6],o=Ar(e),i=s.projection[r.projection];return null!=i?t(o,i):t(n,r.next)}}return null}(t,s)}return n[7]}(s,o),u=n[11],l=vs(u,o[7]);return null!==l&&function(e,t,n,r,s,o){r[0]=s,r[6]=t,Fs(e,r,n,1,s,o)}(r,o[6],u,n,l,i),e.attachToViewContainerRef(this),Ze(o[8],s,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=_s(this._lContainer,t);n&&(Ue(this._lContainer[8],t),ys(n[1],n))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=_s(this._lContainer,t);return n&&null!=Ue(this._lContainer[8],t)?new Is(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const o=r[n.index];if(lt(o))s=o;else{let e;if(3===n.type)e=xt(o);else if(e=r[11].createComment(""),ft(r)){const t=r[11],s=kt(n,r);ws(t,vs(t,s),e,function(e,t){return At(e)?e.nextSibling(t):t.nextSibling}(t,s))}else Es(r[1],r,e,n);r[n.index]=s=ns(o,r,e,n),os(r,s)}return new Ns(s,n,r)}(e,t,Vt(),Ht())},ri={};class si extends Io{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=st(e);return new ui(t,this.ngModule)}}function oi(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const ii=new xe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>mt});class ui extends ko{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(vr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return oi(this.componentDef.inputs)}get outputs(){return oi(this.componentDef.outputs)}create(e,t,n,r){const s=(r=r||this.ngModule)?function(e,t){return{get:(n,r,s)=>{const o=e.get(n,ri,s);return o!==ri||r===ri?o:t.get(n,r,s)}}}(e,r.injector):e,o=s.get(Oo,Ft),i=s.get(Ro,null),u=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(At(e))return e.selectRootElement(t,n===We.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,n,this.componentDef.encapsulation):Br(l,o.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),a=this.componentDef.onPush?576:528,h={components:[],scheduler:mt,clean:as,playerHandler:null,flags:0},d=zr(0,null,null,1,0,null,null,null,null,null),f=Or(null,d,h,a,null,null,o,u,i,s);let p,g;Yt(f);try{const e=function(e,t,n,r,s,o){const i=n[1];n[20]=e;const u=Nr(i,0,2,null,null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(Js(u,l,!0),null!==e&&(fn(s,e,l),null!==u.classes&&Ts(s,e,u.classes),null!==u.styles&&ks(s,e,u.styles)));const c=r.createRenderer(e,t),a=Or(n,Lr(t),null,t.onPush?64:16,n[20],u,r,c,null,null);return i.firstCreatePass&&(xn(vn(u,n),i,t.type),Qr(i,u),Yr(u,n.length,1)),os(n,a),n[20]=a}(c,this.componentDef,f,o,u);if(c)if(n)fn(u,c,["ng-version",jo.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===s?""!==o&&t.push(o,e[++r]):8===s&&n.push(o);else{if(!Dr(s))break;s=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&fn(u,c,e),t&&t.length>0&&Ts(u,c,t.join(" "))}if(g=Tt(d,0),void 0!==t){const e=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=t[n];e.push(null!=r?Array.from(r):null)}}p=function(e,t,n,r,s){const o=n[1],i=function(e,t,n){const r=Vt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Gr(e,r,1),Kr(e,t,n));const s=Sn(t,e,t.length-1,r);fr(s,t);const o=kt(r,t);return o&&fr(o,t),s}(o,n,t);r.components.push(i),e[8]=i,s&&s.forEach(e=>e(i,t)),t.contentQueries&&t.contentQueries(1,i,n.length-1);const u=Vt();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){sn(u.index-20);const e=n[1];$r(e,t),Wr(e,n,t.hostVars),qr(t,i)}return i}(e,this.componentDef,f,h,[Ys]),Rr(d,f,null)}finally{nn()}return new li(this.componentType,p,Rs(So,g,f),f,g)}}class li extends class{}{constructor(e,t,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new Ss(r),this.componentType=e}get injector(){return new Nn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const ci=new Map;class ai extends Le{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new si(this);const n=it(e),r=e[Ee]||null;r&&xo(r),this._bootstrapComponents=_t(n.bootstrap),this._r3Injector=zs(e,t,[{provide:Le,useValue:this},{provide:Io,useValue:this.componentFactoryResolver}],ae(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Qs.THROW_IF_NOT_FOUND,n=K.Default){return e===Qs||e===Le||e===ke?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class hi extends class{}{constructor(e){super(),this.moduleType=e,null!==it(e)&&function(e){const t=new Set;!function e(n){const r=it(n,!0),s=r.id;null!==s&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ae(t)} vs ${ae(t.name)}`)}(s,ci.get(s),n),ci.set(s,n));const o=_t(r.imports);for(const i of o)t.has(i)||(t.add(i),e(i))}(e)}(e)}create(e){return new ai(this.moduleType,e)}}function di(e,t){const n=Mt();let r;const s=e+20;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const o=r.factory||(r.factory=ot(r.type)),i=Re(oo);try{const t=bn(!1),r=o();return bn(t),function(e,t,n,r){const s=n+20;s>=e.data.length&&(e.data[s]=null,e.blueprint[s]=null),t[s]=r}(n,Ht(),e,r),r}finally{Re(i)}}function fi(e,t,n){const r=Ht(),s=function(e,t){return e[t+20]}(r,e);return function(e,t){return eo.isWrapped(t)&&(t=eo.unwrap(t),e[$t()]=Er),t}(r,function(e,t){return e[1].data[t+20].pure}(r,e)?function(e,t,n,r,s,o){const i=t+n;return ro(e,i,s)?function(e,t,n){return e[t]=n}(e,i+1,o?r.call(o,s):r(s)):function(e,t){const n=e[t];return n===Er?void 0:n}(e,i+1)}(r,function(){const e=Pt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,s.transform,n,s):s.transform(n))}const pi=class extends v{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(r,s,o);return e instanceof h&&e.add(i),i}},gi=new xe("Application Initializer");let mi=(()=>{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();ho(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(je(gi,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const _i=new xe("AppId"),yi={provide:_i,useFactory:function(){return`${Di()}${Di()}${Di()}`},deps:[]};function Di(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const wi=new xe("Platform Initializer"),bi=new xe("Platform ID"),Ci=new xe("appBootstrapListener");let vi=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Ei=new xe("LocaleId"),Ai=new xe("DefaultCurrencyCode");class Fi{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const xi=function(e){return new hi(e)},ki=xi,Ti=function(e){return Promise.resolve(xi(e))},Ii=function(e){const t=xi(e),n=_t(it(e).declarations).reduce((e,t)=>{const n=st(t);return n&&e.push(new ui(n)),e},[]);return new Fi(t,n)},Si=Ii,Bi=function(e){return Promise.resolve(Ii(e))};let Oi=(()=>{class e{constructor(){this.compileModuleSync=ki,this.compileModuleAsync=Ti,this.compileModuleAndAllComponentsSync=Si,this.compileModuleAndAllComponentsAsync=Bi}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Ni=(()=>Promise.resolve(0))();function Ri(e){"undefined"==typeof Zone?Ni.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Pi{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pi(!1),this.onMicrotaskEmpty=new pi(!1),this.onStable=new pi(!1),this.onError=new pi(!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)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=De.requestAnimationFrame,t=De.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(De,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Vi(e),Mi(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Vi(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,r,s,o,i,u)=>{try{return Li(e),n.invokeTask(s,o,i,u)}finally{t&&"eventTask"===o.type&&t(),zi(e)}},onInvoke:(t,n,r,s,o,i,u)=>{try{return Li(e),t.invoke(r,s,o,i,u)}finally{zi(e)}},onHasTask:(t,n,r,s)=>{t.hasTask(r,s),n===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Vi(e),Mi(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,r,s)=>(t.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Pi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Pi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,Hi,ji,ji);try{return s.runTask(o,t,n)}finally{s.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function ji(){}const Hi={};function Mi(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Vi(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Li(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zi(e){e._nesting--,Mi(e)}class Zi{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pi,this.onMicrotaskEmpty=new pi,this.onStable=new pi,this.onError=new pi}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}let Ui=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Pi.assertNotInAngularZone(),Ri(()=>{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())Ri(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(je(Pi))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),$i=(()=>{class e{constructor(){this._applications=new Map,Gi.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Gi.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Wi{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let qi,Gi=new Wi;const Qi=new xe("AllowMultipleToken");function Ji(e,t,n=[]){const r="Platform: "+t,s=new xe(r);return(t=[])=>{let o=Yi();if(!o||o.injector.get(Qi,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0},{provide:Ps,useValue:"platform"});!function(e){if(qi&&!qi.destroyed&&!qi.injector.get(Qi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");qi=e.get(Ki);const t=e.get(wi,null);t&&t.forEach(e=>e())}(Qs.create({providers:e,name:r}))}return function(e){const t=Yi();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Yi(){return qi&&!qi.destroyed?qi:null}let Ki=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Zi:("zone.js"===e?void 0:e)||new Pi({enableLongStackTrace:zn(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),r=[{provide:Pi,useValue:n}];return n.run(()=>{const t=Qs.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),o=s.injector.get(Hn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>tu(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{o.handleError(e)}})),function(e,t,n){try{const r=n();return ho(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(o,n,()=>{const e=s.injector.get(mi);return e.runInitializers(),e.donePromise.then(()=>(xo(s.injector.get(Ei,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Xi({},t);return function(e,t,n){const r=new hi(n);return Promise.resolve(r)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(eu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ae(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(je(Qs))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function Xi(e,t){return Array.isArray(t)?t.reduce(Xi,e):Object.assign(Object.assign({},e),t)}let eu=(()=>{class e{constructor(e,t,n,r,s,o){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=zn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new y(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),u=new y(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Pi.assertNotInAngularZone(),Ri(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Pi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return(s=r)&&"function"==typeof s.schedule?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof y?e[0]:function(e=Number.POSITIVE_INFINITY){return P(_,e)}(t)(function(e,t){return t?O(e,t):new y(x(e))}(e,n));var s}(i,u.pipe(e=>{return M()((t=$,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,Z);return r.source=e,r.subjectFactory=n,r})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof ko?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Le),s=n.create(Qs.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const o=s.injector.get(Ui,null);return o&&s.injector.get($i).registerApplication(s.location.nativeElement,o),this._loadComponent(s),zn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;tu(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ci,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),tu(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(je(Pi),je(vi),je(Qs),je(Hn),je(Io),je(mi))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function tu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const nu=Ji(null,"core",[{provide:bi,useValue:"unknown"},{provide:Ki,deps:[Qs]},{provide:$i,deps:[]},{provide:vi,deps:[]}]),ru=[{provide:eu,useClass:eu,deps:[Pi,vi,Qs,Hn,Io,mi]},{provide:ii,deps:[Pi],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:mi,useClass:mi,deps:[[new Q,gi]]},{provide:Oi,useClass:Oi,deps:[]},yi,{provide:Go,useFactory:function(){return Yo},deps:[]},{provide:Qo,useFactory:function(){return Ko},deps:[]},{provide:Ei,useFactory:function(e){return xo(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new G(Ei),new Q,new Y]]},{provide:Ai,useValue:"USD"}];let su=(()=>{class e{constructor(e){}}return e.\u0275mod=et({type:e}),e.\u0275inj=te({factory:function(t){return new(t||e)(je(eu))},providers:ru}),e})(),ou=null;function iu(){return ou}const uu=new xe("DocumentToken");var lu=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});class cu{}let au=(()=>{class e extends cu{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Eo(t);if(n)return n;const r=t.split("-")[0];if(n=Eo(r),n)return n;if("en"===r)return Co;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Ao.PluralCase]}(t||this.locale)(e)){case lu.Zero:return"zero";case lu.One:return"one";case lu.Two:return"two";case lu.Few:return"few";case lu.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(je(Ei))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),hu=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new du,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fu("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(oo(ti),oo(Xo))},e.\u0275dir=nt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class du{constructor(){this.$implicit=null,this.ngIf=null}}function fu(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ae(t)}'.`)}const pu=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let gu=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw function(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${ae(e)}'`)}(e,t);return t.replace(pu,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=rt({name:"titlecase",type:e,pure:!0}),e})(),mu=(()=>{class e{}return e.\u0275mod=et({type:e}),e.\u0275inj=te({factory:function(t){return new(t||e)},providers:[{provide:cu,useClass:au}]}),e})();class _u extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new _u,ou||(ou=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=Du||(Du=document.querySelector("base"),Du)?Du.getAttribute("href"):null;return null==t?null:(n=t,yu||(yu=document.createElement("a")),yu.setAttribute("href",n),"/"===yu.pathname.charAt(0)?yu.pathname:"/"+yu.pathname);var n}resetBaseElement(){Du=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,e)}}let yu,Du=null;const wu=new xe("TRANSITION_ID"),bu=[{provide:gi,useFactory:function(e,t,n){return()=>{n.get(mi).donePromise.then(()=>{const n=iu();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[wu,uu,Qs],multi:!0}];class Cu{static init(){var e;e=new Cu,Gi=e}addToWindow(e){De.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},De.getAllAngularTestabilities=()=>e.getAllTestabilities(),De.getAllAngularRootElements=()=>e.getAllRootElements(),De.frameworkStabilizers||(De.frameworkStabilizers=[]),De.frameworkStabilizers.push(e=>{const t=De.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?iu().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const vu=new xe("EventManagerPlugins");let Eu=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(je(vu),je(Pi))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Au{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=iu().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}let Fu=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),xu=(()=>{class e extends Fu{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>iu().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(je(uu))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const ku={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/"},Tu=/%COMP%/g;function Iu(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?Iu(e,s,n):(s=s.replace(Tu,e),n.push(s))}return n}function Su(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Bu=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ou(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case We.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Nu(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case We.Native:case We.ShadowDom:return new Ru(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Iu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(je(Eu),je(xu),je(_i))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Ou{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(ku[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=ku[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=ku[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&No.DashCase?e.style.setProperty(t,n,r&No.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&No.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Su(n)):this.eventManager.addEventListener(e,t,Su(n))}}class Nu extends Ou{constructor(e,t,n,r){super(e),this.component=n;const s=Iu(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Tu,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Tu,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Ru extends Ou{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===We.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=Iu(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const e=document.createElement("style");e.textContent=s[o],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let Pu=(()=>{class e extends Au{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(je(uu))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const ju=["alt","control","meta","shift"],Hu={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Mu={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Vu={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Lu=(()=>{class e extends Au{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>iu().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let o="";if(ju.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=r,i.fullKey=o,i}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Mu.hasOwnProperty(t)&&(t=Mu[t]))}return Hu[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),ju.forEach(r=>{r!=n&&(0,Vu[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(je(uu))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const zu=Ji(nu,"browser",[{provide:bi,useValue:"browser"},{provide:wi,useValue:function(){_u.makeCurrent(),Cu.init()},multi:!0},{provide:uu,useFactory:function(){return function(e){vt=e}(document),document},deps:[]}]),Zu=[[],{provide:Ps,useValue:"root"},{provide:Hn,useFactory:function(){return new Hn},deps:[]},{provide:vu,useClass:Pu,multi:!0,deps:[uu,Pi,bi]},{provide:vu,useClass:Lu,multi:!0,deps:[uu]},[],{provide:Bu,useClass:Bu,deps:[Eu,xu,_i]},{provide:Oo,useExisting:Bu},{provide:Fu,useExisting:xu},{provide:xu,useClass:xu,deps:[uu]},{provide:Ui,useClass:Ui,deps:[Pi]},{provide:Eu,useClass:Eu,deps:[vu,Pi]},[]];let Uu=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:_i,useValue:t.appId},{provide:wu,useExisting:_i},bu]}}}return e.\u0275mod=et({type:e}),e.\u0275inj=te({factory:function(t){return new(t||e)(je(e,12))},providers:Zu,imports:[mu,su]}),e})();function $u(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(t){o(t)}}function u(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,u)}l((r=r.apply(e,t||[])).next())}))}"undefined"!=typeof window&&window,n("jim7");const Wu=new xe("JWT_OPTIONS");let qu=(()=>{class e{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="";if((e=String(e).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let n,r,s=0,o=0;r=e.charAt(o++);~r&&(n=s%4?64*n+r:r,s++%4)?t+=String.fromCharCode(255&n>>(-2*s&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return t}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){if(!e||""===e)return null;const t=e.split(".");if(3!==t.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const n=this.urlBase64Decode(t[1]);if(!n)throw new Error("Cannot decode the token.");return JSON.parse(n)}getTokenExpirationDate(e=this.tokenGetter()){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;const n=new Date(0);return n.setUTCSeconds(t.exp),n}isTokenExpired(e=this.tokenGetter(),t){if(!e||""===e)return!0;const n=this.getTokenExpirationDate(e);return t=t||0,null!==n&&!(n.valueOf()>(new Date).valueOf()+1e3*t)}getAuthScheme(e,t){return"function"==typeof e?e(t):e}}return e.\u0275fac=function(t){return new(t||e)(je(Wu))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Gu=(()=>{class e{constructor(){this.ready=!1,window.homebridge.i18nGetTranslation().then(e=>{this.translations=e,this.ready=!0})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Qu=(()=>{class e{constructor(e){this.translateService=e}transform(e){return this.translateService.translations[e]}}return e.\u0275fac=function(t){return new(t||e)(oo(Gu))},e.\u0275pipe=rt({name:"translate",type:e,pure:!0}),e})();function Ju(e,t){1&e&&(lo(0,"div"),lo(1,"div",1),ao(2,"p",2),di(3,"translate"),lo(4,"p",3),lo(5,"span"),_o(6),di(7,"translate"),co(),lo(8,"a",4),_o(9," https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control "),co(),lo(10,"span"),_o(11),di(12,"translate"),co(),co(),co(),co()),2&e&&(Tr(2),io("innerHTML",fi(3,3,"accessories.message_must_use_insecure_mode"),dr),Tr(4),yo(fi(7,5,"accessories.message_please_see")),Tr(5),yo(fi(12,7,"accessories.message_for_more_information")))}function Yu(e,t){1&e&&ao(0,"p",9)}function Ku(e,t){if(1&e){const e=Ht();lo(0,"div",10),lo(1,"button",11),fo("click",(function(){return Pt.lFrame.contextLView=e,mo(3).linkAccount()})),_o(2),di(3,"translate"),co(),co()}2&e&&(Tr(2),Do(" ",fi(3,1,"plugins.settings.custom.homebridge-gsh.label_link_account")," "))}function Xu(e,t){1&e&&(lo(0,"div",15),lo(1,"p",16),lo(2,"strong"),_o(3),di(4,"translate"),co(),co(),co()),2&e&&(Tr(3),Do(" ",fi(4,1,"plugins.settings.custom.homebridge-gsh.message_homebridge_restart_required")," "))}function el(e,t){if(1&e&&(lo(0,"div",12),ao(1,"i",13),lo(2,"h4",14),_o(3),di(4,"titlecase"),di(5,"translate"),co(),so(6,Xu,5,3,"div",8),co()),2&e){const e=mo(3);Tr(3),wo(" ",fi(4,3,e.linkType)," ",fi(5,5,"plugins.settings.custom.homebridge-gsh.label_account_linked")," "),Tr(3),io("ngIf",e.justLinked)}}function tl(e,t){1&e&&(lo(0,"div",15),_o(1," Search for "),lo(2,"a",17),_o(3," Homebridge in the Google Home app "),co(),_o(4," and link the action to complete setup. "),co())}function nl(e,t){if(1&e&&(lo(0,"div"),ao(1,"p",2),di(2,"translate"),so(3,Yu,1,0,"p",5),so(4,Ku,4,3,"div",6),so(5,el,7,7,"div",7),so(6,tl,5,0,"div",8),co()),2&e){const e=mo(2);Tr(1),io("innerHTML",fi(2,5,"plugins.settings.custom.homebridge-gsh.message_about"),dr),Tr(2),io("ngIf",!e.pluginConfig.token),Tr(1),io("ngIf",!e.pluginConfig.token),Tr(1),io("ngIf",e.pluginConfig.token),Tr(1),io("ngIf",e.pluginConfig.token)}}function rl(e,t){if(1&e&&(lo(0,"div"),so(1,Ju,13,9,"div",0),so(2,nl,7,7,"div",0),co()),2&e){const e=mo();Tr(1),io("ngIf",!e.env.enableAccessories),Tr(1),io("ngIf",e.env.enableAccessories)}}const sl=new qu;let ol=(()=>{class e{constructor(e){this.translateService=e,this.linkDomain="https://homebridge-gsh.iot.oz.nu",this.linkUrl=this.linkDomain+"/link-account",this.env=window.homebridge.serverEnv.env,this.justLinked=!1,this.showAdvanced=!1,this.ready=!1,this.windowMessageListener=e=>{if(e.origin===this.linkDomain)try{const t=JSON.parse(e.data);t.token&&this.processToken(t.token)}catch(e){console.error(e)}}}ngOnInit(){return $u(this,void 0,void 0,(function*(){this.schema=yield window.homebridge.getPluginConfigSchema();const e=yield window.homebridge.getPluginConfig();e.length?(this.pluginConfig=e[0],window.homebridge.showSchemaForm()):this.pluginConfig={name:"Google Smart Home",platform:this.schema.pluginAlias},this.parseToken(),this.ready=!0,window.homebridge.addEventListener("configChanged",e=>{this.pluginConfig=e.data[0]})}))}updateConfig(){return $u(this,void 0,void 0,(function*(){return window.homebridge.updatePluginConfig([this.pluginConfig])}))}linkAccount(){window.addEventListener("message",this.windowMessageListener,!1);const e=window.top.outerHeight/2+window.top.screenY-350,t=window.top.outerWidth/2+window.top.screenX-225;this.popup=window.open(this.linkUrl,"oznu-google-smart-home-auth","toolbar=no, location=no, directories=no, status=no, menubar=no scrollbars=no, resizable=no, copyhistory=no, width=450, height=700, top="+e+", left="+t),this.originCheckInterval=setInterval(()=>{this.popup.postMessage("origin-check",this.linkDomain)},2e3)}processToken(e){return $u(this,void 0,void 0,(function*(){clearInterval(this.originCheckInterval),this.popup&&this.popup.close(),this.pluginConfig.token=e,this.pluginConfig.notice="Keep your token a secret!",this.parseToken(),this.justLinked=!0,yield this.updateConfig(),yield window.homebridge.savePluginConfig(),window.homebridge.showSchemaForm()}))}parseToken(){if(this.pluginConfig.token)try{const e=sl.decodeToken(this.pluginConfig.token);this.linkType=e.id.split("|")[0].split("-")[0]}catch(e){window.homebridge.toast.error("Invalid account linking token in config.json",this.translateService.translations["toast.title_error"]),delete this.pluginConfig.token}}ngOnDestroy(){clearInterval(this.originCheckInterval),window.removeEventListener("message",this.windowMessageListener),this.popup&&this.popup.close()}}return e.\u0275fac=function(t){return new(t||e)(oo(Gu))},e.\u0275cmp=Je({type:e,selectors:[["app-root"]],decls:1,vars:1,consts:[[4,"ngIf"],["role","alert",1,"alert","alert-warning"],[3,"innerHTML"],[1,"mb-0"],["target","_blank","rel","noopener noreferrer","href","https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control"],["translate","plugins.settings.custom.homebridge-gsh.message_account_link_required",4,"ngIf"],["class","text-center",4,"ngIf"],["class","text-center mt-1",4,"ngIf"],["class","mt-3",4,"ngIf"],["translate","plugins.settings.custom.homebridge-gsh.message_account_link_required"],[1,"text-center"],[1,"btn","btn-primary","btn-lg",3,"click"],[1,"text-center","mt-1"],[1,"fas","fa-check-circle","primary-text",2,"font-size","50px"],[1,"mt-2"],[1,"mt-3"],[1,"primary-text"],["target","_blank","href","https://assistant.google.com/services/a/uid/000000b558f0d5d1?hl=en"]],template:function(e,t){1&e&&so(0,rl,3,2,"div",0),2&e&&io("ngIf",t.translateService.ready&&t.ready)},directives:[hu],pipes:[Qu,gu],styles:[""]}),e})(),il=(()=>{class e{}return e.\u0275mod=et({type:e,bootstrap:[ol]}),e.\u0275inj=te({factory:function(t){return new(t||e)},providers:[],imports:[[Uu]]}),e})();(function(){if(Ln)throw new Error("Cannot enable prod mode after platform setup.");Vn=!1})(),zu().bootstrapModule(il).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);