UNPKG

homebridge-gsh

Version:
1 lines 121 kB
"use strict";(self.webpackChunkpublic=self.webpackChunkpublic||[]).push([[179],{701:($r,wi,Ur)=>{function te(e){return"function"==typeof e}function ku(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Ei=ku(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Ci(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class it{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(te(r))try{r()}catch(i){t=i instanceof Ei?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Bu(i)}catch(s){t=t??[],s instanceof Ei?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ei(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Bu(t);else{if(t instanceof it){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Ci(n,t)}remove(t){const{_finalizers:n}=this;n&&Ci(n,t),t instanceof it&&t._removeParent(this)}}it.EMPTY=(()=>{const e=new it;return e.closed=!0,e})();const Lu=it.EMPTY;function ju(e){return e instanceof it||e&&"closed"in e&&te(e.remove)&&te(e.add)&&te(e.unsubscribe)}function Bu(e){te(e)?e():e.unsubscribe()}const zt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zr={setTimeout(e,t,...n){const{delegate:r}=zr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=zr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Vu(e){zr.setTimeout(()=>{const{onUnhandledError:t}=zt;if(!t)throw e;t(e)})}function Hu(){}const Ug=Ii("C",void 0,void 0);function Ii(e,t,n){return{kind:e,value:t,error:n}}let Gt=null;function Gr(e){if(zt.useDeprecatedSynchronousErrorHandling){const t=!Gt;if(t&&(Gt={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Gt;if(Gt=null,n)throw r}}else e()}class bi extends it{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ju(t)&&t.add(this)):this.destination=Qg}static create(t,n,r){return new Wn(t,n,r)}next(t){this.isStopped?Mi(function Gg(e){return Ii("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Mi(function zg(e){return Ii("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Mi(Ug,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Wg=Function.prototype.bind;function Si(e,t){return Wg.call(e,t)}class Zg{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){qr(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){qr(r)}else qr(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){qr(n)}}}class Wn extends bi{constructor(t,n,r){let o;if(super(),te(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&zt.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Si(t.next,i),error:t.error&&Si(t.error,i),complete:t.complete&&Si(t.complete,i)}):o=t}this.destination=new Zg(o)}}function qr(e){zt.useDeprecatedSynchronousErrorHandling?function qg(e){zt.useDeprecatedSynchronousErrorHandling&&Gt&&(Gt.errorThrown=!0,Gt.error=e)}(e):Vu(e)}function Mi(e,t){const{onStoppedNotification:n}=zt;n&&zr.setTimeout(()=>n(e,t))}const Qg={closed:!0,next:Hu,error:function Yg(e){throw e},complete:Hu},Ti="function"==typeof Symbol&&Symbol.observable||"@@observable";function $u(e){return e}let Te=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function Jg(e){return e&&e instanceof bi||function Kg(e){return e&&te(e.next)&&te(e.error)&&te(e.complete)}(e)&&ju(e)}(n)?n:new Wn(n,r,o);return Gr(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=zu(r))((o,i)=>{const s=new Wn({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Ti](){return this}pipe(...n){return function Uu(e){return 0===e.length?$u:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=zu(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function zu(e){var t;return null!==(t=e??zt.Promise)&&void 0!==t?t:Promise}const Xg=ku(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ai=(()=>{class e extends Te{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Gu(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Xg}next(n){Gr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Gr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Gr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Lu:(this.currentObservers=null,i.push(n),new it(()=>{this.currentObservers=null,Ci(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Te;return n.source=this,n}}return e.create=(t,n)=>new Gu(t,n),e})();class Gu extends Ai{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Lu}}function Zn(e){return t=>{if(function em(e){return te(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Wr(e,t,n,r,o){return new tm(e,t,n,r,o)}class tm extends bi{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Yn(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}function Ot(e){return this instanceof Ot?(this.v=e,this):new Ot(e)}function Zu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Fi(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Yu=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Qu(e){return te(e?.then)}function Ku(e){return te(e[Ti])}function Ju(e){return Symbol.asyncIterator&&te(e?.[Symbol.asyncIterator])}function Xu(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const el=function Am(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function tl(e){return te(e?.[el])}function nl(e){return function Wu(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(h){return function(p){return Promise.resolve(p).then(h,d)}}),o[Symbol.asyncIterator]=function(){return this},o;function a(h,p){r[h]&&(o[h]=function(g){return new Promise(function(D,v){i.push([h,g,D,v])>1||u(h,g)})},p&&(o[h]=p(o[h])))}function u(h,p){try{!function l(h){h.value instanceof Ot?Promise.resolve(h.value.v).then(c,d):f(i[0][2],h)}(r[h](p))}catch(g){f(i[0][3],g)}}function c(h){u("next",h)}function d(h){u("throw",h)}function f(h,p){h(p),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Ot(n.read());if(o)return yield Ot(void 0);yield yield Ot(r)}}finally{n.releaseLock()}})}function rl(e){return te(e?.getReader)}function kt(e){if(e instanceof Te)return e;if(null!=e){if(Ku(e))return function Nm(e){return new Te(t=>{const n=e[Ti]();if(te(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Yu(e))return function xm(e){return new Te(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(Qu(e))return function Pm(e){return new Te(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Vu)})}(e);if(Ju(e))return ol(e);if(tl(e))return function Fm(e){return new Te(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(rl(e))return function Rm(e){return ol(nl(e))}(e)}throw Xu(e)}function ol(e){return new Te(t=>{(function Om(e,t){var n,r,o,i;return Yn(this,void 0,void 0,function*(){try{for(n=Zu(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Lt(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function il(e,t,n=1/0){return te(t)?il((r,o)=>function nm(e,t){return Zn((n,r)=>{let o=0;n.subscribe(Wr(r,i=>{r.next(e.call(t,i,o++))}))})}((i,s)=>t(r,i,o,s))(kt(e(r,o))),n):("number"==typeof t&&(n=t),Zn((r,o)=>function km(e,t,n,r,o,i,s,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},h=g=>l<r?p(g):u.push(g),p=g=>{i&&t.next(g),l++;let D=!1;kt(n(g,c++)).subscribe(Wr(t,v=>{o?.(v),i?h(v):t.next(v)},()=>{D=!0},void 0,()=>{if(D)try{for(l--;u.length&&l<r;){const v=u.shift();s?Lt(t,s,()=>p(v)):p(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(Wr(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const sl=new Te(e=>e.complete());function Ri(e){return e[e.length-1]}function al(e,t=0){return Zn((n,r)=>{n.subscribe(Wr(r,o=>Lt(r,e,()=>r.next(o),t),()=>Lt(r,e,()=>r.complete(),t),o=>Lt(r,e,()=>r.error(o),t)))})}function ul(e,t=0){return Zn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ll(e,t){if(!e)throw new Error("Iterable cannot be null");return new Te(n=>{Lt(n,t,()=>{const r=e[Symbol.asyncIterator]();Lt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ym(...e){const t=function Vm(e){return function Bm(e){return e&&te(e.schedule)}(Ri(e))?e.pop():void 0}(e),n=function Hm(e,t){return"number"==typeof Ri(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?kt(r[0]):function Lm(e=1/0){return il($u,e)}(n)(function Zm(e,t){return t?function Wm(e,t){if(null!=e){if(Ku(e))return function $m(e,t){return kt(e).pipe(ul(t),al(t))}(e,t);if(Yu(e))return function zm(e,t){return new Te(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Qu(e))return function Um(e,t){return kt(e).pipe(ul(t),al(t))}(e,t);if(Ju(e))return ll(e,t);if(tl(e))return function Gm(e,t){return new Te(n=>{let r;return Lt(n,t,()=>{r=e[el](),Lt(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>te(r?.return)&&r.return()})}(e,t);if(rl(e))return function qm(e,t){return ll(nl(e),t)}(e,t)}throw Xu(e)}(e,t):kt(e)}(r,t)):sl}function Oi(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Wn({next:()=>{r.unsubscribe(),e()}});return kt(t(...n)).subscribe(r)}function G(e){for(let t in e)if(e[t]===G)return t;throw Error("Could not find renamed property on target object.")}function q(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(q).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 Li(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Km=G({__forward_ref__:G});function ji(e){return e.__forward_ref__=ji,e.toString=function(){return q(this())},e}function S(e){return function Bi(e){return"function"==typeof e&&e.hasOwnProperty(Km)&&e.__forward_ref__===ji}(e)?e():e}function Vi(e){return e&&!!e.\u0275providers}const cl="https://g.co/ng/security#xss";class C extends Error{constructor(t,n){super(Zr(t,n)),this.code=t}}function Zr(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function A(e){return"string"==typeof e?e:null==e?"":String(e)}function Yr(e,t){throw new C(-201,!1)}function He(e,t){null==e&&function U(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function W(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function on(e){return{providers:e.providers||[],imports:e.imports||[]}}function Qr(e){return dl(e,Kr)||dl(e,hl)}function dl(e,t){return e.hasOwnProperty(t)?e[t]:null}function fl(e){return e&&(e.hasOwnProperty(Hi)||e.hasOwnProperty(oy))?e[Hi]:null}const Kr=G({\u0275prov:G}),Hi=G({\u0275inj:G}),hl=G({ngInjectableDef:G}),oy=G({ngInjectorDef:G});var T=(()=>((T=T||{})[T.Default=0]="Default",T[T.Host=1]="Host",T[T.Self=2]="Self",T[T.SkipSelf=4]="SkipSelf",T[T.Optional=8]="Optional",T))();let $i;function $e(e){const t=$i;return $i=e,t}function pl(e,t,n){const r=Qr(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&T.Optional?null:void 0!==t?t:void Yr(q(e))}const Y=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Qn={},Ui="__NG_DI_FLAG__",Jr="ngTempTokenPath",sy="ngTokenPath",ay=/\n/gm,uy="\u0275",gl="__source";let Kn;function sn(e){const t=Kn;return Kn=e,t}function ly(e,t=T.Default){if(void 0===Kn)throw new C(-203,!1);return null===Kn?pl(e,void 0,t):Kn.get(e,t&T.Optional?null:void 0,t)}function B(e,t=T.Default){return(function iy(){return $i}()||ly)(S(e),t)}function Xr(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function zi(e){const t=[];for(let n=0;n<e.length;n++){const r=S(e[n]);if(Array.isArray(r)){if(0===r.length)throw new C(900,!1);let o,i=T.Default;for(let s=0;s<r.length;s++){const a=r[s],u=dy(a);"number"==typeof u?-1===u?o=a.token:i|=u:o=a}t.push(B(o,i))}else t.push(B(r))}return t}function dy(e){return e[Ui]}function yt(e){return{toString:e}.toString()}var st=(()=>((st=st||{})[st.OnPush=0]="OnPush",st[st.Default=1]="Default",st))(),at=(()=>{return(e=at||(at={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",at;var e})();const Dt={},V=[],eo=G({\u0275cmp:G}),Gi=G({\u0275dir:G}),qi=G({\u0275pipe:G}),yl=G({\u0275mod:G}),vt=G({\u0275fac:G}),Xn=G({__NG_ELEMENT_ID__:G});let py=0;function Dl(e){return yt(()=>{const t=_l(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===st.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||at.Emulated,id:"c"+py++,styles:e.styles||V,_:null,schemas:e.schemas||null,tView:null};wl(n);const r=e.dependencies;return n.directiveDefs=to(r,!1),n.pipeDefs=to(r,!0),n})}function my(e){return z(e)||pe(e)}function yy(e){return null!==e}function er(e){return yt(()=>({type:e.type,bootstrap:e.bootstrap||V,declarations:e.declarations||V,imports:e.imports||V,exports:e.exports||V,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vl(e,t){if(null==e)return Dt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function Ue(e){return yt(()=>{const t=_l(e);return wl(t),t})}function _e(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function z(e){return e[eo]||null}function pe(e){return e[Gi]||null}function Ae(e){return e[qi]||null}function _l(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||V,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:vl(e.inputs,t),outputs:vl(e.outputs)}}function wl(e){e.features?.forEach(t=>t(e))}function to(e,t){if(!e)return null;const n=t?Ae:my;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(yy)}const _t=0,w=1,P=2,X=3,Qe=4,qt=5,ge=6,an=7,ne=8,no=9,ro=10,k=11,Wi=12,nr=13,El=14,un=15,me=16,rr=17,ln=18,ut=19,or=20,Cl=21,Q=22,Zi=1,Il=2,oo=7,io=8,cn=9,we=10;function Le(e){return Array.isArray(e)&&"object"==typeof e[Zi]}function Ke(e){return Array.isArray(e)&&!0===e[Zi]}function Yi(e){return 0!=(4&e.flags)}function ir(e){return e.componentOffset>-1}function so(e){return 1==(1&e.flags)}function Je(e){return!!e.template}function vy(e){return 0!=(256&e[P])}function Wt(e,t){return e.hasOwnProperty(vt)?e[vt]:null}class Ey{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ml(e){return e.type.prototype.ngOnChanges&&(e.setInput=Iy),Cy}function Cy(){const e=Al(this),t=e?.current;if(t){const n=e.previous;if(n===Dt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Iy(e,t,n,r){const o=this.declaredInputs[n],i=Al(e)||function by(e,t){return e[Tl]=t}(e,{previous:Dt,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new Ey(u&&u.currentValue,t,a===Dt),e[r]=t}const Tl="__ngSimpleChanges__";function Al(e){return e[Tl]||null}const ze=function(e,t,n){};function fe(e){for(;Array.isArray(e);)e=e[_t];return e}function je(e,t){return fe(t[e.index])}function Pl(e,t){return e.data[t]}function Ne(e,t){const n=t[e];return Le(n)?n:n[_t]}function lo(e){return 64==(64&e[P])}function Bt(e,t){return null==t?null:e[t]}function Fl(e){e[ln]=0}function Ki(e,t){e[qt]+=t;let n=e,r=e[X];for(;null!==r&&(1===t&&1===n[qt]||-1===t&&0===n[qt]);)r[qt]+=t,n=r,r=r[X]}const N={lFrame:Gl(null),bindingsEnabled:!0};function Ol(){return N.bindingsEnabled}function y(){return N.lFrame.lView}function j(){return N.lFrame.tView}function he(){let e=jl();for(;null!==e&&64===e.type;)e=e.parent;return e}function jl(){return N.lFrame.currentTNode}function lt(e,t){const n=N.lFrame;n.currentTNode=e,n.isParent=t}function Ji(){return N.lFrame.isParent}function fn(){return N.lFrame.bindingIndex++}function jy(e,t){const n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,es(t)}function es(e){N.lFrame.currentDirectiveIndex=e}function ns(e){N.lFrame.currentQueryIndex=e}function Vy(e){const t=e[w];return 2===t.type?t.declTNode:1===t.type?e[ge]:null}function Ul(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&T.Host||(o=Vy(i),null===o||(i=i[un],10&o.type))););if(null===o)return!1;t=o,e=i}const r=N.lFrame=zl();return r.currentTNode=t,r.lView=e,!0}function rs(e){const t=zl(),n=e[w];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zl(){const e=N.lFrame,t=null===e?null:e.child;return null===t?Gl(e):t}function Gl(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ql(){const e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Wl=ql;function os(){const e=ql();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ce(){return N.lFrame.selectedIndex}function Zt(e){N.lFrame.selectedIndex=e}function co(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:l,ngOnDestroy:c}=i;s&&(e.contentHooks??(e.contentHooks=[])).push(-n,s),a&&((e.contentHooks??(e.contentHooks=[])).push(n,a),(e.contentCheckHooks??(e.contentCheckHooks=[])).push(n,a)),u&&(e.viewHooks??(e.viewHooks=[])).push(-n,u),l&&((e.viewHooks??(e.viewHooks=[])).push(n,l),(e.viewCheckHooks??(e.viewCheckHooks=[])).push(n,l)),null!=c&&(e.destroyHooks??(e.destroyHooks=[])).push(n,c)}}function fo(e,t,n){Zl(e,t,3,n)}function ho(e,t,n,r){(3&e[P])===n&&Zl(e,t,n,r)}function is(e,t){let n=e[P];(3&n)===t&&(n&=2047,n+=1,e[P]=n)}function Zl(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let u=void 0!==r?65535&e[ln]:0;u<s;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[ln]+=65536),(a<i||-1==i)&&(Yy(e,n,t,u),e[ln]=(4294901760&e[ln])+u+2),u++}function Yy(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];if(o){if(e[P]>>11<e[ln]>>16&&(3&e[P])===t){e[P]+=2048,ze(4,a,i);try{i.call(a)}finally{ze(5,a,i)}}}else{ze(4,a,i);try{i.call(a)}finally{ze(5,a,i)}}}const hn=-1;class ar{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function as(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];Ql(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Yl(e){return 3===e||4===e||6===e}function Ql(e){return 64===e.charCodeAt(0)}function ur(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||Kl(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function Kl(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}function Jl(e){return e!==hn}function po(e){return 32767&e}function go(e,t){let n=function Xy(e){return e>>16}(e),r=t;for(;n>0;)r=r[un],n--;return r}let us=!0;function mo(e){const t=us;return us=e,t}const Xl=255,ec=5;let eD=0;const ct={};function yo(e,t){const n=tc(e,t);if(-1!==n)return n;const r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,ls(r.data,e),ls(t,null),ls(r.blueprint,null));const o=cs(e,t),i=e.injectorIndex;if(Jl(o)){const s=po(o),a=go(o,t),u=a[w].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function ls(e,t){e.push(0,0,0,0,0,0,0,0,t)}function tc(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function cs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=uc(o),null===r)return hn;if(n++,o=o[un],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return hn}function ds(e,t,n){!function tD(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xn)&&(r=n[Xn]),null==r&&(r=n[Xn]=eD++);const o=r&Xl;t.data[e+(o>>ec)]|=1<<o}(e,t,n)}function nc(e,t,n){if(n&T.Optional||void 0!==e)return e;Yr()}function rc(e,t,n,r){if(n&T.Optional&&void 0===r&&(r=null),!(n&(T.Self|T.Host))){const o=e[no],i=$e(void 0);try{return o?o.get(t,r,n&T.Optional):pl(t,r,n&T.Optional)}finally{$e(i)}}return nc(r,0,n)}function oc(e,t,n,r=T.Default,o){if(null!==e){if(1024&t[P]){const s=function aD(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&1024&s[P]&&!(256&s[P]);){const a=ic(i,s,n,r|T.Self,ct);if(a!==ct)return a;let u=i.parent;if(!u){const l=s[Cl];if(l){const c=l.get(n,ct,r);if(c!==ct)return c}u=uc(s),s=s[un]}i=u}return o}(e,t,n,r,ct);if(s!==ct)return s}const i=ic(e,t,n,r,ct);if(i!==ct)return i}return rc(t,n,r,o)}function ic(e,t,n,r,o){const i=function oD(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Xn)?e[Xn]:void 0;return"number"==typeof t?t>=0?t&Xl:iD:t}(n);if("function"==typeof i){if(!Ul(t,e,r))return r&T.Host?nc(o,0,r):rc(t,n,r,o);try{const s=i(r);if(null!=s||r&T.Optional)return s;Yr()}finally{Wl()}}else if("number"==typeof i){let s=null,a=tc(e,t),u=hn,l=r&T.Host?t[me][ge]:null;for((-1===a||r&T.SkipSelf)&&(u=-1===a?cs(e,t):t[a+8],u!==hn&&ac(r,!1)?(s=t[w],a=po(u),t=go(u,t)):a=-1);-1!==a;){const c=t[w];if(sc(i,a,c.data)){const d=rD(a,t,n,s,r,l);if(d!==ct)return d}u=t[a+8],u!==hn&&ac(r,t[w].data[a+8]===l)&&sc(i,a,t)?(s=c,a=po(u),t=go(u,t)):a=-1}}return o}function rD(e,t,n,r,o,i){const s=t[w],a=s.data[e+8],c=function Do(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<u&&n===p||h>=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Je(h)&&h.type===n)return u}return null}(a,s,n,null==r?ir(a)&&us:r!=s&&0!=(3&a.type),o&T.Host&&i===a);return null!==c?Yt(t,s,c,a):ct}function Yt(e,t,n,r){let o=e[n];const i=t.data;if(function Qy(e){return e instanceof ar}(o)){const s=o;s.resolving&&function Jm(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function $(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():A(e)}(i[n]));const a=mo(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?$e(s.injectImpl):null;Ul(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Zy(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Ml(t);(n.preOrderHooks??(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==u&&$e(u),mo(a),s.resolving=!1,Wl()}}return o}function sc(e,t,n){return!!(n[t+(e>>ec)]&1<<e)}function ac(e,t){return!(e&T.Self||e&T.Host&&t)}class pn{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return oc(this._tNode,this._lView,t,Xr(r),n)}}function iD(){return new pn(he(),y())}function uc(e){const t=e[w],n=t.type;return 2===n?t.declTNode:1===n?e[ge]:null}class F{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=W({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Qt(e,t){e.forEach(n=>Array.isArray(n)?Qt(n,t):t(n))}function cc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function vo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var xe=(()=>((xe=xe||{})[xe.Important=1]="Important",xe[xe.DashCase=2]="DashCase",xe))();const Es=new Map;let FD=0;const Is="__ngContext__";function ye(e,t){Le(t)?(e[Is]=t[or],function OD(e){Es.set(e[or],e)}(t)):e[Is]=t}let bs;function Ss(e,t){return bs(e,t)}function gr(e){const t=e[X];return Ke(t)?t[X]:t}function Ms(e){return xc(e[nr])}function Ts(e){return xc(e[Qe])}function xc(e){for(;null!==e&&!Ke(e);)e=e[Qe];return e}function wn(e,t,n,r,o){if(null!=r){let i,s=!1;Ke(r)?i=r:Le(r)&&(s=!0,r=r[_t]);const a=fe(r);0===e&&null!==n?null==o?Lc(t,n,a):Kt(t,n,a,o||null,!0):1===e&&null!==n?Kt(t,n,a,o||null,!0):2===e?function Os(e,t,n){const r=bo(e,t);r&&function tv(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function ov(e,t,n,r,o){const i=n[oo];i!==fe(n)&&wn(t,e,r,i,o);for(let a=we;a<n.length;a++){const u=n[a];mr(u[w],u,e,t,r,i)}}(t,e,i,n,o)}}function Ns(e,t,n){return e.createElement(t,n)}function Fc(e,t){const n=e[cn],r=n.indexOf(t),o=t[X];512&t[P]&&(t[P]&=-513,Ki(o,-1)),n.splice(r,1)}function xs(e,t){if(e.length<=we)return;const n=we+t,r=e[n];if(r){const o=r[rr];null!==o&&o!==e&&Fc(o,r),t>0&&(e[n-1][Qe]=r[Qe]);const i=vo(e,we+t);!function WD(e,t){mr(e,t,t[k],2,null,null),t[_t]=null,t[ge]=null}(r[w],r);const s=i[ut];null!==s&&s.detachView(i[w]),r[X]=null,r[Qe]=null,r[P]&=-65}return r}function Rc(e,t){if(!(128&t[P])){const n=t[k];n.destroyNode&&mr(e,t,n,3,null,null),function QD(e){let t=e[nr];if(!t)return Ps(e[w],e);for(;t;){let n=null;if(Le(t))n=t[nr];else{const r=t[we];r&&(n=r)}if(!n){for(;t&&!t[Qe]&&t!==e;)Le(t)&&Ps(t[w],t),t=t[X];null===t&&(t=e),Le(t)&&Ps(t[w],t),n=t&&t[Qe]}t=n}}(t)}}function Ps(e,t){if(!(128&t[P])){t[P]&=-65,t[P]|=128,function ev(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof ar)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],u=i[s+1];ze(4,a,u);try{u.call(a)}finally{ze(5,a,u)}}else{ze(4,o,i);try{i.call(o)}finally{ze(5,o,i)}}}}}(e,t),function XD(e,t){const n=e.cleanup,r=t[an];let o=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+3];s>=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i<r.length;i++)(0,r[i])();t[an]=null}}(e,t),1===t[w].type&&t[k].destroy();const n=t[rr];if(null!==n&&Ke(t[X])){n!==t[X]&&Fc(n,t);const r=t[ut];null!==r&&r.detachView(e)}!function kD(e){Es.delete(e[or])}(t)}}function Oc(e,t,n){return function kc(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[_t];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===at.None||i===at.Emulated)return null}return je(r,n)}}(e,t.parent,n)}function Kt(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Lc(e,t,n){e.appendChild(t,n)}function jc(e,t,n,r,o){null!==r?Kt(e,t,n,r,o):Lc(e,t,n)}function bo(e,t){return e.parentNode(t)}let Fs,To,js,Ao,Hc=function Vc(e,t,n){return 40&e.type?je(e,n):null};function So(e,t,n,r){const o=Oc(e,r,t),i=t[k],a=function Bc(e,t,n){return Hc(e,t,n)}(r.parent||t[ge],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u<n.length;u++)jc(i,o,n[u],a,!1);else jc(i,o,n,a,!1);void 0!==Fs&&Fs(i,r,t,n,o)}function Mo(e,t){if(null!==t){const n=t.type;if(3&n)return je(t,e);if(4&n)return Rs(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Mo(e,r);{const o=e[t.index];return Ke(o)?Rs(-1,o):fe(o)}}if(32&n)return Ss(t,e)()||fe(e[t.index]);{const r=Uc(e,t);return null!==r?Array.isArray(r)?r[0]:Mo(gr(e[me]),r):Mo(e,t.next)}}return null}function Uc(e,t){return null!==t?e[me][ge].projection[t.projection]:null}function Rs(e,t){const n=we+e+1;if(n<t.length){const r=t[n],o=r[w].firstChild;if(null!==o)return Mo(r,o)}return t[oo]}function ks(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],u=n.type;if(s&&0===t&&(a&&ye(fe(a),r),n.flags|=2),32!=(32&n.flags))if(8&u)ks(e,t,n.child,r,o,i,!1),wn(t,e,o,a,i);else if(32&u){const l=Ss(n,r);let c;for(;c=l();)wn(t,e,o,c,i);wn(t,e,o,a,i)}else 16&u?zc(e,t,r,n,o,i):wn(t,e,o,a,i);n=s?n.projectionNext:n.next}}function mr(e,t,n,r,o,i){ks(n,r,e.firstChild,t,o,i,!1)}function zc(e,t,n,r,o,i){const s=n[me],u=s[ge].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++)wn(t,e,o,u[l],i);else ks(e,t,u,s[X],o,i,!0)}function Gc(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function qc(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&as(e,t,r),null!==o&&Gc(e,t,o),null!==i&&function sv(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}function En(e){return function Ls(){if(void 0===To&&(To=null,Y.trustedTypes))try{To=Y.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return To}()?.createHTML(e)||e}function Zc(e){return function Bs(){if(void 0===Ao&&(Ao=null,Y.trustedTypes))try{Ao=Y.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ao}()?.createHTML(e)||e}class Kc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cl})`}}class yv{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(En(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Dv{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=En(t),n}}const _v=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ct(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Dr(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Xc=Ct("area,br,col,hr,img,wbr"),ed=Ct("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),td=Ct("rp,rt"),Hs=Dr(Xc,Dr(ed,Ct("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")),Dr(td,Ct("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")),Dr(td,ed)),$s=Ct("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),nd=Dr($s,Ct("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ct("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")),wv=Ct("script,style,template");class Ev{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Hs.hasOwnProperty(n))return this.sanitizedSomething=!0,!wv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o<r.length;o++){const i=r.item(o),s=i.name,a=s.toLowerCase();if(!nd.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let u=i.value;$s[a]&&(e=u,u=(e=String(e)).match(_v)?e:"unsafe:"+e),this.buf.push(" ",s,'="',rd(u),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Hs.hasOwnProperty(n)&&!Xc.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(rd(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Cv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iv=/([^\#-~ |!])/g;function rd(e){return e.replace(/&/g,"&amp;").replace(Cv,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Iv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let No;function Us(e){return"content"in e&&function Sv(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var se=(()=>((se=se||{})[se.NONE=0]="NONE",se[se.HTML=1]="HTML",se[se.STYLE=2]="STYLE",se[se.SCRIPT=3]="SCRIPT",se[se.URL=4]="URL",se[se.RESOURCE_URL=5]="RESOURCE_URL",se))();function zs(e){const t=function vr(){const e=y();return e&&e[Wi]}();return t?Zc(t.sanitize(se.HTML,e)||""):function yr(e,t){const n=function mv(e){return e instanceof Kc&&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 ${cl})`)}return n===t}(e,"HTML")?Zc(function Vt(e){return e instanceof Kc?e.changingThisBreaksApplicationSecurity:e}(e)):function bv(e,t){let n=null;try{No=No||function Jc(e){const t=new Dv(e);return function vv(){try{return!!(new window.DOMParser).parseFromString(En(""),"text/html")}catch{return!1}}()?new yv(t):t}(e);let r=t?String(t):"";n=No.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=No.getInertBodyElement(r)}while(r!==i);return En((new Ev).sanitizeChildren(Us(n)||n))}finally{if(n){const r=Us(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}(function Wc(){return void 0!==js?js:typeof document<"u"?document:void 0}(),A(e))}const sd=new F("ENVIRONMENT_INITIALIZER"),ad=new F("INJECTOR",-1),ud=new F("INJECTOR_DEF_TYPES");class ld{get(t,n=Qn){if(n===Qn){const r=new Error(`NullInjectorError: No provider for ${q(t)}!`);throw r.name="NullInjectorError",r}return n}}function Fv(...e){return{\u0275providers:cd(0,e),\u0275fromNgModule:!0}}function cd(e,...t){const n=[],r=new Set;let o;return Qt(t,i=>{const s=i;Gs(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&dd(o,n),n}function dd(e,t){for(let n=0;n<e.length;n++){const{providers:o}=e[n];qs(o,i=>{t.push(i)})}}function Gs(e,t,n,r){if(!(e=S(e)))return!1;let o=null,i=fl(e);const s=!i&&z(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=fl(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)Gs(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Qt(i.imports,c=>{Gs(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&dd(l,t)}if(!a){const l=Wt(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:V},{provide:ud,useValue:o,multi:!0},{provide:sd,useValue:()=>B(o),multi:!0})}const u=i.providers;null==u||a||qs(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function qs(e,t){for(let n of e)Vi(n)&&(n=n.\u0275providers),Array.isArray(n)?qs(n,t):t(n)}const Rv=G({provide:String,useValue:G});function Ws(e){return null!==e&&"object"==typeof e&&Rv in e}function Jt(e){return"function"==typeof e}const Zs=new F("Set Injector scope."),xo={},kv={};let Ys;function Po(){return void 0===Ys&&(Ys=new ld),Ys}class Cn{}class pd extends Cn{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ks(t,s=>this.processProvider(s)),this.records.set(ad,In(void 0,this)),o.has("environment")&&this.records.set(Cn,In(void 0,this));const i=this.records.get(Zs);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ud.multi,V,T.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=sn(this),r=$e(void 0);try{return t()}finally{sn(n),$e(r)}}get(t,n=Qn,r=T.Default){this.assertNotDestroyed(),r=Xr(r);const o=sn(this),i=$e(void 0);try{if(!(r&T.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function Hv(e){return"function"==typeof e||"object"==typeof e&&e instanceof F}(t)&&Qr(t);a=u&&this.injectableDefInScope(u)?In(Qs(t),xo):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&T.Self?Po():this.parent).get(t,n=r&T.Optional&&n===Qn?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Jr]=s[Jr]||[]).unshift(q(t)),o)throw s;return function fy(e,t,n,r){const o=e[Jr];throw t[gl]&&o.unshift(t[gl]),e.message=function hy(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==uy?e.slice(2):e;let o=q(t);if(Array.isArray(t))o=t.map(q).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):q(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(ay,"\n  ")}`}("\n"+e.message,o,n,r),e[sy]=o,e[Jr]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{$e(i),sn(o)}}resolveInjectorInitializers(){const t=sn(this),n=$e(void 0);try{const r=this.get(sd.multi,V,T.Self);for(const o of r)o()}finally{sn(t),$e(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(q(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=Jt(t=S(t))?t:S(t&&t.provide);const r=function jv(e){return Ws(e)?In(void 0,e.useValue):In(function gd(e,t,n){let r;if(Jt(e)){const o=S(e);return Wt(o)||Qs(o)}if(Ws(e))r=()=>S(e.useValue);else if(function hd(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...zi(e.deps||[]));else if(function fd(e){return!(!e||!e.useExisting)}(e))r=()=>B(S(e.useExisting));else{const o=S(e&&(e.useClass||e.provide));if(!function Bv(e){return!!e.deps}(e))return Wt(o)||Qs(o);r=()=>new o(...zi(e.deps))}return r}(e),xo)}(t);if(Jt(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=In(void 0,xo,!0),o.factory=()=>zi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===xo&&(n.value=kv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Vv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=S(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Qs(e){const t=Qr(e),n=null!==t?t.factory:Wt(e);if(null!==n)return n;if(e instanceof F)throw new C(204,!1);if(e instanceof Function)return function Lv(e){const t=e.length;if(t>0)throw function dr(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new C(204,!1);const n=function ry(e){return e&&(e[Kr]||e[hl])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new C(204,!1)}function In(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ks(e,t){for(const n of e)Array.isArray(n)?Ks(n,t):n&&Vi(n)?Ks(n.\u0275providers,t):t(n)}class $v{}class md{}class zv{resolveComponentFactory(t){throw function Uv(e){const t=Error(`No component factory found for ${q(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Fo=(()=>{class e{}return e.NULL=new zv,e})();function Gv(){return bn(he(),y())}function bn(e,t){return new Sn(je(e,t))}let Sn=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Gv,e})();class Dd{}let Zv=(()=>{class e{}return e.\u0275prov=W({token:e,providedIn:"root",factory:()=>null}),e})();class Js{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Yv=new Js("15.2.10"),Xs={},ea="ngOriginalError";function ta(e){return e[ea]}class Mn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ta(t);for(;n&&ta(n);)n=ta(n);return n||null}}function wd(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const Ed="ng-template";function s_(e,t,n){let r=0,o=!0;for(;r<e.length;){let i=e[r++];if("string"==typeof i&&o){const s=e[r++];if(n&&"class"===i&&-1!==wd(s.toLowerCase(),t,0))return!0}else{if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}"number"==typeof i&&(o=!1)}}return!1}function Cd(e){return 4===e.type&&e.value!==Ed}function a_(e,t,n){return t===(4!==e.type||n?e.value:Ed)}function u_(e,t,n){let r=4;const o=e.attrs||[],i=function d_(e){for(let t=0;t<e.length;t++)if(Yl(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const u=t[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!a_(e,u,n)||""===u&&1===t.length){if(Xe(r))return!1;s=!0}}else{const l=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!s_(e.attrs,l,n)){if(Xe(r))return!1;s=!0}continue}const d=l_(8&r?"class":u,o,Cd(e),n);if(-1===d){if(Xe(r))return!1;s=!0;continue}if(""!==l){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==wd(h,l,0)||2&r&&l!==f){if(Xe(r))return!1;s=!0}}}}else{if(!s&&!Xe(r)&&!Xe(u))return!1;if(s&&Xe(u))continue;s=!1,r=u|1&r}}return Xe(r)||s}function Xe(e){return 0==(1&e)}function l_(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function f_(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 Id(e,t,n=!1){for(let r=0;r<t.length;r++)if(u_(e,t[r],n))return!0;return!1}function bd(e,t){return e?":not("+t.trim()+")":t}function p_(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Xe(s)&&(t+=bd(i,o),o=""),r=s,i=i||!Xe(r);n++}return""!==o&&(t+=bd(i,o)),t}const x={};function Ie(e){Sd(j(),y(),Ce()+e,!1)}function Sd(e,t,n,r){if(!r)if(3==(3&t[P])){const i=e.preOrderCheckHooks;null!==i&&fo(t,i,n)}else{const i=e.preOrderHooks;null!==i&&ho(t,i,0,n)}Zt(n)}function Nd(e,t=null,n=null,r){const o=xd(e,t,n,r);return o.resolveInjectorInitializers(),o}function xd(e,t=null,n=null,r,o=new Set){const i=[n||V,Fv(e)];return r=r||("object"==typeof e?void 0:q(e)),new pd(i,t||Po(),r||null,o)}let Xt=(()=>{class e{static create(n,r){if(Array.isArray(n))return Nd({name:""},r,n,"");{const o=n.name??"";return Nd({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Qn,e.NULL=new ld,e.\u0275prov=W({token:e,providedIn:"any",factory:()=>B(ad)}),e.__NG_ELEMENT_ID__=-1,e})();function R(e,t=T.Default){const n=y();return null===n?B(e,t):oc(he(),n,S(e),t)}function jd(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r+1];if(-1!==i){const s=e.data[i];ns(n[r]),s.contentQueries(2,t[i],i)}}}function Oo(e,t,n,r,o,i,s,a,u,l,c){const d=t.blueprint.slice();return d[_t]=o,d[P]=76|r,(null!==c||e&&1024&e[P])&&(d[P]|=1024),Fl(d),d[X]=d[un]=e,d[ne]=n,d[ro]=s||e&&e[ro],d[k]=a||e&&e[k],d[Wi]=u||e&&e[Wi]||null,d[no]=l||e&&e[no]||null,d[ge]=i,d[or]=function RD(){return FD++}(),d[Cl]=c,d[me]=2==t.type?e[me]:d,d}function Nn(e,t,n,r,o){let i=e.data[t];if(null===i)i=function sa(e,t,n,r,o){const i=jl(),s=Ji(),u=e.data[t]=function H_(e,t,n,r,o,i){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev: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,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u,u.prev=i)),u}(e,t,n,r,o),function Ly(){return N.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function sr(){const e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return lt(i,!0),i}function _r(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function aa(e,t,n){rs(t);try{const r=e.viewQuery;null!==r&&ma(1,r,n);const o=e.template;null!==o&&Bd(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&jd(e,t),e.staticViewQueries&&ma(2,e.viewQuery,n);const i=e.components;null!==i&&function j_(e,t){for(let n=0;n<t.length;n++)aw(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[P]&=-5,os()}}function ko(e,t,n,r){const o=t[P];if(128!=(128&o)){rs(t);try{Fl(t),function Vl(e){return N.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Bd(e,t,n,2,r);const s=3==(3&o);if(s){const l=e.preOrderCheckHooks;null!==l&&fo(t,l,null)}else{const l=e.preOrderHooks;null!==l&&ho(t,l,0,null),is(t,0)}if(function iw(e){for(let t=Ms(e);null!==t;t=Ts(t)){if(!t[Il])continue;const n=t[cn];for(let r=0;r<n.length;r++){const o=n[r];512&o[P]||Ki(o[X],1),o[P]|=512}}}(t),function ow(e){for(let t=Ms(e);null!==t;t=Ts(t))for(let n=we;n<t.length;n++){const r=t[n],o=r[w];lo(r)&&ko(o,r,o.template,r[ne])}}(t),null!==e.contentQueries&&jd(e,t),s){const l=e.contentCheckHooks;null!==l&&fo(t,l)}else{const l=e.contentHooks;null!==l&&ho(t,l,1),is(t,1)}!function k_(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)Zt(~o);else{const i=o,s=n[++r],a=n[++r];jy(s,i),a(2,t[i])}}}finally{Zt(-1)}}(e,t);const a=e.components;null!==a&&function L_(e,t){for(let n=0;n<t.length;n++)sw(e,t[n])}(t,a);const u=e.viewQuery;if(null!==u&&ma(2,u,r),s){const l=e.viewCheckHooks;null!==l&&fo(t,l)}else{const l=e.viewHooks;null!==l&&ho(t,l,2),is(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[P]&=-41,512&t[P]&&(t[P]&=-513,Ki(t[X],-1))}finally{os()}}}function Bd(e,t,n,r,o){const i=Ce(),s=2&r;try{Zt(-1),s&&t.length>Q&&Sd(e,t,Q,!1),ze(s?2:0,o),n(r,o)}finally{Zt(i),ze(s?3:1,o)}}function ua(e,t,n){if(Yi(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i<o;i++){const s=e.data[i];s.contentQueries&&s.contentQueries(1,n[i],i)}}}function la(e,t,n){Ol()&&(function Z_(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;ir(n)&&function tw(e,t,n){const r=je(t,e),o=Vd(n),i=e[ro],s=Lo(e,Oo(e,o,null,n.onPush?32:16,r,t,i,i.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||yo(n,t),ye(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const u=e.data[a],l=Yt(t,e,a,n);ye(l,t),null!==s&&nw(0,a-o,l,u,0,s),Je(u)&&(Ne(n.index,t)[ne]=Yt(t,e,a,n))}}(e,t,n,je(n,t)),64==(64&n.flags)&&Gd(e,t,n))}function ca(e,t,n=je){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function Vd(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=da(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function da(e,t,n,r,o,i,s,a,u,l){const c=Q+r,d=c+o,f=function B_(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:x);return n}(c,d),h="function"==typeof l?l():l;return f[w]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:h,incompleteFirstPass:!1}}function $d(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Ud(n,t,o,i):r.hasOwnProperty(o)&&Ud(n,t,r[o],i)}return n}function Ud(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function fa(e,t,n,r){if(Ol()){const o=null===r?null:{"":-1},i=function Q_(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(Id(t,s.selectors,!1))if(r||(r=[]),Je(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),ha(e,t,a.length)}else r.unshift(s),ha(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(e,n);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&zd(e,t,n,s,o,a),o&&function K_(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new C(-301,!1);r.push(t[o],i)}}}(n,r,o)}n.mergedAttrs=ur(n.mergedAttrs,n.attrs)}function zd(e,t,n,r,o,i){for(let l=0;l<r.length;l++)ds(yo(n,t),e,r[l].type);!function X_(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let l=0;l<r.length;l++){const c=r[l];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,u=_r(e,t,r.length,null);for(let l=0;l<r.length;l++){const c=r[l];n.mergedAttrs=ur(n.mergedAttrs,c.hostAttrs),ew(e,n,t,u,c),J_(u,c,o),null!==c.contentQueries&&(n.flags|=4),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(n.flags|=64);const d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??(e.preOrderHooks=[])).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(n.index),a=!0),u++}!function $_(e,t,n){const o=t.directiveEnd,i=e.data,s=t.attrs,a=[];let u=null,l=null;for(let c=t.directiveStart;c<o;c++){const d=i[c],f=n?n.get(d):null,p=f?f.outputs:null;u=$d(d.inputs,c,u,f?f.inputs:null),l=$d(d.outputs,c,l,p);const g=null===u||null===s||Cd(t)?null:rw(u,c,s);a.push(g)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=8),u.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=u,t.outputs=l}(e,n,i)}function Gd(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function By(){return N.lFrame.currentDirectiveIndex}();try{Zt(i);for(let a=r;a<o;a++){const u=e.data[a],l=t[a];es(a),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&Y_(u,l)}}finally{Zt(-1),es(s)}}function Y_(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ha(e,t,n){t.componentOffset=n,(e.components??(e.components=[])).push(t.index)}function J_(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Je(t)&&(n[""]=e)}}function ew(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=Wt(o.type)),s=new ar(i,Je(o),R);e.blueprint[r]=s,n[r]=s,function q_(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function W_(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,_r(e,n,o.hostVars,x),o)}function nw(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let u=0;u<s.length;){const l=s[u++],c=s[u++],d=s[u++];null!==a?r.setInput(n,d,l,c):n[c]=d}}}function rw(e,t,n){let r=null,o=0;for(;o<n.length;){const i=n[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(e.hasOwnProperty(i)){null===r&&(r=[]);const s=e[i];for(let a=0;a<s.length;a+=2)if(s[a]===t){r.push(i,s[a+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function qd(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null]}function sw(e,t){const n=Ne(t,e);if(lo(n)){const r=n[w];48&n[P]?ko(r,n,r.template,n[ne]):n[qt]>0&&ga(n)}}function ga(e){for(let r=Ms(e);null!==r;r=Ts(r))for(let o=we;o<r.length;o++){const i=r[o];if(lo(i))if(512&i[P]){const s=i[w];ko(s,i,s.template,i[ne])}else i[qt]>0&&ga(i)}const n=e[w].components;if(null!==n)for(let r=0;r<n.length;r++){const o=Ne(n[r],e);lo(o)&&o[qt]>0&&ga(o)}}function aw(e,t){const n=Ne(t,e),r=n[w];(function uw(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),aa(r,n,n[ne])}function Lo(e,t){return e[nr]?e[El][Qe]=t:e[nr]=t,e[El]=t,t}function jo(e){for(;e;){e[P]|=32;const t=gr(e);if(vy(e)&&!t)return e;e=t}return null}function Bo(e,t,n,r=!0){const o=t[ro];o.begin&&o.begin();try{ko(e,t,e.template,n)}catch(s){throw r&&Qd(t,s),s}finally{o.end&&o.end()}}function ma(e,t,n){ns(0),t(e,n)}function Wd(e){return e[an]||(e[an]=[])}function Zd(e){return e.cleanup||(e.cleanup=[])}function Qd(e,t){const n=e[no],r=n?n.get(Mn,null):null;r&&r.handleError(t)}function ya(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++],u=t[s],l=e.data[s];null!==l.setInput?l.setInput(u,o,r,a):u[a]=o}}function bt(e,t,n){const r=function uo(e,t){return fe(t[e])}(t,e);!function Pc(e,t,n){e.setValue(t,n)}(e[k],r,n)}function Vo(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=Li(o,a):2==i&&(r=Li(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Ho(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(fe(i)),Ke(i))for(let a=we;a<i.length;a++){const u=i[a],l=u[w].firstChild;null!==l&&Ho(u[w],u,l,r)}const s=n.type;if(8&s)Ho(e,t,n.child,r);else if(32&s){const a=Ss(n,t);let u;for(;u=a();)r.push(u)}else if(16&s){const a=Uc(t,n);if(Array.isArray(a))r.push(...a);else{const u=gr(t[me]);Ho(u[w],u,a,r,!0)}}n=o?n.projectionNext:n.next}return r}class wr{get rootNodes(){const t=this._lView,n=t[w];return Ho(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ne]}set context(t){this._lView[ne]=t}get destroyed(){return 128==(128&this._lView[P])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[X];if(Ke(t)){const n=t[io],r=n?n.indexOf(this):-1;r>-1&&(xs(t,r),vo(n,r))}this._attachedToViewContainer=!1}Rc(this._lView[w],this._lView)}onDestroy(t){!function Hd(e,t,n,r){const o=Wd(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Zd(e).push(r,o.length-1))}(this._lView[w],this._lView,null,t)}markForCheck(){jo(this._cdRefInjectingView||this._lView)}detach(){this._lView[P]&=-65}reattach(){this._lView[P]|=64}detectChanges(){Bo(this._lView[w],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function YD(e,t){mr(e,t,t[k],2,null,null)}(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class lw extends wr{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Bo(t[w],t,t[ne],!1)}checkNoChanges(){}get context(){return null}}class Kd extends Fo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=z(t);return new Er(n,this.ngModule)}}function Jd(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class dw{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Xr(r);const o=this.injector.get(t,Xs,r);return o!==Xs||n===Xs?o:this.parentInjector.get(t,n,r)}}class Er extends md{get inputs(){return Jd(this.componentDef.inputs)}get outputs(){return Jd(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function g_(e){return e.map(p_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Cn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new dw(t,i):t,a=s.get(Dd,null);if(null===a)throw new C(407,!1);const u=s.get(Zv,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function V_(e,t,n){return e.selectRootElement(t,n===at.ShadowDom)}(l,r,this.componentDef.encapsulation):Ns(l,c,function cw(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=da(0,null,null,1,0,null,null,null,null,null),p=Oo(null,h,null,f,null,null,a,l,u,s,null);let g,D;rs(p);try{const v=this.componentDef;let E,m=null;v.findHostDirectiveDefs?(E=[],m=new Map,v.findHostDirectiveDefs(v,E,m),E.push(v)):E=[v];const I=function hw(e,t){const n=e[w],r=Q;return e[r]=t,Nn(n,r,2,"#host",null)}(p,d),H=function pw(e,t,n,r,o,i,s,a){const u=o[w];!function gw(e,t,n,r){for(const o of e)t.mergedAttrs=ur(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Vo(t,t.mergedAttrs,!0),null!==n&&qc(r,n,t))}(r,e,t,s);const l=i.createRenderer(t,n),c=Oo(o,Vd(n),null,n.onPush?32:16,o[e.index],e,i,l,a||null,null,null);return u.firstCreatePass&&ha(u,e,r.length-1),Lo(o,c),o[e.index]=c}(I,d,v,E,p,a,l);D=Pl(h,Q),d&&function yw(e,t,n,r){if(r)as(e,n,["ng-version",Yv.full]);else{const{attrs:o,classes:i}=function m_(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!Xe(o))break;o=i}r++}return{attrs:t,classes:n}}(t.selectors[0]);o&&as(e,n,o),i&&i.length>0&&Gc(e,n,i.join(" "))}}(l,v,d,r),void 0!==n&&function Dw(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i?Array.from(i):null)}}(D,this.ngContentSelectors,n),g=function mw(e,t,n,r,o,i){const s=he(),a=o[w],u=je(s,o);zd(a,o,s,n,null,r);for(let c=0;c<n.length;c++)ye(Yt(o,a,s.directiveStart+c,s),o);Gd(a,o,s),u&&ye(u,o);const l=Yt(o,a,s.directiveStart+s.componentOffset,s);if(e[ne]=o[ne]=l,null!==i)for(const c of i)c(l,t);return ua(a,s,e),l}(H,v,E,m,p,[vw]),aa(h,p,null)}finally{os()}return new fw(this.componentType,g,bn(D,p),p,D)}}class fw extends $v{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new lw(o),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){const i=this._rootLView;ya(i[w],i,o,t,n),jo(Ne(this._tNode.index,i))}}get injector(){return new pn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function vw(){const e=he();co(y()[w],e)}function De(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Fn(e,t,n,r,o,i){const a=function en(e,t,n,r){const o=De(e,t,n);return De(e,t+1,r)||o}(e,function wt(){return N.lFrame.bindingIndex}(),n,o);return function Et(e){const t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2),a?t+A(n)+r+A(o)+i:x}function St(e,t,n,r,o,i,s,a){const u=y(),l=j(),c=e+Q,d=l.firstCreatePass?function Fw(e,t,n,r,o,i,s,a,u){const l=t.consts,c=Nn(t,e,4,s||null,Bt(l,a));fa(t,n,c,Bt(l,u)),co(t,c);const d=c.tView=da(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,o,i,s):l.data[c];lt(d,!1);const f=u[k].createComment("");So(l,u,f,d),ye(f,u),Lo(u,u[c]=qd(f,u,f,d)),so(d)&&la(l,u,d),null!=s&&ca(u,d,a)}function We(e,t,n){const r=y();return De(r,fn(),t)&&function Ve(e,t,n,r,o,i,s,a){const u=je(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(ya(e,n,c,r,o),ir(t)&&function z_(e,t){const n=Ne(t,e);16&n[P]||(n[P]|=32)}(n,t.index)):3&t.type&&(r=function U_(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(u,r,o))}(j(),function K(){const e=N.lFrame;return Pl(e.tView,e.selectedIndex)}(),r,e,t,r[k],n,!1),We}function _a(e,t,n,r,o){const s=o?"class":"style";ya(e,n,t.inputs[s],s,r)}function be(e,t,n,r){const o=y(),i=j(),s=Q+e,a=o[k],u=i.firstCreatePass?function kw(e,t,n,r,o,i){const s=t.consts,u=Nn(t,e,2,r,Bt(s,o));return fa(t,n,u,Bt(s,i)),null!==u.attrs&&Vo(u,u.attrs,!1),null!==u.mergedAttrs&&Vo(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,i,o,t,n,r):i.data[s],l=o[s]=Ns(a,t,function Wy(){return N.lFrame.currentNamespace}()),c=so(u);return lt(u,!0),qc(a,l,u),32!=(32&u.flags)&&So(i,o,l,u),0===function xy(){return N.lFrame.elementDepthCount}()&&ye(l,o),function Py(){N.lFrame.elementDepthCount++}(),c&&(la(i,o,u),ua(i,u,o)),null!==r&&ca(o,u),be}function Fe(){let e=he();Ji()?function Xi(){N.lFrame.isParent=!1}():(e=e.parent,lt(e,!1));const t=e;!function Fy(){N.lFrame.elementDepthCount--}();const n=j();return n.firstCreatePass&&(co(n,e),Yi(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Ky(e){return 0!=(8&e.flags)}(t)&&_a(n,t,y(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Jy(e){return 0!=(16&e.flags)}(t)&&_a(n,t,y(),t.stylesWithoutHost,!1),Fe}function Vn(e,t,n,r){return be(e,t,n,r),Fe(),Vn}function Ca(e){return!!e&&"function"==typeof e.then}const jw=function Df(e){return!!e&&"function"==typeof e.subscribe};function Ia(e,t,n,r){const o=y(),i=j(),s=he();return function _f(e,t,n,r,o,i,s){const a=so(r),l=e.firstCreatePass&&Zd(e),c=t[ne],d=Wd(t);let f=!0;if(3&r.type||s){const g=je(r,t),D=s?s(g):g,v=d.length,E=s?I=>s(fe(I[r.index])):r.index;let m=null;if(!s&&a&&(m=function Bw(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[an],u=o[i+2];return a.length>u?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=i,m.__ngLastListenerFn__=i,f=!1;else{i=Ef(r,t,c,i,!1);const I=n.listen(D,o,i);d.push(i,I),l&&l.push(o,E,v,v+1)}}else i=Ef(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let D=0;D<g;D+=2){const H=t[p[D]][p[D+1]].subscribe(i),ie=d.length;d.push(i,H),l&&l.push(o,r.index,ie,-(ie+1))}}}(i,o,o[k],s,e,t,r),Ia}function wf(e,t,n,r){try{return ze(6,t,n),!1!==n(r)}catch(o){return Qd(e,o),!1}finally{ze(7,t,n)}}function Ef(e,t,n,r,o){return function i(s){if(s===Function)return r;jo(e.componentOffset>-1?Ne(e.index,t):t);let u=wf(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)u=wf(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function Ir(e=1){return function Hy(e){return(N.lFrame.contextLView=function $y(e,t){for(;e>0;)t=t[un],e--;return t}(e,N.lFrame.contextLView))[ne]}(e)}function gt(e,t=""){const n=y(),r=j(),o=e+Q,i=r.firstCreatePass?Nn(r,o,1,t,null):r.data[o],s=n[o]=function As(e,t){return e.createText(t)}(n[k],t);So(r,n,s,i),lt(i,!1)}function qo(e){return Sr("",e,""),qo}function Sr(e,t,n){const r=y(),o=function Pn(e,t,n,r){return De(e,fn(),n)?t+A(n)+r:x}(r,e,t,n);return o!==x&&bt(r,Ce(),o),Sr}function Na(e,t,n,r,o){const i=y(),s=Fn(i,e,t,n,r,o);return s!==x&&bt(i,Ce(),s),Na}const Un="en-US";let hh=Un;class zn{}class NC{}class Bh extends zn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Kd(this);const r=function ke(e,t){const n=e[yl]||null;if(!n&&!0===t)throw new Error(`Type ${q(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function It(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=xd(t,n,[{provide:zn,useValue:this},{provide:Fo,useValue:this.componentFactoryResolver}],q(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class La extends NC{constructor(t){super(),this.moduleType=t}create(t){return new Bh(this.moduleType,t)}}function Wh(e,t,n,r,o,i){const s=t+n;return De(e,s,o)?function ft(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function Pr(e,t){const n=e[t];return n===x?void 0:n}(e,s+1)}function Mt(e,t){const n=j();let r;const o=e+Q;n.firstCreatePass?(r=function XC(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Wt(r.type)),s=$e(R);try{const a=mo(!1),u=i();return mo(a),function Rw(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,y(),o,u),u}finally{$e(s)}}function Tt(e,t,n){const r=e+Q,o=y(),i=function dn(e,t){return e[t]}(o,r);return function Fr(e,t){return e[w].data[t].pure}(o,r)?Wh(o,function Ee(){const e=N.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,i.transform,n,i):i.transform(n)}function Ba(e){return t=>{setTimeout(e,void 0,t)}}const At=class oI extends Ai{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Ba(i),o&&(o=Ba(o)),s&&(s=Ba(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof it&&t.add(a),a}};let Nt=(()=>{class e{}return e.__NG_ELEMENT_ID__=uI,e})();const sI=Nt,aI=class extends sI{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tView,o=Oo(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[rr]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[ut];return null!==s&&(o[ut]=s.createEmbeddedView(r)),aa(r,o,t),new wr(o)}};function uI(){return function Ko(e,t){return 4&e.type?new aI(t,e,bn(e,t)):null}(he(),y())}let mt=(()=>{class e{}return e.__NG_ELEMENT_ID__=lI,e})();function lI(){return function ep(e,t){let n;const r=t[e.index];if(Ke(r))n=r;else{let o;if(8&e.type)o=fe(r);else{const i=t[k];o=i.createComment("");const s=je(e,t);Kt(i,bo(i,s),o,function nv(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=qd(r,t,o,e),Lo(t,n)}return new Jh(n,e,t)}(he(),y())}const cI=mt,Jh=class extends cI{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return bn(this._hostTNode,this._hostLView)}get injector(){return new pn(this._hostTNode,this._hostLView)}get parentInjector(){const t=cs(this._hostTNode,this._hostLView);if(Jl(t)){const n=go(t,this._hostLView),r=po(t);return new pn(n[w].data[r+8],n)}return new pn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Xh(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-we}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=t.createEmbeddedView(n||{},i);return this.insert(s,o),s}createComponent(t,n,r,o,i){const s=t&&!function cr(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const u=s?t:new Er(z(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(Cn,null);f&&(i=f)}const c=u.create(l,o,void 0,i);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,o=r[w];if(function Ny(e){return Ke(e[X])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[X],f=new Jh(d,d[ge],d[X]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function KD(e,t,n,r){const o=we+r,i=n.length;r>0&&(n[o-1][Qe]=t),r<i-we?(t[Qe]=n[o],cc(n,we+r,t)):(n.push(t),t[Qe]=null),t[X]=n;const s=t[rr];null!==s&&n!==s&&function JD(e,t){const n=e[cn];t[me]!==t[X][X][me]&&(e[Il]=!0),null===n?e[cn]=[t]:n.push(t)}(s,t);const a=t[ut];null!==a&&a.insertView(e),t[P]|=64}(o,r,s,i);const a=Rs(i,s),u=r[k],l=bo(u,s[oo]);return null!==l&&function ZD(e,t,n,r,o,i){r[_t]=o,r[ge]=t,mr(e,r,n,1,o,i)}(o,s[ge],u,r,l,a),t.attachToViewContainerRef(),cc(Ha(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Xh(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=xs(this._lContainer,n);r&&(vo(Ha(this._lContainer),n),Rc(r[w],r))}detach(t){const n=this._adjustIndex(t,-1),r=xs(this._lContainer,n);return r&&null!=vo(Ha(this._lContainer),n)?new wr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Xh(e){return e[io]}function Ha(e){return e[io]||(e[io]=[])}function Xo(...e){}const Ip=new F("Application Initializer");let ei=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Xo,this.reject=Xo,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const i=this.appInits[o]();if(Ca(i))n.push(i);else if(jw(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(B(Ip,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Or=new F("AppId",{providedIn:"root",factory:function bp(){return`${Ka()}${Ka()}${Ka()}`}});function Ka(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Sp=new F("Platform Initializer"),Mp=new F("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),xt=new F("LocaleId",{providedIn:"root",factory:()=>function cy(e,t=T.Default){return B(e,Xr(t))}(xt,T.Optional|T.SkipSelf)||function HI(){return typeof $localize<"u"&&$localize.locale||Un}()}),qI=(()=>Promise.resolve(0))();function Ja(e){typeof Zone>"u"?qI.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ve{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new At(!1),this.onMicrotaskEmpty=new At(!1),this.onStable=new At(!1),this.onError=new At(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function WI(){let e=Y.requestAnimationFrame,t=Y.cancelAnimationFrame;if(typeof Zone<"u"&&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 QI(e){const t=()=>{!function YI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Y,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,eu(e),e.isCheckStableRunning=!0,Xa(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),eu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return Np(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),xp(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Np(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),xp(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,eu(e),Xa(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ve.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,ZI,Xo,Xo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const ZI={};function Xa(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 eu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Np(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xp(e){e._nesting--,Xa(e)}class KI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new At,this.onMicrotaskEmpty=new At,this.onStable=new At,this.onError=new At}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const Pp=new F(""),ti=new F("");let ru,tu=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ru||(function JI(e){ru=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{ve.assertNotInAngularZone(),Ja(()=>{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())Ja(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(B(ve),B(nu),B(ti))},e.\u0275prov=W({token:e,factory:e.\u0275fac}),e})(),nu=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return ru?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Pt=!1;let $t=null;const Fp=new F("AllowMultipleToken"),ou=new F("PlatformDestroyListeners"),XI=new F("appBootstrapListener");function Op(e,t,n=[]){const r=`Platform: ${t}`,o=new F(r);return(i=[])=>{let s=iu();if(!s||s.injector.get(Fp,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function nb(e){if($t&&!$t.get(Fp,!1))throw new C(400,!1);$t=e;const t=e.get(Lp);(function Rp(e){const t=e.get(Sp,null);t&&t.forEach(n=>n())})(e)}(function kp(e=[],t){return Xt.create({name:t,providers:[{provide:Zs,useValue:"platform"},{provide:ou,useValue:new Set([()=>$t=null])},...e]})}(a,r))}return function ob(e){const t=iu();if(!t)throw new C(401,!1);return t}()}}function iu(){return $t?.get(Lp)??null}let Lp=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function Bp(e,t){let n;return n="noop"===e?new KI:("zone.js"===e?void 0:e)||new ve(t),n}(r?.ngZone,function jp(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:ve,useValue:o}];return o.run(()=>{const s=Xt.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(Mn,null);if(!u)throw new C(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{ni(this._modules,a),l.unsubscribe()})}),function Vp(e,t,n){try{const r=n();return Ca(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,o,()=>{const l=a.injector.get(ei);return l.runInitializers(),l.donePromise.then(()=>(function ph(e){He(e,"Expected localeId to be defined"),"string"==typeof e&&(hh=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(xt,Un)||Un),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=Hp({},r);return function eb(e,t,n){const r=new La(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(su);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(ou,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(B(Xt))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Hp(e,t){return Array.isArray(t)?t.reduce(Hp,e):{...e,...t}}let su=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,o){this._zone=n,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new Te(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Te(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{ve.assertNotInAngularZone(),Ja(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{ve.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=Ym(i,s.pipe(function Qm(e={}){const{connector:t=(()=>new Ai),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,l=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,c=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Zn((g,D)=>{l++,!d&&!c&&f();const v=u=u??t();D.add(()=>{l--,0===l&&!d&&!c&&(a=Oi(p,o))}),v.subscribe(D),!s&&l>0&&(s=new Wn({next:E=>v.next(E),error:E=>{d=!0,f(),a=Oi(h,n,E),v.error(E)},complete:()=>{c=!0,f(),a=Oi(h,r),v.complete()}}),kt(g).subscribe(s))})(i)}}()))}bootstrap(n,r){const o=n instanceof md;if(!this._injector.get(ei).done){!o&&function tr(e){const t=z(e)||pe(e)||Ae(e);return null!==t&&t.standalone}(n);throw new C(405,Pt)}let s;s=o?n:this._injector.get(Fo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function tb(e){return e.isBoundToModule}(s)?void 0:this._injector.get(zn),l=s.create(Xt.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(Pp,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),ni(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;ni(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(XI,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ni(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(B(ve),B(Cn),B(Mn))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function ni(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const wb=Op(null,"core",[]);let Eb=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(B(su))},e.\u0275mod=er({type:e}),e.\u0275inj=on({}),e})(),du=null;function si(){return du}class bb{}const Ft=new F("DocumentToken");let dg=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new y0,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){fg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){fg("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(R(mt),R(Nt))},e.\u0275dir=Ue({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class y0{constructor(){this.$implicit=null,this.ngIf=null}}function fg(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${q(t)}'.`)}const S0=/(?:[0-9A-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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\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-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\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-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\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\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\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]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\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-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let pg=(()=>{class e{transform(n){if(null==n)return null;if("string"!=typeof n)throw function ot(e,t){return new C(2100,!1)}();return n.replace(S0,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=_e({name:"titlecase",type:e,pure:!0,standalone:!0}),e})(),H0=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=er({type:e}),e.\u0275inj=on({}),e})();class vS extends bb{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Tu extends vS{static makeCurrent(){!function Ib(e){du||(du=e)}(new Tu)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function _S(){return Vr=Vr||document.querySelector("base"),Vr?Vr.getAttribute("href"):null}();return null==n?null:function wS(e){Di=Di||document.createElement("a"),Di.setAttribute("href",e);const t=Di.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Vr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function d0(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Di,Vr=null;const Eg=new F("TRANSITION_ID"),CS=[{provide:Ip,useFactory:function ES(e,t,n){return()=>{n.get(ei).donePromise.then(()=>{const r=si(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i<o.length;i++)r.remove(o[i])})}},deps:[Eg,Ft,Xt],multi:!0}];let bS=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac}),e})();const vi=new F("EventManagerPlugins");let _i=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i<o.length;i++){const s=o[i];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error(`No event manager plugin found for event ${n}`)}}return e.\u0275fac=function(n){return new(n||e)(B(vi),B(ve))},e.\u0275prov=W({token:e,factory:e.\u0275fac}),e})();class Cg{constructor(t){this._doc=t}addGlobalEventListener(t,n,r){const o=si().getGlobalEventTarget(this._doc,t);if(!o)throw new Error(`Unsupported event target ${o} for event ${n}`);return this.addEventListener(o,n,r)}}let Ig=(()=>{class e{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const o=this.usageCount;let i=o.get(n)??0;return i+=r,i>0?o.set(n,i):o.delete(n),i}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac}),e})(),Hr=(()=>{class e extends Ig{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(i=>i.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const o=this.doc.createElement("style");o.textContent=r,n.appendChild(o);const i=this.styleRef.get(r);i?i.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(B(Ft))},e.\u0275prov=W({token:e,factory:e.\u0275fac}),e})();const Au={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/",math:"http://www.w3.org/1998/MathML/"},Nu=/%COMP%/g,Mg=new F("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Tg(e,t){return t.flat(100).map(n=>n.replace(Nu,e))}function Ag(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let xu=(()=>{class e{constructor(n,r,o,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.rendererByCompId=new Map,this.defaultRenderer=new Pu(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(n,r);return o instanceof Pg?o.applyToHost(n):o instanceof Fu&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.eventManager,a=this.sharedStylesHost,u=this.removeStylesOnCompDestory;switch(r.encapsulation){case at.Emulated:i=new Pg(s,a,r,this.appId,u);break;case at.ShadowDom:return new PS(s,a,n,r);default:i=new Fu(s,a,r,u)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(B(_i),B(Hr),B(Or),B(Mg))},e.\u0275prov=W({token:e,factory:e.\u0275fac}),e})();class Pu{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Au[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(xg(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(xg(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Au[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Au[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(xe.DashCase|xe.Important)?t.style.setProperty(n,r,o&xe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&xe.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,Ag(r)):this.eventManager.addEventListener(t,n,Ag(r))}}function xg(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class PS extends Pu{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Tg(o.id,o.styles);for(const s of i){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Fu extends Pu{constructor(t,n,r,o,i=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=Tg(i,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class Pg extends Fu{constructor(t,n,r,o,i){const s=o+"-"+r.id;super(t,n,r,i,s),this.contentAttr=function AS(e){return"_ngcontent-%COMP%".replace(Nu,e)}(s),this.hostAttr=function NS(e){return"_nghost-%COMP%".replace(Nu,e)}(s)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let FS=(()=>{class e extends Cg{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(B(Ft))},e.\u0275prov=W({token:e,factory:e.\u0275fac}),e})();const Fg=["alt","control","meta","shift"],RS={"\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"},OS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let kS=(()=>{class e extends Cg{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>si().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Fg.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=RS[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Fg.forEach(s=>{s!==o&&(0,OS[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(B(Ft))},e.\u0275prov=W({token:e,factory:e.\u0275fac}),e})();const VS=Op(wb,"browser",[{provide:Mp,useValue:"browser"},{provide:Sp,useValue:function LS(){Tu.makeCurrent()},multi:!0},{provide:Ft,useFactory:function BS(){return function cv(e){js=e}(document),document},deps:[]}]),kg=new F(""),Lg=[{provide:ti,useClass:class IS{addToWindow(t){Y.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},Y.getAllAngularTestabilities=()=>t.getAllTestabilities(),Y.getAllAngularRootElements=()=>t.getAllRootElements(),Y.frameworkStabilizers||(Y.frameworkStabilizers=[]),Y.frameworkStabilizers.push(r=>{const o=Y.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?si().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Pp,useClass:tu,deps:[ve,nu,ti]},{provide:tu,useClass:tu,deps:[ve,nu,ti]}],jg=[{provide:Zs,useValue:"root"},{provide:Mn,useFactory:function jS(){return new Mn},deps:[]},{provide:vi,useClass:FS,multi:!0,deps:[Ft,ve,Mp]},{provide:vi,useClass:kS,multi:!0,deps:[Ft]},{provide:xu,useClass:xu,deps:[_i,Hr,Or,Mg]},{provide:Dd,useExisting:xu},{provide:Ig,useExisting:Hr},{provide:Hr,useClass:Hr,deps:[Ft]},{provide:_i,useClass:_i,deps:[vi,ve]},{provide:class q0{},useClass:bS,deps:[]},[]];let HS=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Or,useValue:n.appId},{provide:Eg,useExisting:Or},CS]}}}return e.\u0275fac=function(n){return new(n||e)(B(kg,12))},e.\u0275mod=er({type:e}),e.\u0275inj=on({providers:[...jg,...Lg],imports:[H0,Eb]}),e})();typeof window<"u"&&window;const YS=new F("JWT_OPTIONS");let QS=(()=>{class e{constructor(n=null){this.tokenGetter=n&&n.tokenGetter||function(){}}urlBase64Decode(n){let r=n.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(r)}b64decode(n){let o="";if((n=String(n).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let s,a,i=0,u=0;a=n.charAt(u++);~a&&(s=i%4?64*s+a:a,i++%4)?o+=String.fromCharCode(255&s>>(-2*i&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return o}b64DecodeUnicode(n){return decodeURIComponent(Array.prototype.map.call(this.b64decode(n),r=>"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(n=this.tokenGetter()){return n instanceof Promise?n.then(r=>this._decodeToken(r)):this._decodeToken(n)}_decodeToken(n){if(!n||""===n)return null;const r=n.split(".");if(3!==r.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 o=this.urlBase64Decode(r[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(n=this.tokenGetter()){return n instanceof Promise?n.then(r=>this._getTokenExpirationDate(r)):this._getTokenExpirationDate(n)}_getTokenExpirationDate(n){let r;if(r=this.decodeToken(n),!r||!r.hasOwnProperty("exp"))return null;const o=new Date(0);return o.setUTCSeconds(r.exp),o}isTokenExpired(n=this.tokenGetter(),r){return n instanceof Promise?n.then(o=>this._isTokenExpired(o,r)):this._isTokenExpired(n,r)}_isTokenExpired(n,r){if(!n||""===n)return!0;const o=this.getTokenExpirationDate(n);return r=r||0,null!==o&&!(o.valueOf()>(new Date).valueOf()+1e3*r)}getAuthScheme(n,r){return"function"==typeof n?n(r):n}}return e.\u0275fac=function(n){return new(n||e)(B(YS))},e.\u0275prov=W({token:e,factory:e.\u0275fac}),e})();let $g=(()=>{class e{constructor(){this.ready=!1,window.homebridge.i18nGetTranslation().then(n=>{this.translations=n,this.ready=!0})}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),KS=(()=>{class e{constructor(n){this.translateService=n}transform(n){return this.translateService.translations[n]}}return e.\u0275fac=function(n){return new(n||e)(R($g,16))},e.\u0275pipe=_e({name:"translate",type:e,pure:!0}),e})();function JS(e,t){1&e&&(be(0,"div")(1,"div",1),Vn(2,"p",2),Mt(3,"translate"),be(4,"p",3)(5,"span"),gt(6),Mt(7,"translate"),Fe(),be(8,"a",4),gt(9," https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control "),Fe(),be(10,"span"),gt(11),Mt(12,"translate"),Fe()()()()),2&e&&(Ie(2),We("innerHTML",Tt(3,3,"accessories.message_must_use_insecure_mode"),zs),Ie(4),qo(Tt(7,5,"accessories.message_please_see")),Ie(5),qo(Tt(12,7,"accessories.message_for_more_information")))}function XS(e,t){1&e&&Vn(0,"p",9)}function eM(e,t){if(1&e){const n=function yf(){return y()}();be(0,"div",10)(1,"button",11),Ia("click",function(){return function kl(e){return N.lFrame.contextLView=e,e[ne]}(n),function Ll(e){return N.lFrame.contextLView=null,e}(Ir(3).linkAccount())}),gt(2),Mt(3,"translate"),Fe()()}2&e&&(Ie(2),Sr(" ",Tt(3,1,"plugins.settings.custom.homebridge-gsh.label_link_account")," "))}function tM(e,t){1&e&&(be(0,"div",15)(1,"p",16)(2,"strong"),gt(3),Mt(4,"translate"),Fe()()()),2&e&&(Ie(3),Sr(" ",Tt(4,1,"plugins.settings.custom.homebridge-gsh.message_homebridge_restart_required")," "))}function nM(e,t){if(1&e&&(be(0,"div",12),Vn(1,"i",13),be(2,"h4",14),gt(3),Mt(4,"titlecase"),Mt(5,"translate"),Fe(),St(6,tM,5,3,"div",8),Fe()),2&e){const n=Ir(3);Ie(3),Na(" ",Tt(4,3,n.linkType)," ",Tt(5,5,"plugins.settings.custom.homebridge-gsh.label_account_linked")," "),Ie(3),We("ngIf",n.justLinked)}}function rM(e,t){1&e&&(be(0,"div",15),gt(1," Search for "),be(2,"a",17),gt(3," Homebridge in the Google Home app "),Fe(),gt(4," and link the action to complete setup. "),Fe())}function oM(e,t){if(1&e&&(be(0,"div"),Vn(1,"p",2),Mt(2,"translate"),St(3,XS,1,0,"p",5),St(4,eM,4,3,"div",6),St(5,nM,7,7,"div",7),St(6,rM,5,0,"div",8),Fe()),2&e){const n=Ir(2);Ie(1),We("innerHTML",Tt(2,5,"plugins.settings.custom.homebridge-gsh.message_about"),zs),Ie(2),We("ngIf",!n.pluginConfig.token),Ie(1),We("ngIf",!n.pluginConfig.token),Ie(1),We("ngIf",n.pluginConfig.token),Ie(1),We("ngIf",n.pluginConfig.token)}}function iM(e,t){if(1&e&&(be(0,"div"),St(1,JS,13,9,"div",0),St(2,oM,7,7,"div",0),Fe()),2&e){const n=Ir();Ie(1),We("ngIf",!n.env.enableAccessories),Ie(1),We("ngIf",n.env.enableAccessories)}}const sM=new QS;let aM=(()=>{class e{constructor(n){this.translateService=n,this.env=window.homebridge.serverEnv.env,this.justLinked=!1,this.showAdvanced=!1,this.ready=!1,this.windowMessageListener=r=>{if(r.origin===this.linkDomain)try{const o=JSON.parse(r.data);o.token&&this.processToken(o.token)}catch(o){console.error(o)}}}ngOnInit(){return Yn(this,void 0,void 0,function*(){this.schema=yield window.homebridge.getPluginConfigSchema();const n=yield window.homebridge.getPluginConfig();n.length?(this.pluginConfig=n[0],window.homebridge.showSchemaForm()):this.pluginConfig={name:"Google Smart Home",platform:this.schema.pluginAlias},this.linkDomain=this.pluginConfig.betaServer?"https://clone-gsh.homebridge.ca":"https://homebridge-gsh.iot.oz.nu",this.linkUrl=this.linkDomain+"/link-account",console.log(this.linkUrl),this.parseToken(),this.ready=!0,window.homebridge.addEventListener("configChanged",r=>{this.pluginConfig=r.data[0]})})}updateConfig(){return Yn(this,void 0,void 0,function*(){return window.homebridge.updatePluginConfig([this.pluginConfig])})}linkAccount(){window.addEventListener("message",this.windowMessageListener,!1),console.log("linkAccount",this.linkUrl);const o=window.top.outerHeight/2+window.top.screenY-350,i=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=${o}, left=${i}`),this.originCheckInterval=setInterval(()=>{this.popup.postMessage("origin-check",this.linkDomain)},2e3)}processToken(n){return Yn(this,void 0,void 0,function*(){clearInterval(this.originCheckInterval),this.popup&&this.popup.close(),this.pluginConfig.token=n,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 n=sM.decodeToken(this.pluginConfig.token);this.linkType=n.id.split("|")[0].split("-")[0]}catch{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(n){return new(n||e)(R($g))},e.\u0275cmp=Dl({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(n,r){1&n&&St(0,iM,3,2,"div",0),2&n&&We("ngIf",r.translateService.ready&&r.ready)},dependencies:[dg,pg,KS]}),e})();Ur(178);let uM=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=er({type:e,bootstrap:[aM]}),e.\u0275inj=on({imports:[HS]}),e})();VS().bootstrapModule(uM).catch(e=>console.error(e))},178:($r,wi)=>{}},$r=>{$r($r.s=701)}]);