homebridge-eufy-security 2.2.0-beta.5 → 2.2.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +8 -7
- package/dist/platform.js.map +1 -1
- package/homebridge-ui/configui/app/util/types.d.ts +1 -0
- package/homebridge-ui/configui/app/util/types.d.ts.map +1 -1
- package/homebridge-ui/configui/app/util/types.js.map +1 -1
- package/homebridge-ui/public/index.html +1 -1
- package/homebridge-ui/public/{main.e86d06f28ca5553d.js → main.972c3f0e52e445c1.js} +1 -1
- package/homebridge-ui/server.js +1 -0
- package/homebridge-ui/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{830:(z6,D3,s1)=>{"use strict";function K(t){return"function"==typeof t}function a3(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const v1=a3(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,a)=>`${a+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function q2(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class H2{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(K(i))try{i()}catch(r){n=r instanceof v1?r.errors:[r]}const{_finalizers:a}=this;if(a){this._finalizers=null;for(const r of a)try{N(r)}catch(o){n=null!=n?n:[],o instanceof v1?n=[...n,...o.errors]:n.push(o)}}if(n)throw new v1(n)}}add(n){var e;if(n&&n!==this)if(this.closed)N(n);else{if(n instanceof H2){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&q2(e,n)}remove(n){const{_finalizers:e}=this;e&&q2(e,n),n instanceof H2&&n._removeParent(this)}}H2.EMPTY=(()=>{const t=new H2;return t.closed=!0,t})();const N2=H2.EMPTY;function n1(t){return t instanceof H2||t&&"closed"in t&&K(t.remove)&&K(t.add)&&K(t.unsubscribe)}function N(t){K(t)?t():t.unsubscribe()}const N1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},i1={setTimeout(t,n,...e){const{delegate:i}=i1;return(null==i?void 0:i.setTimeout)?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=i1;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function T1(t){i1.setTimeout(()=>{const{onUnhandledError:n}=N1;if(!n)throw t;n(t)})}function O1(){}const a2=d1("C",void 0,void 0);function d1(t,n,e){return{kind:t,value:n,error:e}}let _1=null;function K2(t){if(N1.useDeprecatedSynchronousErrorHandling){const n=!_1;if(n&&(_1={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=_1;if(_1=null,e)throw i}}else t()}class $3 extends H2{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,n1(n)&&n.add(this)):this.destination=ki}static create(n,e,i){return new Ge(n,e,i)}next(n){this.isStopped?W5(function U2(t){return d1("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?W5(function M2(t){return d1("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?W5(a2,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const o3=Function.prototype.bind;function r4(t,n){return o3.call(t,n)}class I8{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){S6(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){S6(i)}else S6(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){S6(e)}}}class Ge extends $3{constructor(n,e,i){let a;if(super(),K(n)||!n)a={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let r;this&&N1.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),a={next:n.next&&r4(n.next,r),error:n.error&&r4(n.error,r),complete:n.complete&&r4(n.complete,r)}):a=n}this.destination=new I8(a)}}function S6(t){N1.useDeprecatedSynchronousErrorHandling?function r3(t){N1.useDeprecatedSynchronousErrorHandling&&_1&&(_1.errorThrown=!0,_1.error=t)}(t):T1(t)}function W5(t,n){const{onStoppedNotification:e}=N1;e&&i1.setTimeout(()=>e(t,n))}const ki={closed:!0,next:O1,error:function Ai(t){throw t},complete:O1},q5="function"==typeof Symbol&&Symbol.observable||"@@observable";function o4(t){return t}let k2=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,a){const r=function Ri(t){return t&&t instanceof $3||function Oi(t){return t&&K(t.next)&&K(t.error)&&K(t.complete)}(t)&&n1(t)}(e)?e:new Ge(e,i,a);return K2(()=>{const{operator:o,source:s}=this;r.add(o?o.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=O8(i))((a,r)=>{const o=new Ge({next:s=>{try{e(s)}catch(c){r(c),o.unsubscribe()}},error:r,complete:a});this.subscribe(o)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[q5](){return this}pipe(...e){return function K5(t){return 0===t.length?o4:1===t.length?t[0]:function(e){return t.reduce((i,a)=>a(i),e)}}(e)(this)}toPromise(e){return new(e=O8(e))((i,a)=>{let r;this.subscribe(o=>r=o,o=>a(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function O8(t){var n;return null!==(n=null!=t?t:N1.Promise)&&void 0!==n?n:Promise}const Pi=a3(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let d2=(()=>{class t extends k2{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new K1(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Pi}next(e){K2(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){K2(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){K2(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:a,observers:r}=this;return i||a?N2:(this.currentObservers=null,r.push(e),new H2(()=>{this.currentObservers=null,q2(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:a,isStopped:r}=this;i?e.error(a):r&&e.complete()}asObservable(){const e=new k2;return e.source=this,e}}return t.create=(n,e)=>new K1(n,e),t})();class K1 extends d2{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:N2}}function Y5(t){return K(null==t?void 0:t.lift)}function c1(t){return n=>{if(Y5(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function R2(t,n,e,i,a){return new Fi(t,n,e,i,a)}class Fi extends $3{constructor(n,e,i,a,r,o){super(n),this.onFinalize=r,this.shouldUnsubscribe=o,this._next=e?function(s){try{e(s)}catch(c){n.error(c)}}:super._next,this._error=a?function(s){try{a(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function v2(t,n){return c1((e,i)=>{let a=0;e.subscribe(R2(i,r=>{i.next(t.call(n,r,a++))}))})}function w2(t){return this instanceof w2?(this.v=t,this):new w2(t)}function Y2(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=e.apply(t,n||[]),r=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(h){i[h]&&(a[h]=function(m){return new Promise(function(V,H){r.push([h,m,V,H])>1||s(h,m)})})}function s(h,m){try{!function c(h){h.value instanceof w2?Promise.resolve(h.value.v).then(l,C):f(r[0][2],h)}(i[h](m))}catch(V){f(r[0][3],V)}}function l(h){s("next",h)}function C(h){s("throw",h)}function f(h,m){h(m),r.shift(),r.length&&s(r[0][0],r[0][1])}}function l1(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function L(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(o){return new Promise(function(s,c){!function a(r,o,s,c){Promise.resolve(c).then(function(l){r({value:l,done:s})},o)}(s,c,(o=t[r](o)).done,o.value)})}}}const ji=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function ec(t){return K(null==t?void 0:t.then)}function tc(t){return K(t[q5])}function nc(t){return Symbol.asyncIterator&&K(null==t?void 0:t[Symbol.asyncIterator])}function ic(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ac=function cS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function rc(t){return K(null==t?void 0:t[ac])}function oc(t){return Y2(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:a}=yield w2(e.read());if(a)return yield w2(void 0);yield yield w2(i)}}finally{e.releaseLock()}})}function sc(t){return K(null==t?void 0:t.getReader)}function s3(t){if(t instanceof k2)return t;if(null!=t){if(tc(t))return function lS(t){return new k2(n=>{const e=t[q5]();if(K(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(ji(t))return function CS(t){return new k2(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(ec(t))return function fS(t){return new k2(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,T1)})}(t);if(nc(t))return cc(t);if(rc(t))return function uS(t){return new k2(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(sc(t))return function dS(t){return cc(oc(t))}(t)}throw ic(t)}function cc(t){return new k2(n=>{(function hS(t,n){var e,i,a,r;return function Ui(t,n,e,i){return new(e||(e=Promise))(function(r,o){function s(C){try{l(i.next(C))}catch(f){o(f)}}function c(C){try{l(i.throw(C))}catch(f){o(f)}}function l(C){C.done?r(C.value):function a(r){return r instanceof e?r:new e(function(o){o(r)})}(C.value).then(s,c)}l((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=l1(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(o){a={error:o}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(a)throw a.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function W4(t,n,e,i=0,a=!1){const r=n.schedule(function(){e(),a?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!a)return r}function b1(t,n,e=1/0){return K(n)?b1((i,a)=>v2((r,o)=>n(i,r,a,o))(s3(t(i,a))),e):("number"==typeof n&&(e=n),c1((i,a)=>function pS(t,n,e,i,a,r,o,s){const c=[];let l=0,C=0,f=!1;const h=()=>{f&&!c.length&&!l&&n.complete()},m=H=>l<i?V(H):c.push(H),V=H=>{r&&n.next(H),l++;let S=!1;s3(e(H,C++)).subscribe(R2(n,x=>{null==a||a(x),r?m(x):n.next(x)},()=>{S=!0},void 0,()=>{if(S)try{for(l--;c.length&&l<i;){const x=c.shift();o?W4(n,o,()=>V(x)):V(x)}h()}catch(x){n.error(x)}}))};return t.subscribe(R2(n,m,()=>{f=!0,h()})),()=>{null==s||s()}}(i,a,t,e)))}function J5(t=1/0){return b1(o4,t)}const c4=new k2(t=>t.complete());function lc(t){return t&&K(t.schedule)}function $i(t){return t[t.length-1]}function B8(t){return K($i(t))?t.pop():void 0}function X5(t){return lc($i(t))?t.pop():void 0}function Cc(t,n=0){return c1((e,i)=>{e.subscribe(R2(i,a=>W4(i,t,()=>i.next(a),n),()=>W4(i,t,()=>i.complete(),n),a=>W4(i,t,()=>i.error(a),n)))})}function fc(t,n=0){return c1((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function uc(t,n){if(!t)throw new Error("Iterable cannot be null");return new k2(e=>{W4(e,n,()=>{const i=t[Symbol.asyncIterator]();W4(e,n,()=>{i.next().then(a=>{a.done?e.complete():e.next(a.value)})},0,!0)})})}function $1(t,n){return n?function bS(t,n){if(null!=t){if(tc(t))return function vS(t,n){return s3(t).pipe(fc(n),Cc(n))}(t,n);if(ji(t))return function MS(t,n){return new k2(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(ec(t))return function _S(t,n){return s3(t).pipe(fc(n),Cc(n))}(t,n);if(nc(t))return uc(t,n);if(rc(t))return function yS(t,n){return new k2(e=>{let i;return W4(e,n,()=>{i=t[ac](),W4(e,n,()=>{let a,r;try{({value:a,done:r}=i.next())}catch(o){return void e.error(o)}r?e.complete():e.next(a)},0,!0)}),()=>K(null==i?void 0:i.return)&&i.return()})}(t,n);if(sc(t))return function LS(t,n){return uc(oc(t),n)}(t,n)}throw ic(t)}(t,n):s3(t)}function dc(...t){const n=X5(t),e=function mS(t,n){return"number"==typeof $i(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?s3(i[0]):J5(e)($1(i,n)):c4}function Q1(t){return t<=0?()=>c4:c1((n,e)=>{let i=0;n.subscribe(R2(e,a=>{++i<=t&&(e.next(a),t<=i&&e.complete())}))})}function hc(t={}){const{connector:n=(()=>new d2),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:a=!0}=t;return r=>{let o=null,s=null,c=null,l=0,C=!1,f=!1;const h=()=>{null==s||s.unsubscribe(),s=null},m=()=>{h(),o=c=null,C=f=!1},V=()=>{const H=o;m(),null==H||H.unsubscribe()};return c1((H,S)=>{l++,!f&&!C&&h();const x=c=null!=c?c:n();S.add(()=>{l--,0===l&&!f&&!C&&(s=Wi(V,a))}),x.subscribe(S),o||(o=new Ge({next:w=>x.next(w),error:w=>{f=!0,h(),s=Wi(m,e,w),x.error(w)},complete:()=>{C=!0,h(),s=Wi(m,i),x.complete()}}),$1(H).subscribe(o))})(r)}}function Wi(t,n,...e){return!0===n?(t(),null):!1===n?null:n(...e).pipe(Q1(1)).subscribe(()=>t())}function G2(t){for(let n in t)if(t[n]===G2)return n;throw Error("Could not find renamed property on target object.")}function qi(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function I2(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(I2).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Ki(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const VS=G2({__forward_ref__:G2});function x2(t){return t.__forward_ref__=x2,t.toString=function(){return I2(this())},t}function h2(t){return pc(t)?t():t}function pc(t){return"function"==typeof t&&t.hasOwnProperty(VS)&&t.__forward_ref__===x2}class S2 extends Error{constructor(n,e){super(function Yi(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function c2(t){return"string"==typeof t?t:null==t?"":String(t)}function Z1(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():c2(t)}function U8(t,n){const e=n?` in ${n}`:"";throw new S2(-201,`No provider for ${Z1(t)} found${e}`)}function N3(t,n){null==t&&function j2(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Q(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function T2(t){return{providers:t.providers||[],imports:t.imports||[]}}function Qi(t){return gc(t,G8)||gc(t,vc)}function gc(t,n){return t.hasOwnProperty(n)?t[n]:null}function mc(t){return t&&(t.hasOwnProperty(Zi)||t.hasOwnProperty(NS))?t[Zi]:null}const G8=G2({\u0275prov:G2}),Zi=G2({\u0275inj:G2}),vc=G2({ngInjectableDef:G2}),NS=G2({ngInjectorDef:G2});var o2=(()=>((o2=o2||{})[o2.Default=0]="Default",o2[o2.Host=1]="Host",o2[o2.Self=2]="Self",o2[o2.SkipSelf=4]="SkipSelf",o2[o2.Optional=8]="Optional",o2))();let Ji;function ve(t){const n=Ji;return Ji=t,n}function _c(t,n,e){const i=Qi(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&o2.Optional?null:void 0!==n?n:void U8(I2(t),"Injector")}function _e(t){return{toString:t}.toString()}var l4=(()=>((l4=l4||{})[l4.OnPush=0]="OnPush",l4[l4.Default=1]="Default",l4))(),z4=(()=>{return(t=z4||(z4={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",z4;var t})();const ES="undefined"!=typeof globalThis&&globalThis,AS="undefined"!=typeof window&&window,kS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,P2=ES||"undefined"!=typeof global&&global||AS||kS,D6={},$2=[],j8=G2({\u0275cmp:G2}),Xi=G2({\u0275dir:G2}),ea=G2({\u0275pipe:G2}),Mc=G2({\u0275mod:G2}),K4=G2({\u0275fac:G2}),et=G2({__NG_ELEMENT_ID__:G2});let IS=0;function n2(t){return _e(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===l4.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||$2,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||z4.Emulated,id:"c",styles:t.styles||$2,_:null,setInput:null,schemas:t.schemas||null,tView:null},a=t.directives,r=t.features,o=t.pipes;return i.id+=IS++,i.inputs=Vc(t.inputs,e),i.outputs=Vc(t.outputs),r&&r.forEach(s=>s(i)),i.directiveDefs=a?()=>("function"==typeof a?a():a).map(yc):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Lc):null,i})}function yc(t){return c3(t)||function Me(t){return t[Xi]||null}(t)}function Lc(t){return function $e(t){return t[ea]||null}(t)}const bc={};function E2(t){return _e(()=>{const n={type:t.type,bootstrap:t.bootstrap||$2,declarations:t.declarations||$2,imports:t.imports||$2,exports:t.exports||$2,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(bc[t.id]=t.type),n})}function Vc(t,n){if(null==t)return D6;const e={};for(const i in t)if(t.hasOwnProperty(i)){let a=t[i],r=a;Array.isArray(a)&&(r=a[1],a=a[0]),e[a]=i,n&&(n[a]=r)}return e}const G=n2;function c3(t){return t[j8]||null}function W3(t,n){const e=t[Mc]||null;if(!e&&!0===n)throw new Error(`Type ${I2(t)} does not have '\u0275mod' property.`);return e}function S4(t){return Array.isArray(t)&&"object"==typeof t[1]}function f4(t){return Array.isArray(t)&&!0===t[1]}function ia(t){return 0!=(8&t.flags)}function K8(t){return 2==(2&t.flags)}function Y8(t){return 1==(1&t.flags)}function u4(t){return null!==t.template}function US(t){return 0!=(512&t[2])}function Ye(t,n){return t.hasOwnProperty(K4)?t[K4]:null}class $S{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function H1(){return wc}function wc(t){return t.type.prototype.ngOnChanges&&(t.setInput=qS),WS}function WS(){const t=Sc(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===D6)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function qS(t,n,e,i){const a=Sc(t)||function KS(t,n){return t[zc]=n}(t,{previous:D6,current:null}),r=a.current||(a.current={}),o=a.previous,s=this.declaredInputs[e],c=o[s];r[s]=new $S(c&&c.currentValue,n,o===D6),t[i]=n}H1.ngInherit=!0;const zc="__ngSimpleChanges__";function Sc(t){return t[zc]||null}let ca;function la(){return void 0!==ca?ca:"undefined"!=typeof document?document:void 0}function M1(t){return!!t.listen}const Dc={createRenderer:(t,n)=>la()};function E1(t){for(;Array.isArray(t);)t=t[0];return t}function Q8(t,n){return E1(n[t])}function Y3(t,n){return E1(n[t.index])}function Ca(t,n){return t.data[n]}function E3(t,n){const e=n[t];return S4(e)?e:e[0]}function xc(t){return 4==(4&t[2])}function fa(t){return 128==(128&t[2])}function ye(t,n){return null==n?null:t[n]}function Nc(t){t[18]=0}function ua(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const l2={lFrame:Fc(null),bindingsEnabled:!0};function Ec(){return l2.bindingsEnabled}function O(){return l2.lFrame.lView}function D2(){return l2.lFrame.tView}function F(t){return l2.lFrame.contextLView=t,t[8]}function R1(){let t=Ac();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ac(){return l2.lFrame.currentTNode}function D4(t,n){const e=l2.lFrame;e.currentTNode=t,e.isParent=n}function da(){return l2.lFrame.isParent}function ha(){l2.lFrame.isParent=!1}function k6(){return l2.lFrame.bindingIndex++}function Q4(t){const n=l2.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function fD(t,n){const e=l2.lFrame;e.bindingIndex=e.bindingRootIndex=t,pa(n)}function pa(t){l2.lFrame.currentDirectiveIndex=t}function Oc(){return l2.lFrame.currentQueryIndex}function ma(t){l2.lFrame.currentQueryIndex=t}function dD(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Rc(t,n,e){if(e&o2.SkipSelf){let a=n,r=t;for(;!(a=a.parent,null!==a||e&o2.Host||(a=dD(r),null===a||(r=r[15],10&a.type))););if(null===a)return!1;n=a,t=r}const i=l2.lFrame=Pc();return i.currentTNode=n,i.lView=t,!0}function J8(t){const n=Pc(),e=t[1];l2.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Pc(){const t=l2.lFrame,n=null===t?null:t.child;return null===n?Fc(t):n}function Fc(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Bc(){const t=l2.lFrame;return l2.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Uc=Bc;function X8(){const t=Bc();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function _3(){return l2.lFrame.selectedIndex}function Le(t){l2.lFrame.selectedIndex=t}function y1(){const t=l2.lFrame;return Ca(t.tView,t.selectedIndex)}function I6(){l2.lFrame.currentNamespace="svg"}function O6(){!function mD(){l2.lFrame.currentNamespace=null}()}function en(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:C}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),s&&((t.contentHooks||(t.contentHooks=[])).push(e,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,s)),c&&(t.viewHooks||(t.viewHooks=[])).push(-e,c),l&&((t.viewHooks||(t.viewHooks=[])).push(e,l),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,l)),null!=C&&(t.destroyHooks||(t.destroyHooks=[])).push(e,C)}}function tn(t,n,e){Gc(t,n,3,e)}function nn(t,n,e,i){(3&t[2])===e&&Gc(t,n,e,i)}function va(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Gc(t,n,e,i){const r=null!=i?i:-1,o=n.length-1;let s=0;for(let c=void 0!==i?65535&t[18]:0;c<o;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=i&&s>=i)break}else n[c]<0&&(t[18]+=65536),(s<r||-1==r)&&(MD(t,e,n,c),t[18]=(4294901760&t[18])+c+2),c++}function MD(t,n,e,i){const a=e[i]<0,r=e[i+1],s=t[a?-e[i]:e[i]];if(a){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(s)}finally{}}}else try{r.call(s)}finally{}}class rt{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function an(t,n,e){const i=M1(t);let a=0;for(;a<e.length;){const r=e[a];if("number"==typeof r){if(0!==r)break;a++;const o=e[a++],s=e[a++],c=e[a++];i?t.setAttribute(n,s,c,o):n.setAttributeNS(o,s,c)}else{const o=r,s=e[++a];Ma(o)?i&&t.setProperty(n,o,s):i?t.setAttribute(n,o,s):n.setAttribute(o,s),a++}}return a}function jc(t){return 3===t||4===t||6===t}function Ma(t){return 64===t.charCodeAt(0)}function rn(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const a=n[i];"number"==typeof a?e=a:0===e||$c(t,e,a,null,-1===e||2===e?n[++i]:null)}}return t}function $c(t,n,e,i,a){let r=0,o=t.length;if(-1===n)o=-1;else for(;r<t.length;){const s=t[r++];if("number"==typeof s){if(s===n){o=-1;break}if(s>n){o=r-1;break}}}for(;r<t.length;){const s=t[r];if("number"==typeof s)break;if(s===e){if(null===i)return void(null!==a&&(t[r+1]=a));if(i===t[r+1])return void(t[r+2]=a)}r++,null!==i&&r++,null!==a&&r++}-1!==o&&(t.splice(o,0,n),r=o+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==a&&t.splice(r++,0,a)}function Wc(t){return-1!==t}function R6(t){return 32767&t}function P6(t,n){let e=function HD(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let ya=!0;function on(t){const n=ya;return ya=t,n}let wD=0;function st(t,n){const e=ba(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,La(i.data,t),La(n,null),La(i.blueprint,null));const a=sn(t,n),r=t.injectorIndex;if(Wc(a)){const o=R6(a),s=P6(a,n),c=s[1].data;for(let l=0;l<8;l++)n[r+l]=s[o+l]|c[o+l]}return n[r+8]=a,r}function La(t,n){t.push(0,0,0,0,0,0,0,0,n)}function ba(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function sn(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,a=n;for(;null!==a;){const r=a[1],o=r.type;if(i=2===o?r.declTNode:1===o?a[6]:null,null===i)return-1;if(e++,a=a[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function cn(t,n,e){!function zD(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(et)&&(i=e[et]),null==i&&(i=e[et]=wD++);const a=255&i;n.data[t+(a>>5)]|=1<<a}(t,n,e)}function Yc(t,n,e){if(e&o2.Optional)return t;U8(n,"NodeInjector")}function Qc(t,n,e,i){if(e&o2.Optional&&void 0===i&&(i=null),0==(e&(o2.Self|o2.Host))){const a=t[9],r=ve(void 0);try{return a?a.get(n,i,e&o2.Optional):_c(n,i,e&o2.Optional)}finally{ve(r)}}return Yc(i,n,e)}function Zc(t,n,e,i=o2.Default,a){if(null!==t){const r=function ND(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(et)?t[et]:void 0;return"number"==typeof n?n>=0?255&n:DD:n}(e);if("function"==typeof r){if(!Rc(n,t,i))return i&o2.Host?Yc(a,e,i):Qc(n,e,i,a);try{const o=r(i);if(null!=o||i&o2.Optional)return o;U8(e)}finally{Uc()}}else if("number"==typeof r){let o=null,s=ba(t,n),c=-1,l=i&o2.Host?n[16][6]:null;for((-1===s||i&o2.SkipSelf)&&(c=-1===s?sn(t,n):n[s+8],-1!==c&&el(i,!1)?(o=n[1],s=R6(c),n=P6(c,n)):s=-1);-1!==s;){const C=n[1];if(Xc(r,s,C.data)){const f=xD(s,n,e,o,i,l);if(f!==Jc)return f}c=n[s+8],-1!==c&&el(i,n[1].data[s+8]===l)&&Xc(r,s,n)?(o=C,s=R6(c),n=P6(c,n)):s=-1}}}return Qc(n,e,i,a)}const Jc={};function DD(){return new F6(R1(),O())}function xD(t,n,e,i,a,r){const o=n[1],s=o.data[t+8],C=ln(s,o,e,null==i?K8(s)&&ya:i!=o&&0!=(3&s.type),a&o2.Host&&r===s);return null!==C?ct(n,o,C,s):Jc}function ln(t,n,e,i,a){const r=t.providerIndexes,o=n.data,s=1048575&r,c=t.directiveStart,C=r>>20,h=a?s+C:t.directiveEnd;for(let m=i?s:s+C;m<h;m++){const V=o[m];if(m<c&&e===V||m>=c&&V.type===e)return m}if(a){const m=o[c];if(m&&u4(m)&&m.type===e)return c}return null}function ct(t,n,e,i){let a=t[e];const r=n.data;if(function yD(t){return t instanceof rt}(a)){const o=a;o.resolving&&function HS(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new S2(-200,`Circular dependency in DI detected for ${t}${e}`)}(Z1(r[e]));const s=on(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?ve(o.injectImpl):null;Rc(t,i,o2.Default);try{a=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function _D(t,n,e){const{ngOnChanges:i,ngOnInit:a,ngDoCheck:r}=n.type.prototype;if(i){const o=wc(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}a&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,a),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==c&&ve(c),on(s),o.resolving=!1,Uc()}}return a}function Xc(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function el(t,n){return!(t&o2.Self||t&o2.Host&&n)}class F6{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return Zc(this._tNode,this._lView,n,i,e)}}function C3(t){return _e(()=>{const n=t.prototype.constructor,e=n[K4]||Va(n),i=Object.prototype;let a=Object.getPrototypeOf(t.prototype).constructor;for(;a&&a!==i;){const r=a[K4]||Va(a);if(r&&r!==e)return r;a=Object.getPrototypeOf(a)}return r=>new r})}function Va(t){return pc(t)?()=>{const n=Va(h2(t));return n&&n()}:Ye(t)}const U6="__parameters__";function j6(t,n,e){return _e(()=>{const i=function Ha(t){return function(...e){if(t){const i=t(...e);for(const a in i)this[a]=i[a]}}}(n);function a(...r){if(this instanceof a)return i.apply(this,r),this;const o=new a(...r);return s.annotation=o,s;function s(c,l,C){const f=c.hasOwnProperty(U6)?c[U6]:Object.defineProperty(c,U6,{value:[]})[U6];for(;f.length<=C;)f.push(null);return(f[C]=f[C]||[]).push(o),c}}return e&&(a.prototype=Object.create(e.prototype)),a.prototype.ngMetadataName=t,a.annotationCls=a,a})}class _2{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Q({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ED=new _2("AnalyzeForEntryComponents");function Q3(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),Q3(i,n)):n!==t&&n.push(i)}return n}function x4(t,n){t.forEach(e=>Array.isArray(e)?x4(e,n):n(e))}function nl(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Cn(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ft(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function A3(t,n,e){let i=$6(t,n);return i>=0?t[1|i]=e:(i=~i,function ID(t,n,e,i){let a=t.length;if(a==n)t.push(e,i);else if(1===a)t.push(i,t[0]),t[0]=e;else{for(a--,t.push(t[a-1],t[a]);a>n;)t[a]=t[a-2],a--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function za(t,n){const e=$6(t,n);if(e>=0)return t[1|e]}function $6(t,n){return function rl(t,n,e){let i=0,a=t.length>>e;for(;a!==i;){const r=i+(a-i>>1),o=t[r<<e];if(n===o)return r<<e;o>n?a=r:i=r+1}return~(a<<e)}(t,n,1)}const ut={},Da="__NG_DI_FLAG__",un="ngTempTokenPath",GD=/\n/gm,sl="__source",$D=G2({provide:String,useValue:G2});let dt;function cl(t){const n=dt;return dt=t,n}function WD(t,n=o2.Default){if(void 0===dt)throw new S2(203,"");return null===dt?_c(t,void 0,n):dt.get(t,n&o2.Optional?null:void 0,n)}function q(t,n=o2.Default){return(function TS(){return Ji}()||WD)(h2(t),n)}const qD=q;function xa(t){const n=[];for(let e=0;e<t.length;e++){const i=h2(t[e]);if(Array.isArray(i)){if(0===i.length)throw new S2(900,"");let a,r=o2.Default;for(let o=0;o<i.length;o++){const s=i[o],c=KD(s);"number"==typeof c?-1===c?a=s.token:r|=c:a=s}n.push(q(a,r))}else n.push(q(i))}return n}function ht(t,n){return t[Da]=n,t.prototype[Da]=n,t}function KD(t){return t[Da]}const dn=ht(j6("Inject",t=>({token:t})),-1),Ve=ht(j6("Optional"),8),pt=ht(j6("SkipSelf"),4);let pn,gn;function q6(t){var n;return(null===(n=function Ta(){if(void 0===pn&&(pn=null,P2.trustedTypes))try{pn=P2.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return pn}())||void 0===n?void 0:n.createHTML(t))||t}function hl(t){var n;return(null===(n=function Ea(){if(void 0===gn&&(gn=null,P2.trustedTypes))try{gn=P2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return gn}())||void 0===n?void 0:n.createHTML(t))||t}class Ze{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class sx extends Ze{getTypeName(){return"HTML"}}class cx extends Ze{getTypeName(){return"Style"}}class lx extends Ze{getTypeName(){return"Script"}}class Cx extends Ze{getTypeName(){return"URL"}}class fx extends Ze{getTypeName(){return"ResourceURL"}}function k3(t){return t instanceof Ze?t.changingThisBreaksApplicationSecurity:t}function N4(t,n){const e=ml(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function ml(t){return t instanceof Ze&&t.getTypeName()||null}class mx{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(q6(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class vx{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=q6(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=q6(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let a=e.length-1;0<a;a--){const o=e.item(a).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Mx=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,yx=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function mt(t){return(t=String(t)).match(Mx)||t.match(yx)?t:"unsafe:"+t}function T4(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function vt(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Ml=T4("area,br,col,hr,img,wbr"),yl=T4("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ll=T4("rp,rt"),Aa=vt(Ml,vt(yl,T4("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")),vt(Ll,T4("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")),vt(Ll,yl)),ka=T4("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ia=T4("srcset"),bl=vt(ka,Ia,T4("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),T4("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")),Lx=T4("script,style,template");class bx{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let a=this.checkClobberedElement(e,e.nextSibling);if(a){e=a;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Aa.hasOwnProperty(e))return this.sanitizedSomething=!0,!Lx.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let a=0;a<i.length;a++){const r=i.item(a),o=r.name,s=o.toLowerCase();if(!bl.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let c=r.value;ka[s]&&(c=mt(c)),Ia[s]&&(t=c,c=(t=String(t)).split(",").map(n=>mt(n.trim())).join(", ")),this.buf.push(" ",o,'="',Vl(c),'"')}var t;return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();Aa.hasOwnProperty(e)&&!Ml.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Vl(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const Vx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hx=/([^\#-~ |!])/g;function Vl(t){return t.replace(/&/g,"&").replace(Vx,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Hx,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let mn;function Hl(t,n){let e=null;try{mn=mn||function vl(t){const n=new vx(t);return function _x(){try{return!!(new window.DOMParser).parseFromString(q6(""),"text/html")}catch(t){return!1}}()?new mx(n):n}(t);let i=n?String(n):"";e=mn.getInertBodyElement(i);let a=5,r=i;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,i=r,r=e.innerHTML,e=mn.getInertBodyElement(i)}while(i!==r);return q6((new bx).sanitizeChildren(Oa(e)||e))}finally{if(e){const i=Oa(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Oa(t){return"content"in t&&function wx(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Z2=(()=>((Z2=Z2||{})[Z2.NONE=0]="NONE",Z2[Z2.HTML=1]="HTML",Z2[Z2.STYLE=2]="STYLE",Z2[Z2.SCRIPT=3]="SCRIPT",Z2[Z2.URL=4]="URL",Z2[Z2.RESOURCE_URL=5]="RESOURCE_URL",Z2))();function wl(t){const n=_t();return n?hl(n.sanitize(Z2.HTML,t)||""):N4(t,"HTML")?hl(k3(t)):Hl(la(),c2(t))}function E4(t){const n=_t();return n?n.sanitize(Z2.STYLE,t)||"":N4(t,"Style")?k3(t):c2(t)}function Je(t){const n=_t();return n?n.sanitize(Z2.URL,t)||"":N4(t,"URL")?k3(t):mt(c2(t))}function _t(){const t=O();return t&&t[12]}const Dl="__ngContext__";function f3(t,n){t[Dl]=n}function Pa(t){const n=function Mt(t){return t[Dl]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function Ba(t){return t.ngOriginalError}function Bx(t,...n){t.error(...n)}class yt{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function Fx(t){return t&&t.ngErrorLogger||Bx}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Ba(n);for(;e&&Ba(e);)e=Ba(e);return e||null}}const Zx=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(P2))();function A4(t){return t instanceof Function?t():t}var I3=(()=>((I3=I3||{})[I3.Important=1]="Important",I3[I3.DashCase=2]="DashCase",I3))();function Ga(t,n){return undefined(t,n)}function Lt(t){const n=t[3];return f4(n)?n[3]:n}function ja(t){return Rl(t[13])}function $a(t){return Rl(t[4])}function Rl(t){for(;null!==t&&!f4(t);)t=t[4];return t}function Y6(t,n,e,i,a){if(null!=i){let r,o=!1;f4(i)?r=i:S4(i)&&(o=!0,i=i[0]);const s=E1(i);0===t&&null!==e?null==a?jl(n,e,s):Xe(n,e,s,a||null,!0):1===t&&null!==e?Xe(n,e,s,a||null,!0):2===t?function Zl(t,n,e){const i=vn(t,n);i&&function fN(t,n,e,i){M1(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,s,o):3===t&&n.destroyNode(s),null!=r&&function hN(t,n,e,i,a){const r=e[7];r!==E1(e)&&Y6(n,t,i,r,a);for(let s=10;s<e.length;s++){const c=e[s];bt(c[1],c,t,n,i,r)}}(n,t,r,e,a)}}function qa(t,n,e){if(M1(t))return t.createElement(n,e);{const i=null!==e?function JS(t){const n=t.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?t.createElement(n):t.createElementNS(i,n)}}function Fl(t,n){const e=t[9],i=e.indexOf(n),a=n[3];1024&n[2]&&(n[2]&=-1025,ua(a,-1)),e.splice(i,1)}function Ka(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const a=i[17];null!==a&&a!==t&&Fl(a,i),n>0&&(t[e-1][4]=i[4]);const r=Cn(t,10+n);!function iN(t,n){bt(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Bl(t,n){if(!(256&n[2])){const e=n[11];M1(e)&&e.destroyNode&&bt(t,n,e,3,null,null),function oN(t){let n=t[13];if(!n)return Ya(t[1],t);for(;n;){let e=null;if(S4(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)S4(n)&&Ya(n[1],n),n=n[3];null===n&&(n=t),S4(n)&&Ya(n[1],n),e=n&&n[4]}n=e}}(n)}}function Ya(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function CN(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const a=n[e[i]];if(!(a instanceof rt)){const r=e[i+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const s=a[r[o]],c=r[o+1];try{c.call(s)}finally{}}else try{r.call(a)}finally{}}}}(t,n),function lN(t,n){const e=t.cleanup,i=n[7];let a=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const o=e[r+1],s="function"==typeof o?o(n):E1(n[o]),c=i[a=e[r+2]],l=e[r+3];"boolean"==typeof l?s.removeEventListener(e[r],c,l):l>=0?i[a=l]():i[a=-l].unsubscribe(),r+=2}else{const o=i[a=e[r+1]];e[r].call(o)}if(null!==i){for(let r=a+1;r<i.length;r++)i[r]();n[7]=null}}(t,n),1===n[1].type&&M1(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&f4(n[3])){e!==n[3]&&Fl(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function Ul(t,n,e){return function Gl(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const a=t.data[i.directiveStart].encapsulation;if(a===z4.None||a===z4.Emulated)return null}return Y3(i,e)}(t,n.parent,e)}function Xe(t,n,e,i,a){M1(t)?t.insertBefore(n,e,i,a):n.insertBefore(e,i,a)}function jl(t,n,e){M1(t)?t.appendChild(n,e):n.appendChild(e)}function $l(t,n,e,i,a){null!==i?Xe(t,n,e,i,a):jl(t,n,e)}function vn(t,n){return M1(t)?t.parentNode(n):n.parentNode}function Wl(t,n,e){return Kl(t,n,e)}let Kl=function ql(t,n,e){return 40&t.type?Y3(t,e):null};function _n(t,n,e,i){const a=Ul(t,i,n),r=n[11],s=Wl(i.parent||n[6],i,n);if(null!=a)if(Array.isArray(e))for(let c=0;c<e.length;c++)$l(r,a,e[c],s,!1);else $l(r,a,e,s,!1)}function Mn(t,n){if(null!==n){const e=n.type;if(3&e)return Y3(n,t);if(4&e)return Za(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return Mn(t,i);{const a=t[n.index];return f4(a)?Za(-1,a):E1(a)}}if(32&e)return Ga(n,t)()||E1(t[n.index]);{const i=Ql(t,n);return null!==i?Array.isArray(i)?i[0]:Mn(Lt(t[16]),i):Mn(t,n.next)}}return null}function Ql(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Za(t,n){const e=10+t+1;if(e<n.length){const i=n[e],a=i[1].firstChild;if(null!==a)return Mn(i,a)}return n[7]}function Ja(t,n,e,i,a,r,o){for(;null!=e;){const s=i[e.index],c=e.type;if(o&&0===n&&(s&&f3(E1(s),i),e.flags|=4),64!=(64&e.flags))if(8&c)Ja(t,n,e.child,i,a,r,!1),Y6(n,t,a,s,r);else if(32&c){const l=Ga(e,i);let C;for(;C=l();)Y6(n,t,a,C,r);Y6(n,t,a,s,r)}else 16&c?Jl(t,n,i,e,a,r):Y6(n,t,a,s,r);e=o?e.projectionNext:e.next}}function bt(t,n,e,i,a,r){Ja(e,i,t.firstChild,n,a,r,!1)}function Jl(t,n,e,i,a,r){const o=e[16],c=o[6].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)Y6(n,t,a,c[l],r);else Ja(t,n,c,o[3],a,r,!0)}function Xl(t,n,e){M1(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function Xa(t,n,e){M1(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function eC(t,n,e){let i=t.length;for(;;){const a=t.indexOf(n,e);if(-1===a)return a;if(0===a||t.charCodeAt(a-1)<=32){const r=n.length;if(a+r===i||t.charCodeAt(a+r)<=32)return a}e=a+1}}const tC="ng-template";function gN(t,n,e){let i=0;for(;i<t.length;){let a=t[i++];if(e&&"class"===a){if(a=t[i],-1!==eC(a.toLowerCase(),n,0))return!0}else if(1===a){for(;i<t.length&&"string"==typeof(a=t[i++]);)if(a.toLowerCase()===n)return!0;return!1}}return!1}function nC(t){return 4===t.type&&t.value!==tC}function mN(t,n,e){return n===(4!==t.type||e?t.value:tC)}function vN(t,n,e){let i=4;const a=t.attrs||[],r=function yN(t){for(let n=0;n<t.length;n++)if(jc(t[n]))return n;return t.length}(a);let o=!1;for(let s=0;s<n.length;s++){const c=n[s];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!mN(t,c,e)||""===c&&1===n.length){if(d4(i))return!1;o=!0}}else{const l=8&i?c:n[++s];if(8&i&&null!==t.attrs){if(!gN(t.attrs,l,e)){if(d4(i))return!1;o=!0}continue}const f=_N(8&i?"class":c,a,nC(t),e);if(-1===f){if(d4(i))return!1;o=!0;continue}if(""!==l){let h;h=f>r?"":a[f+1].toLowerCase();const m=8&i?h:null;if(m&&-1!==eC(m,l,0)||2&i&&l!==h){if(d4(i))return!1;o=!0}}}}else{if(!o&&!d4(i)&&!d4(c))return!1;if(o&&d4(c))continue;o=!1,i=c|1&i}}return d4(i)||o}function d4(t){return 0==(1&t)}function _N(t,n,e,i){if(null===n)return-1;let a=0;if(i||!e){let r=!1;for(;a<n.length;){const o=n[a];if(o===t)return a;if(3===o||6===o)r=!0;else{if(1===o||2===o){let s=n[++a];for(;"string"==typeof s;)s=n[++a];continue}if(4===o)break;if(0===o){a+=4;continue}}a+=r?1:2}return-1}return function LN(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function iC(t,n,e=!1){for(let i=0;i<n.length;i++)if(vN(t,n[i],e))return!0;return!1}function bN(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let a=0;a<t.length;a++)if(t[a]!==i[a])continue e;return!0}}return!1}function aC(t,n){return t?":not("+n.trim()+")":n}function VN(t){let n=t[0],e=1,i=2,a="",r=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const s=t[++e];a+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?a+="."+o:4&i&&(a+=" "+o);else""!==a&&!d4(o)&&(n+=aC(r,a),a=""),i=o,r=r||!d4(i);e++}return""!==a&&(n+=aC(r,a)),n}const C2={};function v(t){rC(D2(),O(),_3()+t,!1)}function rC(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&tn(n,r,e)}else{const r=t.preOrderHooks;null!==r&&nn(n,r,0,e)}Le(e)}function yn(t,n){return t<<17|n<<2}function h4(t){return t>>17&32767}function er(t){return 2|t}function Z4(t){return(131068&t)>>2}function tr(t,n){return-131069&t|n<<2}function nr(t){return 1|t}function gC(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const a=e[i],r=e[i+1];if(-1!==r){const o=t.data[r];ma(a),o.contentQueries(2,n[r],r)}}}function Vt(t,n,e,i,a,r,o,s,c,l){const C=n.blueprint.slice();return C[0]=a,C[2]=140|i,Nc(C),C[3]=C[15]=t,C[8]=e,C[10]=o||t&&t[10],C[11]=s||t&&t[11],C[12]=c||t&&t[12]||null,C[9]=l||t&&t[9]||null,C[6]=r,C[16]=2==n.type?t[16]:C,C}function Q6(t,n,e,i,a){let r=t.data[n];if(null===r)r=function fr(t,n,e,i,a){const r=Ac(),o=da(),c=t.data[n]=function UN(t,n,e,i,a,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:a,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,n,i,a);return null===t.firstChild&&(t.firstChild=c),null!==r&&(o?null==r.child&&null!==c.parent&&(r.child=c):null===r.next&&(r.next=c)),c}(t,n,e,i,a),function CD(){return l2.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=a;const o=function at(){const t=l2.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return D4(r,!0),r}function Z6(t,n,e,i){if(0===e)return-1;const a=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return a}function Ht(t,n,e){J8(n);try{const i=t.viewQuery;null!==i&&Mr(1,i,e);const a=t.template;null!==a&&mC(t,n,a,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&gC(t,n),t.staticViewQueries&&Mr(2,t.viewQuery,e);const r=t.components;null!==r&&function PN(t,n){for(let e=0;e<n.length;e++)oT(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,X8()}}function J6(t,n,e,i){const a=n[2];if(256!=(256&a)){J8(n);try{Nc(n),function kc(t){return l2.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&mC(t,n,e,2,i);const o=3==(3&a);if(o){const l=t.preOrderCheckHooks;null!==l&&tn(n,l,null)}else{const l=t.preOrderHooks;null!==l&&nn(n,l,0,null),va(n,0)}if(function aT(t){for(let n=ja(t);null!==n;n=$a(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const a=e[i],r=a[3];0==(1024&a[2])&&ua(r,1),a[2]|=1024}}}(n),function iT(t){for(let n=ja(t);null!==n;n=$a(n))for(let e=10;e<n.length;e++){const i=n[e],a=i[1];fa(i)&&J6(a,i,a.template,i[8])}}(n),null!==t.contentQueries&&gC(t,n),o){const l=t.contentCheckHooks;null!==l&&tn(n,l)}else{const l=t.contentHooks;null!==l&&nn(n,l,1),va(n,1)}!function ON(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const a=e[i];if(a<0)Le(~a);else{const r=a,o=e[++i],s=e[++i];fD(o,r),s(2,n[r])}}}finally{Le(-1)}}(t,n);const s=t.components;null!==s&&function RN(t,n){for(let e=0;e<n.length;e++)rT(t,n[e])}(n,s);const c=t.viewQuery;if(null!==c&&Mr(2,c,i),o){const l=t.viewCheckHooks;null!==l&&tn(n,l)}else{const l=t.viewHooks;null!==l&&nn(n,l,2),va(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,ua(n[3],-1))}finally{X8()}}}function FN(t,n,e,i){const a=n[10],o=xc(n);try{!o&&a.begin&&a.begin(),o&&Ht(t,n,i),J6(t,n,e,i)}finally{!o&&a.end&&a.end()}}function mC(t,n,e,i,a){const r=_3(),o=2&i;try{Le(-1),o&&n.length>20&&rC(t,n,20,!1),e(i,a)}finally{Le(r)}}function ur(t,n,e){!Ec()||(function YN(t,n,e,i){const a=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||st(e,n),f3(i,n);const o=e.initialInputs;for(let s=a;s<r;s++){const c=t.data[s],l=u4(c);l&&eT(n,e,c);const C=ct(n,t,s,e);f3(C,n),null!==o&&tT(0,s-a,C,c,0,o),l&&(E3(e.index,n)[8]=C)}}(t,n,e,Y3(e,n)),128==(128&e.flags)&&function QN(t,n,e){const i=e.directiveStart,a=e.directiveEnd,o=e.index,s=function uD(){return l2.lFrame.currentDirectiveIndex}();try{Le(o);for(let c=i;c<a;c++){const l=t.data[c],C=n[c];pa(c),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&wC(l,C)}}finally{Le(-1),pa(s)}}(t,n,e))}function dr(t,n,e=Y3){const i=n.localNames;if(null!==i){let a=n.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],s=-1===o?e(n,t):t[o];t[a++]=s}}}function _C(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Vn(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Vn(t,n,e,i,a,r,o,s,c,l){const C=20+i,f=C+a,h=function BN(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:C2);return e}(C,f),m="function"==typeof l?l():l;return h[1]={type:t,blueprint:h,template:e,queries:null,viewQuery:s,declTNode:n,data:h.slice().fill(null,C),bindingStartIndex:C,expandoStartIndex:f,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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1}}function LC(t,n,e,i){const a=TC(n);null===e?a.push(i):(a.push(e),t.firstCreatePass&&EC(t).push(i,a.length-1))}function bC(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const a=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,a):e[i]=[n,a]}return e}function O3(t,n,e,i,a,r,o,s){const c=Y3(n,e);let C,l=n.inputs;!s&&null!=l&&(C=l[i])?(IC(t,e,C,i,a),K8(n)&&function $N(t,n){const e=E3(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function jN(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),a=null!=o?o(a,n.value||"",i):a,M1(r)?r.setProperty(c,i,a):Ma(i)||(c.setProperty?c.setProperty(i,a):c[i]=a))}function hr(t,n,e,i){let a=!1;if(Ec()){const r=function ZN(t,n,e){const i=t.directiveRegistry;let a=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];iC(e,o.selectors,!1)&&(a||(a=[]),cn(st(e,n),t,o.type),u4(o)?(zC(t,e),a.unshift(o)):a.push(o))}return a}(t,n,e),o=null===i?null:{"":-1};if(null!==r){a=!0,SC(e,t.data.length,r.length);for(let C=0;C<r.length;C++){const f=r[C];f.providersResolver&&f.providersResolver(f)}let s=!1,c=!1,l=Z6(t,n,r.length,null);for(let C=0;C<r.length;C++){const f=r[C];e.mergedAttrs=rn(e.mergedAttrs,f.hostAttrs),DC(t,e,n,l,f),XN(l,f,o),null!==f.contentQueries&&(e.flags|=8),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(e.flags|=128);const h=f.type.prototype;!s&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),s=!0),!c&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),c=!0),l++}!function GN(t,n){const i=n.directiveEnd,a=t.data,r=n.attrs,o=[];let s=null,c=null;for(let l=n.directiveStart;l<i;l++){const C=a[l],f=C.inputs,h=null===r||nC(n)?null:nT(f,r);o.push(h),s=bC(f,l,s),c=bC(C.outputs,l,c)}null!==s&&(s.hasOwnProperty("class")&&(n.flags|=16),s.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=s,n.outputs=c}(t,e)}o&&function JN(t,n,e){if(n){const i=t.localNames=[];for(let a=0;a<n.length;a+=2){const r=e[n[a+1]];if(null==r)throw new S2(-301,!1);i.push(n[a],r)}}}(e,i,o)}return e.mergedAttrs=rn(e.mergedAttrs,e.attrs),a}function HC(t,n,e,i,a,r){const o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;null===s&&(s=t.hostBindingOpCodes=[]);const c=~n.index;(function KN(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=c&&s.push(c),s.push(i,a,o)}}function wC(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function zC(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function XN(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;u4(n)&&(e[""]=t)}}function SC(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function DC(t,n,e,i,a){t.data[i]=a;const r=a.factory||(a.factory=Ye(a.type)),o=new rt(r,u4(a),null);t.blueprint[i]=o,e[i]=o,HC(t,n,0,i,Z6(t,e,a.hostVars,C2),a)}function eT(t,n,e){const i=Y3(n,t),a=_C(e),r=t[10],o=Hn(t,Vt(t,a,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function k4(t,n,e,i,a,r){const o=Y3(t,n);!function pr(t,n,e,i,a,r,o){if(null==r)M1(t)?t.removeAttribute(n,a,e):n.removeAttribute(a);else{const s=null==o?c2(r):o(r,i||"",a);M1(t)?t.setAttribute(n,a,s,e):e?n.setAttributeNS(e,a,s):n.setAttribute(a,s)}}(n[11],o,r,t.value,e,i,a)}function tT(t,n,e,i,a,r){const o=r[n];if(null!==o){const s=i.setInput;for(let c=0;c<o.length;){const l=o[c++],C=o[c++],f=o[c++];null!==s?i.setInput(e,f,l,C):e[C]=f}}}function nT(t,n){let e=null,i=0;for(;i<n.length;){const a=n[i];if(0!==a)if(5!==a){if("number"==typeof a)break;t.hasOwnProperty(a)&&(null===e&&(e=[]),e.push(a,t[a],n[i+1])),i+=2}else i+=2;else i+=4}return e}function xC(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function rT(t,n){const e=E3(n,t);if(fa(e)){const i=e[1];80&e[2]?J6(i,e,i.template,e[8]):e[5]>0&&gr(e)}}function gr(t){for(let i=ja(t);null!==i;i=$a(i))for(let a=10;a<i.length;a++){const r=i[a];if(1024&r[2]){const o=r[1];J6(o,r,o.template,r[8])}else r[5]>0&&gr(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const a=E3(e[i],t);fa(a)&&a[5]>0&&gr(a)}}function oT(t,n){const e=E3(n,t),i=e[1];(function sT(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Ht(i,e,e[8])}function Hn(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function mr(t){for(;t;){t[2]|=64;const n=Lt(t);if(US(t)&&!n)return t;t=n}return null}function NC(t){!function vr(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=Pa(e),a=i[1];FN(a,i,a.template,e)}}(t[8])}function Mr(t,n,e){ma(0),n(t,e)}const lT=(()=>Promise.resolve(null))();function TC(t){return t[7]||(t[7]=[])}function EC(t){return t.cleanup||(t.cleanup=[])}function kC(t,n){const e=t[9],i=e?e.get(yt,null):null;i&&i.handleError(n)}function IC(t,n,e,i,a){for(let r=0;r<e.length;){const o=e[r++],s=e[r++],c=n[o],l=t.data[o];null!==l.setInput?l.setInput(c,a,i,s):c[s]=a}}function J4(t,n,e){const i=Q8(n,t);!function Pl(t,n,e){M1(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function wn(t,n,e){let i=e?t.styles:null,a=e?t.classes:null,r=0;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?r=s:1==r?a=Ki(a,s):2==r&&(i=Ki(i,s+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=a:t.classesWithoutHost=a}const yr=new _2("INJECTOR",-1);class OC{get(n,e=ut){if(e===ut){const i=new Error(`NullInjectorError: No provider for ${I2(n)}!`);throw i.name="NullInjectorError",i}return e}}const Lr=new _2("Set Injector scope."),wt={},uT={};let br;function RC(){return void 0===br&&(br=new OC),br}function PC(t,n=null,e=null,i){const a=FC(t,n,e,i);return a._resolveInjectorDefTypes(),a}function FC(t,n=null,e=null,i){return new dT(t,e,n||RC(),i)}class dT{constructor(n,e,i,a=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&x4(e,s=>this.processProvider(s,n,e)),x4([n],s=>this.processInjectorType(s,[],r)),this.records.set(yr,X6(void 0,this));const o=this.records.get(Lr);this.scope=null!=o?o.value:null,this.source=a||("object"==typeof n?null:I2(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=ut,i=o2.Default){this.assertNotDestroyed();const a=cl(this),r=ve(void 0);try{if(!(i&o2.SkipSelf)){let s=this.records.get(n);if(void 0===s){const c=function yT(t){return"function"==typeof t||"object"==typeof t&&t instanceof _2}(n)&&Qi(n);s=c&&this.injectableDefInScope(c)?X6(Vr(n),wt):null,this.records.set(n,s)}if(null!=s)return this.hydrate(n,s)}return(i&o2.Self?RC():this.parent).get(n,e=i&o2.Optional&&e===ut?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[un]=o[un]||[]).unshift(I2(n)),a)throw o;return function YD(t,n,e,i){const a=t[un];throw n[sl]&&a.unshift(n[sl]),t.message=function QD(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let a=I2(n);if(Array.isArray(n))a=n.map(I2).join(" -> ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let s=n[o];r.push(o+":"+("string"==typeof s?JSON.stringify(s):I2(s)))}a=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${a}]: ${t.replace(GD,"\n ")}`}("\n"+t.message,a,e,i),t.ngTokenPath=a,t[un]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{ve(r),cl(a)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,a)=>n.push(I2(a))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S2(205,!1)}processInjectorType(n,e,i){if(!(n=h2(n)))return!1;let a=mc(n);const r=null==a&&n.ngModule||void 0,o=void 0===r?n:r,s=-1!==i.indexOf(o);if(void 0!==r&&(a=mc(r)),null==a)return!1;if(null!=a.imports&&!s){let C;i.push(o);try{x4(a.imports,f=>{this.processInjectorType(f,e,i)&&(void 0===C&&(C=[]),C.push(f))})}finally{}if(void 0!==C)for(let f=0;f<C.length;f++){const{ngModule:h,providers:m}=C[f];x4(m,V=>this.processProvider(V,h,m||$2))}}this.injectorDefTypes.add(o);const c=Ye(o)||(()=>new o);this.records.set(o,X6(c,wt));const l=a.providers;if(null!=l&&!s){const C=n;x4(l,f=>this.processProvider(f,C,l))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let a=e5(n=h2(n))?n:h2(n&&n.provide);const r=function pT(t,n,e){return UC(t)?X6(void 0,t.useValue):X6(BC(t),wt)}(n);if(e5(n)||!0!==n.multi)this.records.get(a);else{let o=this.records.get(a);o||(o=X6(void 0,wt,!0),o.factory=()=>xa(o.multi),this.records.set(a,o)),a=n,o.multi.push(n)}this.records.set(a,r)}hydrate(n,e){return e.value===wt&&(e.value=uT,e.value=e.factory()),"object"==typeof e.value&&e.value&&function MT(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=h2(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Vr(t){const n=Qi(t),e=null!==n?n.factory:Ye(t);if(null!==e)return e;if(t instanceof _2)throw new S2(204,!1);if(t instanceof Function)return function hT(t){const n=t.length;if(n>0)throw ft(n,"?"),new S2(204,!1);const e=function DS(t){const n=t&&(t[G8]||t[vc]);if(n){const e=function xS(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new S2(204,!1)}function BC(t,n,e){let i;if(e5(t)){const a=h2(t);return Ye(a)||Vr(a)}if(UC(t))i=()=>h2(t.useValue);else if(function mT(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...xa(t.deps||[]));else if(function gT(t){return!(!t||!t.useExisting)}(t))i=()=>q(h2(t.useExisting));else{const a=h2(t&&(t.useClass||t.provide));if(!function _T(t){return!!t.deps}(t))return Ye(a)||Vr(a);i=()=>new a(...xa(t.deps))}return i}function X6(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function UC(t){return null!==t&&"object"==typeof t&&$D in t}function e5(t){return"function"==typeof t}let A1=(()=>{class t{static create(e,i){var a;if(Array.isArray(e))return PC({name:""},i,e,"");{const r=null!==(a=e.name)&&void 0!==a?a:"";return PC({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ut,t.NULL=new OC,t.\u0275prov=Q({token:t,providedIn:"any",factory:()=>q(yr)}),t.__NG_ELEMENT_ID__=-1,t})();function DT(t,n){en(Pa(t)[1],R1())}function Z(t){let n=function ef(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let a;if(u4(t))a=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S2(903,"");a=n.\u0275dir}if(a){if(e){i.push(a);const o=t;o.inputs=zr(t.inputs),o.declaredInputs=zr(t.declaredInputs),o.outputs=zr(t.outputs);const s=a.hostBindings;s&&ET(t,s);const c=a.viewQuery,l=a.contentQueries;if(c&&NT(t,c),l&&TT(t,l),qi(t.inputs,a.inputs),qi(t.declaredInputs,a.declaredInputs),qi(t.outputs,a.outputs),u4(a)&&a.data.animation){const C=t.data;C.animation=(C.animation||[]).concat(a.data.animation)}}const r=a.features;if(r)for(let o=0;o<r.length;o++){const s=r[o];s&&s.ngInherit&&s(t),s===Z&&(e=!1)}}n=Object.getPrototypeOf(n)}!function xT(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const a=t[i];a.hostVars=n+=a.hostVars,a.hostAttrs=rn(a.hostAttrs,e=rn(e,a.hostAttrs))}}(i)}function zr(t){return t===D6?{}:t===$2?[]:t}function NT(t,n){const e=t.viewQuery;t.viewQuery=e?(i,a)=>{n(i,a),e(i,a)}:n}function TT(t,n){const e=t.contentQueries;t.contentQueries=e?(i,a,r)=>{n(i,a,r),e(i,a,r)}:n}function ET(t,n){const e=t.hostBindings;t.hostBindings=e?(i,a)=>{n(i,a),e(i,a)}:n}let zn=null;function t5(){if(!zn){const t=P2.Symbol;if(t&&t.iterator)zn=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(zn=i)}}}return zn}function zt(t){return!!function Sr(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&t5()in t)}function u3(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function e6(t,n,e,i){const a=u3(t,n,e);return u3(t,n+1,i)||a}function B(t,n,e,i){const a=O();return u3(a,k6(),n)&&(D2(),k4(y1(),a,t,n,e,i)),B}function i5(t,n,e,i){return u3(t,k6(),e)?n+c2(e)+i:C2}function a5(t,n,e,i,a,r){const s=e6(t,function Y4(){return l2.lFrame.bindingIndex}(),e,a);return Q4(2),s?n+c2(e)+i+c2(a)+r:C2}function k(t,n,e,i,a,r,o,s){const c=O(),l=D2(),C=t+20,f=l.firstCreatePass?function FT(t,n,e,i,a,r,o,s,c){const l=n.consts,C=Q6(n,t,4,o||null,ye(l,s));hr(n,e,C,ye(l,c)),en(n,C);const f=C.tViews=Vn(2,C,i,a,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l);return null!==n.queries&&(n.queries.template(n,C),f.queries=n.queries.embeddedTView(C)),C}(C,l,c,n,e,i,a,r,o):l.data[C];D4(f,!1);const h=c[11].createComment("");_n(l,c,h,f),f3(h,c),Hn(c,c[C]=xC(h,c,h,f)),Y8(f)&&ur(l,c,f),null!=o&&dr(c,f,s)}function J3(t){return function A6(t,n){return t[n]}(function lD(){return l2.lFrame.contextLView}(),20+t)}function b(t,n=o2.Default){const e=O();return null===e?q(t,n):Zc(R1(),e,h2(t),n)}function Er(){throw new Error("invalid")}function M(t,n,e){const i=O();return u3(i,k6(),n)&&O3(D2(),y1(),i,t,n,i[11],e,!1),M}function Ar(t,n,e,i,a){const o=a?"class":"style";IC(t,e,n.inputs[o],o,i)}function p(t,n,e,i){const a=O(),r=D2(),o=20+t,s=a[11],c=a[o]=qa(s,n,function vD(){return l2.lFrame.currentNamespace}()),l=r.firstCreatePass?function sE(t,n,e,i,a,r,o){const s=n.consts,l=Q6(n,t,2,a,ye(s,r));return hr(n,e,l,ye(s,o)),null!==l.attrs&&wn(l,l.attrs,!1),null!==l.mergedAttrs&&wn(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(o,r,a,0,n,e,i):r.data[o];D4(l,!0);const C=l.mergedAttrs;null!==C&&an(s,c,C);const f=l.classes;null!==f&&Xa(s,c,f);const h=l.styles;return null!==h&&Xl(s,c,h),64!=(64&l.flags)&&_n(r,a,c,l),0===function aD(){return l2.lFrame.elementDepthCount}()&&f3(c,a),function rD(){l2.lFrame.elementDepthCount++}(),Y8(l)&&(ur(r,a,l),function vC(t,n,e){if(ia(n)){const a=n.directiveEnd;for(let r=n.directiveStart;r<a;r++){const o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}(r,l,a)),null!==i&&dr(a,l),p}function g(){let t=R1();da()?ha():(t=t.parent,D4(t,!1));const n=t;!function oD(){l2.lFrame.elementDepthCount--}();const e=D2();return e.firstCreatePass&&(en(e,t),ia(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function bD(t){return 0!=(16&t.flags)}(n)&&Ar(e,n,O(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function VD(t){return 0!=(32&t.flags)}(n)&&Ar(e,n,O(),n.stylesWithoutHost,!1),g}function T(t,n,e,i){return p(t,n,e,i),g(),T}function w1(){return O()}function Dt(t){return!!t&&"function"==typeof t.then}const Or=function bf(t){return!!t&&"function"==typeof t.subscribe};function A(t,n,e,i){const a=O(),r=D2(),o=R1();return function Hf(t,n,e,i,a,r,o,s){const c=Y8(i),C=t.firstCreatePass&&EC(t),f=n[8],h=TC(n);let m=!0;if(3&i.type||s){const S=Y3(i,n),x=s?s(S):S,w=h.length,I=s?U=>s(E1(U[i.index])):i.index;if(M1(e)){let U=null;if(!s&&c&&(U=function lE(t,n,e,i){const a=t.cleanup;if(null!=a)for(let r=0;r<a.length-1;r+=2){const o=a[r];if(o===e&&a[r+1]===i){const s=n[7],c=a[r+2];return s.length>c?s[c]:null}"string"==typeof o&&(r+=2)}return null}(t,n,a,i.index)),null!==U)(U.__ngLastListenerFn__||U).__ngNextListenerFn__=r,U.__ngLastListenerFn__=r,m=!1;else{r=Rr(i,n,f,r,!1);const j=e.listen(x,a,r);h.push(r,j),C&&C.push(a,I,w,w+1)}}else r=Rr(i,n,f,r,!0),x.addEventListener(a,r,o),h.push(r),C&&C.push(a,I,w,o)}else r=Rr(i,n,f,r,!1);const V=i.outputs;let H;if(m&&null!==V&&(H=V[a])){const S=H.length;if(S)for(let x=0;x<S;x+=2){const J=n[H[x]][H[x+1]].subscribe(r),u2=h.length;h.push(r,J),C&&C.push(a,i.index,u2,-(u2+1))}}}(r,a,a[11],o,t,n,!!e,i),A}function wf(t,n,e,i){try{return!1!==e(i)}catch(a){return kC(t,a),!1}}function Rr(t,n,e,i,a){return function r(o){if(o===Function)return i;const s=2&t.flags?E3(t.index,n):n;0==(32&n[2])&&mr(s);let c=wf(n,0,i,o),l=r.__ngNextListenerFn__;for(;l;)c=wf(n,0,l,o)&&c,l=l.__ngNextListenerFn__;return a&&!1===c&&(o.preventDefault(),o.returnValue=!1),c}}function D(t=1){return function hD(t){return(l2.lFrame.contextLView=function pD(t,n){for(;t>0;)n=n[15],t--;return n}(t,l2.lFrame.contextLView))[8]}(t)}function CE(t,n){let e=null;const i=function MN(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let a=0;a<n.length;a++){const r=n[a];if("*"!==r){if(null===i?iC(t,r,!0):bN(i,r))return a}else e=a}return e}function u5(t){const n=O()[16][6];if(!n.projection){const i=n.projection=ft(t?t.length:1,null),a=i.slice();let r=n.child;for(;null!==r;){const o=t?CE(r,t):0;null!==o&&(a[o]?a[o].projectionNext=r:i[o]=r,a[o]=r),r=r.next}}}function d5(t,n=0,e){const i=O(),a=D2(),r=Q6(a,20+t,16,null,e||null);null===r.projection&&(r.projection=n),ha(),64!=(64&r.flags)&&function dN(t,n,e){Jl(n[11],0,n,e,Ul(t,e,n),Wl(e.parent||n[6],e,n))}(a,i,r)}function Pr(t,n,e){return h5(t,"",n,"",e),Pr}function h5(t,n,e,i,a){const r=O(),o=i5(r,n,e,i);return o!==C2&&O3(D2(),y1(),r,t,o,r[11],a,!1),h5}function kf(t,n,e,i,a){const r=t[e+1],o=null===n;let s=i?h4(r):Z4(r),c=!1;for(;0!==s&&(!1===c||o);){const C=t[s+1];dE(t[s],n)&&(c=!0,t[s+1]=i?nr(C):er(C)),s=i?h4(C):Z4(C)}c&&(t[e+1]=i?er(r):nr(r))}function dE(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&$6(t,n)>=0}const F1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function If(t){return t.substring(F1.key,F1.keyEnd)}function Of(t,n){const e=F1.textEnd;return e===n?-1:(n=F1.keyEnd=function mE(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,F1.key=n,e),p5(t,n,e))}function p5(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function J2(t,n){return function g4(t,n,e,i){const a=O(),r=D2(),o=Q4(2);r.firstUpdatePass&&Gf(r,t,o,i),n!==C2&&u3(a,o,n)&&$f(r,r.data[_3()],a,a[11],t,a[o+1]=function zE(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=I2(k3(t)))),t}(n,e),i,o)}(t,n,null,!0),J2}function X4(t){!function m4(t,n,e,i){const a=D2(),r=Q4(2);a.firstUpdatePass&&Gf(a,null,r,i);const o=O();if(e!==C2&&u3(o,r,e)){const s=a.data[_3()];if(qf(s,i)&&!Uf(a,r)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Ki(c,e||"")),Ar(a,s,o,e,i)}else!function wE(t,n,e,i,a,r,o,s){a===C2&&(a=$2);let c=0,l=0,C=0<a.length?a[0]:null,f=0<r.length?r[0]:null;for(;null!==C||null!==f;){const h=c<a.length?a[c+1]:void 0,m=l<r.length?r[l+1]:void 0;let H,V=null;C===f?(c+=2,l+=2,h!==m&&(V=f,H=m)):null===f||null!==C&&C<f?(c+=2,V=C):(l+=2,V=f,H=m),null!==V&&$f(t,n,e,i,V,H,o,s),C=c<a.length?a[c]:null,f=l<r.length?r[l]:null}}(a,s,o,o[11],o[r+1],o[r+1]=function HE(t,n,e){if(null==e||""===e)return $2;const i=[],a=k3(e);if(Array.isArray(a))for(let r=0;r<a.length;r++)t(i,a[r],!0);else if("object"==typeof a)for(const r in a)a.hasOwnProperty(r)&&t(i,r,a[r]);else"string"==typeof a&&n(i,a);return i}(t,n,e),i,r)}}(A3,R4,t,!0)}function R4(t,n){for(let e=function pE(t){return function Pf(t){F1.key=0,F1.keyEnd=0,F1.value=0,F1.valueEnd=0,F1.textEnd=t.length}(t),Of(t,p5(t,0,F1.textEnd))}(n);e>=0;e=Of(n,e))A3(t,If(n),!0)}function Uf(t,n){return n>=t.expandoStartIndex}function Gf(t,n,e,i){const a=t.data;if(null===a[e+1]){const r=a[_3()],o=Uf(t,e);qf(r,i)&&null===n&&!o&&(n=!1),n=function yE(t,n,e,i){const a=function ga(t){const n=l2.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===a)0===(i?n.classBindings:n.styleBindings)&&(e=xt(e=Br(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==a)if(e=Br(a,t,n,e,i),null===r){let c=function LE(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Z4(i))return t[h4(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=Br(null,t,n,c[1],i),c=xt(c,n.attrs,i),function bE(t,n,e,i){t[h4(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else r=function VE(t,n,e){let i;const a=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<a;r++)i=xt(i,t[r].hostAttrs,e);return xt(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(a,r,n,i),function fE(t,n,e,i,a,r){let o=r?n.classBindings:n.styleBindings,s=h4(o),c=Z4(o);t[i]=e;let C,l=!1;if(Array.isArray(e)){const f=e;C=f[1],(null===C||$6(f,C)>0)&&(l=!0)}else C=e;if(a)if(0!==c){const h=h4(t[s+1]);t[i+1]=yn(h,s),0!==h&&(t[h+1]=tr(t[h+1],i)),t[s+1]=function zN(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=yn(s,0),0!==s&&(t[s+1]=tr(t[s+1],i)),s=i;else t[i+1]=yn(c,0),0===s?s=i:t[c+1]=tr(t[c+1],i),c=i;l&&(t[i+1]=er(t[i+1])),kf(t,C,i,!0),kf(t,C,i,!1),function uE(t,n,e,i,a){const r=a?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&$6(r,n)>=0&&(e[i+1]=nr(e[i+1]))}(n,C,t,i,r),o=yn(s,c),r?n.classBindings=o:n.styleBindings=o}(a,r,n,e,o,i)}}function Br(t,n,e,i,a){let r=null;const o=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s<o&&(r=n[s],i=xt(i,r.hostAttrs,a),r!==t);)s++;return null!==t&&(e.directiveStylingLast=s),i}function xt(t,n,e){const i=e?1:2;let a=-1;if(null!==n)for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?a=o:a===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),A3(t,o,!!e||n[++r]))}return void 0===t?null:t}function $f(t,n,e,i,a,r,o,s){if(!(3&n.type))return;const c=t.data,l=c[s+1];xn(function cC(t){return 1==(1&t)}(l)?Wf(c,n,e,a,Z4(l),o):void 0)||(xn(r)||function sC(t){return 2==(2&t)}(l)&&(r=Wf(c,null,e,a,s,o)),function pN(t,n,e,i,a){const r=M1(t);if(n)a?r?t.addClass(e,i):e.classList.add(i):r?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:I3.DashCase;if(null==a)r?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const s="string"==typeof a&&a.endsWith("!important");s&&(a=a.slice(0,-10),o|=I3.Important),r?t.setStyle(e,i,a,o):e.style.setProperty(i,a,s?"important":"")}}}(i,o,Q8(_3(),e),a,r))}function Wf(t,n,e,i,a,r){const o=null===n;let s;for(;a>0;){const c=t[a],l=Array.isArray(c),C=l?c[1]:c,f=null===C;let h=e[a+1];h===C2&&(h=f?$2:void 0);let m=f?za(h,i):C===i?h:void 0;if(l&&!xn(m)&&(m=za(c,i)),xn(m)&&(s=m,o))return s;const V=t[a+1];a=o?h4(V):Z4(V)}if(null!==n){let c=r?n.residualClasses:n.residualStyles;null!=c&&(s=za(c,i))}return s}function xn(t){return void 0!==t}function qf(t,n){return 0!=(t.flags&(n?16:32))}function _(t,n=""){const e=O(),i=D2(),a=t+20,r=i.firstCreatePass?Q6(i,a,1,n,null):i.data[a],o=e[a]=function Wa(t,n){return M1(t)?t.createText(n):t.createTextNode(n)}(e[11],n);_n(i,e,o,r),D4(r,!1)}function ee(t){return R3("",t,""),ee}function R3(t,n,e){const i=O(),a=i5(i,t,n,e);return a!==C2&&J4(i,_3(),a),R3}function t6(t,n,e,i,a){const r=O(),o=a5(r,t,n,e,i,a);return o!==C2&&J4(r,_3(),o),t6}function v4(t,n,e){const i=O();return u3(i,k6(),n)&&O3(D2(),y1(),i,t,n,i[11],e,!0),v4}const Nn="en-US";let du=Nn;function $r(t,n,e,i,a){if(t=h2(t),Array.isArray(t))for(let r=0;r<t.length;r++)$r(t[r],n,e,i,a);else{const r=D2(),o=O();let s=e5(t)?t:h2(t.provide),c=BC(t);const l=R1(),C=1048575&l.providerIndexes,f=l.directiveStart,h=l.providerIndexes>>20;if(e5(t)||!t.multi){const m=new rt(c,a,b),V=qr(s,n,a?C:C+h,f);-1===V?(cn(st(l,o),r,s),Wr(r,t,n.length),n.push(s),l.directiveStart++,l.directiveEnd++,a&&(l.providerIndexes+=1048576),e.push(m),o.push(m)):(e[V]=m,o[V]=m)}else{const m=qr(s,n,C+h,f),V=qr(s,n,C,C+h),H=m>=0&&e[m],S=V>=0&&e[V];if(a&&!S||!a&&!H){cn(st(l,o),r,s);const x=function jA(t,n,e,i,a){const r=new rt(t,e,b);return r.multi=[],r.index=n,r.componentProviders=0,Ou(r,a,i&&!e),r}(a?GA:UA,e.length,a,i,c);!a&&S&&(e[V].providerFactory=x),Wr(r,t,n.length,0),n.push(s),l.directiveStart++,l.directiveEnd++,a&&(l.providerIndexes+=1048576),e.push(x),o.push(x)}else Wr(r,t,m>-1?m:V,Ou(e[a?V:m],c,!a&&i));!a&&i&&S&&e[V].componentProviders++}}}function Wr(t,n,e,i){const a=e5(n),r=function vT(t){return!!t.useClass}(n);if(a||r){const c=(r?h2(n.useClass):n).prototype.ngOnDestroy;if(c){const l=t.destroyHooks||(t.destroyHooks=[]);if(!a&&n.multi){const C=l.indexOf(e);-1===C?l.push(e,[i,c]):l[C+1].push(i,c)}else l.push(e,c)}}}function Ou(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function qr(t,n,e,i){for(let a=e;a<i;a++)if(n[a]===t)return a;return-1}function UA(t,n,e,i){return Kr(this.multi,[])}function GA(t,n,e,i){const a=this.multi;let r;if(this.providerFactory){const o=this.providerFactory.componentProviders,s=ct(e,e[1],this.providerFactory.index,i);r=s.slice(0,o),Kr(a,r);for(let c=o;c<s.length;c++)r.push(s[c])}else r=[],Kr(a,r);return r}function Kr(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function W2(t,n=[]){return e=>{e.providersResolver=(i,a)=>function BA(t,n,e){const i=D2();if(i.firstCreatePass){const a=u4(t);$r(e,i.data,i.blueprint,a,!0),$r(n,i.data,i.blueprint,a,!1)}}(i,a?a(t):t,n)}}class Ru{}class qA{resolveComponentFactory(n){throw function WA(t){const n=Error(`No component factory found for ${I2(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let v5=(()=>{class t{}return t.NULL=new qA,t})();function KA(){return _5(R1(),O())}function _5(t,n){return new A2(Y3(t,n))}let A2=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=KA,t})();function YA(t){return t instanceof A2?t.nativeElement:t}class Yr{}let d3=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function ZA(){const t=O(),e=E3(R1().index,t);return function QA(t){return t[11]}(S4(e)?e:t)}(),t})(),JA=(()=>{class t{}return t.\u0275prov=Q({token:t,providedIn:"root",factory:()=>null}),t})();class kt{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const XA=new kt("13.3.11"),Qr={};function In(t,n,e,i,a=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(E1(r)),f4(r))for(let s=10;s<r.length;s++){const c=r[s],l=c[1].firstChild;null!==l&&In(c[1],c,l,i)}const o=e.type;if(8&o)In(t,n,e.child,i);else if(32&o){const s=Ga(e,n);let c;for(;c=s();)i.push(c)}else if(16&o){const s=Ql(n,e);if(Array.isArray(s))i.push(...s);else{const c=Lt(n[16]);In(c[1],c,s,i,!0)}}e=a?e.projectionNext:e.next}return i}class It{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return In(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(f4(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Ka(n,i),Cn(e,i))}this._attachedToViewContainer=!1}Bl(this._lView[1],this._lView)}onDestroy(n){LC(this._lView[1],this._lView,null,n)}markForCheck(){mr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function _r(t,n,e){const i=n[10];i.begin&&i.begin();try{J6(t,n,t.template,e)}catch(a){throw kC(n,a),a}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S2(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function rN(t,n){bt(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S2(902,"");this._appRef=n}}class ek extends It{constructor(n){super(n),this._view=n}detectChanges(){NC(this._view)}checkNoChanges(){}get context(){return null}}class Fu extends v5{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=c3(n);return new Zr(e,this.ngModule)}}function Bu(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class Zr extends Ru{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function HN(t){return t.map(VN).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Bu(this.componentDef.inputs)}get outputs(){return Bu(this.componentDef.outputs)}create(n,e,i,a){const r=(a=a||this.ngModule)?function nk(t,n){return{get:(e,i,a)=>{const r=t.get(e,Qr,a);return r!==Qr||i===Qr?r:n.get(e,i,a)}}}(n,a.injector):n,o=r.get(Yr,Dc),s=r.get(JA,null),c=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",C=i?function yC(t,n,e){if(M1(t))return t.selectRootElement(n,e===z4.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(c,i,this.componentDef.encapsulation):qa(o.createRenderer(null,this.componentDef),l,function tk(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(l)),f=this.componentDef.onPush?576:528,h=function XC(t,n){return{components:[],scheduler:t||Zx,clean:lT,playerHandler:n||null,flags:0}}(),m=Vn(0,null,null,1,0,null,null,null,null,null),V=Vt(null,m,h,f,null,null,o,c,s,r);let H,S;J8(V);try{const x=function ZC(t,n,e,i,a,r){const o=e[1];e[20]=t;const c=Q6(o,20,2,"#host",null),l=c.mergedAttrs=n.hostAttrs;null!==l&&(wn(c,l,!0),null!==t&&(an(a,t,l),null!==c.classes&&Xa(a,t,c.classes),null!==c.styles&&Xl(a,t,c.styles)));const C=i.createRenderer(t,n),f=Vt(e,_C(n),null,n.onPush?64:16,e[20],c,i,C,r||null,null);return o.firstCreatePass&&(cn(st(c,e),o,n.type),zC(o,c),SC(c,e.length,1)),Hn(e,f),e[20]=f}(C,this.componentDef,V,o,c);if(C)if(i)an(c,C,["ng-version",XA.full]);else{const{attrs:w,classes:I}=function wN(t){const n=[],e=[];let i=1,a=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===a?""!==r&&n.push(r,t[++i]):8===a&&e.push(r);else{if(!d4(a))break;a=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);w&&an(c,C,w),I&&I.length>0&&Xa(c,C,I.join(" "))}if(S=Ca(m,20),void 0!==e){const w=S.projection=[];for(let I=0;I<this.ngContentSelectors.length;I++){const U=e[I];w.push(null!=U?Array.from(U):null)}}H=function JC(t,n,e,i,a){const r=e[1],o=function qN(t,n,e){const i=R1();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),DC(t,i,n,Z6(t,n,1,null),e));const a=ct(n,t,i.directiveStart,i);f3(a,n);const r=Y3(i,n);return r&&f3(r,n),a}(r,e,n);if(i.components.push(o),t[8]=o,a&&a.forEach(c=>c(o,n)),n.contentQueries){const c=R1();n.contentQueries(1,o,c.directiveStart)}const s=R1();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Le(s.index),HC(e[1],s,0,s.directiveStart,s.directiveEnd,n),wC(n,o)),o}(x,this.componentDef,V,h,[DT]),Ht(m,V,null)}finally{X8()}return new ak(this.componentType,H,_5(S,V),V,S)}}class ak extends class $A{}{constructor(n,e,i,a,r){super(),this.location=i,this._rootLView=a,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new ek(a),this.componentType=n}get injector(){return new F6(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class te{}class Uu{}const M5=new Map;class $u extends te{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Fu(this);const i=W3(n);this._bootstrapComponents=A4(i.bootstrap),this._r3Injector=FC(n,e,[{provide:te,useValue:this},{provide:v5,useValue:this.componentFactoryResolver}],I2(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=A1.THROW_IF_NOT_FOUND,i=o2.Default){return n===A1||n===te||n===yr?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Jr extends Uu{constructor(n){super(),this.moduleType=n,null!==W3(n)&&function ok(t){const n=new Set;!function e(i){const a=W3(i,!0),r=a.id;null!==r&&(function Gu(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${I2(n)} vs ${I2(n.name)}`)}(r,M5.get(r),i),M5.set(r,i));const o=A4(a.imports);for(const s of o)n.has(s)||(n.add(s),e(s))}(t)}(n)}create(n){return new $u(this.moduleType,n)}}function Ot(t,n,e,i,a){return function qu(t,n,e,i,a,r,o){const s=n+e;return e6(t,s,a,r)?function I4(t,n,e){return t[n]=e}(t,s+2,o?i.call(o,a,r):i(a,r)):function Rt(t,n){const e=t[n];return e===C2?void 0:e}(t,s+2)}(O(),function v3(){const t=l2.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}(),t,n,e,i,a)}function e7(t){return n=>{setTimeout(t,void 0,n)}}const r2=class yk extends d2{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var a,r,o;let s=n,c=e||(()=>null),l=i;if(n&&"object"==typeof n){const f=n;s=null===(a=f.next)||void 0===a?void 0:a.bind(f),c=null===(r=f.error)||void 0===r?void 0:r.bind(f),l=null===(o=f.complete)||void 0===o?void 0:o.bind(f)}this.__isAsync&&(c=e7(c),s&&(s=e7(s)),l&&(l=e7(l)));const C=super.subscribe({next:s,error:c,complete:l});return n instanceof H2&&n.add(C),C}};function Lk(){return this._results[t5()]()}class t7{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=t5(),i=t7.prototype;i[e]||(i[e]=Lk)}get changes(){return this._changes||(this._changes=new r2)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const a=Q3(n);(this._changesDetected=!function AD(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let a=t[i],r=n[i];if(e&&(a=e(a),r=e(r)),r!==a)return!1}return!0}(i._results,a,e))&&(i._results=a,i.length=a.length,i.last=a[this.length-1],i.first=a[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let f1=(()=>{class t{}return t.__NG_ELEMENT_ID__=Hk,t})();const bk=f1,Vk=class extends bk{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Vt(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),Ht(e,i,n),new It(i)}};function Hk(){return Rn(R1(),O())}function Rn(t,n){return 4&t.type?new Vk(n,t,_5(t,n)):null}let P3=(()=>{class t{}return t.__NG_ELEMENT_ID__=wk,t})();function wk(){return Xu(R1(),O())}const zk=P3,Zu=class extends zk{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return _5(this._hostTNode,this._hostLView)}get injector(){return new F6(this._hostTNode,this._hostLView)}get parentInjector(){const n=sn(this._hostTNode,this._hostLView);if(Wc(n)){const e=P6(n,this._hostLView),i=R6(n);return new F6(e[1].data[i+8],e)}return new F6(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=Ju(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const a=n.createEmbeddedView(e||{});return this.insert(a,i),a}createComponent(n,e,i,a,r){const o=n&&!function Ct(t){return"function"==typeof t}(n);let s;if(o)s=e;else{const f=e||{};s=f.index,i=f.injector,a=f.projectableNodes,r=f.ngModuleRef}const c=o?n:new Zr(c3(n)),l=i||this.parentInjector;if(!r&&null==c.ngModule){const h=(o?l:this.parentInjector).get(te,null);h&&(r=h)}const C=c.create(l,a,void 0,r);return this.insert(C.hostView,s),C}insert(n,e){const i=n._lView,a=i[1];if(function iD(t){return f4(t[3])}(i)){const C=this.indexOf(n);if(-1!==C)this.detach(C);else{const f=i[3],h=new Zu(f,f[6],f[3]);h.detach(h.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function sN(t,n,e,i){const a=10+i,r=e.length;i>0&&(e[a-1][4]=n),i<r-10?(n[4]=e[a],nl(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function cN(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const s=n[19];null!==s&&s.insertView(t),n[2]|=128}(a,i,o,r);const s=Za(r,o),c=i[11],l=vn(c,o[7]);return null!==l&&function aN(t,n,e,i,a,r){i[0]=a,i[6]=n,bt(t,i,e,1,a,r)}(a,o[6],c,i,l,s),n.attachToViewContainerRef(),nl(n7(o),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=Ju(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Ka(this._lContainer,e);i&&(Cn(n7(this._lContainer),e),Bl(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Ka(this._lContainer,e);return i&&null!=Cn(n7(this._lContainer),e)?new It(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function Ju(t){return t[8]}function n7(t){return t[8]||(t[8]=[])}function Xu(t,n){let e;const i=n[t.index];if(f4(i))e=i;else{let a;if(8&t.type)a=E1(i);else{const r=n[11];a=r.createComment("");const o=Y3(t,n);Xe(r,vn(r,o),a,function uN(t,n){return M1(t)?t.nextSibling(n):n.nextSibling}(r,o),!1)}n[t.index]=e=xC(i,n,a,t),Hn(n,e)}return new Zu(e,t,n)}class i7{constructor(n){this.queryList=n,this.matches=null}clone(){return new i7(this.queryList)}setDirty(){this.queryList.setDirty()}}class a7{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,a=[];for(let r=0;r<i;r++){const o=e.getByIndex(r);a.push(this.queries[o.indexInDeclarationView].clone())}return new a7(a)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==ad(n,e).matches&&this.queries[e].setDirty()}}class ed{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class r7{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const a=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,a);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new r7(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class o7{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new o7(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let a=0;a<i.length;a++){const r=i[a];this.matchTNodeWithReadOption(n,e,xk(e,r)),this.matchTNodeWithReadOption(n,e,ln(e,n,r,!1,!1))}else i===f1?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,ln(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const a=this.metadata.read;if(null!==a)if(a===A2||a===P3||a===f1&&4&e.type)this.addMatch(e.index,-2);else{const r=ln(e,n,a,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function xk(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function Tk(t,n,e,i){return-1===e?function Nk(t,n){return 11&t.type?_5(t,n):4&t.type?Rn(t,n):null}(n,t):-2===e?function Ek(t,n,e){return e===A2?_5(n,t):e===f1?Rn(n,t):e===P3?Xu(n,t):void 0}(t,n,i):ct(t,t[1],e,n)}function td(t,n,e,i){const a=n[19].queries[i];if(null===a.matches){const r=t.data,o=e.matches,s=[];for(let c=0;c<o.length;c+=2){const l=o[c];s.push(l<0?null:Tk(n,r[l],o[c+1],e.metadata.read))}a.matches=s}return a.matches}function s7(t,n,e,i){const a=t.queries.getByIndex(e),r=a.matches;if(null!==r){const o=td(t,n,a,e);for(let s=0;s<r.length;s+=2){const c=r[s];if(c>0)i.push(o[s/2]);else{const l=r[s+1],C=n[-c];for(let f=10;f<C.length;f++){const h=C[f];h[17]===h[3]&&s7(h[1],h,l,i)}if(null!==C[9]){const f=C[9];for(let h=0;h<f.length;h++){const m=f[h];s7(m[1],m,l,i)}}}}}return i}function h1(t){const n=O(),e=D2(),i=Oc();ma(i+1);const a=ad(e,i);if(t.dirty&&xc(n)===(2==(2&a.metadata.flags))){if(null===a.matches)t.reset([]);else{const r=a.crossesNgTemplate?s7(e,n,i,[]):td(e,n,a,i);t.reset(r,YA),t.notifyOnChanges()}return!0}return!1}function z1(t,n,e,i){const a=D2();if(a.firstCreatePass){const r=R1();id(a,new ed(n,e,i),r.index),function kk(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(a,t),2==(2&e)&&(a.staticContentQueries=!0)}nd(a,O(),e)}function p1(){return function Ak(t,n){return t[19].queries[n].queryList}(O(),Oc())}function nd(t,n,e){const i=new t7(4==(4&e));LC(t,n,i,i.destroy),null===n[19]&&(n[19]=new a7),n[19].queries.push(new i7(i))}function id(t,n,e){null===t.queries&&(t.queries=new r7),t.queries.track(new o7(n,e))}function ad(t,n){return t.queries.getByIndex(n)}function X3(t,n){return Rn(t,n)}function Bn(...t){}const h7=new _2("Application Initializer");let p7=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Bn,this.reject=Bn,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,a)=>{this.resolve=i,this.reject=a})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let a=0;a<this.appInits.length;a++){const r=this.appInits[a]();if(Dt(r))e.push(r);else if(Or(r)){const o=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(a=>{this.reject(a)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(q(h7,8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Bt=new _2("AppId",{providedIn:"root",factory:function yd(){return`${g7()}${g7()}${g7()}`}});function g7(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ld=new _2("Platform Initializer"),m7=new _2("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),bd=new _2("appBootstrapListener");let Jk=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Se=new _2("LocaleId",{providedIn:"root",factory:()=>qD(Se,o2.Optional|o2.SkipSelf)||function Xk(){return"undefined"!=typeof $localize&&$localize.locale||Nn}()});class tI{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Vd=(()=>{class t{compileModuleSync(e){return new Jr(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=A4(W3(e).declarations).reduce((o,s)=>{const c=c3(s);return c&&o.push(new Zr(c)),o},[]);return new tI(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const iI=(()=>Promise.resolve(0))();function v7(t){"undefined"==typeof Zone?iI.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class F2{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new r2(!1),this.onMicrotaskEmpty=new r2(!1),this.onStable=new r2(!1),this.onError=new r2(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!i&&e,a.shouldCoalesceRunChangeDetection=i,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function aI(){let t=P2.requestAnimationFrame,n=P2.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function sI(t){const n=()=>{!function oI(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(P2,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,M7(t),t.isCheckStableRunning=!0,_7(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),M7(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,a,r,o,s)=>{try{return Hd(t),e.invokeTask(a,r,o,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),wd(t)}},onInvoke:(e,i,a,r,o,s,c)=>{try{return Hd(t),e.invoke(a,r,o,s,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),wd(t)}},onHasTask:(e,i,a,r)=>{e.hasTask(a,r),i===a&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,M7(t),_7(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,a,r)=>(e.handleError(a,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(a)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!F2.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(F2.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,a){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+a,n,rI,Bn,Bn);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const rI={};function _7(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function M7(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Hd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function wd(t){t._nesting--,_7(t)}class cI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new r2,this.onMicrotaskEmpty=new r2,this.onStable=new r2,this.onError=new r2}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,a){return n.apply(e,i)}}let y7=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{F2.assertNotInAngularZone(),v7(()=>{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())v7(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,a){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:a})}whenStable(e,i,a){if(a&&!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(e,i,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,a){return[]}}return t.\u0275fac=function(e){return new(e||t)(q(F2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),lI=(()=>{class t{constructor(){this._applications=new Map,L7.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return L7.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class CI{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let L7=new CI,i6=null;const zd=new _2("AllowMultipleToken"),Sd=new _2("PlatformOnDestroy");class Dd{constructor(n,e){this.name=n,this.token=e}}function xd(t,n,e=[]){const i=`Platform: ${n}`,a=new _2(i);return(r=[])=>{let o=b7();if(!o||o.injector.get(zd,!1)){const s=[...e,...r,{provide:a,useValue:!0}];t?t(s):function hI(t){if(i6&&!i6.get(zd,!1))throw new S2(400,"");i6=t;const n=t.get(Nd),e=t.get(Ld,null);e&&e.forEach(i=>i())}(function gI(t=[],n){return A1.create({name:n,providers:[{provide:Lr,useValue:"platform"},{provide:Sd,useValue:()=>i6=null},...t]})}(s,i))}return function pI(t){const n=b7();if(!n)throw new S2(401,"");return n}()}}function b7(){var t;return null!==(t=null==i6?void 0:i6.get(Nd))&&void 0!==t?t:null}let Nd=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const s=function mI(t,n){let e;return e="noop"===t?new cI:("zone.js"===t?void 0:t)||new F2({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:F2,useValue:s}];return s.run(()=>{const l=A1.create({providers:c,parent:this.injector,name:e.moduleType.name}),C=e.create(l),f=C.injector.get(yt,null);if(!f)throw new S2(402,"");return s.runOutsideAngular(()=>{const h=s.onError.subscribe({next:m=>{f.handleError(m)}});C.onDestroy(()=>{V7(this._modules,C),h.unsubscribe()})}),function vI(t,n,e){try{const i=e();return Dt(i)?i.catch(a=>{throw n.runOutsideAngular(()=>t.handleError(a)),a}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(f,s,()=>{const h=C.injector.get(p7);return h.runInitializers(),h.donePromise.then(()=>(function JE(t){N3(t,"Expected localeId to be defined"),"string"==typeof t&&(du=t.toLowerCase().replace(/_/g,"-"))}(C.injector.get(Se,Nn)||Nn),this._moduleDoBootstrap(C),C))})})}bootstrapModule(e,i=[]){const a=Td({},i);return function uI(t,n,e){const i=new Jr(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,a))}_moduleDoBootstrap(e){const i=e.injector.get(L5);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(a=>i.bootstrap(a));else{if(!e.instance.ngDoBootstrap)throw new S2(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S2(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Sd,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(q(A1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Td(t,n){return Array.isArray(n)?n.reduce(Td,t):Object.assign(Object.assign({},t),n)}let L5=(()=>{class t{constructor(e,i,a,r){this._zone=e,this._injector=i,this._exceptionHandler=a,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new k2(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),s=new k2(c=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{F2.assertNotInAngularZone(),v7(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const C=this._zone.onUnstable.subscribe(()=>{F2.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{l.unsubscribe(),C.unsubscribe()}});this.isStable=dc(o,s.pipe(hc()))}bootstrap(e,i){if(!this._initStatus.done)throw new S2(405,"");let a;a=e instanceof Ru?e:this._injector.get(v5).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const r=function dI(t){return t.isBoundToModule}(a)?void 0:this._injector.get(te),s=a.create(A1.NULL,[],i||a.selector,r),c=s.location.nativeElement,l=s.injector.get(y7,null),C=l&&s.injector.get(lI);return l&&C&&C.registerApplication(c,l),s.onDestroy(()=>{this.detachView(s.hostView),V7(this.components,s),C&&C.unregisterApplication(c)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new S2(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;V7(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(bd,[]).concat(this._bootstrapListeners).forEach(a=>a(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(q(F2),q(A1),q(yt),q(p7))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function V7(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Ad=!0,F3=(()=>{class t{}return t.__NG_ELEMENT_ID__=yI,t})();function yI(t){return function LI(t,n,e){if(K8(t)&&!e){const i=E3(t.index,n);return new It(i,i)}return 47&t.type?new It(n[16],n):null}(R1(),O(),16==(16&t))}class Pd{constructor(){}supports(n){return zt(n)}create(n){return new SI(n)}}const zI=(t,n)=>n;class SI{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||zI}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,a=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex<Bd(i,a,r)?e:i,s=Bd(o,a,r),c=o.currentIndex;if(o===i)a--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)a++;else{r||(r=[]);const l=s-a,C=c-a;if(l!=C){for(let h=0;h<l;h++){const m=h<r.length?r[h]:r[h]=0,V=m+h;C<=V&&V<l&&(r[h]=m+1)}r[o.previousIndex]=C-l}}s!==c&&n(o,s,c)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!zt(n))throw new S2(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let a,r,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)r=n[s],o=this._trackByFn(s,r),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,r,o,s)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,s),i=!0),e=e._next}else a=0,function PT(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[t5()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,s=>{o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next,a++}),this.length=a;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,a){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,a)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,a))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,a)):n=this._addAfter(new DI(e,i),r,a),n}_verifyReinsertion(n,e,i,a){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,a):n.currentIndex!=a&&(n.currentIndex=a,this._addToMoves(n,a)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const a=n._prevRemoved,r=n._nextRemoved;return null===a?this._removalsHead=r:a._nextRemoved=r,null===r?this._removalsTail=a:r._prevRemoved=a,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const a=null===e?this._itHead:e._next;return n._next=a,n._prev=e,null===a?this._itTail=n:a._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Fd),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fd),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class DI{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class xI{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Fd{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new xI,this.map.set(e,i)),i.add(n)}get(n,e){const a=this.map.get(n);return a?a.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Bd(t,n,e){const i=t.previousIndex;if(null===i)return i;let a=0;return e&&i<e.length&&(a=e[i]),i+n+a}function Gd(){return new jn([new Pd])}let jn=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const a=i.factories.slice();e=e.concat(a)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Gd()),deps:[[t,new pt,new Ve]]}}find(e){const i=this.factories.find(a=>a.supports(e));if(null!=i)return i;throw new S2(901,"")}}return t.\u0275prov=Q({token:t,providedIn:"root",factory:Gd}),t})();const kI=xd(null,"core",[]);let II=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(q(L5))},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})(),$n=null;function P4(){return $n}const S1=new _2("DocumentToken");let r6=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:function(){return function FI(){return q($d)}()},providedIn:"platform"}),t})();const BI=new _2("Location Initialized");let $d=(()=>{class t extends r6{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return P4().getBaseHref(this._doc)}onPopState(e){const i=P4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=P4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,a){Wd()?this._history.pushState(e,i,a):this.location.hash=a}replaceState(e,i,a){Wd()?this._history.replaceState(e,i,a):this.location.hash=a}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:function(){return function UI(){return new $d(q(S1))}()},providedIn:"platform"}),t})();function Wd(){return!!window.history.pushState}function D7(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function qd(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function ne(t){return t&&"?"!==t[0]?"?"+t:t}let o6=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:function(){return function GI(t){const n=q(S1).location;return new Kd(q(r6),n&&n.origin||"")}()},providedIn:"root"}),t})();const x7=new _2("appBaseHref");let Kd=(()=>{class t extends o6{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return D7(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ne(this._platformLocation.search),a=this._platformLocation.hash;return a&&e?`${i}${a}`:i}pushState(e,i,a,r){const o=this.prepareExternalUrl(a+ne(r));this._platformLocation.pushState(e,i,o)}replaceState(e,i,a,r){const o=this.prepareExternalUrl(a+ne(r));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,a;null===(a=(i=this._platformLocation).historyGo)||void 0===a||a.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(q(r6),q(x7,8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),Yd=(()=>{class t extends o6{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=D7(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,a,r){let o=this.prepareExternalUrl(a+ne(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,a,r){let o=this.prepareExternalUrl(a+ne(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,a;null===(a=(i=this._platformLocation).historyGo)||void 0===a||a.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(q(r6),q(x7,8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),N7=(()=>{class t{constructor(e,i){this._subject=new r2,this._urlChangeListeners=[],this._platformStrategy=e;const a=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=qd(Qd(a)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ne(i))}normalize(e){return t.stripTrailingSlash(function $I(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,Qd(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",a=null){this._platformStrategy.pushState(a,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ne(i)),a)}replaceState(e,i="",a=null){this._platformStrategy.replaceState(a,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ne(i)),a)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,a;null===(a=(i=this._platformStrategy).historyGo)||void 0===a||a.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(a=>a(e,i))}subscribe(e,i,a){return this._subject.subscribe({next:e,error:i,complete:a})}}return t.normalizeQueryParams=ne,t.joinWithSlash=D7,t.stripTrailingSlash=qd,t.\u0275fac=function(e){return new(e||t)(q(o6),q(r6))},t.\u0275prov=Q({token:t,factory:function(){return function jI(){return new N7(q(o6),q(r6))}()},providedIn:"root"}),t})();function Qd(t){return t.replace(/\/index.html$/,"")}class NO{constructor(n,e,i,a){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=a}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ae=(()=>{class t{constructor(e,i,a){this._viewContainer=e,this._template=i,this._differs=a,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((a,r,o)=>{if(null==a.previousIndex)i.createEmbeddedView(this._template,new NO(a.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,o),rh(s,a)}});for(let a=0,r=i.length;a<r;a++){const s=i.get(a).context;s.index=a,s.count=r,s.ngForOf=this._ngForOf}e.forEachIdentityChange(a=>{rh(i.get(a.currentIndex),a)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(P3),b(f1),b(jn))},t.\u0275dir=G({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function rh(t,n){t.context.$implicit=n.item}let m1=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new TO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){oh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){oh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(P3),b(f1))},t.\u0275dir=G({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class TO{constructor(){this.$implicit=null,this.ngIf=null}}function oh(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${I2(n)}'.`)}let b5=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(b(P3))},t.\u0275dir=G({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[H1]}),t})(),B3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();let cR=(()=>{class t{}return t.\u0275prov=Q({token:t,providedIn:"root",factory:()=>new lR(q(S1),window)}),t})();class lR{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function CR(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let a=i.currentNode;for(;a;){const r=a.shadowRoot;if(r){const o=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(o)return o}a=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,a=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],a-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Ch(this.window.history)||Ch(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function Ch(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class $7 extends class uR extends class PI{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function RI(t){$n||($n=t)}(new $7)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function dR(){return $t=$t||document.querySelector("base"),$t?$t.getAttribute("href"):null}();return null==e?null:function hR(t){t0=t0||document.createElement("a"),t0.setAttribute("href",t);const n=t0.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){$t=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function SO(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[a,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(a.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let t0,$t=null;const fh=new _2("TRANSITION_ID"),gR=[{provide:h7,useFactory:function pR(t,n,e){return()=>{e.get(p7).donePromise.then(()=>{const i=P4(),a=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<a.length;r++)i.remove(a[r])})}},deps:[fh,S1,A1],multi:!0}];class W7{static init(){!function fI(t){L7=t}(new W7)}addToWindow(n){P2.getAngularTestability=(i,a=!0)=>{const r=n.findTestabilityInTree(i,a);if(null==r)throw new Error("Could not find testability for element.");return r},P2.getAllAngularTestabilities=()=>n.getAllTestabilities(),P2.getAllAngularRootElements=()=>n.getAllRootElements(),P2.frameworkStabilizers||(P2.frameworkStabilizers=[]),P2.frameworkStabilizers.push(i=>{const a=P2.getAllAngularTestabilities();let r=a.length,o=!1;const s=function(c){o=o||c,r--,0==r&&i(o)};a.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const a=n.getTestability(e);return null!=a?a:i?P4().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let mR=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();const n0=new _2("EventManagerPlugins");let a0=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,a){return this._findPluginFor(i).addEventListener(e,i,a)}addGlobalEventListener(e,i,a){return this._findPluginFor(i).addGlobalEventListener(e,i,a)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const a=this._plugins;for(let r=0;r<a.length;r++){const o=a[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(q(n0),q(F2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();class uh{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const a=P4().getGlobalEventTarget(this._doc,n);if(!a)throw new Error(`Unsupported event target ${a} for event ${e}`);return this.addEventListener(a,e,i)}}let dh=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),i.add(a))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),Wt=(()=>{class t extends dh{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,a){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,a.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(hh),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,a)=>{this._addStylesToHost(e,a,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(hh))}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();function hh(t){P4().remove(t)}const q7={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/"},K7=/%COMP%/g;function r0(t,n,e){for(let i=0;i<n.length;i++){let a=n[i];Array.isArray(a)?r0(t,a,e):(a=a.replace(K7,t),e.push(a))}return e}function mh(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Y7=(()=>{class t{constructor(e,i,a){this.eventManager=e,this.sharedStylesHost=i,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Q7(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case z4.Emulated:{let a=this.rendererByCompId.get(i.id);return a||(a=new bR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,a)),a.applyToHost(e),a}case 1:case z4.ShadowDom:return new VR(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const a=r0(i.id,i.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(q(a0),q(Wt),q(Bt))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();class Q7{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(q7[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,a){if(a){e=a+":"+e;const r=q7[a];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const a=q7[i];a?n.removeAttributeNS(a,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,a){a&(I3.DashCase|I3.Important)?n.style.setProperty(e,i,a&I3.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&I3.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,mh(i)):this.eventManager.addEventListener(n,e,mh(i))}}class bR extends Q7{constructor(n,e,i,a){super(n),this.component=i;const r=r0(a+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function MR(t){return"_ngcontent-%COMP%".replace(K7,t)}(a+"-"+i.id),this.hostAttr=function yR(t){return"_nghost-%COMP%".replace(K7,t)}(a+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class VR extends Q7{constructor(n,e,i,a){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=r0(a.id,a.styles,[]);for(let o=0;o<r.length;o++){const s=document.createElement("style");s.textContent=r[o],this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let HR=(()=>{class t extends uh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,a){return e.addEventListener(i,a,!1),()=>this.removeEventListener(e,i,a)}removeEventListener(e,i,a){return e.removeEventListener(i,a)}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();const _h=["alt","control","meta","shift"],zR={"\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"},Mh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},SR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let DR=(()=>{class t extends uh{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,a){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>P4().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),a=i.shift();if(0===i.length||"keydown"!==a&&"keyup"!==a)return null;const r=t._normalizeKey(i.pop());let o="";if(_h.forEach(c=>{const l=i.indexOf(c);l>-1&&(i.splice(l,1),o+=c+".")}),o+=r,0!=i.length||0===r.length)return null;const s={};return s.domEventName=a,s.fullKey=o,s}static getEventFullKey(e){let i="",a=function xR(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Mh.hasOwnProperty(n)&&(n=Mh[n]))}return zR[n]||n}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),_h.forEach(r=>{r!=a&&SR[r](e)&&(i+=r+".")}),i+=a,i}static eventCallback(e,i,a){return r=>{t.getEventFullKey(r)===e&&a.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();const AR=xd(kI,"browser",[{provide:m7,useValue:"browser"},{provide:Ld,useValue:function NR(){$7.makeCurrent(),W7.init()},multi:!0},{provide:S1,useFactory:function ER(){return function XS(t){ca=t}(document),document},deps:[]}]),kR=[{provide:Lr,useValue:"root"},{provide:yt,useFactory:function TR(){return new yt},deps:[]},{provide:n0,useClass:HR,multi:!0,deps:[S1,F2,m7]},{provide:n0,useClass:DR,multi:!0,deps:[S1]},{provide:Y7,useClass:Y7,deps:[a0,Wt,Bt]},{provide:Yr,useExisting:Y7},{provide:dh,useExisting:Wt},{provide:Wt,useClass:Wt,deps:[S1]},{provide:y7,useClass:y7,deps:[F2]},{provide:a0,useClass:a0,deps:[n0,F2]},{provide:class fR{},useClass:mR,deps:[]}];let IR=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Bt,useValue:e.appId},{provide:fh,useExisting:Bt},gR]}}}return t.\u0275fac=function(e){return new(e||t)(q(t,12))},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({providers:kR,imports:[B3,II]}),t})();"undefined"!=typeof window&&window;let bh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:function(e){let i=null;return i=e?new(e||t):q(Vh),i},providedIn:"root"}),t})(),Vh=(()=>{class t extends bh{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Z2.NONE:return i;case Z2.HTML:return N4(i,"HTML")?k3(i):Hl(this._doc,String(i)).toString();case Z2.STYLE:return N4(i,"Style")?k3(i):i;case Z2.SCRIPT:if(N4(i,"Script"))return k3(i);throw new Error("unsafe value used in a script context");case Z2.URL:return ml(i),N4(i,"URL")?k3(i):mt(String(i));case Z2.RESOURCE_URL:if(N4(i,"ResourceURL"))return k3(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function ux(t){return new sx(t)}(e)}bypassSecurityTrustStyle(e){return function dx(t){return new cx(t)}(e)}bypassSecurityTrustScript(e){return function hx(t){return new lx(t)}(e)}bypassSecurityTrustUrl(e){return function px(t){return new Cx(t)}(e)}bypassSecurityTrustResourceUrl(e){return function gx(t){return new fx(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:function(e){let i=null;return i=e?new e:function WR(t){return new Vh(t.get(S1))}(q(A1)),i},providedIn:"root"}),t})();const{isArray:qR}=Array,{getPrototypeOf:KR,prototype:YR,keys:QR}=Object;function Hh(t){if(1===t.length){const n=t[0];if(qR(n))return{args:n,keys:null};if(function ZR(t){return t&&"object"==typeof t&&KR(t)===YR}(n)){const e=QR(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:JR}=Array;function J7(t){return v2(n=>function XR(t,n){return JR(n)?t(...n):t(n)}(t,n))}function wh(t,n){return t.reduce((e,i,a)=>(e[i]=n[a],e),{})}let zh=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(b(d3),b(A2))},t.\u0275dir=G({type:t}),t})(),s6=(()=>{class t extends zh{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,features:[Z]}),t})();const n4=new _2("NgValueAccessor"),tP={provide:n4,useExisting:x2(()=>U1),multi:!0};let U1=(()=>{class t extends s6{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&A("change",function(r){return i.onChange(r.target.checked)})("blur",function(){return i.onTouched()})},features:[W2([tP]),Z]}),t})();const nP={provide:n4,useExisting:x2(()=>xe),multi:!0},aP=new _2("CompositionEventMode");let xe=(()=>{class t extends zh{constructor(e,i,a){super(e,i),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iP(){const t=P4()?P4().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(b(d3),b(A2),b(aP,8))},t.\u0275dir=G({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&A("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[W2([nP]),Z]}),t})();const h3=new _2("NgValidators"),Te=new _2("NgAsyncValidators"),rP=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function Eh(t){return function Ne(t){return null==t||0===t.length}(t.value)||rP.test(t.value)?null:{email:!0}}function o0(t){return null}function Oh(t){return null!=t}function Rh(t){const n=Dt(t)?$1(t):t;return Or(n),n}function Ph(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function Fh(t,n){return n.map(e=>e(t))}function Bh(t){return t.map(n=>function oP(t){return!t.validate}(n)?n:e=>n.validate(e))}function X7(t){return null!=t?function Uh(t){if(!t)return null;const n=t.filter(Oh);return 0==n.length?null:function(e){return Ph(Fh(e,n))}}(Bh(t)):null}function eo(t){return null!=t?function Gh(t){if(!t)return null;const n=t.filter(Oh);return 0==n.length?null:function(e){return function eP(...t){const n=B8(t),{args:e,keys:i}=Hh(t),a=new k2(r=>{const{length:o}=e;if(!o)return void r.complete();const s=new Array(o);let c=o,l=o;for(let C=0;C<o;C++){let f=!1;s3(e[C]).subscribe(R2(r,h=>{f||(f=!0,l--),s[C]=h},()=>c--,void 0,()=>{(!c||!f)&&(l||r.next(i?wh(i,s):s),r.complete())}))}});return n?a.pipe(J7(n)):a}(Fh(e,n).map(Rh)).pipe(v2(Ph))}}(Bh(t)):null}function jh(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function to(t){return t?Array.isArray(t)?t:[t]:[]}function s0(t,n){return Array.isArray(t)?t.includes(n):t===n}function qh(t,n){const e=to(n);return to(t).forEach(a=>{s0(e,a)||e.push(a)}),e}function Kh(t,n){return to(n).filter(e=>!s0(t,e))}class Yh{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=X7(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=eo(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Ee extends Yh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class b3 extends Yh{get formDirective(){return null}get path(){return null}}let a1=(()=>{class t extends class Qh{constructor(n){this._cd=n}is(n){var e,i,a;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(a=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===a?void 0:a[n])}}{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Ee,2))},t.\u0275dir=G({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&J2("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[Z]}),t})();function qt(t,n){(function ao(t,n){const e=function $h(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(jh(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function Wh(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(jh(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const a=()=>t.updateValueAndValidity();f0(n._rawValidators,a),f0(n._rawAsyncValidators,a)})(t,n),n.valueAccessor.writeValue(t.value),function pP(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Jh(t,n)})}(t,n),function mP(t,n){const e=(i,a)=>{n.valueAccessor.writeValue(i),a&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function gP(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Jh(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function hP(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function f0(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Jh(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function so(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const Kt="VALID",d0="INVALID",V5="PENDING",Yt="DISABLED";function lo(t){return(h0(t)?t.validators:t)||null}function np(t){return Array.isArray(t)?X7(t):t||null}function Co(t,n){return(h0(n)?n.asyncValidators:t)||null}function ip(t){return Array.isArray(t)?eo(t):t||null}function h0(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const fo=t=>t instanceof ho;function rp(t){return(t=>t instanceof cp)(t)?t.value:t.getRawValue()}function op(t,n){const e=fo(t),i=t.controls;if(!(e?Object.keys(i):i).length)throw new S2(1e3,"");if(!i[n])throw new S2(1001,"")}function sp(t,n){fo(t),t._forEachChild((i,a)=>{if(void 0===n[a])throw new S2(1002,"")})}class uo{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=np(this._rawValidators),this._composedAsyncValidatorFn=ip(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Kt}get invalid(){return this.status===d0}get pending(){return this.status==V5}get disabled(){return this.status===Yt}get enabled(){return this.status!==Yt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=np(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=ip(n)}addValidators(n){this.setValidators(qh(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(qh(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Kh(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Kh(n,this._rawAsyncValidators))}hasValidator(n){return s0(this._rawValidators,n)}hasAsyncValidator(n){return s0(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=V5,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Yt,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Kt,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Kt||this.status===V5)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Yt:Kt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=V5,this._hasOwnPendingAsyncValidator=!0;const e=Rh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function yP(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(e)),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(a=>{i=fo(i)?i.controls.hasOwnProperty(a)?i.controls[a]:null:(t=>t instanceof bP)(i)&&i.at(a)||null}),i}(this,n,".")}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new r2,this.statusChanges=new r2}_calculateStatus(){return this._allControlsDisabled()?Yt:this.errors?d0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(V5)?V5:this._anyControlsHaveStatus(d0)?d0:Kt}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){h0(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class cp extends uo{constructor(n=null,e,i){super(lo(e),Co(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),h0(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){so(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){so(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class ho extends uo{constructor(n,e,i){super(lo(e),Co(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){sp(this,n),Object.keys(n).forEach(i=>{op(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,a)=>{i.reset(n[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=rp(e),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((a,r)=>{i=e(i,a,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class bP extends uo{constructor(n,e,i){super(lo(e),Co(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){sp(this,n),n.forEach((i,a)=>{op(this,a),this.at(a).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,a)=>{this.at(a)&&this.at(a).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,a)=>{i.reset(n[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>rp(n))}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const wP={provide:Ee,useExisting:x2(()=>e1)},fp=(()=>Promise.resolve(null))();let e1=(()=>{class t extends Ee{constructor(e,i,a,r,o){super(),this._changeDetectorRef=o,this.control=new cp,this._registered=!1,this.update=new r2,this._parent=e,this._setValidators(i),this._setAsyncValidators(a),this.valueAccessor=function oo(t,n){if(!n)return null;let e,i,a;return Array.isArray(n),n.forEach(r=>{r.constructor===xe?e=r:function MP(t){return Object.getPrototypeOf(t.constructor)===s6}(r)?i=r:a=r}),a||i||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function ro(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){qt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){fp.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,a=""===i||i&&"false"!==i;fp.then(()=>{var r;a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(e){return this._parent?function l0(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(b(b3,9),b(h3,10),b(Te,10),b(n4,10),b(F3,8))},t.\u0275dir=G({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[W2([wP]),Z,H1]}),t})();const SP={provide:n4,useExisting:x2(()=>H5),multi:!0};let H5=(()=>{class t extends s6{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&A("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},features:[W2([SP]),Z]}),t})(),up=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();const OP={provide:n4,useExisting:x2(()=>Ae),multi:!0};function _p(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Ae=(()=>{class t extends s6{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const a=_p(this._getOptionId(e),e);this.setProperty("value",a)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function RP(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&A("change",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[W2([OP]),Z]}),t})(),w5=(()=>{class t{constructor(e,i,a){this._element=e,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(_p(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(d3),b(Ae,9))},t.\u0275dir=G({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const PP={provide:n4,useExisting:x2(()=>_o),multi:!0};function Mp(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let _o=(()=>{class t extends s6{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const a=e.map(r=>this._getOptionId(r));i=(r,o)=>{r._setSelected(a.indexOf(o.toString())>-1)}}else i=(a,r)=>{a._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const a=[],r=i.selectedOptions;if(void 0!==r){const o=r;for(let s=0;s<o.length;s++){const l=this._getOptionValue(o[s].value);a.push(l)}}else{const o=i.options;for(let s=0;s<o.length;s++){const c=o[s];if(c.selected){const l=this._getOptionValue(c.value);a.push(l)}}}this.value=a,e(a)}}_registerOption(e){const i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){const i=function FP(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,i){1&e&&A("change",function(r){return i.onChange(r.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[W2([PP]),Z]}),t})(),z5=(()=>{class t{constructor(e,i,a){this._element=e,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Mp(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Mp(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(d3),b(_o,9))},t.\u0275dir=G({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),c6=(()=>{class t{constructor(){this._validator=o0}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):o0,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=G({type:t,features:[H1]}),t})();const WP={provide:h3,useExisting:x2(()=>yo),multi:!0};let yo=(()=>{class t extends c6{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=e=>""===e||!0===e||"true"===e,this.createValidator=e=>Eh}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[W2([WP]),Z]}),t})(),QP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[up]]}),t})(),Dp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[QP]}),t})();function s2(...t){return $1(t,X5(t))}const ZP=["addListener","removeListener"],JP=["addEventListener","removeEventListener"],XP=["on","off"];function p3(t,n,e,i){if(K(e)&&(i=e,e=void 0),i)return p3(t,n,e).pipe(J7(i));const[a,r]=function nF(t){return K(t.addEventListener)&&K(t.removeEventListener)}(t)?JP.map(o=>s=>t[o](n,s,e)):function eF(t){return K(t.addListener)&&K(t.removeListener)}(t)?ZP.map(xp(t,n)):function tF(t){return K(t.on)&&K(t.off)}(t)?XP.map(xp(t,n)):[];if(!a&&ji(t))return b1(o=>p3(o,n,e))(s3(t));if(!a)throw new TypeError("Invalid event target");return new k2(o=>{const s=(...c)=>o.next(1<c.length?c:c[0]);return a(s),()=>r(s)})}function xp(t,n){return e=>i=>t[e](n,i)}class iF extends H2{constructor(n,e){super()}schedule(n,e=0){return this}}const p0={setInterval(t,n,...e){const{delegate:i}=p0;return(null==i?void 0:i.setInterval)?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=p0;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0},Np={now:()=>(Np.delegate||Date).now(),delegate:void 0};class Zt{constructor(n,e=Zt.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Zt.now=Np.now;const Tp=new class rF extends Zt{constructor(n,e=Zt.now){super(n,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}(class aF extends iF{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,a=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(a,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(a,this.id,e),this}requestAsyncId(n,e,i=0){return p0.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;p0.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let a,i=!1;try{this.work(n)}catch(r){i=!0,a=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),a}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,q2(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}),oF=Tp;function Lo(t=0,n,e=oF){let i=-1;return null!=n&&(lc(n)?e=n:i=n),new k2(a=>{let r=function sF(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let o=0;return e.schedule(function(){a.closed||(a.next(o++),0<=i?this.schedule(void 0,i):a.complete())},r)})}const{isArray:cF}=Array;function Ep(t){return 1===t.length&&cF(t[0])?t[0]:t}function Ap(...t){return 1===(t=Ep(t)).length?s3(t[0]):new k2(function lF(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i<t.length;i++)e.push(s3(t[i]).subscribe(R2(n,a=>{if(e){for(let r=0;r<e.length;r++)r!==i&&e[r].unsubscribe();e=null}n.next(a)})))}}(t))}class q1 extends d2{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function kp(t,n,e){t?W4(e,t,n):n()}function g0(...t){const n=B8(t),e=Ep(t);return e.length?new k2(i=>{let a=e.map(()=>[]),r=e.map(()=>!1);i.add(()=>{a=r=null});for(let o=0;!i.closed&&o<e.length;o++)s3(e[o]).subscribe(R2(i,s=>{if(a[o].push(s),a.every(c=>c.length)){const c=a.map(l=>l.shift());i.next(n?n(...c):c),a.some((l,C)=>!l.length&&r[C])&&i.complete()}},()=>{r[o]=!0,!a[o].length&&i.complete()}));return()=>{a=r=null}}):c4}function Jt(...t){return function fF(){return J5(1)}()($1(t,X5(t)))}function G1(t){return c1((n,e)=>{s3(t).subscribe(R2(e,()=>e.complete(),O1)),!e.closed&&n.subscribe(e)})}function J1(t,n){return c1((e,i)=>{let a=0;e.subscribe(R2(i,r=>t.call(n,r,a++)&&i.next(r)))})}function re(t,n){return c1((e,i)=>{let a=null,r=0,o=!1;const s=()=>o&&!a&&i.complete();e.subscribe(R2(i,c=>{null==a||a.unsubscribe();let l=0;const C=r++;s3(t(c,C)).subscribe(a=R2(i,f=>i.next(n?n(c,f,C,l++):f),()=>{a=null,s()}))},()=>{o=!0,s()}))})}function g3(t,n,e){const i=K(t)||n||e?{next:t,error:n,complete:e}:t;return i?c1((a,r)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let s=!0;a.subscribe(R2(r,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),r.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),r.complete()},c=>{var l;s=!1,null===(l=i.error)||void 0===l||l.call(i,c),r.error(c)},()=>{var c,l;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):o4}function Ho(...t){const n=B8(t);return c1((e,i)=>{const a=t.length,r=new Array(a);let o=t.map(()=>!1),s=!1;for(let c=0;c<a;c++)s3(t[c]).subscribe(R2(i,l=>{r[c]=l,!s&&!o[c]&&(o[c]=!0,(s=o.every(o4))&&(o=null))},O1));e.subscribe(R2(i,c=>{if(s){const l=[c,...r];i.next(n?n(...l):l)}}))})}function Op(t,n){return n?e=>Jt(n.pipe(Q1(1),function hF(){return c1((t,n)=>{t.subscribe(R2(n,O1))})}()),e.pipe(Op(t))):b1((e,i)=>t(e,i).pipe(Q1(1),function pF(t){return v2(()=>t)}(e)))}function Rp(t,n=Tp){const e=Lo(t,n);return Op(()=>e)}new k2(O1);var mF={left:"right",right:"left",bottom:"top",top:"bottom"};function v0(t){return t.replace(/left|right|bottom|top/g,function(n){return mF[n]})}function F4(t){return t.split("-")[0]}var vF={start:"end",end:"start"};function Pp(t){return t.replace(/start|end/g,function(n){return vF[n]})}var U3="top",y4="bottom",L4="right",G3="left",wo="auto",Xt=[U3,y4,L4,G3],S5="start",e8="end",Fp="viewport",t8="popper",Bp=Xt.reduce(function(t,n){return t.concat([n+"-"+S5,n+"-"+e8])},[]),Up=[].concat(Xt,[wo]).reduce(function(t,n){return t.concat([n,n+"-"+S5,n+"-"+e8])},[]),xF=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b4(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function D5(t){return t instanceof b4(t).Element||t instanceof Element}function i4(t){return t instanceof b4(t).HTMLElement||t instanceof HTMLElement}function zo(t){return"undefined"!=typeof ShadowRoot&&(t instanceof b4(t).ShadowRoot||t instanceof ShadowRoot)}function ke(t){return((D5(t)?t.ownerDocument:t.document)||window.document).documentElement}var l6=Math.max,_0=Math.min,x5=Math.round;function N5(t,n){void 0===n&&(n=!1);var e=t.getBoundingClientRect(),i=1,a=1;if(i4(t)&&n){var r=t.offsetHeight,o=t.offsetWidth;o>0&&(i=x5(e.width)/o||1),r>0&&(a=x5(e.height)/r||1)}return{width:e.width/i,height:e.height/a,top:e.top/a,right:e.right/i,bottom:e.bottom/a,left:e.left/i,x:e.left/i,y:e.top/a}}function So(t){var n=b4(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Do(t){return N5(ke(t)).left+So(t).scrollLeft}function oe(t){return b4(t).getComputedStyle(t)}function B4(t){return t?(t.nodeName||"").toLowerCase():null}function M0(t){return"html"===B4(t)?t:t.assignedSlot||t.parentNode||(zo(t)?t.host:null)||ke(t)}function xo(t){var n=oe(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function Gp(t){return["html","body","#document"].indexOf(B4(t))>=0?t.ownerDocument.body:i4(t)&&xo(t)?t:Gp(M0(t))}function n8(t,n){var e;void 0===n&&(n=[]);var i=Gp(t),a=i===(null==(e=t.ownerDocument)?void 0:e.body),r=b4(i),o=a?[r].concat(r.visualViewport||[],xo(i)?i:[]):i,s=n.concat(o);return a?s:s.concat(n8(M0(o)))}function EF(t){return["table","td","th"].indexOf(B4(t))>=0}function jp(t){return i4(t)&&"fixed"!==oe(t).position?t.offsetParent:null}function i8(t){for(var n=b4(t),e=jp(t);e&&EF(e)&&"static"===oe(e).position;)e=jp(e);return e&&("html"===B4(e)||"body"===B4(e)&&"static"===oe(e).position)?n:e||function AF(t){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&i4(t)&&"fixed"===oe(t).position)return null;var a=M0(t);for(zo(a)&&(a=a.host);i4(a)&&["html","body"].indexOf(B4(a))<0;){var r=oe(a);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return a;a=a.parentNode}return null}(t)||n}function $p(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&zo(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function No(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Wp(t,n){return n===Fp?No(function NF(t){var n=b4(t),e=ke(t),i=n.visualViewport,a=e.clientWidth,r=e.clientHeight,o=0,s=0;return i&&(a=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:a,height:r,x:o+Do(t),y:s}}(t)):D5(n)?function kF(t){var n=N5(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(n):No(function TF(t){var n,e=ke(t),i=So(t),a=null==(n=t.ownerDocument)?void 0:n.body,r=l6(e.scrollWidth,e.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=l6(e.scrollHeight,e.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-i.scrollLeft+Do(t),c=-i.scrollTop;return"rtl"===oe(a||e).direction&&(s+=l6(e.clientWidth,a?a.clientWidth:0)-r),{width:r,height:o,x:s,y:c}}(ke(t)))}function T5(t){return t.split("-")[1]}function To(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function qp(t){var c,n=t.reference,e=t.element,i=t.placement,a=i?F4(i):null,r=i?T5(i):null,o=n.x+n.width/2-e.width/2,s=n.y+n.height/2-e.height/2;switch(a){case U3:c={x:o,y:n.y-e.height};break;case y4:c={x:o,y:n.y+n.height};break;case L4:c={x:n.x+n.width,y:s};break;case G3:c={x:n.x-e.width,y:s};break;default:c={x:n.x,y:n.y}}var l=a?To(a):null;if(null!=l){var C="y"===l?"height":"width";switch(r){case S5:c[l]=c[l]-(n[C]/2-e[C]/2);break;case e8:c[l]=c[l]+(n[C]/2-e[C]/2)}}return c}function Yp(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Qp(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function Eo(t,n){void 0===n&&(n={});var i=n.placement,a=void 0===i?t.placement:i,r=n.boundary,o=void 0===r?"clippingParents":r,s=n.rootBoundary,c=void 0===s?Fp:s,l=n.elementContext,C=void 0===l?t8:l,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,V=void 0===m?0:m,H=Yp("number"!=typeof V?V:Qp(V,Xt)),x=t.rects.popper,w=t.elements[h?C===t8?"reference":t8:C],I=function OF(t,n,e){var i="clippingParents"===n?function IF(t){var n=n8(M0(t)),i=["absolute","fixed"].indexOf(oe(t).position)>=0&&i4(t)?i8(t):t;return D5(i)?n.filter(function(a){return D5(a)&&$p(a,i)&&"body"!==B4(a)}):[]}(t):[].concat(n),a=[].concat(i,[e]),o=a.reduce(function(s,c){var l=Wp(t,c);return s.top=l6(l.top,s.top),s.right=_0(l.right,s.right),s.bottom=_0(l.bottom,s.bottom),s.left=l6(l.left,s.left),s},Wp(t,a[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(D5(w)?w:w.contextElement||ke(t.elements.popper),o,c),U=N5(t.elements.reference),j=qp({reference:U,element:x,strategy:"absolute",placement:a}),J=No(Object.assign({},x,j)),u2=C===t8?J:U,m2={top:I.top-u2.top+H.top,bottom:u2.bottom-I.bottom+H.bottom,left:I.left-u2.left+H.left,right:u2.right-I.right+H.right},B2=t.modifiersData.offset;if(C===t8&&B2){var x1=B2[a];Object.keys(m2).forEach(function(t1){var V3=[L4,y4].indexOf(t1)>=0?1:-1,t3=[U3,y4].indexOf(t1)>=0?"y":"x";m2[t1]+=x1[t3]*V3})}return m2}const BF={name:"flip",enabled:!0,phase:"main",fn:function FF(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var a=e.mainAxis,r=void 0===a||a,o=e.altAxis,s=void 0===o||o,c=e.fallbackPlacements,l=e.padding,C=e.boundary,f=e.rootBoundary,h=e.altBoundary,m=e.flipVariations,V=void 0===m||m,H=e.allowedAutoPlacements,S=n.options.placement,x=F4(S),I=c||(x!==S&&V?function PF(t){if(F4(t)===wo)return[];var n=v0(t);return[Pp(t),n,Pp(n)]}(S):[v0(S)]),U=[S].concat(I).reduce(function($5,Ue){return $5.concat(F4(Ue)===wo?function RF(t,n){void 0===n&&(n={});var a=n.boundary,r=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?Up:c,C=T5(n.placement),f=C?s?Bp:Bp.filter(function(V){return T5(V)===C}):Xt,h=f.filter(function(V){return l.indexOf(V)>=0});0===h.length&&(h=f);var m=h.reduce(function(V,H){return V[H]=Eo(t,{placement:H,boundary:a,rootBoundary:r,padding:o})[F4(H)],V},{});return Object.keys(m).sort(function(V,H){return m[V]-m[H]})}(n,{placement:Ue,boundary:C,rootBoundary:f,padding:l,flipVariations:V,allowedAutoPlacements:H}):Ue)},[]),j=n.rects.reference,J=n.rects.popper,u2=new Map,m2=!0,B2=U[0],x1=0;x1<U.length;x1++){var t1=U[x1],V3=F4(t1),t3=T5(t1)===S5,ge=[U3,y4].indexOf(V3)>=0,me=ge?"width":"height",n3=Eo(n,{placement:t1,boundary:C,rootBoundary:f,altBoundary:h,padding:l}),w4=ge?t3?L4:G3:t3?y4:U3;j[me]>J[me]&&(w4=v0(w4));var Di=v0(w4),V6=[];if(r&&V6.push(n3[V3]<=0),s&&V6.push(n3[w4]<=0,n3[Di]<=0),V6.every(function($5){return $5})){B2=t1,m2=!1;break}u2.set(t1,V6)}if(m2)for(var Ys=function(Ue){var k8=U.find(function(Ti){var H6=u2.get(Ti);if(H6)return H6.slice(0,Ue).every(function(Qs){return Qs})});if(k8)return B2=k8,"break"},A8=V?3:1;A8>0&&"break"!==Ys(A8);A8--);n.placement!==B2&&(n.modifiersData[i]._skip=!0,n.placement=B2,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function a8(t,n,e){return l6(t,_0(n,e))}function Ao(t){var n=N5(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}const $F={name:"preventOverflow",enabled:!0,phase:"main",fn:function jF(t){var n=t.state,e=t.options,i=t.name,a=e.mainAxis,r=void 0===a||a,o=e.altAxis,s=void 0!==o&&o,h=e.tether,m=void 0===h||h,V=e.tetherOffset,H=void 0===V?0:V,S=Eo(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),x=F4(n.placement),w=T5(n.placement),I=!w,U=To(x),j=function UF(t){return"x"===t?"y":"x"}(U),J=n.modifiersData.popperOffsets,u2=n.rects.reference,m2=n.rects.popper,B2="function"==typeof H?H(Object.assign({},n.rects,{placement:n.placement})):H,x1="number"==typeof B2?{mainAxis:B2,altAxis:B2}:Object.assign({mainAxis:0,altAxis:0},B2),t1=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,V3={x:0,y:0};if(J){if(r){var t3,ge="y"===U?U3:G3,me="y"===U?y4:L4,n3="y"===U?"height":"width",w4=J[U],Di=w4+S[ge],V6=w4-S[me],xi=m?-m2[n3]/2:0,Ys=w===S5?u2[n3]:m2[n3],A8=w===S5?-m2[n3]:-u2[n3],Ni=n.elements.arrow,$5=m&&Ni?Ao(Ni):{width:0,height:0},Ue=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},k8=Ue[ge],Ti=Ue[me],H6=a8(0,u2[n3],$5[n3]),Qs=I?u2[n3]/2-xi-H6-k8-x1.mainAxis:Ys-H6-k8-x1.mainAxis,Gg2=I?-u2[n3]/2+xi+H6+Ti+x1.mainAxis:A8+H6+Ti+x1.mainAxis,Zs=n.elements.arrow&&i8(n.elements.arrow),Xz=null!=(t3=null==t1?void 0:t1[U])?t3:0,Wg2=w4+Gg2-Xz,eS=a8(m?_0(Di,w4+Qs-Xz-(Zs?"y"===U?Zs.clientTop||0:Zs.clientLeft||0:0)):Di,w4,m?l6(V6,Wg2):V6);J[U]=eS,V3[U]=eS-w4}if(s){var tS,w6=J[j],Ei="y"===j?"height":"width",nS=w6+S["x"===U?U3:G3],iS=w6-S["x"===U?y4:L4],Js=-1!==[U3,G3].indexOf(x),aS=null!=(tS=null==t1?void 0:t1[j])?tS:0,rS=Js?nS:w6-u2[Ei]-m2[Ei]-aS+x1.altAxis,oS=Js?w6+u2[Ei]+m2[Ei]-aS-x1.altAxis:iS,sS=m&&Js?function GF(t,n,e){var i=a8(t,n,e);return i>e?e:i}(rS,w6,oS):a8(m?rS:nS,w6,m?oS:iS);J[j]=sS,V3[j]=sS-w6}n.modifiersData[i]=V3}},requiresIfExists:["offset"]},YF={name:"arrow",enabled:!0,phase:"main",fn:function qF(t){var n,e=t.state,i=t.name,a=t.options,r=e.elements.arrow,o=e.modifiersData.popperOffsets,s=F4(e.placement),c=To(s),C=[G3,L4].indexOf(s)>=0?"height":"width";if(r&&o){var f=function(n,e){return Yp("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:Qp(n,Xt))}(a.padding,e),h=Ao(r),m="y"===c?U3:G3,V="y"===c?y4:L4,H=e.rects.reference[C]+e.rects.reference[c]-o[c]-e.rects.popper[C],S=o[c]-e.rects.reference[c],x=i8(r),w=x?"y"===c?x.clientHeight||0:x.clientWidth||0:0,J=w/2-h[C]/2+(H/2-S/2),u2=a8(f[m],J,w-h[C]-f[V]);e.modifiersData[i]=((n={})[c]=u2,n.centerOffset=u2-J,n)}},effect:function KF(t){var n=t.state,i=t.options.element,a=void 0===i?"[data-popper-arrow]":i;null!=a&&("string"==typeof a&&!(a=n.elements.popper.querySelector(a))||!$p(n.elements.popper,a)||(n.elements.arrow=a))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function XF(t,n,e){void 0===e&&(e=!1);var i=i4(n),a=i4(n)&&function JF(t){var n=t.getBoundingClientRect(),e=x5(n.width)/t.offsetWidth||1,i=x5(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),r=ke(n),o=N5(t,a),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!e)&&(("body"!==B4(n)||xo(r))&&(s=function ZF(t){return t!==b4(t)&&i4(t)?function QF(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):So(t)}(n)),i4(n)?((c=N5(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):r&&(c.x=Do(r))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function eB(t){var n=new Map,e=new Set,i=[];function a(r){e.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(s){if(!e.has(s)){var c=n.get(s);c&&a(c)}}),i.push(r)}return t.forEach(function(r){n.set(r.name,r)}),t.forEach(function(r){e.has(r.name)||a(r)}),i}function nB(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var Zp={placement:"bottom",modifiers:[],strategy:"absolute"};function Jp(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some(function(i){return!(i&&"function"==typeof i.getBoundingClientRect)})}function aB(t){void 0===t&&(t={});var e=t.defaultModifiers,i=void 0===e?[]:e,a=t.defaultOptions,r=void 0===a?Zp:a;return function(s,c,l){void 0===l&&(l=r);var C={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zp,r),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],h=!1,m={state:C,setOptions:function(x){var w="function"==typeof x?x(C.options):x;H(),C.options=Object.assign({},r,C.options,w),C.scrollParents={reference:D5(s)?n8(s):s.contextElement?n8(s.contextElement):[],popper:n8(c)};var I=function tB(t){var n=eB(t);return xF.reduce(function(e,i){return e.concat(n.filter(function(a){return a.phase===i}))},[])}(function iB(t){var n=t.reduce(function(e,i){var a=e[i.name];return e[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,e},{});return Object.keys(n).map(function(e){return n[e]})}([].concat(i,C.options.modifiers)));return C.orderedModifiers=I.filter(function(t1){return t1.enabled}),function V(){C.orderedModifiers.forEach(function(S){var w=S.options,U=S.effect;if("function"==typeof U){var j=U({state:C,name:S.name,instance:m,options:void 0===w?{}:w});f.push(j||function(){})}})}(),m.update()},forceUpdate:function(){if(!h){var x=C.elements,w=x.reference,I=x.popper;if(Jp(w,I)){C.rects={reference:XF(w,i8(I),"fixed"===C.options.strategy),popper:Ao(I)},C.reset=!1,C.placement=C.options.placement,C.orderedModifiers.forEach(function(t1){return C.modifiersData[t1.name]=Object.assign({},t1.data)});for(var j=0;j<C.orderedModifiers.length;j++)if(!0!==C.reset){var J=C.orderedModifiers[j],u2=J.fn,m2=J.options;"function"==typeof u2&&(C=u2({state:C,options:void 0===m2?{}:m2,name:J.name,instance:m})||C)}else C.reset=!1,j=-1}}},update:nB(function(){return new Promise(function(S){m.forceUpdate(),S(C)})}),destroy:function(){H(),h=!0}};if(!Jp(s,c))return m;function H(){f.forEach(function(S){return S()}),f=[]}return m.setOptions(l).then(function(S){!h&&l.onFirstUpdate&&l.onFirstUpdate(S)}),m}}var y0={passive:!0},lB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xp(t){var n,e=t.popper,i=t.popperRect,a=t.placement,r=t.variation,o=t.offsets,s=t.position,c=t.gpuAcceleration,l=t.adaptive,C=t.roundOffsets,f=t.isFixed,h=o.x,m=void 0===h?0:h,V=o.y,H=void 0===V?0:V,S="function"==typeof C?C({x:m,y:H}):{x:m,y:H};m=S.x,H=S.y;var x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),I=G3,U=U3,j=window;if(l){var J=i8(e),u2="clientHeight",m2="clientWidth";J===b4(e)&&"static"!==oe(J=ke(e)).position&&"absolute"===s&&(u2="scrollHeight",m2="scrollWidth"),J=J,(a===U3||(a===G3||a===L4)&&r===e8)&&(U=y4,H-=(f&&J===j&&j.visualViewport?j.visualViewport.height:J[u2])-i.height,H*=c?1:-1),a!==G3&&(a!==U3&&a!==y4||r!==e8)||(I=L4,m-=(f&&J===j&&j.visualViewport?j.visualViewport.width:J[m2])-i.width,m*=c?1:-1)}var t3,t1=Object.assign({position:s},l&&lB),V3=!0===C?function CB(t){var e=t.y,a=window.devicePixelRatio||1;return{x:x5(t.x*a)/a||0,y:x5(e*a)/a||0}}({x:m,y:H}):{x:m,y:H};return m=V3.x,H=V3.y,Object.assign({},t1,c?((t3={})[U]=w?"0":"",t3[I]=x?"0":"",t3.transform=(j.devicePixelRatio||1)<=1?"translate("+m+"px, "+H+"px)":"translate3d("+m+"px, "+H+"px, 0)",t3):((n={})[U]=w?H+"px":"",n[I]=x?m+"px":"",n.transform="",n))}var gB=aB({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function rB(t){var n=t.state,e=t.instance,i=t.options,a=i.scroll,r=void 0===a||a,o=i.resize,s=void 0===o||o,c=b4(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return r&&l.forEach(function(C){C.addEventListener("scroll",e.update,y0)}),s&&c.addEventListener("resize",e.update,y0),function(){r&&l.forEach(function(C){C.removeEventListener("scroll",e.update,y0)}),s&&c.removeEventListener("resize",e.update,y0)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function sB(t){var n=t.state;n.modifiersData[t.name]=qp({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function fB(t){var n=t.state,e=t.options,i=e.gpuAcceleration,a=void 0===i||i,r=e.adaptive,o=void 0===r||r,s=e.roundOffsets,c=void 0===s||s,C={placement:F4(n.placement),variation:T5(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:a,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,Xp(Object.assign({},C,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:o,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,Xp(Object.assign({},C,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function dB(t){var n=t.state;Object.keys(n.elements).forEach(function(e){var i=n.styles[e]||{},a=n.attributes[e]||{},r=n.elements[e];!i4(r)||!B4(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(o){var s=a[o];!1===s?r.removeAttribute(o):r.setAttribute(o,!0===s?"":s)}))})},effect:function hB(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach(function(i){var a=n.elements[i],r=n.attributes[i]||{},s=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:e[i]).reduce(function(c,l){return c[l]="",c},{});!i4(a)||!B4(a)||(Object.assign(a.style,s),Object.keys(r).forEach(function(c){a.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const _B={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function vB(t){var n=t.state,i=t.name,a=t.options.offset,r=void 0===a?[0,0]:a,o=Up.reduce(function(C,f){return C[f]=function mB(t,n,e){var i=F4(t),a=[G3,U3].indexOf(i)>=0?-1:1,r="function"==typeof e?e(Object.assign({},n,{placement:t})):e,o=r[0],s=r[1];return o=o||0,s=(s||0)*a,[G3,L4].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(f,n.rects,r),C},{}),s=o[n.placement],l=s.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=s.x,n.modifiersData.popperOffsets.y+=l),n.modifiersData[i]=o}};function MB(t,n){}function yB(t,n){if(1&t&&(p(0,"button",3),_(1),k(2,MB,0,0,"ng-template",4),g()),2&t){const e=n.$implicit;M("ngbPanelToggle",e),v(1),R3(" ",e.title,""),v(1),M("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function LB(t,n){}function bB(t,n){}function VB(t,n){if(1&t){const e=w1();p(0,"div",8),A("ngbRef",function(a){return F(e),D().$implicit.panelDiv=a}),p(1,"div",9),k(2,bB,0,0,"ng-template",4),g()()}if(2&t){const e=D().$implicit;Pr("id",e.id),B("aria-labelledby",e.id+"-header"),v(2),M("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const HB=function(t,n){return{$implicit:t,opened:n}};function wB(t,n){if(1&t&&(p(0,"div")(1,"div",5),k(2,LB,0,0,"ng-template",6),g(),k(3,VB,3,3,"div",7),g()),2&t){const e=n.$implicit,i=D(),a=J3(1);X4("accordion-item "+(e.cardClass||"")),v(1),X4("accordion-header "+(e.type?"bg-"+e.type:i.type?"bg-"+i.type:"")),h5("id","",e.id,"-header"),v(1),M("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||a)("ngTemplateOutletContext",Ot(8,HB,e,e.isOpen)),v(1),M("ngIf",!i.destroyOnHide||e.isOpen||e.transitionRunning)}}function zB(t,n){if(1&t){const e=w1();p(0,"button",1),A("click",function(){return F(e),D().close()}),g()}}const L0=["*"],$B=["dialog"];function bU(t,n){1&t&&_(0),2&t&&ee(D(2).title)}function VU(t,n){}function HU(t,n){if(1&t&&(p(0,"h3",3),k(1,bU,1,1,"ng-template",null,4,X3),k(3,VU,0,0,"ng-template",5),g()),2&t){const e=J3(2),i=D();v(3),M("ngTemplateOutlet",i.isTitleTemplate()?i.title:e)("ngTemplateOutletContext",i.context)}}function Io(t){return"string"==typeof t}function C6(t){return null!=t}function E5(t){return(t||document.body).getBoundingClientRect()}const tg={animation:!0,transitionTimerDelayMs:5},FU=()=>{},{transitionTimerDelayMs:BU}=tg,r8=new Map,m3=(t,n,e,i)=>{let a=i.context||{};const r=r8.get(n);if(r)switch(i.runningTransition){case"continue":return c4;case"stop":t.run(()=>r.transition$.complete()),a=Object.assign(r.context,a),r8.delete(n)}const o=e(n,i.animation,a)||FU;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>o()),s2(void 0).pipe(function RU(t){return n=>new k2(e=>n.subscribe({next:o=>t.run(()=>e.next(o)),error:o=>t.run(()=>e.error(o)),complete:()=>t.run(()=>e.complete())}))}(t));const s=new d2,c=new d2,l=s.pipe(function uF(...t){return n=>Jt(n,s2(...t))}(!0));r8.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:a});const C=function PU(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const f=p3(n,"transitionend").pipe(G1(l),J1(({target:m})=>m===n));Ap(Lo(C+BU).pipe(G1(l)),f,c).pipe(G1(l)).subscribe(()=>{r8.delete(n),t.run(()=>{o(),s.next(),s.complete()})})}),s.asObservable()},ng=(t,n,e)=>{let{direction:i,maxHeight:a}=e;const{classList:r}=t;function o(){r.add("collapse"),"show"===i?r.add("show"):r.remove("show")}if(n)return a||(a=function GU(t){if("undefined"==typeof navigator)return"0px";const{classList:n}=t,e=n.contains("show");e||n.add("show"),t.style.height="";const i=t.getBoundingClientRect().height+"px";return e||n.remove("show"),i}(t),e.maxHeight=a,t.style.height="show"!==i?a:"0px",r.remove("collapse"),r.remove("collapsing"),r.remove("show"),E5(t),r.add("collapsing")),t.style.height="show"===i?a:"0px",()=>{o(),r.remove("collapsing"),t.style.height=""};o()};let f6=(()=>{class t{constructor(){this.animation=tg.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jU=(()=>{class t{constructor(e){this._ngbConfig=e,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$U=0,V0=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(f1))},t.\u0275dir=G({type:t,selectors:[["ng-template","ngbPanelHeader",""]]}),t})(),Ro=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(f1))},t.\u0275dir=G({type:t,selectors:[["ng-template","ngbPanelTitle",""]]}),t})(),Po=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(f1))},t.\u0275dir=G({type:t,selectors:[["ng-template","ngbPanelContent",""]]}),t})(),H0=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+$U++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new r2,this.hidden=new r2}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=G({type:t,selectors:[["ngb-panel"]],contentQueries:function(e,i,a){if(1&e&&(z1(a,Ro,4),z1(a,V0,4),z1(a,Po,4)),2&e){let r;h1(r=p1())&&(i.titleTpls=r),h1(r=p1())&&(i.headerTpls=r),h1(r=p1())&&(i.contentTpls=r)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),t})(),WU=(()=>{class t{constructor(e){this._El=e,this.ngbRef=new r2}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(b(A2))},t.\u0275dir=G({type:t,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"}}),t})(),Fo=(()=>{class t{constructor(e,i,a){this._ngZone=i,this._changeDetector=a,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new r2,this.shown=new r2,this.hidden=new r2,this.animation=e.animation,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const i=this._findPanelById(e);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){Io(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>{e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(Q1(1)).subscribe(()=>{this.panels.forEach(e=>{const i=e.panelDiv;i?e.initClassDone||(e.initClassDone=!0,m3(this._ngZone,i,ng,{animation:!1,runningTransition:"continue",context:{direction:e.isOpen?"show":"hide"}})):e.initClassDone=!1})})}_changeOpenState(e,i){if(null!=e&&!e.disabled&&e.isOpen!==i){let a=!1;this.panelChange.emit({panelId:e.id,nextState:i,preventDefault:()=>{a=!0}}),a||(e.isOpen=i,e.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(e,i=!0){this.panels.forEach(a=>{a.id!==e&&a.isOpen&&(a.isOpen=!1,a.transitionRunning=i)})}_findPanelById(e){return this.panels.find(i=>i.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}_runTransitions(e){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&m3(this._ngZone,i.panelDiv,ng,{animation:e,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide"}}).subscribe(()=>{i.transitionRunning=!1;const{id:r}=i;i.isOpen?(i.shown.emit(),this.shown.emit(r)):(i.hidden.emit(),this.hidden.emit(r))})})}}return t.\u0275fac=function(e){return new(e||t)(b(jU),b(F2),b(F3))},t.\u0275cmp=n2({type:t,selectors:[["ngb-accordion"]],contentQueries:function(e,i,a){if(1&e&&z1(a,H0,4),2&e){let r;h1(r=p1())&&(i.panels=r)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,i){2&e&&B("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(e,i){1&e&&(k(0,yB,3,3,"ng-template",0,1,X3),k(2,wB,4,11,"ng-template",2)),2&e&&(v(2),M("ngForOf",i.panels))},directives:function(){return[V0,Bo,b5,ae,m1,WU]},encapsulation:2}),t})(),Bo=(()=>{class t{constructor(e,i){this.accordion=e,this.panel=i}set ngbPanelToggle(e){e&&(this.panel=e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fo),b(H0,9))},t.\u0275dir=G({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,i){1&e&&A("click",function(){return i.accordion.toggle(i.panel.id)}),2&e&&(v4("disabled",i.panel.disabled),B("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),J2("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),t})(),ig=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})();const qU=({classList:t})=>{t.remove("show")};let KU=(()=>{class t{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ag=(()=>{class t{constructor(e,i,a,r){this._renderer=i,this._element=a,this._zone=r,this.closed=new r2,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=m3(this._zone,this._element.nativeElement,qU,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(b(KU),b(d3),b(A2),b(F2))},t.\u0275cmp=n2({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&J2("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[H1],ngContentSelectors:L0,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(u5(),d5(0),k(1,zB,1,0,"button",0)),2&e&&(v(1),M("ngIf",i.dismissible))},directives:[m1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),rg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),sg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})(),Cg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),fg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();var j1=(()=>{return(t=j1||(j1={}))[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",j1;var t})();const z0=(t,n)=>!!n&&n.some(e=>e.contains(t)),ug=(t,n)=>!n||null!=function OU(t,n){return n&&void 0!==t.closest?t.closest(n):null}(t,n),cG="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function Go(t,n,e,i,a,r,o,s){e&&t.runOutsideAngular((t=>cG?()=>setTimeout(()=>t(),100):t)(()=>{const l=p3(n,"keydown").pipe(G1(a),J1(h=>h.which===j1.Escape),g3(h=>h.preventDefault())),C=p3(n,"mousedown").pipe(v2(h=>{const m=h.target;return 2!==h.button&&!z0(m,o)&&("inside"===e?z0(m,r)&&ug(m,s):"outside"===e?!z0(m,r):ug(m,s)||!z0(m,r))}),G1(a)),f=p3(n,"mouseup").pipe(Ho(C),J1(([h,m])=>m),Rp(0),G1(a));Ap([l.pipe(v2(h=>0)),f.pipe(v2(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const dg=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function hg(t){const n=Array.from(t.querySelectorAll(dg)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const fG=/\s+/,uG=/ +/gi,dG=/^start/,hG=/^end/,pG=/-(top|left)$/,gG=/-(bottom|right)$/,vG=/^left/,_G=/^right/,MG=/^start/,yG=/^end/;function pg({placement:t,baseClass:n}){let e=Array.isArray(t)?t:t.split(fG),a=e.findIndex(c=>"auto"===c);a>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==e.find(l=>-1!==l.search("^"+c))&&e.splice(a++,1,c)});const r=e.map(c=>function mG(t){return t.replace(dG,"left").replace(hG,"right").replace(pG,"-start").replace(gG,"-end")}(c));return{placement:r.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const l=new RegExp(n+"(-[a-z]+)*","gi"),C=c.elements.popper,f=c.placement;let h=C.className;h=h.replace(l,""),h+=` ${function LG(t,n){let[e,i]=n.split("-");const a=e.replace(vG,"start").replace(_G,"end");let r=[a];if(i){let o=i;("left"===e||"right"===e)&&(o=o.replace(MG,"top").replace(yG,"bottom")),r.push(`${a}-${o}`)}return t&&(r=r.map(o=>`${t}-${o}`)),r.join(" ")}(n,f)}`,h=h.trim().replace(uG," "),C.className=h}},BF,$F,YF,{enabled:!0,name:"flip",options:{fallbackPlacements:r}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function gg(t){return t}function jo(){let t=null;return{createPopper(n){if(!t){let i=(n.updatePopperOptions||gg)(pg(n));t=gB(n.hostElement,n.targetElement,i)}},update(){t&&t.update()},setOptions(n){if(t){let i=(n.updatePopperOptions||gg)(pg(n));t.setOptions(i)}},destroy(){t&&(t.destroy(),t=null)}}}function mg(t){return n=>(n.modifiers.push(_B,{name:"offset",options:{offset:()=>t}}),n)}new Date(1882,10,12),new Date(2174,10,25);let bg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3,Dp]]}),t})(),zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();class p6{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class Sg{constructor(n,e,i,a,r,o){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=a,this._ngZone=r,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._type,{index:this._viewContainerRef.length,injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:a}=this._windowRef.location,r=this._ngZone.onStable.pipe(Q1(1),b1(()=>m3(this._ngZone,a,({classList:o})=>o.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(n=!1){return this._windowRef?m3(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(g3(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):s2(void 0)}_getContentRef(n,e){if(n){if(n instanceof f1){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new p6([i.rootNodes],i)}return new p6([[this._renderer.createText(`${n}`)]])}return new p6([])}}let EG=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Q1(1)).subscribe(()=>{m3(this._zone,this._el.nativeElement,(e,i)=>{i&&E5(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return m3(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(F2))},t.\u0275cmp=n2({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(X4("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),J2("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class Dg{close(n){}dismiss(n){}}class AG{constructor(n,e,i,a){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=a,this._closed=new d2,this._dismissed=new d2,this._hidden=new d2,n.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,o)=>{this._resolve=r,this._reject=o}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(G1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(G1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function eg(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():s2(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),g0(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var g6=(()=>{return(t=g6||(g6={}))[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",g6;var t})();let kG=(()=>{class t{constructor(e,i,a){this._document=e,this._elRef=i,this._zone=a,this._closed$=new d2,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new r2,this.shown=new d2,this.hidden=new d2}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Io(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Q1(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=g0(m3(this._zone,e,()=>e.classList.remove("show"),i),m3(this._zone,this._dialogEl.nativeElement,()=>{},i));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const e={animation:this.animation,runningTransition:"continue"};g0(m3(this._zone,this._elRef.nativeElement,(r,o)=>{o&&E5(r),r.classList.add("show")},e),m3(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{p3(e,"keydown").pipe(G1(this._closed$),J1(a=>a.which===j1.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(g6.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;p3(this._dialogEl.nativeElement,"mousedown").pipe(G1(this._closed$),g3(()=>i=!1),re(()=>p3(e,"mouseup").pipe(G1(this._closed$),Q1(1))),J1(({target:a})=>e===a)).subscribe(()=>{i=!0}),p3(e,"click").pipe(G1(this._closed$)).subscribe(({target:a})=>{e===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(g6.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),a=hg(e)[0];(i||a||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let a;a=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>a.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&m3(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(b(S1),b(A2),b(F2))},t.\u0275cmp=n2({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&function c7(t,n,e){const i=D2();i.firstCreatePass&&(id(i,new ed(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),nd(i,O(),n)}($B,7),2&e){let a;h1(a=p1())&&(i._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(B("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),X4("modal d-block"+(i.windowClass?" "+i.windowClass:"")),J2("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:L0,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(u5(),p(0,"div",0,1)(2,"div",2),d5(3),g()()),2&e&&X4("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),IG=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,a=i.style,{overflow:r,paddingRight:o}=a;if(e>0){const s=parseFloat(window.getComputedStyle(i).paddingRight);a.paddingRight=`${s+e}px`}return a.overflow="hidden",()=>{e>0&&(a.paddingRight=o),a.overflow=r}}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),OG=(()=>{class t{constructor(e,i,a,r,o,s){this._applicationRef=e,this._injector=i,this._document=a,this._scrollBar=r,this._rendererFactory=o,this._ngZone=s,this._activeWindowCmptHasChanged=new d2,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new r2,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const a=p3(n,"focusin").pipe(G1(e),v2(r=>r.target));p3(n,"keydown").pipe(G1(e),J1(r=>r.which===j1.Tab),Ho(a)).subscribe(([r,o])=>{const[s,c]=hg(n);(o===s||o===n)&&r.shiftKey&&(c.focus(),r.preventDefault()),o===c&&!r.shiftKey&&(s.focus(),r.preventDefault())}),i&&p3(n,"click").pipe(G1(e),Ho(a),v2(r=>r[1])).subscribe(r=>r.focus())})})(0,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,a,r){const o=r.container instanceof HTMLElement?r.container:C6(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const c=new Dg,l=this._getContentRef(e,r.injector||i,a,c,r);let C=!1!==r.backdrop?this._attachBackdrop(e,o):void 0,f=this._attachWindowComponent(e,o,l),h=new AG(f,l,C,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(f),h.hidden.pipe(Q1(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),c.close=m=>{h.close(m)},c.dismiss=m=>{h.dismiss(m)},this._applyWindowOptions(f.instance,r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),C&&C.instance&&(this._applyBackdropOptions(C.instance,r),C.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let r=e.resolveComponentFactory(EG).create(this._injector);return this._applicationRef.attachView(r.hostView),i.appendChild(r.location.nativeElement),r}_attachWindowComponent(e,i,a){let o=e.resolveComponentFactory(kG).create(this._injector,a.nodes);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_applyWindowOptions(e,i){this._windowAttributes.forEach(a=>{C6(i[a])&&(e[a]=i[a])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(a=>{C6(i[a])&&(e[a]=i[a])})}_getContentRef(e,i,a,r,o){return a?a instanceof f1?this._createFromTemplateRef(a,r):Io(a)?this._createFromString(a):this._createFromComponent(e,i,a,r,o):new p6([])}_createFromTemplateRef(e,i){const r=e.createEmbeddedView({$implicit:i,close(o){i.close(o)},dismiss(o){i.dismiss(o)}});return this._applicationRef.attachView(r),new p6([r.rootNodes],r)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new p6([[i]])}_createFromComponent(e,i,a,r,o){const s=e.resolveComponentFactory(a),c=A1.create({providers:[{provide:Dg,useValue:r}],parent:i}),l=s.create(c),C=l.location.nativeElement;return o.scrollable&&C.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new p6([[C]],l.hostView,l)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(a=>{a!==e&&"SCRIPT"!==a.nodeName&&(this._ariaHiddenValues.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const a=this._modalRefs.indexOf(e);a>-1&&(this._modalRefs.splice(a,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(q(L5),q(A1),q(S1),q(IG),q(Yr),q(F2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),RG=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xg=(()=>{class t{constructor(e,i,a,r){this._moduleCFR=e,this._injector=i,this._modalStack=a,this._config=r}open(e,i={}){const a=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,e,a)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(q(v5),q(A1),q(OG),q(RG))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ng=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({providers:[xg]}),t})(),kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Gg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})();class jG{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const $G={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},jg=t=>t>0?Rp(t):n=>n;function $g(t,n,e,i,a,r,o=0,s=0){const c=function WG(t,n=$G){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(r=>r.split(":")).map(r=>{let o=n[r[0]]||r;return new jG(o[0],o[1])}),a=i.filter(r=>r.isManual());if(a.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===a.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===c.length&&c[0].isManual())return()=>{};const l=function qG(t,n,e,i){return new k2(a=>{const r=[],o=()=>a.next(!0),s=()=>a.next(!1),c=()=>a.next(!i());return e.forEach(l=>{l.open===l.close?r.push(t.listen(n,l.open,c)):r.push(t.listen(n,l.open,o),t.listen(n,l.close,s))}),()=>{r.forEach(l=>l())}})}(t,n,c,i).pipe(function KG(t,n,e){return i=>{let a=null;const r=i.pipe(v2(c=>({open:c})),J1(c=>{const l=e();return l===c.open||a&&a.open!==l?(a&&a.open!==c.open&&(a=null),!1):(a=c,!0)}),hc());return dc(r.pipe(J1(c=>c.open),jg(t)),r.pipe(J1(c=>!c.open),jg(n))).pipe(J1(c=>c===a&&(a=null,c.open!==e())),v2(c=>c.open))}}(o,s,i)).subscribe(C=>C?a():r());return()=>l.unsubscribe()}let YG=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QG=0,ZG=(()=>{class t{isTitleTemplate(){return this.title instanceof f1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(v4("id",i.id),X4("popover"+(i.popoverClass?" "+i.popoverClass:"")),J2("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:L0,decls:4,vars:1,consts:[["data-popper-arrow","",1,"popover-arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(u5(),T(0,"div",0),k(1,HU,4,2,"h3",1),p(2,"div",2),d5(3),g()),2&e&&(v(1),M("ngIf",i.title))},directives:[m1,b5],encapsulation:2,changeDetection:0}),t})(),JG=(()=>{class t{constructor(e,i,a,r,o,s,c,l,C){this._elementRef=e,this._renderer=i,this._ngZone=s,this._document=c,this._changeDetector=l,this.shown=new r2,this.hidden=new r2,this._ngbPopoverWindowId="ngb-popover-"+QG++,this._windowRef=null,this._positioning=jo(),this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new Sg(ZG,a,r,i,this._ngZone,C)}_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}open(e){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:a}=this._popupService.open(this.ngbPopover,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=e,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:mg([0,8])}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),Go(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(e=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(e).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=$g(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:e,popoverTitle:i,disablePopover:a,popoverClass:r}){r&&this.isOpen()&&(this._windowRef.instance.popoverClass=r.currentValue),(e||i||a)&&this._isDisabled()&&this.close()}ngOnDestroy(){var e;this.close(!1),null===(e=this._unregisterListenersFn)||void 0===e||e.call(this)}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(d3),b(A1),b(P3),b(YG),b(F2),b(S1),b(F3),b(L5))},t.\u0275dir=G({type:t,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[H1]}),t})(),Wg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Yg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),tj=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nj=0,ij=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(v4("id",i.id),X4("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),J2("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:L0,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(u5(),T(0,"div",0),p(1,"div",1),d5(2),g())},encapsulation:2,changeDetection:0}),t})(),aj=(()=>{class t{constructor(e,i,a,r,o,s,c,l,C){this._elementRef=e,this._renderer=i,this._ngZone=s,this._document=c,this._changeDetector=l,this.shown=new r2,this.hidden=new r2,this._ngbTooltipWindowId="ngb-tooltip-"+nj++,this._windowRef=null,this._positioning=jo(),this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new Sg(ij,a,r,i,this._ngZone,C)}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:a}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip"}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),Go(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(e=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(e).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=$g(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){var e;this.close(!1),null===(e=this._unregisterListenersFn)||void 0===e||e.call(this)}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(d3),b(A1),b(P3),b(tj),b(F2),b(S1),b(F3),b(L5))},t.\u0275dir=G({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[H1]}),t})(),Zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();new _2("live announcer delay",{providedIn:"root",factory:function rj(){return 100}});let Jg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();const oj=[ig,rg,sg,Cg,fg,bg,zg,Ng,kg,Xg,Gg,Wg,qg,Kg,Yg,Qg,Zg,Jg];let sj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[oj,ig,rg,sg,Cg,fg,bg,zg,Ng,kg,Xg,Gg,Wg,qg,Kg,Yg,Qg,Zg,Jg]}),t})();function em(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,i)}return e}function Y(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?em(Object(e),!0).forEach(function(i){Cj(t,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):em(Object(e)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}return t}function E0(t){return(E0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function tm(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Cj(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Zo(t,n){return function dj(t){if(Array.isArray(t))return t}(t)||function pj(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var o,s,i=[],a=!0,r=!1;try{for(e=e.call(t);!(a=(o=e.next()).done)&&(i.push(o.value),!n||i.length!==n);a=!0);}catch(c){r=!0,s=c}finally{try{!a&&null!=e.return&&e.return()}finally{if(r)throw s}}return i}}(t,n)||nm(t,n)||function mj(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k0(t){return function uj(t){if(Array.isArray(t))return Jo(t)}(t)||function hj(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||nm(t)||function gj(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nm(t,n){if(t){if("string"==typeof t)return Jo(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Jo(t,n)}}function Jo(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=t[e];return i}var im=function(){},Xo={},am={},rm=null,om={mark:im,measure:im};try{"undefined"!=typeof window&&(Xo=window),"undefined"!=typeof document&&(am=document),"undefined"!=typeof MutationObserver&&(rm=MutationObserver),"undefined"!=typeof performance&&(om=performance)}catch(t){}var sm=(Xo.navigator||{}).userAgent,cm=void 0===sm?"":sm,Oe=Xo,r1=am,lm=rm,I0=om,ce=!!r1.documentElement&&!!r1.head&&"function"==typeof r1.addEventListener&&"function"==typeof r1.createElement,Cm=~cm.indexOf("MSIE")||~cm.indexOf("Trident/"),le="___FONT_AWESOME___",um="svg-inline--fa",m6="data-fa-i2svg",t9="data-fa-pseudo-element",n9="data-prefix",i9="data-icon",dm="fontawesome-i2svg",yj=["HTML","HEAD","STYLE","SCRIPT"],hm=function(){try{return!0}catch(t){return!1}}(),a9={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},O0={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},pm={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Lj={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},bj=/fa[srltdbk\-\ ]/,gm="fa-layers-text",Vj=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,Hj={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},mm=[1,2,3,4,5,6,7,8,9,10],wj=mm.concat([11,12,13,14,15,16,17,18,19,20]),zj=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Sj=[].concat(k0(Object.keys(O0)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","duotone-group","swap-opacity","primary","secondary"]).concat(mm.map(function(t){return"".concat(t,"x")})).concat(wj.map(function(t){return"w-".concat(t)})),vm=Oe.FontAwesomeConfig||{};r1&&"function"==typeof r1.querySelector&&[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var n=Zo(t,2),i=n[1],a=function xj(t){return""===t||"false"!==t&&("true"===t||t)}(function Dj(t){var n=r1.querySelector("script["+t+"]");if(n)return n.getAttribute(t)}(n[0]));null!=a&&(vm[i]=a)});var C8=Y(Y({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:um,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),vm);C8.autoReplaceSvg||(C8.observeMutations=!1);var X={};Object.keys(C8).forEach(function(t){Object.defineProperty(X,t,{enumerable:!0,set:function(e){C8[t]=e,R0.forEach(function(i){return i(X)})},get:function(){return C8[t]}})}),Oe.FontAwesomeConfig=X;var R0=[],G4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function f8(){for(var t=12,n="";t-- >0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function k5(t){for(var n=[],e=(t||[]).length>>>0;e--;)n[e]=t[e];return n}function r9(t){return t.classList?k5(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(n){return n})}function _m(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function P0(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,": ").concat(t[e].trim(),";")},"")}function o9(t){return t.size!==G4.size||t.x!==G4.x||t.y!==G4.y||t.rotate!==G4.rotate||t.flipX||t.flipY}function Mm(){var t="fa",n=um,e=X.familyPrefix,i=X.replacementClass,a=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(e!==t||i!==n){var r=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(n),"g");a=a.replace(r,".".concat(e,"-")).replace(o,"--".concat(e,"-")).replace(s,".".concat(i))}return a}var ym=!1;function s9(){X.autoAddCss&&!ym&&(function Aj(t){if(t&&ce){var n=r1.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=t;for(var e=r1.head.childNodes,i=null,a=e.length-1;a>-1;a--){var r=e[a],o=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=r)}r1.head.insertBefore(n,i)}}(Mm()),ym=!0)}var Fj={mixout:function(){return{dom:{css:Mm,insertCss:s9}}},hooks:function(){return{beforeDOMElementCreation:function(){s9()},beforeI2svg:function(){s9()}}}},Ce=Oe||{};Ce[le]||(Ce[le]={}),Ce[le].styles||(Ce[le].styles={}),Ce[le].hooks||(Ce[le].hooks={}),Ce[le].shims||(Ce[le].shims=[]);var H4=Ce[le],Lm=[],F0=!1;function Uj(t){!ce||(F0?setTimeout(t,0):Lm.push(t))}function u8(t){var n=t.tag,e=t.attributes,i=void 0===e?{}:e,a=t.children,r=void 0===a?[]:a;return"string"==typeof t?_m(t):"<".concat(n," ").concat(function Ij(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,'="').concat(_m(t[e]),'" ')},"").trim()}(i),">").concat(r.map(u8).join(""),"</").concat(n,">")}function bm(t,n,e){if(t&&t[n]&&t[n][e])return{prefix:n,iconName:e,icon:t[n][e]}}ce&&((F0=(r1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(r1.readyState))||r1.addEventListener("DOMContentLoaded",function t(){r1.removeEventListener("DOMContentLoaded",t),F0=1,Lm.map(function(n){return n()})}));var c9=function(n,e,i,a){var c,l,C,r=Object.keys(n),o=r.length,s=void 0!==a?function(n,e){return function(i,a,r,o){return n.call(e,i,a,r,o)}}(e,a):e;for(void 0===i?(c=1,C=n[r[0]]):(c=0,C=i);c<o;c++)C=s(C,n[l=r[c]],l,n);return C};function l9(t){var n=function jj(t){for(var n=[],e=0,i=t.length;e<i;){var a=t.charCodeAt(e++);if(a>=55296&&a<=56319&&e<i){var r=t.charCodeAt(e++);56320==(64512&r)?n.push(((1023&a)<<10)+(1023&r)+65536):(n.push(a),e--)}else n.push(a)}return n}(t);return 1===n.length?n[0].toString(16):null}function Vm(t){return Object.keys(t).reduce(function(n,e){var i=t[e];return i.icon?n[i.iconName]=i.icon:n[e]=i,n},{})}function C9(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.skipHooks,a=void 0!==i&&i,r=Vm(n);"function"!=typeof H4.hooks.addPack||a?H4.styles[t]=Y(Y({},H4.styles[t]||{}),r):H4.hooks.addPack(t,Vm(n)),"fas"===t&&C9("fa",n)}var d8=H4.styles,Wj=H4.shims,qj=Object.values(pm),f9=null,Hm={},wm={},zm={},Sm={},Dm={},Kj=Object.keys(a9);function Qj(t,n){var e=n.split("-"),i=e[0],a=e.slice(1).join("-");return i!==t||""===a||function Yj(t){return~Sj.indexOf(t)}(a)?null:a}var xm=function(){var n=function(r){return c9(d8,function(o,s,c){return o[c]=c9(s,r,{}),o},{})};Hm=n(function(a,r,o){return r[3]&&(a[r[3]]=o),r[2]&&r[2].filter(function(c){return"number"==typeof c}).forEach(function(c){a[c.toString(16)]=o}),a}),wm=n(function(a,r,o){return a[o]=o,r[2]&&r[2].filter(function(c){return"string"==typeof c}).forEach(function(c){a[c]=o}),a}),Dm=n(function(a,r,o){var s=r[2];return a[o]=o,s.forEach(function(c){a[c]=o}),a});var e="far"in d8||X.autoFetchSvg,i=c9(Wj,function(a,r){var o=r[0],s=r[1],c=r[2];return"far"===s&&!e&&(s="fas"),"string"==typeof o&&(a.names[o]={prefix:s,iconName:c}),"number"==typeof o&&(a.unicodes[o.toString(16)]={prefix:s,iconName:c}),a},{names:{},unicodes:{}});zm=i.names,Sm=i.unicodes,f9=B0(X.styleDefault)};function u9(t,n){return(Hm[t]||{})[n]}function I5(t,n){return(Dm[t]||{})[n]}function Nm(t){return zm[t]||{prefix:null,iconName:null}}function Pe(){return f9}function B0(t){return O0[t]||O0[a9[t]]||(t in H4.styles?t:null)||null}function U0(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.skipLookups,i=void 0!==e&&e,a=null,r=t.reduce(function(o,s){var c=Qj(X.familyPrefix,s);if(d8[s]?(s=qj.includes(s)?Lj[s]:s,a=s,o.prefix=s):Kj.indexOf(s)>-1?(a=s,o.prefix=B0(s)):c?o.iconName=c:s!==X.replacementClass&&o.rest.push(s),!i&&o.prefix&&o.iconName){var l="fa"===a?Nm(o.iconName):{},C=I5(o.prefix,o.iconName);l.prefix&&(a=null),o.iconName=l.iconName||C||o.iconName,o.prefix=l.prefix||o.prefix,"far"===o.prefix&&!d8.far&&d8.fas&&!X.autoFetchSvg&&(o.prefix="fas")}return o},{prefix:null,iconName:null,rest:[]});return("fa"===r.prefix||"fa"===a)&&(r.prefix=Pe()||"fas"),r}(function Ej(t){R0.push(t)})(function(t){f9=B0(t.styleDefault)}),xm();var Xj=function(){function t(){(function cj(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")})(this,t),this.definitions={}}return function lj(t,n,e){n&&tm(t.prototype,n),e&&tm(t,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"add",value:function(){for(var e=this,i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];var o=a.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(s){e.definitions[s]=Y(Y({},e.definitions[s]||{}),o[s]),C9(s,o[s]);var c=pm[s];c&&C9(c,o[s]),xm()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,i){var a=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(a).map(function(r){var o=a[r],s=o.prefix,c=o.iconName,l=o.icon,C=l[2];e[s]||(e[s]={}),C.length>0&&C.forEach(function(f){"string"==typeof f&&(e[s][f]=l)}),e[s][c]=l}),e}}]),t}(),Tm=[],O5={},R5={},e$=Object.keys(R5);function h9(t,n){for(var e=arguments.length,i=new Array(e>2?e-2:0),a=2;a<e;a++)i[a-2]=arguments[a];var r=O5[t]||[];return r.forEach(function(o){n=o.apply(null,[n].concat(i))}),n}function _6(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];var a=O5[t]||[];a.forEach(function(r){r.apply(null,e)})}function fe(){var t=arguments[0],n=Array.prototype.slice.call(arguments,1);return R5[t]?R5[t].apply(null,n):void 0}function p9(t){"fa"===t.prefix&&(t.prefix="fas");var n=t.iconName,e=t.prefix||Pe();if(n)return n=I5(e,n)||n,bm(Em.definitions,e,n)||bm(H4.styles,e,n)}var Em=new Xj,i$={i2svg:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce?(_6("beforeI2svg",n),fe("pseudoElements2svg",n),fe("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot;!1===X.autoReplaceSvg&&(X.autoReplaceSvg=!0),X.observeMutations=!0,Uj(function(){r$({autoReplaceSvgRoot:e}),_6("watch",n)})}},j3={noAuto:function(){X.autoReplaceSvg=!1,X.observeMutations=!1,_6("noAuto")},config:X,dom:i$,parse:{icon:function(n){if(null===n)return null;if("object"===E0(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:I5(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var e=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=B0(n[0]);return{prefix:i,iconName:I5(i,e)||e}}if("string"==typeof n&&(n.indexOf("".concat(X.familyPrefix,"-"))>-1||n.match(bj))){var a=U0(n.split(" "),{skipLookups:!0});return{prefix:a.prefix||Pe(),iconName:I5(a.prefix,a.iconName)||a.iconName}}if("string"==typeof n){var r=Pe();return{prefix:r,iconName:I5(r,n)||n}}}},library:Em,findIconDefinition:p9,toHtml:u8},r$=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot,i=void 0===e?r1:e;(Object.keys(H4.styles).length>0||X.autoFetchSvg)&&ce&&X.autoReplaceSvg&&j3.dom.i2svg({node:i})};function G0(t,n){return Object.defineProperty(t,"abstract",{get:n}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(i){return u8(i)})}}),Object.defineProperty(t,"node",{get:function(){if(ce){var i=r1.createElement("div");return i.innerHTML=t.html,i.children}}}),t}function g9(t){var n=t.icons,e=n.main,i=n.mask,a=t.prefix,r=t.iconName,o=t.transform,s=t.symbol,c=t.title,l=t.maskId,C=t.titleId,f=t.extra,h=t.watchable,m=void 0!==h&&h,V=i.found?i:e,H=V.width,S=V.height,x="fak"===a,w=[X.replacementClass,r?"".concat(X.familyPrefix,"-").concat(r):""].filter(function(B2){return-1===f.classes.indexOf(B2)}).filter(function(B2){return""!==B2||!!B2}).concat(f.classes).join(" "),I={children:[],attributes:Y(Y({},f.attributes),{},{"data-prefix":a,"data-icon":r,class:w,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(H," ").concat(S)})},U=x&&!~f.classes.indexOf("fa-fw")?{width:"".concat(H/S*16*.0625,"em")}:{};m&&(I.attributes[m6]=""),c&&(I.children.push({tag:"title",attributes:{id:I.attributes["aria-labelledby"]||"title-".concat(C||f8())},children:[c]}),delete I.attributes.title);var j=Y(Y({},I),{},{prefix:a,iconName:r,main:e,mask:i,maskId:l,transform:o,symbol:s,styles:Y(Y({},U),f.styles)}),J=i.found&&e.found?fe("generateAbstractMask",j)||{children:[],attributes:{}}:fe("generateAbstractIcon",j)||{children:[],attributes:{}},m2=J.attributes;return j.children=J.children,j.attributes=m2,s?function s$(t){var e=t.iconName,i=t.children,a=t.attributes,r=t.symbol,o=!0===r?"".concat(t.prefix,"-").concat(X.familyPrefix,"-").concat(e):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Y(Y({},a),{},{id:o}),children:i}]}]}(j):function o$(t){var n=t.children,e=t.main,i=t.mask,a=t.attributes,r=t.styles,o=t.transform;if(o9(o)&&e.found&&!i.found){var l={x:e.width/e.height/2,y:.5};a.style=P0(Y(Y({},r),{},{"transform-origin":"".concat(l.x+o.x/16,"em ").concat(l.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:n}]}(j)}function Am(t){var n=t.content,e=t.width,i=t.height,a=t.transform,r=t.title,o=t.extra,s=t.watchable,c=void 0!==s&&s,l=Y(Y(Y({},o.attributes),r?{title:r}:{}),{},{class:o.classes.join(" ")});c&&(l[m6]="");var C=Y({},o.styles);o9(a)&&(C.transform=function Rj(t){var n=t.transform,e=t.width,a=t.height,r=void 0===a?16:a,o=t.startCentered,s=void 0!==o&&o,c="";return c+=s&&Cm?"translate(".concat(n.x/16-(void 0===e?16:e)/2,"em, ").concat(n.y/16-r/2,"em) "):s?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(c+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:a,startCentered:!0,width:e,height:i}),C["-webkit-transform"]=C.transform);var f=P0(C);f.length>0&&(l.style=f);var h=[];return h.push({tag:"span",attributes:l,children:[n]}),r&&h.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),h}function c$(t){var n=t.content,e=t.title,i=t.extra,a=Y(Y(Y({},i.attributes),e?{title:e}:{}),{},{class:i.classes.join(" ")}),r=P0(i.styles);r.length>0&&(a.style=r);var o=[];return o.push({tag:"span",attributes:a,children:[n]}),e&&o.push({tag:"span",attributes:{class:"sr-only"},children:[e]}),o}var m9=H4.styles;function v9(t){var n=t[0],e=t[1],r=Zo(t.slice(4),1)[0];return{found:!0,width:n,height:e,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(X.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("primary"),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var l$={found:!1,width:512,height:512};function _9(t,n){var e=n;return"fa"===n&&null!==X.styleDefault&&(n=Pe()),new Promise(function(i,a){if(fe("missingIconAbstract"),"fa"===e){var o=Nm(t)||{};t=o.iconName||t,n=o.prefix||n}if(t&&n&&m9[n]&&m9[n][t])return i(v9(m9[n][t]));(function C$(t,n){!hm&&!X.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(n,'" is missing.'))})(t,n),i(Y(Y({},l$),{},{icon:X.showMissingIcons&&t&&fe("missingIconAbstract")||{}}))})}var km=function(){},M9=X.measurePerformance&&I0&&I0.mark&&I0.measure?I0:{mark:km,measure:km},h8='FA "6.1.1"',y9_begin=function(n){return M9.mark("".concat(h8," ").concat(n," begins")),function(){return function(n){M9.mark("".concat(h8," ").concat(n," ends")),M9.measure("".concat(h8," ").concat(n),"".concat(h8," ").concat(n," begins"),"".concat(h8," ").concat(n," ends"))}(n)}},j0=function(){};function Om(t){return"string"==typeof(t.getAttribute?t.getAttribute(m6):null)}function p$(t){return r1.createElementNS("http://www.w3.org/2000/svg",t)}function g$(t){return r1.createElement(t)}function Rm(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.ceFn,i=void 0===e?"svg"===t.tag?p$:g$:e;if("string"==typeof t)return r1.createTextNode(t);var a=i(t.tag);Object.keys(t.attributes||[]).forEach(function(o){a.setAttribute(o,t.attributes[o])});var r=t.children||[];return r.forEach(function(o){a.appendChild(Rm(o,{ceFn:i}))}),a}var $0={replace:function(n){var e=n[0];if(e.parentNode)if(n[1].forEach(function(a){e.parentNode.insertBefore(Rm(a),e)}),null===e.getAttribute(m6)&&X.keepOriginalSource){var i=r1.createComment(function m$(t){var n=" ".concat(t.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(e));e.parentNode.replaceChild(i,e)}else e.remove()},nest:function(n){var e=n[0],i=n[1];if(~r9(e).indexOf(X.replacementClass))return $0.replace(n);var a=new RegExp("".concat(X.familyPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var r=i[0].attributes.class.split(" ").reduce(function(s,c){return c===X.replacementClass||c.match(a)?s.toSvg.push(c):s.toNode.push(c),s},{toNode:[],toSvg:[]});i[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?e.removeAttribute("class"):e.setAttribute("class",r.toNode.join(" "))}var o=i.map(function(s){return u8(s)}).join("\n");e.setAttribute(m6,""),e.innerHTML=o}};function Pm(t){t()}function Fm(t,n){var e="function"==typeof n?n:j0;if(0===t.length)e();else{var i=Pm;"async"===X.mutateApproach&&(i=Oe.requestAnimationFrame||Pm),i(function(){var a=function h$(){return!0===X.autoReplaceSvg?$0.replace:$0[X.autoReplaceSvg]||$0.replace}(),r=y9_begin("mutate");t.map(a),r(),e()})}}var L9=!1;function Bm(){L9=!0}function b9(){L9=!1}var W0=null;function Um(t){if(lm&&X.observeMutations){var n=t.treeCallback,e=void 0===n?j0:n,i=t.nodeCallback,a=void 0===i?j0:i,r=t.pseudoElementsCallback,o=void 0===r?j0:r,s=t.observeMutationsRoot,c=void 0===s?r1:s;W0=new lm(function(l){if(!L9){var C=Pe();k5(l).forEach(function(f){if("childList"===f.type&&f.addedNodes.length>0&&!Om(f.addedNodes[0])&&(X.searchPseudoElements&&o(f.target),e(f.target)),"attributes"===f.type&&f.target.parentNode&&X.searchPseudoElements&&o(f.target.parentNode),"attributes"===f.type&&Om(f.target)&&~zj.indexOf(f.attributeName))if("class"===f.attributeName&&function u$(t){var n=t.getAttribute?t.getAttribute(n9):null,e=t.getAttribute?t.getAttribute(i9):null;return n&&e}(f.target)){var h=U0(r9(f.target)),V=h.iconName;f.target.setAttribute(n9,h.prefix||C),V&&f.target.setAttribute(i9,V)}else(function d$(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(X.replacementClass)})(f.target)&&a(f.target)})}}),ce&&W0.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function _$(t){var n=t.getAttribute("style"),e=[];return n&&(e=n.split(";").reduce(function(i,a){var r=a.split(":"),o=r[0],s=r.slice(1);return o&&s.length>0&&(i[o]=s.join(":").trim()),i},{})),e}function M$(t){var n=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",a=U0(r9(t));return a.prefix||(a.prefix=Pe()),n&&e&&(a.prefix=n,a.iconName=e),a.iconName&&a.prefix||a.prefix&&i.length>0&&(a.iconName=function Zj(t,n){return(wm[t]||{})[n]}(a.prefix,t.innerText)||u9(a.prefix,l9(t.innerText))),a}function y$(t){var n=k5(t.attributes).reduce(function(a,r){return"class"!==a.name&&"style"!==a.name&&(a[r.name]=r.value),a},{}),e=t.getAttribute("title"),i=t.getAttribute("data-fa-title-id");return X.autoA11y&&(e?n["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(i||f8()):(n["aria-hidden"]="true",n.focusable="false")),n}function Gm(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},e=M$(t),i=e.iconName,a=e.prefix,r=e.rest,o=y$(t),s=h9("parseNodeAttributes",{},t),c=n.styleParser?_$(t):[];return Y({iconName:i,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:a,transform:G4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:c,attributes:o}},s)}var b$=H4.styles;function jm(t){var n="nest"===X.autoReplaceSvg?Gm(t,{styleParser:!1}):Gm(t);return~n.extra.classes.indexOf(gm)?fe("generateLayersText",t,n):fe("generateSvgReplacementMutation",t,n)}function $m(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ce)return Promise.resolve();var e=r1.documentElement.classList,i=function(f){return e.add("".concat(dm,"-").concat(f))},a=function(f){return e.remove("".concat(dm,"-").concat(f))},r=Object.keys(X.autoFetchSvg?a9:b$),o=[".".concat(gm,":not([").concat(m6,"])")].concat(r.map(function(C){return".".concat(C,":not([").concat(m6,"])")})).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=k5(t.querySelectorAll(o))}catch(C){}if(!(s.length>0))return Promise.resolve();i("pending"),a("complete");var c=y9_begin("onTree"),l=s.reduce(function(C,f){try{var h=jm(f);h&&C.push(h)}catch(m){hm||"MissingIcon"===m.name&&console.error(m)}return C},[]);return new Promise(function(C,f){Promise.all(l).then(function(h){Fm(h,function(){i("active"),i("complete"),a("pending"),"function"==typeof n&&n(),c(),C()})}).catch(function(h){c(),f(h)})})}function V$(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;jm(t).then(function(e){e&&Fm([e],n)})}var w$=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.transform,a=void 0===i?G4:i,r=e.symbol,o=void 0!==r&&r,s=e.mask,c=void 0===s?null:s,l=e.maskId,C=void 0===l?null:l,f=e.title,h=void 0===f?null:f,m=e.titleId,V=void 0===m?null:m,H=e.classes,S=void 0===H?[]:H,x=e.attributes,w=void 0===x?{}:x,I=e.styles,U=void 0===I?{}:I;if(n){var j=n.prefix,J=n.iconName,u2=n.icon;return G0(Y({type:"icon"},n),function(){return _6("beforeDOMElementCreation",{iconDefinition:n,params:e}),X.autoA11y&&(h?w["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(V||f8()):(w["aria-hidden"]="true",w.focusable="false")),g9({icons:{main:v9(u2),mask:c?v9(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:j,iconName:J,transform:Y(Y({},G4),a),symbol:o,title:h,maskId:C,titleId:V,extra:{attributes:w,styles:U,classes:S}})})}},z$={mixout:function(){return{icon:(t=w$,function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:p9(n||{}),a=e.mask;return a&&(a=(a||{}).icon?a:p9(a||{})),t(i,Y(Y({},e),{},{mask:a}))})};var t},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=$m,e.nodeCallback=V$,e}}},provides:function(n){n.i2svg=function(e){var i=e.node,r=e.callback;return $m(void 0===i?r1:i,void 0===r?function(){}:r)},n.generateSvgReplacementMutation=function(e,i){var a=i.iconName,r=i.title,o=i.titleId,s=i.prefix,c=i.transform,l=i.symbol,C=i.mask,f=i.maskId,h=i.extra;return new Promise(function(m,V){Promise.all([_9(a,s),C.iconName?_9(C.iconName,C.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(H){var S=Zo(H,2);m([e,g9({icons:{main:S[0],mask:S[1]},prefix:s,iconName:a,transform:c,symbol:l,maskId:f,title:r,titleId:o,extra:h,watchable:!0})])}).catch(V)})},n.generateAbstractIcon=function(e){var l,i=e.children,a=e.attributes,r=e.main,o=e.transform,c=P0(e.styles);return c.length>0&&(a.style=c),o9(o)&&(l=fe("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),i.push(l||r.icon),{children:i,attributes:a}}}},S$={mixout:function(){return{layer:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.classes,r=void 0===a?[]:a;return G0({type:"layer"},function(){_6("beforeDOMElementCreation",{assembler:e,params:i});var o=[];return e(function(s){Array.isArray(s)?s.map(function(c){o=o.concat(c.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(X.familyPrefix,"-layers")].concat(k0(r)).join(" ")},children:o}]})}}}},D$={mixout:function(){return{counter:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.title,r=void 0===a?null:a,o=i.classes,s=void 0===o?[]:o,c=i.attributes,l=void 0===c?{}:c,C=i.styles,f=void 0===C?{}:C;return G0({type:"counter",content:e},function(){return _6("beforeDOMElementCreation",{content:e,params:i}),c$({content:e.toString(),title:r,extra:{attributes:l,styles:f,classes:["".concat(X.familyPrefix,"-layers-counter")].concat(k0(s))}})})}}}},x$={mixout:function(){return{text:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.transform,r=void 0===a?G4:a,o=i.title,s=void 0===o?null:o,c=i.classes,l=void 0===c?[]:c,C=i.attributes,f=void 0===C?{}:C,h=i.styles,m=void 0===h?{}:h;return G0({type:"text",content:e},function(){return _6("beforeDOMElementCreation",{content:e,params:i}),Am({content:e,transform:Y(Y({},G4),r),title:s,extra:{attributes:f,styles:m,classes:["".concat(X.familyPrefix,"-layers-text")].concat(k0(l))}})})}}},provides:function(n){n.generateLayersText=function(e,i){var a=i.title,r=i.transform,o=i.extra,s=null,c=null;if(Cm){var l=parseInt(getComputedStyle(e).fontSize,10),C=e.getBoundingClientRect();s=C.width/l,c=C.height/l}return X.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,Am({content:e.innerHTML,width:s,height:c,transform:r,title:a,extra:o,watchable:!0})])}}},N$=new RegExp('"',"ug"),Wm=[1105920,1112319];function qm(t,n){var e="".concat("data-fa-pseudo-element-pending").concat(n.replace(":","-"));return new Promise(function(i,a){if(null!==t.getAttribute(e))return i();var o=k5(t.children).filter(function(J){return J.getAttribute(t9)===n})[0],s=Oe.getComputedStyle(t,n),c=s.getPropertyValue("font-family").match(Vj),l=s.getPropertyValue("font-weight"),C=s.getPropertyValue("content");if(o&&!c)return t.removeChild(o),i();if(c&&"none"!==C&&""!==C){var f=s.getPropertyValue("content"),h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?O0[c[2].toLowerCase()]:Hj[l],m=function T$(t){var n=t.replace(N$,""),e=function $j(t,n){var a,e=t.length,i=t.charCodeAt(n);return i>=55296&&i<=56319&&e>n+1&&(a=t.charCodeAt(n+1))>=56320&&a<=57343?1024*(i-55296)+a-56320+65536:i}(n,0),i=e>=Wm[0]&&e<=Wm[1],a=2===n.length&&n[0]===n[1];return{value:l9(a?n[0]:n),isSecondary:i||a}}(f),V=m.value,H=m.isSecondary,S=c[0].startsWith("FontAwesome"),x=u9(h,V),w=x;if(S){var I=function Jj(t){var n=Sm[t],e=u9("fas",t);return n||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}(V);I.iconName&&I.prefix&&(x=I.iconName,h=I.prefix)}if(!x||H||o&&o.getAttribute(n9)===h&&o.getAttribute(i9)===w)i();else{t.setAttribute(e,w),o&&t.removeChild(o);var U=function L$(){return{iconName:null,title:null,titleId:null,prefix:null,transform:G4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),j=U.extra;j.attributes[t9]=n,_9(x,h).then(function(J){var u2=g9(Y(Y({},U),{},{icons:{main:J,mask:{prefix:null,iconName:null,rest:[]}},prefix:h,iconName:w,extra:j,watchable:!0})),m2=r1.createElement("svg");"::before"===n?t.insertBefore(m2,t.firstChild):t.appendChild(m2),m2.outerHTML=u2.map(function(B2){return u8(B2)}).join("\n"),t.removeAttribute(e),i()}).catch(a)}}else i()})}function E$(t){return Promise.all([qm(t,"::before"),qm(t,"::after")])}function A$(t){return!(t.parentNode===document.head||~yj.indexOf(t.tagName.toUpperCase())||t.getAttribute(t9)||t.parentNode&&"svg"===t.parentNode.tagName)}function Km(t){if(ce)return new Promise(function(n,e){var i=k5(t.querySelectorAll("*")).filter(A$).map(E$),a=y9_begin("searchPseudoElements");Bm(),Promise.all(i).then(function(){a(),b9(),n()}).catch(function(){a(),b9(),e()})})}var Ym=!1,Qm=function(n){return n.toLowerCase().split(" ").reduce(function(i,a){var r=a.toLowerCase().split("-"),o=r[0],s=r.slice(1).join("-");if(o&&"h"===s)return i.flipX=!0,i;if(o&&"v"===s)return i.flipY=!0,i;if(s=parseFloat(s),isNaN(s))return i;switch(o){case"grow":i.size=i.size+s;break;case"shrink":i.size=i.size-s;break;case"left":i.x=i.x-s;break;case"right":i.x=i.x+s;break;case"up":i.y=i.y-s;break;case"down":i.y=i.y+s;break;case"rotate":i.rotate=i.rotate+s}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},V9={x:0,y:0,width:"100%",height:"100%"};function Zm(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||n)&&(t.attributes.fill="black"),t}!function t$(t,n){var e=n.mixoutsTo;Tm=t,O5={},Object.keys(R5).forEach(function(i){-1===e$.indexOf(i)&&delete R5[i]}),Tm.forEach(function(i){var a=i.mixout?i.mixout():{};if(Object.keys(a).forEach(function(o){"function"==typeof a[o]&&(e[o]=a[o]),"object"===E0(a[o])&&Object.keys(a[o]).forEach(function(s){e[o]||(e[o]={}),e[o][s]=a[o][s]})}),i.hooks){var r=i.hooks();Object.keys(r).forEach(function(o){O5[o]||(O5[o]=[]),O5[o].push(r[o])})}i.provides&&i.provides(R5)})}([Fj,z$,S$,D$,x$,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Km,e}}},provides:function(n){n.pseudoElements2svg=function(e){var i=e.node;X.searchPseudoElements&&Km(void 0===i?r1:i)}}},{mixout:function(){return{dom:{unwatch:function(){Bm(),Ym=!0}}}},hooks:function(){return{bootstrap:function(){Um(h9("mutationObserverCallbacks",{}))},noAuto:function(){!function v$(){!W0||W0.disconnect()}()},watch:function(e){var i=e.observeMutationsRoot;Ym?b9():Um(h9("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(e){return Qm(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,i){var a=i.getAttribute("data-fa-transform");return a&&(e.transform=Qm(a)),e}}},provides:function(n){n.generateAbstractTransformGrouping=function(e){var i=e.main,a=e.transform,o=e.iconWidth,s={transform:"translate(".concat(e.containerWidth/2," 256)")},c="translate(".concat(32*a.x,", ").concat(32*a.y,") "),l="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),C="rotate(".concat(a.rotate," 0 0)"),m={outer:s,inner:{transform:"".concat(c," ").concat(l," ").concat(C)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:Y({},m.outer),children:[{tag:"g",attributes:Y({},m.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:Y(Y({},i.icon.attributes),m.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,i){var a=i.getAttribute("data-fa-mask"),r=a?U0(a.split(" ").map(function(o){return o.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Pe()),e.mask=r,e.maskId=i.getAttribute("data-fa-mask-id"),e}}},provides:function(n){n.generateAbstractMask=function(e){var t,i=e.children,a=e.attributes,r=e.main,o=e.mask,s=e.maskId,C=r.icon,h=o.icon,m=function Oj(t){var n=t.transform,i=t.iconWidth,a={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*n.x,", ").concat(32*n.y,") "),o="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(r," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:e.transform,containerWidth:o.width,iconWidth:r.width}),V={tag:"rect",attributes:Y(Y({},V9),{},{fill:"white"})},H=C.children?{children:C.children.map(Zm)}:{},S={tag:"g",attributes:Y({},m.inner),children:[Zm(Y({tag:C.tag,attributes:Y(Y({},C.attributes),m.path)},H))]},x={tag:"g",attributes:Y({},m.outer),children:[S]},w="mask-".concat(s||f8()),I="clip-".concat(s||f8()),U={tag:"mask",attributes:Y(Y({},V9),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[V,x]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:I},children:(t=h,"g"===t.tag?t.children:[t])},U]};return i.push(j,{tag:"rect",attributes:Y({fill:"currentColor","clip-path":"url(#".concat(I,")"),mask:"url(#".concat(w,")")},V9)}),{children:i,attributes:a}}}},{provides:function(n){var e=!1;Oe.matchMedia&&(e=Oe.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],a={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:Y(Y({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Y(Y({},r),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Y(Y({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||s.children.push({tag:"animate",attributes:Y(Y({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;1;1;0;1;"})}),i.push(s),i.push({tag:"path",attributes:Y(Y({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;0;0;0;1;"})}]}),e||i.push({tag:"path",attributes:Y(Y({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Y(Y({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},{hooks:function(){return{parseNodeAttributes:function(e,i){var a=i.getAttribute("data-fa-symbol");return e.symbol=null!==a&&(""===a||a),e}}}}],{mixoutsTo:j3});var G$=j3.parse,j$=j3.icon;const $$=["*"],K$=t=>{const n={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,[`fa-${t.size}`]:null!==t.size,[`fa-rotate-${t.rotate}`]:null!==t.rotate,[`fa-pull-${t.pull}`]:null!==t.pull,[`fa-stack-${t.stackItemSize}`]:null!=t.stackItemSize};return Object.keys(n).map(e=>n[e]?e:null).filter(e=>e)};let Z$=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),J$=(()=>{class t{constructor(){this.definitions={}}addIcons(...e){for(const i of e){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const a of i.icon[2])"string"==typeof a&&(this.definitions[i.prefix][a]=i)}}addIconPacks(...e){for(const i of e){const a=Object.keys(i).map(r=>i[r]);this.addIcons(...a)}}getIconDefinition(e,i){return e in this.definitions&&i in this.definitions[e]?this.definitions[e][i]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),X$=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(e){if("size"in e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=G({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[H1]}),t})(),eW=(()=>{class t{constructor(e,i){this.renderer=e,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(e){"size"in e&&(null!=e.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${e.size.currentValue}`),null!=e.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${e.size.previousValue}`))}}return t.\u0275fac=function(e){return new(e||t)(b(d3),b(A2))},t.\u0275cmp=n2({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[H1],ngContentSelectors:$$,decls:1,vars:0,template:function(e,i){1&e&&(u5(),d5(0))},encapsulation:2}),t})(),H9=(()=>{class t{constructor(e,i,a,r,o){this.sanitizer=e,this.config=i,this.iconLibrary=a,this.stackItem=r,this.classes=[],null!=o&&null==r&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(e){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let i=null;if(i=null==this.icon?this.config.fallbackIcon:this.icon,e){const a=this.findIconDefinition(i);if(null!=a){const r=this.buildParams();this.renderIcon(a,r)}}}render(){this.ngOnChanges({})}findIconDefinition(e){const i=((t,n)=>(t=>void 0!==t.prefix&&void 0!==t.iconName)(t)?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:n,iconName:t}:void 0)(e,this.config.defaultPrefix);if("icon"in i)return i;const a=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return null!=a?a:((t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(i),null)}buildParams(){const e={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?G$.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...K$(e),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(e,i){const a=j$(e,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(b(bh),b(Z$),b(J$),b(X$,8),b(eW,8))},t.\u0275cmp=n2({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(e,i){2&e&&(v4("innerHTML",i.renderedIconHTML,wl),B("title",i.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[H1],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),tW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();function q0(t,n){const e=K(t)?t:()=>t,i=a=>a.error(e());return new k2(n?a=>n.schedule(i,0,a):i)}const K0=a3(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Jm(t){return new k2(n=>{s3(t()).subscribe(n)})}function Xm(){return c1((t,n)=>{let e=null;t._refCount++;const i=R2(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const a=t._connection,r=e;e=null,a&&(!r||a===r)&&a.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class nW extends k2{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Y5(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new H2;const e=this.getSubject();n.add(this.source.subscribe(R2(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=H2.EMPTY)}return n}refCount(){return Xm()(this)}}function iW(t,n,e,i,a){return(r,o)=>{let s=e,c=n,l=0;r.subscribe(R2(o,C=>{const f=l++;c=s?t(c,C,f):(s=!0,C),i&&o.next(c)},a&&(()=>{s&&o.next(c),o.complete()})))}}function ev(t,n){return c1(iW(t,n,arguments.length>=2,!0))}function Fe(t){return c1((n,e)=>{let r,i=null,a=!1;i=n.subscribe(R2(e,void 0,void 0,o=>{r=s3(t(o,Fe(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):a=!0})),a&&(i.unsubscribe(),i=null,r.subscribe(e))})}function p8(t,n){return K(n)?b1(t,n,1):b1(t,1)}function w9(t){return t<=0?()=>c4:c1((n,e)=>{let i=[];n.subscribe(R2(e,a=>{i.push(a),t<i.length&&i.shift()},()=>{for(const a of i)e.next(a);e.complete()},void 0,()=>{i=null}))})}function tv(t=aW){return c1((n,e)=>{let i=!1;n.subscribe(R2(e,a=>{i=!0,e.next(a)},()=>i?e.complete():e.error(t())))})}function aW(){return new K0}function nv(t){return c1((n,e)=>{let i=!1;n.subscribe(R2(e,a=>{i=!0,e.next(a)},()=>{i||e.next(t),e.complete()}))})}function P5(t,n){const e=arguments.length>=2;return i=>i.pipe(t?J1((a,r)=>t(a,r,i)):o4,Q1(1),e?nv(n):tv(()=>new K0))}class ue{constructor(n,e){this.id=n,this.url=e}}class Y0 extends ue{constructor(n,e,i="imperative",a=null){super(n,e),this.navigationTrigger=i,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class g8 extends ue{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class iv extends ue{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class sW extends ue{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class cW extends ue{constructor(n,e,i,a){super(n,e),this.urlAfterRedirects=i,this.state=a}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lW extends ue{constructor(n,e,i,a){super(n,e),this.urlAfterRedirects=i,this.state=a}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CW extends ue{constructor(n,e,i,a,r){super(n,e),this.urlAfterRedirects=i,this.state=a,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class fW extends ue{constructor(n,e,i,a){super(n,e),this.urlAfterRedirects=i,this.state=a}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uW extends ue{constructor(n,e,i,a){super(n,e),this.urlAfterRedirects=i,this.state=a}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class av{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class rv{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class dW{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hW{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pW{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gW{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ov{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const L2="primary";class mW{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function F5(t){return new mW(t)}const sv="ngNavigationCancelingError";function z9(t){const n=Error("NavigationCancelingError: "+t);return n[sv]=!0,n}function _W(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const a={};for(let r=0;r<i.length;r++){const o=i[r],s=t[r];if(o.startsWith(":"))a[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:t.slice(0,i.length),posParams:a}}function j4(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let a;for(let r=0;r<e.length;r++)if(a=e[r],!cv(t[a],n[a]))return!1;return!0}function cv(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((a,r)=>i[r]===a)}return t===n}function lv(t){return Array.prototype.concat.apply([],t)}function Cv(t){return t.length>0?t[t.length-1]:null}function X1(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function $4(t){return Or(t)?t:Dt(t)?$1(Promise.resolve(t)):s2(t)}const LW={exact:function dv(t,n,e){if(!y6(t.segments,n.segments)||!Q0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!dv(t.children[i],n.children[i],e))return!1;return!0},subset:hv},fv={exact:function bW(t,n){return j4(t,n)},subset:function VW(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>cv(t[e],n[e]))},ignored:()=>!0};function uv(t,n,e){return LW[e.paths](t.root,n.root,e.matrixParams)&&fv[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function hv(t,n,e){return pv(t,n,n.segments,e)}function pv(t,n,e,i){if(t.segments.length>e.length){const a=t.segments.slice(0,e.length);return!(!y6(a,e)||n.hasChildren()||!Q0(a,e,i))}if(t.segments.length===e.length){if(!y6(t.segments,e)||!Q0(t.segments,e,i))return!1;for(const a in n.children)if(!t.children[a]||!hv(t.children[a],n.children[a],i))return!1;return!0}{const a=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(y6(t.segments,a)&&Q0(t.segments,a,i)&&t.children[L2])&&pv(t.children[L2],n,r,i)}}function Q0(t,n,e){return n.every((i,a)=>fv[e](t[a].parameters,i.parameters))}class M6{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=F5(this.queryParams)),this._queryParamMap}toString(){return zW.serialize(this)}}class V2{constructor(n,e){this.segments=n,this.children=e,this.parent=null,X1(e,(i,a)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Z0(this)}}class m8{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=F5(this.parameters)),this._parameterMap}toString(){return Mv(this)}}function y6(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class gv{}class mv{parse(n){const e=new IW(n);return new M6(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${v8(n.root,!0)}`,i=function xW(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(a=>`${J0(e)}=${J0(a)}`).join("&"):`${J0(e)}=${J0(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function SW(t){return encodeURI(t)}(n.fragment)}`:""}`}}const zW=new mv;function Z0(t){return t.segments.map(n=>Mv(n)).join("/")}function v8(t,n){if(!t.hasChildren())return Z0(t);if(n){const e=t.children[L2]?v8(t.children[L2],!1):"",i=[];return X1(t.children,(a,r)=>{r!==L2&&i.push(`${r}:${v8(a,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function wW(t,n){let e=[];return X1(t.children,(i,a)=>{a===L2&&(e=e.concat(n(i,a)))}),X1(t.children,(i,a)=>{a!==L2&&(e=e.concat(n(i,a)))}),e}(t,(i,a)=>a===L2?[v8(t.children[L2],!1)]:[`${a}:${v8(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[L2]?`${Z0(t)}/${e[0]}`:`${Z0(t)}/(${e.join("//")})`}}function vv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function J0(t){return vv(t).replace(/%3B/gi,";")}function S9(t){return vv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function X0(t){return decodeURIComponent(t)}function _v(t){return X0(t.replace(/\+/g,"%20"))}function Mv(t){return`${S9(t.path)}${function DW(t){return Object.keys(t).map(n=>`;${S9(n)}=${S9(t[n])}`).join("")}(t.parameters)}`}const NW=/^[^\/()?;=#]+/;function ei(t){const n=t.match(NW);return n?n[0]:""}const TW=/^[^=?&#]+/,AW=/^[^&#]+/;class IW{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new V2([],{}):new V2([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[L2]=new V2(n,e)),i}parseSegment(){const n=ei(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new m8(X0(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=ei(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=ei(this.remaining);a&&(i=a,this.capture(i))}n[X0(e)]=X0(i)}parseQueryParam(n){const e=function EW(t){const n=t.match(TW);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function kW(t){const n=t.match(AW);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const a=_v(e),r=_v(i);if(n.hasOwnProperty(a)){let o=n[a];Array.isArray(o)||(o=[o],n[a]=o),o.push(r)}else n[a]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=ei(this.remaining),a=this.remaining[i.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=L2);const o=this.parseChildren();e[r]=1===Object.keys(o).length?o[L2]:new V2([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class yv{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=D9(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=D9(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=x9(n,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==n)}pathFromRoot(n){return x9(n,this._root).map(e=>e.value)}}function D9(t,n){if(t===n.value)return n;for(const e of n.children){const i=D9(t,e);if(i)return i}return null}function x9(t,n){if(t===n.value)return[n];for(const e of n.children){const i=x9(t,e);if(i.length)return i.unshift(n),i}return[]}class de{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function B5(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class Lv extends yv{constructor(n,e){super(n),this.snapshot=e,N9(this,n)}toString(){return this.snapshot.toString()}}function bv(t,n){const e=function OW(t,n){const o=new ti([],{},{},"",{},L2,n,null,t.root,-1,{});return new Hv("",new de(o,[]))}(t,n),i=new q1([new m8("",{})]),a=new q1({}),r=new q1({}),o=new q1({}),s=new q1(""),c=new he(i,a,o,s,r,L2,n,e.root);return c.snapshot=e.root,new Lv(new de(c,[]),e)}class he{constructor(n,e,i,a,r,o,s,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=c}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(v2(n=>F5(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(v2(n=>F5(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Vv(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const a=e[i],r=e[i-1];if(a.routeConfig&&""===a.routeConfig.path)i--;else{if(r.component)break;i--}}return function RW(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class ti{constructor(n,e,i,a,r,o,s,c,l,C,f){this.url=n,this.params=e,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=C,this._resolve=f}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=F5(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=F5(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Hv extends yv{constructor(n,e){super(e),this.url=n,N9(this,e)}toString(){return wv(this._root)}}function N9(t,n){n.value._routerState=t,n.children.forEach(e=>N9(t,e))}function wv(t){const n=t.children.length>0?` { ${t.children.map(wv).join(", ")} } `:"";return`${t.value}${n}`}function T9(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,j4(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),j4(n.params,e.params)||t.params.next(e.params),function MW(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!j4(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),j4(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function E9(t,n){const e=j4(t.params,n.params)&&function HW(t,n){return y6(t,n)&&t.every((e,i)=>j4(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||E9(t.parent,n.parent))}function _8(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const a=function FW(t,n,e){return n.children.map(i=>{for(const a of e.children)if(t.shouldReuseRoute(i.value,a.value.snapshot))return _8(t,i,a);return _8(t,i)})}(t,n,e);return new de(i,a)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const o=r.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(s=>_8(t,s)),o}}const i=function BW(t){return new he(new q1(t.url),new q1(t.params),new q1(t.queryParams),new q1(t.fragment),new q1(t.data),t.outlet,t.component,t)}(n.value),a=n.children.map(r=>_8(t,r));return new de(i,a)}}function ni(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function M8(t){return"object"==typeof t&&null!=t&&t.outlets}function A9(t,n,e,i,a){let r={};if(i&&X1(i,(s,c)=>{r[c]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),t===n)return new M6(e,r,a);const o=zv(t,n,e);return new M6(o,r,a)}function zv(t,n,e){const i={};return X1(t.children,(a,r)=>{i[r]=a===n?e:zv(a,n,e)}),new V2(t.segments,i)}class Sv{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ni(i[0]))throw new Error("Root segment cannot have matrix parameters");const a=i.find(M8);if(a&&a!==Cv(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class k9{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function Dv(t,n,e){if(t||(t=new V2([],{})),0===t.segments.length&&t.hasChildren())return ii(t,n,e);const i=function qW(t,n,e){let i=0,a=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;a<t.segments.length;){if(i>=e.length)return r;const o=t.segments[a],s=e[i];if(M8(s))break;const c=`${s}`,l=i<e.length-1?e[i+1]:null;if(a>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!Nv(c,l,o))return r;i+=2}else{if(!Nv(c,{},o))return r;i++}a++}return{match:!0,pathIndex:a,commandIndex:i}}(t,n,e),a=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const r=new V2(t.segments.slice(0,i.pathIndex),{});return r.children[L2]=new V2(t.segments.slice(i.pathIndex),t.children),ii(r,0,a)}return i.match&&0===a.length?new V2(t.segments,{}):i.match&&!t.hasChildren()?I9(t,n,e):i.match?ii(t,0,a):I9(t,n,e)}function ii(t,n,e){if(0===e.length)return new V2(t.segments,{});{const i=function WW(t){return M8(t[0])?t[0].outlets:{[L2]:t}}(e),a={};return X1(i,(r,o)=>{"string"==typeof r&&(r=[r]),null!==r&&(a[o]=Dv(t.children[o],n,r))}),X1(t.children,(r,o)=>{void 0===i[o]&&(a[o]=r)}),new V2(t.segments,a)}}function I9(t,n,e){const i=t.segments.slice(0,n);let a=0;for(;a<e.length;){const r=e[a];if(M8(r)){const c=KW(r.outlets);return new V2(i,c)}if(0===a&&ni(e[0])){i.push(new m8(t.segments[n].path,xv(e[0]))),a++;continue}const o=M8(r)?r.outlets[L2]:`${r}`,s=a<e.length-1?e[a+1]:null;o&&s&&ni(s)?(i.push(new m8(o,xv(s))),a+=2):(i.push(new m8(o,{})),a++)}return new V2(i,{})}function KW(t){const n={};return X1(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=I9(new V2([],{}),0,e))}),n}function xv(t){const n={};return X1(t,(e,i)=>n[i]=`${e}`),n}function Nv(t,n,e){return t==e.path&&j4(n,e.parameters)}class QW{constructor(n,e,i,a){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=a}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),T9(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const a=B5(e);n.children.forEach(r=>{const o=r.value.outlet;this.deactivateRoutes(r,a[o],i),delete a[o]}),X1(a,(r,o)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const a=n.value,r=e?e.value:null;if(a===r)if(a.component){const o=i.getContext(a.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),a=i&&n.value.component?i.children:e,r=B5(n);for(const o of Object.keys(r))this.deactivateRouteAndItsChildren(r[o],a);if(i&&i.outlet){const o=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),a=i&&n.value.component?i.children:e,r=B5(n);for(const o of Object.keys(r))this.deactivateRouteAndItsChildren(r[o],a);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const a=B5(e);n.children.forEach(r=>{this.activateRoutes(r,a[r.value.outlet],i),this.forwardEvent(new gW(r.value.snapshot))}),n.children.length&&this.forwardEvent(new hW(n.value.snapshot))}activateRoutes(n,e,i){const a=n.value,r=e?e.value:null;if(T9(a),a===r)if(a.component){const o=i.getOrCreateContext(a.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,i);else if(a.component){const o=i.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const s=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),T9(s.route.value),this.activateChildRoutes(n,null,o.children)}else{const s=function ZW(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(a.snapshot),c=s?s.module.componentFactoryResolver:null;o.attachRef=null,o.route=a,o.resolver=c,o.outlet&&o.outlet.activateWith(a,c),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}class O9{constructor(n,e){this.routes=n,this.module=e}}function Be(t){return"function"==typeof t}function L6(t){return t instanceof M6}const y8=Symbol("INITIAL_VALUE");function L8(){return re(t=>function bo(...t){const n=X5(t),e=B8(t),{args:i,keys:a}=Hh(t);if(0===i.length)return $1([],n);const r=new k2(function CF(t,n,e=o4){return i=>{kp(n,()=>{const{length:a}=t,r=new Array(a);let o=a,s=a;for(let c=0;c<a;c++)kp(n,()=>{const l=$1(t[c],n);let C=!1;l.subscribe(R2(i,f=>{r[c]=f,C||(C=!0,s--),s||i.next(e(r.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,n,a?o=>wh(a,o):o4));return e?r.pipe(J7(e)):r}(t.map(n=>n.pipe(Q1(1),function m0(...t){const n=X5(t);return c1((e,i)=>{(n?Jt(t,e,n):Jt(t,e)).subscribe(i)})}(y8)))).pipe(ev((n,e)=>{let i=!1;return e.reduce((a,r,o)=>a!==y8?a:(r===y8&&(i=!0),i||!1!==r&&o!==e.length-1&&!L6(r)?a:r),n)},y8),J1(n=>n!==y8),v2(n=>L6(n)?n:!0===n),Q1(1)))}class iq{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new b8,this.attachRef=null}}class b8{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new iq,this.contexts.set(n,e)),e}getContext(n){return this.contexts.get(n)||null}}let R9=(()=>{class t{constructor(e,i,a,r,o){this.parentContexts=e,this.location=i,this.resolver=a,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r2,this.deactivateEvents=new r2,this.attachEvents=new r2,this.detachEvents=new r2,this.name=r||L2,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,c=new aq(e,s,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,c),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(b(b8),b(P3),b(v5),function Qe(t){return function SD(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let a=0;for(;a<i;){const r=e[a];if(jc(r))break;if(0===r)a+=2;else if("number"==typeof r)for(a++;a<i&&"string"==typeof e[a];)a++;else{if(r===n)return e[a+1];a+=2}}}return null}(R1(),t)}("name"),b(F3))},t.\u0275dir=G({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class aq{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===he?this.route:n===b8?this.childContexts:this.parent.get(n,e)}}let Tv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&T(0,"router-outlet")},directives:[R9],encapsulation:2}),t})();function Ev(t,n=""){for(let e=0;e<t.length;e++){const i=t[e];rq(i,oq(n,i))}}function rq(t,n){t.children&&Ev(t.children,n)}function oq(t,n){return n?t||n.path?t&&!n.path?`${t}/`:!t&&n.path?n.path:`${t}/${n.path}`:"":t}function P9(t){const n=t.children&&t.children.map(P9),e=n?Object.assign(Object.assign({},t),{children:n}):Object.assign({},t);return!e.component&&(n||e.loadChildren)&&e.outlet&&e.outlet!==L2&&(e.component=Tv),e}function a4(t){return t.outlet||L2}function Av(t,n){const e=t.filter(i=>a4(i)===n);return e.push(...t.filter(i=>a4(i)!==n)),e}const kv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ai(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},kv):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||_W)(e,t,n);if(!r)return Object.assign({},kv);const o={};X1(r.posParams,(c,l)=>{o[l]=c.path});const s=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function ri(t,n,e,i,a="corrected"){if(e.length>0&&function lq(t,n,e){return e.some(i=>oi(t,n,i)&&a4(i)!==L2)}(t,e,i)){const o=new V2(n,function cq(t,n,e,i){const a={};a[L2]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&a4(r)!==L2){const o=new V2([],{});o._sourceSegment=t,o._segmentIndexShift=n.length,a[a4(r)]=o}return a}(t,n,i,new V2(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function Cq(t,n,e){return e.some(i=>oi(t,n,i))}(t,e,i)){const o=new V2(t.segments,function sq(t,n,e,i,a,r){const o={};for(const s of i)if(oi(t,e,s)&&!a[a4(s)]){const c=new V2([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===r?t.segments.length:n.length,o[a4(s)]=c}return Object.assign(Object.assign({},a),o)}(t,n,e,i,t.children,a));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new V2(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function oi(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function Iv(t,n,e,i){return!!(a4(t)===i||i!==L2&&oi(n,e,t))&&("**"===t.path||ai(n,t,e).matched)}function Ov(t,n,e){return 0===n.length&&!t.children[e]}class si{constructor(n){this.segmentGroup=n||null}}class Rv{constructor(n){this.urlTree=n}}function V8(t){return q0(new si(t))}function Pv(t){return q0(new Rv(t))}class hq{constructor(n,e,i,a,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=a,this.config=r,this.allowRedirects=!0,this.ngModule=n.get(te)}apply(){const n=ri(this.urlTree.root,[],[],this.config).segmentGroup,e=new V2(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,L2).pipe(v2(r=>this.createUrlTree(F9(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Fe(r=>{if(r instanceof Rv)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof si?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,L2).pipe(v2(a=>this.createUrlTree(F9(a),n.queryParams,n.fragment))).pipe(Fe(a=>{throw a instanceof si?this.noMatchError(a):a}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const a=n.segments.length>0?new V2([],{[L2]:n}):n;return new M6(a,e,i)}expandSegmentGroup(n,e,i,a){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(v2(r=>new V2([],r))):this.expandSegment(n,i,e,i.segments,a,!0)}expandChildren(n,e,i){const a=[];for(const r of Object.keys(i.children))"primary"===r?a.unshift(r):a.push(r);return $1(a).pipe(p8(r=>{const o=i.children[r],s=Av(e,r);return this.expandSegmentGroup(n,s,o,r).pipe(v2(c=>({segment:c,outlet:r})))}),ev((r,o)=>(r[o.outlet]=o.segment,r),{}),function rW(t,n){const e=arguments.length>=2;return i=>i.pipe(t?J1((a,r)=>t(a,r,i)):o4,w9(1),e?nv(n):tv(()=>new K0))}())}expandSegment(n,e,i,a,r,o){return $1(i).pipe(p8(s=>this.expandSegmentAgainstRoute(n,e,i,s,a,r,o).pipe(Fe(l=>{if(l instanceof si)return s2(null);throw l}))),P5(s=>!!s),Fe((s,c)=>{if(s instanceof K0||"EmptyError"===s.name)return Ov(e,a,r)?s2(new V2([],{})):V8(e);throw s}))}expandSegmentAgainstRoute(n,e,i,a,r,o,s){return Iv(a,e,r,o)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(n,e,a,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,a,r,o):V8(e):V8(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,a,r,o){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,a,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,a,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,a){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Pv(r):this.lineralizeSegments(i,r).pipe(b1(o=>{const s=new V2(o,{});return this.expandSegment(n,s,e,o,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,a,r,o){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:C}=ai(e,a,r);if(!s)return V8(e);const f=this.applyRedirectCommands(c,a.redirectTo,C);return a.redirectTo.startsWith("/")?Pv(f):this.lineralizeSegments(a,f).pipe(b1(h=>this.expandSegment(n,e,i,h.concat(l),o,!1)))}matchSegmentAgainstRoute(n,e,i,a,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?s2(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(v2(f=>(i._loadedConfig=f,new V2(a,{})))):s2(new V2(a,{}));const{matched:o,consumedSegments:s,remainingSegments:c}=ai(e,i,a);return o?this.getChildConfig(n,i,a).pipe(b1(C=>{const f=C.module,h=C.routes,{segmentGroup:m,slicedSegments:V}=ri(e,s,c,h),H=new V2(m.segments,m.children);if(0===V.length&&H.hasChildren())return this.expandChildren(f,h,H).pipe(v2(I=>new V2(s,I)));if(0===h.length&&0===V.length)return s2(new V2(s,{}));const S=a4(i)===r;return this.expandSegment(f,H,h,V,S?L2:r,!0).pipe(v2(w=>new V2(s.concat(w.segments),w.children)))})):V8(e)}getChildConfig(n,e,i){return e.children?s2(new O9(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?s2(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(b1(a=>a?this.configLoader.load(n.injector,e).pipe(v2(r=>(e._loadedConfig=r,r))):function uq(t){return q0(z9(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))}(e))):s2(new O9([],n))}runCanLoadGuards(n,e,i){const a=e.canLoad;return a&&0!==a.length?s2(a.map(o=>{const s=n.get(o);let c;if(function XW(t){return t&&Be(t.canLoad)}(s))c=s.canLoad(e,i);else{if(!Be(s))throw new Error("Invalid CanLoad guard");c=s(e,i)}return $4(c)})).pipe(L8(),g3(o=>{if(!L6(o))return;const s=z9(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw s.url=o,s}),v2(o=>!0===o)):s2(!0)}lineralizeSegments(n,e){let i=[],a=e.root;for(;;){if(i=i.concat(a.segments),0===a.numberOfChildren)return s2(i);if(a.numberOfChildren>1||!a.children[L2])return q0(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));a=a.children[L2]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,a){const r=this.createSegmentGroup(n,e.root,i,a);return new M6(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return X1(n,(a,r)=>{if("string"==typeof a&&a.startsWith(":")){const s=a.substring(1);i[r]=e[s]}else i[r]=a}),i}createSegmentGroup(n,e,i,a){const r=this.createSegments(n,e.segments,i,a);let o={};return X1(e.children,(s,c)=>{o[c]=this.createSegmentGroup(n,s,i,a)}),new V2(r,o)}createSegments(n,e,i,a){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,a):this.findOrReturn(r,i))}findPosParam(n,e,i){const a=i[e.path.substring(1)];if(!a)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return a}findOrReturn(n,e){let i=0;for(const a of e){if(a.path===n.path)return e.splice(i),a;i++}return n}}function F9(t){const n={};for(const i of Object.keys(t.children)){const r=F9(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function pq(t){if(1===t.numberOfChildren&&t.children[L2]){const n=t.children[L2];return new V2(t.segments.concat(n.segments),n.children)}return t}(new V2(t.segments,n))}class Fv{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class ci{constructor(n,e){this.component=n,this.route=e}}function mq(t,n,e){const i=t._root;return H8(i,n?n._root:null,e,[i.value])}function li(t,n,e){const i=function _q(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function H8(t,n,e,i,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=B5(n);return t.children.forEach(o=>{(function Mq(t,n,e,i,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const c=function yq(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!y6(t.url,n.url);case"pathParamsOrQueryParamsChange":return!y6(t.url,n.url)||!j4(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!E9(t,n)||!j4(t.queryParams,n.queryParams);default:return!E9(t,n)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Fv(i)):(r.data=o.data,r._resolvedData=o._resolvedData),H8(t,n,r.component?s?s.children:null:e,i,a),c&&s&&s.outlet&&s.outlet.isActivated&&a.canDeactivateChecks.push(new ci(s.outlet.component,o))}else o&&w8(n,s,a),a.canActivateChecks.push(new Fv(i)),H8(t,null,r.component?s?s.children:null:e,i,a)})(o,r[o.value.outlet],e,i.concat([o.value]),a),delete r[o.value.outlet]}),X1(r,(o,s)=>w8(o,e.getContext(s),a)),a}function w8(t,n,e){const i=B5(t),a=t.value;X1(i,(r,o)=>{w8(r,a.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new ci(a.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,a))}class xq{}function Bv(t){return new k2(n=>n.error(t))}class Tq{constructor(n,e,i,a,r,o){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const n=ri(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,L2);if(null===e)return null;const i=new ti([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},L2,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new de(i,e),r=new Hv(this.url,a);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(n){const e=n.value,i=Vv(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments,i)}processChildren(n,e){const i=[];for(const r of Object.keys(e.children)){const o=e.children[r],s=Av(n,r),c=this.processSegmentGroup(s,o,r);if(null===c)return null;i.push(...c)}const a=Uv(i);return function Eq(t){t.sort((n,e)=>n.value.outlet===L2?-1:e.value.outlet===L2?1:n.value.outlet.localeCompare(e.value.outlet))}(a),a}processSegment(n,e,i,a){for(const r of n){const o=this.processSegmentAgainstRoute(r,e,i,a);if(null!==o)return o}return Ov(e,i,a)?[]:null}processSegmentAgainstRoute(n,e,i,a){if(n.redirectTo||!Iv(n,e,i,a))return null;let r,o=[],s=[];if("**"===n.path){const m=i.length>0?Cv(i).parameters:{};r=new ti(i,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$v(n),a4(n),n.component,n,Gv(e),jv(e)+i.length,Wv(n))}else{const m=ai(e,n,i);if(!m.matched)return null;o=m.consumedSegments,s=m.remainingSegments,r=new ti(o,m.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$v(n),a4(n),n.component,n,Gv(e),jv(e)+o.length,Wv(n))}const c=function Aq(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:l,slicedSegments:C}=ri(e,o,s,c.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===C.length&&l.hasChildren()){const m=this.processChildren(c,l);return null===m?null:[new de(r,m)]}if(0===c.length&&0===C.length)return[new de(r,[])];const f=a4(n)===a,h=this.processSegment(c,l,C,f?L2:a);return null===h?null:[new de(r,h)]}}function kq(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function Uv(t){const n=[],e=new Set;for(const i of t){if(!kq(i)){n.push(i);continue}const a=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==a?(a.children.push(...i.children),e.add(a)):n.push(i)}for(const i of e){const a=Uv(i.children);n.push(new de(i.value,a))}return n.filter(i=>!e.has(i))}function Gv(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function jv(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function $v(t){return t.data||{}}function Wv(t){return t.resolve||{}}function qv(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function B9(t){return re(n=>{const e=t(n);return e?$1(e).pipe(v2(()=>n)):s2(n)})}class Gq extends class Uq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const U9=new _2("ROUTES");class Kv{constructor(n,e,i,a){this.injector=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=a}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const a=this.loadModuleFactory(e.loadChildren).pipe(v2(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=r.create(n);return new O9(lv(o.injector.get(U9,void 0,o2.Self|o2.Optional)).map(P9),o)}),Fe(r=>{throw e._loader$=void 0,r}));return e._loader$=new nW(a,()=>new d2).pipe(Xm()),e._loader$}loadModuleFactory(n){return $4(n()).pipe(b1(e=>e instanceof Uu?s2(e):$1(this.compiler.compileModuleAsync(e))))}}class $q{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function Wq(t){throw t}function qq(t,n,e){return n.parse("/")}function Yv(t,n){return s2(null)}const Kq={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Yq={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let e3=(()=>{class t{constructor(e,i,a,r,o,s,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=a,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new d2,this.errorHandler=Wq,this.malformedUriErrorHandler=qq,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Yv,afterPreactivation:Yv},this.urlHandlingStrategy=new $q,this.routeReuseStrategy=new Gq,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(te),this.console=o.get(Jk);const f=o.get(F2);this.isNgZoneEnabled=f instanceof F2&&F2.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=function yW(){return new M6(new V2([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Kv(o,s,h=>this.triggerEvent(new av(h)),h=>this.triggerEvent(new rv(h))),this.routerState=bv(this.currentUrlTree,this.rootComponentType),this.transitions=new q1({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(J1(a=>0!==a.id),v2(a=>Object.assign(Object.assign({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),re(a=>{let r=!1,o=!1;return s2(a).pipe(g3(s=>{this.currentNavigation={id:s.id,initialUrl:s.currentRawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),re(s=>{const c=this.browserUrlTree.toString(),l=!this.navigated||s.extractedUrl.toString()!==c||c!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Qv(s.source)&&(this.browserUrlTree=s.extractedUrl),s2(s).pipe(re(f=>{const h=this.transitions.getValue();return i.next(new Y0(f.id,this.serializeUrl(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions.getValue()?c4:Promise.resolve(f)}),function gq(t,n,e,i){return re(a=>function dq(t,n,e,i,a){return new hq(t,n,e,i,a).apply()}(t,n,e,a.extractedUrl,i).pipe(v2(r=>Object.assign(Object.assign({},a),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),g3(f=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:f.urlAfterRedirects})}),function Iq(t,n,e,i,a){return b1(r=>function Nq(t,n,e,i,a="emptyOnly",r="legacy"){try{const o=new Tq(t,n,e,i,a,r).recognize();return null===o?Bv(new xq):s2(o)}catch(o){return Bv(o)}}(t,n,r.urlAfterRedirects,e(r.urlAfterRedirects),i,a).pipe(v2(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,f=>this.serializeUrl(f),this.paramsInheritanceStrategy,this.relativeLinkResolution),g3(f=>{if("eager"===this.urlUpdateStrategy){if(!f.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl);this.setBrowserUrl(m,f)}this.browserUrlTree=f.urlAfterRedirects}const h=new cW(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.next(h)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:m,source:V,restoredState:H,extras:S}=s,x=new Y0(h,this.serializeUrl(m),V,H);i.next(x);const w=bv(m,this.rootComponentType).snapshot;return s2(Object.assign(Object.assign({},s),{targetSnapshot:w,urlAfterRedirects:m,extras:Object.assign(Object.assign({},S),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),c4}),B9(s=>{const{targetSnapshot:c,id:l,extractedUrl:C,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:m}}=s;return this.hooks.beforePreactivation(c,{navigationId:l,appliedUrlTree:C,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!m})}),g3(s=>{const c=new lW(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),v2(s=>Object.assign(Object.assign({},s),{guards:mq(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function Lq(t,n){return b1(e=>{const{targetSnapshot:i,currentSnapshot:a,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return 0===o.length&&0===r.length?s2(Object.assign(Object.assign({},e),{guardsResult:!0})):function bq(t,n,e,i){return $1(t).pipe(b1(a=>function Dq(t,n,e,i,a){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?s2(r.map(s=>{const c=li(s,n,a);let l;if(function nq(t){return t&&Be(t.canDeactivate)}(c))l=$4(c.canDeactivate(t,n,e,i));else{if(!Be(c))throw new Error("Invalid CanDeactivate guard");l=$4(c(t,n,e,i))}return l.pipe(P5())})).pipe(L8()):s2(!0)}(a.component,a.route,e,n,i)),P5(a=>!0!==a,!0))}(o,i,a,t).pipe(b1(s=>s&&function JW(t){return"boolean"==typeof t}(s)?function Vq(t,n,e,i){return $1(n).pipe(p8(a=>Jt(function wq(t,n){return null!==t&&n&&n(new dW(t)),s2(!0)}(a.route.parent,i),function Hq(t,n){return null!==t&&n&&n(new pW(t)),s2(!0)}(a.route,i),function Sq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(o=>function vq(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(o)).filter(o=>null!==o).map(o=>Jm(()=>s2(o.guards.map(c=>{const l=li(c,o.node,e);let C;if(function tq(t){return t&&Be(t.canActivateChild)}(l))C=$4(l.canActivateChild(i,t));else{if(!Be(l))throw new Error("Invalid CanActivateChild guard");C=$4(l(i,t))}return C.pipe(P5())})).pipe(L8())));return s2(r).pipe(L8())}(t,a.path,e),function zq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return s2(!0);const a=i.map(r=>Jm(()=>{const o=li(r,n,e);let s;if(function eq(t){return t&&Be(t.canActivate)}(o))s=$4(o.canActivate(n,t));else{if(!Be(o))throw new Error("Invalid CanActivate guard");s=$4(o(n,t))}return s.pipe(P5())}));return s2(a).pipe(L8())}(t,a.route,e))),P5(a=>!0!==a,!0))}(i,r,t,n):s2(s)),v2(s=>Object.assign(Object.assign({},e),{guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),g3(s=>{if(L6(s.guardsResult)){const l=z9(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw l.url=s.guardsResult,l}const c=new CW(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(c)}),J1(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,""),!1)),B9(s=>{if(s.guards.canActivateChecks.length)return s2(s).pipe(g3(c=>{const l=new fW(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}),re(c=>{let l=!1;return s2(c).pipe(function Oq(t,n){return b1(e=>{const{targetSnapshot:i,guards:{canActivateChecks:a}}=e;if(!a.length)return s2(e);let r=0;return $1(a).pipe(p8(o=>function Rq(t,n,e,i){return function Pq(t,n,e,i){const a=qv(t);if(0===a.length)return s2({});const r={};return $1(a).pipe(b1(o=>function Fq(t,n,e,i){const a=li(t,n,i);return $4(a.resolve?a.resolve(n,e):a(n,e))}(t[o],n,e,i).pipe(g3(s=>{r[o]=s}))),w9(1),b1(()=>qv(r).length===a.length?s2(r):c4))}(t._resolve,t,n,i).pipe(v2(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),Vv(t,e).resolve),null)))}(o.route,i,t,n)),g3(()=>r++),w9(1),b1(o=>r===a.length?s2(e):c4))})}(this.paramsInheritanceStrategy,this.ngModule.injector),g3({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(c),this.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),g3(c=>{const l=new uW(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}))}),B9(s=>{const{targetSnapshot:c,id:l,extractedUrl:C,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:m}}=s;return this.hooks.afterPreactivation(c,{navigationId:l,appliedUrlTree:C,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!m})}),v2(s=>{const c=function PW(t,n,e){const i=_8(t,n._root,e?e._root:void 0);return new Lv(i,n)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:c})}),g3(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>v2(i=>(new QW(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),g3({next(){r=!0},complete(){r=!0}}),function oW(t){return c1((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}(()=>{var s;r||o||this.cancelNavigationTransition(a,`Navigation ID ${a.id} is not equal to the current navigation id ${this.navigationId}`),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===a.id&&(this.currentNavigation=null)}),Fe(s=>{if(o=!0,function vW(t){return t&&t[sv]}(s)){const c=L6(s.url);c||(this.navigated=!0,this.restoreHistory(a,!0));const l=new iv(a.id,this.serializeUrl(a.extractedUrl),s.message);i.next(l),c?setTimeout(()=>{const C=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),f={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qv(a.source)};this.scheduleNavigation(C,"imperative",null,f,{resolve:a.resolve,reject:a.reject,promise:a.promise})},0):a.resolve(!1)}else{this.restoreHistory(a,!0);const c=new sW(a.id,this.serializeUrl(a.extractedUrl),s);i.next(c);try{a.resolve(this.errorHandler(s))}catch(l){a.reject(l)}}return c4}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var a;const r={replaceUrl:!0},o=(null===(a=e.state)||void 0===a?void 0:a.navigationId)?e.state:null;if(o){const c=Object.assign({},o);delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(r.state=c)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Ev(e),this.config=e.map(P9),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:a,queryParams:r,fragment:o,queryParamsHandling:s,preserveFragment:c}=i,l=a||this.routerState.root,C=c?this.currentUrlTree.fragment:o;let f=null;switch(s){case"merge":f=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}return null!==f&&(f=this.removeEmptyProps(f)),function UW(t,n,e,i,a){if(0===e.length)return A9(n.root,n.root,n.root,i,a);const r=function GW(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Sv(!0,0,t);let n=0,e=!1;const i=t.reduce((a,r,o)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return X1(r.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...a,{outlets:s}]}if(r.segmentPath)return[...a,r.segmentPath]}return"string"!=typeof r?[...a,r]:0===o?(r.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?n++:""!=s&&a.push(s))}),a):[...a,r]},[]);return new Sv(e,n,i)}(e);if(r.toRoot())return A9(n.root,n.root,new V2([],{}),i,a);const o=function jW(t,n,e){if(t.isAbsolute)return new k9(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new k9(r,r===n.root,0)}const i=ni(t.commands[0])?0:1;return function $W(t,n,e){let i=t,a=n,r=e;for(;r>a;){if(r-=a,i=i.parent,!i)throw new Error("Invalid number of '../'");a=i.segments.length}return new k9(i,!1,a-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,n,t),s=o.processChildren?ii(o.segmentGroup,o.index,r.commands):Dv(o.segmentGroup,o.index,r.commands);return A9(n.root,o.segmentGroup,s,i,a)}(l,this.currentUrlTree,e,f,null!=C?C:null)}navigateByUrl(e,i={skipLocationChange:!1}){const a=L6(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function Qq(t){for(let n=0;n<t.length;n++){const e=t[n];if(null==e)throw new Error(`The requested path contains ${e} segment at index ${n}`)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(a){i=this.malformedUriErrorHandler(a,this.urlSerializer,e)}return i}isActive(e,i){let a;if(a=!0===i?Object.assign({},Kq):!1===i?Object.assign({},Yq):i,L6(e))return uv(this.currentUrlTree,e,a);const r=this.parseUrl(e);return uv(this.currentUrlTree,r,a)}removeEmptyProps(e){return Object.keys(e).reduce((i,a)=>{const r=e[a];return null!=r&&(i[a]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new g8(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,a,r,o){var s,c;if(this.disposed)return Promise.resolve(!1);let l,C,f;o?(l=o.resolve,C=o.reject,f=o.promise):f=new Promise((V,H)=>{l=V,C=H});const h=++this.navigationId;let m;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),m=a&&a.\u0275routerPageId?a.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):m=0,this.setTransition({id:h,targetPageId:m,source:i,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:l,reject:C,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(V=>Promise.reject(V))}setBrowserUrl(e,i){const a=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(a)||i.extras.replaceUrl?this.location.replaceState(a,"",r):this.location.go(a,"",r)}restoreHistory(e,i=!1){var a,r;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const a=new iv(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(a),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){Er()},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();function Qv(t){return"imperative"!==t}let pe=(()=>{class t{constructor(e,i,a){this.router=e,this.route=i,this.locationStrategy=a,this.commands=null,this.href=null,this.onChanges=new d2,this.subscription=e.events.subscribe(r=>{r instanceof g8&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,a,r,o){if(0!==e||i||a||r||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:U5(this.skipLocationChange),replaceUrl:U5(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:U5(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(b(e3),b(he),b(o6))},t.\u0275dir=G({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&A("click",function(r){return i.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&B("target",i.target)("href",i.href,Je)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[H1]}),t})();function U5(t){return""===t||!!t}class Zv{}class Jv{preload(n,e){return s2(null)}}let Xv=(()=>{class t{constructor(e,i,a,r){this.router=e,this.injector=a,this.preloadingStrategy=r,this.loader=new Kv(a,i,c=>e.triggerEvent(new av(c)),c=>e.triggerEvent(new rv(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(J1(e=>e instanceof g8),p8(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(te);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const a=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const o=r._loadedConfig;a.push(this.processRoutes(o.module,o.routes))}else r.loadChildren&&!r.canLoad?a.push(this.preloadConfig(e,r)):r.children&&a.push(this.processRoutes(e,r.children));return $1(a).pipe(J5(),v2(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?s2(i._loadedConfig):this.loader.load(e.injector,i)).pipe(b1(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(q(e3),q(Vd),q(A1),q(Zv))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),j9=(()=>{class t{constructor(e,i,a={}){this.router=e,this.viewportScroller=i,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Y0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof g8&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ov&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new ov(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Er()},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();const b6=new _2("ROUTER_CONFIGURATION"),e_=new _2("ROUTER_FORROOT_GUARD"),eK=[N7,{provide:gv,useClass:mv},{provide:e3,useFactory:function rK(t,n,e,i,a,r,o={},s,c){const l=new e3(null,t,n,e,i,a,lv(r));return s&&(l.urlHandlingStrategy=s),c&&(l.routeReuseStrategy=c),function oK(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(o,l),o.enableTracing&&l.events.subscribe(C=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${C.constructor.name}`),console.log(C.toString()),console.log(C),null===(h=console.groupEnd)||void 0===h||h.call(console)}),l},deps:[gv,b8,N7,A1,Vd,U9,b6,[class jq{},new Ve],[class Bq{},new Ve]]},b8,{provide:he,useFactory:function sK(t){return t.routerState.root},deps:[e3]},Xv,Jv,class Xq{preload(n,e){return e().pipe(Fe(()=>s2(null)))}},{provide:b6,useValue:{enableTracing:!1}}];function tK(){return new Dd("Router",e3)}let t_=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[eK,n_(e),{provide:e_,useFactory:aK,deps:[[e3,new Ve,new pt]]},{provide:b6,useValue:i||{}},{provide:o6,useFactory:iK,deps:[r6,[new dn(x7),new Ve],b6]},{provide:j9,useFactory:nK,deps:[e3,cR,b6]},{provide:Zv,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Jv},{provide:Dd,multi:!0,useFactory:tK},[$9,{provide:h7,multi:!0,useFactory:cK,deps:[$9]},{provide:i_,useFactory:lK,deps:[$9]},{provide:bd,multi:!0,useExisting:i_}]]}}static forChild(e){return{ngModule:t,providers:[n_(e)]}}}return t.\u0275fac=function(e){return new(e||t)(q(e_,8),q(e3,8))},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();function nK(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new j9(t,n,e)}function iK(t,n,e={}){return e.useHash?new Yd(t,n):new Kd(t,n)}function aK(t){return"guarded"}function n_(t){return[{provide:ED,multi:!0,useValue:t},{provide:U9,multi:!0,useValue:t}]}let $9=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new d2}appInitializer(){return this.injector.get(BI,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const a=new Promise(s=>i=s),r=this.injector.get(e3),o=this.injector.get(b6);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?s2(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),a})}bootstrapListener(e){const i=this.injector.get(b6),a=this.injector.get(Xv),r=this.injector.get(j9),o=this.injector.get(e3),s=this.injector.get(L5);e===s.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),a.setUpPreloading(),r.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(q(A1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();function cK(t){return t.appInitializer.bind(t)}function lK(t){return t.bootstrapListener.bind(t)}const i_=new _2("Router Initializer");let fK=(()=>{class t{constructor(){this.title="config-ui",this.logoSrc="assets/images/homebridge-eufy-security.png"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["app-root"]],decls:16,vars:1,consts:[[1,"card","card-body",2,"width","100%"],[1,"logo"],[1,"logo",3,"src"],[1,"text-center"],[2,"font-weight","800"],[1,"pluginContent",2,"max-width","720px !important"],[1,"footer"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1),T(2,"img",2),g(),p(3,"h3",3),_(4," Welcome to"),T(5,"br"),p(6,"b",4),_(7,"Eufy Security Plugin"),g()(),p(8,"h6",3),_(9,"Homebridge plugin for Eufy Security Devices"),g(),T(10,"hr"),p(11,"div",5),T(12,"router-outlet"),g(),T(13,"hr"),p(14,"div",6),_(15,"We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Anker Innovations Technology Co.LTd, and Shenzhen Oceanwing Smart Innovations Technology Co., Ltd, and its affiliated companies within the Anker Group, or any of its subsidiaries or its affiliates. "),g()()),2&e&&(v(2),M("src",i.logoSrc,Je))},directives:[R9],styles:["div.logo[_ngcontent-%COMP%]{text-align:center;margin:0 0 5px}img.logo[_ngcontent-%COMP%]{text-align:center;margin:0 auto;max-width:75%;height:auto;object-fit:cover}.footer[_ngcontent-%COMP%]{font-size:small;color:#888}"]}),t})();function a_(t,n,e,i,a,r,o){try{var s=t[r](o),c=s.value}catch(l){return void e(l)}s.done?n(c):Promise.resolve(c).then(i,a)}function f2(t){return function(){var n=this,e=arguments;return new Promise(function(i,a){var r=t.apply(n,e);function o(c){a_(r,i,a,o,s,"next",c)}function s(c){a_(r,i,a,o,s,"throw",c)}o(void 0)})}}var zM={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9898,9899,11044,61708,61915,9679],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"]},WM={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM168 232C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H168z"]},QM={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 368C269.3 368 280 357.3 280 344V280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H280V168C280 154.7 269.3 144 256 144C242.7 144 232 154.7 232 168V232H168C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H232V344C232 357.3 242.7 368 256 368z"]},xy={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM223.1 149.5L313.4 220.3C317.6 211.8 320 202.2 320 191.1C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 159.1 320 159.1C373 159.1 416 202.1 416 255.1C416 269.7 413.1 282.7 407.1 294.5L446.6 324.7C457.7 304.3 464 280.9 464 255.1C464 176.5 399.5 111.1 320 111.1C282.7 111.1 248.6 126.2 223.1 149.5zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 255.1C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z"]},Vs={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M449.9 39.96l-48.5 48.53C362.5 53.19 311.4 32 256 32C161.5 32 78.59 92.34 49.58 182.2c-5.438 16.81 3.797 34.88 20.61 40.28c16.97 5.5 34.86-3.812 40.3-20.59C130.9 138.5 189.4 96 256 96c37.96 0 73 14.18 100.2 37.8L311.1 178C295.1 194.8 306.8 223.4 330.4 224h146.9C487.7 223.7 496 215.3 496 204.9V59.04C496 34.99 466.9 22.95 449.9 39.96zM441.8 289.6c-16.94-5.438-34.88 3.812-40.3 20.59C381.1 373.5 322.6 416 256 416c-37.96 0-73-14.18-100.2-37.8L200 334C216.9 317.2 205.2 288.6 181.6 288H34.66C24.32 288.3 16 296.7 16 307.1v145.9c0 24.04 29.07 36.08 46.07 19.07l48.5-48.53C149.5 458.8 200.6 480 255.1 480c94.45 0 177.4-60.34 206.4-150.2C467.9 313 458.6 294.1 441.8 289.6z"]},ws={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M331.8 224.1c28.29 0 54.88 10.99 74.86 30.97l19.59 19.59c40.01-17.74 71.25-53.3 81.62-96.65c5.725-23.92 5.34-47.08 .2148-68.4c-2.613-10.88-16.43-14.51-24.34-6.604l-68.9 68.9h-75.6V97.2l68.9-68.9c7.912-7.912 4.275-21.73-6.604-24.34c-21.32-5.125-44.48-5.51-68.4 .2148c-55.3 13.23-98.39 60.22-107.2 116.4C224.5 128.9 224.2 137 224.3 145l82.78 82.86C315.2 225.1 323.5 224.1 331.8 224.1zM384 278.6c-23.16-23.16-57.57-27.57-85.39-13.9L191.1 158L191.1 95.99l-127.1-95.99L0 63.1l96 127.1l62.04 .0077l106.7 106.6c-13.67 27.82-9.251 62.23 13.91 85.39l117 117.1c14.62 14.5 38.21 14.5 52.71-.0016l52.75-52.75c14.5-14.5 14.5-38.08-.0016-52.71L384 278.6zM227.9 307L168.7 247.9l-148.9 148.9c-26.37 26.37-26.37 69.08 0 95.45C32.96 505.4 50.21 512 67.5 512s34.54-6.592 47.72-19.78l119.1-119.1C225.5 352.3 222.6 329.4 227.9 307zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24S88 434.7 88 448C88 461.3 77.25 472 64 472z"]},E=(()=>{return(t=E||(E={}))[t.STATION=0]="STATION",t[t.CAMERA=1]="CAMERA",t[t.SENSOR=2]="SENSOR",t[t.FLOODLIGHT=3]="FLOODLIGHT",t[t.CAMERA_E=4]="CAMERA_E",t[t.DOORBELL=5]="DOORBELL",t[t.BATTERY_DOORBELL=7]="BATTERY_DOORBELL",t[t.CAMERA2C=8]="CAMERA2C",t[t.CAMERA2=9]="CAMERA2",t[t.MOTION_SENSOR=10]="MOTION_SENSOR",t[t.KEYPAD=11]="KEYPAD",t[t.CAMERA2_PRO=14]="CAMERA2_PRO",t[t.CAMERA2C_PRO=15]="CAMERA2C_PRO",t[t.BATTERY_DOORBELL_2=16]="BATTERY_DOORBELL_2",t[t.INDOOR_CAMERA=30]="INDOOR_CAMERA",t[t.INDOOR_PT_CAMERA=31]="INDOOR_PT_CAMERA",t[t.SOLO_CAMERA=32]="SOLO_CAMERA",t[t.SOLO_CAMERA_PRO=33]="SOLO_CAMERA_PRO",t[t.INDOOR_CAMERA_1080=34]="INDOOR_CAMERA_1080",t[t.INDOOR_PT_CAMERA_1080=35]="INDOOR_PT_CAMERA_1080",t[t.FLOODLIGHT_CAMERA_8422=37]="FLOODLIGHT_CAMERA_8422",t[t.FLOODLIGHT_CAMERA_8423=38]="FLOODLIGHT_CAMERA_8423",t[t.FLOODLIGHT_CAMERA_8424=39]="FLOODLIGHT_CAMERA_8424",t[t.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT=44]="INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT",t[t.INDOOR_OUTDOOR_CAMERA_2K=45]="INDOOR_OUTDOOR_CAMERA_2K",t[t.INDOOR_OUTDOOR_CAMERA_1080P=46]="INDOOR_OUTDOOR_CAMERA_1080P",t[t.LOCK_BLE=50]="LOCK_BLE",t[t.LOCK_WIFI=51]="LOCK_WIFI",t[t.LOCK_BLE_NO_FINGER=52]="LOCK_BLE_NO_FINGER",t[t.LOCK_WIFI_NO_FINGER=53]="LOCK_WIFI_NO_FINGER",t[t.LOCK_8503=54]="LOCK_8503",t[t.LOCK_8530=55]="LOCK_8530",t[t.LOCK_85A3=56]="LOCK_85A3",t[t.LOCK_8592=57]="LOCK_8592",t[t.LOCK_8504=58]="LOCK_8504",t[t.SOLO_CAMERA_SPOTLIGHT_1080=60]="SOLO_CAMERA_SPOTLIGHT_1080",t[t.SOLO_CAMERA_SPOTLIGHT_2K=61]="SOLO_CAMERA_SPOTLIGHT_2K",t[t.SOLO_CAMERA_SPOTLIGHT_SOLAR=62]="SOLO_CAMERA_SPOTLIGHT_SOLAR",t[t.SMART_DROP=90]="SMART_DROP",t[t.BATTERY_DOORBELL_PLUS=91]="BATTERY_DOORBELL_PLUS",t[t.DOORBELL_SOLO=93]="DOORBELL_SOLO",t[t.INDOOR_COST_DOWN_CAMERA=100]="INDOOR_COST_DOWN_CAMERA",t[t.CAMERA_GUN=101]="CAMERA_GUN",t[t.CAMERA_SNAIL=102]="CAMERA_SNAIL",t[t.CAMERA_FG=110]="CAMERA_FG",t[t.SMART_SAFE_7400=140]="SMART_SAFE_7400",t[t.SMART_SAFE_7401=141]="SMART_SAFE_7401",t[t.SMART_SAFE_7402=142]="SMART_SAFE_7402",t[t.SMART_SAFE_7403=143]="SMART_SAFE_7403",E;var t})();class T8{static isDoorbell(n){return n===E.DOORBELL||n===E.BATTERY_DOORBELL||n===E.BATTERY_DOORBELL_2||n===E.BATTERY_DOORBELL_PLUS||n===E.DOORBELL_SOLO}static isCamera(n){return n===E.CAMERA||n===E.CAMERA2||n===E.CAMERA_E||n===E.CAMERA2C||n===E.INDOOR_CAMERA||n===E.INDOOR_PT_CAMERA||n===E.FLOODLIGHT||n===E.DOORBELL||n===E.BATTERY_DOORBELL||n===E.BATTERY_DOORBELL_2||n===E.BATTERY_DOORBELL_PLUS||n===E.DOORBELL_SOLO||n===E.CAMERA2C_PRO||n===E.CAMERA2_PRO||n===E.INDOOR_CAMERA_1080||n===E.INDOOR_PT_CAMERA_1080||n===E.SOLO_CAMERA||n===E.SOLO_CAMERA_PRO||n===E.SOLO_CAMERA_SPOTLIGHT_1080||n===E.SOLO_CAMERA_SPOTLIGHT_2K||n===E.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===E.INDOOR_OUTDOOR_CAMERA_1080P||n===E.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===E.INDOOR_OUTDOOR_CAMERA_2K||n===E.INDOOR_COST_DOWN_CAMERA||n===E.FLOODLIGHT_CAMERA_8422||n===E.FLOODLIGHT_CAMERA_8423||n===E.FLOODLIGHT_CAMERA_8424}static supportsRTSP(n){return n===E.CAMERA||n===E.CAMERA2||n===E.CAMERA2C||n===E.CAMERA2C_PRO||n===E.CAMERA_E||n===E.INDOOR_CAMERA||n===E.INDOOR_CAMERA_1080||n===E.INDOOR_OUTDOOR_CAMERA_1080P||n===E.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===E.INDOOR_OUTDOOR_CAMERA_2K||n===E.INDOOR_PT_CAMERA||n===E.INDOOR_PT_CAMERA_1080||n===E.INDOOR_COST_DOWN_CAMERA||n===E.FLOODLIGHT_CAMERA_8423}static supportsTalkback(n){return n===E.CAMERA2||n===E.CAMERA2C||n===E.CAMERA2C_PRO||n===E.CAMERA2_PRO||n===E.DOORBELL||n===E.BATTERY_DOORBELL||n===E.BATTERY_DOORBELL_2||n===E.BATTERY_DOORBELL_PLUS||n===E.DOORBELL_SOLO||n===E.INDOOR_CAMERA||n===E.INDOOR_CAMERA_1080||n===E.INDOOR_OUTDOOR_CAMERA_1080P||n===E.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===E.INDOOR_OUTDOOR_CAMERA_2K||n===E.INDOOR_PT_CAMERA||n===E.INDOOR_PT_CAMERA_1080||n===E.INDOOR_COST_DOWN_CAMERA||n===E.SOLO_CAMERA||n===E.SOLO_CAMERA_PRO||n===E.SOLO_CAMERA_SPOTLIGHT_1080||n===E.SOLO_CAMERA_SPOTLIGHT_2K||n===E.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===E.FLOODLIGHT||n===E.FLOODLIGHT_CAMERA_8422||n===E.FLOODLIGHT_CAMERA_8423||n===E.FLOODLIGHT_CAMERA_8424}}var G5=(()=>{return(t=G5||(G5={}))[t.CHARGING=1]="CHARGING",t[t.UNPLUGGED=2]="UNPLUGGED",t[t.PLUGGED=3]="PLUGGED",t[t.SOLAR_CHARGING=4]="SOLAR_CHARGING",G5;var t})();const Bs=new Map([[E.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[E.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[E.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[E.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[E.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[E.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[E.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[E.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[E.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[E.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[E.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[E.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[E.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[E.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[E.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[E.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[E.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[E.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[E.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[E.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[E.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[E.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[E.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[E.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[E.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[E.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[E.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[E.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[E.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[E.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[E.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[E.SMART_DROP,{image:"unknown.png",padding:"20px"}],[E.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[E.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[E.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[E.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[E.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[E.CAMERA_FG,{image:"unknown.png",padding:"20px"}],[E.SMART_SAFE_7400,{image:"unknown.png",padding:"20px"}],[E.SMART_SAFE_7401,{image:"unknown.png",padding:"20px"}],[E.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[E.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}]]);let O2=(()=>{class t extends EventTarget{constructor(){super(),this.stations=[],this.devices=[],this.accessories$=p3(window.homebridge,"addAccessory"),this.init()}init(){this.accessories$.subscribe(e=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(e){return this.stations.find(i=>i.uniqueId===e)}getDevice(e){return this.devices.find(i=>i.uniqueId===e)}loadStoredAccessories(){var e=this;return f2(function*(){try{const i=yield window.homebridge.request("/storedAccessories");return i.forEach(a=>{e.addAccessory(a)}),0!==i.length&&e.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==i.length)}catch(i){return Promise.reject(i)}})()}addAccessory(e){const i=e.station?this.stations:this.devices;i.find(a=>a.uniqueId===e.uniqueId)||i.push(e)}getConfig(){var e=this;return f2(function*(){return e.config?Promise.resolve(e.config):e.getPlatformConfig()})()}updateConfig(e,i){var a=this;return f2(function*(){try{yield window.homebridge.updatePluginConfig([e]),a.config=e,i&&(yield window.homebridge.savePluginConfig()),a.dispatchEvent(new Event("configChanged"))}catch(r){console.log("There was an error updating the credentials in your config: "+r)}})()}getPlatformConfig(){var e=this;return f2(function*(){try{const i=yield window.homebridge.getPluginConfig();return i.length>0?(e.config=i[0],e.config.platform="EufySecurity",Promise.resolve(i[0])):Promise.reject("Could not get Platform config")}catch(i){return Promise.reject(i)}})()}getCachedName(e){return f2(function*(){let a;return(yield window.homebridge.getCachedAccessories()).forEach(r=>{r.context&&r.context.device&&r.context.device.uniqueId===e.uniqueId&&r.context.device.station===e.station&&(a=r.context.device.displayName)}),Promise.resolve(a)})()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Df2(t,n){if(1&t){const e=w1();p(0,"div",2)(1,"h4",3),_(2,"Refresh stations and devices"),g(),p(3,"button",4),A("click",function(){return F(e).$implicit.dismiss("Cross click")}),g()(),p(4,"div",5)(5,"div",6),_(6," To refresh all stations and devices you will be logged into your eufy account. This can interfere with the plugins connection to the eufy cloud. "),T(7,"p"),p(8,"b",7),_(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),g(),T(10,"p"),_(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),p(12,"a",8),_(13,"here"),g(),_(14," for more information). "),g()(),p(15,"div",9)(16,"a",10),A("click",function(){return F(e).$implicit.close("Login")}),_(17,"Login with eufy"),g()()}}function xf2(t,n){1&t&&(p(0,"div",11)(1,"div",12),T(2,"div",13),p(3,"div",14)(4,"div",15)(5,"div",16),_(6," Loading Accessories... "),p(7,"div",17),T(8,"div",18),g()()()(),T(9,"div",13),g()())}function Nf2(t,n){if(1&t&&(p(0,"span",42),T(1,"fa-icon",43),g()),2&t){const e=D(3);v(1),M("icon",e.ignoreIcon)}}function Tf2(t,n){if(1&t&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),T(5,"img",36),p(6,"span",37),T(7,"fa-icon",38),g(),k(8,Nf2,2,1,"span",39),g()()()(),p(9,"span",40),_(10),g(),p(11,"span",41),_(12),g()()),2&t){const e=n.$implicit,i=D(2);let a;v(3),h5("routerLink","/stationConfig/",e.uniqueId,""),v(2),M("src","assets/devices/"+(i.DeviceImage.get(e.type)?null==(a=i.DeviceImage.get(e.type))?null:a.image:"unknown.png"),Je),B("style",i.getDevicePanelStyle(e),E4),v(2),M("icon",i.settingsIcon),v(1),M("ngIf",e.ignored),v(2),ee(e.cachedName?e.cachedName:e.displayName),v(2),R3("(",e.uniqueId,")")}}function Ef2(t,n){if(1&t&&(p(0,"span",42),T(1,"fa-icon",43),g()),2&t){const e=D(3);v(1),M("icon",e.ignoreIcon)}}function Af2(t,n){if(1&t&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),T(5,"img",36),p(6,"span",37),T(7,"fa-icon",38),g(),k(8,Ef2,2,1,"span",39),g()()()(),p(9,"span",40),_(10),g(),p(11,"span",41),_(12),g()()),2&t){const e=n.$implicit,i=D(2);let a;v(3),h5("routerLink","/cameraConfig/",e.uniqueId,""),v(2),M("src","assets/devices/"+(i.DeviceImage.get(e.type)?null==(a=i.DeviceImage.get(e.type))?null:a.image:"unknown.png"),Je),B("style",i.getDevicePanelStyle(e),E4),v(2),M("icon",i.settingsIcon),v(1),M("ngIf",e.ignored),v(2),ee(e.cachedName?e.cachedName:e.displayName),v(2),R3("(",e.uniqueId,")")}}function kf2(t,n){if(1&t){const e=w1();p(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),A("click",function(){F(e);const a=D(),r=J3(1);return a.openReloadModal(r)}),T(4,"fa-icon",22),g()(),p(5,"div",23)(6,"a",24),_(7,"Plugin Settings"),g()()(),T(8,"p"),p(9,"span"),_(10,"Click on any device below to access its settings."),g(),T(11,"p"),p(12,"div",25)(13,"div",26),_(14," Stations "),g(),p(15,"div",27)(16,"div",19),k(17,Tf2,13,7,"div",28),g()()(),T(18,"p"),p(19,"div",25)(20,"div",26),_(21," Devices "),g(),p(22,"div",29)(23,"div",19),k(24,Af2,13,7,"div",28),g()()(),T(25,"p"),p(26,"span")(27,"i"),_(28,"The images used above are 'best effort' for now, since we do not own every eufy device. If you experience that your device is depicted with a wrong image please feel free to let us know in an issue on our "),p(29,"a",30),_(30,"Github page."),g()()()()}if(2&t){const e=D();v(4),M("icon",e.reloadIcon),v(13),M("ngForOf",e.stations),v(7),M("ngForOf",e.devices)}}let If2=(()=>{class t{constructor(e,i,a,r){this.modalService=e,this.pluginService=i,this.route=a,this.routerService=r,this.stations=[],this.devices=[],this.settingsIcon=ws,this.ignoreIcon=xy,this.reloadIcon=Vs,this.DeviceImage=Bs,this.closeResult=""}ngOnInit(){this.waitForAccessories="true"===this.route.snapshot.paramMap.get("waitForAccessories"),this.pluginService.addEventListener("newAccessories",()=>{console.log("plugin accessories have changed. updating..."),this.updateDevices(),this.updateStations()}),this.updateStations(),this.updateDevices(),!this.waitForAccessories&&0===this.stations.length&&0===this.devices.length&&this.pluginService.loadStoredAccessories().then(e=>{e||this.routerService.navigateByUrl("/login")}).catch(e=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var e=this;return f2(function*(){const i=yield e.pluginService.getConfig();Array.isArray(i.ignoreStations)&&e.stations.forEach(a=>{a.ignored=void 0!==i.ignoreStations.find(r=>r===a.uniqueId)}),Array.isArray(i.ignoreDevices)&&e.devices.forEach(a=>{a.ignored=void 0!==i.ignoreDevices.find(r=>r===a.uniqueId)}),e.stations.forEach(a=>{e.pluginService.getCachedName(a).then(r=>a.cachedName=r)}),e.devices.forEach(a=>{e.pluginService.getCachedName(a).then(r=>a.cachedName=r)})})()}openReloadModal(e){this.modalService.open(e,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(e){return e===g6.ESC?"by pressing ESC":e===g6.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${e}`}getDevicePanelStyle(e){var i;let a="";return e.ignored&&(a+="opacity: 0.2;"),Bs.get(e.type)?a+="padding:"+(null===(i=Bs.get(e.type))||void 0===i?void 0:i.padding):a+="padding:20px",a}}return t.\u0275fac=function(e){return new(e||t)(b(xg),b(O2),b(he),b(e3))},t.\u0275cmp=n2({type:t,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},decls:4,vars:2,consts:[["reloadModal",""],["class","container",4,"ngIf"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[2,"color","#dc3545"],["href","https://github.com/homebridge-eufy-security/plugin/issues/59#issuecomment-1147314942","target","_blank","rel","noopener noreferrer"],[1,"modal-footer"],["routerLink","/login",1,"btn","btn-success",3,"click"],[1,"container"],[1,"row","pl-5","pr-5"],[1,"col",2,"max-width","20%"],[1,"col","d-flex","justify-content-center"],[1,"card","shadow-sm","text-center","pt-3","pb-3",2,"width","100%"],[1,"mx-auto"],[1,"progress",2,"height","8px"],["role","progressbar","aria-valuenow","75","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-info","progress-bar-animated",2,"width","75%"],[1,"row"],[1,"col-6"],["type","button",1,"btn","btn-success",3,"click"],["size","lg",3,"icon"],[1,"col-6","text-end"],["routerLink","/advancedConfig",1,"btn","btn-secondary"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-0"],["class","col-6 col-sm-4 mt-3 mb-3 d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-body"],["href","https://github.com/homebridge-eufy-security/plugin","target","_blank","rel","noopener noreferrer"],[1,"col-6","col-sm-4","mt-3","mb-3","d-flex","flex-column","align-items-center"],[1,"col-12","col-sm-7"],[1,"text-center"],[2,"color","black",3,"routerLink"],[1,"device","ratio","ratio-1x1","border","rounded","shadow-sm"],[1,"deviceimage",3,"src"],[1,"devicesettingsicon","d-flex","border","align-items-center","justify-content-center",2,"z-index","15"],["size","2x",3,"icon"],["class","d-flex border align-items-top justify-content-end","style","z-index: 20;",4,"ngIf"],[1,"col-12","text-center"],[1,"col-12","serial","fw-light","text-center"],[1,"d-flex","border","align-items-top","justify-content-end",2,"z-index","20"],["size","xs",1,"mt-sm-1","m-sm-2","m-1","mt-0",3,"icon"]],template:function(e,i){1&e&&(k(0,Df2,18,0,"ng-template",null,0,X3),k(2,xf2,10,0,"div",1),k(3,kf2,31,3,"div",1)),2&e&&(v(2),M("ngIf",0===i.stations.length&&0===i.devices.length),v(1),M("ngIf",0!==i.stations.length||0!==i.devices.length))},directives:[pe,m1,H9,ae],styles:[".device[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#ffc107!important;color:#ffc107}.device[_ngcontent-%COMP%]{background-color:#fff!important;color:#000!important}.device[_ngcontent-%COMP%]:hover .deviceimage[_ngcontent-%COMP%]{opacity:.5}.device[_ngcontent-%COMP%] .devicesettingsicon[_ngcontent-%COMP%]{display:none!important}.device[_ngcontent-%COMP%]:hover .devicesettingsicon[_ngcontent-%COMP%]{display:flex!important;color:#ffa000!important}.serial[_ngcontent-%COMP%]{font-size:12px}"]}),t})(),Of2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["app-edit-credentials"]],decls:6,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],[1,"mb-3","mb-sm-0"],["routerLink","/login",1,"btn","btn-secondary","col-12","col-sm-4"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Change username, password and country"),g(),p(4,"a",3),_(5,"New Login"),g()()())},directives:[pe],encapsulation:2}),t})();class o1{constructor(n){this.pluginService=n,this.config={},this.pluginService.getConfig().then(e=>{this.config=e}).catch(e=>console.log("Could not get config in config interpreter: "+e))}getCameraConfig(n){var e=this;return f2(function*(){const i=yield e.pluginService.getConfig();return Array.isArray(i.cameras)?Promise.resolve(i.cameras.find(a=>a.serialNumber===n)):Promise.resolve(void 0)})()}getStationConfig(n){var e=this;return f2(function*(){const i=yield e.pluginService.getConfig();return Array.isArray(i.stations)?Promise.resolve(i.stations.find(a=>a.serialNumber===n)):Promise.resolve(void 0)})()}updateConfig(n,e){var i=this;return f2(function*(){let a=yield i.pluginService.getConfig();if(e||(a=Object.assign(Object.assign({},a),n)),e&&!1===e.station){Array.isArray(a.cameras)||(a.cameras=[]);let r=-1;a.cameras.forEach((o,s)=>{o.serialNumber===e.uniqueId&&(r=s)}),r>=0?a.cameras[r]=Object.assign(Object.assign({},a.cameras[r]),n):a.cameras.push(Object.assign({serialNumber:e.uniqueId},n))}else if(e&&!0===e.station){Array.isArray(a.stations)||(a.stations=[]);let r=-1;a.stations.forEach((o,s)=>{o.serialNumber===e.uniqueId&&(r=s)}),r>=0?a.stations[r]=Object.assign(Object.assign({},a.stations[r]),n):a.stations.push(Object.assign({serialNumber:e.uniqueId},n))}i.pluginService.updateConfig(a)})()}}let Rf2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"preferLocalConnection")&&(this.value=this.config.preferLocalConnection)}update(){this.updateConfig({preferLocalConnection:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-prefer-local"]],features:[Z],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Prefer Local Connection"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," This setting only affects the way the plugin tries to connect to your eufy stations and devices (Default: trying local and via public ip). "),p(9,"b"),_(10,"You will still need an active internet connection to establish a connection in the first place, even if you enable this setting."),g()()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})(),Pf2=(()=>{class t extends o1{constructor(e){super(e),this.value=10,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"pollingIntervalMinutes")&&(this.value=this.config.pollingIntervalMinutes)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({pollingIntervalMinutes:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-polling-interval-minutes"]],features:[Z],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3","pb-0"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Polling Interval"),g(),p(4,"div",2)(5,"div",3)(6,"input",4),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g(),p(7,"div",5)(8,"span",6),_(9,"minutes"),g()()()()(),p(10,"small")(11,"i"),_(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),g()()()),2&e&&(v(6),M("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[H5,xe,a1,e1],encapsulation:2}),t})(),Ff2=(()=>{class t extends o1{constructor(e){super(e),this.value=30,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"CameraMaxLivestreamDuration")&&(this.value=this.config.CameraMaxLivestreamDuration)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({CameraMaxLivestreamDuration:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-livestream-duration-seconds"]],features:[Z],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Maximum Livestream Duration"),g(),p(4,"div",2)(5,"div",3)(6,"input",4),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g(),p(7,"div",5)(8,"span",6),_(9,"seconds"),g()()()()(),p(10,"small")(11,"i"),_(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),g()()()),2&e&&(v(6),M("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[H5,xe,a1,e1],encapsulation:2}),t})(),Bf2=(()=>{class t extends o1{constructor(e){super(e),this.model=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"enableDetailedLogging")&&(this.model=this.config.enableDetailedLogging)}update(){this.updateConfig({enableDetailedLogging:this.model})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-enable-detailed-logging"]],features:[Z],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Debug Mode"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.model=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),g()()()),2&e&&(v(5),M("ngModel",i.model))},directives:[U1,a1,e1],encapsulation:2}),t})(),Uf2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"omitLogFiles")&&(this.value=this.config.omitLogFiles)}update(){this.updateConfig({omitLogFiles:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-omit-log-files"]],features:[Z],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Don't store log files"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),g()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})(),Gf2=(()=>{class t extends o1{constructor(e){super(e),this.model=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"cleanCache")&&(this.model=this.config.cleanCache)}update(){this.updateConfig({cleanCache:this.model})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-clean-cache"]],features:[Z],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Clean cache automatically"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.model=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),g()()()),2&e&&(v(5),M("ngModel",i.model))},directives:[U1,a1,e1],encapsulation:2}),t})();function jf2(t,n){1&t&&(p(0,"span"),_(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),g())}function $f2(t,n){1&t&&(p(0,"option",6),_(1,"Use global setting"),g()),2&t&&M("ngValue",void 0)}function Wf2(t,n){1&t&&(p(0,"option",6),_(1,"Use global setting"),g()),2&t&&M("ngValue",void 0)}function qf2(t,n){1&t&&(p(0,"option",6),_(1,"Use global setting"),g()),2&t&&M("ngValue",void 0)}function Kf2(t,n){1&t&&(p(0,"option",6),_(1,"Use global setting"),g()),2&t&&M("ngValue",void 0)}let Yf2=(()=>{class t extends o1{constructor(e){super(e),this.hkHome=void 0,this.hkAway=void 0,this.hkNight=void 0,this.hkOff=void 0}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){const i=e.accessory?yield e.getStationConfig(e.accessory.uniqueId):yield e.pluginService.getConfig();i&&Object.prototype.hasOwnProperty.call(i,"hkHome")?e.hkHome=i.hkHome:e.accessory||(e.hkHome=1),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?e.hkAway=i.hkAway:e.accessory||(e.hkAway=0),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?e.hkNight=i.hkNight:e.accessory||(e.hkNight=3),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?e.hkOff=i.hkOff:e.accessory||(e.hkOff=63)})()}update(){var e=this;return f2(function*(){let i=e.accessory?yield e.getStationConfig(e.accessory.uniqueId):yield e.pluginService.getConfig();void 0===i&&(i={}),void 0===e.hkHome&&Object.prototype.hasOwnProperty.call(i,"hkHome")?delete i.hkHome:i.hkHome=e.hkHome,void 0===e.hkAway&&Object.prototype.hasOwnProperty.call(i,"hkAway")?delete i.hkAway:i.hkAway=e.hkAway,void 0===e.hkNight&&Object.prototype.hasOwnProperty.call(i,"hkNight")?delete i.hkNight:i.hkNight=e.hkNight,void 0===e.hkOff&&Object.prototype.hasOwnProperty.call(i,"hkOff")?delete i.hkOff:i.hkOff=e.hkOff;let a=yield e.pluginService.getConfig();if(e.accessory){Array.isArray(a.stations)||(a.stations=[]);let r=-1;a.stations.forEach((o,s)=>{var c;o.serialNumber===(null===(c=e.accessory)||void 0===c?void 0:c.uniqueId)&&(r=s)}),r>=0?a.stations[r]=i:(i.serialNumber=e.accessory.uniqueId,a.stations.push(i))}else a=i;e.pluginService.updateConfig(a)})()}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[Z],decls:90,vars:41,consts:[[1,"settingsItem","row","p-3"],[4,"ngIf"],[1,"input-group","mb-1"],["for","inputGroupSelect01",1,"input-group-text","w-25"],["id","inputGroupSelect01",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngIf"],[3,"ngValue"],["for","inputGroupSelect02",1,"input-group-text","w-25"],["id","inputGroupSelect02",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect03",1,"input-group-text","w-25"],["id","inputGroupSelect03",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect04",1,"input-group-text","w-25"],["id","inputGroupSelect04",1,"form-select",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"span"),_(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),g(),T(3,"p"),k(4,jf2,2,0,"span",1),T(5,"p"),p(6,"div",2)(7,"label",3),_(8,"HomeKit Home"),g(),p(9,"select",4),A("ngModelChange",function(r){return i.hkHome=r})("change",function(){return i.update()}),k(10,$f2,2,1,"option",5),p(11,"option",6),_(12,"Eufy Home"),g(),p(13,"option",6),_(14,"Eufy Away"),g(),p(15,"option",6),_(16,"Eufy Schedule"),g(),p(17,"option",6),_(18,"Eufy Custom 1 (Night)"),g(),p(19,"option",6),_(20,"Eufy Custom 2"),g(),p(21,"option",6),_(22,"Eufy Custom 3"),g(),p(23,"option",6),_(24,"Eufy Geofencing"),g(),p(25,"option",6),_(26,"Eufy Disarmed"),g()()(),p(27,"div",2)(28,"label",7),_(29,"HomeKit Away"),g(),p(30,"select",8),A("ngModelChange",function(r){return i.hkAway=r})("change",function(){return i.update()}),k(31,Wf2,2,1,"option",5),p(32,"option",6),_(33,"Eufy Home"),g(),p(34,"option",6),_(35,"Eufy Away"),g(),p(36,"option",6),_(37,"Eufy Schedule"),g(),p(38,"option",6),_(39,"Eufy Custom 1 (Night)"),g(),p(40,"option",6),_(41,"Eufy Custom 2"),g(),p(42,"option",6),_(43,"Eufy Custom 3"),g(),p(44,"option",6),_(45,"Eufy Geofencing"),g(),p(46,"option",6),_(47,"Eufy Disarmed"),g()()(),p(48,"div",2)(49,"label",9),_(50,"HomeKit Night"),g(),p(51,"select",10),A("ngModelChange",function(r){return i.hkNight=r})("change",function(){return i.update()}),k(52,qf2,2,1,"option",5),p(53,"option",6),_(54,"Eufy Home"),g(),p(55,"option",6),_(56,"Eufy Away"),g(),p(57,"option",6),_(58,"Eufy Schedule"),g(),p(59,"option",6),_(60,"Eufy Custom 1 (Night)"),g(),p(61,"option",6),_(62,"Eufy Custom 2"),g(),p(63,"option",6),_(64,"Eufy Custom 3"),g(),p(65,"option",6),_(66,"Eufy Geofencing"),g(),p(67,"option",6),_(68,"Eufy Disarmed"),g()()(),p(69,"div",2)(70,"label",11),_(71,"HomeKit Off"),g(),p(72,"select",12),A("ngModelChange",function(r){return i.hkOff=r})("change",function(){return i.update()}),k(73,Kf2,2,1,"option",5),p(74,"option",6),_(75,"Eufy Home"),g(),p(76,"option",6),_(77,"Eufy Away"),g(),p(78,"option",6),_(79,"Eufy Schedule"),g(),p(80,"option",6),_(81,"Eufy Custom 1 (Night)"),g(),p(82,"option",6),_(83,"Eufy Custom 2"),g(),p(84,"option",6),_(85,"Eufy Custom 3"),g(),p(86,"option",6),_(87,"Eufy Geofencing"),g(),p(88,"option",6),_(89,"Eufy Disarmed"),g()()()()),2&e&&(v(4),M("ngIf",i.accessory),v(5),M("ngModel",i.hkHome),v(1),M("ngIf",i.accessory),v(1),M("ngValue",1),v(2),M("ngValue",0),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngValue",4),v(2),M("ngValue",5),v(2),M("ngValue",47),v(2),M("ngValue",63),v(5),M("ngModel",i.hkAway),v(1),M("ngIf",i.accessory),v(1),M("ngValue",1),v(2),M("ngValue",0),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngValue",4),v(2),M("ngValue",5),v(2),M("ngValue",47),v(2),M("ngValue",63),v(5),M("ngModel",i.hkNight),v(1),M("ngIf",i.accessory),v(1),M("ngValue",1),v(2),M("ngValue",0),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngValue",4),v(2),M("ngValue",5),v(2),M("ngValue",47),v(2),M("ngValue",63),v(5),M("ngModel",i.hkOff),v(1),M("ngIf",i.accessory),v(1),M("ngValue",1),v(2),M("ngValue",0),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngValue",4),v(2),M("ngValue",5),v(2),M("ngValue",47),v(2),M("ngValue",63))},directives:[m1,Ae,a1,e1,w5,z5],encapsulation:2}),t})();var Qf2=s1(172);function Zf2(t,n){if(1&t&&(p(0,"div",7),_(1),g()),2&t){const e=D();v(1),R3(" ",e.failureMessage," ")}}function Jf2(t,n){1&t&&T(0,"span",10)}function Xf2(t,n){1&t&&(p(0,"span"),_(1,"Download Logs"),g())}function eu2(t,n){1&t&&(p(0,"span"),_(1," Generating Log File..."),g())}function tu2(t,n){if(1&t){const e=w1();p(0,"button",8),A("click",function(){return F(e),D().downloadLogs()}),k(1,Jf2,1,0,"span",9),k(2,Xf2,2,0,"span",6),k(3,eu2,2,0,"span",6),g()}if(2&t){const e=D();B("disabled",!!e.isDownloading||null),v(1),M("ngIf",e.isDownloading),v(1),M("ngIf",!e.isDownloading),v(1),M("ngIf",e.isDownloading)}}function nu2(t,n){if(1&t){const e=w1();p(0,"a",11),A("click",function(){return F(e),D().openLink()}),p(1,"span"),_(2,"Download Logs"),g()()}}function iu2(t,n){if(1&t&&(p(0,"small")(1,"i"),_(2),g()()),2&t){const e=D();v(2),R3(" ",e.downloadMessage," ")}}function au2(t,n){1&t&&(p(0,"small")(1,"i"),_(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),T(3,"br"),p(4,"b"),_(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),p(6,"a",12),_(7,"site"),g(),_(8," can help."),g()()())}let ru2=(()=>{class t{constructor(e,i){this.router=e,this.zone=i,this.failed=!1,this.isDownloading=!1,this.hasDownloaded=!1,this.failureMessage="",this.logFileLocation=""}ngOnInit(){this.routeSub=this.router.events.subscribe(e=>{e instanceof Y0&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",e=>{this.updateDownloadMessage(`Compressing ${e.data.numberOfFiles} log files...`)})}downloadLogs(){var e=this;return f2(function*(){try{e.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),a=Qf2.lW.from(i.data),r=new File([a],"logs.zip",{type:"application/zip"}),o=window.URL.createObjectURL(r);e.logFileLocation=o,window.open(e.logFileLocation),e.updateDownloadMessage(void 0),e.hasDownloaded=!0}catch(i){console.log(i);const a=i;e.failed=!0,e.updateDownloadMessage(void 0),e.failureMessage=`Generating of compressed logs.zip file did not complete: ${a.message}`}finally{e.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(e){this.zone.run(()=>{this.downloadMessage=e})}}return t.\u0275fac=function(e){return new(e||t)(b(e3),b(F2))},t.\u0275cmp=n2({type:t,selectors:[["app-download-logs"]],decls:9,vars:5,consts:[[1,"settingsItem","row","p-3"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["type","button","class","btn btn-secondary col-12 col-sm-4",3,"click",4,"ngIf"],["class","btn btn-success col-12 col-sm-4",3,"click",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-secondary","col-12","col-sm-4",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"btn","btn-success","col-12","col-sm-4",3,"click"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(e,i){1&e&&(p(0,"div",0),k(1,Zf2,2,1,"div",1),p(2,"div",2)(3,"span",3),_(4,"Download Logs"),g(),k(5,tu2,4,4,"button",4),k(6,nu2,3,0,"a",5),g(),k(7,iu2,3,1,"small",6),k(8,au2,9,0,"small",6),g()),2&e&&(v(1),M("ngIf",i.failed),v(4),M("ngIf",!i.hasDownloaded),v(1),M("ngIf",i.hasDownloaded),v(1),M("ngIf",i.downloadMessage),v(1),M("ngIf",i.hasDownloaded))},directives:[m1],encapsulation:2}),t})(),ou2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["app-reset-plugin"]],decls:9,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["routerLink","/reset",1,"btn","btn-danger","col-12","col-sm-4"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Reset Plugin"),g(),p(4,"a",3),_(5,"Remove everything"),g()(),p(6,"small")(7,"i"),_(8," This will delete the plugin settings and files. Please be aware that this will not delete any cached accessories from homebridge. You'll have to remove these manually via the homebridge UI. "),g()()())},directives:[pe],encapsulation:2}),t})();function su2(t,n){1&t&&(p(0,"div",5),_(1," Please be advised that we are not reliable for any side effects occur while you try experimental settings."),T(2,"p"),_(3," Also take care to deactivate every experimental setting before disabling 'Experimental Mode'. Just disabling this option, "),p(4,"b"),_(5,"will not"),g(),_(6," return your devices to the default configuration! (e.g. if you enable rtsp streaming on a doorbell, disable it on the device settings before disabling 'Experimental Mode'). "),g())}let cu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"experimentalMode")&&(this.value=this.config.experimentalMode)}update(){this.updateConfig({experimentalMode:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-experimental-mode"]],features:[Z],decls:10,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-warning","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Experimental Mode"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,su2,7,0,"div",4),p(7,"small")(8,"i"),_(9," When enabled, the plugin allows you to change specific behaviour of some eufy devices. For example you can try to enable RTSP streaming on Doorbells (which usually don't support RTSP streaming). "),g()()()),2&e&&(v(5),M("ngModel",i.value),v(1),M("ngIf",i.value))},directives:[U1,a1,e1,m1],encapsulation:2}),t})(),lu2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["app-advanced-config-options"]],decls:27,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"]],template:function(e,i){1&e&&(p(0,"a",0),_(1,"Back to Devices List"),g(),p(2,"div",1)(3,"div",2),_(4," Advanced Settings "),g(),p(5,"div",3),T(6,"app-edit-credentials")(7,"hr")(8,"app-prefer-local")(9,"hr")(10,"app-polling-interval-minutes")(11,"hr")(12,"app-livestream-duration-seconds")(13,"hr")(14,"app-enable-detailed-logging")(15,"hr")(16,"app-omit-log-files")(17,"hr")(18,"app-clean-cache")(19,"hr")(20,"app-guard-modes-mapping")(21,"hr")(22,"app-download-logs")(23,"hr")(24,"app-reset-plugin")(25,"hr")(26,"app-experimental-mode"),g()())},directives:[pe,Of2,Rf2,Pf2,Ff2,Bf2,Uf2,Gf2,Yf2,ru2,ou2,cu2],encapsulation:2}),t})(),Sw=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){if(e.config=yield e.pluginService.getConfig(),e.accessory){const i=e.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(e.config[i])&&(e.value=void 0!==e.config[i].find(a=>a===e.accessory.uniqueId))}})()}update(){var e=this;return f2(function*(){if(!e.accessory)return;const i=e.accessory.station?"ignoreStations":"ignoreDevices";e.config=yield e.pluginService.getConfig(),e.value?Array.isArray(e.config[i])&&!e.config[i].find(a=>a===e.accessory.uniqueId)?e.config[i].push(e.accessory.uniqueId):Array.isArray(e.config[i])||(e.config[i]=[e.accessory.uniqueId]):Array.isArray(e.config[i])&&void 0!==e.config[i].find(a=>a===e.accessory.uniqueId)&&(e.config[i]=e.config[i].filter(a=>a!==e.accessory.uniqueId)),e.pluginService.updateConfig(e.config)})()}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[Z],decls:6,vars:2,consts:[[1,"settingsItem","row","p-3","pb-1"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()()()),2&e&&(v(3),R3("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),v(2),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function Cu2(t,n){1&t&&(p(0,"small")(1,"i"),_(2," This option is disabled since doorbells are handled always as cameras. "),g()())}function fu2(t,n){1&t&&(p(0,"small")(1,"i"),_(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),g()())}let uu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1,this.disabled=!1}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;e.accessory&&T8.isDoorbell(e.accessory.type)&&(e.value=!0,e.disabled=!0,e.update());const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"enableCamera")&&(e.value=a.enableCamera)})()}update(){this.updateConfig({enableCamera:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[Z],decls:12,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],["value","false"],["value","true"],[4,"ngIf"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Operation Mode"),g(),p(4,"div",2)(5,"select",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p(6,"option",4),_(7,"Motion Sensor"),g(),p(8,"option",5),_(9,"Camera"),g()()()(),k(10,Cu2,3,0,"small",6),k(11,fu2,3,0,"small",6),g()),2&e&&(v(5),M("ngModel",i.value),B("disabled",!!i.disabled||null),v(5),M("ngIf",i.disabled),v(1),M("ngIf",!i.disabled))},directives:[Ae,a1,e1,w5,z5,m1],encapsulation:2}),t})();function du2(t,n){1&t&&(p(0,"div",5),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),g())}let hu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1,this.talkbackIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"rtsp")&&(e.value=a.rtsp),a&&Object.prototype.hasOwnProperty.call(a,"talkback")&&(e.talkbackIsEnabled=a.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[Z],decls:11,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Use RTSP streaming"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,du2,2,0,"div",4),p(7,"small")(8,"i"),_(9," Try to utilize RTSP capabilities of some devices. This may result in improved streaming stability. Please be advised that RTSP must be enable within Eufy App first!"),T(10,"br"),g()()()),2&e&&(v(5),M("ngModel",i.value),v(1),M("ngIf",i.talkbackIsEnabled&&i.value))},directives:[U1,a1,e1,m1],encapsulation:2}),t})(),pu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&a.videoConfig&&Object.prototype.hasOwnProperty.call(a.videoConfig,"audio")&&(e.value=a.videoConfig.audio)})()}update(){var e=this;return f2(function*(){var i,a;if(!e.accessory)return;let r=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");r||(r={serialNumber:null===(a=e.accessory)||void 0===a?void 0:a.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(r,"videoConfig")||(r.videoConfig={}),r.videoConfig.audio=e.value,e.updateConfig(r,e.accessory)})()}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[Z],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Audio"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," Try to enable audio streaming for this device."),T(9,"br"),_(10," If you encounter problems try to disable this setting. "),g()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function gu2(t,n){1&t&&(p(0,"div",5),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),g())}let mu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1,this.rtspIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"talkback")&&(e.value=a.talkback),a&&Object.prototype.hasOwnProperty.call(a,"rtsp")&&(e.rtspIsEnabled=a.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[Z],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Talkback (Two way communication)"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,gu2,2,0,"div",4),p(7,"small")(8,"i"),_(9," Enables you to talk with someone infront of the camera while streaming. "),T(10,"p"),_(11," Please be advised that this setting is in an early development stage. If you're experiencing issues while streaming, it is recommened to disable this setting."),T(12,"br"),g()()()),2&e&&(v(5),M("ngModel",i.value),v(1),M("ngIf",i.rtspIsEnabled&&i.value))},directives:[U1,a1,e1,m1],encapsulation:2}),t})(),vu2=(()=>{class t extends o1{constructor(e){super(e),this.enableCameraButton=!0,this.enableMotionButton=!0}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"enableButton")&&(e.enableCameraButton=a.enableButton),a&&Object.prototype.hasOwnProperty.call(a,"motionButton")&&(e.enableMotionButton=a.motionButton)})()}update(){this.updateConfig({enableButton:this.enableCameraButton,motionButton:this.enableMotionButton},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[Z],decls:17,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Display HomeKit button to switch camera on/off"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.enableCameraButton=r})("change",function(){return i.update()}),g()()(),p(6,"div",1)(7,"span"),_(8,"Display HomeKit button to switch motion detection on/off"),g(),p(9,"div",2)(10,"input",3),A("ngModelChange",function(r){return i.enableMotionButton=r})("change",function(){return i.update()}),g()()(),p(11,"small")(12,"i"),_(13," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),p(14,"a",4),_(15,"here"),g(),_(16," for more details. "),g()()()),2&e&&(v(5),M("ngModel",i.enableCameraButton),v(5),M("ngModel",i.enableMotionButton))},directives:[U1,a1,e1],encapsulation:2}),t})(),zi=(()=>{class t{getChargingStatus(e){return f2(function*(){return window.homebridge.request("/getChargingStatus",e)})()}setExperimentalRTSPStatus(e,i){return f2(function*(){return window.homebridge.request("/setExperimentalRTSP",{sn:e,value:i})})()}getExperimentalRTSPStatus(e){return f2(function*(){return window.homebridge.request("/getExperimentalRTSPStatus",e)})()}getStationsCamerasMapping(){return f2(function*(){return window.homebridge.request("/getStationDeviceMapping")})()}getCamerasOnSameStation(e,i=[]){var a=this;return f2(function*(){try{const r=yield a.getStationsCamerasMapping();for(const o of Object.values(r))if(Array.isArray(o)&&o.indexOf(e)>-1){const s=[e];for(const c of o)c!==e&&-1===i.indexOf(c)&&s.push(c);return Promise.resolve(s)}throw new Error("no valid station - devices mapping was found")}catch(r){return Promise.reject(r)}})()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function _u2(t,n){if(1&t&&(p(0,"li"),_(1),g()),2&t){const e=n.$implicit;v(1),ee(e)}}function Mu2(t,n){if(1&t&&(p(0,"div",6),_(1," There are other cameras connected through the same station as this device. One station can only ever stream from one camera at the same time. Therefore it is not possible to use HomeKit Secure Video with this camera since this would lead to conflicts."),T(2,"p"),_(3," Cameras on the same station: "),p(4,"ul"),k(5,_u2,2,1,"li",7),g()()),2&t){const e=D();v(5),M("ngForOf",e.camerasOnSameStation)}}function yu2(t,n){1&t&&(p(0,"div",6),_(1," Since your device is battery powered and currently not charging we don't recommend using this setting. The battery life will most likely decrease significantly. "),g())}function Lu2(t,n){1&t&&(p(0,"div",8),_(1," Please be advised that since your device is only solar powered we cannot guarantee optimal results with this setting. It might well be, that your battery is depleting faster than it can be recharged by the sun. This depends heavily on your exact use case. "),g())}let bu2=(()=>{class t extends o1{constructor(e,i){super(e),this.accessoryService=i,this.value=false,this.chargingStatus=G5.PLUGGED,this.camerasOnSameStation=[]}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");if(a&&Object.prototype.hasOwnProperty.call(a,"hsv")&&(e.value=a.hsv),e.accessory){e.accessoryService.getChargingStatus(e.accessory.uniqueId).then(o=>e.chargingStatus=o);const r=a&&Object.prototype.hasOwnProperty.call(a,"ignoreDevices")?a.ignoreDevices:[];e.accessoryService.getCamerasOnSameStation(e.accessory.uniqueId,r).then(o=>{e.camerasOnSameStation=o,e.camerasOnSameStation.length>1&&(e.value=!1,e.update())})}})()}update(){this.updateConfig({hsv:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(zi))},t.\u0275cmp=n2({type:t,selectors:[["app-enable-hsv"]],inputs:{accessory:"accessory"},features:[Z],decls:20,vars:5,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"],[4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-secondary"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Use HomeKit Secure Video"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,Mu2,6,1,"div",4),k(7,yu2,2,0,"div",4),k(8,Lu2,2,0,"div",5),p(9,"small")(10,"i"),_(11," This feature is in an experimental state and can have some side-effects due to technical limitations imposed by the connection to the eufy device. "),T(12,"p"),p(13,"ul")(14,"li"),_(15,"The device will record until the HomeKit-Controller cancels the recording, or up to a maximum of three minutes. However Apple analyzes the recorded video and only shows the snippets containing an actual event."),g(),p(16,"li"),_(17,"Due to the continued recording the power consumption will be higher than with the native recording through the eufy app. Keep this in mind, if you use battery powered devices."),g(),p(18,"li"),_(19,"If you use low performance hardware the recording might interfere with livestreaming. You might be able to utilize the 'copy' preset in advanced configuration to mitigate this."),g()()()()()),2&e&&(v(5),M("ngModel",i.value),B("disabled",i.camerasOnSameStation.length>1||null),v(1),M("ngIf",i.camerasOnSameStation.length>1),v(1),M("ngIf",2===i.chargingStatus&&i.value),v(1),M("ngIf",4===i.chargingStatus&&i.value))},directives:[U1,a1,e1,m1,ae],encapsulation:2}),t})(),Vu2=(()=>{class t extends o1{constructor(e){super(e),this.value=false}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"unbridge")&&(e.value=a.unbridge)})()}update(){this.updateConfig({unbridge:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-unbridge-accessory"]],inputs:{accessory:"accessory"},features:[Z],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Unbridge Camera"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),p(9,"a",4),_(10,"here"),g(),_(11," for mor details. "),g()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function Hu2(t,n){if(1&t&&(p(0,"li"),_(1),g()),2&t){const e=n.$implicit;v(1),ee(e)}}function wu2(t,n){if(1&t&&(p(0,"div",8),_(1," There are other cameras connected through the same station as this device. One station can only ever stream from one camera at the same time. Therefore it is not possible to use another snapshot method other than cloud snapshots."),T(2,"p"),_(3," Cameras on the same station: "),p(4,"ul"),k(5,Hu2,2,1,"li",9),g()()),2&t){const e=D();v(5),M("ngForOf",e.camerasOnSameStation)}}function zu2(t,n){1&t&&(p(0,"div",8)(1,"b"),_(2,"Caution!"),g(),_(3," While Force Refresh Snapshots will deliver most up-to-date snapshots, this can have negative effects on HomeKit behaviour. For example starting a livestream might be delayed as a side effect by this option. See "),p(4,"a",10),_(5,"here"),g(),_(6," for more informtaion. "),g())}function Su2(t,n){1&t&&(p(0,"div",8),_(1," Since your device is battery powered and currently not charging we don't recommend using this setting. The battery life will most likely decrease significantly. "),g())}function Du2(t,n){1&t&&(p(0,"div",11),_(1," Please be advised that since your device is only solar powered we cannot guarantee optimal results with this setting. It might well be, that your battery is depleting faster than it can be recharged by the sun. This depends heavily on your exact use case. "),g())}function xu2(t,n){if(1&t&&(p(0,"small")(1,"i")(2,"b"),_(3,"Description:"),g(),_(4," The plugin will try to get the latest possible snapshot. If none is present the plugin will start a livestream to render one frame."),T(5,"br"),_(6," This process might take a few seconds and can slow down your homebridge instance for this duration. If you encounter problems with this method please try another. "),T(7,"p")(8,"fa-icon",12),_(9," Up-to-date Snapshots (events)"),T(10,"br")(11,"fa-icon",12),_(12," Up-to-date Snapshots (HomeKit View)"),T(13,"br")(14,"fa-icon",13),_(15," Performance"),T(16,"br")(17,"fa-icon",13),_(18," Battery life"),T(19,"br"),g()()),2&t){const e=D();v(8),M("icon",e.plusIcon),v(3),M("icon",e.plusIcon),v(3),M("icon",e.minusIcon),v(3),M("icon",e.minusIcon)}}function Nu2(t,n){if(1&t&&(p(0,"small")(1,"i")(2,"b"),_(3,"Description:"),g(),_(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),T(5,"br"),_(6," After one second the snapshot will be delivered - if necessary by using an older snapshot. For events the plugin will wait on a new snapshot. "),T(7,"p")(8,"fa-icon",12),_(9," Up-to-date Snapshots (events)"),T(10,"br")(11,"fa-icon",14),_(12," Up-to-date Snapshots (HomeKit View)"),T(13,"br")(14,"fa-icon",12),_(15," Performance"),T(16,"br")(17,"fa-icon",13),_(18," Battery life"),T(19,"br"),g()()),2&t){const e=D();v(8),M("icon",e.plusIcon),v(3),M("icon",e.mediumIcon),v(3),M("icon",e.plusIcon),v(3),M("icon",e.minusIcon)}}function Tu2(t,n){if(1&t&&(p(0,"small")(1,"i")(2,"b"),_(3,"Description:"),g(),_(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),T(5,"br"),_(6," If an event, like motion or doorbell ring oocurs, the plugin will try to wait for a cloud snapshot to be provided. But the periodic snapshots in homekit will most likely be outdated (e.g. up to a few hours old). "),T(7,"p")(8,"fa-icon",12),_(9," Up-to-date Snapshots (events)"),T(10,"br")(11,"fa-icon",13),_(12," Up-to-date Snapshots (HomeKit View)"),T(13,"br")(14,"fa-icon",12),_(15," Performance"),T(16,"br")(17,"fa-icon",12),_(18," Battery life"),T(19,"br"),g()()),2&t){const e=D();v(8),M("icon",e.plusIcon),v(3),M("icon",e.minusIcon),v(3),M("icon",e.plusIcon),v(3),M("icon",e.plusIcon)}}let Eu2=(()=>{class t extends o1{constructor(e,i){super(e),this.accessoryService=i,this.plusIcon=QM,this.minusIcon=WM,this.mediumIcon=zM,this.value=3,this.chargingStatus=G5.PLUGGED,this.camerasOnSameStation=[]}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");if(a&&Object.prototype.hasOwnProperty.call(a,"snapshotHandlingMethod")?e.value=a.snapshotHandlingMethod:a&&Object.prototype.hasOwnProperty.call(a,"forcerefreshsnap")&&(e.value=a.forcerefreshsnap?1:3),e.accessory){e.accessoryService.getChargingStatus(e.accessory.uniqueId).then(o=>e.chargingStatus=o);const r=a&&Object.prototype.hasOwnProperty.call(a,"ignoreDevices")?a.ignoreDevices:[];e.accessoryService.getCamerasOnSameStation(e.accessory.uniqueId,r).then(o=>{e.camerasOnSameStation=o,e.camerasOnSameStation.length>1&&(e.value=3,e.update())})}})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(zi))},t.\u0275cmp=n2({type:t,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[Z],decls:19,vars:12,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],[4,"ngFor","ngForOf"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Streaming-Settings#streams-take-a-long-time-to-start","target","_blank","rel","noopener noreferrer"],["role","alert",1,"alert","alert-secondary"],["size","xs",1,"m-1",2,"color","#7FFF00",3,"icon"],["size","xs",1,"m-1",2,"color","#B22222",3,"icon"],["size","xs",1,"m-1",2,"color","#FF8C00",3,"icon"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Snapshot Handling Method"),g(),p(4,"div",2)(5,"select",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p(6,"option",4),_(7,"Force Refresh Snapshots"),g(),p(8,"option",4),_(9,"Balanced"),g(),p(10,"option",4),_(11,"Cloud Snapshots"),g()()()(),k(12,wu2,6,1,"div",5),k(13,zu2,7,0,"div",5),k(14,Su2,2,0,"div",5),k(15,Du2,2,0,"div",6),k(16,xu2,20,4,"small",7),k(17,Nu2,20,4,"small",7),k(18,Tu2,20,4,"small",7),g()),2&e&&(v(5),M("ngModel",i.value),B("disabled",i.camerasOnSameStation.length>1||null),v(1),M("ngValue",1),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngIf",i.camerasOnSameStation.length>1),v(1),M("ngIf",1===i.value),v(1),M("ngIf",2===i.chargingStatus&&1===i.value),v(1),M("ngIf",4===i.chargingStatus&&1===i.value),v(1),M("ngIf",1===i.value),v(1),M("ngIf",2===i.value),v(1),M("ngIf",3===i.value))},directives:[Ae,a1,e1,w5,z5,m1,ae,H9],encapsulation:2}),t})(),Au2=(()=>{class t extends o1{constructor(e){super(e),this.value=false}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"immediateRingNotificationWithoutSnapshot")&&(e.value=a.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[Z],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Immediate Notification on ring events"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," In general Homekit will try to get a snapshot to show it in it's push notifications. Since the process to genereate a snapshot takes some time the push notification will be delayed by this time difference. This option allows to generate an empty snapshot on ringing events to speed up the push notification. This can safe up to 10 seconds between the event and the corresponding notification on your device."),T(9,"br"),p(10,"b"),_(11,"This option however delivers most likely an empty (black) snapshot on those events!"),g()()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})(),ku2=(()=>{class t extends o1{constructor(e){super(e),this.value=false}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"delayCameraSnapshot")&&(e.value=a.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[Z],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Night-Vision Improvement for camera snapshots"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," Force night vision on dark snapshots to improve the image."),T(9,"br"),p(10,"b"),_(11,"The snapshot request will be delayed by half a second if you enable this setting."),g()()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function Iu2(t,n){1&t&&(p(0,"div",12),_(1," Since your device is battery powered and currently not charging we don't recommend using this setting. The battery life will most likely decrease significantly. "),g())}function Ou2(t,n){1&t&&(p(0,"div",13),_(1," Please be advised that since your device is only solar powered we cannot guarantee optimal results with this setting. It might well be, that your battery is depleting faster than it can be recharged by the sun. This depends heavily on your exact use case. "),g())}let Ru2=(()=>{class t extends o1{constructor(e,i){super(e),this.accessoryService=i,this.value=0,this.inputIsInvalid=!1,this.chargingStatus=G5.PLUGGED}ngOnInit(){this.readValue(),this.accessory&&this.accessoryService.getChargingStatus(this.accessory.uniqueId).then(e=>this.chargingStatus=e)}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"refreshSnapshotIntervalMinutes")&&(e.value=a.refreshSnapshotIntervalMinutes)})()}switchSetting(){this.value=0===this.value?30:0,this.update()}update(){!this.validate()||this.updateConfig({refreshSnapshotIntervalMinutes:this.value},this.accessory)}validate(){return this.inputIsInvalid=!1,(null==this.value||this.value<5&&0!==this.value)&&(this.inputIsInvalid=!0),!this.inputIsInvalid}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(zi))},t.\u0275cmp=n2({type:t,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[Z],decls:27,vars:5,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"],["role","alert",1,"alert","alert-warning"],["role","alert",1,"alert","alert-secondary"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Periodic Snapshot Refresh"),g(),p(4,"div",2)(5,"input",3),A("change",function(){return i.switchSetting()}),g()()(),k(6,Iu2,2,0,"div",4),k(7,Ou2,2,0,"div",5),p(8,"div",6)(9,"span"),_(10,"Refresh Interval"),g(),p(11,"div",7)(12,"div",8)(13,"input",9),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g(),p(14,"div",10)(15,"span",11),_(16,"minutes"),g()()()()(),p(17,"small")(18,"i"),_(19," This option will force a snapshot to be generated every x minutes. This snapshot will then be used for homekit. So that your snapshots will never be older than this."),T(20,"br"),_(21," Best used with 'Cloud Snapshots' handling method."),T(22,"br"),_(23," Every setting below 5 minutes will be discarded due to performance reasons."),T(24,"br"),p(25,"b"),_(26,"Don't use this with the 'Force Refresh Snapshots' method, since it will have negligible effects other than slowing down homebridge and decreasing possible battery life."),g()()()()),2&e&&(v(5),B("checked",i.value>0||null),v(1),M("ngIf",2===i.chargingStatus&&i.value>0),v(1),M("ngIf",4===i.chargingStatus&&i.value>0),v(6),M("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[m1,H5,xe,a1,e1],encapsulation:2}),t})(),Pu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"forcerefreshsnap")&&(e.value=a.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[Z],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Force Refresh Snapshot (Deprecated)"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," When enabled, we will start stream for one frame and use as a snapshot (this can affect the battery life). If it's disabled, we will use the Eufy Cloud API one (which could be really old)."),T(9,"br"),_(10," This option is only used if you have disabled enhanced snapshot handling. "),g()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function Fu2(t,n){if(1&t&&(p(0,"div",8),_(1),g()),2&t){const e=D();v(1),R3(" There was an error setting the RTSP status: ",e.error.message," ")}}function Bu2(t,n){1&t&&(p(0,"div",9),_(1," To utilize RTSP streaming, you'll also have to enable the RTSP setting above. "),g())}function Uu2(t,n){1&t&&(p(0,"div"),_(1,"Current RTSP state of this device:"),g())}function Gu2(t,n){1&t&&(p(0,"div",10)(1,"span",11),_(2,"Loading..."),g()())}function ju2(t,n){if(1&t&&(p(0,"b"),_(1),g()),2&t){const e=D();v(1),ee(e.state?"On":"Off")}}function $u2(t,n){1&t&&(p(0,"div"),_(1,"RTSP url for this device:"),g())}let Wu2=(()=>{class t extends o1{constructor(e,i){super(e),this.accessoryService=i,this.value=!1,this.rtspSetting=!1,this.waiting=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"experimentalRTSP")&&(e.value=a.experimentalRTSP),a&&Object.prototype.hasOwnProperty.call(a,"rtsp")&&(e.rtspSetting=a.rtsp),e.getCurrentRTSPValues()})()}getCurrentRTSPValues(){this.accessory&&this.accessoryService.getExperimentalRTSPStatus(this.accessory.uniqueId).then(e=>{this.waiting=!1,this.state=e.state,this.url=e.url})}update(){this.updateConfig({experimentalRTSP:this.value},this.accessory),this.accessory&&(this.waiting=!0,this.accessoryService.setExperimentalRTSPStatus(this.accessory.uniqueId,this.value).then(e=>{this.rtspUrl=e,this.getCurrentRTSPValues()}).catch(e=>this.error=e))}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(zi))},t.\u0275cmp=n2({type:t,selectors:[["app-experimental-rtsp"]],inputs:{accessory:"accessory"},features:[Z],decls:20,vars:8,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],[4,"ngIf"],["class","spinner-border spinner-border-sm","role","status",4,"ngIf"],["role","alert",1,"alert","alert-danger"],["role","alert",1,"alert","alert-warning"],["role","status",1,"spinner-border","spinner-border-sm"],[1,"sr-only"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable experimental RTSP streaming capabilities"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,Fu2,2,1,"div",4),k(7,Bu2,2,0,"div",5),p(8,"div",1),k(9,Uu2,2,0,"div",6),k(10,Gu2,3,0,"div",7),k(11,ju2,2,1,"b",6),g(),p(12,"div",1),k(13,$u2,2,0,"div",6),p(14,"div"),_(15),g()(),p(16,"small")(17,"i"),_(18," Most devices that don't support RTSP streaming officially have the ability nonetheless. You can try to enable it with this setting."),T(19,"br"),g()()()),2&e&&(v(5),M("ngModel",i.value),v(1),M("ngIf",void 0!==i.error),v(1),M("ngIf",i.value&&!i.rtspSetting),v(2),M("ngIf",void 0!==i.state),v(1),M("ngIf",i.waiting),v(1),M("ngIf",!i.waiting),v(2),M("ngIf",i.url),v(2),ee(i.url))},directives:[U1,a1,e1,m1],encapsulation:2}),t})();var Fw={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 336c-18 0-32 14-32 32s13.1 32 32 32c17.1 0 32-14 32-32S273.1 336 256 336zM289.1 128h-51.1C199 128 168 159 168 198c0 13 11 24 24 24s24-11 24-24C216 186 225.1 176 237.1 176h51.1C301.1 176 312 186 312 198c0 8-4 14.1-11 18.1L244 251C236 256 232 264 232 272V288c0 13 11 24 24 24S280 301 280 288V286l45.1-28c21-13 34-36 34-60C360 159 329 128 289.1 128z"]};function tg2(t,n){1&t&&(p(0,"span")(1,"b"),_(2,"Advanced Video Config"),g()())}function ng2(t,n){1&t&&(p(0,"button",4)(1,"span")(2,"b"),_(3,"Advanced Video Config"),g()()())}function ig2(t,n){if(1&t&&(p(0,"div"),_(1),g()),2&t){const e=D(2);v(1),R3(" ",e.presetDescription," ")}}function ag2(t,n){if(1&t){const e=w1();_(0," The following options directly change the way how ffmpeg is configured when a stream is started. If configured incorrectly these will most likely result in faulty streams or bad streaming performance. "),T(1,"p"),_(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),T(3,"p"),p(4,"div",5)(5,"div",6)(6,"select",7),A("ngModelChange",function(a){return F(e),D().preset=a})("change",function(){return F(e),D().loadPreset()}),p(7,"option",8),_(8,"No Preset (default)"),g(),p(9,"option",8),_(10,"Copy"),g(),p(11,"option",8),_(12,"Performance"),g(),p(13,"option",8),_(14,"Custom"),g()()()(),k(15,ig2,2,1,"div",9),T(16,"p"),p(17,"div",10)(18,"div",11),_(19," General Settings "),g(),p(20,"ul",12)(21,"li",13)(22,"div",14)(23,"input",15),A("ngModelChange",function(a){return F(e),D().debug=a})("change",function(){return F(e),D().update()}),g(),p(24,"label",16),_(25," ffmpeg Debug "),T(26,"fa-icon",17),g()()(),p(27,"li",13)(28,"label",18)(29,"div",14)(30,"input",19),A("change",function(){F(e);const a=D();return a.videoProcessor=void 0===a.videoProcessor?"":void 0,a.update()}),g(),p(31,"label",20),_(32," (path to) ffmpeg executable "),T(33,"fa-icon",21),g()()(),p(34,"input",22),A("ngModelChange",function(a){return F(e),D().videoProcessor=a})("change",function(){return F(e),D().update()}),g()(),p(35,"li",13)(36,"div",14)(37,"input",23),A("ngModelChange",function(a){return F(e),D().useSeparateProcesses=a})("change",function(){return F(e),D().update()}),g(),p(38,"label",24),_(39," Use separate processes for video and audio "),T(40,"fa-icon",25),g()()(),p(41,"li",13)(42,"div",14)(43,"input",26),A("ngModelChange",function(a){return F(e),D().readRate=a})("change",function(){return F(e),D().update()}),g(),p(44,"label",27),_(45," readRate "),T(46,"fa-icon",28),g()()(),p(47,"li",13)(48,"label",29)(49,"div",14)(50,"input",30),A("change",function(){F(e);const a=D();return a.probeSize=void 0===a.probeSize?0:void 0,a.update()}),g(),p(51,"label",31),_(52," probeSize "),T(53,"fa-icon",32),g()()(),p(54,"input",33),A("ngModelChange",function(a){return F(e),D().probeSize=a})("change",function(){return F(e),D().update()}),g()(),p(55,"li",13)(56,"label",34)(57,"div",14)(58,"input",35),A("change",function(){F(e);const a=D();return a.analyzeDuration=void 0===a.analyzeDuration?0:void 0,a.update()}),g(),p(59,"label",36),_(60," analyzeDuration "),T(61,"fa-icon",37),g()()(),p(62,"input",38),A("ngModelChange",function(a){return F(e),D().analyzeDuration=a})("change",function(){return F(e),D().update()}),g()(),p(63,"li",13)(64,"label",39)(65,"div",14)(66,"input",40),A("change",function(){F(e);const a=D();return a.maxStreams=void 0===a.maxStreams?2:void 0,a.update()}),g(),p(67,"label",41),_(68," maxStreams "),T(69,"fa-icon",42),g()()(),p(70,"input",43),A("ngModelChange",function(a){return F(e),D().maxStreams=a})("change",function(){return F(e),D().update()}),g()()()(),p(71,"div",10)(72,"div",11),_(73," Video Settings "),g(),p(74,"ul",12)(75,"li",13)(76,"label",44)(77,"div",14)(78,"input",45),A("change",function(){F(e);const a=D();return a.vcodec=void 0===a.vcodec?"":void 0,a.update()}),g(),p(79,"label",46),_(80," vcodec "),T(81,"fa-icon",47),g()()(),p(82,"input",48),A("ngModelChange",function(a){return F(e),D().vcodec=a})("change",function(){return F(e),D().update()}),g()(),p(83,"li",13)(84,"label",49)(85,"div",14)(86,"input",50),A("change",function(){F(e);const a=D();return a.videoFilter=void 0===a.videoFilter?"":void 0,a.update()}),g(),p(87,"label",51),_(88," videoFilter "),T(89,"fa-icon",52),g()()(),p(90,"input",53),A("ngModelChange",function(a){return F(e),D().videoFilter=a})("change",function(){return F(e),D().update()}),g()(),p(91,"li",13)(92,"label",54)(93,"div",14)(94,"input",55),A("change",function(){F(e);const a=D();return a.encoderOptions=void 0===a.encoderOptions?"":void 0,a.update()}),g(),p(95,"label",56),_(96," encoderOptions "),T(97,"fa-icon",57),g()()(),p(98,"input",58),A("ngModelChange",function(a){return F(e),D().encoderOptions=a})("change",function(){return F(e),D().update()}),g()(),p(99,"li",13)(100,"div",59)(101,"div",60)(102,"label",61)(103,"div",14)(104,"input",62),A("change",function(){F(e);const a=D();return a.maxWidth=void 0===a.maxWidth?0:void 0,a.update()}),g(),p(105,"label",63),_(106," maxWidth "),T(107,"fa-icon",64),g()()(),p(108,"input",65),A("ngModelChange",function(a){return F(e),D().maxWidth=a})("change",function(){return F(e),D().update()}),g()(),p(109,"span",66),_(110,"x"),g(),p(111,"div",67)(112,"label",68)(113,"div",14)(114,"input",69),A("change",function(){F(e);const a=D();return a.maxHeight=void 0===a.maxHeight?0:void 0,a.update()}),g(),p(115,"label",70),_(116," maxHeight "),T(117,"fa-icon",71),g()()(),p(118,"input",72),A("ngModelChange",function(a){return F(e),D().maxHeight=a})("change",function(){return F(e),D().update()}),g()()()(),p(119,"li",13)(120,"div",14)(121,"input",73),A("ngModelChange",function(a){return F(e),D().crop=a})("change",function(){return F(e),D().update()}),g(),p(122,"label",74),_(123," force crop image to requested/defined resolution "),T(124,"fa-icon",75),g()()(),p(125,"li",13)(126,"label",76)(127,"div",14)(128,"input",77),A("change",function(){F(e);const a=D();return a.maxFPS=void 0===a.maxFPS?0:void 0,a.update()}),g(),p(129,"label",78),_(130," fps "),T(131,"fa-icon",79),g()()(),p(132,"input",80),A("ngModelChange",function(a){return F(e),D().maxFPS=a})("change",function(){return F(e),D().update()}),g()(),p(133,"li",13)(134,"label",81)(135,"div",14)(136,"input",82),A("change",function(){F(e);const a=D();return a.maxBitrate=void 0===a.maxBitrate?0:void 0,a.update()}),g(),p(137,"label",83),_(138," bitrate "),T(139,"fa-icon",84),g()()(),p(140,"input",85),A("ngModelChange",function(a){return F(e),D().maxBitrate=a})("change",function(){return F(e),D().update()}),g()()()(),p(141,"div",10)(142,"div",11),_(143," Audio Settings "),g(),p(144,"ul",12)(145,"li",13)(146,"label",86)(147,"div",14)(148,"input",87),A("change",function(){F(e);const a=D();return a.acodecHK=void 0===a.acodecHK?"AAC-eld":void 0,a.update()}),g(),p(149,"label",88),_(150," Audio Codec that will be requested by HomeKit. "),T(151,"fa-icon",89),g()()(),p(152,"select",90),A("ngModelChange",function(a){return F(e),D().acodecHK=a})("change",function(){return F(e),D().update()}),p(153,"option",8),_(154,"AAC-eld"),g(),p(155,"option",8),_(156,"OPUS"),g()()(),p(157,"li",13)(158,"label",91)(159,"div",14)(160,"input",92),A("change",function(){F(e);const a=D();return a.acodec=void 0===a.acodec?"":void 0,a.update()}),g(),p(161,"label",93),_(162," Forced audio codec "),T(163,"fa-icon",94),g()()(),p(164,"input",95),A("ngModelChange",function(a){return F(e),D().acodec=a})("change",function(){return F(e),D().update()}),g()(),p(165,"li",13)(166,"label",96)(167,"div",14)(168,"input",97),A("change",function(){F(e);const a=D();return a.acodecOptions=void 0===a.acodecOptions?"":void 0,a.update()}),g(),p(169,"label",98),_(170," Audio Codec encoding options "),T(171,"fa-icon",99),g()()(),p(172,"input",100),A("ngModelChange",function(a){return F(e),D().acodecOptions=a})("change",function(){return F(e),D().update()}),g()(),p(173,"li",13)(174,"label",101)(175,"div",14)(176,"input",102),A("change",function(){F(e);const a=D();return a.audioSampleRate=void 0===a.audioSampleRate?16:void 0,a.update()}),g(),p(177,"label",103),_(178," samplerate "),T(179,"fa-icon",104),g()()(),p(180,"select",105),A("ngModelChange",function(a){return F(e),D().audioSampleRate=a})("change",function(){return F(e),D().update()}),p(181,"option",8),_(182,"8 kHz"),g(),p(183,"option",8),_(184,"16 kHz"),g(),p(185,"option",8),_(186,"24 kHz"),g()()(),p(187,"li",13)(188,"label",106)(189,"div",14)(190,"input",107),A("change",function(){F(e);const a=D();return a.audioBitrate=void 0===a.audioBitrate?24:void 0,a.update()}),g(),p(191,"label",108),_(192," audio bitrate "),T(193,"fa-icon",109),g()()(),p(194,"input",110),A("ngModelChange",function(a){return F(e),D().audioBitrate=a})("change",function(){return F(e),D().update()}),g()()()()}if(2&t){const e=D();v(6),M("ngModel",e.preset),v(1),M("ngValue",0),v(2),M("ngValue",1),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngIf",e.presetDescription),v(8),M("ngModel",e.debug),v(3),M("icon",e.faQuestionCircle),v(4),M("checked",void 0!==e.videoProcessor||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.videoProcessor),B("disabled",void 0===e.videoProcessor||null),v(3),M("ngModel",e.useSeparateProcesses),v(3),M("icon",e.faQuestionCircle),v(3),M("ngModel",e.readRate),v(3),M("icon",e.faQuestionCircle),v(4),M("checked",void 0!==e.probeSize||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.probeSize),B("disabled",void 0===e.probeSize||null),v(4),M("checked",void 0!==e.analyzeDuration||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.analyzeDuration),B("disabled",void 0===e.analyzeDuration||null),v(4),M("checked",void 0!==e.maxStreams||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxStreams),B("disabled",void 0===e.maxStreams||null),v(8),M("checked",void 0!==e.vcodec||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.vcodec),B("disabled",void 0===e.vcodec||null),v(4),M("checked",void 0!==e.videoFilter||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.videoFilter),B("disabled",void 0===e.videoFilter||"copy"===e.vcodec||null),v(4),M("checked",void 0!==e.encoderOptions||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.encoderOptions),B("placeholder",void 0!==e.encoderOptions?"":e.vcodecOptionsPlaceholder)("disabled",void 0===e.encoderOptions||"copy"===e.vcodec||null),v(6),M("checked",void 0!==e.maxWidth||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxWidth),B("disabled",void 0===e.maxWidth||"copy"===e.vcodec||null),v(6),M("checked",void 0!==e.maxHeight||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxHeight),B("disabled",void 0===e.maxHeight||"copy"===e.vcodec||null),v(3),M("ngModel",e.crop),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(4),M("checked",void 0!==e.maxFPS||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxFPS),B("disabled",void 0===e.maxFPS||"copy"===e.vcodec||null),v(4),M("checked",void 0!==e.maxBitrate||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxBitrate),B("disabled",void 0===e.maxBitrate||"copy"===e.vcodec||null),v(8),M("checked",void 0!==e.acodecHK||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.acodecHK),B("disabled",void 0===e.acodecHK||null),v(1),M("ngValue","AAC-eld"),v(2),M("ngValue","OPUS"),v(5),M("checked",void 0!==e.acodec||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.acodec),B("placeholder",e.acodecPlaceholder)("disabled",void 0===e.acodec||null),v(4),M("checked",void 0!==e.acodecOptions||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.acodecOptions),B("placeholder",void 0!==e.acodecOptions?"":e.acodecOptionsPlaceholder)("disabled",void 0===e.acodecOptions||null),v(4),M("checked",void 0!==e.audioSampleRate||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.audioSampleRate),B("disabled",void 0===e.audioSampleRate||null),v(1),M("ngValue",8),v(2),M("ngValue",16),v(2),M("ngValue",24),v(5),M("checked",void 0!==e.audioBitrate||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.audioBitrate),B("disabled",void 0===e.audioBitrate||null)}}let rg2=(()=>{class t extends o1{constructor(e){super(e),this.faQuestionCircle=Fw,this.debug=void 0,this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.crop=void 0,this.audioSampleRate=void 0,this.audioBitrate=void 0,this.acodecHK=void 0,this.acodecOptions=void 0,this.videoProcessor=void 0,this.preset=0,this.acodecPlaceholder="libfdk_aac",this.acodecOptionsPlaceholder="-profile:a aac_eld",this.vcodecOptionsPlaceholder="-preset ultrafast -tune zerolatency"}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"videoConfig")&&Object.entries(a.videoConfig).forEach(([r,o])=>{e[r]=o}),e.placeholderUpdate(),e.updatePreset()})()}placeholderUpdate(){switch(this.acodecHK){case"ACC-eld":default:this.acodecPlaceholder="libfdk_aac",this.acodecOptionsPlaceholder="-profile:a aac_eld";break;case"OPUS":this.acodecPlaceholder="libopus",this.acodecOptionsPlaceholder="-application lowdelay"}switch(this.vcodec){case"copy":this.vcodecOptionsPlaceholder="";break;case"":case"libx264":case void 0:this.vcodecOptionsPlaceholder="-preset ultrafast -tune zerolatency";break;default:this.vcodecOptionsPlaceholder="leave blank if you don't know"}}loadPreset(){0===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.crop=void 0,this.presetDescription=void 0):1===this.preset?(this.readRate=void 0,this.vcodec="copy",this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.crop=void 0,this.presetDescription="Most eufy cams support the same codec that HomeKit requests. You can try and 'forward' the stream directly without encoding it with ffmpeg. This can increase performance and quality drastically."):2===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=640,this.maxHeight=480,this.maxFPS=15,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.crop=void 0,this.presetDescription="This preset tries to increase performance by reducing the quality of the stream. This can work for low performance hardware like raspberry pis."):this.presetDescription=void 0,this.update()}updatePreset(){let e=3;!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&void 0===this.useSeparateProcesses&&void 0===this.crop&&(e=0),!this.readRate&&"copy"===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&void 0===this.crop&&(e=1),!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&640===this.maxWidth&&480===this.maxHeight&&15===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&void 0===this.crop&&(e=2),e!==this.preset&&(this.preset=e)}update(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||""),r=a&&Object.prototype.hasOwnProperty.call(a,"videoConfig")?a.videoConfig:{},o={};Object.prototype.hasOwnProperty.call(r,"audio")&&(o.audio=r.audio),e.debug&&(o.debug=e.debug),e.readRate&&(o.readRate=e.readRate),e.vcodec&&""!==e.vcodec&&(o.vcodec=e.vcodec),e.acodec&&""!==e.acodec&&(o.acodec=e.acodec),e.videoFilter&&""!==e.videoFilter&&(o.videoFilter=e.videoFilter),void 0!==e.encoderOptions&&(o.encoderOptions=e.encoderOptions),void 0!==e.probeSize&&(o.probeSize=e.probeSize),void 0!==e.analyzeDuration&&(o.analyzeDuration=e.analyzeDuration),void 0!==e.maxStreams&&(o.maxStreams=e.maxStreams),void 0!==e.maxWidth&&(o.maxWidth=e.maxWidth),void 0!==e.maxHeight&&(o.maxHeight=e.maxHeight),void 0!==e.maxFPS&&(o.maxFPS=e.maxFPS),void 0!==e.maxBitrate&&(o.maxBitrate=e.maxBitrate),e.useSeparateProcesses&&(o.useSeparateProcesses=e.useSeparateProcesses),e.crop&&(o.crop=e.crop),void 0!==e.audioSampleRate&&(o.audioSampleRate=e.audioSampleRate),void 0!==e.audioBitrate&&(o.audioBitrate=e.audioBitrate),e.acodecHK&&""!==e.acodecHK&&(o.acodecHK=e.acodecHK),void 0!==e.acodecOptions&&(o.acodecOptions=e.acodecOptions),e.videoProcessor&&""!==e.videoProcessor&&(o.videoProcessor=e.videoProcessor),e.updateConfig({videoConfig:o},e.accessory),e.placeholderUpdate(),e.updatePreset()})()}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[Z],decls:6,vars:0,consts:[["acc","ngbAccordion"],["ngbPanelTitle","","class","accordion-header"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","",1,"accordion-button"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Presets",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],[1,"card","mb-3"],[1,"card-header"],[1,"list-group","list-group-flush"],[1,"list-group-item"],[1,"form-check"],["type","checkbox","id","ffmpegDebug",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","ffmpegDebug",1,"form-check-label"],["ngbTooltip","Enable debug messages in the plugin log for ffmpeg processes.",1,"m-1",3,"icon"],["for","videoProcessorInput",1,"form-label"],["type","checkbox","id","videoProcessor",1,"form-check-input",3,"checked","change"],["for","videoProcessor",1,"form-check-label"],["ngbTooltip","If you have another ffmpeg binary (e.g. self compiled) that you want to use, you can enter the path here. By default the npm package 'ffmpeg-for-homebridge' will be used.",1,"m-1",3,"icon"],["type","text","id","videoProcessorInput","placeholder","ffmpeg-for-homebridge",1,"form-control",3,"ngModel","ngModelChange","change"],["type","checkbox","id","useSeparateProcesses",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","useSeparateProcesses",1,"form-check-label"],["ngbTooltip","Start audio and video processes in their own process instead of mixing them up. This can reduce start up times of streams but also can cause errors in rare cases.",1,"m-1",3,"icon"],["type","checkbox","id","readRate",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","readRate",1,"form-check-label"],["ngbTooltip","Add -re argument to ffmpeg processes. This is normally not necessary for streaming purposes.",1,"m-1",3,"icon"],["for","probeSizeInput",1,"form-label"],["type","checkbox","id","probeSize",1,"form-check-input",3,"checked","change"],["for","probeSize",1,"form-check-label"],["ngbTooltip","Set the size of streaming data that is analyzed to get stream information.",1,"m-1",3,"icon"],["type","number","id","probeSizeInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","analyzeDurationInput",1,"form-label"],["type","checkbox","id","analyzeDuration",1,"form-check-input",3,"checked","change"],["for","analyzeDuration",1,"form-check-label"],["ngbTooltip","Set how many microseconds are analyzed to probe the input. Higher values will introduce more latency.",1,"m-1",3,"icon"],["type","number","id","analyzeDurationInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","maxStreamsInput",1,"form-label"],["type","checkbox","id","maxStreams",1,"form-check-input",3,"checked","change"],["for","maxStreams",1,"form-check-label"],["ngbTooltip","This setting tells the HomeKit Controller how many concurrent streams can be handled. Default: 2",1,"m-1",3,"icon"],["type","number","id","maxStreamsInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","vcodecInput",1,"form-label"],["type","checkbox","id","vcodec",1,"form-check-input",3,"checked","change"],["for","vcodec",1,"form-check-label"],["ngbTooltip","Choose which video codec should be used to encode the video stream for HomeKit.",1,"m-1",3,"icon"],["type","text","id","vcodecInput","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["for","filterInput",1,"form-label"],["type","checkbox","id","videoFilter",1,"form-check-input",3,"checked","change"],["for","videoFilter",1,"form-check-label"],["ngbTooltip","Set custom filters for video encoding.",1,"m-1",3,"icon"],["type","text","id","filterInput","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["for","encoderOptionsInput",1,"form-label"],["type","checkbox","id","encoderOptions",1,"form-check-input",3,"checked","change"],["for","encoderOptions",1,"form-check-label"],["ngbTooltip","Set custom codec options for video encoding.",1,"m-1",3,"icon"],["type","text","id","encoderOptionsInput",1,"form-control",3,"ngModel","ngModelChange","change"],[1,"row"],[1,"col-sm-5","col-12","mb-2","mb-sm-0"],["for","maxWidthInput",1,"form-label"],["type","checkbox","id","maxWidth",1,"form-check-input",3,"checked","change"],["for","maxWidth",1,"form-check-label"],["ngbTooltip","Maximum width for encoded video stream. Lower Values might improve performance.",1,"m-1",3,"icon"],["type","number","id","maxWidthInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],[1,"col-2","d-none","d-sm-flex","justify-content-center","align-items-end"],[1,"col-sm-5","col-12"],["for","maxHeightInput",1,"form-label"],["type","checkbox","id","maxHeight",1,"form-check-input",3,"checked","change"],["for","maxHeight",1,"form-check-label"],["ngbTooltip","Maximum height for encoded video stream. Lower Values might improve performance.",1,"m-1",3,"icon"],["type","number","id","maxHeightInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["type","checkbox","id","crop",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","crop",1,"form-check-label"],["ngbTooltip","The input might be in another aspect ratio than requested by HomeKit (e.g. Doorbells may stream 1600x1200 -> 4:3 while HomeKit requests 1920x1080 -> 16:9). This setting will ensure that the requested aspect ratio is hit by cropping the image accordingly.",1,"m-1",3,"icon"],["for","maxFPSInput",1,"form-label"],["type","checkbox","id","maxFPS",1,"form-check-input",3,"checked","change"],["for","maxFPS",1,"form-check-label"],["ngbTooltip","Frames per second for the encoded video. If not set the value requested by the HomeKit Controller will be used.",1,"m-1",3,"icon"],["type","number","id","maxFPSInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","mmaxBitrateInput",1,"form-label"],["type","checkbox","id","maxBitrate",1,"form-check-input",3,"checked","change"],["for","maxBitrate",1,"form-check-label"],["ngbTooltip","Bitrate used for the encoded video. If not set the value requested by the HomeKit Controller will be used.",1,"m-1",3,"icon"],["type","number","id","maxBitrateInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","acodecHKInput",1,"form-label"],["type","checkbox","id","acodecHK",1,"form-check-input",3,"checked","change"],["for","acodecHK",1,"form-check-label"],["ngbTooltip","Set the audio codec that will be requested by the HomeKit controller. The actual used codec will be determined by the plugin based by the request and the next setting for forced codec.",1,"m-1",3,"icon"],["id","acodecHKInput","aria-label","acodecHK",1,"form-select",3,"ngModel","ngModelChange","change"],["for","acodecInput",1,"form-label"],["type","checkbox","id","acodec",1,"form-check-input",3,"checked","change"],["for","acodec",1,"form-check-label"],["ngbTooltip","Choose which audio codec should be used to encode the audio stream for HomeKit. This may overwrite the previous setting, but be aware that audio streaming will fail if these settings differ.",1,"m-1",3,"icon"],["type","text","id","acodecInput",1,"form-control",3,"ngModel","ngModelChange","change"],["for","acodecOptionsInput",1,"form-label"],["type","checkbox","id","acodecOptions",1,"form-check-input",3,"checked","change"],["for","acodecOptions",1,"form-check-label"],["ngbTooltip","Set custom codec options for audio encoding.",1,"m-1",3,"icon"],["type","text","id","acodecOptionsInput",1,"form-control",3,"ngModel","ngModelChange","change"],["for","samplerateInput",1,"form-label"],["type","checkbox","id","samplerate",1,"form-check-input",3,"checked","change"],["for","samplerate",1,"form-check-label"],["ngbTooltip","Set the samplerate that the encoded audio should have. The HomeKit Controller might request another samplerate, which then will be used instead.",1,"m-1",3,"icon"],["id","samplerateInput","aria-label","Samplerate",1,"form-select",3,"ngModel","ngModelChange","change"],["for","aBitrateInput",1,"form-label"],["type","checkbox","id","aBitrate",1,"form-check-input",3,"checked","change"],["for","aBitrate",1,"form-check-label"],["ngbTooltip","Set the bitrate for encoded audio. Caution: if set to high the audio stream will be discarded by the HomeKit Controller.",1,"m-1",3,"icon"],["type","number","id","aBitrateInput","placeholder","24",1,"form-control",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"ngb-accordion",null,0)(2,"ngb-panel"),k(3,tg2,3,0,"ng-template",1),k(4,ng2,4,0,"ng-template",2),k(5,ag2,195,100,"ng-template",3),g()())},directives:[Fo,H0,Ro,V0,Bo,Po,Ae,a1,e1,w5,z5,m1,U1,H9,aj,xe,H5],styles:[".accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#00000008!important;color:#000!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed):after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")}.input-group-text[_ngcontent-%COMP%]{padding:.375rem 1rem}"]}),t})();function og2(t,n){1&t&&T(0,"hr")}function sg2(t,n){1&t&&T(0,"app-rtsp-streaming",6),2&t&&M("accessory",D(3).accessory)}function cg2(t,n){1&t&&T(0,"hr")}function lg2(t,n){1&t&&T(0,"app-talkback",6),2&t&&M("accessory",D(3).accessory)}function Cg2(t,n){if(1&t&&(p(0,"div"),T(1,"hr")(2,"app-enable-camera",6),k(3,og2,1,0,"hr",2),k(4,sg2,1,1,"app-rtsp-streaming",7),T(5,"hr")(6,"app-enable-audio",6),k(7,cg2,1,0,"hr",2),k(8,lg2,1,1,"app-talkback",7),g()),2&t){const e=D(2);v(2),M("accessory",e.accessory),v(1),M("ngIf",e.supportsRTSP),v(1),M("ngIf",e.supportsRTSP),v(2),M("accessory",e.accessory),v(1),M("ngIf",e.supportsTalkback),v(1),M("ngIf",e.supportsTalkback)}}function fg2(t,n){if(1&t&&(p(0,"div",3)(1,"div",4)(2,"b"),_(3,"Camera Settings"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",5),T(8,"app-ignore-accessory",6),k(9,Cg2,9,6,"div",2),g()()),2&t){const e=D();v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory),v(1),M("ngIf",e.isCamera)}}function ug2(t,n){if(1&t&&(p(0,"div",3)(1,"div",4)(2,"b"),_(3,"HomeKit Behaviour"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",5),T(8,"app-camera-buttons",6)(9,"hr")(10,"app-enable-hsv",6)(11,"hr")(12,"app-unbridge-accessory",6),g()()),2&t){const e=D(2);v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory),v(2),M("accessory",e.accessory),v(2),M("accessory",e.accessory)}}function dg2(t,n){1&t&&T(0,"hr")}function hg2(t,n){1&t&&T(0,"app-immediate-notification-on-ring",6),2&t&&M("accessory",D(3).accessory)}function pg2(t,n){if(1&t&&(p(0,"div"),T(1,"app-force-refreshsnap",6),g()),2&t){const e=D(3);v(1),M("accessory",e.accessory)}}function gg2(t,n){if(1&t&&(p(0,"div",3)(1,"div",4)(2,"b"),_(3,"Snapshot Behaviour"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",5),T(8,"app-snapshot-handling-method",6),k(9,dg2,1,0,"hr",2),k(10,hg2,1,1,"app-immediate-notification-on-ring",7),T(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),k(15,pg2,2,1,"div",2),g()()),2&t){const e=D(2);v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory),v(1),M("ngIf",e.isDoorbell),v(1),M("ngIf",e.isDoorbell),v(2),M("accessory",e.accessory),v(2),M("accessory",e.accessory),v(1),M("ngIf",!e.showEnhancedSnapshotBehaviour)}}function mg2(t,n){if(1&t&&(p(0,"div",3)(1,"div",4)(2,"b"),_(3,"Experimental Mode - Options"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",5),T(8,"app-experimental-rtsp",6),g()()),2&t){const e=D(2);v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory)}}function vg2(t,n){if(1&t&&(p(0,"div"),T(1,"p"),k(2,ug2,13,5,"div",1),T(3,"p"),k(4,gg2,16,8,"div",1),T(5,"p"),k(6,mg2,9,3,"div",1),T(7,"p")(8,"app-advanced-videoconfig",6),g()),2&t){const e=D();v(2),M("ngIf",e.accessory),v(2),M("ngIf",e.accessory),v(2),M("ngIf",e.accessory&&e.experimentalMode),v(2),M("accessory",e.accessory)}}let _g2=(()=>{class t extends o1{constructor(e,i){super(e),this.route=i,this.showEnhancedSnapshotBehaviour=!0,this.isDoorbell=!1,this.isCamera=!1,this.supportsRTSP=!1,this.supportsTalkback=!1,this.experimentalMode=!1}ngOnInit(){const e=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(e),this.accessory&&(this.isDoorbell=T8.isDoorbell(this.accessory.type),this.isCamera=T8.isCamera(this.accessory.type),this.supportsRTSP=T8.supportsRTSP(this.accessory.type),this.supportsTalkback=T8.supportsTalkback(this.accessory.type),Object.prototype.hasOwnProperty.call(this.config,"experimentalMode")&&this.config.experimentalMode&&(this.supportsRTSP||(this.experimentalMode=!0,this.supportsRTSP=!0)),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(e){this.showEnhancedSnapshotBehaviour=e}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(he))},t.\u0275cmp=n2({type:t,selectors:[["app-camera-config-options"]],features:[Z],decls:4,vars:2,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"],[3,"accessory",4,"ngIf"]],template:function(e,i){1&e&&(p(0,"a",0),_(1,"Back to Devices List"),g(),k(2,fg2,10,4,"div",1),k(3,vg2,9,4,"div",2)),2&e&&(v(2),M("ngIf",i.accessory),v(1),M("ngIf",i.isCamera))},directives:[pe,m1,Sw,uu2,hu2,pu2,mu2,vu2,bu2,Vu2,Eu2,Au2,ku2,Ru2,Pu2,Wu2,rg2],encapsulation:2}),t})();var E8=(()=>{return(t=E8||(E8={}))[t.UNKNOWN=0]="UNKNOWN",t[t.CAPTCHA=1]="CAPTCHA",t[t.TFA=2]="TFA",t[t.TIMEOUT=3]="TIMEOUT",E8;var t})();const Mg2={AF:"Afghanistan",AX:"Aland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Cote D'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and Mcdonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libyan Arab Jamahiriya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestinian Territory, Occupied",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",CS:"Serbia and Montenegro",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turk",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.s.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"};let yg2=(()=>{class t{constructor(e){this.pluginService=e}getCredentials(){var e=this;return f2(function*(){try{const i=yield e.pluginService.getConfig();return i.username&&i.password?Promise.resolve({username:i.username,password:i.password,country:i.country?i.country:"US"}):Promise.reject("no full credentials in config")}catch(i){return Promise.reject("no config")}})()}login(e){return f2(function*(){try{const i=yield window.homebridge.request("/login",e);return Promise.resolve(i)}catch(i){return Promise.reject(i)}})()}updateConfigCredentials(e){var i=this;return f2(function*(){let a={};try{a=yield i.pluginService.getConfig()}catch(r){console.log("Could not get credentials from config: "+r)}a.username=e.username,a.password=e.password,a.country=e.country,yield i.pluginService.updateConfig(a,!0)})()}}return t.\u0275fac=function(e){return new(e||t)(q(O2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Lg2(t,n){1&t&&(I6(),_(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),O6(),T(1,"p"),p(2,"i"),_(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),g())}function bg2(t,n){if(1&t){const e=w1();p(0,"p",10)(1,"ngb-alert",11),A("closed",function(){return F(e),D().resetLoginFailed()}),I6(),p(2,"svg",12),T(3,"use",13),g(),O6(),p(4,"strong"),_(5,"Login was not successful!"),g()()()}2&t&&(v(1),M("dismissible",!0))}function Vg2(t,n){if(1&t&&(p(0,"div",29),I6(),p(1,"svg",30),T(2,"use",31),g(),O6(),p(3,"div"),_(4," Please make sure to restart plugin after you're done. "),p(5,"u",32),_(6," Tell me why... "),g()()()),2&t){D(2);const e=J3(6);v(5),M("autoClose","outside")("ngbPopover",e)}}function Hg2(t,n){if(1&t&&(p(0,"option"),_(1),g()),2&t){const e=n.$implicit,i=D(2);B("value",e.short)("selected",i.credentials.country===e.short||null),v(1),R3("",e.long," ")}}function wg2(t,n){1&t&&T(0,"span",33)}function zg2(t,n){1&t&&(p(0,"span"),_(1,"..."),g())}function Sg2(t,n){if(1&t){const e=w1();p(0,"div"),k(1,Vg2,7,2,"div",14),p(2,"div",15)(3,"input",16),A("ngModelChange",function(a){return F(e),D().credentials.username=a}),g(),p(4,"label",17),_(5,"Email address"),g()(),T(6,"p"),p(7,"div",15)(8,"input",18),A("ngModelChange",function(a){return F(e),D().credentials.password=a}),g(),p(9,"label",19),_(10,"Password"),g()(),p(11,"div",20)(12,"div",21)(13,"select",22),A("ngModelChange",function(a){return F(e),D().credentials.country=a}),k(14,Hg2,2,3,"option",23),g(),p(15,"small")(16,"i"),_(17," Make sure to use the same country that you use to login with the eufy app. "),g()()(),T(18,"span",24),p(19,"div",25)(20,"button",26),A("click",function(){return F(e),D().login()}),k(21,wg2,1,0,"span",27),_(22," Login "),k(23,zg2,2,0,"span",9),g(),p(24,"button",28),A("click",function(){return F(e),D().cancelLogin()}),_(25," Cancel "),g()()()()}if(2&t){const e=D();v(1),M("ngIf",!e.firstLoginAssumed),v(2),M("ngModel",e.credentials.username),B("class",e.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),v(5),M("ngModel",e.credentials.password),B("class",e.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),v(5),M("ngModel",e.credentials.country),B("disabled",!!e.loginInProgress||null),v(1),M("ngForOf",e.countries),v(6),B("disabled",!!e.loginInProgress||null),v(1),M("ngIf",e.loginInProgress),v(2),M("ngIf",e.loginInProgress),v(1),B("disabled",!!e.loginInProgress||null)}}function Dg2(t,n){1&t&&T(0,"span",33)}function xg2(t,n){1&t&&(p(0,"span"),_(1,"..."),g())}function Ng2(t,n){if(1&t){const e=w1();p(0,"div")(1,"div",34),_(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),g(),p(3,"div",6)(4,"div",35)(5,"input",36),A("ngModelChange",function(a){return F(e),D().otp=a}),g(),p(6,"label",37),_(7,"2FA Code"),g()()(),p(8,"div",38)(9,"div",39)(10,"button",40),A("click",function(){return F(e),D().login()}),k(11,Dg2,1,0,"span",27),_(12," Verify "),k(13,xg2,2,0,"span",9),g()()(),p(14,"div",6)(15,"div",39)(16,"button",28),A("click",function(){return F(e),D().cancelLogin()}),_(17," Cancel "),g()()()()}if(2&t){const e=D();v(5),M("ngModel",e.otp),B("class",e.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),v(5),B("disabled",!!e.loginInProgress||null),v(1),M("ngIf",e.loginInProgress),v(2),M("ngIf",e.loginInProgress),v(3),B("disabled",!!e.loginInProgress||null)}}function Tg2(t,n){1&t&&T(0,"span",33)}function Eg2(t,n){1&t&&(p(0,"span"),_(1,"..."),g())}function Ag2(t,n){if(1&t){const e=w1();p(0,"div")(1,"div",34),_(2,"Please enter the captcha below."),g(),p(3,"div",38),T(4,"img",41),g(),p(5,"div",6)(6,"div",35)(7,"input",36),A("ngModelChange",function(a){return F(e),D().captcha=a}),g(),p(8,"label",37),_(9,"Captcha"),g()()(),p(10,"div",38)(11,"div",39)(12,"button",40),A("click",function(){return F(e),D().login()}),k(13,Tg2,1,0,"span",27),_(14," Verify "),k(15,Eg2,2,0,"span",9),g()()(),p(16,"div",6)(17,"div",39)(18,"button",28),A("click",function(){return F(e),D().cancelLogin()}),_(19," Cancel "),g()()()()}if(2&t){const e=D();v(4),M("src",e.captchaImageData,Je),v(3),M("ngModel",e.captcha),B("class",e.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),v(5),B("disabled",!!e.loginInProgress||null),v(1),M("ngIf",e.loginInProgress),v(2),M("ngIf",e.loginInProgress),v(3),B("disabled",!!e.loginInProgress||null)}}var S3=(()=>{return(t=S3||(S3={}))[t.LOGIN=1]="LOGIN",t[t.TFA=2]="TFA",t[t.CAPTCHA=3]="CAPTCHA",S3;var t})();let kg2=(()=>{class t{constructor(e,i){this.loginService=e,this.routerService=i,this.countries=[],this.credentials={username:"",password:"",country:"US"},this.otp="",this.captcha="",this.captchaImageData="",this.captchaId="",this.loginInProgress=!1,this.loginFailed=!1,this.loginStep=S3.LOGIN,this.firstLoginAssumed=!1,this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0,this.captchaIsValid=!0}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(e=>this.credentials=e).catch(e=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+e)})}fillCountryArray(){Object.entries(Mg2).forEach(([e,i])=>{this.countries.push({short:e,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===S3.LOGIN&&this.loginWithCredentials(),this.loginStep===S3.TFA&&this.loginWithTFA(),this.loginStep===S3.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var e=this;return f2(function*(){let i;try{i=yield e.loginService.login(e.credentials)}catch(a){console.log("login error: "+a)}e.evaluateLoginResult(i)})()}loginWithTFA(){var e=this;return f2(function*(){let i;try{i=yield e.loginService.login({verifyCode:e.otp})}catch(a){console.log("login error: "+a)}e.evaluateLoginResult(i)})()}loginWithCaptcha(){var e=this;return f2(function*(){let i;try{i=yield e.loginService.login({captcha:{captchaCode:e.captcha,captchaId:e.captchaId}})}catch(a){console.log("login error: "+a)}e.evaluateLoginResult(i)})()}evaluateLoginResult(e){if(this.loginInProgress=!1,e&&e.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(e&&e.failReason&&e.failReason===E8.TFA)return void(this.loginStep=S3.TFA);if(e&&e.failReason&&e.failReason===E8.CAPTCHA&&e.data&&e.data.id&&e.data.captcha)return this.loginStep=S3.CAPTCHA,this.captchaId=e.data.id,void(this.captchaImageData=e.data.captcha);this.loginStep=S3.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let e=!1;return this.loginStep===S3.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,e=!0),this.loginStep===S3.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,e=!0),this.loginStep===S3.TFA&&this.otp.length<6&&(this.otpIsValid=!1,e=!0),this.loginStep===S3.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,e=!0),e}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return t.\u0275fac=function(e){return new(e||t)(b(yg2),b(e3))},t.\u0275cmp=n2({type:t,selectors:[["app-login"]],decls:13,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg",2,"display","none"],["id","info-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"],["id","exclamation-triangle-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"],["popInfo",""],[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[4,"ngIf"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"],["class","alert alert-warning d-flex align-items-center","role","alert",4,"ngIf"],[1,"form-floating","mb-3"],["type","email","id","floatingInput","placeholder","name@example.com","ngModel","","email","",3,"ngModel","ngModelChange"],["for","floatingInput"],["type","password","id","floatingPassword","placeholder","Password",3,"ngModel","ngModelChange"],["for","floatingPassword"],[1,"row"],[1,"col-12","col-sm-6","mb-3","mb-sm0"],["aria-label","select country",1,"form-select","mb-3",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[1,"col-0","col-sm-1"],[1,"col-12","col-sm-5","text-end","mb-3"],["type","button",1,"btn","btn-success","col-12","mb-3",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["type","button",1,"btn","btn-secondary","col-12",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center"],["width","24","height","24","role","img","aria-label","Warning:",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#info-fill"],["role","button","popoverTitle","Please restart after login",3,"autoClose","ngbPopover"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"row","mb-3"],[1,"form-floating","mb-3","col-8","col-sm-6"],["type","text","id","floatingOTP","placeholder","",3,"ngModel","ngModelChange"],["for","floatingOTP"],[1,"row","d-flex","justify-content-center","mb-3"],[1,"col-8","col-sm-6"],["type","button",1,"btn","btn-success","col-12",3,"click"],[1,"col-10","col-sm-8",3,"src"]],template:function(e,i){1&e&&(I6(),p(0,"svg",0)(1,"symbol",1),T(2,"path",2),g(),p(3,"symbol",3),T(4,"path",4),g()(),k(5,Lg2,4,0,"ng-template",null,5,X3),O6(),p(7,"div",6),k(8,bg2,6,1,"p",7),p(9,"div",8),k(10,Sg2,26,14,"div",9),k(11,Ng2,18,7,"div",9),k(12,Ag2,20,8,"div",9),g()()),2&e&&(v(8),M("ngIf",i.loginFailed),v(2),M("ngIf",1===i.loginStep),v(1),M("ngIf",2===i.loginStep),v(1),M("ngIf",3===i.loginStep))},directives:[m1,ag,JG,xe,a1,e1,yo,Ae,ae,w5,z5],encapsulation:2}),t})(),Ig2=(()=>{class t extends o1{constructor(e){super(e),this.value=[]}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getStationConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Array.isArray(a.manualTriggerModes)&&(e.value=a.manualTriggerModes)})()}toggle(e){-1!==this.value.indexOf(e)?this.value=this.value.filter(i=>i!==e):this.value.push(e)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[Z],decls:36,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"span",1),_(2,"Manual Alarm Trigger Modes"),g(),p(3,"div",2)(4,"span"),_(5,"HomeKit Home"),g(),p(6,"div",3)(7,"input",4),A("change",function(){return i.toggle(0),i.update()}),g()()(),p(8,"div",2)(9,"span"),_(10,"HomeKit Away"),g(),p(11,"div",3)(12,"input",4),A("change",function(){return i.toggle(1),i.update()}),g()()(),p(13,"div",2)(14,"span"),_(15,"HomeKit Night"),g(),p(16,"div",3)(17,"input",4),A("change",function(){return i.toggle(2),i.update()}),g()()(),p(18,"div",2)(19,"span"),_(20,"HomeKit Off/Disarmed"),g(),p(21,"div",3)(22,"input",4),A("change",function(){return i.toggle(3),i.update()}),g()()(),p(23,"small")(24,"i"),_(25," You can manually trigger (and reset) the stations alarm with a switch. Therefore you can utilize non eufy devices (e.g. a motion sensor, leak sensor, break-in sensor, ... from another vendor) to trigger the alarm with a homekit automation."),T(26,"p"),_(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),T(28,"p"),_(29," Please be aware that this setting can only be set on a per station basis and not per automation."),T(30,"br"),_(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),T(32,"p"),_(33," The manual alarm respects the delay alarm on leave settings from the eufy app. Triggered automations while the delay is effective will be ignored."),T(34,"br"),_(35," The native alarm delay setting is currently not supported. "),g()()()),2&e&&(v(7),B("checked",-1!==i.value.indexOf(0)||null),v(5),B("checked",-1!==i.value.indexOf(1)||null),v(5),B("checked",-1!==i.value.indexOf(2)||null),v(5),B("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2}),t})();function Og2(t,n){if(1&t&&(p(0,"div",2)(1,"div",3)(2,"b"),_(3,"Station Settings"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",4),T(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),g()()),2&t){const e=D();v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory),v(2),M("accessory",e.accessory)}}function Pg2(t,n){if(1&t){const e=w1();p(0,"p",7)(1,"ngb-alert",8),A("closed",function(){return F(e),D().failed=!1}),I6(),p(2,"svg",9),T(3,"use",10),g(),O6(),p(4,"strong"),_(5,"Reset was not successful!"),g()()()}2&t&&(v(1),M("dismissible",!0))}const Fg2=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:If2},{path:"advancedConfig",component:lu2},{path:"cameraConfig/:uniqueId",component:_g2},{path:"stationConfig/:uniqueId",component:(()=>{class t{constructor(e,i){this.pluginService=e,this.route=i}ngOnInit(){const e=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(e)}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(he))},t.\u0275cmp=n2({type:t,selectors:[["app-station-config-options"]],decls:3,vars:1,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"]],template:function(e,i){1&e&&(p(0,"a",0),_(1,"Back to Devices List"),g(),k(2,Og2,11,4,"div",1)),2&e&&(v(2),M("ngIf",i.accessory))},directives:[pe,m1,Sw,Ig2],encapsulation:2}),t})()},{path:"login",component:kg2},{path:"reset",component:(()=>{class t{constructor(e,i){this.routerService=e,this.pluginService=i,this.disabled=!1,this.failed=!1}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var e=this;return f2(function*(){e.disabled=!0;try{const i=yield window.homebridge.request("/reset");e.failed=1!==i.result}catch(i){e.failed=!0}e.disabled=!1,e.failed||(yield e.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return t.\u0275fac=function(e){return new(e||t)(b(e3),b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-secondary","col-11","col-sm-3","mb-sm-0","mb-3",3,"click"],["type","button",1,"btn","btn-danger","col-11","col-sm-3",3,"click"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"]],template:function(e,i){1&e&&(p(0,"div",0),k(1,Pg2,6,1,"p",1),p(2,"div",2)(3,"h3",3),_(4,"Are you sure that you want to erase everything?"),g(),p(5,"div",4)(6,"button",5),A("click",function(){return i.cancel()}),_(7,"No"),g(),p(8,"button",6),A("click",function(){return i.resetEverything()}),_(9,"Do it!"),g()()()()),2&e&&(v(1),M("ngIf",i.failed),v(5),B("disabled",!!i.disabled||null),v(2),B("disabled",!!i.disabled||null))},directives:[m1,ag],encapsulation:2}),t})()},{path:"**",redirectTo:"/accessories"}];let Bg2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[t_.forRoot(Fg2,{scrollPositionRestoration:"enabled"})],t_]}),t})(),Ug2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t,bootstrap:[fK]}),t.\u0275inj=T2({providers:[{provide:o6,useClass:Yd}],imports:[[IR,Dp,sj,Bg2,tW]]}),t})();(function MI(){Ad=!1})(),AR().bootstrapModule(Ug2).catch(t=>console.error(t))},343:(z6,D3)=>{"use strict";D3.byteLength=function n1(a2){var M2=N2(a2),d1=M2[1];return 3*(M2[0]+d1)/4-d1},D3.toByteArray=function N1(a2){var M2,o3,U2=N2(a2),d1=U2[0],_1=U2[1],K2=new a3(function N(a2,M2,U2){return 3*(M2+U2)/4-U2}(0,d1,_1)),r3=0,$3=_1>0?d1-4:d1;for(o3=0;o3<$3;o3+=4)M2=K[a2.charCodeAt(o3)]<<18|K[a2.charCodeAt(o3+1)]<<12|K[a2.charCodeAt(o3+2)]<<6|K[a2.charCodeAt(o3+3)],K2[r3++]=M2>>16&255,K2[r3++]=M2>>8&255,K2[r3++]=255&M2;return 2===_1&&(M2=K[a2.charCodeAt(o3)]<<2|K[a2.charCodeAt(o3+1)]>>4,K2[r3++]=255&M2),1===_1&&(M2=K[a2.charCodeAt(o3)]<<10|K[a2.charCodeAt(o3+1)]<<4|K[a2.charCodeAt(o3+2)]>>2,K2[r3++]=M2>>8&255,K2[r3++]=255&M2),K2},D3.fromByteArray=function O1(a2){for(var M2,U2=a2.length,d1=U2%3,_1=[],r3=0,$3=U2-d1;r3<$3;r3+=16383)_1.push(T1(a2,r3,r3+16383>$3?$3:r3+16383));return 1===d1?_1.push(s1[(M2=a2[U2-1])>>2]+s1[M2<<4&63]+"=="):2===d1&&_1.push(s1[(M2=(a2[U2-2]<<8)+a2[U2-1])>>10]+s1[M2>>4&63]+s1[M2<<2&63]+"="),_1.join("")};for(var s1=[],K=[],a3="undefined"!=typeof Uint8Array?Uint8Array:Array,v1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q2=0,H2=v1.length;q2<H2;++q2)s1[q2]=v1[q2],K[v1.charCodeAt(q2)]=q2;function N2(a2){var M2=a2.length;if(M2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U2=a2.indexOf("=");return-1===U2&&(U2=M2),[U2,U2===M2?0:4-U2%4]}function i1(a2){return s1[a2>>18&63]+s1[a2>>12&63]+s1[a2>>6&63]+s1[63&a2]}function T1(a2,M2,U2){for(var _1=[],K2=M2;K2<U2;K2+=3)_1.push(i1((a2[K2]<<16&16711680)+(a2[K2+1]<<8&65280)+(255&a2[K2+2])));return _1.join("")}K["-".charCodeAt(0)]=62,K["_".charCodeAt(0)]=63},172:(z6,D3,s1)=>{"use strict";var a3=s1(343),v1=s1(461),q2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;D3.lW=N,D3.h2=50;var H2=2147483647;function n1(y){if(y>H2)throw new RangeError('The value "'+y+'" is invalid for option "size"');var u=new Uint8Array(y);return Object.setPrototypeOf(u,N.prototype),u}function N(y,u,d){if("number"==typeof y){if("string"==typeof u)throw new TypeError('The "string" argument must be of type string. Received type number');return O1(y)}return N1(y,u,d)}function N1(y,u,d){if("string"==typeof y)return function a2(y,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!N.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var d=0|$3(y,u),L=n1(d),z=L.write(y,u);return z!==d&&(L=L.slice(0,z)),L}(y,u);if(ArrayBuffer.isView(y))return function U2(y){if(s4(y,Uint8Array)){var u=new Uint8Array(y);return d1(u.buffer,u.byteOffset,u.byteLength)}return M2(y)}(y);if(null==y)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(s4(y,ArrayBuffer)||y&&s4(y.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(s4(y,SharedArrayBuffer)||y&&s4(y.buffer,SharedArrayBuffer)))return d1(y,u,d);if("number"==typeof y)throw new TypeError('The "value" argument must not be of type number. Received type number');var L=y.valueOf&&y.valueOf();if(null!=L&&L!==y)return N.from(L,u,d);var z=function _1(y){if(N.isBuffer(y)){var u=0|K2(y.length),d=n1(u);return 0===d.length||y.copy(d,0,0,u),d}return void 0!==y.length?"number"!=typeof y.length||P8(y.length)?n1(0):M2(y):"Buffer"===y.type&&Array.isArray(y.data)?M2(y.data):void 0}(y);if(z)return z;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof y[Symbol.toPrimitive])return N.from(y[Symbol.toPrimitive]("string"),u,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}function i1(y){if("number"!=typeof y)throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function O1(y){return i1(y),n1(y<0?0:0|K2(y))}function M2(y){for(var u=y.length<0?0:0|K2(y.length),d=n1(u),L=0;L<u;L+=1)d[L]=255&y[L];return d}function d1(y,u,d){if(u<0||y.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<u+(d||0))throw new RangeError('"length" is outside of buffer bounds');var L;return L=void 0===u&&void 0===d?new Uint8Array(y):void 0===d?new Uint8Array(y,u):new Uint8Array(y,u,d),Object.setPrototypeOf(L,N.prototype),L}function K2(y){if(y>=H2)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H2.toString(16)+" bytes");return 0|y}function $3(y,u){if(N.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||s4(y,ArrayBuffer))return y.byteLength;if("string"!=typeof y)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);var d=y.length,L=arguments.length>2&&!0===arguments[2];if(!L&&0===d)return 0;for(var z=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return je(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*d;case"hex":return d>>>1;case"base64":return Bi(y).length;default:if(z)return L?-1:je(y).length;u=(""+u).toLowerCase(),z=!0}}function o3(y,u,d){var L=!1;if((void 0===u||u<0)&&(u=0),u>this.length||((void 0===d||d>this.length)&&(d=this.length),d<=0)||(d>>>=0)<=(u>>>=0))return"";for(y||(y="utf8");;)switch(y){case"hex":return Ri(this,u,d);case"utf8":case"utf-8":return Ii(this,u,d);case"ascii":return O8(this,u,d);case"latin1":case"binary":return Oi(this,u,d);case"base64":return o4(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pi(this,u,d);default:if(L)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),L=!0}}function r4(y,u,d){var L=y[u];y[u]=y[d],y[d]=L}function I8(y,u,d,L,z){if(0===y.length)return-1;if("string"==typeof d?(L=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),P8(d=+d)&&(d=z?0:y.length-1),d<0&&(d=y.length+d),d>=y.length){if(z)return-1;d=y.length-1}else if(d<0){if(!z)return-1;d=0}if("string"==typeof u&&(u=N.from(u,L)),N.isBuffer(u))return 0===u.length?-1:Ge(y,u,d,L,z);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?z?Uint8Array.prototype.indexOf.call(y,u,d):Uint8Array.prototype.lastIndexOf.call(y,u,d):Ge(y,[u],d,L,z);throw new TypeError("val must be string, number or Buffer")}function Ge(y,u,d,L,z){var Y2,R=1,P=y.length,z2=u.length;if(void 0!==L&&("ucs2"===(L=String(L).toLowerCase())||"ucs-2"===L||"utf16le"===L||"utf-16le"===L)){if(y.length<2||u.length<2)return-1;R=2,P/=2,z2/=2,d/=2}function w2(F8,Gi){return 1===R?F8[Gi]:F8.readUInt16BE(Gi*R)}if(z){var Y1=-1;for(Y2=d;Y2<P;Y2++)if(w2(y,Y2)===w2(u,-1===Y1?0:Y2-Y1)){if(-1===Y1&&(Y1=Y2),Y2-Y1+1===z2)return Y1*R}else-1!==Y1&&(Y2-=Y2-Y1),Y1=-1}else for(d+z2>P&&(d=P-z2),Y2=d;Y2>=0;Y2--){for(var l1=!0,Z5=0;Z5<z2;Z5++)if(w2(y,Y2+Z5)!==w2(u,Z5)){l1=!1;break}if(l1)return Y2}return-1}function S6(y,u,d,L){d=Number(d)||0;var z=y.length-d;L?(L=Number(L))>z&&(L=z):L=z;var R=u.length;L>R/2&&(L=R/2);for(var P=0;P<L;++P){var z2=parseInt(u.substr(2*P,2),16);if(P8(z2))return P;y[d+P]=z2}return P}function Ai(y,u,d,L){return Q5(je(u,y.length-d),y,d,L)}function W5(y,u,d,L){return Q5(function Xs(y){for(var u=[],d=0;d<y.length;++d)u.push(255&y.charCodeAt(d));return u}(u),y,d,L)}function ki(y,u,d,L){return Q5(Bi(u),y,d,L)}function q5(y,u,d,L){return Q5(function R8(y,u){for(var d,L,R=[],P=0;P<y.length&&!((u-=2)<0);++P)L=(d=y.charCodeAt(P))>>8,R.push(d%256),R.push(L);return R}(u,y.length-d),y,d,L)}function o4(y,u,d){return a3.fromByteArray(0===u&&d===y.length?y:y.slice(u,d))}function Ii(y,u,d){d=Math.min(y.length,d);for(var L=[],z=u;z<d;){var w2,Y2,Y1,l1,R=y[z],P=null,z2=R>239?4:R>223?3:R>191?2:1;if(z+z2<=d)switch(z2){case 1:R<128&&(P=R);break;case 2:128==(192&(w2=y[z+1]))&&(l1=(31&R)<<6|63&w2)>127&&(P=l1);break;case 3:Y2=y[z+2],128==(192&(w2=y[z+1]))&&128==(192&Y2)&&(l1=(15&R)<<12|(63&w2)<<6|63&Y2)>2047&&(l1<55296||l1>57343)&&(P=l1);break;case 4:Y2=y[z+2],Y1=y[z+3],128==(192&(w2=y[z+1]))&&128==(192&Y2)&&128==(192&Y1)&&(l1=(15&R)<<18|(63&w2)<<12|(63&Y2)<<6|63&Y1)>65535&&l1<1114112&&(P=l1)}null===P?(P=65533,z2=1):P>65535&&(L.push((P-=65536)>>>10&1023|55296),P=56320|1023&P),L.push(P),z+=z2}return function k2(y){var u=y.length;if(u<=4096)return String.fromCharCode.apply(String,y);for(var d="",L=0;L<u;)d+=String.fromCharCode.apply(String,y.slice(L,L+=4096));return d}(L)}function O8(y,u,d){var L="";d=Math.min(y.length,d);for(var z=u;z<d;++z)L+=String.fromCharCode(127&y[z]);return L}function Oi(y,u,d){var L="";d=Math.min(y.length,d);for(var z=u;z<d;++z)L+=String.fromCharCode(y[z]);return L}function Ri(y,u,d){var L=y.length;(!u||u<0)&&(u=0),(!d||d<0||d>L)&&(d=L);for(var z="",R=u;R<d;++R)z+=Ui[y[R]];return z}function Pi(y,u,d){for(var L=y.slice(u,d),z="",R=0;R<L.length-1;R+=2)z+=String.fromCharCode(L[R]+256*L[R+1]);return z}function d2(y,u,d){if(y%1!=0||y<0)throw new RangeError("offset is not uint");if(y+u>d)throw new RangeError("Trying to access beyond buffer length")}function K1(y,u,d,L,z,R){if(!N.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>z||u<R)throw new RangeError('"value" argument is out of bounds');if(d+L>y.length)throw new RangeError("Index out of range")}function Y5(y,u,d,L,z,R){if(d+L>y.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function c1(y,u,d,L,z){return u=+u,d>>>=0,z||Y5(y,0,d,4),v1.write(y,u,d,L,23,4),d+4}function R2(y,u,d,L,z){return u=+u,d>>>=0,z||Y5(y,0,d,8),v1.write(y,u,d,L,52,8),d+8}!(N.TYPED_ARRAY_SUPPORT=function N2(){try{var y=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(y,u),42===y.foo()}catch(d){return!1}}())&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(N.prototype,"parent",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.buffer}}),Object.defineProperty(N.prototype,"offset",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.byteOffset}}),N.poolSize=8192,N.from=function(y,u,d){return N1(y,u,d)},Object.setPrototypeOf(N.prototype,Uint8Array.prototype),Object.setPrototypeOf(N,Uint8Array),N.alloc=function(y,u,d){return function T1(y,u,d){return i1(y),y<=0?n1(y):void 0!==u?"string"==typeof d?n1(y).fill(u,d):n1(y).fill(u):n1(y)}(y,u,d)},N.allocUnsafe=function(y){return O1(y)},N.allocUnsafeSlow=function(y){return O1(y)},N.isBuffer=function(u){return null!=u&&!0===u._isBuffer&&u!==N.prototype},N.compare=function(u,d){if(s4(u,Uint8Array)&&(u=N.from(u,u.offset,u.byteLength)),s4(d,Uint8Array)&&(d=N.from(d,d.offset,d.byteLength)),!N.isBuffer(u)||!N.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===d)return 0;for(var L=u.length,z=d.length,R=0,P=Math.min(L,z);R<P;++R)if(u[R]!==d[R]){L=u[R],z=d[R];break}return L<z?-1:z<L?1:0},N.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},N.concat=function(u,d){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(0===u.length)return N.alloc(0);var L;if(void 0===d)for(d=0,L=0;L<u.length;++L)d+=u[L].length;var z=N.allocUnsafe(d),R=0;for(L=0;L<u.length;++L){var P=u[L];if(s4(P,Uint8Array))R+P.length>z.length?N.from(P).copy(z,R):Uint8Array.prototype.set.call(z,P,R);else{if(!N.isBuffer(P))throw new TypeError('"list" argument must be an Array of Buffers');P.copy(z,R)}R+=P.length}return z},N.byteLength=$3,N.prototype._isBuffer=!0,N.prototype.swap16=function(){var u=this.length;if(u%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<u;d+=2)r4(this,d,d+1);return this},N.prototype.swap32=function(){var u=this.length;if(u%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<u;d+=4)r4(this,d,d+3),r4(this,d+1,d+2);return this},N.prototype.swap64=function(){var u=this.length;if(u%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<u;d+=8)r4(this,d,d+7),r4(this,d+1,d+6),r4(this,d+2,d+5),r4(this,d+3,d+4);return this},N.prototype.toLocaleString=N.prototype.toString=function(){var u=this.length;return 0===u?"":0===arguments.length?Ii(this,0,u):o3.apply(this,arguments)},N.prototype.equals=function(u){if(!N.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u||0===N.compare(this,u)},N.prototype.inspect=function(){var u="",d=D3.h2;return u=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(u+=" ... "),"<Buffer "+u+">"},q2&&(N.prototype[q2]=N.prototype.inspect),N.prototype.compare=function(u,d,L,z,R){if(s4(u,Uint8Array)&&(u=N.from(u,u.offset,u.byteLength)),!N.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(void 0===d&&(d=0),void 0===L&&(L=u?u.length:0),void 0===z&&(z=0),void 0===R&&(R=this.length),d<0||L>u.length||z<0||R>this.length)throw new RangeError("out of range index");if(z>=R&&d>=L)return 0;if(z>=R)return-1;if(d>=L)return 1;if(this===u)return 0;for(var P=(R>>>=0)-(z>>>=0),z2=(L>>>=0)-(d>>>=0),w2=Math.min(P,z2),Y2=this.slice(z,R),Y1=u.slice(d,L),l1=0;l1<w2;++l1)if(Y2[l1]!==Y1[l1]){P=Y2[l1],z2=Y1[l1];break}return P<z2?-1:z2<P?1:0},N.prototype.includes=function(u,d,L){return-1!==this.indexOf(u,d,L)},N.prototype.indexOf=function(u,d,L){return I8(this,u,d,L,!0)},N.prototype.lastIndexOf=function(u,d,L){return I8(this,u,d,L,!1)},N.prototype.write=function(u,d,L,z){if(void 0===d)z="utf8",L=this.length,d=0;else if(void 0===L&&"string"==typeof d)z=d,L=this.length,d=0;else{if(!isFinite(d))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");d>>>=0,isFinite(L)?(L>>>=0,void 0===z&&(z="utf8")):(z=L,L=void 0)}var R=this.length-d;if((void 0===L||L>R)&&(L=R),u.length>0&&(L<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");for(var P=!1;;)switch(z){case"hex":return S6(this,u,d,L);case"utf8":case"utf-8":return Ai(this,u,d,L);case"ascii":case"latin1":case"binary":return W5(this,u,d,L);case"base64":return ki(this,u,d,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q5(this,u,d,L);default:if(P)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),P=!0}},N.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},N.prototype.slice=function(u,d){var L=this.length;(u=~~u)<0?(u+=L)<0&&(u=0):u>L&&(u=L),(d=void 0===d?L:~~d)<0?(d+=L)<0&&(d=0):d>L&&(d=L),d<u&&(d=u);var z=this.subarray(u,d);return Object.setPrototypeOf(z,N.prototype),z},N.prototype.readUintLE=N.prototype.readUIntLE=function(u,d,L){u>>>=0,d>>>=0,L||d2(u,d,this.length);for(var z=this[u],R=1,P=0;++P<d&&(R*=256);)z+=this[u+P]*R;return z},N.prototype.readUintBE=N.prototype.readUIntBE=function(u,d,L){u>>>=0,d>>>=0,L||d2(u,d,this.length);for(var z=this[u+--d],R=1;d>0&&(R*=256);)z+=this[u+--d]*R;return z},N.prototype.readUint8=N.prototype.readUInt8=function(u,d){return u>>>=0,d||d2(u,1,this.length),this[u]},N.prototype.readUint16LE=N.prototype.readUInt16LE=function(u,d){return u>>>=0,d||d2(u,2,this.length),this[u]|this[u+1]<<8},N.prototype.readUint16BE=N.prototype.readUInt16BE=function(u,d){return u>>>=0,d||d2(u,2,this.length),this[u]<<8|this[u+1]},N.prototype.readUint32LE=N.prototype.readUInt32LE=function(u,d){return u>>>=0,d||d2(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},N.prototype.readUint32BE=N.prototype.readUInt32BE=function(u,d){return u>>>=0,d||d2(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},N.prototype.readIntLE=function(u,d,L){u>>>=0,d>>>=0,L||d2(u,d,this.length);for(var z=this[u],R=1,P=0;++P<d&&(R*=256);)z+=this[u+P]*R;return z>=(R*=128)&&(z-=Math.pow(2,8*d)),z},N.prototype.readIntBE=function(u,d,L){u>>>=0,d>>>=0,L||d2(u,d,this.length);for(var z=d,R=1,P=this[u+--z];z>0&&(R*=256);)P+=this[u+--z]*R;return P>=(R*=128)&&(P-=Math.pow(2,8*d)),P},N.prototype.readInt8=function(u,d){return u>>>=0,d||d2(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},N.prototype.readInt16LE=function(u,d){u>>>=0,d||d2(u,2,this.length);var L=this[u]|this[u+1]<<8;return 32768&L?4294901760|L:L},N.prototype.readInt16BE=function(u,d){u>>>=0,d||d2(u,2,this.length);var L=this[u+1]|this[u]<<8;return 32768&L?4294901760|L:L},N.prototype.readInt32LE=function(u,d){return u>>>=0,d||d2(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},N.prototype.readInt32BE=function(u,d){return u>>>=0,d||d2(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},N.prototype.readFloatLE=function(u,d){return u>>>=0,d||d2(u,4,this.length),v1.read(this,u,!0,23,4)},N.prototype.readFloatBE=function(u,d){return u>>>=0,d||d2(u,4,this.length),v1.read(this,u,!1,23,4)},N.prototype.readDoubleLE=function(u,d){return u>>>=0,d||d2(u,8,this.length),v1.read(this,u,!0,52,8)},N.prototype.readDoubleBE=function(u,d){return u>>>=0,d||d2(u,8,this.length),v1.read(this,u,!1,52,8)},N.prototype.writeUintLE=N.prototype.writeUIntLE=function(u,d,L,z){u=+u,d>>>=0,L>>>=0,z||K1(this,u,d,L,Math.pow(2,8*L)-1,0);var P=1,z2=0;for(this[d]=255&u;++z2<L&&(P*=256);)this[d+z2]=u/P&255;return d+L},N.prototype.writeUintBE=N.prototype.writeUIntBE=function(u,d,L,z){u=+u,d>>>=0,L>>>=0,z||K1(this,u,d,L,Math.pow(2,8*L)-1,0);var P=L-1,z2=1;for(this[d+P]=255&u;--P>=0&&(z2*=256);)this[d+P]=u/z2&255;return d+L},N.prototype.writeUint8=N.prototype.writeUInt8=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,1,255,0),this[d]=255&u,d+1},N.prototype.writeUint16LE=N.prototype.writeUInt16LE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,2,65535,0),this[d]=255&u,this[d+1]=u>>>8,d+2},N.prototype.writeUint16BE=N.prototype.writeUInt16BE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,2,65535,0),this[d]=u>>>8,this[d+1]=255&u,d+2},N.prototype.writeUint32LE=N.prototype.writeUInt32LE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,4,4294967295,0),this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=255&u,d+4},N.prototype.writeUint32BE=N.prototype.writeUInt32BE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,4,4294967295,0),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=255&u,d+4},N.prototype.writeIntLE=function(u,d,L,z){if(u=+u,d>>>=0,!z){var R=Math.pow(2,8*L-1);K1(this,u,d,L,R-1,-R)}var P=0,z2=1,w2=0;for(this[d]=255&u;++P<L&&(z2*=256);)u<0&&0===w2&&0!==this[d+P-1]&&(w2=1),this[d+P]=(u/z2>>0)-w2&255;return d+L},N.prototype.writeIntBE=function(u,d,L,z){if(u=+u,d>>>=0,!z){var R=Math.pow(2,8*L-1);K1(this,u,d,L,R-1,-R)}var P=L-1,z2=1,w2=0;for(this[d+P]=255&u;--P>=0&&(z2*=256);)u<0&&0===w2&&0!==this[d+P+1]&&(w2=1),this[d+P]=(u/z2>>0)-w2&255;return d+L},N.prototype.writeInt8=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,1,127,-128),u<0&&(u=255+u+1),this[d]=255&u,d+1},N.prototype.writeInt16LE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,2,32767,-32768),this[d]=255&u,this[d+1]=u>>>8,d+2},N.prototype.writeInt16BE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=255&u,d+2},N.prototype.writeInt32LE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,4,2147483647,-2147483648),this[d]=255&u,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24,d+4},N.prototype.writeInt32BE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=255&u,d+4},N.prototype.writeFloatLE=function(u,d,L){return c1(this,u,d,!0,L)},N.prototype.writeFloatBE=function(u,d,L){return c1(this,u,d,!1,L)},N.prototype.writeDoubleLE=function(u,d,L){return R2(this,u,d,!0,L)},N.prototype.writeDoubleBE=function(u,d,L){return R2(this,u,d,!1,L)},N.prototype.copy=function(u,d,L,z){if(!N.isBuffer(u))throw new TypeError("argument should be a Buffer");if(L||(L=0),!z&&0!==z&&(z=this.length),d>=u.length&&(d=u.length),d||(d=0),z>0&&z<L&&(z=L),z===L||0===u.length||0===this.length)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),u.length-d<z-L&&(z=u.length-d+L);var R=z-L;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(d,L,z):Uint8Array.prototype.set.call(u,this.subarray(L,z),d),R},N.prototype.fill=function(u,d,L,z){if("string"==typeof u){if("string"==typeof d?(z=d,d=0,L=this.length):"string"==typeof L&&(z=L,L=this.length),void 0!==z&&"string"!=typeof z)throw new TypeError("encoding must be a string");if("string"==typeof z&&!N.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(1===u.length){var R=u.charCodeAt(0);("utf8"===z&&R<128||"latin1"===z)&&(u=R)}}else"number"==typeof u?u&=255:"boolean"==typeof u&&(u=Number(u));if(d<0||this.length<d||this.length<L)throw new RangeError("Out of range index");if(L<=d)return this;var P;if(d>>>=0,L=void 0===L?this.length:L>>>0,u||(u=0),"number"==typeof u)for(P=d;P<L;++P)this[P]=u;else{var z2=N.isBuffer(u)?u:N.from(u,z),w2=z2.length;if(0===w2)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(P=0;P<L-d;++P)this[P+d]=z2[P%w2]}return this};var Fi=/[^+/0-9A-Za-z-_]/g;function je(y,u){u=u||1/0;for(var d,L=y.length,z=null,R=[],P=0;P<L;++P){if((d=y.charCodeAt(P))>55295&&d<57344){if(!z){if(d>56319){(u-=3)>-1&&R.push(239,191,189);continue}if(P+1===L){(u-=3)>-1&&R.push(239,191,189);continue}z=d;continue}if(d<56320){(u-=3)>-1&&R.push(239,191,189),z=d;continue}d=65536+(z-55296<<10|d-56320)}else z&&(u-=3)>-1&&R.push(239,191,189);if(z=null,d<128){if((u-=1)<0)break;R.push(d)}else if(d<2048){if((u-=2)<0)break;R.push(d>>6|192,63&d|128)}else if(d<65536){if((u-=3)<0)break;R.push(d>>12|224,d>>6&63|128,63&d|128)}else{if(!(d<1114112))throw new Error("Invalid code point");if((u-=4)<0)break;R.push(d>>18|240,d>>12&63|128,d>>6&63|128,63&d|128)}}return R}function Bi(y){return a3.toByteArray(function v2(y){if((y=(y=y.split("=")[0]).trim().replace(Fi,"")).length<2)return"";for(;y.length%4!=0;)y+="=";return y}(y))}function Q5(y,u,d,L){for(var z=0;z<L&&!(z+d>=u.length||z>=y.length);++z)u[z+d]=y[z];return z}function s4(y,u){return y instanceof u||null!=y&&null!=y.constructor&&null!=y.constructor.name&&y.constructor.name===u.name}function P8(y){return y!=y}var Ui=function(){for(var y="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var L=16*d,z=0;z<16;++z)u[L+z]=y[d]+y[z];return u}()},461:(z6,D3)=>{D3.read=function(s1,K,a3,v1,q2){var H2,N2,n1=8*q2-v1-1,N=(1<<n1)-1,N1=N>>1,i1=-7,T1=a3?q2-1:0,O1=a3?-1:1,a2=s1[K+T1];for(T1+=O1,H2=a2&(1<<-i1)-1,a2>>=-i1,i1+=n1;i1>0;H2=256*H2+s1[K+T1],T1+=O1,i1-=8);for(N2=H2&(1<<-i1)-1,H2>>=-i1,i1+=v1;i1>0;N2=256*N2+s1[K+T1],T1+=O1,i1-=8);if(0===H2)H2=1-N1;else{if(H2===N)return N2?NaN:1/0*(a2?-1:1);N2+=Math.pow(2,v1),H2-=N1}return(a2?-1:1)*N2*Math.pow(2,H2-v1)},D3.write=function(s1,K,a3,v1,q2,H2){var N2,n1,N,N1=8*H2-q2-1,i1=(1<<N1)-1,T1=i1>>1,O1=23===q2?Math.pow(2,-24)-Math.pow(2,-77):0,a2=v1?0:H2-1,M2=v1?1:-1,U2=K<0||0===K&&1/K<0?1:0;for(K=Math.abs(K),isNaN(K)||K===1/0?(n1=isNaN(K)?1:0,N2=i1):(N2=Math.floor(Math.log(K)/Math.LN2),K*(N=Math.pow(2,-N2))<1&&(N2--,N*=2),(K+=N2+T1>=1?O1/N:O1*Math.pow(2,1-T1))*N>=2&&(N2++,N/=2),N2+T1>=i1?(n1=0,N2=i1):N2+T1>=1?(n1=(K*N-1)*Math.pow(2,q2),N2+=T1):(n1=K*Math.pow(2,T1-1)*Math.pow(2,q2),N2=0));q2>=8;s1[a3+a2]=255&n1,a2+=M2,n1/=256,q2-=8);for(N2=N2<<q2|n1,N1+=q2;N1>0;s1[a3+a2]=255&N2,a2+=M2,N2/=256,N1-=8);s1[a3+a2-M2]|=128*U2}}},z6=>{z6(z6.s=830)}]);
|
|
1
|
+
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{830:(z6,D3,s1)=>{"use strict";function K(t){return"function"==typeof t}function a3(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const v1=a3(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,a)=>`${a+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function q2(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class H2{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(K(i))try{i()}catch(r){n=r instanceof v1?r.errors:[r]}const{_finalizers:a}=this;if(a){this._finalizers=null;for(const r of a)try{N(r)}catch(o){n=null!=n?n:[],o instanceof v1?n=[...n,...o.errors]:n.push(o)}}if(n)throw new v1(n)}}add(n){var e;if(n&&n!==this)if(this.closed)N(n);else{if(n instanceof H2){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&q2(e,n)}remove(n){const{_finalizers:e}=this;e&&q2(e,n),n instanceof H2&&n._removeParent(this)}}H2.EMPTY=(()=>{const t=new H2;return t.closed=!0,t})();const N2=H2.EMPTY;function n1(t){return t instanceof H2||t&&"closed"in t&&K(t.remove)&&K(t.add)&&K(t.unsubscribe)}function N(t){K(t)?t():t.unsubscribe()}const N1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},i1={setTimeout(t,n,...e){const{delegate:i}=i1;return(null==i?void 0:i.setTimeout)?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=i1;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function T1(t){i1.setTimeout(()=>{const{onUnhandledError:n}=N1;if(!n)throw t;n(t)})}function O1(){}const a2=d1("C",void 0,void 0);function d1(t,n,e){return{kind:t,value:n,error:e}}let _1=null;function K2(t){if(N1.useDeprecatedSynchronousErrorHandling){const n=!_1;if(n&&(_1={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=_1;if(_1=null,e)throw i}}else t()}class $3 extends H2{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,n1(n)&&n.add(this)):this.destination=ki}static create(n,e,i){return new Ge(n,e,i)}next(n){this.isStopped?W5(function U2(t){return d1("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?W5(function M2(t){return d1("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?W5(a2,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const o3=Function.prototype.bind;function r4(t,n){return o3.call(t,n)}class I8{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){S6(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){S6(i)}else S6(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){S6(e)}}}class Ge extends $3{constructor(n,e,i){let a;if(super(),K(n)||!n)a={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let r;this&&N1.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),a={next:n.next&&r4(n.next,r),error:n.error&&r4(n.error,r),complete:n.complete&&r4(n.complete,r)}):a=n}this.destination=new I8(a)}}function S6(t){N1.useDeprecatedSynchronousErrorHandling?function r3(t){N1.useDeprecatedSynchronousErrorHandling&&_1&&(_1.errorThrown=!0,_1.error=t)}(t):T1(t)}function W5(t,n){const{onStoppedNotification:e}=N1;e&&i1.setTimeout(()=>e(t,n))}const ki={closed:!0,next:O1,error:function Ai(t){throw t},complete:O1},q5="function"==typeof Symbol&&Symbol.observable||"@@observable";function o4(t){return t}let k2=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,a){const r=function Ri(t){return t&&t instanceof $3||function Oi(t){return t&&K(t.next)&&K(t.error)&&K(t.complete)}(t)&&n1(t)}(e)?e:new Ge(e,i,a);return K2(()=>{const{operator:o,source:s}=this;r.add(o?o.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=O8(i))((a,r)=>{const o=new Ge({next:s=>{try{e(s)}catch(c){r(c),o.unsubscribe()}},error:r,complete:a});this.subscribe(o)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[q5](){return this}pipe(...e){return function K5(t){return 0===t.length?o4:1===t.length?t[0]:function(e){return t.reduce((i,a)=>a(i),e)}}(e)(this)}toPromise(e){return new(e=O8(e))((i,a)=>{let r;this.subscribe(o=>r=o,o=>a(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function O8(t){var n;return null!==(n=null!=t?t:N1.Promise)&&void 0!==n?n:Promise}const Pi=a3(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let d2=(()=>{class t extends k2{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new K1(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Pi}next(e){K2(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){K2(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){K2(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:a,observers:r}=this;return i||a?N2:(this.currentObservers=null,r.push(e),new H2(()=>{this.currentObservers=null,q2(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:a,isStopped:r}=this;i?e.error(a):r&&e.complete()}asObservable(){const e=new k2;return e.source=this,e}}return t.create=(n,e)=>new K1(n,e),t})();class K1 extends d2{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:N2}}function Y5(t){return K(null==t?void 0:t.lift)}function c1(t){return n=>{if(Y5(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function R2(t,n,e,i,a){return new Fi(t,n,e,i,a)}class Fi extends $3{constructor(n,e,i,a,r,o){super(n),this.onFinalize=r,this.shouldUnsubscribe=o,this._next=e?function(s){try{e(s)}catch(c){n.error(c)}}:super._next,this._error=a?function(s){try{a(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function v2(t,n){return c1((e,i)=>{let a=0;e.subscribe(R2(i,r=>{i.next(t.call(n,r,a++))}))})}function w2(t){return this instanceof w2?(this.v=t,this):new w2(t)}function Y2(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=e.apply(t,n||[]),r=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(h){i[h]&&(a[h]=function(m){return new Promise(function(V,H){r.push([h,m,V,H])>1||s(h,m)})})}function s(h,m){try{!function c(h){h.value instanceof w2?Promise.resolve(h.value.v).then(l,C):f(r[0][2],h)}(i[h](m))}catch(V){f(r[0][3],V)}}function l(h){s("next",h)}function C(h){s("throw",h)}function f(h,m){h(m),r.shift(),r.length&&s(r[0][0],r[0][1])}}function l1(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function L(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(o){return new Promise(function(s,c){!function a(r,o,s,c){Promise.resolve(c).then(function(l){r({value:l,done:s})},o)}(s,c,(o=t[r](o)).done,o.value)})}}}const ji=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function ec(t){return K(null==t?void 0:t.then)}function tc(t){return K(t[q5])}function nc(t){return Symbol.asyncIterator&&K(null==t?void 0:t[Symbol.asyncIterator])}function ic(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ac=function cS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function rc(t){return K(null==t?void 0:t[ac])}function oc(t){return Y2(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:a}=yield w2(e.read());if(a)return yield w2(void 0);yield yield w2(i)}}finally{e.releaseLock()}})}function sc(t){return K(null==t?void 0:t.getReader)}function s3(t){if(t instanceof k2)return t;if(null!=t){if(tc(t))return function lS(t){return new k2(n=>{const e=t[q5]();if(K(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(ji(t))return function CS(t){return new k2(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(ec(t))return function fS(t){return new k2(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,T1)})}(t);if(nc(t))return cc(t);if(rc(t))return function uS(t){return new k2(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(sc(t))return function dS(t){return cc(oc(t))}(t)}throw ic(t)}function cc(t){return new k2(n=>{(function hS(t,n){var e,i,a,r;return function Ui(t,n,e,i){return new(e||(e=Promise))(function(r,o){function s(C){try{l(i.next(C))}catch(f){o(f)}}function c(C){try{l(i.throw(C))}catch(f){o(f)}}function l(C){C.done?r(C.value):function a(r){return r instanceof e?r:new e(function(o){o(r)})}(C.value).then(s,c)}l((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=l1(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(o){a={error:o}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(a)throw a.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function W4(t,n,e,i=0,a=!1){const r=n.schedule(function(){e(),a?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!a)return r}function b1(t,n,e=1/0){return K(n)?b1((i,a)=>v2((r,o)=>n(i,r,a,o))(s3(t(i,a))),e):("number"==typeof n&&(e=n),c1((i,a)=>function pS(t,n,e,i,a,r,o,s){const c=[];let l=0,C=0,f=!1;const h=()=>{f&&!c.length&&!l&&n.complete()},m=H=>l<i?V(H):c.push(H),V=H=>{r&&n.next(H),l++;let S=!1;s3(e(H,C++)).subscribe(R2(n,x=>{null==a||a(x),r?m(x):n.next(x)},()=>{S=!0},void 0,()=>{if(S)try{for(l--;c.length&&l<i;){const x=c.shift();o?W4(n,o,()=>V(x)):V(x)}h()}catch(x){n.error(x)}}))};return t.subscribe(R2(n,m,()=>{f=!0,h()})),()=>{null==s||s()}}(i,a,t,e)))}function J5(t=1/0){return b1(o4,t)}const c4=new k2(t=>t.complete());function lc(t){return t&&K(t.schedule)}function $i(t){return t[t.length-1]}function B8(t){return K($i(t))?t.pop():void 0}function X5(t){return lc($i(t))?t.pop():void 0}function Cc(t,n=0){return c1((e,i)=>{e.subscribe(R2(i,a=>W4(i,t,()=>i.next(a),n),()=>W4(i,t,()=>i.complete(),n),a=>W4(i,t,()=>i.error(a),n)))})}function fc(t,n=0){return c1((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function uc(t,n){if(!t)throw new Error("Iterable cannot be null");return new k2(e=>{W4(e,n,()=>{const i=t[Symbol.asyncIterator]();W4(e,n,()=>{i.next().then(a=>{a.done?e.complete():e.next(a.value)})},0,!0)})})}function $1(t,n){return n?function bS(t,n){if(null!=t){if(tc(t))return function vS(t,n){return s3(t).pipe(fc(n),Cc(n))}(t,n);if(ji(t))return function MS(t,n){return new k2(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(ec(t))return function _S(t,n){return s3(t).pipe(fc(n),Cc(n))}(t,n);if(nc(t))return uc(t,n);if(rc(t))return function yS(t,n){return new k2(e=>{let i;return W4(e,n,()=>{i=t[ac](),W4(e,n,()=>{let a,r;try{({value:a,done:r}=i.next())}catch(o){return void e.error(o)}r?e.complete():e.next(a)},0,!0)}),()=>K(null==i?void 0:i.return)&&i.return()})}(t,n);if(sc(t))return function LS(t,n){return uc(oc(t),n)}(t,n)}throw ic(t)}(t,n):s3(t)}function dc(...t){const n=X5(t),e=function mS(t,n){return"number"==typeof $i(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?s3(i[0]):J5(e)($1(i,n)):c4}function Q1(t){return t<=0?()=>c4:c1((n,e)=>{let i=0;n.subscribe(R2(e,a=>{++i<=t&&(e.next(a),t<=i&&e.complete())}))})}function hc(t={}){const{connector:n=(()=>new d2),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:a=!0}=t;return r=>{let o=null,s=null,c=null,l=0,C=!1,f=!1;const h=()=>{null==s||s.unsubscribe(),s=null},m=()=>{h(),o=c=null,C=f=!1},V=()=>{const H=o;m(),null==H||H.unsubscribe()};return c1((H,S)=>{l++,!f&&!C&&h();const x=c=null!=c?c:n();S.add(()=>{l--,0===l&&!f&&!C&&(s=Wi(V,a))}),x.subscribe(S),o||(o=new Ge({next:w=>x.next(w),error:w=>{f=!0,h(),s=Wi(m,e,w),x.error(w)},complete:()=>{C=!0,h(),s=Wi(m,i),x.complete()}}),$1(H).subscribe(o))})(r)}}function Wi(t,n,...e){return!0===n?(t(),null):!1===n?null:n(...e).pipe(Q1(1)).subscribe(()=>t())}function G2(t){for(let n in t)if(t[n]===G2)return n;throw Error("Could not find renamed property on target object.")}function qi(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function I2(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(I2).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Ki(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const VS=G2({__forward_ref__:G2});function x2(t){return t.__forward_ref__=x2,t.toString=function(){return I2(this())},t}function h2(t){return pc(t)?t():t}function pc(t){return"function"==typeof t&&t.hasOwnProperty(VS)&&t.__forward_ref__===x2}class S2 extends Error{constructor(n,e){super(function Yi(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function c2(t){return"string"==typeof t?t:null==t?"":String(t)}function Z1(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():c2(t)}function U8(t,n){const e=n?` in ${n}`:"";throw new S2(-201,`No provider for ${Z1(t)} found${e}`)}function N3(t,n){null==t&&function j2(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Q(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function T2(t){return{providers:t.providers||[],imports:t.imports||[]}}function Qi(t){return gc(t,G8)||gc(t,vc)}function gc(t,n){return t.hasOwnProperty(n)?t[n]:null}function mc(t){return t&&(t.hasOwnProperty(Zi)||t.hasOwnProperty(NS))?t[Zi]:null}const G8=G2({\u0275prov:G2}),Zi=G2({\u0275inj:G2}),vc=G2({ngInjectableDef:G2}),NS=G2({ngInjectorDef:G2});var o2=(()=>((o2=o2||{})[o2.Default=0]="Default",o2[o2.Host=1]="Host",o2[o2.Self=2]="Self",o2[o2.SkipSelf=4]="SkipSelf",o2[o2.Optional=8]="Optional",o2))();let Ji;function ve(t){const n=Ji;return Ji=t,n}function _c(t,n,e){const i=Qi(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&o2.Optional?null:void 0!==n?n:void U8(I2(t),"Injector")}function _e(t){return{toString:t}.toString()}var l4=(()=>((l4=l4||{})[l4.OnPush=0]="OnPush",l4[l4.Default=1]="Default",l4))(),z4=(()=>{return(t=z4||(z4={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",z4;var t})();const ES="undefined"!=typeof globalThis&&globalThis,AS="undefined"!=typeof window&&window,kS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,P2=ES||"undefined"!=typeof global&&global||AS||kS,D6={},$2=[],j8=G2({\u0275cmp:G2}),Xi=G2({\u0275dir:G2}),ea=G2({\u0275pipe:G2}),Mc=G2({\u0275mod:G2}),K4=G2({\u0275fac:G2}),et=G2({__NG_ELEMENT_ID__:G2});let IS=0;function n2(t){return _e(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===l4.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||$2,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||z4.Emulated,id:"c",styles:t.styles||$2,_:null,setInput:null,schemas:t.schemas||null,tView:null},a=t.directives,r=t.features,o=t.pipes;return i.id+=IS++,i.inputs=Vc(t.inputs,e),i.outputs=Vc(t.outputs),r&&r.forEach(s=>s(i)),i.directiveDefs=a?()=>("function"==typeof a?a():a).map(yc):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Lc):null,i})}function yc(t){return c3(t)||function Me(t){return t[Xi]||null}(t)}function Lc(t){return function $e(t){return t[ea]||null}(t)}const bc={};function E2(t){return _e(()=>{const n={type:t.type,bootstrap:t.bootstrap||$2,declarations:t.declarations||$2,imports:t.imports||$2,exports:t.exports||$2,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(bc[t.id]=t.type),n})}function Vc(t,n){if(null==t)return D6;const e={};for(const i in t)if(t.hasOwnProperty(i)){let a=t[i],r=a;Array.isArray(a)&&(r=a[1],a=a[0]),e[a]=i,n&&(n[a]=r)}return e}const G=n2;function c3(t){return t[j8]||null}function W3(t,n){const e=t[Mc]||null;if(!e&&!0===n)throw new Error(`Type ${I2(t)} does not have '\u0275mod' property.`);return e}function S4(t){return Array.isArray(t)&&"object"==typeof t[1]}function f4(t){return Array.isArray(t)&&!0===t[1]}function ia(t){return 0!=(8&t.flags)}function K8(t){return 2==(2&t.flags)}function Y8(t){return 1==(1&t.flags)}function u4(t){return null!==t.template}function US(t){return 0!=(512&t[2])}function Ye(t,n){return t.hasOwnProperty(K4)?t[K4]:null}class $S{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function H1(){return wc}function wc(t){return t.type.prototype.ngOnChanges&&(t.setInput=qS),WS}function WS(){const t=Sc(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===D6)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function qS(t,n,e,i){const a=Sc(t)||function KS(t,n){return t[zc]=n}(t,{previous:D6,current:null}),r=a.current||(a.current={}),o=a.previous,s=this.declaredInputs[e],c=o[s];r[s]=new $S(c&&c.currentValue,n,o===D6),t[i]=n}H1.ngInherit=!0;const zc="__ngSimpleChanges__";function Sc(t){return t[zc]||null}let ca;function la(){return void 0!==ca?ca:"undefined"!=typeof document?document:void 0}function M1(t){return!!t.listen}const Dc={createRenderer:(t,n)=>la()};function E1(t){for(;Array.isArray(t);)t=t[0];return t}function Q8(t,n){return E1(n[t])}function Y3(t,n){return E1(n[t.index])}function Ca(t,n){return t.data[n]}function E3(t,n){const e=n[t];return S4(e)?e:e[0]}function xc(t){return 4==(4&t[2])}function fa(t){return 128==(128&t[2])}function ye(t,n){return null==n?null:t[n]}function Nc(t){t[18]=0}function ua(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const l2={lFrame:Fc(null),bindingsEnabled:!0};function Ec(){return l2.bindingsEnabled}function O(){return l2.lFrame.lView}function D2(){return l2.lFrame.tView}function F(t){return l2.lFrame.contextLView=t,t[8]}function R1(){let t=Ac();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ac(){return l2.lFrame.currentTNode}function D4(t,n){const e=l2.lFrame;e.currentTNode=t,e.isParent=n}function da(){return l2.lFrame.isParent}function ha(){l2.lFrame.isParent=!1}function k6(){return l2.lFrame.bindingIndex++}function Q4(t){const n=l2.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function fD(t,n){const e=l2.lFrame;e.bindingIndex=e.bindingRootIndex=t,pa(n)}function pa(t){l2.lFrame.currentDirectiveIndex=t}function Oc(){return l2.lFrame.currentQueryIndex}function ma(t){l2.lFrame.currentQueryIndex=t}function dD(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Rc(t,n,e){if(e&o2.SkipSelf){let a=n,r=t;for(;!(a=a.parent,null!==a||e&o2.Host||(a=dD(r),null===a||(r=r[15],10&a.type))););if(null===a)return!1;n=a,t=r}const i=l2.lFrame=Pc();return i.currentTNode=n,i.lView=t,!0}function J8(t){const n=Pc(),e=t[1];l2.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Pc(){const t=l2.lFrame,n=null===t?null:t.child;return null===n?Fc(t):n}function Fc(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Bc(){const t=l2.lFrame;return l2.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Uc=Bc;function X8(){const t=Bc();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function _3(){return l2.lFrame.selectedIndex}function Le(t){l2.lFrame.selectedIndex=t}function y1(){const t=l2.lFrame;return Ca(t.tView,t.selectedIndex)}function I6(){l2.lFrame.currentNamespace="svg"}function O6(){!function mD(){l2.lFrame.currentNamespace=null}()}function en(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:C}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),s&&((t.contentHooks||(t.contentHooks=[])).push(e,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,s)),c&&(t.viewHooks||(t.viewHooks=[])).push(-e,c),l&&((t.viewHooks||(t.viewHooks=[])).push(e,l),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,l)),null!=C&&(t.destroyHooks||(t.destroyHooks=[])).push(e,C)}}function tn(t,n,e){Gc(t,n,3,e)}function nn(t,n,e,i){(3&t[2])===e&&Gc(t,n,e,i)}function va(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Gc(t,n,e,i){const r=null!=i?i:-1,o=n.length-1;let s=0;for(let c=void 0!==i?65535&t[18]:0;c<o;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=i&&s>=i)break}else n[c]<0&&(t[18]+=65536),(s<r||-1==r)&&(MD(t,e,n,c),t[18]=(4294901760&t[18])+c+2),c++}function MD(t,n,e,i){const a=e[i]<0,r=e[i+1],s=t[a?-e[i]:e[i]];if(a){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(s)}finally{}}}else try{r.call(s)}finally{}}class rt{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function an(t,n,e){const i=M1(t);let a=0;for(;a<e.length;){const r=e[a];if("number"==typeof r){if(0!==r)break;a++;const o=e[a++],s=e[a++],c=e[a++];i?t.setAttribute(n,s,c,o):n.setAttributeNS(o,s,c)}else{const o=r,s=e[++a];Ma(o)?i&&t.setProperty(n,o,s):i?t.setAttribute(n,o,s):n.setAttribute(o,s),a++}}return a}function jc(t){return 3===t||4===t||6===t}function Ma(t){return 64===t.charCodeAt(0)}function rn(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const a=n[i];"number"==typeof a?e=a:0===e||$c(t,e,a,null,-1===e||2===e?n[++i]:null)}}return t}function $c(t,n,e,i,a){let r=0,o=t.length;if(-1===n)o=-1;else for(;r<t.length;){const s=t[r++];if("number"==typeof s){if(s===n){o=-1;break}if(s>n){o=r-1;break}}}for(;r<t.length;){const s=t[r];if("number"==typeof s)break;if(s===e){if(null===i)return void(null!==a&&(t[r+1]=a));if(i===t[r+1])return void(t[r+2]=a)}r++,null!==i&&r++,null!==a&&r++}-1!==o&&(t.splice(o,0,n),r=o+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==a&&t.splice(r++,0,a)}function Wc(t){return-1!==t}function R6(t){return 32767&t}function P6(t,n){let e=function HD(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let ya=!0;function on(t){const n=ya;return ya=t,n}let wD=0;function st(t,n){const e=ba(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,La(i.data,t),La(n,null),La(i.blueprint,null));const a=sn(t,n),r=t.injectorIndex;if(Wc(a)){const o=R6(a),s=P6(a,n),c=s[1].data;for(let l=0;l<8;l++)n[r+l]=s[o+l]|c[o+l]}return n[r+8]=a,r}function La(t,n){t.push(0,0,0,0,0,0,0,0,n)}function ba(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function sn(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,a=n;for(;null!==a;){const r=a[1],o=r.type;if(i=2===o?r.declTNode:1===o?a[6]:null,null===i)return-1;if(e++,a=a[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function cn(t,n,e){!function zD(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(et)&&(i=e[et]),null==i&&(i=e[et]=wD++);const a=255&i;n.data[t+(a>>5)]|=1<<a}(t,n,e)}function Yc(t,n,e){if(e&o2.Optional)return t;U8(n,"NodeInjector")}function Qc(t,n,e,i){if(e&o2.Optional&&void 0===i&&(i=null),0==(e&(o2.Self|o2.Host))){const a=t[9],r=ve(void 0);try{return a?a.get(n,i,e&o2.Optional):_c(n,i,e&o2.Optional)}finally{ve(r)}}return Yc(i,n,e)}function Zc(t,n,e,i=o2.Default,a){if(null!==t){const r=function ND(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(et)?t[et]:void 0;return"number"==typeof n?n>=0?255&n:DD:n}(e);if("function"==typeof r){if(!Rc(n,t,i))return i&o2.Host?Yc(a,e,i):Qc(n,e,i,a);try{const o=r(i);if(null!=o||i&o2.Optional)return o;U8(e)}finally{Uc()}}else if("number"==typeof r){let o=null,s=ba(t,n),c=-1,l=i&o2.Host?n[16][6]:null;for((-1===s||i&o2.SkipSelf)&&(c=-1===s?sn(t,n):n[s+8],-1!==c&&el(i,!1)?(o=n[1],s=R6(c),n=P6(c,n)):s=-1);-1!==s;){const C=n[1];if(Xc(r,s,C.data)){const f=xD(s,n,e,o,i,l);if(f!==Jc)return f}c=n[s+8],-1!==c&&el(i,n[1].data[s+8]===l)&&Xc(r,s,n)?(o=C,s=R6(c),n=P6(c,n)):s=-1}}}return Qc(n,e,i,a)}const Jc={};function DD(){return new F6(R1(),O())}function xD(t,n,e,i,a,r){const o=n[1],s=o.data[t+8],C=ln(s,o,e,null==i?K8(s)&&ya:i!=o&&0!=(3&s.type),a&o2.Host&&r===s);return null!==C?ct(n,o,C,s):Jc}function ln(t,n,e,i,a){const r=t.providerIndexes,o=n.data,s=1048575&r,c=t.directiveStart,C=r>>20,h=a?s+C:t.directiveEnd;for(let m=i?s:s+C;m<h;m++){const V=o[m];if(m<c&&e===V||m>=c&&V.type===e)return m}if(a){const m=o[c];if(m&&u4(m)&&m.type===e)return c}return null}function ct(t,n,e,i){let a=t[e];const r=n.data;if(function yD(t){return t instanceof rt}(a)){const o=a;o.resolving&&function HS(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new S2(-200,`Circular dependency in DI detected for ${t}${e}`)}(Z1(r[e]));const s=on(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?ve(o.injectImpl):null;Rc(t,i,o2.Default);try{a=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function _D(t,n,e){const{ngOnChanges:i,ngOnInit:a,ngDoCheck:r}=n.type.prototype;if(i){const o=wc(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}a&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,a),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==c&&ve(c),on(s),o.resolving=!1,Uc()}}return a}function Xc(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function el(t,n){return!(t&o2.Self||t&o2.Host&&n)}class F6{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return Zc(this._tNode,this._lView,n,i,e)}}function C3(t){return _e(()=>{const n=t.prototype.constructor,e=n[K4]||Va(n),i=Object.prototype;let a=Object.getPrototypeOf(t.prototype).constructor;for(;a&&a!==i;){const r=a[K4]||Va(a);if(r&&r!==e)return r;a=Object.getPrototypeOf(a)}return r=>new r})}function Va(t){return pc(t)?()=>{const n=Va(h2(t));return n&&n()}:Ye(t)}const U6="__parameters__";function j6(t,n,e){return _e(()=>{const i=function Ha(t){return function(...e){if(t){const i=t(...e);for(const a in i)this[a]=i[a]}}}(n);function a(...r){if(this instanceof a)return i.apply(this,r),this;const o=new a(...r);return s.annotation=o,s;function s(c,l,C){const f=c.hasOwnProperty(U6)?c[U6]:Object.defineProperty(c,U6,{value:[]})[U6];for(;f.length<=C;)f.push(null);return(f[C]=f[C]||[]).push(o),c}}return e&&(a.prototype=Object.create(e.prototype)),a.prototype.ngMetadataName=t,a.annotationCls=a,a})}class _2{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Q({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ED=new _2("AnalyzeForEntryComponents");function Q3(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),Q3(i,n)):n!==t&&n.push(i)}return n}function x4(t,n){t.forEach(e=>Array.isArray(e)?x4(e,n):n(e))}function nl(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Cn(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ft(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function A3(t,n,e){let i=$6(t,n);return i>=0?t[1|i]=e:(i=~i,function ID(t,n,e,i){let a=t.length;if(a==n)t.push(e,i);else if(1===a)t.push(i,t[0]),t[0]=e;else{for(a--,t.push(t[a-1],t[a]);a>n;)t[a]=t[a-2],a--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function za(t,n){const e=$6(t,n);if(e>=0)return t[1|e]}function $6(t,n){return function rl(t,n,e){let i=0,a=t.length>>e;for(;a!==i;){const r=i+(a-i>>1),o=t[r<<e];if(n===o)return r<<e;o>n?a=r:i=r+1}return~(a<<e)}(t,n,1)}const ut={},Da="__NG_DI_FLAG__",un="ngTempTokenPath",GD=/\n/gm,sl="__source",$D=G2({provide:String,useValue:G2});let dt;function cl(t){const n=dt;return dt=t,n}function WD(t,n=o2.Default){if(void 0===dt)throw new S2(203,"");return null===dt?_c(t,void 0,n):dt.get(t,n&o2.Optional?null:void 0,n)}function q(t,n=o2.Default){return(function TS(){return Ji}()||WD)(h2(t),n)}const qD=q;function xa(t){const n=[];for(let e=0;e<t.length;e++){const i=h2(t[e]);if(Array.isArray(i)){if(0===i.length)throw new S2(900,"");let a,r=o2.Default;for(let o=0;o<i.length;o++){const s=i[o],c=KD(s);"number"==typeof c?-1===c?a=s.token:r|=c:a=s}n.push(q(a,r))}else n.push(q(i))}return n}function ht(t,n){return t[Da]=n,t.prototype[Da]=n,t}function KD(t){return t[Da]}const dn=ht(j6("Inject",t=>({token:t})),-1),Ve=ht(j6("Optional"),8),pt=ht(j6("SkipSelf"),4);let pn,gn;function q6(t){var n;return(null===(n=function Ta(){if(void 0===pn&&(pn=null,P2.trustedTypes))try{pn=P2.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return pn}())||void 0===n?void 0:n.createHTML(t))||t}function hl(t){var n;return(null===(n=function Ea(){if(void 0===gn&&(gn=null,P2.trustedTypes))try{gn=P2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return gn}())||void 0===n?void 0:n.createHTML(t))||t}class Ze{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class sx extends Ze{getTypeName(){return"HTML"}}class cx extends Ze{getTypeName(){return"Style"}}class lx extends Ze{getTypeName(){return"Script"}}class Cx extends Ze{getTypeName(){return"URL"}}class fx extends Ze{getTypeName(){return"ResourceURL"}}function k3(t){return t instanceof Ze?t.changingThisBreaksApplicationSecurity:t}function N4(t,n){const e=ml(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function ml(t){return t instanceof Ze&&t.getTypeName()||null}class mx{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(q6(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class vx{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=q6(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=q6(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let a=e.length-1;0<a;a--){const o=e.item(a).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Mx=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,yx=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function mt(t){return(t=String(t)).match(Mx)||t.match(yx)?t:"unsafe:"+t}function T4(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function vt(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Ml=T4("area,br,col,hr,img,wbr"),yl=T4("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ll=T4("rp,rt"),Aa=vt(Ml,vt(yl,T4("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")),vt(Ll,T4("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")),vt(Ll,yl)),ka=T4("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ia=T4("srcset"),bl=vt(ka,Ia,T4("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),T4("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")),Lx=T4("script,style,template");class bx{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let a=this.checkClobberedElement(e,e.nextSibling);if(a){e=a;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Aa.hasOwnProperty(e))return this.sanitizedSomething=!0,!Lx.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let a=0;a<i.length;a++){const r=i.item(a),o=r.name,s=o.toLowerCase();if(!bl.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let c=r.value;ka[s]&&(c=mt(c)),Ia[s]&&(t=c,c=(t=String(t)).split(",").map(n=>mt(n.trim())).join(", ")),this.buf.push(" ",o,'="',Vl(c),'"')}var t;return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();Aa.hasOwnProperty(e)&&!Ml.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Vl(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const Vx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hx=/([^\#-~ |!])/g;function Vl(t){return t.replace(/&/g,"&").replace(Vx,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Hx,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let mn;function Hl(t,n){let e=null;try{mn=mn||function vl(t){const n=new vx(t);return function _x(){try{return!!(new window.DOMParser).parseFromString(q6(""),"text/html")}catch(t){return!1}}()?new mx(n):n}(t);let i=n?String(n):"";e=mn.getInertBodyElement(i);let a=5,r=i;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,i=r,r=e.innerHTML,e=mn.getInertBodyElement(i)}while(i!==r);return q6((new bx).sanitizeChildren(Oa(e)||e))}finally{if(e){const i=Oa(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Oa(t){return"content"in t&&function wx(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Z2=(()=>((Z2=Z2||{})[Z2.NONE=0]="NONE",Z2[Z2.HTML=1]="HTML",Z2[Z2.STYLE=2]="STYLE",Z2[Z2.SCRIPT=3]="SCRIPT",Z2[Z2.URL=4]="URL",Z2[Z2.RESOURCE_URL=5]="RESOURCE_URL",Z2))();function wl(t){const n=_t();return n?hl(n.sanitize(Z2.HTML,t)||""):N4(t,"HTML")?hl(k3(t)):Hl(la(),c2(t))}function E4(t){const n=_t();return n?n.sanitize(Z2.STYLE,t)||"":N4(t,"Style")?k3(t):c2(t)}function Je(t){const n=_t();return n?n.sanitize(Z2.URL,t)||"":N4(t,"URL")?k3(t):mt(c2(t))}function _t(){const t=O();return t&&t[12]}const Dl="__ngContext__";function f3(t,n){t[Dl]=n}function Pa(t){const n=function Mt(t){return t[Dl]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function Ba(t){return t.ngOriginalError}function Bx(t,...n){t.error(...n)}class yt{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function Fx(t){return t&&t.ngErrorLogger||Bx}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Ba(n);for(;e&&Ba(e);)e=Ba(e);return e||null}}const Zx=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(P2))();function A4(t){return t instanceof Function?t():t}var I3=(()=>((I3=I3||{})[I3.Important=1]="Important",I3[I3.DashCase=2]="DashCase",I3))();function Ga(t,n){return undefined(t,n)}function Lt(t){const n=t[3];return f4(n)?n[3]:n}function ja(t){return Rl(t[13])}function $a(t){return Rl(t[4])}function Rl(t){for(;null!==t&&!f4(t);)t=t[4];return t}function Y6(t,n,e,i,a){if(null!=i){let r,o=!1;f4(i)?r=i:S4(i)&&(o=!0,i=i[0]);const s=E1(i);0===t&&null!==e?null==a?jl(n,e,s):Xe(n,e,s,a||null,!0):1===t&&null!==e?Xe(n,e,s,a||null,!0):2===t?function Zl(t,n,e){const i=vn(t,n);i&&function fN(t,n,e,i){M1(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,s,o):3===t&&n.destroyNode(s),null!=r&&function hN(t,n,e,i,a){const r=e[7];r!==E1(e)&&Y6(n,t,i,r,a);for(let s=10;s<e.length;s++){const c=e[s];bt(c[1],c,t,n,i,r)}}(n,t,r,e,a)}}function qa(t,n,e){if(M1(t))return t.createElement(n,e);{const i=null!==e?function JS(t){const n=t.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?t.createElement(n):t.createElementNS(i,n)}}function Fl(t,n){const e=t[9],i=e.indexOf(n),a=n[3];1024&n[2]&&(n[2]&=-1025,ua(a,-1)),e.splice(i,1)}function Ka(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const a=i[17];null!==a&&a!==t&&Fl(a,i),n>0&&(t[e-1][4]=i[4]);const r=Cn(t,10+n);!function iN(t,n){bt(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Bl(t,n){if(!(256&n[2])){const e=n[11];M1(e)&&e.destroyNode&&bt(t,n,e,3,null,null),function oN(t){let n=t[13];if(!n)return Ya(t[1],t);for(;n;){let e=null;if(S4(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)S4(n)&&Ya(n[1],n),n=n[3];null===n&&(n=t),S4(n)&&Ya(n[1],n),e=n&&n[4]}n=e}}(n)}}function Ya(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function CN(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const a=n[e[i]];if(!(a instanceof rt)){const r=e[i+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const s=a[r[o]],c=r[o+1];try{c.call(s)}finally{}}else try{r.call(a)}finally{}}}}(t,n),function lN(t,n){const e=t.cleanup,i=n[7];let a=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const o=e[r+1],s="function"==typeof o?o(n):E1(n[o]),c=i[a=e[r+2]],l=e[r+3];"boolean"==typeof l?s.removeEventListener(e[r],c,l):l>=0?i[a=l]():i[a=-l].unsubscribe(),r+=2}else{const o=i[a=e[r+1]];e[r].call(o)}if(null!==i){for(let r=a+1;r<i.length;r++)i[r]();n[7]=null}}(t,n),1===n[1].type&&M1(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&f4(n[3])){e!==n[3]&&Fl(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function Ul(t,n,e){return function Gl(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const a=t.data[i.directiveStart].encapsulation;if(a===z4.None||a===z4.Emulated)return null}return Y3(i,e)}(t,n.parent,e)}function Xe(t,n,e,i,a){M1(t)?t.insertBefore(n,e,i,a):n.insertBefore(e,i,a)}function jl(t,n,e){M1(t)?t.appendChild(n,e):n.appendChild(e)}function $l(t,n,e,i,a){null!==i?Xe(t,n,e,i,a):jl(t,n,e)}function vn(t,n){return M1(t)?t.parentNode(n):n.parentNode}function Wl(t,n,e){return Kl(t,n,e)}let Kl=function ql(t,n,e){return 40&t.type?Y3(t,e):null};function _n(t,n,e,i){const a=Ul(t,i,n),r=n[11],s=Wl(i.parent||n[6],i,n);if(null!=a)if(Array.isArray(e))for(let c=0;c<e.length;c++)$l(r,a,e[c],s,!1);else $l(r,a,e,s,!1)}function Mn(t,n){if(null!==n){const e=n.type;if(3&e)return Y3(n,t);if(4&e)return Za(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return Mn(t,i);{const a=t[n.index];return f4(a)?Za(-1,a):E1(a)}}if(32&e)return Ga(n,t)()||E1(t[n.index]);{const i=Ql(t,n);return null!==i?Array.isArray(i)?i[0]:Mn(Lt(t[16]),i):Mn(t,n.next)}}return null}function Ql(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Za(t,n){const e=10+t+1;if(e<n.length){const i=n[e],a=i[1].firstChild;if(null!==a)return Mn(i,a)}return n[7]}function Ja(t,n,e,i,a,r,o){for(;null!=e;){const s=i[e.index],c=e.type;if(o&&0===n&&(s&&f3(E1(s),i),e.flags|=4),64!=(64&e.flags))if(8&c)Ja(t,n,e.child,i,a,r,!1),Y6(n,t,a,s,r);else if(32&c){const l=Ga(e,i);let C;for(;C=l();)Y6(n,t,a,C,r);Y6(n,t,a,s,r)}else 16&c?Jl(t,n,i,e,a,r):Y6(n,t,a,s,r);e=o?e.projectionNext:e.next}}function bt(t,n,e,i,a,r){Ja(e,i,t.firstChild,n,a,r,!1)}function Jl(t,n,e,i,a,r){const o=e[16],c=o[6].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)Y6(n,t,a,c[l],r);else Ja(t,n,c,o[3],a,r,!0)}function Xl(t,n,e){M1(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function Xa(t,n,e){M1(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function eC(t,n,e){let i=t.length;for(;;){const a=t.indexOf(n,e);if(-1===a)return a;if(0===a||t.charCodeAt(a-1)<=32){const r=n.length;if(a+r===i||t.charCodeAt(a+r)<=32)return a}e=a+1}}const tC="ng-template";function gN(t,n,e){let i=0;for(;i<t.length;){let a=t[i++];if(e&&"class"===a){if(a=t[i],-1!==eC(a.toLowerCase(),n,0))return!0}else if(1===a){for(;i<t.length&&"string"==typeof(a=t[i++]);)if(a.toLowerCase()===n)return!0;return!1}}return!1}function nC(t){return 4===t.type&&t.value!==tC}function mN(t,n,e){return n===(4!==t.type||e?t.value:tC)}function vN(t,n,e){let i=4;const a=t.attrs||[],r=function yN(t){for(let n=0;n<t.length;n++)if(jc(t[n]))return n;return t.length}(a);let o=!1;for(let s=0;s<n.length;s++){const c=n[s];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!mN(t,c,e)||""===c&&1===n.length){if(d4(i))return!1;o=!0}}else{const l=8&i?c:n[++s];if(8&i&&null!==t.attrs){if(!gN(t.attrs,l,e)){if(d4(i))return!1;o=!0}continue}const f=_N(8&i?"class":c,a,nC(t),e);if(-1===f){if(d4(i))return!1;o=!0;continue}if(""!==l){let h;h=f>r?"":a[f+1].toLowerCase();const m=8&i?h:null;if(m&&-1!==eC(m,l,0)||2&i&&l!==h){if(d4(i))return!1;o=!0}}}}else{if(!o&&!d4(i)&&!d4(c))return!1;if(o&&d4(c))continue;o=!1,i=c|1&i}}return d4(i)||o}function d4(t){return 0==(1&t)}function _N(t,n,e,i){if(null===n)return-1;let a=0;if(i||!e){let r=!1;for(;a<n.length;){const o=n[a];if(o===t)return a;if(3===o||6===o)r=!0;else{if(1===o||2===o){let s=n[++a];for(;"string"==typeof s;)s=n[++a];continue}if(4===o)break;if(0===o){a+=4;continue}}a+=r?1:2}return-1}return function LN(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function iC(t,n,e=!1){for(let i=0;i<n.length;i++)if(vN(t,n[i],e))return!0;return!1}function bN(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let a=0;a<t.length;a++)if(t[a]!==i[a])continue e;return!0}}return!1}function aC(t,n){return t?":not("+n.trim()+")":n}function VN(t){let n=t[0],e=1,i=2,a="",r=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const s=t[++e];a+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?a+="."+o:4&i&&(a+=" "+o);else""!==a&&!d4(o)&&(n+=aC(r,a),a=""),i=o,r=r||!d4(i);e++}return""!==a&&(n+=aC(r,a)),n}const C2={};function v(t){rC(D2(),O(),_3()+t,!1)}function rC(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&tn(n,r,e)}else{const r=t.preOrderHooks;null!==r&&nn(n,r,0,e)}Le(e)}function yn(t,n){return t<<17|n<<2}function h4(t){return t>>17&32767}function er(t){return 2|t}function Z4(t){return(131068&t)>>2}function tr(t,n){return-131069&t|n<<2}function nr(t){return 1|t}function gC(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const a=e[i],r=e[i+1];if(-1!==r){const o=t.data[r];ma(a),o.contentQueries(2,n[r],r)}}}function Vt(t,n,e,i,a,r,o,s,c,l){const C=n.blueprint.slice();return C[0]=a,C[2]=140|i,Nc(C),C[3]=C[15]=t,C[8]=e,C[10]=o||t&&t[10],C[11]=s||t&&t[11],C[12]=c||t&&t[12]||null,C[9]=l||t&&t[9]||null,C[6]=r,C[16]=2==n.type?t[16]:C,C}function Q6(t,n,e,i,a){let r=t.data[n];if(null===r)r=function fr(t,n,e,i,a){const r=Ac(),o=da(),c=t.data[n]=function UN(t,n,e,i,a,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:a,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,n,i,a);return null===t.firstChild&&(t.firstChild=c),null!==r&&(o?null==r.child&&null!==c.parent&&(r.child=c):null===r.next&&(r.next=c)),c}(t,n,e,i,a),function CD(){return l2.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=a;const o=function at(){const t=l2.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return D4(r,!0),r}function Z6(t,n,e,i){if(0===e)return-1;const a=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return a}function Ht(t,n,e){J8(n);try{const i=t.viewQuery;null!==i&&Mr(1,i,e);const a=t.template;null!==a&&mC(t,n,a,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&gC(t,n),t.staticViewQueries&&Mr(2,t.viewQuery,e);const r=t.components;null!==r&&function PN(t,n){for(let e=0;e<n.length;e++)oT(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,X8()}}function J6(t,n,e,i){const a=n[2];if(256!=(256&a)){J8(n);try{Nc(n),function kc(t){return l2.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&mC(t,n,e,2,i);const o=3==(3&a);if(o){const l=t.preOrderCheckHooks;null!==l&&tn(n,l,null)}else{const l=t.preOrderHooks;null!==l&&nn(n,l,0,null),va(n,0)}if(function aT(t){for(let n=ja(t);null!==n;n=$a(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const a=e[i],r=a[3];0==(1024&a[2])&&ua(r,1),a[2]|=1024}}}(n),function iT(t){for(let n=ja(t);null!==n;n=$a(n))for(let e=10;e<n.length;e++){const i=n[e],a=i[1];fa(i)&&J6(a,i,a.template,i[8])}}(n),null!==t.contentQueries&&gC(t,n),o){const l=t.contentCheckHooks;null!==l&&tn(n,l)}else{const l=t.contentHooks;null!==l&&nn(n,l,1),va(n,1)}!function ON(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const a=e[i];if(a<0)Le(~a);else{const r=a,o=e[++i],s=e[++i];fD(o,r),s(2,n[r])}}}finally{Le(-1)}}(t,n);const s=t.components;null!==s&&function RN(t,n){for(let e=0;e<n.length;e++)rT(t,n[e])}(n,s);const c=t.viewQuery;if(null!==c&&Mr(2,c,i),o){const l=t.viewCheckHooks;null!==l&&tn(n,l)}else{const l=t.viewHooks;null!==l&&nn(n,l,2),va(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,ua(n[3],-1))}finally{X8()}}}function FN(t,n,e,i){const a=n[10],o=xc(n);try{!o&&a.begin&&a.begin(),o&&Ht(t,n,i),J6(t,n,e,i)}finally{!o&&a.end&&a.end()}}function mC(t,n,e,i,a){const r=_3(),o=2&i;try{Le(-1),o&&n.length>20&&rC(t,n,20,!1),e(i,a)}finally{Le(r)}}function ur(t,n,e){!Ec()||(function YN(t,n,e,i){const a=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||st(e,n),f3(i,n);const o=e.initialInputs;for(let s=a;s<r;s++){const c=t.data[s],l=u4(c);l&&eT(n,e,c);const C=ct(n,t,s,e);f3(C,n),null!==o&&tT(0,s-a,C,c,0,o),l&&(E3(e.index,n)[8]=C)}}(t,n,e,Y3(e,n)),128==(128&e.flags)&&function QN(t,n,e){const i=e.directiveStart,a=e.directiveEnd,o=e.index,s=function uD(){return l2.lFrame.currentDirectiveIndex}();try{Le(o);for(let c=i;c<a;c++){const l=t.data[c],C=n[c];pa(c),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&wC(l,C)}}finally{Le(-1),pa(s)}}(t,n,e))}function dr(t,n,e=Y3){const i=n.localNames;if(null!==i){let a=n.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],s=-1===o?e(n,t):t[o];t[a++]=s}}}function _C(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Vn(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Vn(t,n,e,i,a,r,o,s,c,l){const C=20+i,f=C+a,h=function BN(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:C2);return e}(C,f),m="function"==typeof l?l():l;return h[1]={type:t,blueprint:h,template:e,queries:null,viewQuery:s,declTNode:n,data:h.slice().fill(null,C),bindingStartIndex:C,expandoStartIndex:f,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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1}}function LC(t,n,e,i){const a=TC(n);null===e?a.push(i):(a.push(e),t.firstCreatePass&&EC(t).push(i,a.length-1))}function bC(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const a=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,a):e[i]=[n,a]}return e}function O3(t,n,e,i,a,r,o,s){const c=Y3(n,e);let C,l=n.inputs;!s&&null!=l&&(C=l[i])?(IC(t,e,C,i,a),K8(n)&&function $N(t,n){const e=E3(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function jN(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),a=null!=o?o(a,n.value||"",i):a,M1(r)?r.setProperty(c,i,a):Ma(i)||(c.setProperty?c.setProperty(i,a):c[i]=a))}function hr(t,n,e,i){let a=!1;if(Ec()){const r=function ZN(t,n,e){const i=t.directiveRegistry;let a=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];iC(e,o.selectors,!1)&&(a||(a=[]),cn(st(e,n),t,o.type),u4(o)?(zC(t,e),a.unshift(o)):a.push(o))}return a}(t,n,e),o=null===i?null:{"":-1};if(null!==r){a=!0,SC(e,t.data.length,r.length);for(let C=0;C<r.length;C++){const f=r[C];f.providersResolver&&f.providersResolver(f)}let s=!1,c=!1,l=Z6(t,n,r.length,null);for(let C=0;C<r.length;C++){const f=r[C];e.mergedAttrs=rn(e.mergedAttrs,f.hostAttrs),DC(t,e,n,l,f),XN(l,f,o),null!==f.contentQueries&&(e.flags|=8),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(e.flags|=128);const h=f.type.prototype;!s&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),s=!0),!c&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),c=!0),l++}!function GN(t,n){const i=n.directiveEnd,a=t.data,r=n.attrs,o=[];let s=null,c=null;for(let l=n.directiveStart;l<i;l++){const C=a[l],f=C.inputs,h=null===r||nC(n)?null:nT(f,r);o.push(h),s=bC(f,l,s),c=bC(C.outputs,l,c)}null!==s&&(s.hasOwnProperty("class")&&(n.flags|=16),s.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=s,n.outputs=c}(t,e)}o&&function JN(t,n,e){if(n){const i=t.localNames=[];for(let a=0;a<n.length;a+=2){const r=e[n[a+1]];if(null==r)throw new S2(-301,!1);i.push(n[a],r)}}}(e,i,o)}return e.mergedAttrs=rn(e.mergedAttrs,e.attrs),a}function HC(t,n,e,i,a,r){const o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;null===s&&(s=t.hostBindingOpCodes=[]);const c=~n.index;(function KN(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=c&&s.push(c),s.push(i,a,o)}}function wC(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function zC(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function XN(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;u4(n)&&(e[""]=t)}}function SC(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function DC(t,n,e,i,a){t.data[i]=a;const r=a.factory||(a.factory=Ye(a.type)),o=new rt(r,u4(a),null);t.blueprint[i]=o,e[i]=o,HC(t,n,0,i,Z6(t,e,a.hostVars,C2),a)}function eT(t,n,e){const i=Y3(n,t),a=_C(e),r=t[10],o=Hn(t,Vt(t,a,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function k4(t,n,e,i,a,r){const o=Y3(t,n);!function pr(t,n,e,i,a,r,o){if(null==r)M1(t)?t.removeAttribute(n,a,e):n.removeAttribute(a);else{const s=null==o?c2(r):o(r,i||"",a);M1(t)?t.setAttribute(n,a,s,e):e?n.setAttributeNS(e,a,s):n.setAttribute(a,s)}}(n[11],o,r,t.value,e,i,a)}function tT(t,n,e,i,a,r){const o=r[n];if(null!==o){const s=i.setInput;for(let c=0;c<o.length;){const l=o[c++],C=o[c++],f=o[c++];null!==s?i.setInput(e,f,l,C):e[C]=f}}}function nT(t,n){let e=null,i=0;for(;i<n.length;){const a=n[i];if(0!==a)if(5!==a){if("number"==typeof a)break;t.hasOwnProperty(a)&&(null===e&&(e=[]),e.push(a,t[a],n[i+1])),i+=2}else i+=2;else i+=4}return e}function xC(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function rT(t,n){const e=E3(n,t);if(fa(e)){const i=e[1];80&e[2]?J6(i,e,i.template,e[8]):e[5]>0&&gr(e)}}function gr(t){for(let i=ja(t);null!==i;i=$a(i))for(let a=10;a<i.length;a++){const r=i[a];if(1024&r[2]){const o=r[1];J6(o,r,o.template,r[8])}else r[5]>0&&gr(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const a=E3(e[i],t);fa(a)&&a[5]>0&&gr(a)}}function oT(t,n){const e=E3(n,t),i=e[1];(function sT(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Ht(i,e,e[8])}function Hn(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function mr(t){for(;t;){t[2]|=64;const n=Lt(t);if(US(t)&&!n)return t;t=n}return null}function NC(t){!function vr(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=Pa(e),a=i[1];FN(a,i,a.template,e)}}(t[8])}function Mr(t,n,e){ma(0),n(t,e)}const lT=(()=>Promise.resolve(null))();function TC(t){return t[7]||(t[7]=[])}function EC(t){return t.cleanup||(t.cleanup=[])}function kC(t,n){const e=t[9],i=e?e.get(yt,null):null;i&&i.handleError(n)}function IC(t,n,e,i,a){for(let r=0;r<e.length;){const o=e[r++],s=e[r++],c=n[o],l=t.data[o];null!==l.setInput?l.setInput(c,a,i,s):c[s]=a}}function J4(t,n,e){const i=Q8(n,t);!function Pl(t,n,e){M1(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function wn(t,n,e){let i=e?t.styles:null,a=e?t.classes:null,r=0;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?r=s:1==r?a=Ki(a,s):2==r&&(i=Ki(i,s+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=a:t.classesWithoutHost=a}const yr=new _2("INJECTOR",-1);class OC{get(n,e=ut){if(e===ut){const i=new Error(`NullInjectorError: No provider for ${I2(n)}!`);throw i.name="NullInjectorError",i}return e}}const Lr=new _2("Set Injector scope."),wt={},uT={};let br;function RC(){return void 0===br&&(br=new OC),br}function PC(t,n=null,e=null,i){const a=FC(t,n,e,i);return a._resolveInjectorDefTypes(),a}function FC(t,n=null,e=null,i){return new dT(t,e,n||RC(),i)}class dT{constructor(n,e,i,a=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&x4(e,s=>this.processProvider(s,n,e)),x4([n],s=>this.processInjectorType(s,[],r)),this.records.set(yr,X6(void 0,this));const o=this.records.get(Lr);this.scope=null!=o?o.value:null,this.source=a||("object"==typeof n?null:I2(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=ut,i=o2.Default){this.assertNotDestroyed();const a=cl(this),r=ve(void 0);try{if(!(i&o2.SkipSelf)){let s=this.records.get(n);if(void 0===s){const c=function yT(t){return"function"==typeof t||"object"==typeof t&&t instanceof _2}(n)&&Qi(n);s=c&&this.injectableDefInScope(c)?X6(Vr(n),wt):null,this.records.set(n,s)}if(null!=s)return this.hydrate(n,s)}return(i&o2.Self?RC():this.parent).get(n,e=i&o2.Optional&&e===ut?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[un]=o[un]||[]).unshift(I2(n)),a)throw o;return function YD(t,n,e,i){const a=t[un];throw n[sl]&&a.unshift(n[sl]),t.message=function QD(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let a=I2(n);if(Array.isArray(n))a=n.map(I2).join(" -> ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let s=n[o];r.push(o+":"+("string"==typeof s?JSON.stringify(s):I2(s)))}a=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${a}]: ${t.replace(GD,"\n ")}`}("\n"+t.message,a,e,i),t.ngTokenPath=a,t[un]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{ve(r),cl(a)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,a)=>n.push(I2(a))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S2(205,!1)}processInjectorType(n,e,i){if(!(n=h2(n)))return!1;let a=mc(n);const r=null==a&&n.ngModule||void 0,o=void 0===r?n:r,s=-1!==i.indexOf(o);if(void 0!==r&&(a=mc(r)),null==a)return!1;if(null!=a.imports&&!s){let C;i.push(o);try{x4(a.imports,f=>{this.processInjectorType(f,e,i)&&(void 0===C&&(C=[]),C.push(f))})}finally{}if(void 0!==C)for(let f=0;f<C.length;f++){const{ngModule:h,providers:m}=C[f];x4(m,V=>this.processProvider(V,h,m||$2))}}this.injectorDefTypes.add(o);const c=Ye(o)||(()=>new o);this.records.set(o,X6(c,wt));const l=a.providers;if(null!=l&&!s){const C=n;x4(l,f=>this.processProvider(f,C,l))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let a=e5(n=h2(n))?n:h2(n&&n.provide);const r=function pT(t,n,e){return UC(t)?X6(void 0,t.useValue):X6(BC(t),wt)}(n);if(e5(n)||!0!==n.multi)this.records.get(a);else{let o=this.records.get(a);o||(o=X6(void 0,wt,!0),o.factory=()=>xa(o.multi),this.records.set(a,o)),a=n,o.multi.push(n)}this.records.set(a,r)}hydrate(n,e){return e.value===wt&&(e.value=uT,e.value=e.factory()),"object"==typeof e.value&&e.value&&function MT(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=h2(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Vr(t){const n=Qi(t),e=null!==n?n.factory:Ye(t);if(null!==e)return e;if(t instanceof _2)throw new S2(204,!1);if(t instanceof Function)return function hT(t){const n=t.length;if(n>0)throw ft(n,"?"),new S2(204,!1);const e=function DS(t){const n=t&&(t[G8]||t[vc]);if(n){const e=function xS(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new S2(204,!1)}function BC(t,n,e){let i;if(e5(t)){const a=h2(t);return Ye(a)||Vr(a)}if(UC(t))i=()=>h2(t.useValue);else if(function mT(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...xa(t.deps||[]));else if(function gT(t){return!(!t||!t.useExisting)}(t))i=()=>q(h2(t.useExisting));else{const a=h2(t&&(t.useClass||t.provide));if(!function _T(t){return!!t.deps}(t))return Ye(a)||Vr(a);i=()=>new a(...xa(t.deps))}return i}function X6(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function UC(t){return null!==t&&"object"==typeof t&&$D in t}function e5(t){return"function"==typeof t}let A1=(()=>{class t{static create(e,i){var a;if(Array.isArray(e))return PC({name:""},i,e,"");{const r=null!==(a=e.name)&&void 0!==a?a:"";return PC({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ut,t.NULL=new OC,t.\u0275prov=Q({token:t,providedIn:"any",factory:()=>q(yr)}),t.__NG_ELEMENT_ID__=-1,t})();function DT(t,n){en(Pa(t)[1],R1())}function Z(t){let n=function ef(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let a;if(u4(t))a=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S2(903,"");a=n.\u0275dir}if(a){if(e){i.push(a);const o=t;o.inputs=zr(t.inputs),o.declaredInputs=zr(t.declaredInputs),o.outputs=zr(t.outputs);const s=a.hostBindings;s&&ET(t,s);const c=a.viewQuery,l=a.contentQueries;if(c&&NT(t,c),l&&TT(t,l),qi(t.inputs,a.inputs),qi(t.declaredInputs,a.declaredInputs),qi(t.outputs,a.outputs),u4(a)&&a.data.animation){const C=t.data;C.animation=(C.animation||[]).concat(a.data.animation)}}const r=a.features;if(r)for(let o=0;o<r.length;o++){const s=r[o];s&&s.ngInherit&&s(t),s===Z&&(e=!1)}}n=Object.getPrototypeOf(n)}!function xT(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const a=t[i];a.hostVars=n+=a.hostVars,a.hostAttrs=rn(a.hostAttrs,e=rn(e,a.hostAttrs))}}(i)}function zr(t){return t===D6?{}:t===$2?[]:t}function NT(t,n){const e=t.viewQuery;t.viewQuery=e?(i,a)=>{n(i,a),e(i,a)}:n}function TT(t,n){const e=t.contentQueries;t.contentQueries=e?(i,a,r)=>{n(i,a,r),e(i,a,r)}:n}function ET(t,n){const e=t.hostBindings;t.hostBindings=e?(i,a)=>{n(i,a),e(i,a)}:n}let zn=null;function t5(){if(!zn){const t=P2.Symbol;if(t&&t.iterator)zn=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(zn=i)}}}return zn}function zt(t){return!!function Sr(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&t5()in t)}function u3(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function e6(t,n,e,i){const a=u3(t,n,e);return u3(t,n+1,i)||a}function B(t,n,e,i){const a=O();return u3(a,k6(),n)&&(D2(),k4(y1(),a,t,n,e,i)),B}function i5(t,n,e,i){return u3(t,k6(),e)?n+c2(e)+i:C2}function a5(t,n,e,i,a,r){const s=e6(t,function Y4(){return l2.lFrame.bindingIndex}(),e,a);return Q4(2),s?n+c2(e)+i+c2(a)+r:C2}function k(t,n,e,i,a,r,o,s){const c=O(),l=D2(),C=t+20,f=l.firstCreatePass?function FT(t,n,e,i,a,r,o,s,c){const l=n.consts,C=Q6(n,t,4,o||null,ye(l,s));hr(n,e,C,ye(l,c)),en(n,C);const f=C.tViews=Vn(2,C,i,a,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l);return null!==n.queries&&(n.queries.template(n,C),f.queries=n.queries.embeddedTView(C)),C}(C,l,c,n,e,i,a,r,o):l.data[C];D4(f,!1);const h=c[11].createComment("");_n(l,c,h,f),f3(h,c),Hn(c,c[C]=xC(h,c,h,f)),Y8(f)&&ur(l,c,f),null!=o&&dr(c,f,s)}function J3(t){return function A6(t,n){return t[n]}(function lD(){return l2.lFrame.contextLView}(),20+t)}function b(t,n=o2.Default){const e=O();return null===e?q(t,n):Zc(R1(),e,h2(t),n)}function Er(){throw new Error("invalid")}function M(t,n,e){const i=O();return u3(i,k6(),n)&&O3(D2(),y1(),i,t,n,i[11],e,!1),M}function Ar(t,n,e,i,a){const o=a?"class":"style";IC(t,e,n.inputs[o],o,i)}function p(t,n,e,i){const a=O(),r=D2(),o=20+t,s=a[11],c=a[o]=qa(s,n,function vD(){return l2.lFrame.currentNamespace}()),l=r.firstCreatePass?function sE(t,n,e,i,a,r,o){const s=n.consts,l=Q6(n,t,2,a,ye(s,r));return hr(n,e,l,ye(s,o)),null!==l.attrs&&wn(l,l.attrs,!1),null!==l.mergedAttrs&&wn(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(o,r,a,0,n,e,i):r.data[o];D4(l,!0);const C=l.mergedAttrs;null!==C&&an(s,c,C);const f=l.classes;null!==f&&Xa(s,c,f);const h=l.styles;return null!==h&&Xl(s,c,h),64!=(64&l.flags)&&_n(r,a,c,l),0===function aD(){return l2.lFrame.elementDepthCount}()&&f3(c,a),function rD(){l2.lFrame.elementDepthCount++}(),Y8(l)&&(ur(r,a,l),function vC(t,n,e){if(ia(n)){const a=n.directiveEnd;for(let r=n.directiveStart;r<a;r++){const o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}(r,l,a)),null!==i&&dr(a,l),p}function g(){let t=R1();da()?ha():(t=t.parent,D4(t,!1));const n=t;!function oD(){l2.lFrame.elementDepthCount--}();const e=D2();return e.firstCreatePass&&(en(e,t),ia(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function bD(t){return 0!=(16&t.flags)}(n)&&Ar(e,n,O(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function VD(t){return 0!=(32&t.flags)}(n)&&Ar(e,n,O(),n.stylesWithoutHost,!1),g}function T(t,n,e,i){return p(t,n,e,i),g(),T}function w1(){return O()}function Dt(t){return!!t&&"function"==typeof t.then}const Or=function bf(t){return!!t&&"function"==typeof t.subscribe};function A(t,n,e,i){const a=O(),r=D2(),o=R1();return function Hf(t,n,e,i,a,r,o,s){const c=Y8(i),C=t.firstCreatePass&&EC(t),f=n[8],h=TC(n);let m=!0;if(3&i.type||s){const S=Y3(i,n),x=s?s(S):S,w=h.length,I=s?U=>s(E1(U[i.index])):i.index;if(M1(e)){let U=null;if(!s&&c&&(U=function lE(t,n,e,i){const a=t.cleanup;if(null!=a)for(let r=0;r<a.length-1;r+=2){const o=a[r];if(o===e&&a[r+1]===i){const s=n[7],c=a[r+2];return s.length>c?s[c]:null}"string"==typeof o&&(r+=2)}return null}(t,n,a,i.index)),null!==U)(U.__ngLastListenerFn__||U).__ngNextListenerFn__=r,U.__ngLastListenerFn__=r,m=!1;else{r=Rr(i,n,f,r,!1);const j=e.listen(x,a,r);h.push(r,j),C&&C.push(a,I,w,w+1)}}else r=Rr(i,n,f,r,!0),x.addEventListener(a,r,o),h.push(r),C&&C.push(a,I,w,o)}else r=Rr(i,n,f,r,!1);const V=i.outputs;let H;if(m&&null!==V&&(H=V[a])){const S=H.length;if(S)for(let x=0;x<S;x+=2){const J=n[H[x]][H[x+1]].subscribe(r),u2=h.length;h.push(r,J),C&&C.push(a,i.index,u2,-(u2+1))}}}(r,a,a[11],o,t,n,!!e,i),A}function wf(t,n,e,i){try{return!1!==e(i)}catch(a){return kC(t,a),!1}}function Rr(t,n,e,i,a){return function r(o){if(o===Function)return i;const s=2&t.flags?E3(t.index,n):n;0==(32&n[2])&&mr(s);let c=wf(n,0,i,o),l=r.__ngNextListenerFn__;for(;l;)c=wf(n,0,l,o)&&c,l=l.__ngNextListenerFn__;return a&&!1===c&&(o.preventDefault(),o.returnValue=!1),c}}function D(t=1){return function hD(t){return(l2.lFrame.contextLView=function pD(t,n){for(;t>0;)n=n[15],t--;return n}(t,l2.lFrame.contextLView))[8]}(t)}function CE(t,n){let e=null;const i=function MN(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let a=0;a<n.length;a++){const r=n[a];if("*"!==r){if(null===i?iC(t,r,!0):bN(i,r))return a}else e=a}return e}function u5(t){const n=O()[16][6];if(!n.projection){const i=n.projection=ft(t?t.length:1,null),a=i.slice();let r=n.child;for(;null!==r;){const o=t?CE(r,t):0;null!==o&&(a[o]?a[o].projectionNext=r:i[o]=r,a[o]=r),r=r.next}}}function d5(t,n=0,e){const i=O(),a=D2(),r=Q6(a,20+t,16,null,e||null);null===r.projection&&(r.projection=n),ha(),64!=(64&r.flags)&&function dN(t,n,e){Jl(n[11],0,n,e,Ul(t,e,n),Wl(e.parent||n[6],e,n))}(a,i,r)}function Pr(t,n,e){return h5(t,"",n,"",e),Pr}function h5(t,n,e,i,a){const r=O(),o=i5(r,n,e,i);return o!==C2&&O3(D2(),y1(),r,t,o,r[11],a,!1),h5}function kf(t,n,e,i,a){const r=t[e+1],o=null===n;let s=i?h4(r):Z4(r),c=!1;for(;0!==s&&(!1===c||o);){const C=t[s+1];dE(t[s],n)&&(c=!0,t[s+1]=i?nr(C):er(C)),s=i?h4(C):Z4(C)}c&&(t[e+1]=i?er(r):nr(r))}function dE(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&$6(t,n)>=0}const F1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function If(t){return t.substring(F1.key,F1.keyEnd)}function Of(t,n){const e=F1.textEnd;return e===n?-1:(n=F1.keyEnd=function mE(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,F1.key=n,e),p5(t,n,e))}function p5(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function J2(t,n){return function g4(t,n,e,i){const a=O(),r=D2(),o=Q4(2);r.firstUpdatePass&&Gf(r,t,o,i),n!==C2&&u3(a,o,n)&&$f(r,r.data[_3()],a,a[11],t,a[o+1]=function zE(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=I2(k3(t)))),t}(n,e),i,o)}(t,n,null,!0),J2}function X4(t){!function m4(t,n,e,i){const a=D2(),r=Q4(2);a.firstUpdatePass&&Gf(a,null,r,i);const o=O();if(e!==C2&&u3(o,r,e)){const s=a.data[_3()];if(qf(s,i)&&!Uf(a,r)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Ki(c,e||"")),Ar(a,s,o,e,i)}else!function wE(t,n,e,i,a,r,o,s){a===C2&&(a=$2);let c=0,l=0,C=0<a.length?a[0]:null,f=0<r.length?r[0]:null;for(;null!==C||null!==f;){const h=c<a.length?a[c+1]:void 0,m=l<r.length?r[l+1]:void 0;let H,V=null;C===f?(c+=2,l+=2,h!==m&&(V=f,H=m)):null===f||null!==C&&C<f?(c+=2,V=C):(l+=2,V=f,H=m),null!==V&&$f(t,n,e,i,V,H,o,s),C=c<a.length?a[c]:null,f=l<r.length?r[l]:null}}(a,s,o,o[11],o[r+1],o[r+1]=function HE(t,n,e){if(null==e||""===e)return $2;const i=[],a=k3(e);if(Array.isArray(a))for(let r=0;r<a.length;r++)t(i,a[r],!0);else if("object"==typeof a)for(const r in a)a.hasOwnProperty(r)&&t(i,r,a[r]);else"string"==typeof a&&n(i,a);return i}(t,n,e),i,r)}}(A3,R4,t,!0)}function R4(t,n){for(let e=function pE(t){return function Pf(t){F1.key=0,F1.keyEnd=0,F1.value=0,F1.valueEnd=0,F1.textEnd=t.length}(t),Of(t,p5(t,0,F1.textEnd))}(n);e>=0;e=Of(n,e))A3(t,If(n),!0)}function Uf(t,n){return n>=t.expandoStartIndex}function Gf(t,n,e,i){const a=t.data;if(null===a[e+1]){const r=a[_3()],o=Uf(t,e);qf(r,i)&&null===n&&!o&&(n=!1),n=function yE(t,n,e,i){const a=function ga(t){const n=l2.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===a)0===(i?n.classBindings:n.styleBindings)&&(e=xt(e=Br(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==a)if(e=Br(a,t,n,e,i),null===r){let c=function LE(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Z4(i))return t[h4(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=Br(null,t,n,c[1],i),c=xt(c,n.attrs,i),function bE(t,n,e,i){t[h4(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else r=function VE(t,n,e){let i;const a=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<a;r++)i=xt(i,t[r].hostAttrs,e);return xt(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(a,r,n,i),function fE(t,n,e,i,a,r){let o=r?n.classBindings:n.styleBindings,s=h4(o),c=Z4(o);t[i]=e;let C,l=!1;if(Array.isArray(e)){const f=e;C=f[1],(null===C||$6(f,C)>0)&&(l=!0)}else C=e;if(a)if(0!==c){const h=h4(t[s+1]);t[i+1]=yn(h,s),0!==h&&(t[h+1]=tr(t[h+1],i)),t[s+1]=function zN(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=yn(s,0),0!==s&&(t[s+1]=tr(t[s+1],i)),s=i;else t[i+1]=yn(c,0),0===s?s=i:t[c+1]=tr(t[c+1],i),c=i;l&&(t[i+1]=er(t[i+1])),kf(t,C,i,!0),kf(t,C,i,!1),function uE(t,n,e,i,a){const r=a?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&$6(r,n)>=0&&(e[i+1]=nr(e[i+1]))}(n,C,t,i,r),o=yn(s,c),r?n.classBindings=o:n.styleBindings=o}(a,r,n,e,o,i)}}function Br(t,n,e,i,a){let r=null;const o=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s<o&&(r=n[s],i=xt(i,r.hostAttrs,a),r!==t);)s++;return null!==t&&(e.directiveStylingLast=s),i}function xt(t,n,e){const i=e?1:2;let a=-1;if(null!==n)for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?a=o:a===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),A3(t,o,!!e||n[++r]))}return void 0===t?null:t}function $f(t,n,e,i,a,r,o,s){if(!(3&n.type))return;const c=t.data,l=c[s+1];xn(function cC(t){return 1==(1&t)}(l)?Wf(c,n,e,a,Z4(l),o):void 0)||(xn(r)||function sC(t){return 2==(2&t)}(l)&&(r=Wf(c,null,e,a,s,o)),function pN(t,n,e,i,a){const r=M1(t);if(n)a?r?t.addClass(e,i):e.classList.add(i):r?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:I3.DashCase;if(null==a)r?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const s="string"==typeof a&&a.endsWith("!important");s&&(a=a.slice(0,-10),o|=I3.Important),r?t.setStyle(e,i,a,o):e.style.setProperty(i,a,s?"important":"")}}}(i,o,Q8(_3(),e),a,r))}function Wf(t,n,e,i,a,r){const o=null===n;let s;for(;a>0;){const c=t[a],l=Array.isArray(c),C=l?c[1]:c,f=null===C;let h=e[a+1];h===C2&&(h=f?$2:void 0);let m=f?za(h,i):C===i?h:void 0;if(l&&!xn(m)&&(m=za(c,i)),xn(m)&&(s=m,o))return s;const V=t[a+1];a=o?h4(V):Z4(V)}if(null!==n){let c=r?n.residualClasses:n.residualStyles;null!=c&&(s=za(c,i))}return s}function xn(t){return void 0!==t}function qf(t,n){return 0!=(t.flags&(n?16:32))}function _(t,n=""){const e=O(),i=D2(),a=t+20,r=i.firstCreatePass?Q6(i,a,1,n,null):i.data[a],o=e[a]=function Wa(t,n){return M1(t)?t.createText(n):t.createTextNode(n)}(e[11],n);_n(i,e,o,r),D4(r,!1)}function ee(t){return R3("",t,""),ee}function R3(t,n,e){const i=O(),a=i5(i,t,n,e);return a!==C2&&J4(i,_3(),a),R3}function t6(t,n,e,i,a){const r=O(),o=a5(r,t,n,e,i,a);return o!==C2&&J4(r,_3(),o),t6}function v4(t,n,e){const i=O();return u3(i,k6(),n)&&O3(D2(),y1(),i,t,n,i[11],e,!0),v4}const Nn="en-US";let du=Nn;function $r(t,n,e,i,a){if(t=h2(t),Array.isArray(t))for(let r=0;r<t.length;r++)$r(t[r],n,e,i,a);else{const r=D2(),o=O();let s=e5(t)?t:h2(t.provide),c=BC(t);const l=R1(),C=1048575&l.providerIndexes,f=l.directiveStart,h=l.providerIndexes>>20;if(e5(t)||!t.multi){const m=new rt(c,a,b),V=qr(s,n,a?C:C+h,f);-1===V?(cn(st(l,o),r,s),Wr(r,t,n.length),n.push(s),l.directiveStart++,l.directiveEnd++,a&&(l.providerIndexes+=1048576),e.push(m),o.push(m)):(e[V]=m,o[V]=m)}else{const m=qr(s,n,C+h,f),V=qr(s,n,C,C+h),H=m>=0&&e[m],S=V>=0&&e[V];if(a&&!S||!a&&!H){cn(st(l,o),r,s);const x=function jA(t,n,e,i,a){const r=new rt(t,e,b);return r.multi=[],r.index=n,r.componentProviders=0,Ou(r,a,i&&!e),r}(a?GA:UA,e.length,a,i,c);!a&&S&&(e[V].providerFactory=x),Wr(r,t,n.length,0),n.push(s),l.directiveStart++,l.directiveEnd++,a&&(l.providerIndexes+=1048576),e.push(x),o.push(x)}else Wr(r,t,m>-1?m:V,Ou(e[a?V:m],c,!a&&i));!a&&i&&S&&e[V].componentProviders++}}}function Wr(t,n,e,i){const a=e5(n),r=function vT(t){return!!t.useClass}(n);if(a||r){const c=(r?h2(n.useClass):n).prototype.ngOnDestroy;if(c){const l=t.destroyHooks||(t.destroyHooks=[]);if(!a&&n.multi){const C=l.indexOf(e);-1===C?l.push(e,[i,c]):l[C+1].push(i,c)}else l.push(e,c)}}}function Ou(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function qr(t,n,e,i){for(let a=e;a<i;a++)if(n[a]===t)return a;return-1}function UA(t,n,e,i){return Kr(this.multi,[])}function GA(t,n,e,i){const a=this.multi;let r;if(this.providerFactory){const o=this.providerFactory.componentProviders,s=ct(e,e[1],this.providerFactory.index,i);r=s.slice(0,o),Kr(a,r);for(let c=o;c<s.length;c++)r.push(s[c])}else r=[],Kr(a,r);return r}function Kr(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function W2(t,n=[]){return e=>{e.providersResolver=(i,a)=>function BA(t,n,e){const i=D2();if(i.firstCreatePass){const a=u4(t);$r(e,i.data,i.blueprint,a,!0),$r(n,i.data,i.blueprint,a,!1)}}(i,a?a(t):t,n)}}class Ru{}class qA{resolveComponentFactory(n){throw function WA(t){const n=Error(`No component factory found for ${I2(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let v5=(()=>{class t{}return t.NULL=new qA,t})();function KA(){return _5(R1(),O())}function _5(t,n){return new A2(Y3(t,n))}let A2=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=KA,t})();function YA(t){return t instanceof A2?t.nativeElement:t}class Yr{}let d3=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function ZA(){const t=O(),e=E3(R1().index,t);return function QA(t){return t[11]}(S4(e)?e:t)}(),t})(),JA=(()=>{class t{}return t.\u0275prov=Q({token:t,providedIn:"root",factory:()=>null}),t})();class kt{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const XA=new kt("13.3.11"),Qr={};function In(t,n,e,i,a=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(E1(r)),f4(r))for(let s=10;s<r.length;s++){const c=r[s],l=c[1].firstChild;null!==l&&In(c[1],c,l,i)}const o=e.type;if(8&o)In(t,n,e.child,i);else if(32&o){const s=Ga(e,n);let c;for(;c=s();)i.push(c)}else if(16&o){const s=Ql(n,e);if(Array.isArray(s))i.push(...s);else{const c=Lt(n[16]);In(c[1],c,s,i,!0)}}e=a?e.projectionNext:e.next}return i}class It{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return In(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(f4(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Ka(n,i),Cn(e,i))}this._attachedToViewContainer=!1}Bl(this._lView[1],this._lView)}onDestroy(n){LC(this._lView[1],this._lView,null,n)}markForCheck(){mr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function _r(t,n,e){const i=n[10];i.begin&&i.begin();try{J6(t,n,t.template,e)}catch(a){throw kC(n,a),a}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S2(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function rN(t,n){bt(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S2(902,"");this._appRef=n}}class ek extends It{constructor(n){super(n),this._view=n}detectChanges(){NC(this._view)}checkNoChanges(){}get context(){return null}}class Fu extends v5{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=c3(n);return new Zr(e,this.ngModule)}}function Bu(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class Zr extends Ru{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function HN(t){return t.map(VN).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Bu(this.componentDef.inputs)}get outputs(){return Bu(this.componentDef.outputs)}create(n,e,i,a){const r=(a=a||this.ngModule)?function nk(t,n){return{get:(e,i,a)=>{const r=t.get(e,Qr,a);return r!==Qr||i===Qr?r:n.get(e,i,a)}}}(n,a.injector):n,o=r.get(Yr,Dc),s=r.get(JA,null),c=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",C=i?function yC(t,n,e){if(M1(t))return t.selectRootElement(n,e===z4.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(c,i,this.componentDef.encapsulation):qa(o.createRenderer(null,this.componentDef),l,function tk(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(l)),f=this.componentDef.onPush?576:528,h=function XC(t,n){return{components:[],scheduler:t||Zx,clean:lT,playerHandler:n||null,flags:0}}(),m=Vn(0,null,null,1,0,null,null,null,null,null),V=Vt(null,m,h,f,null,null,o,c,s,r);let H,S;J8(V);try{const x=function ZC(t,n,e,i,a,r){const o=e[1];e[20]=t;const c=Q6(o,20,2,"#host",null),l=c.mergedAttrs=n.hostAttrs;null!==l&&(wn(c,l,!0),null!==t&&(an(a,t,l),null!==c.classes&&Xa(a,t,c.classes),null!==c.styles&&Xl(a,t,c.styles)));const C=i.createRenderer(t,n),f=Vt(e,_C(n),null,n.onPush?64:16,e[20],c,i,C,r||null,null);return o.firstCreatePass&&(cn(st(c,e),o,n.type),zC(o,c),SC(c,e.length,1)),Hn(e,f),e[20]=f}(C,this.componentDef,V,o,c);if(C)if(i)an(c,C,["ng-version",XA.full]);else{const{attrs:w,classes:I}=function wN(t){const n=[],e=[];let i=1,a=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===a?""!==r&&n.push(r,t[++i]):8===a&&e.push(r);else{if(!d4(a))break;a=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);w&&an(c,C,w),I&&I.length>0&&Xa(c,C,I.join(" "))}if(S=Ca(m,20),void 0!==e){const w=S.projection=[];for(let I=0;I<this.ngContentSelectors.length;I++){const U=e[I];w.push(null!=U?Array.from(U):null)}}H=function JC(t,n,e,i,a){const r=e[1],o=function qN(t,n,e){const i=R1();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),DC(t,i,n,Z6(t,n,1,null),e));const a=ct(n,t,i.directiveStart,i);f3(a,n);const r=Y3(i,n);return r&&f3(r,n),a}(r,e,n);if(i.components.push(o),t[8]=o,a&&a.forEach(c=>c(o,n)),n.contentQueries){const c=R1();n.contentQueries(1,o,c.directiveStart)}const s=R1();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Le(s.index),HC(e[1],s,0,s.directiveStart,s.directiveEnd,n),wC(n,o)),o}(x,this.componentDef,V,h,[DT]),Ht(m,V,null)}finally{X8()}return new ak(this.componentType,H,_5(S,V),V,S)}}class ak extends class $A{}{constructor(n,e,i,a,r){super(),this.location=i,this._rootLView=a,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new ek(a),this.componentType=n}get injector(){return new F6(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class te{}class Uu{}const M5=new Map;class $u extends te{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Fu(this);const i=W3(n);this._bootstrapComponents=A4(i.bootstrap),this._r3Injector=FC(n,e,[{provide:te,useValue:this},{provide:v5,useValue:this.componentFactoryResolver}],I2(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=A1.THROW_IF_NOT_FOUND,i=o2.Default){return n===A1||n===te||n===yr?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Jr extends Uu{constructor(n){super(),this.moduleType=n,null!==W3(n)&&function ok(t){const n=new Set;!function e(i){const a=W3(i,!0),r=a.id;null!==r&&(function Gu(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${I2(n)} vs ${I2(n.name)}`)}(r,M5.get(r),i),M5.set(r,i));const o=A4(a.imports);for(const s of o)n.has(s)||(n.add(s),e(s))}(t)}(n)}create(n){return new $u(this.moduleType,n)}}function Ot(t,n,e,i,a){return function qu(t,n,e,i,a,r,o){const s=n+e;return e6(t,s,a,r)?function I4(t,n,e){return t[n]=e}(t,s+2,o?i.call(o,a,r):i(a,r)):function Rt(t,n){const e=t[n];return e===C2?void 0:e}(t,s+2)}(O(),function v3(){const t=l2.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}(),t,n,e,i,a)}function e7(t){return n=>{setTimeout(t,void 0,n)}}const r2=class yk extends d2{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var a,r,o;let s=n,c=e||(()=>null),l=i;if(n&&"object"==typeof n){const f=n;s=null===(a=f.next)||void 0===a?void 0:a.bind(f),c=null===(r=f.error)||void 0===r?void 0:r.bind(f),l=null===(o=f.complete)||void 0===o?void 0:o.bind(f)}this.__isAsync&&(c=e7(c),s&&(s=e7(s)),l&&(l=e7(l)));const C=super.subscribe({next:s,error:c,complete:l});return n instanceof H2&&n.add(C),C}};function Lk(){return this._results[t5()]()}class t7{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=t5(),i=t7.prototype;i[e]||(i[e]=Lk)}get changes(){return this._changes||(this._changes=new r2)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const a=Q3(n);(this._changesDetected=!function AD(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let a=t[i],r=n[i];if(e&&(a=e(a),r=e(r)),r!==a)return!1}return!0}(i._results,a,e))&&(i._results=a,i.length=a.length,i.last=a[this.length-1],i.first=a[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let f1=(()=>{class t{}return t.__NG_ELEMENT_ID__=Hk,t})();const bk=f1,Vk=class extends bk{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Vt(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),Ht(e,i,n),new It(i)}};function Hk(){return Rn(R1(),O())}function Rn(t,n){return 4&t.type?new Vk(n,t,_5(t,n)):null}let P3=(()=>{class t{}return t.__NG_ELEMENT_ID__=wk,t})();function wk(){return Xu(R1(),O())}const zk=P3,Zu=class extends zk{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return _5(this._hostTNode,this._hostLView)}get injector(){return new F6(this._hostTNode,this._hostLView)}get parentInjector(){const n=sn(this._hostTNode,this._hostLView);if(Wc(n)){const e=P6(n,this._hostLView),i=R6(n);return new F6(e[1].data[i+8],e)}return new F6(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=Ju(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const a=n.createEmbeddedView(e||{});return this.insert(a,i),a}createComponent(n,e,i,a,r){const o=n&&!function Ct(t){return"function"==typeof t}(n);let s;if(o)s=e;else{const f=e||{};s=f.index,i=f.injector,a=f.projectableNodes,r=f.ngModuleRef}const c=o?n:new Zr(c3(n)),l=i||this.parentInjector;if(!r&&null==c.ngModule){const h=(o?l:this.parentInjector).get(te,null);h&&(r=h)}const C=c.create(l,a,void 0,r);return this.insert(C.hostView,s),C}insert(n,e){const i=n._lView,a=i[1];if(function iD(t){return f4(t[3])}(i)){const C=this.indexOf(n);if(-1!==C)this.detach(C);else{const f=i[3],h=new Zu(f,f[6],f[3]);h.detach(h.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function sN(t,n,e,i){const a=10+i,r=e.length;i>0&&(e[a-1][4]=n),i<r-10?(n[4]=e[a],nl(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function cN(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const s=n[19];null!==s&&s.insertView(t),n[2]|=128}(a,i,o,r);const s=Za(r,o),c=i[11],l=vn(c,o[7]);return null!==l&&function aN(t,n,e,i,a,r){i[0]=a,i[6]=n,bt(t,i,e,1,a,r)}(a,o[6],c,i,l,s),n.attachToViewContainerRef(),nl(n7(o),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=Ju(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Ka(this._lContainer,e);i&&(Cn(n7(this._lContainer),e),Bl(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Ka(this._lContainer,e);return i&&null!=Cn(n7(this._lContainer),e)?new It(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function Ju(t){return t[8]}function n7(t){return t[8]||(t[8]=[])}function Xu(t,n){let e;const i=n[t.index];if(f4(i))e=i;else{let a;if(8&t.type)a=E1(i);else{const r=n[11];a=r.createComment("");const o=Y3(t,n);Xe(r,vn(r,o),a,function uN(t,n){return M1(t)?t.nextSibling(n):n.nextSibling}(r,o),!1)}n[t.index]=e=xC(i,n,a,t),Hn(n,e)}return new Zu(e,t,n)}class i7{constructor(n){this.queryList=n,this.matches=null}clone(){return new i7(this.queryList)}setDirty(){this.queryList.setDirty()}}class a7{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,a=[];for(let r=0;r<i;r++){const o=e.getByIndex(r);a.push(this.queries[o.indexInDeclarationView].clone())}return new a7(a)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==ad(n,e).matches&&this.queries[e].setDirty()}}class ed{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class r7{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const a=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,a);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new r7(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class o7{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new o7(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let a=0;a<i.length;a++){const r=i[a];this.matchTNodeWithReadOption(n,e,xk(e,r)),this.matchTNodeWithReadOption(n,e,ln(e,n,r,!1,!1))}else i===f1?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,ln(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const a=this.metadata.read;if(null!==a)if(a===A2||a===P3||a===f1&&4&e.type)this.addMatch(e.index,-2);else{const r=ln(e,n,a,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function xk(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function Tk(t,n,e,i){return-1===e?function Nk(t,n){return 11&t.type?_5(t,n):4&t.type?Rn(t,n):null}(n,t):-2===e?function Ek(t,n,e){return e===A2?_5(n,t):e===f1?Rn(n,t):e===P3?Xu(n,t):void 0}(t,n,i):ct(t,t[1],e,n)}function td(t,n,e,i){const a=n[19].queries[i];if(null===a.matches){const r=t.data,o=e.matches,s=[];for(let c=0;c<o.length;c+=2){const l=o[c];s.push(l<0?null:Tk(n,r[l],o[c+1],e.metadata.read))}a.matches=s}return a.matches}function s7(t,n,e,i){const a=t.queries.getByIndex(e),r=a.matches;if(null!==r){const o=td(t,n,a,e);for(let s=0;s<r.length;s+=2){const c=r[s];if(c>0)i.push(o[s/2]);else{const l=r[s+1],C=n[-c];for(let f=10;f<C.length;f++){const h=C[f];h[17]===h[3]&&s7(h[1],h,l,i)}if(null!==C[9]){const f=C[9];for(let h=0;h<f.length;h++){const m=f[h];s7(m[1],m,l,i)}}}}}return i}function h1(t){const n=O(),e=D2(),i=Oc();ma(i+1);const a=ad(e,i);if(t.dirty&&xc(n)===(2==(2&a.metadata.flags))){if(null===a.matches)t.reset([]);else{const r=a.crossesNgTemplate?s7(e,n,i,[]):td(e,n,a,i);t.reset(r,YA),t.notifyOnChanges()}return!0}return!1}function z1(t,n,e,i){const a=D2();if(a.firstCreatePass){const r=R1();id(a,new ed(n,e,i),r.index),function kk(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(a,t),2==(2&e)&&(a.staticContentQueries=!0)}nd(a,O(),e)}function p1(){return function Ak(t,n){return t[19].queries[n].queryList}(O(),Oc())}function nd(t,n,e){const i=new t7(4==(4&e));LC(t,n,i,i.destroy),null===n[19]&&(n[19]=new a7),n[19].queries.push(new i7(i))}function id(t,n,e){null===t.queries&&(t.queries=new r7),t.queries.track(new o7(n,e))}function ad(t,n){return t.queries.getByIndex(n)}function X3(t,n){return Rn(t,n)}function Bn(...t){}const h7=new _2("Application Initializer");let p7=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Bn,this.reject=Bn,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,a)=>{this.resolve=i,this.reject=a})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let a=0;a<this.appInits.length;a++){const r=this.appInits[a]();if(Dt(r))e.push(r);else if(Or(r)){const o=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(a=>{this.reject(a)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(q(h7,8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Bt=new _2("AppId",{providedIn:"root",factory:function yd(){return`${g7()}${g7()}${g7()}`}});function g7(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ld=new _2("Platform Initializer"),m7=new _2("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),bd=new _2("appBootstrapListener");let Jk=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Se=new _2("LocaleId",{providedIn:"root",factory:()=>qD(Se,o2.Optional|o2.SkipSelf)||function Xk(){return"undefined"!=typeof $localize&&$localize.locale||Nn}()});class tI{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Vd=(()=>{class t{compileModuleSync(e){return new Jr(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=A4(W3(e).declarations).reduce((o,s)=>{const c=c3(s);return c&&o.push(new Zr(c)),o},[]);return new tI(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const iI=(()=>Promise.resolve(0))();function v7(t){"undefined"==typeof Zone?iI.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class F2{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new r2(!1),this.onMicrotaskEmpty=new r2(!1),this.onStable=new r2(!1),this.onError=new r2(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!i&&e,a.shouldCoalesceRunChangeDetection=i,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function aI(){let t=P2.requestAnimationFrame,n=P2.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function sI(t){const n=()=>{!function oI(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(P2,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,M7(t),t.isCheckStableRunning=!0,_7(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),M7(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,a,r,o,s)=>{try{return Hd(t),e.invokeTask(a,r,o,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),wd(t)}},onInvoke:(e,i,a,r,o,s,c)=>{try{return Hd(t),e.invoke(a,r,o,s,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),wd(t)}},onHasTask:(e,i,a,r)=>{e.hasTask(a,r),i===a&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,M7(t),_7(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,a,r)=>(e.handleError(a,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(a)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!F2.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(F2.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,a){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+a,n,rI,Bn,Bn);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const rI={};function _7(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function M7(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Hd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function wd(t){t._nesting--,_7(t)}class cI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new r2,this.onMicrotaskEmpty=new r2,this.onStable=new r2,this.onError=new r2}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,a){return n.apply(e,i)}}let y7=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{F2.assertNotInAngularZone(),v7(()=>{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())v7(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,a){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:a})}whenStable(e,i,a){if(a&&!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(e,i,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,a){return[]}}return t.\u0275fac=function(e){return new(e||t)(q(F2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),lI=(()=>{class t{constructor(){this._applications=new Map,L7.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return L7.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class CI{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let L7=new CI,i6=null;const zd=new _2("AllowMultipleToken"),Sd=new _2("PlatformOnDestroy");class Dd{constructor(n,e){this.name=n,this.token=e}}function xd(t,n,e=[]){const i=`Platform: ${n}`,a=new _2(i);return(r=[])=>{let o=b7();if(!o||o.injector.get(zd,!1)){const s=[...e,...r,{provide:a,useValue:!0}];t?t(s):function hI(t){if(i6&&!i6.get(zd,!1))throw new S2(400,"");i6=t;const n=t.get(Nd),e=t.get(Ld,null);e&&e.forEach(i=>i())}(function gI(t=[],n){return A1.create({name:n,providers:[{provide:Lr,useValue:"platform"},{provide:Sd,useValue:()=>i6=null},...t]})}(s,i))}return function pI(t){const n=b7();if(!n)throw new S2(401,"");return n}()}}function b7(){var t;return null!==(t=null==i6?void 0:i6.get(Nd))&&void 0!==t?t:null}let Nd=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const s=function mI(t,n){let e;return e="noop"===t?new cI:("zone.js"===t?void 0:t)||new F2({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:F2,useValue:s}];return s.run(()=>{const l=A1.create({providers:c,parent:this.injector,name:e.moduleType.name}),C=e.create(l),f=C.injector.get(yt,null);if(!f)throw new S2(402,"");return s.runOutsideAngular(()=>{const h=s.onError.subscribe({next:m=>{f.handleError(m)}});C.onDestroy(()=>{V7(this._modules,C),h.unsubscribe()})}),function vI(t,n,e){try{const i=e();return Dt(i)?i.catch(a=>{throw n.runOutsideAngular(()=>t.handleError(a)),a}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(f,s,()=>{const h=C.injector.get(p7);return h.runInitializers(),h.donePromise.then(()=>(function JE(t){N3(t,"Expected localeId to be defined"),"string"==typeof t&&(du=t.toLowerCase().replace(/_/g,"-"))}(C.injector.get(Se,Nn)||Nn),this._moduleDoBootstrap(C),C))})})}bootstrapModule(e,i=[]){const a=Td({},i);return function uI(t,n,e){const i=new Jr(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,a))}_moduleDoBootstrap(e){const i=e.injector.get(L5);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(a=>i.bootstrap(a));else{if(!e.instance.ngDoBootstrap)throw new S2(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S2(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Sd,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(q(A1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Td(t,n){return Array.isArray(n)?n.reduce(Td,t):Object.assign(Object.assign({},t),n)}let L5=(()=>{class t{constructor(e,i,a,r){this._zone=e,this._injector=i,this._exceptionHandler=a,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new k2(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),s=new k2(c=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{F2.assertNotInAngularZone(),v7(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const C=this._zone.onUnstable.subscribe(()=>{F2.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{l.unsubscribe(),C.unsubscribe()}});this.isStable=dc(o,s.pipe(hc()))}bootstrap(e,i){if(!this._initStatus.done)throw new S2(405,"");let a;a=e instanceof Ru?e:this._injector.get(v5).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const r=function dI(t){return t.isBoundToModule}(a)?void 0:this._injector.get(te),s=a.create(A1.NULL,[],i||a.selector,r),c=s.location.nativeElement,l=s.injector.get(y7,null),C=l&&s.injector.get(lI);return l&&C&&C.registerApplication(c,l),s.onDestroy(()=>{this.detachView(s.hostView),V7(this.components,s),C&&C.unregisterApplication(c)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new S2(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;V7(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(bd,[]).concat(this._bootstrapListeners).forEach(a=>a(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(q(F2),q(A1),q(yt),q(p7))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function V7(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Ad=!0,F3=(()=>{class t{}return t.__NG_ELEMENT_ID__=yI,t})();function yI(t){return function LI(t,n,e){if(K8(t)&&!e){const i=E3(t.index,n);return new It(i,i)}return 47&t.type?new It(n[16],n):null}(R1(),O(),16==(16&t))}class Pd{constructor(){}supports(n){return zt(n)}create(n){return new SI(n)}}const zI=(t,n)=>n;class SI{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||zI}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,a=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex<Bd(i,a,r)?e:i,s=Bd(o,a,r),c=o.currentIndex;if(o===i)a--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)a++;else{r||(r=[]);const l=s-a,C=c-a;if(l!=C){for(let h=0;h<l;h++){const m=h<r.length?r[h]:r[h]=0,V=m+h;C<=V&&V<l&&(r[h]=m+1)}r[o.previousIndex]=C-l}}s!==c&&n(o,s,c)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!zt(n))throw new S2(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let a,r,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)r=n[s],o=this._trackByFn(s,r),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,r,o,s)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,s),i=!0),e=e._next}else a=0,function PT(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[t5()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,s=>{o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next,a++}),this.length=a;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,a){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,a)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,a))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,a)):n=this._addAfter(new DI(e,i),r,a),n}_verifyReinsertion(n,e,i,a){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,a):n.currentIndex!=a&&(n.currentIndex=a,this._addToMoves(n,a)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const a=n._prevRemoved,r=n._nextRemoved;return null===a?this._removalsHead=r:a._nextRemoved=r,null===r?this._removalsTail=a:r._prevRemoved=a,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const a=null===e?this._itHead:e._next;return n._next=a,n._prev=e,null===a?this._itTail=n:a._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Fd),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fd),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class DI{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class xI{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Fd{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new xI,this.map.set(e,i)),i.add(n)}get(n,e){const a=this.map.get(n);return a?a.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Bd(t,n,e){const i=t.previousIndex;if(null===i)return i;let a=0;return e&&i<e.length&&(a=e[i]),i+n+a}function Gd(){return new jn([new Pd])}let jn=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const a=i.factories.slice();e=e.concat(a)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Gd()),deps:[[t,new pt,new Ve]]}}find(e){const i=this.factories.find(a=>a.supports(e));if(null!=i)return i;throw new S2(901,"")}}return t.\u0275prov=Q({token:t,providedIn:"root",factory:Gd}),t})();const kI=xd(null,"core",[]);let II=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(q(L5))},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})(),$n=null;function P4(){return $n}const S1=new _2("DocumentToken");let r6=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:function(){return function FI(){return q($d)}()},providedIn:"platform"}),t})();const BI=new _2("Location Initialized");let $d=(()=>{class t extends r6{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return P4().getBaseHref(this._doc)}onPopState(e){const i=P4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=P4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,a){Wd()?this._history.pushState(e,i,a):this.location.hash=a}replaceState(e,i,a){Wd()?this._history.replaceState(e,i,a):this.location.hash=a}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:function(){return function UI(){return new $d(q(S1))}()},providedIn:"platform"}),t})();function Wd(){return!!window.history.pushState}function D7(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function qd(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function ne(t){return t&&"?"!==t[0]?"?"+t:t}let o6=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:function(){return function GI(t){const n=q(S1).location;return new Kd(q(r6),n&&n.origin||"")}()},providedIn:"root"}),t})();const x7=new _2("appBaseHref");let Kd=(()=>{class t extends o6{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return D7(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ne(this._platformLocation.search),a=this._platformLocation.hash;return a&&e?`${i}${a}`:i}pushState(e,i,a,r){const o=this.prepareExternalUrl(a+ne(r));this._platformLocation.pushState(e,i,o)}replaceState(e,i,a,r){const o=this.prepareExternalUrl(a+ne(r));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,a;null===(a=(i=this._platformLocation).historyGo)||void 0===a||a.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(q(r6),q(x7,8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),Yd=(()=>{class t extends o6{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=D7(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,a,r){let o=this.prepareExternalUrl(a+ne(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,a,r){let o=this.prepareExternalUrl(a+ne(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,a;null===(a=(i=this._platformLocation).historyGo)||void 0===a||a.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(q(r6),q(x7,8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),N7=(()=>{class t{constructor(e,i){this._subject=new r2,this._urlChangeListeners=[],this._platformStrategy=e;const a=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=qd(Qd(a)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ne(i))}normalize(e){return t.stripTrailingSlash(function $I(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,Qd(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",a=null){this._platformStrategy.pushState(a,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ne(i)),a)}replaceState(e,i="",a=null){this._platformStrategy.replaceState(a,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ne(i)),a)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,a;null===(a=(i=this._platformStrategy).historyGo)||void 0===a||a.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(a=>a(e,i))}subscribe(e,i,a){return this._subject.subscribe({next:e,error:i,complete:a})}}return t.normalizeQueryParams=ne,t.joinWithSlash=D7,t.stripTrailingSlash=qd,t.\u0275fac=function(e){return new(e||t)(q(o6),q(r6))},t.\u0275prov=Q({token:t,factory:function(){return function jI(){return new N7(q(o6),q(r6))}()},providedIn:"root"}),t})();function Qd(t){return t.replace(/\/index.html$/,"")}class NO{constructor(n,e,i,a){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=a}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ae=(()=>{class t{constructor(e,i,a){this._viewContainer=e,this._template=i,this._differs=a,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((a,r,o)=>{if(null==a.previousIndex)i.createEmbeddedView(this._template,new NO(a.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,o),rh(s,a)}});for(let a=0,r=i.length;a<r;a++){const s=i.get(a).context;s.index=a,s.count=r,s.ngForOf=this._ngForOf}e.forEachIdentityChange(a=>{rh(i.get(a.currentIndex),a)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(P3),b(f1),b(jn))},t.\u0275dir=G({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function rh(t,n){t.context.$implicit=n.item}let m1=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new TO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){oh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){oh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(P3),b(f1))},t.\u0275dir=G({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class TO{constructor(){this.$implicit=null,this.ngIf=null}}function oh(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${I2(n)}'.`)}let b5=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(b(P3))},t.\u0275dir=G({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[H1]}),t})(),B3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();let cR=(()=>{class t{}return t.\u0275prov=Q({token:t,providedIn:"root",factory:()=>new lR(q(S1),window)}),t})();class lR{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function CR(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let a=i.currentNode;for(;a;){const r=a.shadowRoot;if(r){const o=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(o)return o}a=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,a=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],a-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Ch(this.window.history)||Ch(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function Ch(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class $7 extends class uR extends class PI{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function RI(t){$n||($n=t)}(new $7)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function dR(){return $t=$t||document.querySelector("base"),$t?$t.getAttribute("href"):null}();return null==e?null:function hR(t){t0=t0||document.createElement("a"),t0.setAttribute("href",t);const n=t0.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){$t=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function SO(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[a,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(a.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let t0,$t=null;const fh=new _2("TRANSITION_ID"),gR=[{provide:h7,useFactory:function pR(t,n,e){return()=>{e.get(p7).donePromise.then(()=>{const i=P4(),a=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<a.length;r++)i.remove(a[r])})}},deps:[fh,S1,A1],multi:!0}];class W7{static init(){!function fI(t){L7=t}(new W7)}addToWindow(n){P2.getAngularTestability=(i,a=!0)=>{const r=n.findTestabilityInTree(i,a);if(null==r)throw new Error("Could not find testability for element.");return r},P2.getAllAngularTestabilities=()=>n.getAllTestabilities(),P2.getAllAngularRootElements=()=>n.getAllRootElements(),P2.frameworkStabilizers||(P2.frameworkStabilizers=[]),P2.frameworkStabilizers.push(i=>{const a=P2.getAllAngularTestabilities();let r=a.length,o=!1;const s=function(c){o=o||c,r--,0==r&&i(o)};a.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const a=n.getTestability(e);return null!=a?a:i?P4().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let mR=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();const n0=new _2("EventManagerPlugins");let a0=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,a){return this._findPluginFor(i).addEventListener(e,i,a)}addGlobalEventListener(e,i,a){return this._findPluginFor(i).addGlobalEventListener(e,i,a)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const a=this._plugins;for(let r=0;r<a.length;r++){const o=a[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(q(n0),q(F2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();class uh{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const a=P4().getGlobalEventTarget(this._doc,n);if(!a)throw new Error(`Unsupported event target ${a} for event ${e}`);return this.addEventListener(a,e,i)}}let dh=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),i.add(a))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),Wt=(()=>{class t extends dh{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,a){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,a.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(hh),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,a)=>{this._addStylesToHost(e,a,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(hh))}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();function hh(t){P4().remove(t)}const q7={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/"},K7=/%COMP%/g;function r0(t,n,e){for(let i=0;i<n.length;i++){let a=n[i];Array.isArray(a)?r0(t,a,e):(a=a.replace(K7,t),e.push(a))}return e}function mh(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Y7=(()=>{class t{constructor(e,i,a){this.eventManager=e,this.sharedStylesHost=i,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Q7(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case z4.Emulated:{let a=this.rendererByCompId.get(i.id);return a||(a=new bR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,a)),a.applyToHost(e),a}case 1:case z4.ShadowDom:return new VR(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const a=r0(i.id,i.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(q(a0),q(Wt),q(Bt))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();class Q7{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(q7[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,a){if(a){e=a+":"+e;const r=q7[a];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const a=q7[i];a?n.removeAttributeNS(a,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,a){a&(I3.DashCase|I3.Important)?n.style.setProperty(e,i,a&I3.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&I3.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,mh(i)):this.eventManager.addEventListener(n,e,mh(i))}}class bR extends Q7{constructor(n,e,i,a){super(n),this.component=i;const r=r0(a+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function MR(t){return"_ngcontent-%COMP%".replace(K7,t)}(a+"-"+i.id),this.hostAttr=function yR(t){return"_nghost-%COMP%".replace(K7,t)}(a+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class VR extends Q7{constructor(n,e,i,a){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=r0(a.id,a.styles,[]);for(let o=0;o<r.length;o++){const s=document.createElement("style");s.textContent=r[o],this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let HR=(()=>{class t extends uh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,a){return e.addEventListener(i,a,!1),()=>this.removeEventListener(e,i,a)}removeEventListener(e,i,a){return e.removeEventListener(i,a)}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();const _h=["alt","control","meta","shift"],zR={"\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"},Mh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},SR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let DR=(()=>{class t extends uh{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,a){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>P4().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),a=i.shift();if(0===i.length||"keydown"!==a&&"keyup"!==a)return null;const r=t._normalizeKey(i.pop());let o="";if(_h.forEach(c=>{const l=i.indexOf(c);l>-1&&(i.splice(l,1),o+=c+".")}),o+=r,0!=i.length||0===r.length)return null;const s={};return s.domEventName=a,s.fullKey=o,s}static getEventFullKey(e){let i="",a=function xR(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Mh.hasOwnProperty(n)&&(n=Mh[n]))}return zR[n]||n}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),_h.forEach(r=>{r!=a&&SR[r](e)&&(i+=r+".")}),i+=a,i}static eventCallback(e,i,a){return r=>{t.getEventFullKey(r)===e&&a.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();const AR=xd(kI,"browser",[{provide:m7,useValue:"browser"},{provide:Ld,useValue:function NR(){$7.makeCurrent(),W7.init()},multi:!0},{provide:S1,useFactory:function ER(){return function XS(t){ca=t}(document),document},deps:[]}]),kR=[{provide:Lr,useValue:"root"},{provide:yt,useFactory:function TR(){return new yt},deps:[]},{provide:n0,useClass:HR,multi:!0,deps:[S1,F2,m7]},{provide:n0,useClass:DR,multi:!0,deps:[S1]},{provide:Y7,useClass:Y7,deps:[a0,Wt,Bt]},{provide:Yr,useExisting:Y7},{provide:dh,useExisting:Wt},{provide:Wt,useClass:Wt,deps:[S1]},{provide:y7,useClass:y7,deps:[F2]},{provide:a0,useClass:a0,deps:[n0,F2]},{provide:class fR{},useClass:mR,deps:[]}];let IR=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Bt,useValue:e.appId},{provide:fh,useExisting:Bt},gR]}}}return t.\u0275fac=function(e){return new(e||t)(q(t,12))},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({providers:kR,imports:[B3,II]}),t})();"undefined"!=typeof window&&window;let bh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:function(e){let i=null;return i=e?new(e||t):q(Vh),i},providedIn:"root"}),t})(),Vh=(()=>{class t extends bh{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Z2.NONE:return i;case Z2.HTML:return N4(i,"HTML")?k3(i):Hl(this._doc,String(i)).toString();case Z2.STYLE:return N4(i,"Style")?k3(i):i;case Z2.SCRIPT:if(N4(i,"Script"))return k3(i);throw new Error("unsafe value used in a script context");case Z2.URL:return ml(i),N4(i,"URL")?k3(i):mt(String(i));case Z2.RESOURCE_URL:if(N4(i,"ResourceURL"))return k3(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function ux(t){return new sx(t)}(e)}bypassSecurityTrustStyle(e){return function dx(t){return new cx(t)}(e)}bypassSecurityTrustScript(e){return function hx(t){return new lx(t)}(e)}bypassSecurityTrustUrl(e){return function px(t){return new Cx(t)}(e)}bypassSecurityTrustResourceUrl(e){return function gx(t){return new fx(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:function(e){let i=null;return i=e?new e:function WR(t){return new Vh(t.get(S1))}(q(A1)),i},providedIn:"root"}),t})();const{isArray:qR}=Array,{getPrototypeOf:KR,prototype:YR,keys:QR}=Object;function Hh(t){if(1===t.length){const n=t[0];if(qR(n))return{args:n,keys:null};if(function ZR(t){return t&&"object"==typeof t&&KR(t)===YR}(n)){const e=QR(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:JR}=Array;function J7(t){return v2(n=>function XR(t,n){return JR(n)?t(...n):t(n)}(t,n))}function wh(t,n){return t.reduce((e,i,a)=>(e[i]=n[a],e),{})}let zh=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(b(d3),b(A2))},t.\u0275dir=G({type:t}),t})(),s6=(()=>{class t extends zh{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,features:[Z]}),t})();const n4=new _2("NgValueAccessor"),tP={provide:n4,useExisting:x2(()=>U1),multi:!0};let U1=(()=>{class t extends s6{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&A("change",function(r){return i.onChange(r.target.checked)})("blur",function(){return i.onTouched()})},features:[W2([tP]),Z]}),t})();const nP={provide:n4,useExisting:x2(()=>xe),multi:!0},aP=new _2("CompositionEventMode");let xe=(()=>{class t extends zh{constructor(e,i,a){super(e,i),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iP(){const t=P4()?P4().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(b(d3),b(A2),b(aP,8))},t.\u0275dir=G({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&A("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[W2([nP]),Z]}),t})();const h3=new _2("NgValidators"),Te=new _2("NgAsyncValidators"),rP=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function Eh(t){return function Ne(t){return null==t||0===t.length}(t.value)||rP.test(t.value)?null:{email:!0}}function o0(t){return null}function Oh(t){return null!=t}function Rh(t){const n=Dt(t)?$1(t):t;return Or(n),n}function Ph(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function Fh(t,n){return n.map(e=>e(t))}function Bh(t){return t.map(n=>function oP(t){return!t.validate}(n)?n:e=>n.validate(e))}function X7(t){return null!=t?function Uh(t){if(!t)return null;const n=t.filter(Oh);return 0==n.length?null:function(e){return Ph(Fh(e,n))}}(Bh(t)):null}function eo(t){return null!=t?function Gh(t){if(!t)return null;const n=t.filter(Oh);return 0==n.length?null:function(e){return function eP(...t){const n=B8(t),{args:e,keys:i}=Hh(t),a=new k2(r=>{const{length:o}=e;if(!o)return void r.complete();const s=new Array(o);let c=o,l=o;for(let C=0;C<o;C++){let f=!1;s3(e[C]).subscribe(R2(r,h=>{f||(f=!0,l--),s[C]=h},()=>c--,void 0,()=>{(!c||!f)&&(l||r.next(i?wh(i,s):s),r.complete())}))}});return n?a.pipe(J7(n)):a}(Fh(e,n).map(Rh)).pipe(v2(Ph))}}(Bh(t)):null}function jh(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function to(t){return t?Array.isArray(t)?t:[t]:[]}function s0(t,n){return Array.isArray(t)?t.includes(n):t===n}function qh(t,n){const e=to(n);return to(t).forEach(a=>{s0(e,a)||e.push(a)}),e}function Kh(t,n){return to(n).filter(e=>!s0(t,e))}class Yh{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=X7(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=eo(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Ee extends Yh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class b3 extends Yh{get formDirective(){return null}get path(){return null}}let a1=(()=>{class t extends class Qh{constructor(n){this._cd=n}is(n){var e,i,a;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(a=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===a?void 0:a[n])}}{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Ee,2))},t.\u0275dir=G({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&J2("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[Z]}),t})();function qt(t,n){(function ao(t,n){const e=function $h(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(jh(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function Wh(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(jh(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const a=()=>t.updateValueAndValidity();f0(n._rawValidators,a),f0(n._rawAsyncValidators,a)})(t,n),n.valueAccessor.writeValue(t.value),function pP(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Jh(t,n)})}(t,n),function mP(t,n){const e=(i,a)=>{n.valueAccessor.writeValue(i),a&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function gP(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Jh(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function hP(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function f0(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Jh(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function so(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const Kt="VALID",d0="INVALID",V5="PENDING",Yt="DISABLED";function lo(t){return(h0(t)?t.validators:t)||null}function np(t){return Array.isArray(t)?X7(t):t||null}function Co(t,n){return(h0(n)?n.asyncValidators:t)||null}function ip(t){return Array.isArray(t)?eo(t):t||null}function h0(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const fo=t=>t instanceof ho;function rp(t){return(t=>t instanceof cp)(t)?t.value:t.getRawValue()}function op(t,n){const e=fo(t),i=t.controls;if(!(e?Object.keys(i):i).length)throw new S2(1e3,"");if(!i[n])throw new S2(1001,"")}function sp(t,n){fo(t),t._forEachChild((i,a)=>{if(void 0===n[a])throw new S2(1002,"")})}class uo{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=np(this._rawValidators),this._composedAsyncValidatorFn=ip(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Kt}get invalid(){return this.status===d0}get pending(){return this.status==V5}get disabled(){return this.status===Yt}get enabled(){return this.status!==Yt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=np(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=ip(n)}addValidators(n){this.setValidators(qh(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(qh(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Kh(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Kh(n,this._rawAsyncValidators))}hasValidator(n){return s0(this._rawValidators,n)}hasAsyncValidator(n){return s0(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=V5,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Yt,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Kt,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Kt||this.status===V5)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Yt:Kt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=V5,this._hasOwnPendingAsyncValidator=!0;const e=Rh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function yP(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(e)),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(a=>{i=fo(i)?i.controls.hasOwnProperty(a)?i.controls[a]:null:(t=>t instanceof bP)(i)&&i.at(a)||null}),i}(this,n,".")}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new r2,this.statusChanges=new r2}_calculateStatus(){return this._allControlsDisabled()?Yt:this.errors?d0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(V5)?V5:this._anyControlsHaveStatus(d0)?d0:Kt}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){h0(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class cp extends uo{constructor(n=null,e,i){super(lo(e),Co(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),h0(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){so(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){so(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class ho extends uo{constructor(n,e,i){super(lo(e),Co(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){sp(this,n),Object.keys(n).forEach(i=>{op(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,a)=>{i.reset(n[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=rp(e),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((a,r)=>{i=e(i,a,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class bP extends uo{constructor(n,e,i){super(lo(e),Co(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){sp(this,n),n.forEach((i,a)=>{op(this,a),this.at(a).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,a)=>{this.at(a)&&this.at(a).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,a)=>{i.reset(n[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>rp(n))}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const wP={provide:Ee,useExisting:x2(()=>e1)},fp=(()=>Promise.resolve(null))();let e1=(()=>{class t extends Ee{constructor(e,i,a,r,o){super(),this._changeDetectorRef=o,this.control=new cp,this._registered=!1,this.update=new r2,this._parent=e,this._setValidators(i),this._setAsyncValidators(a),this.valueAccessor=function oo(t,n){if(!n)return null;let e,i,a;return Array.isArray(n),n.forEach(r=>{r.constructor===xe?e=r:function MP(t){return Object.getPrototypeOf(t.constructor)===s6}(r)?i=r:a=r}),a||i||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function ro(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){qt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){fp.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,a=""===i||i&&"false"!==i;fp.then(()=>{var r;a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(e){return this._parent?function l0(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(b(b3,9),b(h3,10),b(Te,10),b(n4,10),b(F3,8))},t.\u0275dir=G({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[W2([wP]),Z,H1]}),t})();const SP={provide:n4,useExisting:x2(()=>H5),multi:!0};let H5=(()=>{class t extends s6{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&A("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},features:[W2([SP]),Z]}),t})(),up=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();const OP={provide:n4,useExisting:x2(()=>Ae),multi:!0};function _p(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Ae=(()=>{class t extends s6{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const a=_p(this._getOptionId(e),e);this.setProperty("value",a)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function RP(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&A("change",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[W2([OP]),Z]}),t})(),w5=(()=>{class t{constructor(e,i,a){this._element=e,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(_p(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(d3),b(Ae,9))},t.\u0275dir=G({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const PP={provide:n4,useExisting:x2(()=>_o),multi:!0};function Mp(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let _o=(()=>{class t extends s6{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const a=e.map(r=>this._getOptionId(r));i=(r,o)=>{r._setSelected(a.indexOf(o.toString())>-1)}}else i=(a,r)=>{a._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const a=[],r=i.selectedOptions;if(void 0!==r){const o=r;for(let s=0;s<o.length;s++){const l=this._getOptionValue(o[s].value);a.push(l)}}else{const o=i.options;for(let s=0;s<o.length;s++){const c=o[s];if(c.selected){const l=this._getOptionValue(c.value);a.push(l)}}}this.value=a,e(a)}}_registerOption(e){const i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){const i=function FP(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,i){1&e&&A("change",function(r){return i.onChange(r.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[W2([PP]),Z]}),t})(),z5=(()=>{class t{constructor(e,i,a){this._element=e,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Mp(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Mp(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(d3),b(_o,9))},t.\u0275dir=G({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),c6=(()=>{class t{constructor(){this._validator=o0}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):o0,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=G({type:t,features:[H1]}),t})();const WP={provide:h3,useExisting:x2(()=>yo),multi:!0};let yo=(()=>{class t extends c6{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=e=>""===e||!0===e||"true"===e,this.createValidator=e=>Eh}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=C3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[W2([WP]),Z]}),t})(),QP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[up]]}),t})(),Dp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[QP]}),t})();function s2(...t){return $1(t,X5(t))}const ZP=["addListener","removeListener"],JP=["addEventListener","removeEventListener"],XP=["on","off"];function p3(t,n,e,i){if(K(e)&&(i=e,e=void 0),i)return p3(t,n,e).pipe(J7(i));const[a,r]=function nF(t){return K(t.addEventListener)&&K(t.removeEventListener)}(t)?JP.map(o=>s=>t[o](n,s,e)):function eF(t){return K(t.addListener)&&K(t.removeListener)}(t)?ZP.map(xp(t,n)):function tF(t){return K(t.on)&&K(t.off)}(t)?XP.map(xp(t,n)):[];if(!a&&ji(t))return b1(o=>p3(o,n,e))(s3(t));if(!a)throw new TypeError("Invalid event target");return new k2(o=>{const s=(...c)=>o.next(1<c.length?c:c[0]);return a(s),()=>r(s)})}function xp(t,n){return e=>i=>t[e](n,i)}class iF extends H2{constructor(n,e){super()}schedule(n,e=0){return this}}const p0={setInterval(t,n,...e){const{delegate:i}=p0;return(null==i?void 0:i.setInterval)?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=p0;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0},Np={now:()=>(Np.delegate||Date).now(),delegate:void 0};class Zt{constructor(n,e=Zt.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Zt.now=Np.now;const Tp=new class rF extends Zt{constructor(n,e=Zt.now){super(n,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}(class aF extends iF{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,a=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(a,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(a,this.id,e),this}requestAsyncId(n,e,i=0){return p0.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;p0.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let a,i=!1;try{this.work(n)}catch(r){i=!0,a=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),a}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,q2(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}),oF=Tp;function Lo(t=0,n,e=oF){let i=-1;return null!=n&&(lc(n)?e=n:i=n),new k2(a=>{let r=function sF(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let o=0;return e.schedule(function(){a.closed||(a.next(o++),0<=i?this.schedule(void 0,i):a.complete())},r)})}const{isArray:cF}=Array;function Ep(t){return 1===t.length&&cF(t[0])?t[0]:t}function Ap(...t){return 1===(t=Ep(t)).length?s3(t[0]):new k2(function lF(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i<t.length;i++)e.push(s3(t[i]).subscribe(R2(n,a=>{if(e){for(let r=0;r<e.length;r++)r!==i&&e[r].unsubscribe();e=null}n.next(a)})))}}(t))}class q1 extends d2{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function kp(t,n,e){t?W4(e,t,n):n()}function g0(...t){const n=B8(t),e=Ep(t);return e.length?new k2(i=>{let a=e.map(()=>[]),r=e.map(()=>!1);i.add(()=>{a=r=null});for(let o=0;!i.closed&&o<e.length;o++)s3(e[o]).subscribe(R2(i,s=>{if(a[o].push(s),a.every(c=>c.length)){const c=a.map(l=>l.shift());i.next(n?n(...c):c),a.some((l,C)=>!l.length&&r[C])&&i.complete()}},()=>{r[o]=!0,!a[o].length&&i.complete()}));return()=>{a=r=null}}):c4}function Jt(...t){return function fF(){return J5(1)}()($1(t,X5(t)))}function G1(t){return c1((n,e)=>{s3(t).subscribe(R2(e,()=>e.complete(),O1)),!e.closed&&n.subscribe(e)})}function J1(t,n){return c1((e,i)=>{let a=0;e.subscribe(R2(i,r=>t.call(n,r,a++)&&i.next(r)))})}function re(t,n){return c1((e,i)=>{let a=null,r=0,o=!1;const s=()=>o&&!a&&i.complete();e.subscribe(R2(i,c=>{null==a||a.unsubscribe();let l=0;const C=r++;s3(t(c,C)).subscribe(a=R2(i,f=>i.next(n?n(c,f,C,l++):f),()=>{a=null,s()}))},()=>{o=!0,s()}))})}function g3(t,n,e){const i=K(t)||n||e?{next:t,error:n,complete:e}:t;return i?c1((a,r)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let s=!0;a.subscribe(R2(r,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),r.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),r.complete()},c=>{var l;s=!1,null===(l=i.error)||void 0===l||l.call(i,c),r.error(c)},()=>{var c,l;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):o4}function Ho(...t){const n=B8(t);return c1((e,i)=>{const a=t.length,r=new Array(a);let o=t.map(()=>!1),s=!1;for(let c=0;c<a;c++)s3(t[c]).subscribe(R2(i,l=>{r[c]=l,!s&&!o[c]&&(o[c]=!0,(s=o.every(o4))&&(o=null))},O1));e.subscribe(R2(i,c=>{if(s){const l=[c,...r];i.next(n?n(...l):l)}}))})}function Op(t,n){return n?e=>Jt(n.pipe(Q1(1),function hF(){return c1((t,n)=>{t.subscribe(R2(n,O1))})}()),e.pipe(Op(t))):b1((e,i)=>t(e,i).pipe(Q1(1),function pF(t){return v2(()=>t)}(e)))}function Rp(t,n=Tp){const e=Lo(t,n);return Op(()=>e)}new k2(O1);var mF={left:"right",right:"left",bottom:"top",top:"bottom"};function v0(t){return t.replace(/left|right|bottom|top/g,function(n){return mF[n]})}function F4(t){return t.split("-")[0]}var vF={start:"end",end:"start"};function Pp(t){return t.replace(/start|end/g,function(n){return vF[n]})}var U3="top",y4="bottom",L4="right",G3="left",wo="auto",Xt=[U3,y4,L4,G3],S5="start",e8="end",Fp="viewport",t8="popper",Bp=Xt.reduce(function(t,n){return t.concat([n+"-"+S5,n+"-"+e8])},[]),Up=[].concat(Xt,[wo]).reduce(function(t,n){return t.concat([n,n+"-"+S5,n+"-"+e8])},[]),xF=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b4(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function D5(t){return t instanceof b4(t).Element||t instanceof Element}function i4(t){return t instanceof b4(t).HTMLElement||t instanceof HTMLElement}function zo(t){return"undefined"!=typeof ShadowRoot&&(t instanceof b4(t).ShadowRoot||t instanceof ShadowRoot)}function ke(t){return((D5(t)?t.ownerDocument:t.document)||window.document).documentElement}var l6=Math.max,_0=Math.min,x5=Math.round;function N5(t,n){void 0===n&&(n=!1);var e=t.getBoundingClientRect(),i=1,a=1;if(i4(t)&&n){var r=t.offsetHeight,o=t.offsetWidth;o>0&&(i=x5(e.width)/o||1),r>0&&(a=x5(e.height)/r||1)}return{width:e.width/i,height:e.height/a,top:e.top/a,right:e.right/i,bottom:e.bottom/a,left:e.left/i,x:e.left/i,y:e.top/a}}function So(t){var n=b4(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Do(t){return N5(ke(t)).left+So(t).scrollLeft}function oe(t){return b4(t).getComputedStyle(t)}function B4(t){return t?(t.nodeName||"").toLowerCase():null}function M0(t){return"html"===B4(t)?t:t.assignedSlot||t.parentNode||(zo(t)?t.host:null)||ke(t)}function xo(t){var n=oe(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function Gp(t){return["html","body","#document"].indexOf(B4(t))>=0?t.ownerDocument.body:i4(t)&&xo(t)?t:Gp(M0(t))}function n8(t,n){var e;void 0===n&&(n=[]);var i=Gp(t),a=i===(null==(e=t.ownerDocument)?void 0:e.body),r=b4(i),o=a?[r].concat(r.visualViewport||[],xo(i)?i:[]):i,s=n.concat(o);return a?s:s.concat(n8(M0(o)))}function EF(t){return["table","td","th"].indexOf(B4(t))>=0}function jp(t){return i4(t)&&"fixed"!==oe(t).position?t.offsetParent:null}function i8(t){for(var n=b4(t),e=jp(t);e&&EF(e)&&"static"===oe(e).position;)e=jp(e);return e&&("html"===B4(e)||"body"===B4(e)&&"static"===oe(e).position)?n:e||function AF(t){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&i4(t)&&"fixed"===oe(t).position)return null;var a=M0(t);for(zo(a)&&(a=a.host);i4(a)&&["html","body"].indexOf(B4(a))<0;){var r=oe(a);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return a;a=a.parentNode}return null}(t)||n}function $p(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&zo(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function No(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Wp(t,n){return n===Fp?No(function NF(t){var n=b4(t),e=ke(t),i=n.visualViewport,a=e.clientWidth,r=e.clientHeight,o=0,s=0;return i&&(a=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:a,height:r,x:o+Do(t),y:s}}(t)):D5(n)?function kF(t){var n=N5(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(n):No(function TF(t){var n,e=ke(t),i=So(t),a=null==(n=t.ownerDocument)?void 0:n.body,r=l6(e.scrollWidth,e.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=l6(e.scrollHeight,e.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-i.scrollLeft+Do(t),c=-i.scrollTop;return"rtl"===oe(a||e).direction&&(s+=l6(e.clientWidth,a?a.clientWidth:0)-r),{width:r,height:o,x:s,y:c}}(ke(t)))}function T5(t){return t.split("-")[1]}function To(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function qp(t){var c,n=t.reference,e=t.element,i=t.placement,a=i?F4(i):null,r=i?T5(i):null,o=n.x+n.width/2-e.width/2,s=n.y+n.height/2-e.height/2;switch(a){case U3:c={x:o,y:n.y-e.height};break;case y4:c={x:o,y:n.y+n.height};break;case L4:c={x:n.x+n.width,y:s};break;case G3:c={x:n.x-e.width,y:s};break;default:c={x:n.x,y:n.y}}var l=a?To(a):null;if(null!=l){var C="y"===l?"height":"width";switch(r){case S5:c[l]=c[l]-(n[C]/2-e[C]/2);break;case e8:c[l]=c[l]+(n[C]/2-e[C]/2)}}return c}function Yp(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Qp(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function Eo(t,n){void 0===n&&(n={});var i=n.placement,a=void 0===i?t.placement:i,r=n.boundary,o=void 0===r?"clippingParents":r,s=n.rootBoundary,c=void 0===s?Fp:s,l=n.elementContext,C=void 0===l?t8:l,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,V=void 0===m?0:m,H=Yp("number"!=typeof V?V:Qp(V,Xt)),x=t.rects.popper,w=t.elements[h?C===t8?"reference":t8:C],I=function OF(t,n,e){var i="clippingParents"===n?function IF(t){var n=n8(M0(t)),i=["absolute","fixed"].indexOf(oe(t).position)>=0&&i4(t)?i8(t):t;return D5(i)?n.filter(function(a){return D5(a)&&$p(a,i)&&"body"!==B4(a)}):[]}(t):[].concat(n),a=[].concat(i,[e]),o=a.reduce(function(s,c){var l=Wp(t,c);return s.top=l6(l.top,s.top),s.right=_0(l.right,s.right),s.bottom=_0(l.bottom,s.bottom),s.left=l6(l.left,s.left),s},Wp(t,a[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(D5(w)?w:w.contextElement||ke(t.elements.popper),o,c),U=N5(t.elements.reference),j=qp({reference:U,element:x,strategy:"absolute",placement:a}),J=No(Object.assign({},x,j)),u2=C===t8?J:U,m2={top:I.top-u2.top+H.top,bottom:u2.bottom-I.bottom+H.bottom,left:I.left-u2.left+H.left,right:u2.right-I.right+H.right},B2=t.modifiersData.offset;if(C===t8&&B2){var x1=B2[a];Object.keys(m2).forEach(function(t1){var V3=[L4,y4].indexOf(t1)>=0?1:-1,t3=[U3,y4].indexOf(t1)>=0?"y":"x";m2[t1]+=x1[t3]*V3})}return m2}const BF={name:"flip",enabled:!0,phase:"main",fn:function FF(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var a=e.mainAxis,r=void 0===a||a,o=e.altAxis,s=void 0===o||o,c=e.fallbackPlacements,l=e.padding,C=e.boundary,f=e.rootBoundary,h=e.altBoundary,m=e.flipVariations,V=void 0===m||m,H=e.allowedAutoPlacements,S=n.options.placement,x=F4(S),I=c||(x!==S&&V?function PF(t){if(F4(t)===wo)return[];var n=v0(t);return[Pp(t),n,Pp(n)]}(S):[v0(S)]),U=[S].concat(I).reduce(function($5,Ue){return $5.concat(F4(Ue)===wo?function RF(t,n){void 0===n&&(n={});var a=n.boundary,r=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?Up:c,C=T5(n.placement),f=C?s?Bp:Bp.filter(function(V){return T5(V)===C}):Xt,h=f.filter(function(V){return l.indexOf(V)>=0});0===h.length&&(h=f);var m=h.reduce(function(V,H){return V[H]=Eo(t,{placement:H,boundary:a,rootBoundary:r,padding:o})[F4(H)],V},{});return Object.keys(m).sort(function(V,H){return m[V]-m[H]})}(n,{placement:Ue,boundary:C,rootBoundary:f,padding:l,flipVariations:V,allowedAutoPlacements:H}):Ue)},[]),j=n.rects.reference,J=n.rects.popper,u2=new Map,m2=!0,B2=U[0],x1=0;x1<U.length;x1++){var t1=U[x1],V3=F4(t1),t3=T5(t1)===S5,ge=[U3,y4].indexOf(V3)>=0,me=ge?"width":"height",n3=Eo(n,{placement:t1,boundary:C,rootBoundary:f,altBoundary:h,padding:l}),w4=ge?t3?L4:G3:t3?y4:U3;j[me]>J[me]&&(w4=v0(w4));var Di=v0(w4),V6=[];if(r&&V6.push(n3[V3]<=0),s&&V6.push(n3[w4]<=0,n3[Di]<=0),V6.every(function($5){return $5})){B2=t1,m2=!1;break}u2.set(t1,V6)}if(m2)for(var Ys=function(Ue){var k8=U.find(function(Ti){var H6=u2.get(Ti);if(H6)return H6.slice(0,Ue).every(function(Qs){return Qs})});if(k8)return B2=k8,"break"},A8=V?3:1;A8>0&&"break"!==Ys(A8);A8--);n.placement!==B2&&(n.modifiersData[i]._skip=!0,n.placement=B2,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function a8(t,n,e){return l6(t,_0(n,e))}function Ao(t){var n=N5(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}const $F={name:"preventOverflow",enabled:!0,phase:"main",fn:function jF(t){var n=t.state,e=t.options,i=t.name,a=e.mainAxis,r=void 0===a||a,o=e.altAxis,s=void 0!==o&&o,h=e.tether,m=void 0===h||h,V=e.tetherOffset,H=void 0===V?0:V,S=Eo(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),x=F4(n.placement),w=T5(n.placement),I=!w,U=To(x),j=function UF(t){return"x"===t?"y":"x"}(U),J=n.modifiersData.popperOffsets,u2=n.rects.reference,m2=n.rects.popper,B2="function"==typeof H?H(Object.assign({},n.rects,{placement:n.placement})):H,x1="number"==typeof B2?{mainAxis:B2,altAxis:B2}:Object.assign({mainAxis:0,altAxis:0},B2),t1=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,V3={x:0,y:0};if(J){if(r){var t3,ge="y"===U?U3:G3,me="y"===U?y4:L4,n3="y"===U?"height":"width",w4=J[U],Di=w4+S[ge],V6=w4-S[me],xi=m?-m2[n3]/2:0,Ys=w===S5?u2[n3]:m2[n3],A8=w===S5?-m2[n3]:-u2[n3],Ni=n.elements.arrow,$5=m&&Ni?Ao(Ni):{width:0,height:0},Ue=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},k8=Ue[ge],Ti=Ue[me],H6=a8(0,u2[n3],$5[n3]),Qs=I?u2[n3]/2-xi-H6-k8-x1.mainAxis:Ys-H6-k8-x1.mainAxis,Gg2=I?-u2[n3]/2+xi+H6+Ti+x1.mainAxis:A8+H6+Ti+x1.mainAxis,Zs=n.elements.arrow&&i8(n.elements.arrow),Xz=null!=(t3=null==t1?void 0:t1[U])?t3:0,Wg2=w4+Gg2-Xz,eS=a8(m?_0(Di,w4+Qs-Xz-(Zs?"y"===U?Zs.clientTop||0:Zs.clientLeft||0:0)):Di,w4,m?l6(V6,Wg2):V6);J[U]=eS,V3[U]=eS-w4}if(s){var tS,w6=J[j],Ei="y"===j?"height":"width",nS=w6+S["x"===U?U3:G3],iS=w6-S["x"===U?y4:L4],Js=-1!==[U3,G3].indexOf(x),aS=null!=(tS=null==t1?void 0:t1[j])?tS:0,rS=Js?nS:w6-u2[Ei]-m2[Ei]-aS+x1.altAxis,oS=Js?w6+u2[Ei]+m2[Ei]-aS-x1.altAxis:iS,sS=m&&Js?function GF(t,n,e){var i=a8(t,n,e);return i>e?e:i}(rS,w6,oS):a8(m?rS:nS,w6,m?oS:iS);J[j]=sS,V3[j]=sS-w6}n.modifiersData[i]=V3}},requiresIfExists:["offset"]},YF={name:"arrow",enabled:!0,phase:"main",fn:function qF(t){var n,e=t.state,i=t.name,a=t.options,r=e.elements.arrow,o=e.modifiersData.popperOffsets,s=F4(e.placement),c=To(s),C=[G3,L4].indexOf(s)>=0?"height":"width";if(r&&o){var f=function(n,e){return Yp("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:Qp(n,Xt))}(a.padding,e),h=Ao(r),m="y"===c?U3:G3,V="y"===c?y4:L4,H=e.rects.reference[C]+e.rects.reference[c]-o[c]-e.rects.popper[C],S=o[c]-e.rects.reference[c],x=i8(r),w=x?"y"===c?x.clientHeight||0:x.clientWidth||0:0,J=w/2-h[C]/2+(H/2-S/2),u2=a8(f[m],J,w-h[C]-f[V]);e.modifiersData[i]=((n={})[c]=u2,n.centerOffset=u2-J,n)}},effect:function KF(t){var n=t.state,i=t.options.element,a=void 0===i?"[data-popper-arrow]":i;null!=a&&("string"==typeof a&&!(a=n.elements.popper.querySelector(a))||!$p(n.elements.popper,a)||(n.elements.arrow=a))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function XF(t,n,e){void 0===e&&(e=!1);var i=i4(n),a=i4(n)&&function JF(t){var n=t.getBoundingClientRect(),e=x5(n.width)/t.offsetWidth||1,i=x5(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),r=ke(n),o=N5(t,a),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!e)&&(("body"!==B4(n)||xo(r))&&(s=function ZF(t){return t!==b4(t)&&i4(t)?function QF(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):So(t)}(n)),i4(n)?((c=N5(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):r&&(c.x=Do(r))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function eB(t){var n=new Map,e=new Set,i=[];function a(r){e.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(s){if(!e.has(s)){var c=n.get(s);c&&a(c)}}),i.push(r)}return t.forEach(function(r){n.set(r.name,r)}),t.forEach(function(r){e.has(r.name)||a(r)}),i}function nB(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var Zp={placement:"bottom",modifiers:[],strategy:"absolute"};function Jp(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some(function(i){return!(i&&"function"==typeof i.getBoundingClientRect)})}function aB(t){void 0===t&&(t={});var e=t.defaultModifiers,i=void 0===e?[]:e,a=t.defaultOptions,r=void 0===a?Zp:a;return function(s,c,l){void 0===l&&(l=r);var C={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zp,r),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],h=!1,m={state:C,setOptions:function(x){var w="function"==typeof x?x(C.options):x;H(),C.options=Object.assign({},r,C.options,w),C.scrollParents={reference:D5(s)?n8(s):s.contextElement?n8(s.contextElement):[],popper:n8(c)};var I=function tB(t){var n=eB(t);return xF.reduce(function(e,i){return e.concat(n.filter(function(a){return a.phase===i}))},[])}(function iB(t){var n=t.reduce(function(e,i){var a=e[i.name];return e[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,e},{});return Object.keys(n).map(function(e){return n[e]})}([].concat(i,C.options.modifiers)));return C.orderedModifiers=I.filter(function(t1){return t1.enabled}),function V(){C.orderedModifiers.forEach(function(S){var w=S.options,U=S.effect;if("function"==typeof U){var j=U({state:C,name:S.name,instance:m,options:void 0===w?{}:w});f.push(j||function(){})}})}(),m.update()},forceUpdate:function(){if(!h){var x=C.elements,w=x.reference,I=x.popper;if(Jp(w,I)){C.rects={reference:XF(w,i8(I),"fixed"===C.options.strategy),popper:Ao(I)},C.reset=!1,C.placement=C.options.placement,C.orderedModifiers.forEach(function(t1){return C.modifiersData[t1.name]=Object.assign({},t1.data)});for(var j=0;j<C.orderedModifiers.length;j++)if(!0!==C.reset){var J=C.orderedModifiers[j],u2=J.fn,m2=J.options;"function"==typeof u2&&(C=u2({state:C,options:void 0===m2?{}:m2,name:J.name,instance:m})||C)}else C.reset=!1,j=-1}}},update:nB(function(){return new Promise(function(S){m.forceUpdate(),S(C)})}),destroy:function(){H(),h=!0}};if(!Jp(s,c))return m;function H(){f.forEach(function(S){return S()}),f=[]}return m.setOptions(l).then(function(S){!h&&l.onFirstUpdate&&l.onFirstUpdate(S)}),m}}var y0={passive:!0},lB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xp(t){var n,e=t.popper,i=t.popperRect,a=t.placement,r=t.variation,o=t.offsets,s=t.position,c=t.gpuAcceleration,l=t.adaptive,C=t.roundOffsets,f=t.isFixed,h=o.x,m=void 0===h?0:h,V=o.y,H=void 0===V?0:V,S="function"==typeof C?C({x:m,y:H}):{x:m,y:H};m=S.x,H=S.y;var x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),I=G3,U=U3,j=window;if(l){var J=i8(e),u2="clientHeight",m2="clientWidth";J===b4(e)&&"static"!==oe(J=ke(e)).position&&"absolute"===s&&(u2="scrollHeight",m2="scrollWidth"),J=J,(a===U3||(a===G3||a===L4)&&r===e8)&&(U=y4,H-=(f&&J===j&&j.visualViewport?j.visualViewport.height:J[u2])-i.height,H*=c?1:-1),a!==G3&&(a!==U3&&a!==y4||r!==e8)||(I=L4,m-=(f&&J===j&&j.visualViewport?j.visualViewport.width:J[m2])-i.width,m*=c?1:-1)}var t3,t1=Object.assign({position:s},l&&lB),V3=!0===C?function CB(t){var e=t.y,a=window.devicePixelRatio||1;return{x:x5(t.x*a)/a||0,y:x5(e*a)/a||0}}({x:m,y:H}):{x:m,y:H};return m=V3.x,H=V3.y,Object.assign({},t1,c?((t3={})[U]=w?"0":"",t3[I]=x?"0":"",t3.transform=(j.devicePixelRatio||1)<=1?"translate("+m+"px, "+H+"px)":"translate3d("+m+"px, "+H+"px, 0)",t3):((n={})[U]=w?H+"px":"",n[I]=x?m+"px":"",n.transform="",n))}var gB=aB({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function rB(t){var n=t.state,e=t.instance,i=t.options,a=i.scroll,r=void 0===a||a,o=i.resize,s=void 0===o||o,c=b4(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return r&&l.forEach(function(C){C.addEventListener("scroll",e.update,y0)}),s&&c.addEventListener("resize",e.update,y0),function(){r&&l.forEach(function(C){C.removeEventListener("scroll",e.update,y0)}),s&&c.removeEventListener("resize",e.update,y0)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function sB(t){var n=t.state;n.modifiersData[t.name]=qp({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function fB(t){var n=t.state,e=t.options,i=e.gpuAcceleration,a=void 0===i||i,r=e.adaptive,o=void 0===r||r,s=e.roundOffsets,c=void 0===s||s,C={placement:F4(n.placement),variation:T5(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:a,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,Xp(Object.assign({},C,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:o,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,Xp(Object.assign({},C,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function dB(t){var n=t.state;Object.keys(n.elements).forEach(function(e){var i=n.styles[e]||{},a=n.attributes[e]||{},r=n.elements[e];!i4(r)||!B4(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(o){var s=a[o];!1===s?r.removeAttribute(o):r.setAttribute(o,!0===s?"":s)}))})},effect:function hB(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach(function(i){var a=n.elements[i],r=n.attributes[i]||{},s=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:e[i]).reduce(function(c,l){return c[l]="",c},{});!i4(a)||!B4(a)||(Object.assign(a.style,s),Object.keys(r).forEach(function(c){a.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const _B={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function vB(t){var n=t.state,i=t.name,a=t.options.offset,r=void 0===a?[0,0]:a,o=Up.reduce(function(C,f){return C[f]=function mB(t,n,e){var i=F4(t),a=[G3,U3].indexOf(i)>=0?-1:1,r="function"==typeof e?e(Object.assign({},n,{placement:t})):e,o=r[0],s=r[1];return o=o||0,s=(s||0)*a,[G3,L4].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(f,n.rects,r),C},{}),s=o[n.placement],l=s.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=s.x,n.modifiersData.popperOffsets.y+=l),n.modifiersData[i]=o}};function MB(t,n){}function yB(t,n){if(1&t&&(p(0,"button",3),_(1),k(2,MB,0,0,"ng-template",4),g()),2&t){const e=n.$implicit;M("ngbPanelToggle",e),v(1),R3(" ",e.title,""),v(1),M("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function LB(t,n){}function bB(t,n){}function VB(t,n){if(1&t){const e=w1();p(0,"div",8),A("ngbRef",function(a){return F(e),D().$implicit.panelDiv=a}),p(1,"div",9),k(2,bB,0,0,"ng-template",4),g()()}if(2&t){const e=D().$implicit;Pr("id",e.id),B("aria-labelledby",e.id+"-header"),v(2),M("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const HB=function(t,n){return{$implicit:t,opened:n}};function wB(t,n){if(1&t&&(p(0,"div")(1,"div",5),k(2,LB,0,0,"ng-template",6),g(),k(3,VB,3,3,"div",7),g()),2&t){const e=n.$implicit,i=D(),a=J3(1);X4("accordion-item "+(e.cardClass||"")),v(1),X4("accordion-header "+(e.type?"bg-"+e.type:i.type?"bg-"+i.type:"")),h5("id","",e.id,"-header"),v(1),M("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||a)("ngTemplateOutletContext",Ot(8,HB,e,e.isOpen)),v(1),M("ngIf",!i.destroyOnHide||e.isOpen||e.transitionRunning)}}function zB(t,n){if(1&t){const e=w1();p(0,"button",1),A("click",function(){return F(e),D().close()}),g()}}const L0=["*"],$B=["dialog"];function bU(t,n){1&t&&_(0),2&t&&ee(D(2).title)}function VU(t,n){}function HU(t,n){if(1&t&&(p(0,"h3",3),k(1,bU,1,1,"ng-template",null,4,X3),k(3,VU,0,0,"ng-template",5),g()),2&t){const e=J3(2),i=D();v(3),M("ngTemplateOutlet",i.isTitleTemplate()?i.title:e)("ngTemplateOutletContext",i.context)}}function Io(t){return"string"==typeof t}function C6(t){return null!=t}function E5(t){return(t||document.body).getBoundingClientRect()}const tg={animation:!0,transitionTimerDelayMs:5},FU=()=>{},{transitionTimerDelayMs:BU}=tg,r8=new Map,m3=(t,n,e,i)=>{let a=i.context||{};const r=r8.get(n);if(r)switch(i.runningTransition){case"continue":return c4;case"stop":t.run(()=>r.transition$.complete()),a=Object.assign(r.context,a),r8.delete(n)}const o=e(n,i.animation,a)||FU;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>o()),s2(void 0).pipe(function RU(t){return n=>new k2(e=>n.subscribe({next:o=>t.run(()=>e.next(o)),error:o=>t.run(()=>e.error(o)),complete:()=>t.run(()=>e.complete())}))}(t));const s=new d2,c=new d2,l=s.pipe(function uF(...t){return n=>Jt(n,s2(...t))}(!0));r8.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:a});const C=function PU(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const f=p3(n,"transitionend").pipe(G1(l),J1(({target:m})=>m===n));Ap(Lo(C+BU).pipe(G1(l)),f,c).pipe(G1(l)).subscribe(()=>{r8.delete(n),t.run(()=>{o(),s.next(),s.complete()})})}),s.asObservable()},ng=(t,n,e)=>{let{direction:i,maxHeight:a}=e;const{classList:r}=t;function o(){r.add("collapse"),"show"===i?r.add("show"):r.remove("show")}if(n)return a||(a=function GU(t){if("undefined"==typeof navigator)return"0px";const{classList:n}=t,e=n.contains("show");e||n.add("show"),t.style.height="";const i=t.getBoundingClientRect().height+"px";return e||n.remove("show"),i}(t),e.maxHeight=a,t.style.height="show"!==i?a:"0px",r.remove("collapse"),r.remove("collapsing"),r.remove("show"),E5(t),r.add("collapsing")),t.style.height="show"===i?a:"0px",()=>{o(),r.remove("collapsing"),t.style.height=""};o()};let f6=(()=>{class t{constructor(){this.animation=tg.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jU=(()=>{class t{constructor(e){this._ngbConfig=e,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$U=0,V0=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(f1))},t.\u0275dir=G({type:t,selectors:[["ng-template","ngbPanelHeader",""]]}),t})(),Ro=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(f1))},t.\u0275dir=G({type:t,selectors:[["ng-template","ngbPanelTitle",""]]}),t})(),Po=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(f1))},t.\u0275dir=G({type:t,selectors:[["ng-template","ngbPanelContent",""]]}),t})(),H0=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+$U++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new r2,this.hidden=new r2}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=G({type:t,selectors:[["ngb-panel"]],contentQueries:function(e,i,a){if(1&e&&(z1(a,Ro,4),z1(a,V0,4),z1(a,Po,4)),2&e){let r;h1(r=p1())&&(i.titleTpls=r),h1(r=p1())&&(i.headerTpls=r),h1(r=p1())&&(i.contentTpls=r)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),t})(),WU=(()=>{class t{constructor(e){this._El=e,this.ngbRef=new r2}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(b(A2))},t.\u0275dir=G({type:t,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"}}),t})(),Fo=(()=>{class t{constructor(e,i,a){this._ngZone=i,this._changeDetector=a,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new r2,this.shown=new r2,this.hidden=new r2,this.animation=e.animation,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const i=this._findPanelById(e);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){Io(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>{e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(Q1(1)).subscribe(()=>{this.panels.forEach(e=>{const i=e.panelDiv;i?e.initClassDone||(e.initClassDone=!0,m3(this._ngZone,i,ng,{animation:!1,runningTransition:"continue",context:{direction:e.isOpen?"show":"hide"}})):e.initClassDone=!1})})}_changeOpenState(e,i){if(null!=e&&!e.disabled&&e.isOpen!==i){let a=!1;this.panelChange.emit({panelId:e.id,nextState:i,preventDefault:()=>{a=!0}}),a||(e.isOpen=i,e.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(e,i=!0){this.panels.forEach(a=>{a.id!==e&&a.isOpen&&(a.isOpen=!1,a.transitionRunning=i)})}_findPanelById(e){return this.panels.find(i=>i.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}_runTransitions(e){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&m3(this._ngZone,i.panelDiv,ng,{animation:e,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide"}}).subscribe(()=>{i.transitionRunning=!1;const{id:r}=i;i.isOpen?(i.shown.emit(),this.shown.emit(r)):(i.hidden.emit(),this.hidden.emit(r))})})}}return t.\u0275fac=function(e){return new(e||t)(b(jU),b(F2),b(F3))},t.\u0275cmp=n2({type:t,selectors:[["ngb-accordion"]],contentQueries:function(e,i,a){if(1&e&&z1(a,H0,4),2&e){let r;h1(r=p1())&&(i.panels=r)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,i){2&e&&B("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(e,i){1&e&&(k(0,yB,3,3,"ng-template",0,1,X3),k(2,wB,4,11,"ng-template",2)),2&e&&(v(2),M("ngForOf",i.panels))},directives:function(){return[V0,Bo,b5,ae,m1,WU]},encapsulation:2}),t})(),Bo=(()=>{class t{constructor(e,i){this.accordion=e,this.panel=i}set ngbPanelToggle(e){e&&(this.panel=e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fo),b(H0,9))},t.\u0275dir=G({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,i){1&e&&A("click",function(){return i.accordion.toggle(i.panel.id)}),2&e&&(v4("disabled",i.panel.disabled),B("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),J2("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),t})(),ig=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})();const qU=({classList:t})=>{t.remove("show")};let KU=(()=>{class t{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ag=(()=>{class t{constructor(e,i,a,r){this._renderer=i,this._element=a,this._zone=r,this.closed=new r2,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=m3(this._zone,this._element.nativeElement,qU,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(b(KU),b(d3),b(A2),b(F2))},t.\u0275cmp=n2({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&J2("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[H1],ngContentSelectors:L0,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(u5(),d5(0),k(1,zB,1,0,"button",0)),2&e&&(v(1),M("ngIf",i.dismissible))},directives:[m1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),rg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),sg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})(),Cg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),fg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();var j1=(()=>{return(t=j1||(j1={}))[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",j1;var t})();const z0=(t,n)=>!!n&&n.some(e=>e.contains(t)),ug=(t,n)=>!n||null!=function OU(t,n){return n&&void 0!==t.closest?t.closest(n):null}(t,n),cG="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function Go(t,n,e,i,a,r,o,s){e&&t.runOutsideAngular((t=>cG?()=>setTimeout(()=>t(),100):t)(()=>{const l=p3(n,"keydown").pipe(G1(a),J1(h=>h.which===j1.Escape),g3(h=>h.preventDefault())),C=p3(n,"mousedown").pipe(v2(h=>{const m=h.target;return 2!==h.button&&!z0(m,o)&&("inside"===e?z0(m,r)&&ug(m,s):"outside"===e?!z0(m,r):ug(m,s)||!z0(m,r))}),G1(a)),f=p3(n,"mouseup").pipe(Ho(C),J1(([h,m])=>m),Rp(0),G1(a));Ap([l.pipe(v2(h=>0)),f.pipe(v2(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const dg=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function hg(t){const n=Array.from(t.querySelectorAll(dg)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const fG=/\s+/,uG=/ +/gi,dG=/^start/,hG=/^end/,pG=/-(top|left)$/,gG=/-(bottom|right)$/,vG=/^left/,_G=/^right/,MG=/^start/,yG=/^end/;function pg({placement:t,baseClass:n}){let e=Array.isArray(t)?t:t.split(fG),a=e.findIndex(c=>"auto"===c);a>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==e.find(l=>-1!==l.search("^"+c))&&e.splice(a++,1,c)});const r=e.map(c=>function mG(t){return t.replace(dG,"left").replace(hG,"right").replace(pG,"-start").replace(gG,"-end")}(c));return{placement:r.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const l=new RegExp(n+"(-[a-z]+)*","gi"),C=c.elements.popper,f=c.placement;let h=C.className;h=h.replace(l,""),h+=` ${function LG(t,n){let[e,i]=n.split("-");const a=e.replace(vG,"start").replace(_G,"end");let r=[a];if(i){let o=i;("left"===e||"right"===e)&&(o=o.replace(MG,"top").replace(yG,"bottom")),r.push(`${a}-${o}`)}return t&&(r=r.map(o=>`${t}-${o}`)),r.join(" ")}(n,f)}`,h=h.trim().replace(uG," "),C.className=h}},BF,$F,YF,{enabled:!0,name:"flip",options:{fallbackPlacements:r}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function gg(t){return t}function jo(){let t=null;return{createPopper(n){if(!t){let i=(n.updatePopperOptions||gg)(pg(n));t=gB(n.hostElement,n.targetElement,i)}},update(){t&&t.update()},setOptions(n){if(t){let i=(n.updatePopperOptions||gg)(pg(n));t.setOptions(i)}},destroy(){t&&(t.destroy(),t=null)}}}function mg(t){return n=>(n.modifiers.push(_B,{name:"offset",options:{offset:()=>t}}),n)}new Date(1882,10,12),new Date(2174,10,25);let bg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3,Dp]]}),t})(),zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();class p6{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class Sg{constructor(n,e,i,a,r,o){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=a,this._ngZone=r,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._type,{index:this._viewContainerRef.length,injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:a}=this._windowRef.location,r=this._ngZone.onStable.pipe(Q1(1),b1(()=>m3(this._ngZone,a,({classList:o})=>o.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(n=!1){return this._windowRef?m3(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(g3(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):s2(void 0)}_getContentRef(n,e){if(n){if(n instanceof f1){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new p6([i.rootNodes],i)}return new p6([[this._renderer.createText(`${n}`)]])}return new p6([])}}let EG=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Q1(1)).subscribe(()=>{m3(this._zone,this._el.nativeElement,(e,i)=>{i&&E5(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return m3(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(F2))},t.\u0275cmp=n2({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(X4("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),J2("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class Dg{close(n){}dismiss(n){}}class AG{constructor(n,e,i,a){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=a,this._closed=new d2,this._dismissed=new d2,this._hidden=new d2,n.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,o)=>{this._resolve=r,this._reject=o}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(G1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(G1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function eg(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():s2(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),g0(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var g6=(()=>{return(t=g6||(g6={}))[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",g6;var t})();let kG=(()=>{class t{constructor(e,i,a){this._document=e,this._elRef=i,this._zone=a,this._closed$=new d2,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new r2,this.shown=new d2,this.hidden=new d2}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Io(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Q1(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=g0(m3(this._zone,e,()=>e.classList.remove("show"),i),m3(this._zone,this._dialogEl.nativeElement,()=>{},i));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const e={animation:this.animation,runningTransition:"continue"};g0(m3(this._zone,this._elRef.nativeElement,(r,o)=>{o&&E5(r),r.classList.add("show")},e),m3(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{p3(e,"keydown").pipe(G1(this._closed$),J1(a=>a.which===j1.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(g6.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;p3(this._dialogEl.nativeElement,"mousedown").pipe(G1(this._closed$),g3(()=>i=!1),re(()=>p3(e,"mouseup").pipe(G1(this._closed$),Q1(1))),J1(({target:a})=>e===a)).subscribe(()=>{i=!0}),p3(e,"click").pipe(G1(this._closed$)).subscribe(({target:a})=>{e===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(g6.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),a=hg(e)[0];(i||a||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let a;a=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>a.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&m3(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(b(S1),b(A2),b(F2))},t.\u0275cmp=n2({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&function c7(t,n,e){const i=D2();i.firstCreatePass&&(id(i,new ed(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),nd(i,O(),n)}($B,7),2&e){let a;h1(a=p1())&&(i._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(B("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),X4("modal d-block"+(i.windowClass?" "+i.windowClass:"")),J2("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:L0,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(u5(),p(0,"div",0,1)(2,"div",2),d5(3),g()()),2&e&&X4("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),IG=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,a=i.style,{overflow:r,paddingRight:o}=a;if(e>0){const s=parseFloat(window.getComputedStyle(i).paddingRight);a.paddingRight=`${s+e}px`}return a.overflow="hidden",()=>{e>0&&(a.paddingRight=o),a.overflow=r}}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),OG=(()=>{class t{constructor(e,i,a,r,o,s){this._applicationRef=e,this._injector=i,this._document=a,this._scrollBar=r,this._rendererFactory=o,this._ngZone=s,this._activeWindowCmptHasChanged=new d2,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new r2,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const a=p3(n,"focusin").pipe(G1(e),v2(r=>r.target));p3(n,"keydown").pipe(G1(e),J1(r=>r.which===j1.Tab),Ho(a)).subscribe(([r,o])=>{const[s,c]=hg(n);(o===s||o===n)&&r.shiftKey&&(c.focus(),r.preventDefault()),o===c&&!r.shiftKey&&(s.focus(),r.preventDefault())}),i&&p3(n,"click").pipe(G1(e),Ho(a),v2(r=>r[1])).subscribe(r=>r.focus())})})(0,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,a,r){const o=r.container instanceof HTMLElement?r.container:C6(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const c=new Dg,l=this._getContentRef(e,r.injector||i,a,c,r);let C=!1!==r.backdrop?this._attachBackdrop(e,o):void 0,f=this._attachWindowComponent(e,o,l),h=new AG(f,l,C,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(f),h.hidden.pipe(Q1(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),c.close=m=>{h.close(m)},c.dismiss=m=>{h.dismiss(m)},this._applyWindowOptions(f.instance,r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),C&&C.instance&&(this._applyBackdropOptions(C.instance,r),C.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let r=e.resolveComponentFactory(EG).create(this._injector);return this._applicationRef.attachView(r.hostView),i.appendChild(r.location.nativeElement),r}_attachWindowComponent(e,i,a){let o=e.resolveComponentFactory(kG).create(this._injector,a.nodes);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_applyWindowOptions(e,i){this._windowAttributes.forEach(a=>{C6(i[a])&&(e[a]=i[a])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(a=>{C6(i[a])&&(e[a]=i[a])})}_getContentRef(e,i,a,r,o){return a?a instanceof f1?this._createFromTemplateRef(a,r):Io(a)?this._createFromString(a):this._createFromComponent(e,i,a,r,o):new p6([])}_createFromTemplateRef(e,i){const r=e.createEmbeddedView({$implicit:i,close(o){i.close(o)},dismiss(o){i.dismiss(o)}});return this._applicationRef.attachView(r),new p6([r.rootNodes],r)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new p6([[i]])}_createFromComponent(e,i,a,r,o){const s=e.resolveComponentFactory(a),c=A1.create({providers:[{provide:Dg,useValue:r}],parent:i}),l=s.create(c),C=l.location.nativeElement;return o.scrollable&&C.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new p6([[C]],l.hostView,l)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(a=>{a!==e&&"SCRIPT"!==a.nodeName&&(this._ariaHiddenValues.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const a=this._modalRefs.indexOf(e);a>-1&&(this._modalRefs.splice(a,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(q(L5),q(A1),q(S1),q(IG),q(Yr),q(F2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),RG=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xg=(()=>{class t{constructor(e,i,a,r){this._moduleCFR=e,this._injector=i,this._modalStack=a,this._config=r}open(e,i={}){const a=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,e,a)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(q(v5),q(A1),q(OG),q(RG))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ng=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({providers:[xg]}),t})(),kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Gg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})();class jG{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const $G={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},jg=t=>t>0?Rp(t):n=>n;function $g(t,n,e,i,a,r,o=0,s=0){const c=function WG(t,n=$G){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(r=>r.split(":")).map(r=>{let o=n[r[0]]||r;return new jG(o[0],o[1])}),a=i.filter(r=>r.isManual());if(a.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===a.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===c.length&&c[0].isManual())return()=>{};const l=function qG(t,n,e,i){return new k2(a=>{const r=[],o=()=>a.next(!0),s=()=>a.next(!1),c=()=>a.next(!i());return e.forEach(l=>{l.open===l.close?r.push(t.listen(n,l.open,c)):r.push(t.listen(n,l.open,o),t.listen(n,l.close,s))}),()=>{r.forEach(l=>l())}})}(t,n,c,i).pipe(function KG(t,n,e){return i=>{let a=null;const r=i.pipe(v2(c=>({open:c})),J1(c=>{const l=e();return l===c.open||a&&a.open!==l?(a&&a.open!==c.open&&(a=null),!1):(a=c,!0)}),hc());return dc(r.pipe(J1(c=>c.open),jg(t)),r.pipe(J1(c=>!c.open),jg(n))).pipe(J1(c=>c===a&&(a=null,c.open!==e())),v2(c=>c.open))}}(o,s,i)).subscribe(C=>C?a():r());return()=>l.unsubscribe()}let YG=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QG=0,ZG=(()=>{class t{isTitleTemplate(){return this.title instanceof f1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(v4("id",i.id),X4("popover"+(i.popoverClass?" "+i.popoverClass:"")),J2("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:L0,decls:4,vars:1,consts:[["data-popper-arrow","",1,"popover-arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(u5(),T(0,"div",0),k(1,HU,4,2,"h3",1),p(2,"div",2),d5(3),g()),2&e&&(v(1),M("ngIf",i.title))},directives:[m1,b5],encapsulation:2,changeDetection:0}),t})(),JG=(()=>{class t{constructor(e,i,a,r,o,s,c,l,C){this._elementRef=e,this._renderer=i,this._ngZone=s,this._document=c,this._changeDetector=l,this.shown=new r2,this.hidden=new r2,this._ngbPopoverWindowId="ngb-popover-"+QG++,this._windowRef=null,this._positioning=jo(),this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new Sg(ZG,a,r,i,this._ngZone,C)}_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}open(e){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:a}=this._popupService.open(this.ngbPopover,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=e,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:mg([0,8])}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),Go(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(e=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(e).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=$g(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:e,popoverTitle:i,disablePopover:a,popoverClass:r}){r&&this.isOpen()&&(this._windowRef.instance.popoverClass=r.currentValue),(e||i||a)&&this._isDisabled()&&this.close()}ngOnDestroy(){var e;this.close(!1),null===(e=this._unregisterListenersFn)||void 0===e||e.call(this)}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(d3),b(A1),b(P3),b(YG),b(F2),b(S1),b(F3),b(L5))},t.\u0275dir=G({type:t,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[H1]}),t})(),Wg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Yg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),tj=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(q(f6))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nj=0,ij=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(v4("id",i.id),X4("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),J2("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:L0,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(u5(),T(0,"div",0),p(1,"div",1),d5(2),g())},encapsulation:2,changeDetection:0}),t})(),aj=(()=>{class t{constructor(e,i,a,r,o,s,c,l,C){this._elementRef=e,this._renderer=i,this._ngZone=s,this._document=c,this._changeDetector=l,this.shown=new r2,this.hidden=new r2,this._ngbTooltipWindowId="ngb-tooltip-"+nj++,this._windowRef=null,this._positioning=jo(),this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new Sg(ij,a,r,i,this._ngZone,C)}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:a}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip"}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),Go(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(e=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(e).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=$g(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){var e;this.close(!1),null===(e=this._unregisterListenersFn)||void 0===e||e.call(this)}}return t.\u0275fac=function(e){return new(e||t)(b(A2),b(d3),b(A1),b(P3),b(tj),b(F2),b(S1),b(F3),b(L5))},t.\u0275dir=G({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[H1]}),t})(),Zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();new _2("live announcer delay",{providedIn:"root",factory:function rj(){return 100}});let Jg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[B3]]}),t})(),Xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();const oj=[ig,rg,sg,Cg,fg,bg,zg,Ng,kg,Xg,Gg,Wg,qg,Kg,Yg,Qg,Zg,Jg];let sj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[oj,ig,rg,sg,Cg,fg,bg,zg,Ng,kg,Xg,Gg,Wg,qg,Kg,Yg,Qg,Zg,Jg]}),t})();function em(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,i)}return e}function Y(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?em(Object(e),!0).forEach(function(i){Cj(t,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):em(Object(e)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}return t}function E0(t){return(E0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function tm(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Cj(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Zo(t,n){return function dj(t){if(Array.isArray(t))return t}(t)||function pj(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var o,s,i=[],a=!0,r=!1;try{for(e=e.call(t);!(a=(o=e.next()).done)&&(i.push(o.value),!n||i.length!==n);a=!0);}catch(c){r=!0,s=c}finally{try{!a&&null!=e.return&&e.return()}finally{if(r)throw s}}return i}}(t,n)||nm(t,n)||function mj(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k0(t){return function uj(t){if(Array.isArray(t))return Jo(t)}(t)||function hj(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||nm(t)||function gj(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nm(t,n){if(t){if("string"==typeof t)return Jo(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Jo(t,n)}}function Jo(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=t[e];return i}var im=function(){},Xo={},am={},rm=null,om={mark:im,measure:im};try{"undefined"!=typeof window&&(Xo=window),"undefined"!=typeof document&&(am=document),"undefined"!=typeof MutationObserver&&(rm=MutationObserver),"undefined"!=typeof performance&&(om=performance)}catch(t){}var sm=(Xo.navigator||{}).userAgent,cm=void 0===sm?"":sm,Oe=Xo,r1=am,lm=rm,I0=om,ce=!!r1.documentElement&&!!r1.head&&"function"==typeof r1.addEventListener&&"function"==typeof r1.createElement,Cm=~cm.indexOf("MSIE")||~cm.indexOf("Trident/"),le="___FONT_AWESOME___",um="svg-inline--fa",m6="data-fa-i2svg",t9="data-fa-pseudo-element",n9="data-prefix",i9="data-icon",dm="fontawesome-i2svg",yj=["HTML","HEAD","STYLE","SCRIPT"],hm=function(){try{return!0}catch(t){return!1}}(),a9={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},O0={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},pm={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Lj={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},bj=/fa[srltdbk\-\ ]/,gm="fa-layers-text",Vj=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,Hj={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},mm=[1,2,3,4,5,6,7,8,9,10],wj=mm.concat([11,12,13,14,15,16,17,18,19,20]),zj=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Sj=[].concat(k0(Object.keys(O0)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","duotone-group","swap-opacity","primary","secondary"]).concat(mm.map(function(t){return"".concat(t,"x")})).concat(wj.map(function(t){return"w-".concat(t)})),vm=Oe.FontAwesomeConfig||{};r1&&"function"==typeof r1.querySelector&&[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var n=Zo(t,2),i=n[1],a=function xj(t){return""===t||"false"!==t&&("true"===t||t)}(function Dj(t){var n=r1.querySelector("script["+t+"]");if(n)return n.getAttribute(t)}(n[0]));null!=a&&(vm[i]=a)});var C8=Y(Y({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:um,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),vm);C8.autoReplaceSvg||(C8.observeMutations=!1);var X={};Object.keys(C8).forEach(function(t){Object.defineProperty(X,t,{enumerable:!0,set:function(e){C8[t]=e,R0.forEach(function(i){return i(X)})},get:function(){return C8[t]}})}),Oe.FontAwesomeConfig=X;var R0=[],G4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function f8(){for(var t=12,n="";t-- >0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function k5(t){for(var n=[],e=(t||[]).length>>>0;e--;)n[e]=t[e];return n}function r9(t){return t.classList?k5(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(n){return n})}function _m(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function P0(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,": ").concat(t[e].trim(),";")},"")}function o9(t){return t.size!==G4.size||t.x!==G4.x||t.y!==G4.y||t.rotate!==G4.rotate||t.flipX||t.flipY}function Mm(){var t="fa",n=um,e=X.familyPrefix,i=X.replacementClass,a=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(e!==t||i!==n){var r=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(n),"g");a=a.replace(r,".".concat(e,"-")).replace(o,"--".concat(e,"-")).replace(s,".".concat(i))}return a}var ym=!1;function s9(){X.autoAddCss&&!ym&&(function Aj(t){if(t&&ce){var n=r1.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=t;for(var e=r1.head.childNodes,i=null,a=e.length-1;a>-1;a--){var r=e[a],o=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=r)}r1.head.insertBefore(n,i)}}(Mm()),ym=!0)}var Fj={mixout:function(){return{dom:{css:Mm,insertCss:s9}}},hooks:function(){return{beforeDOMElementCreation:function(){s9()},beforeI2svg:function(){s9()}}}},Ce=Oe||{};Ce[le]||(Ce[le]={}),Ce[le].styles||(Ce[le].styles={}),Ce[le].hooks||(Ce[le].hooks={}),Ce[le].shims||(Ce[le].shims=[]);var H4=Ce[le],Lm=[],F0=!1;function Uj(t){!ce||(F0?setTimeout(t,0):Lm.push(t))}function u8(t){var n=t.tag,e=t.attributes,i=void 0===e?{}:e,a=t.children,r=void 0===a?[]:a;return"string"==typeof t?_m(t):"<".concat(n," ").concat(function Ij(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,'="').concat(_m(t[e]),'" ')},"").trim()}(i),">").concat(r.map(u8).join(""),"</").concat(n,">")}function bm(t,n,e){if(t&&t[n]&&t[n][e])return{prefix:n,iconName:e,icon:t[n][e]}}ce&&((F0=(r1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(r1.readyState))||r1.addEventListener("DOMContentLoaded",function t(){r1.removeEventListener("DOMContentLoaded",t),F0=1,Lm.map(function(n){return n()})}));var c9=function(n,e,i,a){var c,l,C,r=Object.keys(n),o=r.length,s=void 0!==a?function(n,e){return function(i,a,r,o){return n.call(e,i,a,r,o)}}(e,a):e;for(void 0===i?(c=1,C=n[r[0]]):(c=0,C=i);c<o;c++)C=s(C,n[l=r[c]],l,n);return C};function l9(t){var n=function jj(t){for(var n=[],e=0,i=t.length;e<i;){var a=t.charCodeAt(e++);if(a>=55296&&a<=56319&&e<i){var r=t.charCodeAt(e++);56320==(64512&r)?n.push(((1023&a)<<10)+(1023&r)+65536):(n.push(a),e--)}else n.push(a)}return n}(t);return 1===n.length?n[0].toString(16):null}function Vm(t){return Object.keys(t).reduce(function(n,e){var i=t[e];return i.icon?n[i.iconName]=i.icon:n[e]=i,n},{})}function C9(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.skipHooks,a=void 0!==i&&i,r=Vm(n);"function"!=typeof H4.hooks.addPack||a?H4.styles[t]=Y(Y({},H4.styles[t]||{}),r):H4.hooks.addPack(t,Vm(n)),"fas"===t&&C9("fa",n)}var d8=H4.styles,Wj=H4.shims,qj=Object.values(pm),f9=null,Hm={},wm={},zm={},Sm={},Dm={},Kj=Object.keys(a9);function Qj(t,n){var e=n.split("-"),i=e[0],a=e.slice(1).join("-");return i!==t||""===a||function Yj(t){return~Sj.indexOf(t)}(a)?null:a}var xm=function(){var n=function(r){return c9(d8,function(o,s,c){return o[c]=c9(s,r,{}),o},{})};Hm=n(function(a,r,o){return r[3]&&(a[r[3]]=o),r[2]&&r[2].filter(function(c){return"number"==typeof c}).forEach(function(c){a[c.toString(16)]=o}),a}),wm=n(function(a,r,o){return a[o]=o,r[2]&&r[2].filter(function(c){return"string"==typeof c}).forEach(function(c){a[c]=o}),a}),Dm=n(function(a,r,o){var s=r[2];return a[o]=o,s.forEach(function(c){a[c]=o}),a});var e="far"in d8||X.autoFetchSvg,i=c9(Wj,function(a,r){var o=r[0],s=r[1],c=r[2];return"far"===s&&!e&&(s="fas"),"string"==typeof o&&(a.names[o]={prefix:s,iconName:c}),"number"==typeof o&&(a.unicodes[o.toString(16)]={prefix:s,iconName:c}),a},{names:{},unicodes:{}});zm=i.names,Sm=i.unicodes,f9=B0(X.styleDefault)};function u9(t,n){return(Hm[t]||{})[n]}function I5(t,n){return(Dm[t]||{})[n]}function Nm(t){return zm[t]||{prefix:null,iconName:null}}function Pe(){return f9}function B0(t){return O0[t]||O0[a9[t]]||(t in H4.styles?t:null)||null}function U0(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.skipLookups,i=void 0!==e&&e,a=null,r=t.reduce(function(o,s){var c=Qj(X.familyPrefix,s);if(d8[s]?(s=qj.includes(s)?Lj[s]:s,a=s,o.prefix=s):Kj.indexOf(s)>-1?(a=s,o.prefix=B0(s)):c?o.iconName=c:s!==X.replacementClass&&o.rest.push(s),!i&&o.prefix&&o.iconName){var l="fa"===a?Nm(o.iconName):{},C=I5(o.prefix,o.iconName);l.prefix&&(a=null),o.iconName=l.iconName||C||o.iconName,o.prefix=l.prefix||o.prefix,"far"===o.prefix&&!d8.far&&d8.fas&&!X.autoFetchSvg&&(o.prefix="fas")}return o},{prefix:null,iconName:null,rest:[]});return("fa"===r.prefix||"fa"===a)&&(r.prefix=Pe()||"fas"),r}(function Ej(t){R0.push(t)})(function(t){f9=B0(t.styleDefault)}),xm();var Xj=function(){function t(){(function cj(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")})(this,t),this.definitions={}}return function lj(t,n,e){n&&tm(t.prototype,n),e&&tm(t,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"add",value:function(){for(var e=this,i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];var o=a.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(s){e.definitions[s]=Y(Y({},e.definitions[s]||{}),o[s]),C9(s,o[s]);var c=pm[s];c&&C9(c,o[s]),xm()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,i){var a=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(a).map(function(r){var o=a[r],s=o.prefix,c=o.iconName,l=o.icon,C=l[2];e[s]||(e[s]={}),C.length>0&&C.forEach(function(f){"string"==typeof f&&(e[s][f]=l)}),e[s][c]=l}),e}}]),t}(),Tm=[],O5={},R5={},e$=Object.keys(R5);function h9(t,n){for(var e=arguments.length,i=new Array(e>2?e-2:0),a=2;a<e;a++)i[a-2]=arguments[a];var r=O5[t]||[];return r.forEach(function(o){n=o.apply(null,[n].concat(i))}),n}function _6(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];var a=O5[t]||[];a.forEach(function(r){r.apply(null,e)})}function fe(){var t=arguments[0],n=Array.prototype.slice.call(arguments,1);return R5[t]?R5[t].apply(null,n):void 0}function p9(t){"fa"===t.prefix&&(t.prefix="fas");var n=t.iconName,e=t.prefix||Pe();if(n)return n=I5(e,n)||n,bm(Em.definitions,e,n)||bm(H4.styles,e,n)}var Em=new Xj,i$={i2svg:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce?(_6("beforeI2svg",n),fe("pseudoElements2svg",n),fe("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot;!1===X.autoReplaceSvg&&(X.autoReplaceSvg=!0),X.observeMutations=!0,Uj(function(){r$({autoReplaceSvgRoot:e}),_6("watch",n)})}},j3={noAuto:function(){X.autoReplaceSvg=!1,X.observeMutations=!1,_6("noAuto")},config:X,dom:i$,parse:{icon:function(n){if(null===n)return null;if("object"===E0(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:I5(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var e=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=B0(n[0]);return{prefix:i,iconName:I5(i,e)||e}}if("string"==typeof n&&(n.indexOf("".concat(X.familyPrefix,"-"))>-1||n.match(bj))){var a=U0(n.split(" "),{skipLookups:!0});return{prefix:a.prefix||Pe(),iconName:I5(a.prefix,a.iconName)||a.iconName}}if("string"==typeof n){var r=Pe();return{prefix:r,iconName:I5(r,n)||n}}}},library:Em,findIconDefinition:p9,toHtml:u8},r$=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot,i=void 0===e?r1:e;(Object.keys(H4.styles).length>0||X.autoFetchSvg)&&ce&&X.autoReplaceSvg&&j3.dom.i2svg({node:i})};function G0(t,n){return Object.defineProperty(t,"abstract",{get:n}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(i){return u8(i)})}}),Object.defineProperty(t,"node",{get:function(){if(ce){var i=r1.createElement("div");return i.innerHTML=t.html,i.children}}}),t}function g9(t){var n=t.icons,e=n.main,i=n.mask,a=t.prefix,r=t.iconName,o=t.transform,s=t.symbol,c=t.title,l=t.maskId,C=t.titleId,f=t.extra,h=t.watchable,m=void 0!==h&&h,V=i.found?i:e,H=V.width,S=V.height,x="fak"===a,w=[X.replacementClass,r?"".concat(X.familyPrefix,"-").concat(r):""].filter(function(B2){return-1===f.classes.indexOf(B2)}).filter(function(B2){return""!==B2||!!B2}).concat(f.classes).join(" "),I={children:[],attributes:Y(Y({},f.attributes),{},{"data-prefix":a,"data-icon":r,class:w,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(H," ").concat(S)})},U=x&&!~f.classes.indexOf("fa-fw")?{width:"".concat(H/S*16*.0625,"em")}:{};m&&(I.attributes[m6]=""),c&&(I.children.push({tag:"title",attributes:{id:I.attributes["aria-labelledby"]||"title-".concat(C||f8())},children:[c]}),delete I.attributes.title);var j=Y(Y({},I),{},{prefix:a,iconName:r,main:e,mask:i,maskId:l,transform:o,symbol:s,styles:Y(Y({},U),f.styles)}),J=i.found&&e.found?fe("generateAbstractMask",j)||{children:[],attributes:{}}:fe("generateAbstractIcon",j)||{children:[],attributes:{}},m2=J.attributes;return j.children=J.children,j.attributes=m2,s?function s$(t){var e=t.iconName,i=t.children,a=t.attributes,r=t.symbol,o=!0===r?"".concat(t.prefix,"-").concat(X.familyPrefix,"-").concat(e):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Y(Y({},a),{},{id:o}),children:i}]}]}(j):function o$(t){var n=t.children,e=t.main,i=t.mask,a=t.attributes,r=t.styles,o=t.transform;if(o9(o)&&e.found&&!i.found){var l={x:e.width/e.height/2,y:.5};a.style=P0(Y(Y({},r),{},{"transform-origin":"".concat(l.x+o.x/16,"em ").concat(l.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:n}]}(j)}function Am(t){var n=t.content,e=t.width,i=t.height,a=t.transform,r=t.title,o=t.extra,s=t.watchable,c=void 0!==s&&s,l=Y(Y(Y({},o.attributes),r?{title:r}:{}),{},{class:o.classes.join(" ")});c&&(l[m6]="");var C=Y({},o.styles);o9(a)&&(C.transform=function Rj(t){var n=t.transform,e=t.width,a=t.height,r=void 0===a?16:a,o=t.startCentered,s=void 0!==o&&o,c="";return c+=s&&Cm?"translate(".concat(n.x/16-(void 0===e?16:e)/2,"em, ").concat(n.y/16-r/2,"em) "):s?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(c+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:a,startCentered:!0,width:e,height:i}),C["-webkit-transform"]=C.transform);var f=P0(C);f.length>0&&(l.style=f);var h=[];return h.push({tag:"span",attributes:l,children:[n]}),r&&h.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),h}function c$(t){var n=t.content,e=t.title,i=t.extra,a=Y(Y(Y({},i.attributes),e?{title:e}:{}),{},{class:i.classes.join(" ")}),r=P0(i.styles);r.length>0&&(a.style=r);var o=[];return o.push({tag:"span",attributes:a,children:[n]}),e&&o.push({tag:"span",attributes:{class:"sr-only"},children:[e]}),o}var m9=H4.styles;function v9(t){var n=t[0],e=t[1],r=Zo(t.slice(4),1)[0];return{found:!0,width:n,height:e,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(X.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("primary"),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var l$={found:!1,width:512,height:512};function _9(t,n){var e=n;return"fa"===n&&null!==X.styleDefault&&(n=Pe()),new Promise(function(i,a){if(fe("missingIconAbstract"),"fa"===e){var o=Nm(t)||{};t=o.iconName||t,n=o.prefix||n}if(t&&n&&m9[n]&&m9[n][t])return i(v9(m9[n][t]));(function C$(t,n){!hm&&!X.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(n,'" is missing.'))})(t,n),i(Y(Y({},l$),{},{icon:X.showMissingIcons&&t&&fe("missingIconAbstract")||{}}))})}var km=function(){},M9=X.measurePerformance&&I0&&I0.mark&&I0.measure?I0:{mark:km,measure:km},h8='FA "6.1.1"',y9_begin=function(n){return M9.mark("".concat(h8," ").concat(n," begins")),function(){return function(n){M9.mark("".concat(h8," ").concat(n," ends")),M9.measure("".concat(h8," ").concat(n),"".concat(h8," ").concat(n," begins"),"".concat(h8," ").concat(n," ends"))}(n)}},j0=function(){};function Om(t){return"string"==typeof(t.getAttribute?t.getAttribute(m6):null)}function p$(t){return r1.createElementNS("http://www.w3.org/2000/svg",t)}function g$(t){return r1.createElement(t)}function Rm(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.ceFn,i=void 0===e?"svg"===t.tag?p$:g$:e;if("string"==typeof t)return r1.createTextNode(t);var a=i(t.tag);Object.keys(t.attributes||[]).forEach(function(o){a.setAttribute(o,t.attributes[o])});var r=t.children||[];return r.forEach(function(o){a.appendChild(Rm(o,{ceFn:i}))}),a}var $0={replace:function(n){var e=n[0];if(e.parentNode)if(n[1].forEach(function(a){e.parentNode.insertBefore(Rm(a),e)}),null===e.getAttribute(m6)&&X.keepOriginalSource){var i=r1.createComment(function m$(t){var n=" ".concat(t.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(e));e.parentNode.replaceChild(i,e)}else e.remove()},nest:function(n){var e=n[0],i=n[1];if(~r9(e).indexOf(X.replacementClass))return $0.replace(n);var a=new RegExp("".concat(X.familyPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var r=i[0].attributes.class.split(" ").reduce(function(s,c){return c===X.replacementClass||c.match(a)?s.toSvg.push(c):s.toNode.push(c),s},{toNode:[],toSvg:[]});i[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?e.removeAttribute("class"):e.setAttribute("class",r.toNode.join(" "))}var o=i.map(function(s){return u8(s)}).join("\n");e.setAttribute(m6,""),e.innerHTML=o}};function Pm(t){t()}function Fm(t,n){var e="function"==typeof n?n:j0;if(0===t.length)e();else{var i=Pm;"async"===X.mutateApproach&&(i=Oe.requestAnimationFrame||Pm),i(function(){var a=function h$(){return!0===X.autoReplaceSvg?$0.replace:$0[X.autoReplaceSvg]||$0.replace}(),r=y9_begin("mutate");t.map(a),r(),e()})}}var L9=!1;function Bm(){L9=!0}function b9(){L9=!1}var W0=null;function Um(t){if(lm&&X.observeMutations){var n=t.treeCallback,e=void 0===n?j0:n,i=t.nodeCallback,a=void 0===i?j0:i,r=t.pseudoElementsCallback,o=void 0===r?j0:r,s=t.observeMutationsRoot,c=void 0===s?r1:s;W0=new lm(function(l){if(!L9){var C=Pe();k5(l).forEach(function(f){if("childList"===f.type&&f.addedNodes.length>0&&!Om(f.addedNodes[0])&&(X.searchPseudoElements&&o(f.target),e(f.target)),"attributes"===f.type&&f.target.parentNode&&X.searchPseudoElements&&o(f.target.parentNode),"attributes"===f.type&&Om(f.target)&&~zj.indexOf(f.attributeName))if("class"===f.attributeName&&function u$(t){var n=t.getAttribute?t.getAttribute(n9):null,e=t.getAttribute?t.getAttribute(i9):null;return n&&e}(f.target)){var h=U0(r9(f.target)),V=h.iconName;f.target.setAttribute(n9,h.prefix||C),V&&f.target.setAttribute(i9,V)}else(function d$(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(X.replacementClass)})(f.target)&&a(f.target)})}}),ce&&W0.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function _$(t){var n=t.getAttribute("style"),e=[];return n&&(e=n.split(";").reduce(function(i,a){var r=a.split(":"),o=r[0],s=r.slice(1);return o&&s.length>0&&(i[o]=s.join(":").trim()),i},{})),e}function M$(t){var n=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",a=U0(r9(t));return a.prefix||(a.prefix=Pe()),n&&e&&(a.prefix=n,a.iconName=e),a.iconName&&a.prefix||a.prefix&&i.length>0&&(a.iconName=function Zj(t,n){return(wm[t]||{})[n]}(a.prefix,t.innerText)||u9(a.prefix,l9(t.innerText))),a}function y$(t){var n=k5(t.attributes).reduce(function(a,r){return"class"!==a.name&&"style"!==a.name&&(a[r.name]=r.value),a},{}),e=t.getAttribute("title"),i=t.getAttribute("data-fa-title-id");return X.autoA11y&&(e?n["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(i||f8()):(n["aria-hidden"]="true",n.focusable="false")),n}function Gm(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},e=M$(t),i=e.iconName,a=e.prefix,r=e.rest,o=y$(t),s=h9("parseNodeAttributes",{},t),c=n.styleParser?_$(t):[];return Y({iconName:i,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:a,transform:G4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:c,attributes:o}},s)}var b$=H4.styles;function jm(t){var n="nest"===X.autoReplaceSvg?Gm(t,{styleParser:!1}):Gm(t);return~n.extra.classes.indexOf(gm)?fe("generateLayersText",t,n):fe("generateSvgReplacementMutation",t,n)}function $m(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ce)return Promise.resolve();var e=r1.documentElement.classList,i=function(f){return e.add("".concat(dm,"-").concat(f))},a=function(f){return e.remove("".concat(dm,"-").concat(f))},r=Object.keys(X.autoFetchSvg?a9:b$),o=[".".concat(gm,":not([").concat(m6,"])")].concat(r.map(function(C){return".".concat(C,":not([").concat(m6,"])")})).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=k5(t.querySelectorAll(o))}catch(C){}if(!(s.length>0))return Promise.resolve();i("pending"),a("complete");var c=y9_begin("onTree"),l=s.reduce(function(C,f){try{var h=jm(f);h&&C.push(h)}catch(m){hm||"MissingIcon"===m.name&&console.error(m)}return C},[]);return new Promise(function(C,f){Promise.all(l).then(function(h){Fm(h,function(){i("active"),i("complete"),a("pending"),"function"==typeof n&&n(),c(),C()})}).catch(function(h){c(),f(h)})})}function V$(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;jm(t).then(function(e){e&&Fm([e],n)})}var w$=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.transform,a=void 0===i?G4:i,r=e.symbol,o=void 0!==r&&r,s=e.mask,c=void 0===s?null:s,l=e.maskId,C=void 0===l?null:l,f=e.title,h=void 0===f?null:f,m=e.titleId,V=void 0===m?null:m,H=e.classes,S=void 0===H?[]:H,x=e.attributes,w=void 0===x?{}:x,I=e.styles,U=void 0===I?{}:I;if(n){var j=n.prefix,J=n.iconName,u2=n.icon;return G0(Y({type:"icon"},n),function(){return _6("beforeDOMElementCreation",{iconDefinition:n,params:e}),X.autoA11y&&(h?w["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(V||f8()):(w["aria-hidden"]="true",w.focusable="false")),g9({icons:{main:v9(u2),mask:c?v9(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:j,iconName:J,transform:Y(Y({},G4),a),symbol:o,title:h,maskId:C,titleId:V,extra:{attributes:w,styles:U,classes:S}})})}},z$={mixout:function(){return{icon:(t=w$,function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:p9(n||{}),a=e.mask;return a&&(a=(a||{}).icon?a:p9(a||{})),t(i,Y(Y({},e),{},{mask:a}))})};var t},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=$m,e.nodeCallback=V$,e}}},provides:function(n){n.i2svg=function(e){var i=e.node,r=e.callback;return $m(void 0===i?r1:i,void 0===r?function(){}:r)},n.generateSvgReplacementMutation=function(e,i){var a=i.iconName,r=i.title,o=i.titleId,s=i.prefix,c=i.transform,l=i.symbol,C=i.mask,f=i.maskId,h=i.extra;return new Promise(function(m,V){Promise.all([_9(a,s),C.iconName?_9(C.iconName,C.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(H){var S=Zo(H,2);m([e,g9({icons:{main:S[0],mask:S[1]},prefix:s,iconName:a,transform:c,symbol:l,maskId:f,title:r,titleId:o,extra:h,watchable:!0})])}).catch(V)})},n.generateAbstractIcon=function(e){var l,i=e.children,a=e.attributes,r=e.main,o=e.transform,c=P0(e.styles);return c.length>0&&(a.style=c),o9(o)&&(l=fe("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),i.push(l||r.icon),{children:i,attributes:a}}}},S$={mixout:function(){return{layer:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.classes,r=void 0===a?[]:a;return G0({type:"layer"},function(){_6("beforeDOMElementCreation",{assembler:e,params:i});var o=[];return e(function(s){Array.isArray(s)?s.map(function(c){o=o.concat(c.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(X.familyPrefix,"-layers")].concat(k0(r)).join(" ")},children:o}]})}}}},D$={mixout:function(){return{counter:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.title,r=void 0===a?null:a,o=i.classes,s=void 0===o?[]:o,c=i.attributes,l=void 0===c?{}:c,C=i.styles,f=void 0===C?{}:C;return G0({type:"counter",content:e},function(){return _6("beforeDOMElementCreation",{content:e,params:i}),c$({content:e.toString(),title:r,extra:{attributes:l,styles:f,classes:["".concat(X.familyPrefix,"-layers-counter")].concat(k0(s))}})})}}}},x$={mixout:function(){return{text:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.transform,r=void 0===a?G4:a,o=i.title,s=void 0===o?null:o,c=i.classes,l=void 0===c?[]:c,C=i.attributes,f=void 0===C?{}:C,h=i.styles,m=void 0===h?{}:h;return G0({type:"text",content:e},function(){return _6("beforeDOMElementCreation",{content:e,params:i}),Am({content:e,transform:Y(Y({},G4),r),title:s,extra:{attributes:f,styles:m,classes:["".concat(X.familyPrefix,"-layers-text")].concat(k0(l))}})})}}},provides:function(n){n.generateLayersText=function(e,i){var a=i.title,r=i.transform,o=i.extra,s=null,c=null;if(Cm){var l=parseInt(getComputedStyle(e).fontSize,10),C=e.getBoundingClientRect();s=C.width/l,c=C.height/l}return X.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,Am({content:e.innerHTML,width:s,height:c,transform:r,title:a,extra:o,watchable:!0})])}}},N$=new RegExp('"',"ug"),Wm=[1105920,1112319];function qm(t,n){var e="".concat("data-fa-pseudo-element-pending").concat(n.replace(":","-"));return new Promise(function(i,a){if(null!==t.getAttribute(e))return i();var o=k5(t.children).filter(function(J){return J.getAttribute(t9)===n})[0],s=Oe.getComputedStyle(t,n),c=s.getPropertyValue("font-family").match(Vj),l=s.getPropertyValue("font-weight"),C=s.getPropertyValue("content");if(o&&!c)return t.removeChild(o),i();if(c&&"none"!==C&&""!==C){var f=s.getPropertyValue("content"),h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?O0[c[2].toLowerCase()]:Hj[l],m=function T$(t){var n=t.replace(N$,""),e=function $j(t,n){var a,e=t.length,i=t.charCodeAt(n);return i>=55296&&i<=56319&&e>n+1&&(a=t.charCodeAt(n+1))>=56320&&a<=57343?1024*(i-55296)+a-56320+65536:i}(n,0),i=e>=Wm[0]&&e<=Wm[1],a=2===n.length&&n[0]===n[1];return{value:l9(a?n[0]:n),isSecondary:i||a}}(f),V=m.value,H=m.isSecondary,S=c[0].startsWith("FontAwesome"),x=u9(h,V),w=x;if(S){var I=function Jj(t){var n=Sm[t],e=u9("fas",t);return n||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}(V);I.iconName&&I.prefix&&(x=I.iconName,h=I.prefix)}if(!x||H||o&&o.getAttribute(n9)===h&&o.getAttribute(i9)===w)i();else{t.setAttribute(e,w),o&&t.removeChild(o);var U=function L$(){return{iconName:null,title:null,titleId:null,prefix:null,transform:G4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),j=U.extra;j.attributes[t9]=n,_9(x,h).then(function(J){var u2=g9(Y(Y({},U),{},{icons:{main:J,mask:{prefix:null,iconName:null,rest:[]}},prefix:h,iconName:w,extra:j,watchable:!0})),m2=r1.createElement("svg");"::before"===n?t.insertBefore(m2,t.firstChild):t.appendChild(m2),m2.outerHTML=u2.map(function(B2){return u8(B2)}).join("\n"),t.removeAttribute(e),i()}).catch(a)}}else i()})}function E$(t){return Promise.all([qm(t,"::before"),qm(t,"::after")])}function A$(t){return!(t.parentNode===document.head||~yj.indexOf(t.tagName.toUpperCase())||t.getAttribute(t9)||t.parentNode&&"svg"===t.parentNode.tagName)}function Km(t){if(ce)return new Promise(function(n,e){var i=k5(t.querySelectorAll("*")).filter(A$).map(E$),a=y9_begin("searchPseudoElements");Bm(),Promise.all(i).then(function(){a(),b9(),n()}).catch(function(){a(),b9(),e()})})}var Ym=!1,Qm=function(n){return n.toLowerCase().split(" ").reduce(function(i,a){var r=a.toLowerCase().split("-"),o=r[0],s=r.slice(1).join("-");if(o&&"h"===s)return i.flipX=!0,i;if(o&&"v"===s)return i.flipY=!0,i;if(s=parseFloat(s),isNaN(s))return i;switch(o){case"grow":i.size=i.size+s;break;case"shrink":i.size=i.size-s;break;case"left":i.x=i.x-s;break;case"right":i.x=i.x+s;break;case"up":i.y=i.y-s;break;case"down":i.y=i.y+s;break;case"rotate":i.rotate=i.rotate+s}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},V9={x:0,y:0,width:"100%",height:"100%"};function Zm(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||n)&&(t.attributes.fill="black"),t}!function t$(t,n){var e=n.mixoutsTo;Tm=t,O5={},Object.keys(R5).forEach(function(i){-1===e$.indexOf(i)&&delete R5[i]}),Tm.forEach(function(i){var a=i.mixout?i.mixout():{};if(Object.keys(a).forEach(function(o){"function"==typeof a[o]&&(e[o]=a[o]),"object"===E0(a[o])&&Object.keys(a[o]).forEach(function(s){e[o]||(e[o]={}),e[o][s]=a[o][s]})}),i.hooks){var r=i.hooks();Object.keys(r).forEach(function(o){O5[o]||(O5[o]=[]),O5[o].push(r[o])})}i.provides&&i.provides(R5)})}([Fj,z$,S$,D$,x$,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Km,e}}},provides:function(n){n.pseudoElements2svg=function(e){var i=e.node;X.searchPseudoElements&&Km(void 0===i?r1:i)}}},{mixout:function(){return{dom:{unwatch:function(){Bm(),Ym=!0}}}},hooks:function(){return{bootstrap:function(){Um(h9("mutationObserverCallbacks",{}))},noAuto:function(){!function v$(){!W0||W0.disconnect()}()},watch:function(e){var i=e.observeMutationsRoot;Ym?b9():Um(h9("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(e){return Qm(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,i){var a=i.getAttribute("data-fa-transform");return a&&(e.transform=Qm(a)),e}}},provides:function(n){n.generateAbstractTransformGrouping=function(e){var i=e.main,a=e.transform,o=e.iconWidth,s={transform:"translate(".concat(e.containerWidth/2," 256)")},c="translate(".concat(32*a.x,", ").concat(32*a.y,") "),l="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),C="rotate(".concat(a.rotate," 0 0)"),m={outer:s,inner:{transform:"".concat(c," ").concat(l," ").concat(C)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:Y({},m.outer),children:[{tag:"g",attributes:Y({},m.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:Y(Y({},i.icon.attributes),m.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,i){var a=i.getAttribute("data-fa-mask"),r=a?U0(a.split(" ").map(function(o){return o.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Pe()),e.mask=r,e.maskId=i.getAttribute("data-fa-mask-id"),e}}},provides:function(n){n.generateAbstractMask=function(e){var t,i=e.children,a=e.attributes,r=e.main,o=e.mask,s=e.maskId,C=r.icon,h=o.icon,m=function Oj(t){var n=t.transform,i=t.iconWidth,a={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*n.x,", ").concat(32*n.y,") "),o="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(r," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:e.transform,containerWidth:o.width,iconWidth:r.width}),V={tag:"rect",attributes:Y(Y({},V9),{},{fill:"white"})},H=C.children?{children:C.children.map(Zm)}:{},S={tag:"g",attributes:Y({},m.inner),children:[Zm(Y({tag:C.tag,attributes:Y(Y({},C.attributes),m.path)},H))]},x={tag:"g",attributes:Y({},m.outer),children:[S]},w="mask-".concat(s||f8()),I="clip-".concat(s||f8()),U={tag:"mask",attributes:Y(Y({},V9),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[V,x]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:I},children:(t=h,"g"===t.tag?t.children:[t])},U]};return i.push(j,{tag:"rect",attributes:Y({fill:"currentColor","clip-path":"url(#".concat(I,")"),mask:"url(#".concat(w,")")},V9)}),{children:i,attributes:a}}}},{provides:function(n){var e=!1;Oe.matchMedia&&(e=Oe.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],a={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:Y(Y({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Y(Y({},r),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Y(Y({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||s.children.push({tag:"animate",attributes:Y(Y({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;1;1;0;1;"})}),i.push(s),i.push({tag:"path",attributes:Y(Y({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;0;0;0;1;"})}]}),e||i.push({tag:"path",attributes:Y(Y({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Y(Y({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},{hooks:function(){return{parseNodeAttributes:function(e,i){var a=i.getAttribute("data-fa-symbol");return e.symbol=null!==a&&(""===a||a),e}}}}],{mixoutsTo:j3});var G$=j3.parse,j$=j3.icon;const $$=["*"],K$=t=>{const n={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,[`fa-${t.size}`]:null!==t.size,[`fa-rotate-${t.rotate}`]:null!==t.rotate,[`fa-pull-${t.pull}`]:null!==t.pull,[`fa-stack-${t.stackItemSize}`]:null!=t.stackItemSize};return Object.keys(n).map(e=>n[e]?e:null).filter(e=>e)};let Z$=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),J$=(()=>{class t{constructor(){this.definitions={}}addIcons(...e){for(const i of e){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const a of i.icon[2])"string"==typeof a&&(this.definitions[i.prefix][a]=i)}}addIconPacks(...e){for(const i of e){const a=Object.keys(i).map(r=>i[r]);this.addIcons(...a)}}getIconDefinition(e,i){return e in this.definitions&&i in this.definitions[e]?this.definitions[e][i]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),X$=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(e){if("size"in e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=G({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[H1]}),t})(),eW=(()=>{class t{constructor(e,i){this.renderer=e,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(e){"size"in e&&(null!=e.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${e.size.currentValue}`),null!=e.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${e.size.previousValue}`))}}return t.\u0275fac=function(e){return new(e||t)(b(d3),b(A2))},t.\u0275cmp=n2({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[H1],ngContentSelectors:$$,decls:1,vars:0,template:function(e,i){1&e&&(u5(),d5(0))},encapsulation:2}),t})(),H9=(()=>{class t{constructor(e,i,a,r,o){this.sanitizer=e,this.config=i,this.iconLibrary=a,this.stackItem=r,this.classes=[],null!=o&&null==r&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(e){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let i=null;if(i=null==this.icon?this.config.fallbackIcon:this.icon,e){const a=this.findIconDefinition(i);if(null!=a){const r=this.buildParams();this.renderIcon(a,r)}}}render(){this.ngOnChanges({})}findIconDefinition(e){const i=((t,n)=>(t=>void 0!==t.prefix&&void 0!==t.iconName)(t)?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:n,iconName:t}:void 0)(e,this.config.defaultPrefix);if("icon"in i)return i;const a=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return null!=a?a:((t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(i),null)}buildParams(){const e={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?G$.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...K$(e),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(e,i){const a=j$(e,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(b(bh),b(Z$),b(J$),b(X$,8),b(eW,8))},t.\u0275cmp=n2({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(e,i){2&e&&(v4("innerHTML",i.renderedIconHTML,wl),B("title",i.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[H1],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),tW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();function q0(t,n){const e=K(t)?t:()=>t,i=a=>a.error(e());return new k2(n?a=>n.schedule(i,0,a):i)}const K0=a3(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Jm(t){return new k2(n=>{s3(t()).subscribe(n)})}function Xm(){return c1((t,n)=>{let e=null;t._refCount++;const i=R2(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const a=t._connection,r=e;e=null,a&&(!r||a===r)&&a.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class nW extends k2{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Y5(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new H2;const e=this.getSubject();n.add(this.source.subscribe(R2(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=H2.EMPTY)}return n}refCount(){return Xm()(this)}}function iW(t,n,e,i,a){return(r,o)=>{let s=e,c=n,l=0;r.subscribe(R2(o,C=>{const f=l++;c=s?t(c,C,f):(s=!0,C),i&&o.next(c)},a&&(()=>{s&&o.next(c),o.complete()})))}}function ev(t,n){return c1(iW(t,n,arguments.length>=2,!0))}function Fe(t){return c1((n,e)=>{let r,i=null,a=!1;i=n.subscribe(R2(e,void 0,void 0,o=>{r=s3(t(o,Fe(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):a=!0})),a&&(i.unsubscribe(),i=null,r.subscribe(e))})}function p8(t,n){return K(n)?b1(t,n,1):b1(t,1)}function w9(t){return t<=0?()=>c4:c1((n,e)=>{let i=[];n.subscribe(R2(e,a=>{i.push(a),t<i.length&&i.shift()},()=>{for(const a of i)e.next(a);e.complete()},void 0,()=>{i=null}))})}function tv(t=aW){return c1((n,e)=>{let i=!1;n.subscribe(R2(e,a=>{i=!0,e.next(a)},()=>i?e.complete():e.error(t())))})}function aW(){return new K0}function nv(t){return c1((n,e)=>{let i=!1;n.subscribe(R2(e,a=>{i=!0,e.next(a)},()=>{i||e.next(t),e.complete()}))})}function P5(t,n){const e=arguments.length>=2;return i=>i.pipe(t?J1((a,r)=>t(a,r,i)):o4,Q1(1),e?nv(n):tv(()=>new K0))}class ue{constructor(n,e){this.id=n,this.url=e}}class Y0 extends ue{constructor(n,e,i="imperative",a=null){super(n,e),this.navigationTrigger=i,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class g8 extends ue{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class iv extends ue{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class sW extends ue{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class cW extends ue{constructor(n,e,i,a){super(n,e),this.urlAfterRedirects=i,this.state=a}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lW extends ue{constructor(n,e,i,a){super(n,e),this.urlAfterRedirects=i,this.state=a}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CW extends ue{constructor(n,e,i,a,r){super(n,e),this.urlAfterRedirects=i,this.state=a,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class fW extends ue{constructor(n,e,i,a){super(n,e),this.urlAfterRedirects=i,this.state=a}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uW extends ue{constructor(n,e,i,a){super(n,e),this.urlAfterRedirects=i,this.state=a}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class av{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class rv{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class dW{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hW{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pW{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gW{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ov{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const L2="primary";class mW{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function F5(t){return new mW(t)}const sv="ngNavigationCancelingError";function z9(t){const n=Error("NavigationCancelingError: "+t);return n[sv]=!0,n}function _W(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const a={};for(let r=0;r<i.length;r++){const o=i[r],s=t[r];if(o.startsWith(":"))a[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:t.slice(0,i.length),posParams:a}}function j4(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let a;for(let r=0;r<e.length;r++)if(a=e[r],!cv(t[a],n[a]))return!1;return!0}function cv(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((a,r)=>i[r]===a)}return t===n}function lv(t){return Array.prototype.concat.apply([],t)}function Cv(t){return t.length>0?t[t.length-1]:null}function X1(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function $4(t){return Or(t)?t:Dt(t)?$1(Promise.resolve(t)):s2(t)}const LW={exact:function dv(t,n,e){if(!y6(t.segments,n.segments)||!Q0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!dv(t.children[i],n.children[i],e))return!1;return!0},subset:hv},fv={exact:function bW(t,n){return j4(t,n)},subset:function VW(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>cv(t[e],n[e]))},ignored:()=>!0};function uv(t,n,e){return LW[e.paths](t.root,n.root,e.matrixParams)&&fv[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function hv(t,n,e){return pv(t,n,n.segments,e)}function pv(t,n,e,i){if(t.segments.length>e.length){const a=t.segments.slice(0,e.length);return!(!y6(a,e)||n.hasChildren()||!Q0(a,e,i))}if(t.segments.length===e.length){if(!y6(t.segments,e)||!Q0(t.segments,e,i))return!1;for(const a in n.children)if(!t.children[a]||!hv(t.children[a],n.children[a],i))return!1;return!0}{const a=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(y6(t.segments,a)&&Q0(t.segments,a,i)&&t.children[L2])&&pv(t.children[L2],n,r,i)}}function Q0(t,n,e){return n.every((i,a)=>fv[e](t[a].parameters,i.parameters))}class M6{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=F5(this.queryParams)),this._queryParamMap}toString(){return zW.serialize(this)}}class V2{constructor(n,e){this.segments=n,this.children=e,this.parent=null,X1(e,(i,a)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Z0(this)}}class m8{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=F5(this.parameters)),this._parameterMap}toString(){return Mv(this)}}function y6(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class gv{}class mv{parse(n){const e=new IW(n);return new M6(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${v8(n.root,!0)}`,i=function xW(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(a=>`${J0(e)}=${J0(a)}`).join("&"):`${J0(e)}=${J0(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function SW(t){return encodeURI(t)}(n.fragment)}`:""}`}}const zW=new mv;function Z0(t){return t.segments.map(n=>Mv(n)).join("/")}function v8(t,n){if(!t.hasChildren())return Z0(t);if(n){const e=t.children[L2]?v8(t.children[L2],!1):"",i=[];return X1(t.children,(a,r)=>{r!==L2&&i.push(`${r}:${v8(a,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function wW(t,n){let e=[];return X1(t.children,(i,a)=>{a===L2&&(e=e.concat(n(i,a)))}),X1(t.children,(i,a)=>{a!==L2&&(e=e.concat(n(i,a)))}),e}(t,(i,a)=>a===L2?[v8(t.children[L2],!1)]:[`${a}:${v8(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[L2]?`${Z0(t)}/${e[0]}`:`${Z0(t)}/(${e.join("//")})`}}function vv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function J0(t){return vv(t).replace(/%3B/gi,";")}function S9(t){return vv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function X0(t){return decodeURIComponent(t)}function _v(t){return X0(t.replace(/\+/g,"%20"))}function Mv(t){return`${S9(t.path)}${function DW(t){return Object.keys(t).map(n=>`;${S9(n)}=${S9(t[n])}`).join("")}(t.parameters)}`}const NW=/^[^\/()?;=#]+/;function ei(t){const n=t.match(NW);return n?n[0]:""}const TW=/^[^=?&#]+/,AW=/^[^&#]+/;class IW{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new V2([],{}):new V2([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[L2]=new V2(n,e)),i}parseSegment(){const n=ei(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new m8(X0(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=ei(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=ei(this.remaining);a&&(i=a,this.capture(i))}n[X0(e)]=X0(i)}parseQueryParam(n){const e=function EW(t){const n=t.match(TW);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function kW(t){const n=t.match(AW);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const a=_v(e),r=_v(i);if(n.hasOwnProperty(a)){let o=n[a];Array.isArray(o)||(o=[o],n[a]=o),o.push(r)}else n[a]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=ei(this.remaining),a=this.remaining[i.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=L2);const o=this.parseChildren();e[r]=1===Object.keys(o).length?o[L2]:new V2([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class yv{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=D9(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=D9(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=x9(n,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==n)}pathFromRoot(n){return x9(n,this._root).map(e=>e.value)}}function D9(t,n){if(t===n.value)return n;for(const e of n.children){const i=D9(t,e);if(i)return i}return null}function x9(t,n){if(t===n.value)return[n];for(const e of n.children){const i=x9(t,e);if(i.length)return i.unshift(n),i}return[]}class de{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function B5(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class Lv extends yv{constructor(n,e){super(n),this.snapshot=e,N9(this,n)}toString(){return this.snapshot.toString()}}function bv(t,n){const e=function OW(t,n){const o=new ti([],{},{},"",{},L2,n,null,t.root,-1,{});return new Hv("",new de(o,[]))}(t,n),i=new q1([new m8("",{})]),a=new q1({}),r=new q1({}),o=new q1({}),s=new q1(""),c=new he(i,a,o,s,r,L2,n,e.root);return c.snapshot=e.root,new Lv(new de(c,[]),e)}class he{constructor(n,e,i,a,r,o,s,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=c}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(v2(n=>F5(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(v2(n=>F5(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Vv(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const a=e[i],r=e[i-1];if(a.routeConfig&&""===a.routeConfig.path)i--;else{if(r.component)break;i--}}return function RW(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class ti{constructor(n,e,i,a,r,o,s,c,l,C,f){this.url=n,this.params=e,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=C,this._resolve=f}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=F5(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=F5(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Hv extends yv{constructor(n,e){super(e),this.url=n,N9(this,e)}toString(){return wv(this._root)}}function N9(t,n){n.value._routerState=t,n.children.forEach(e=>N9(t,e))}function wv(t){const n=t.children.length>0?` { ${t.children.map(wv).join(", ")} } `:"";return`${t.value}${n}`}function T9(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,j4(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),j4(n.params,e.params)||t.params.next(e.params),function MW(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!j4(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),j4(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function E9(t,n){const e=j4(t.params,n.params)&&function HW(t,n){return y6(t,n)&&t.every((e,i)=>j4(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||E9(t.parent,n.parent))}function _8(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const a=function FW(t,n,e){return n.children.map(i=>{for(const a of e.children)if(t.shouldReuseRoute(i.value,a.value.snapshot))return _8(t,i,a);return _8(t,i)})}(t,n,e);return new de(i,a)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const o=r.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(s=>_8(t,s)),o}}const i=function BW(t){return new he(new q1(t.url),new q1(t.params),new q1(t.queryParams),new q1(t.fragment),new q1(t.data),t.outlet,t.component,t)}(n.value),a=n.children.map(r=>_8(t,r));return new de(i,a)}}function ni(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function M8(t){return"object"==typeof t&&null!=t&&t.outlets}function A9(t,n,e,i,a){let r={};if(i&&X1(i,(s,c)=>{r[c]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),t===n)return new M6(e,r,a);const o=zv(t,n,e);return new M6(o,r,a)}function zv(t,n,e){const i={};return X1(t.children,(a,r)=>{i[r]=a===n?e:zv(a,n,e)}),new V2(t.segments,i)}class Sv{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ni(i[0]))throw new Error("Root segment cannot have matrix parameters");const a=i.find(M8);if(a&&a!==Cv(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class k9{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function Dv(t,n,e){if(t||(t=new V2([],{})),0===t.segments.length&&t.hasChildren())return ii(t,n,e);const i=function qW(t,n,e){let i=0,a=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;a<t.segments.length;){if(i>=e.length)return r;const o=t.segments[a],s=e[i];if(M8(s))break;const c=`${s}`,l=i<e.length-1?e[i+1]:null;if(a>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!Nv(c,l,o))return r;i+=2}else{if(!Nv(c,{},o))return r;i++}a++}return{match:!0,pathIndex:a,commandIndex:i}}(t,n,e),a=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const r=new V2(t.segments.slice(0,i.pathIndex),{});return r.children[L2]=new V2(t.segments.slice(i.pathIndex),t.children),ii(r,0,a)}return i.match&&0===a.length?new V2(t.segments,{}):i.match&&!t.hasChildren()?I9(t,n,e):i.match?ii(t,0,a):I9(t,n,e)}function ii(t,n,e){if(0===e.length)return new V2(t.segments,{});{const i=function WW(t){return M8(t[0])?t[0].outlets:{[L2]:t}}(e),a={};return X1(i,(r,o)=>{"string"==typeof r&&(r=[r]),null!==r&&(a[o]=Dv(t.children[o],n,r))}),X1(t.children,(r,o)=>{void 0===i[o]&&(a[o]=r)}),new V2(t.segments,a)}}function I9(t,n,e){const i=t.segments.slice(0,n);let a=0;for(;a<e.length;){const r=e[a];if(M8(r)){const c=KW(r.outlets);return new V2(i,c)}if(0===a&&ni(e[0])){i.push(new m8(t.segments[n].path,xv(e[0]))),a++;continue}const o=M8(r)?r.outlets[L2]:`${r}`,s=a<e.length-1?e[a+1]:null;o&&s&&ni(s)?(i.push(new m8(o,xv(s))),a+=2):(i.push(new m8(o,{})),a++)}return new V2(i,{})}function KW(t){const n={};return X1(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=I9(new V2([],{}),0,e))}),n}function xv(t){const n={};return X1(t,(e,i)=>n[i]=`${e}`),n}function Nv(t,n,e){return t==e.path&&j4(n,e.parameters)}class QW{constructor(n,e,i,a){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=a}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),T9(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const a=B5(e);n.children.forEach(r=>{const o=r.value.outlet;this.deactivateRoutes(r,a[o],i),delete a[o]}),X1(a,(r,o)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const a=n.value,r=e?e.value:null;if(a===r)if(a.component){const o=i.getContext(a.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),a=i&&n.value.component?i.children:e,r=B5(n);for(const o of Object.keys(r))this.deactivateRouteAndItsChildren(r[o],a);if(i&&i.outlet){const o=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),a=i&&n.value.component?i.children:e,r=B5(n);for(const o of Object.keys(r))this.deactivateRouteAndItsChildren(r[o],a);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const a=B5(e);n.children.forEach(r=>{this.activateRoutes(r,a[r.value.outlet],i),this.forwardEvent(new gW(r.value.snapshot))}),n.children.length&&this.forwardEvent(new hW(n.value.snapshot))}activateRoutes(n,e,i){const a=n.value,r=e?e.value:null;if(T9(a),a===r)if(a.component){const o=i.getOrCreateContext(a.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,i);else if(a.component){const o=i.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const s=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),T9(s.route.value),this.activateChildRoutes(n,null,o.children)}else{const s=function ZW(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(a.snapshot),c=s?s.module.componentFactoryResolver:null;o.attachRef=null,o.route=a,o.resolver=c,o.outlet&&o.outlet.activateWith(a,c),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}class O9{constructor(n,e){this.routes=n,this.module=e}}function Be(t){return"function"==typeof t}function L6(t){return t instanceof M6}const y8=Symbol("INITIAL_VALUE");function L8(){return re(t=>function bo(...t){const n=X5(t),e=B8(t),{args:i,keys:a}=Hh(t);if(0===i.length)return $1([],n);const r=new k2(function CF(t,n,e=o4){return i=>{kp(n,()=>{const{length:a}=t,r=new Array(a);let o=a,s=a;for(let c=0;c<a;c++)kp(n,()=>{const l=$1(t[c],n);let C=!1;l.subscribe(R2(i,f=>{r[c]=f,C||(C=!0,s--),s||i.next(e(r.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,n,a?o=>wh(a,o):o4));return e?r.pipe(J7(e)):r}(t.map(n=>n.pipe(Q1(1),function m0(...t){const n=X5(t);return c1((e,i)=>{(n?Jt(t,e,n):Jt(t,e)).subscribe(i)})}(y8)))).pipe(ev((n,e)=>{let i=!1;return e.reduce((a,r,o)=>a!==y8?a:(r===y8&&(i=!0),i||!1!==r&&o!==e.length-1&&!L6(r)?a:r),n)},y8),J1(n=>n!==y8),v2(n=>L6(n)?n:!0===n),Q1(1)))}class iq{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new b8,this.attachRef=null}}class b8{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new iq,this.contexts.set(n,e)),e}getContext(n){return this.contexts.get(n)||null}}let R9=(()=>{class t{constructor(e,i,a,r,o){this.parentContexts=e,this.location=i,this.resolver=a,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r2,this.deactivateEvents=new r2,this.attachEvents=new r2,this.detachEvents=new r2,this.name=r||L2,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,c=new aq(e,s,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,c),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(b(b8),b(P3),b(v5),function Qe(t){return function SD(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let a=0;for(;a<i;){const r=e[a];if(jc(r))break;if(0===r)a+=2;else if("number"==typeof r)for(a++;a<i&&"string"==typeof e[a];)a++;else{if(r===n)return e[a+1];a+=2}}}return null}(R1(),t)}("name"),b(F3))},t.\u0275dir=G({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class aq{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===he?this.route:n===b8?this.childContexts:this.parent.get(n,e)}}let Tv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&T(0,"router-outlet")},directives:[R9],encapsulation:2}),t})();function Ev(t,n=""){for(let e=0;e<t.length;e++){const i=t[e];rq(i,oq(n,i))}}function rq(t,n){t.children&&Ev(t.children,n)}function oq(t,n){return n?t||n.path?t&&!n.path?`${t}/`:!t&&n.path?n.path:`${t}/${n.path}`:"":t}function P9(t){const n=t.children&&t.children.map(P9),e=n?Object.assign(Object.assign({},t),{children:n}):Object.assign({},t);return!e.component&&(n||e.loadChildren)&&e.outlet&&e.outlet!==L2&&(e.component=Tv),e}function a4(t){return t.outlet||L2}function Av(t,n){const e=t.filter(i=>a4(i)===n);return e.push(...t.filter(i=>a4(i)!==n)),e}const kv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ai(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},kv):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||_W)(e,t,n);if(!r)return Object.assign({},kv);const o={};X1(r.posParams,(c,l)=>{o[l]=c.path});const s=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function ri(t,n,e,i,a="corrected"){if(e.length>0&&function lq(t,n,e){return e.some(i=>oi(t,n,i)&&a4(i)!==L2)}(t,e,i)){const o=new V2(n,function cq(t,n,e,i){const a={};a[L2]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&a4(r)!==L2){const o=new V2([],{});o._sourceSegment=t,o._segmentIndexShift=n.length,a[a4(r)]=o}return a}(t,n,i,new V2(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function Cq(t,n,e){return e.some(i=>oi(t,n,i))}(t,e,i)){const o=new V2(t.segments,function sq(t,n,e,i,a,r){const o={};for(const s of i)if(oi(t,e,s)&&!a[a4(s)]){const c=new V2([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===r?t.segments.length:n.length,o[a4(s)]=c}return Object.assign(Object.assign({},a),o)}(t,n,e,i,t.children,a));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new V2(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function oi(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function Iv(t,n,e,i){return!!(a4(t)===i||i!==L2&&oi(n,e,t))&&("**"===t.path||ai(n,t,e).matched)}function Ov(t,n,e){return 0===n.length&&!t.children[e]}class si{constructor(n){this.segmentGroup=n||null}}class Rv{constructor(n){this.urlTree=n}}function V8(t){return q0(new si(t))}function Pv(t){return q0(new Rv(t))}class hq{constructor(n,e,i,a,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=a,this.config=r,this.allowRedirects=!0,this.ngModule=n.get(te)}apply(){const n=ri(this.urlTree.root,[],[],this.config).segmentGroup,e=new V2(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,L2).pipe(v2(r=>this.createUrlTree(F9(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Fe(r=>{if(r instanceof Rv)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof si?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,L2).pipe(v2(a=>this.createUrlTree(F9(a),n.queryParams,n.fragment))).pipe(Fe(a=>{throw a instanceof si?this.noMatchError(a):a}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const a=n.segments.length>0?new V2([],{[L2]:n}):n;return new M6(a,e,i)}expandSegmentGroup(n,e,i,a){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(v2(r=>new V2([],r))):this.expandSegment(n,i,e,i.segments,a,!0)}expandChildren(n,e,i){const a=[];for(const r of Object.keys(i.children))"primary"===r?a.unshift(r):a.push(r);return $1(a).pipe(p8(r=>{const o=i.children[r],s=Av(e,r);return this.expandSegmentGroup(n,s,o,r).pipe(v2(c=>({segment:c,outlet:r})))}),ev((r,o)=>(r[o.outlet]=o.segment,r),{}),function rW(t,n){const e=arguments.length>=2;return i=>i.pipe(t?J1((a,r)=>t(a,r,i)):o4,w9(1),e?nv(n):tv(()=>new K0))}())}expandSegment(n,e,i,a,r,o){return $1(i).pipe(p8(s=>this.expandSegmentAgainstRoute(n,e,i,s,a,r,o).pipe(Fe(l=>{if(l instanceof si)return s2(null);throw l}))),P5(s=>!!s),Fe((s,c)=>{if(s instanceof K0||"EmptyError"===s.name)return Ov(e,a,r)?s2(new V2([],{})):V8(e);throw s}))}expandSegmentAgainstRoute(n,e,i,a,r,o,s){return Iv(a,e,r,o)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(n,e,a,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,a,r,o):V8(e):V8(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,a,r,o){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,a,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,a,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,a){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Pv(r):this.lineralizeSegments(i,r).pipe(b1(o=>{const s=new V2(o,{});return this.expandSegment(n,s,e,o,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,a,r,o){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:C}=ai(e,a,r);if(!s)return V8(e);const f=this.applyRedirectCommands(c,a.redirectTo,C);return a.redirectTo.startsWith("/")?Pv(f):this.lineralizeSegments(a,f).pipe(b1(h=>this.expandSegment(n,e,i,h.concat(l),o,!1)))}matchSegmentAgainstRoute(n,e,i,a,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?s2(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(v2(f=>(i._loadedConfig=f,new V2(a,{})))):s2(new V2(a,{}));const{matched:o,consumedSegments:s,remainingSegments:c}=ai(e,i,a);return o?this.getChildConfig(n,i,a).pipe(b1(C=>{const f=C.module,h=C.routes,{segmentGroup:m,slicedSegments:V}=ri(e,s,c,h),H=new V2(m.segments,m.children);if(0===V.length&&H.hasChildren())return this.expandChildren(f,h,H).pipe(v2(I=>new V2(s,I)));if(0===h.length&&0===V.length)return s2(new V2(s,{}));const S=a4(i)===r;return this.expandSegment(f,H,h,V,S?L2:r,!0).pipe(v2(w=>new V2(s.concat(w.segments),w.children)))})):V8(e)}getChildConfig(n,e,i){return e.children?s2(new O9(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?s2(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(b1(a=>a?this.configLoader.load(n.injector,e).pipe(v2(r=>(e._loadedConfig=r,r))):function uq(t){return q0(z9(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))}(e))):s2(new O9([],n))}runCanLoadGuards(n,e,i){const a=e.canLoad;return a&&0!==a.length?s2(a.map(o=>{const s=n.get(o);let c;if(function XW(t){return t&&Be(t.canLoad)}(s))c=s.canLoad(e,i);else{if(!Be(s))throw new Error("Invalid CanLoad guard");c=s(e,i)}return $4(c)})).pipe(L8(),g3(o=>{if(!L6(o))return;const s=z9(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw s.url=o,s}),v2(o=>!0===o)):s2(!0)}lineralizeSegments(n,e){let i=[],a=e.root;for(;;){if(i=i.concat(a.segments),0===a.numberOfChildren)return s2(i);if(a.numberOfChildren>1||!a.children[L2])return q0(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));a=a.children[L2]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,a){const r=this.createSegmentGroup(n,e.root,i,a);return new M6(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return X1(n,(a,r)=>{if("string"==typeof a&&a.startsWith(":")){const s=a.substring(1);i[r]=e[s]}else i[r]=a}),i}createSegmentGroup(n,e,i,a){const r=this.createSegments(n,e.segments,i,a);let o={};return X1(e.children,(s,c)=>{o[c]=this.createSegmentGroup(n,s,i,a)}),new V2(r,o)}createSegments(n,e,i,a){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,a):this.findOrReturn(r,i))}findPosParam(n,e,i){const a=i[e.path.substring(1)];if(!a)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return a}findOrReturn(n,e){let i=0;for(const a of e){if(a.path===n.path)return e.splice(i),a;i++}return n}}function F9(t){const n={};for(const i of Object.keys(t.children)){const r=F9(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function pq(t){if(1===t.numberOfChildren&&t.children[L2]){const n=t.children[L2];return new V2(t.segments.concat(n.segments),n.children)}return t}(new V2(t.segments,n))}class Fv{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class ci{constructor(n,e){this.component=n,this.route=e}}function mq(t,n,e){const i=t._root;return H8(i,n?n._root:null,e,[i.value])}function li(t,n,e){const i=function _q(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function H8(t,n,e,i,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=B5(n);return t.children.forEach(o=>{(function Mq(t,n,e,i,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const c=function yq(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!y6(t.url,n.url);case"pathParamsOrQueryParamsChange":return!y6(t.url,n.url)||!j4(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!E9(t,n)||!j4(t.queryParams,n.queryParams);default:return!E9(t,n)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Fv(i)):(r.data=o.data,r._resolvedData=o._resolvedData),H8(t,n,r.component?s?s.children:null:e,i,a),c&&s&&s.outlet&&s.outlet.isActivated&&a.canDeactivateChecks.push(new ci(s.outlet.component,o))}else o&&w8(n,s,a),a.canActivateChecks.push(new Fv(i)),H8(t,null,r.component?s?s.children:null:e,i,a)})(o,r[o.value.outlet],e,i.concat([o.value]),a),delete r[o.value.outlet]}),X1(r,(o,s)=>w8(o,e.getContext(s),a)),a}function w8(t,n,e){const i=B5(t),a=t.value;X1(i,(r,o)=>{w8(r,a.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new ci(a.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,a))}class xq{}function Bv(t){return new k2(n=>n.error(t))}class Tq{constructor(n,e,i,a,r,o){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const n=ri(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,L2);if(null===e)return null;const i=new ti([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},L2,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new de(i,e),r=new Hv(this.url,a);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(n){const e=n.value,i=Vv(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments,i)}processChildren(n,e){const i=[];for(const r of Object.keys(e.children)){const o=e.children[r],s=Av(n,r),c=this.processSegmentGroup(s,o,r);if(null===c)return null;i.push(...c)}const a=Uv(i);return function Eq(t){t.sort((n,e)=>n.value.outlet===L2?-1:e.value.outlet===L2?1:n.value.outlet.localeCompare(e.value.outlet))}(a),a}processSegment(n,e,i,a){for(const r of n){const o=this.processSegmentAgainstRoute(r,e,i,a);if(null!==o)return o}return Ov(e,i,a)?[]:null}processSegmentAgainstRoute(n,e,i,a){if(n.redirectTo||!Iv(n,e,i,a))return null;let r,o=[],s=[];if("**"===n.path){const m=i.length>0?Cv(i).parameters:{};r=new ti(i,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$v(n),a4(n),n.component,n,Gv(e),jv(e)+i.length,Wv(n))}else{const m=ai(e,n,i);if(!m.matched)return null;o=m.consumedSegments,s=m.remainingSegments,r=new ti(o,m.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$v(n),a4(n),n.component,n,Gv(e),jv(e)+o.length,Wv(n))}const c=function Aq(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:l,slicedSegments:C}=ri(e,o,s,c.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===C.length&&l.hasChildren()){const m=this.processChildren(c,l);return null===m?null:[new de(r,m)]}if(0===c.length&&0===C.length)return[new de(r,[])];const f=a4(n)===a,h=this.processSegment(c,l,C,f?L2:a);return null===h?null:[new de(r,h)]}}function kq(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function Uv(t){const n=[],e=new Set;for(const i of t){if(!kq(i)){n.push(i);continue}const a=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==a?(a.children.push(...i.children),e.add(a)):n.push(i)}for(const i of e){const a=Uv(i.children);n.push(new de(i.value,a))}return n.filter(i=>!e.has(i))}function Gv(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function jv(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function $v(t){return t.data||{}}function Wv(t){return t.resolve||{}}function qv(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function B9(t){return re(n=>{const e=t(n);return e?$1(e).pipe(v2(()=>n)):s2(n)})}class Gq extends class Uq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const U9=new _2("ROUTES");class Kv{constructor(n,e,i,a){this.injector=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=a}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const a=this.loadModuleFactory(e.loadChildren).pipe(v2(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=r.create(n);return new O9(lv(o.injector.get(U9,void 0,o2.Self|o2.Optional)).map(P9),o)}),Fe(r=>{throw e._loader$=void 0,r}));return e._loader$=new nW(a,()=>new d2).pipe(Xm()),e._loader$}loadModuleFactory(n){return $4(n()).pipe(b1(e=>e instanceof Uu?s2(e):$1(this.compiler.compileModuleAsync(e))))}}class $q{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function Wq(t){throw t}function qq(t,n,e){return n.parse("/")}function Yv(t,n){return s2(null)}const Kq={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Yq={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let e3=(()=>{class t{constructor(e,i,a,r,o,s,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=a,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new d2,this.errorHandler=Wq,this.malformedUriErrorHandler=qq,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Yv,afterPreactivation:Yv},this.urlHandlingStrategy=new $q,this.routeReuseStrategy=new Gq,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(te),this.console=o.get(Jk);const f=o.get(F2);this.isNgZoneEnabled=f instanceof F2&&F2.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=function yW(){return new M6(new V2([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Kv(o,s,h=>this.triggerEvent(new av(h)),h=>this.triggerEvent(new rv(h))),this.routerState=bv(this.currentUrlTree,this.rootComponentType),this.transitions=new q1({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(J1(a=>0!==a.id),v2(a=>Object.assign(Object.assign({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),re(a=>{let r=!1,o=!1;return s2(a).pipe(g3(s=>{this.currentNavigation={id:s.id,initialUrl:s.currentRawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),re(s=>{const c=this.browserUrlTree.toString(),l=!this.navigated||s.extractedUrl.toString()!==c||c!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Qv(s.source)&&(this.browserUrlTree=s.extractedUrl),s2(s).pipe(re(f=>{const h=this.transitions.getValue();return i.next(new Y0(f.id,this.serializeUrl(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions.getValue()?c4:Promise.resolve(f)}),function gq(t,n,e,i){return re(a=>function dq(t,n,e,i,a){return new hq(t,n,e,i,a).apply()}(t,n,e,a.extractedUrl,i).pipe(v2(r=>Object.assign(Object.assign({},a),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),g3(f=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:f.urlAfterRedirects})}),function Iq(t,n,e,i,a){return b1(r=>function Nq(t,n,e,i,a="emptyOnly",r="legacy"){try{const o=new Tq(t,n,e,i,a,r).recognize();return null===o?Bv(new xq):s2(o)}catch(o){return Bv(o)}}(t,n,r.urlAfterRedirects,e(r.urlAfterRedirects),i,a).pipe(v2(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,f=>this.serializeUrl(f),this.paramsInheritanceStrategy,this.relativeLinkResolution),g3(f=>{if("eager"===this.urlUpdateStrategy){if(!f.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl);this.setBrowserUrl(m,f)}this.browserUrlTree=f.urlAfterRedirects}const h=new cW(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.next(h)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:m,source:V,restoredState:H,extras:S}=s,x=new Y0(h,this.serializeUrl(m),V,H);i.next(x);const w=bv(m,this.rootComponentType).snapshot;return s2(Object.assign(Object.assign({},s),{targetSnapshot:w,urlAfterRedirects:m,extras:Object.assign(Object.assign({},S),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),c4}),B9(s=>{const{targetSnapshot:c,id:l,extractedUrl:C,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:m}}=s;return this.hooks.beforePreactivation(c,{navigationId:l,appliedUrlTree:C,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!m})}),g3(s=>{const c=new lW(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),v2(s=>Object.assign(Object.assign({},s),{guards:mq(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function Lq(t,n){return b1(e=>{const{targetSnapshot:i,currentSnapshot:a,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return 0===o.length&&0===r.length?s2(Object.assign(Object.assign({},e),{guardsResult:!0})):function bq(t,n,e,i){return $1(t).pipe(b1(a=>function Dq(t,n,e,i,a){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?s2(r.map(s=>{const c=li(s,n,a);let l;if(function nq(t){return t&&Be(t.canDeactivate)}(c))l=$4(c.canDeactivate(t,n,e,i));else{if(!Be(c))throw new Error("Invalid CanDeactivate guard");l=$4(c(t,n,e,i))}return l.pipe(P5())})).pipe(L8()):s2(!0)}(a.component,a.route,e,n,i)),P5(a=>!0!==a,!0))}(o,i,a,t).pipe(b1(s=>s&&function JW(t){return"boolean"==typeof t}(s)?function Vq(t,n,e,i){return $1(n).pipe(p8(a=>Jt(function wq(t,n){return null!==t&&n&&n(new dW(t)),s2(!0)}(a.route.parent,i),function Hq(t,n){return null!==t&&n&&n(new pW(t)),s2(!0)}(a.route,i),function Sq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(o=>function vq(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(o)).filter(o=>null!==o).map(o=>Jm(()=>s2(o.guards.map(c=>{const l=li(c,o.node,e);let C;if(function tq(t){return t&&Be(t.canActivateChild)}(l))C=$4(l.canActivateChild(i,t));else{if(!Be(l))throw new Error("Invalid CanActivateChild guard");C=$4(l(i,t))}return C.pipe(P5())})).pipe(L8())));return s2(r).pipe(L8())}(t,a.path,e),function zq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return s2(!0);const a=i.map(r=>Jm(()=>{const o=li(r,n,e);let s;if(function eq(t){return t&&Be(t.canActivate)}(o))s=$4(o.canActivate(n,t));else{if(!Be(o))throw new Error("Invalid CanActivate guard");s=$4(o(n,t))}return s.pipe(P5())}));return s2(a).pipe(L8())}(t,a.route,e))),P5(a=>!0!==a,!0))}(i,r,t,n):s2(s)),v2(s=>Object.assign(Object.assign({},e),{guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),g3(s=>{if(L6(s.guardsResult)){const l=z9(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw l.url=s.guardsResult,l}const c=new CW(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(c)}),J1(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,""),!1)),B9(s=>{if(s.guards.canActivateChecks.length)return s2(s).pipe(g3(c=>{const l=new fW(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}),re(c=>{let l=!1;return s2(c).pipe(function Oq(t,n){return b1(e=>{const{targetSnapshot:i,guards:{canActivateChecks:a}}=e;if(!a.length)return s2(e);let r=0;return $1(a).pipe(p8(o=>function Rq(t,n,e,i){return function Pq(t,n,e,i){const a=qv(t);if(0===a.length)return s2({});const r={};return $1(a).pipe(b1(o=>function Fq(t,n,e,i){const a=li(t,n,i);return $4(a.resolve?a.resolve(n,e):a(n,e))}(t[o],n,e,i).pipe(g3(s=>{r[o]=s}))),w9(1),b1(()=>qv(r).length===a.length?s2(r):c4))}(t._resolve,t,n,i).pipe(v2(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),Vv(t,e).resolve),null)))}(o.route,i,t,n)),g3(()=>r++),w9(1),b1(o=>r===a.length?s2(e):c4))})}(this.paramsInheritanceStrategy,this.ngModule.injector),g3({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(c),this.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),g3(c=>{const l=new uW(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}))}),B9(s=>{const{targetSnapshot:c,id:l,extractedUrl:C,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:m}}=s;return this.hooks.afterPreactivation(c,{navigationId:l,appliedUrlTree:C,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!m})}),v2(s=>{const c=function PW(t,n,e){const i=_8(t,n._root,e?e._root:void 0);return new Lv(i,n)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:c})}),g3(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>v2(i=>(new QW(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),g3({next(){r=!0},complete(){r=!0}}),function oW(t){return c1((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}(()=>{var s;r||o||this.cancelNavigationTransition(a,`Navigation ID ${a.id} is not equal to the current navigation id ${this.navigationId}`),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===a.id&&(this.currentNavigation=null)}),Fe(s=>{if(o=!0,function vW(t){return t&&t[sv]}(s)){const c=L6(s.url);c||(this.navigated=!0,this.restoreHistory(a,!0));const l=new iv(a.id,this.serializeUrl(a.extractedUrl),s.message);i.next(l),c?setTimeout(()=>{const C=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),f={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qv(a.source)};this.scheduleNavigation(C,"imperative",null,f,{resolve:a.resolve,reject:a.reject,promise:a.promise})},0):a.resolve(!1)}else{this.restoreHistory(a,!0);const c=new sW(a.id,this.serializeUrl(a.extractedUrl),s);i.next(c);try{a.resolve(this.errorHandler(s))}catch(l){a.reject(l)}}return c4}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var a;const r={replaceUrl:!0},o=(null===(a=e.state)||void 0===a?void 0:a.navigationId)?e.state:null;if(o){const c=Object.assign({},o);delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(r.state=c)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Ev(e),this.config=e.map(P9),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:a,queryParams:r,fragment:o,queryParamsHandling:s,preserveFragment:c}=i,l=a||this.routerState.root,C=c?this.currentUrlTree.fragment:o;let f=null;switch(s){case"merge":f=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}return null!==f&&(f=this.removeEmptyProps(f)),function UW(t,n,e,i,a){if(0===e.length)return A9(n.root,n.root,n.root,i,a);const r=function GW(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Sv(!0,0,t);let n=0,e=!1;const i=t.reduce((a,r,o)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return X1(r.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...a,{outlets:s}]}if(r.segmentPath)return[...a,r.segmentPath]}return"string"!=typeof r?[...a,r]:0===o?(r.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?n++:""!=s&&a.push(s))}),a):[...a,r]},[]);return new Sv(e,n,i)}(e);if(r.toRoot())return A9(n.root,n.root,new V2([],{}),i,a);const o=function jW(t,n,e){if(t.isAbsolute)return new k9(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new k9(r,r===n.root,0)}const i=ni(t.commands[0])?0:1;return function $W(t,n,e){let i=t,a=n,r=e;for(;r>a;){if(r-=a,i=i.parent,!i)throw new Error("Invalid number of '../'");a=i.segments.length}return new k9(i,!1,a-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,n,t),s=o.processChildren?ii(o.segmentGroup,o.index,r.commands):Dv(o.segmentGroup,o.index,r.commands);return A9(n.root,o.segmentGroup,s,i,a)}(l,this.currentUrlTree,e,f,null!=C?C:null)}navigateByUrl(e,i={skipLocationChange:!1}){const a=L6(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function Qq(t){for(let n=0;n<t.length;n++){const e=t[n];if(null==e)throw new Error(`The requested path contains ${e} segment at index ${n}`)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(a){i=this.malformedUriErrorHandler(a,this.urlSerializer,e)}return i}isActive(e,i){let a;if(a=!0===i?Object.assign({},Kq):!1===i?Object.assign({},Yq):i,L6(e))return uv(this.currentUrlTree,e,a);const r=this.parseUrl(e);return uv(this.currentUrlTree,r,a)}removeEmptyProps(e){return Object.keys(e).reduce((i,a)=>{const r=e[a];return null!=r&&(i[a]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new g8(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,a,r,o){var s,c;if(this.disposed)return Promise.resolve(!1);let l,C,f;o?(l=o.resolve,C=o.reject,f=o.promise):f=new Promise((V,H)=>{l=V,C=H});const h=++this.navigationId;let m;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),m=a&&a.\u0275routerPageId?a.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):m=0,this.setTransition({id:h,targetPageId:m,source:i,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:l,reject:C,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(V=>Promise.reject(V))}setBrowserUrl(e,i){const a=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(a)||i.extras.replaceUrl?this.location.replaceState(a,"",r):this.location.go(a,"",r)}restoreHistory(e,i=!1){var a,r;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const a=new iv(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(a),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){Er()},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();function Qv(t){return"imperative"!==t}let pe=(()=>{class t{constructor(e,i,a){this.router=e,this.route=i,this.locationStrategy=a,this.commands=null,this.href=null,this.onChanges=new d2,this.subscription=e.events.subscribe(r=>{r instanceof g8&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,a,r,o){if(0!==e||i||a||r||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:U5(this.skipLocationChange),replaceUrl:U5(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:U5(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(b(e3),b(he),b(o6))},t.\u0275dir=G({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&A("click",function(r){return i.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&B("target",i.target)("href",i.href,Je)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[H1]}),t})();function U5(t){return""===t||!!t}class Zv{}class Jv{preload(n,e){return s2(null)}}let Xv=(()=>{class t{constructor(e,i,a,r){this.router=e,this.injector=a,this.preloadingStrategy=r,this.loader=new Kv(a,i,c=>e.triggerEvent(new av(c)),c=>e.triggerEvent(new rv(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(J1(e=>e instanceof g8),p8(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(te);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const a=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const o=r._loadedConfig;a.push(this.processRoutes(o.module,o.routes))}else r.loadChildren&&!r.canLoad?a.push(this.preloadConfig(e,r)):r.children&&a.push(this.processRoutes(e,r.children));return $1(a).pipe(J5(),v2(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?s2(i._loadedConfig):this.loader.load(e.injector,i)).pipe(b1(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(q(e3),q(Vd),q(A1),q(Zv))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})(),j9=(()=>{class t{constructor(e,i,a={}){this.router=e,this.viewportScroller=i,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Y0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof g8&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ov&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new ov(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Er()},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();const b6=new _2("ROUTER_CONFIGURATION"),e_=new _2("ROUTER_FORROOT_GUARD"),eK=[N7,{provide:gv,useClass:mv},{provide:e3,useFactory:function rK(t,n,e,i,a,r,o={},s,c){const l=new e3(null,t,n,e,i,a,lv(r));return s&&(l.urlHandlingStrategy=s),c&&(l.routeReuseStrategy=c),function oK(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(o,l),o.enableTracing&&l.events.subscribe(C=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${C.constructor.name}`),console.log(C.toString()),console.log(C),null===(h=console.groupEnd)||void 0===h||h.call(console)}),l},deps:[gv,b8,N7,A1,Vd,U9,b6,[class jq{},new Ve],[class Bq{},new Ve]]},b8,{provide:he,useFactory:function sK(t){return t.routerState.root},deps:[e3]},Xv,Jv,class Xq{preload(n,e){return e().pipe(Fe(()=>s2(null)))}},{provide:b6,useValue:{enableTracing:!1}}];function tK(){return new Dd("Router",e3)}let t_=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[eK,n_(e),{provide:e_,useFactory:aK,deps:[[e3,new Ve,new pt]]},{provide:b6,useValue:i||{}},{provide:o6,useFactory:iK,deps:[r6,[new dn(x7),new Ve],b6]},{provide:j9,useFactory:nK,deps:[e3,cR,b6]},{provide:Zv,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Jv},{provide:Dd,multi:!0,useFactory:tK},[$9,{provide:h7,multi:!0,useFactory:cK,deps:[$9]},{provide:i_,useFactory:lK,deps:[$9]},{provide:bd,multi:!0,useExisting:i_}]]}}static forChild(e){return{ngModule:t,providers:[n_(e)]}}}return t.\u0275fac=function(e){return new(e||t)(q(e_,8),q(e3,8))},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({}),t})();function nK(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new j9(t,n,e)}function iK(t,n,e={}){return e.useHash?new Yd(t,n):new Kd(t,n)}function aK(t){return"guarded"}function n_(t){return[{provide:ED,multi:!0,useValue:t},{provide:U9,multi:!0,useValue:t}]}let $9=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new d2}appInitializer(){return this.injector.get(BI,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const a=new Promise(s=>i=s),r=this.injector.get(e3),o=this.injector.get(b6);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?s2(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),a})}bootstrapListener(e){const i=this.injector.get(b6),a=this.injector.get(Xv),r=this.injector.get(j9),o=this.injector.get(e3),s=this.injector.get(L5);e===s.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),a.setUpPreloading(),r.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(q(A1))},t.\u0275prov=Q({token:t,factory:t.\u0275fac}),t})();function cK(t){return t.appInitializer.bind(t)}function lK(t){return t.bootstrapListener.bind(t)}const i_=new _2("Router Initializer");let fK=(()=>{class t{constructor(){this.title="config-ui",this.logoSrc="assets/images/homebridge-eufy-security.png"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["app-root"]],decls:16,vars:1,consts:[[1,"card","card-body",2,"width","100%"],[1,"logo"],[1,"logo",3,"src"],[1,"text-center"],[2,"font-weight","800"],[1,"pluginContent",2,"max-width","720px !important"],[1,"footer"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1),T(2,"img",2),g(),p(3,"h3",3),_(4," Welcome to"),T(5,"br"),p(6,"b",4),_(7,"Eufy Security Plugin"),g()(),p(8,"h6",3),_(9,"Homebridge plugin for Eufy Security Devices"),g(),T(10,"hr"),p(11,"div",5),T(12,"router-outlet"),g(),T(13,"hr"),p(14,"div",6),_(15,"We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Anker Innovations Technology Co.LTd, and Shenzhen Oceanwing Smart Innovations Technology Co., Ltd, and its affiliated companies within the Anker Group, or any of its subsidiaries or its affiliates. "),g()()),2&e&&(v(2),M("src",i.logoSrc,Je))},directives:[R9],styles:["div.logo[_ngcontent-%COMP%]{text-align:center;margin:0 0 5px}img.logo[_ngcontent-%COMP%]{text-align:center;margin:0 auto;max-width:75%;height:auto;object-fit:cover}.footer[_ngcontent-%COMP%]{font-size:small;color:#888}"]}),t})();function a_(t,n,e,i,a,r,o){try{var s=t[r](o),c=s.value}catch(l){return void e(l)}s.done?n(c):Promise.resolve(c).then(i,a)}function f2(t){return function(){var n=this,e=arguments;return new Promise(function(i,a){var r=t.apply(n,e);function o(c){a_(r,i,a,o,s,"next",c)}function s(c){a_(r,i,a,o,s,"throw",c)}o(void 0)})}}var zM={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9898,9899,11044,61708,61915,9679],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"]},WM={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM168 232C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H168z"]},QM={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 368C269.3 368 280 357.3 280 344V280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H280V168C280 154.7 269.3 144 256 144C242.7 144 232 154.7 232 168V232H168C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H232V344C232 357.3 242.7 368 256 368z"]},xy={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM223.1 149.5L313.4 220.3C317.6 211.8 320 202.2 320 191.1C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 159.1 320 159.1C373 159.1 416 202.1 416 255.1C416 269.7 413.1 282.7 407.1 294.5L446.6 324.7C457.7 304.3 464 280.9 464 255.1C464 176.5 399.5 111.1 320 111.1C282.7 111.1 248.6 126.2 223.1 149.5zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 255.1C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z"]},Vs={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M449.9 39.96l-48.5 48.53C362.5 53.19 311.4 32 256 32C161.5 32 78.59 92.34 49.58 182.2c-5.438 16.81 3.797 34.88 20.61 40.28c16.97 5.5 34.86-3.812 40.3-20.59C130.9 138.5 189.4 96 256 96c37.96 0 73 14.18 100.2 37.8L311.1 178C295.1 194.8 306.8 223.4 330.4 224h146.9C487.7 223.7 496 215.3 496 204.9V59.04C496 34.99 466.9 22.95 449.9 39.96zM441.8 289.6c-16.94-5.438-34.88 3.812-40.3 20.59C381.1 373.5 322.6 416 256 416c-37.96 0-73-14.18-100.2-37.8L200 334C216.9 317.2 205.2 288.6 181.6 288H34.66C24.32 288.3 16 296.7 16 307.1v145.9c0 24.04 29.07 36.08 46.07 19.07l48.5-48.53C149.5 458.8 200.6 480 255.1 480c94.45 0 177.4-60.34 206.4-150.2C467.9 313 458.6 294.1 441.8 289.6z"]},ws={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M331.8 224.1c28.29 0 54.88 10.99 74.86 30.97l19.59 19.59c40.01-17.74 71.25-53.3 81.62-96.65c5.725-23.92 5.34-47.08 .2148-68.4c-2.613-10.88-16.43-14.51-24.34-6.604l-68.9 68.9h-75.6V97.2l68.9-68.9c7.912-7.912 4.275-21.73-6.604-24.34c-21.32-5.125-44.48-5.51-68.4 .2148c-55.3 13.23-98.39 60.22-107.2 116.4C224.5 128.9 224.2 137 224.3 145l82.78 82.86C315.2 225.1 323.5 224.1 331.8 224.1zM384 278.6c-23.16-23.16-57.57-27.57-85.39-13.9L191.1 158L191.1 95.99l-127.1-95.99L0 63.1l96 127.1l62.04 .0077l106.7 106.6c-13.67 27.82-9.251 62.23 13.91 85.39l117 117.1c14.62 14.5 38.21 14.5 52.71-.0016l52.75-52.75c14.5-14.5 14.5-38.08-.0016-52.71L384 278.6zM227.9 307L168.7 247.9l-148.9 148.9c-26.37 26.37-26.37 69.08 0 95.45C32.96 505.4 50.21 512 67.5 512s34.54-6.592 47.72-19.78l119.1-119.1C225.5 352.3 222.6 329.4 227.9 307zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24S88 434.7 88 448C88 461.3 77.25 472 64 472z"]},E=(()=>{return(t=E||(E={}))[t.STATION=0]="STATION",t[t.CAMERA=1]="CAMERA",t[t.SENSOR=2]="SENSOR",t[t.FLOODLIGHT=3]="FLOODLIGHT",t[t.CAMERA_E=4]="CAMERA_E",t[t.DOORBELL=5]="DOORBELL",t[t.BATTERY_DOORBELL=7]="BATTERY_DOORBELL",t[t.CAMERA2C=8]="CAMERA2C",t[t.CAMERA2=9]="CAMERA2",t[t.MOTION_SENSOR=10]="MOTION_SENSOR",t[t.KEYPAD=11]="KEYPAD",t[t.CAMERA2_PRO=14]="CAMERA2_PRO",t[t.CAMERA2C_PRO=15]="CAMERA2C_PRO",t[t.BATTERY_DOORBELL_2=16]="BATTERY_DOORBELL_2",t[t.INDOOR_CAMERA=30]="INDOOR_CAMERA",t[t.INDOOR_PT_CAMERA=31]="INDOOR_PT_CAMERA",t[t.SOLO_CAMERA=32]="SOLO_CAMERA",t[t.SOLO_CAMERA_PRO=33]="SOLO_CAMERA_PRO",t[t.INDOOR_CAMERA_1080=34]="INDOOR_CAMERA_1080",t[t.INDOOR_PT_CAMERA_1080=35]="INDOOR_PT_CAMERA_1080",t[t.FLOODLIGHT_CAMERA_8422=37]="FLOODLIGHT_CAMERA_8422",t[t.FLOODLIGHT_CAMERA_8423=38]="FLOODLIGHT_CAMERA_8423",t[t.FLOODLIGHT_CAMERA_8424=39]="FLOODLIGHT_CAMERA_8424",t[t.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT=44]="INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT",t[t.INDOOR_OUTDOOR_CAMERA_2K=45]="INDOOR_OUTDOOR_CAMERA_2K",t[t.INDOOR_OUTDOOR_CAMERA_1080P=46]="INDOOR_OUTDOOR_CAMERA_1080P",t[t.LOCK_BLE=50]="LOCK_BLE",t[t.LOCK_WIFI=51]="LOCK_WIFI",t[t.LOCK_BLE_NO_FINGER=52]="LOCK_BLE_NO_FINGER",t[t.LOCK_WIFI_NO_FINGER=53]="LOCK_WIFI_NO_FINGER",t[t.LOCK_8503=54]="LOCK_8503",t[t.LOCK_8530=55]="LOCK_8530",t[t.LOCK_85A3=56]="LOCK_85A3",t[t.LOCK_8592=57]="LOCK_8592",t[t.LOCK_8504=58]="LOCK_8504",t[t.SOLO_CAMERA_SPOTLIGHT_1080=60]="SOLO_CAMERA_SPOTLIGHT_1080",t[t.SOLO_CAMERA_SPOTLIGHT_2K=61]="SOLO_CAMERA_SPOTLIGHT_2K",t[t.SOLO_CAMERA_SPOTLIGHT_SOLAR=62]="SOLO_CAMERA_SPOTLIGHT_SOLAR",t[t.SMART_DROP=90]="SMART_DROP",t[t.BATTERY_DOORBELL_PLUS=91]="BATTERY_DOORBELL_PLUS",t[t.DOORBELL_SOLO=93]="DOORBELL_SOLO",t[t.INDOOR_COST_DOWN_CAMERA=100]="INDOOR_COST_DOWN_CAMERA",t[t.CAMERA_GUN=101]="CAMERA_GUN",t[t.CAMERA_SNAIL=102]="CAMERA_SNAIL",t[t.CAMERA_FG=110]="CAMERA_FG",t[t.SMART_SAFE_7400=140]="SMART_SAFE_7400",t[t.SMART_SAFE_7401=141]="SMART_SAFE_7401",t[t.SMART_SAFE_7402=142]="SMART_SAFE_7402",t[t.SMART_SAFE_7403=143]="SMART_SAFE_7403",E;var t})();class T8{static isDoorbell(n){return n===E.DOORBELL||n===E.BATTERY_DOORBELL||n===E.BATTERY_DOORBELL_2||n===E.BATTERY_DOORBELL_PLUS||n===E.DOORBELL_SOLO}static isCamera(n){return n===E.CAMERA||n===E.CAMERA2||n===E.CAMERA_E||n===E.CAMERA2C||n===E.INDOOR_CAMERA||n===E.INDOOR_PT_CAMERA||n===E.FLOODLIGHT||n===E.DOORBELL||n===E.BATTERY_DOORBELL||n===E.BATTERY_DOORBELL_2||n===E.BATTERY_DOORBELL_PLUS||n===E.DOORBELL_SOLO||n===E.CAMERA2C_PRO||n===E.CAMERA2_PRO||n===E.INDOOR_CAMERA_1080||n===E.INDOOR_PT_CAMERA_1080||n===E.SOLO_CAMERA||n===E.SOLO_CAMERA_PRO||n===E.SOLO_CAMERA_SPOTLIGHT_1080||n===E.SOLO_CAMERA_SPOTLIGHT_2K||n===E.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===E.INDOOR_OUTDOOR_CAMERA_1080P||n===E.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===E.INDOOR_OUTDOOR_CAMERA_2K||n===E.INDOOR_COST_DOWN_CAMERA||n===E.FLOODLIGHT_CAMERA_8422||n===E.FLOODLIGHT_CAMERA_8423||n===E.FLOODLIGHT_CAMERA_8424}static supportsRTSP(n){return n===E.CAMERA||n===E.CAMERA2||n===E.CAMERA2C||n===E.CAMERA2C_PRO||n===E.CAMERA_E||n===E.INDOOR_CAMERA||n===E.INDOOR_CAMERA_1080||n===E.INDOOR_OUTDOOR_CAMERA_1080P||n===E.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===E.INDOOR_OUTDOOR_CAMERA_2K||n===E.INDOOR_PT_CAMERA||n===E.INDOOR_PT_CAMERA_1080||n===E.INDOOR_COST_DOWN_CAMERA||n===E.FLOODLIGHT_CAMERA_8423}static supportsTalkback(n){return n===E.CAMERA2||n===E.CAMERA2C||n===E.CAMERA2C_PRO||n===E.CAMERA2_PRO||n===E.DOORBELL||n===E.BATTERY_DOORBELL||n===E.BATTERY_DOORBELL_2||n===E.BATTERY_DOORBELL_PLUS||n===E.DOORBELL_SOLO||n===E.INDOOR_CAMERA||n===E.INDOOR_CAMERA_1080||n===E.INDOOR_OUTDOOR_CAMERA_1080P||n===E.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===E.INDOOR_OUTDOOR_CAMERA_2K||n===E.INDOOR_PT_CAMERA||n===E.INDOOR_PT_CAMERA_1080||n===E.INDOOR_COST_DOWN_CAMERA||n===E.SOLO_CAMERA||n===E.SOLO_CAMERA_PRO||n===E.SOLO_CAMERA_SPOTLIGHT_1080||n===E.SOLO_CAMERA_SPOTLIGHT_2K||n===E.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===E.FLOODLIGHT||n===E.FLOODLIGHT_CAMERA_8422||n===E.FLOODLIGHT_CAMERA_8423||n===E.FLOODLIGHT_CAMERA_8424}}var G5=(()=>{return(t=G5||(G5={}))[t.CHARGING=1]="CHARGING",t[t.UNPLUGGED=2]="UNPLUGGED",t[t.PLUGGED=3]="PLUGGED",t[t.SOLAR_CHARGING=4]="SOLAR_CHARGING",G5;var t})();const Bs=new Map([[E.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[E.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[E.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[E.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[E.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[E.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[E.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[E.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[E.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[E.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[E.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[E.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[E.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[E.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[E.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[E.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[E.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[E.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[E.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[E.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[E.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[E.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[E.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[E.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[E.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[E.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[E.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[E.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[E.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[E.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[E.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[E.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[E.SMART_DROP,{image:"unknown.png",padding:"20px"}],[E.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[E.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[E.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[E.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[E.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[E.CAMERA_FG,{image:"unknown.png",padding:"20px"}],[E.SMART_SAFE_7400,{image:"unknown.png",padding:"20px"}],[E.SMART_SAFE_7401,{image:"unknown.png",padding:"20px"}],[E.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[E.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}]]);let O2=(()=>{class t extends EventTarget{constructor(){super(),this.stations=[],this.devices=[],this.accessories$=p3(window.homebridge,"addAccessory"),this.init()}init(){this.accessories$.subscribe(e=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(e){return this.stations.find(i=>i.uniqueId===e)}getDevice(e){return this.devices.find(i=>i.uniqueId===e)}loadStoredAccessories(){var e=this;return f2(function*(){try{const i=yield window.homebridge.request("/storedAccessories");return i.forEach(a=>{e.addAccessory(a)}),0!==i.length&&e.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==i.length)}catch(i){return Promise.reject(i)}})()}addAccessory(e){const i=e.station?this.stations:this.devices;i.find(a=>a.uniqueId===e.uniqueId)||i.push(e)}getConfig(){var e=this;return f2(function*(){return e.config?Promise.resolve(e.config):e.getPlatformConfig()})()}updateConfig(e,i){var a=this;return f2(function*(){try{yield window.homebridge.updatePluginConfig([e]),a.config=e,i&&(yield window.homebridge.savePluginConfig()),a.dispatchEvent(new Event("configChanged"))}catch(r){console.log("There was an error updating the credentials in your config: "+r)}})()}getPlatformConfig(){var e=this;return f2(function*(){try{const i=yield window.homebridge.getPluginConfig();return i.length>0?(e.config=i[0],e.config.platform="EufySecurity",Promise.resolve(i[0])):Promise.reject("Could not get Platform config")}catch(i){return Promise.reject(i)}})()}getCachedName(e){return f2(function*(){let a;return(yield window.homebridge.getCachedAccessories()).forEach(r=>{r.context&&r.context.device&&r.context.device.uniqueId===e.uniqueId&&r.context.device.station===e.station&&(a=r.context.device.displayName)}),Promise.resolve(a)})()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Df2(t,n){if(1&t){const e=w1();p(0,"div",2)(1,"h4",3),_(2,"Refresh stations and devices"),g(),p(3,"button",4),A("click",function(){return F(e).$implicit.dismiss("Cross click")}),g()(),p(4,"div",5)(5,"div",6),_(6," To refresh all stations and devices you will be logged into your eufy account. This can interfere with the plugins connection to the eufy cloud. "),T(7,"p"),p(8,"b",7),_(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),g(),T(10,"p"),_(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),p(12,"a",8),_(13,"here"),g(),_(14," for more information). "),g()(),p(15,"div",9)(16,"a",10),A("click",function(){return F(e).$implicit.close("Login")}),_(17,"Login with eufy"),g()()}}function xf2(t,n){1&t&&(p(0,"div",11)(1,"div",12),T(2,"div",13),p(3,"div",14)(4,"div",15)(5,"div",16),_(6," Loading Accessories... "),p(7,"div",17),T(8,"div",18),g()()()(),T(9,"div",13),g()())}function Nf2(t,n){if(1&t&&(p(0,"span",42),T(1,"fa-icon",43),g()),2&t){const e=D(3);v(1),M("icon",e.ignoreIcon)}}function Tf2(t,n){if(1&t&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),T(5,"img",36),p(6,"span",37),T(7,"fa-icon",38),g(),k(8,Nf2,2,1,"span",39),g()()()(),p(9,"span",40),_(10),g(),p(11,"span",41),_(12),g()()),2&t){const e=n.$implicit,i=D(2);let a;v(3),h5("routerLink","/stationConfig/",e.uniqueId,""),v(2),M("src","assets/devices/"+(i.DeviceImage.get(e.type)?null==(a=i.DeviceImage.get(e.type))?null:a.image:"unknown.png"),Je),B("style",i.getDevicePanelStyle(e),E4),v(2),M("icon",i.settingsIcon),v(1),M("ngIf",e.ignored),v(2),ee(e.cachedName?e.cachedName:e.displayName),v(2),R3("(",e.uniqueId,")")}}function Ef2(t,n){if(1&t&&(p(0,"span",42),T(1,"fa-icon",43),g()),2&t){const e=D(3);v(1),M("icon",e.ignoreIcon)}}function Af2(t,n){if(1&t&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),T(5,"img",36),p(6,"span",37),T(7,"fa-icon",38),g(),k(8,Ef2,2,1,"span",39),g()()()(),p(9,"span",40),_(10),g(),p(11,"span",41),_(12),g()()),2&t){const e=n.$implicit,i=D(2);let a;v(3),h5("routerLink","/cameraConfig/",e.uniqueId,""),v(2),M("src","assets/devices/"+(i.DeviceImage.get(e.type)?null==(a=i.DeviceImage.get(e.type))?null:a.image:"unknown.png"),Je),B("style",i.getDevicePanelStyle(e),E4),v(2),M("icon",i.settingsIcon),v(1),M("ngIf",e.ignored),v(2),ee(e.cachedName?e.cachedName:e.displayName),v(2),R3("(",e.uniqueId,")")}}function kf2(t,n){if(1&t){const e=w1();p(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),A("click",function(){F(e);const a=D(),r=J3(1);return a.openReloadModal(r)}),T(4,"fa-icon",22),g()(),p(5,"div",23)(6,"a",24),_(7,"Plugin Settings"),g()()(),T(8,"p"),p(9,"span"),_(10,"Click on any device below to access its settings."),g(),T(11,"p"),p(12,"div",25)(13,"div",26),_(14," Stations "),g(),p(15,"div",27)(16,"div",19),k(17,Tf2,13,7,"div",28),g()()(),T(18,"p"),p(19,"div",25)(20,"div",26),_(21," Devices "),g(),p(22,"div",29)(23,"div",19),k(24,Af2,13,7,"div",28),g()()(),T(25,"p"),p(26,"span")(27,"i"),_(28,"The images used above are 'best effort' for now, since we do not own every eufy device. If you experience that your device is depicted with a wrong image please feel free to let us know in an issue on our "),p(29,"a",30),_(30,"Github page."),g()()()()}if(2&t){const e=D();v(4),M("icon",e.reloadIcon),v(13),M("ngForOf",e.stations),v(7),M("ngForOf",e.devices)}}let If2=(()=>{class t{constructor(e,i,a,r){this.modalService=e,this.pluginService=i,this.route=a,this.routerService=r,this.stations=[],this.devices=[],this.settingsIcon=ws,this.ignoreIcon=xy,this.reloadIcon=Vs,this.DeviceImage=Bs,this.closeResult=""}ngOnInit(){this.waitForAccessories="true"===this.route.snapshot.paramMap.get("waitForAccessories"),this.pluginService.addEventListener("newAccessories",()=>{console.log("plugin accessories have changed. updating..."),this.updateDevices(),this.updateStations()}),this.updateStations(),this.updateDevices(),!this.waitForAccessories&&0===this.stations.length&&0===this.devices.length&&this.pluginService.loadStoredAccessories().then(e=>{e||this.routerService.navigateByUrl("/login")}).catch(e=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var e=this;return f2(function*(){const i=yield e.pluginService.getConfig();Array.isArray(i.ignoreStations)&&e.stations.forEach(a=>{a.ignored=void 0!==i.ignoreStations.find(r=>r===a.uniqueId)}),Array.isArray(i.ignoreDevices)&&e.devices.forEach(a=>{a.ignored=void 0!==i.ignoreDevices.find(r=>r===a.uniqueId)}),e.stations.forEach(a=>{e.pluginService.getCachedName(a).then(r=>a.cachedName=r)}),e.devices.forEach(a=>{e.pluginService.getCachedName(a).then(r=>a.cachedName=r)})})()}openReloadModal(e){this.modalService.open(e,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(e){return e===g6.ESC?"by pressing ESC":e===g6.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${e}`}getDevicePanelStyle(e){var i;let a="";return e.ignored&&(a+="opacity: 0.2;"),Bs.get(e.type)?a+="padding:"+(null===(i=Bs.get(e.type))||void 0===i?void 0:i.padding):a+="padding:20px",a}}return t.\u0275fac=function(e){return new(e||t)(b(xg),b(O2),b(he),b(e3))},t.\u0275cmp=n2({type:t,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},decls:4,vars:2,consts:[["reloadModal",""],["class","container",4,"ngIf"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[2,"color","#dc3545"],["href","https://github.com/homebridge-eufy-security/plugin/issues/59#issuecomment-1147314942","target","_blank","rel","noopener noreferrer"],[1,"modal-footer"],["routerLink","/login",1,"btn","btn-success",3,"click"],[1,"container"],[1,"row","pl-5","pr-5"],[1,"col",2,"max-width","20%"],[1,"col","d-flex","justify-content-center"],[1,"card","shadow-sm","text-center","pt-3","pb-3",2,"width","100%"],[1,"mx-auto"],[1,"progress",2,"height","8px"],["role","progressbar","aria-valuenow","75","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-info","progress-bar-animated",2,"width","75%"],[1,"row"],[1,"col-6"],["type","button",1,"btn","btn-success",3,"click"],["size","lg",3,"icon"],[1,"col-6","text-end"],["routerLink","/advancedConfig",1,"btn","btn-secondary"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-0"],["class","col-6 col-sm-4 mt-3 mb-3 d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-body"],["href","https://github.com/homebridge-eufy-security/plugin","target","_blank","rel","noopener noreferrer"],[1,"col-6","col-sm-4","mt-3","mb-3","d-flex","flex-column","align-items-center"],[1,"col-12","col-sm-7"],[1,"text-center"],[2,"color","black",3,"routerLink"],[1,"device","ratio","ratio-1x1","border","rounded","shadow-sm"],[1,"deviceimage",3,"src"],[1,"devicesettingsicon","d-flex","border","align-items-center","justify-content-center",2,"z-index","15"],["size","2x",3,"icon"],["class","d-flex border align-items-top justify-content-end","style","z-index: 20;",4,"ngIf"],[1,"col-12","text-center"],[1,"col-12","serial","fw-light","text-center"],[1,"d-flex","border","align-items-top","justify-content-end",2,"z-index","20"],["size","xs",1,"mt-sm-1","m-sm-2","m-1","mt-0",3,"icon"]],template:function(e,i){1&e&&(k(0,Df2,18,0,"ng-template",null,0,X3),k(2,xf2,10,0,"div",1),k(3,kf2,31,3,"div",1)),2&e&&(v(2),M("ngIf",0===i.stations.length&&0===i.devices.length),v(1),M("ngIf",0!==i.stations.length||0!==i.devices.length))},directives:[pe,m1,H9,ae],styles:[".device[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#ffc107!important;color:#ffc107}.device[_ngcontent-%COMP%]{background-color:#fff!important;color:#000!important}.device[_ngcontent-%COMP%]:hover .deviceimage[_ngcontent-%COMP%]{opacity:.5}.device[_ngcontent-%COMP%] .devicesettingsicon[_ngcontent-%COMP%]{display:none!important}.device[_ngcontent-%COMP%]:hover .devicesettingsicon[_ngcontent-%COMP%]{display:flex!important;color:#ffa000!important}.serial[_ngcontent-%COMP%]{font-size:12px}"]}),t})(),Of2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["app-edit-credentials"]],decls:6,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],[1,"mb-3","mb-sm-0"],["routerLink","/login",1,"btn","btn-secondary","col-12","col-sm-4"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Change username, password and country"),g(),p(4,"a",3),_(5,"New Login"),g()()())},directives:[pe],encapsulation:2}),t})();class o1{constructor(n){this.pluginService=n,this.config={},this.pluginService.getConfig().then(e=>{this.config=e}).catch(e=>console.log("Could not get config in config interpreter: "+e))}getCameraConfig(n){var e=this;return f2(function*(){const i=yield e.pluginService.getConfig();return Array.isArray(i.cameras)?Promise.resolve(i.cameras.find(a=>a.serialNumber===n)):Promise.resolve(void 0)})()}getStationConfig(n){var e=this;return f2(function*(){const i=yield e.pluginService.getConfig();return Array.isArray(i.stations)?Promise.resolve(i.stations.find(a=>a.serialNumber===n)):Promise.resolve(void 0)})()}updateConfig(n,e){var i=this;return f2(function*(){let a=yield i.pluginService.getConfig();if(e||(a=Object.assign(Object.assign({},a),n)),e&&!1===e.station){Array.isArray(a.cameras)||(a.cameras=[]);let r=-1;a.cameras.forEach((o,s)=>{o.serialNumber===e.uniqueId&&(r=s)}),r>=0?a.cameras[r]=Object.assign(Object.assign({},a.cameras[r]),n):a.cameras.push(Object.assign({serialNumber:e.uniqueId},n))}else if(e&&!0===e.station){Array.isArray(a.stations)||(a.stations=[]);let r=-1;a.stations.forEach((o,s)=>{o.serialNumber===e.uniqueId&&(r=s)}),r>=0?a.stations[r]=Object.assign(Object.assign({},a.stations[r]),n):a.stations.push(Object.assign({serialNumber:e.uniqueId},n))}i.pluginService.updateConfig(a)})()}}let Rf2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"preferLocalConnection")&&(this.value=this.config.preferLocalConnection)}update(){this.updateConfig({preferLocalConnection:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-prefer-local"]],features:[Z],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Prefer Local Connection"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," This setting only affects the way the plugin tries to connect to your eufy stations and devices (Default: trying local and via public ip). "),p(9,"b"),_(10,"You will still need an active internet connection to establish a connection in the first place, even if you enable this setting."),g()()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})(),Pf2=(()=>{class t extends o1{constructor(e){super(e),this.value=10,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"pollingIntervalMinutes")&&(this.value=this.config.pollingIntervalMinutes)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({pollingIntervalMinutes:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-polling-interval-minutes"]],features:[Z],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3","pb-0"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Polling Interval"),g(),p(4,"div",2)(5,"div",3)(6,"input",4),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g(),p(7,"div",5)(8,"span",6),_(9,"minutes"),g()()()()(),p(10,"small")(11,"i"),_(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),g()()()),2&e&&(v(6),M("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[H5,xe,a1,e1],encapsulation:2}),t})(),Ff2=(()=>{class t extends o1{constructor(e){super(e),this.value=30,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"CameraMaxLivestreamDuration")&&(this.value=this.config.CameraMaxLivestreamDuration)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({CameraMaxLivestreamDuration:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-livestream-duration-seconds"]],features:[Z],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Maximum Livestream Duration"),g(),p(4,"div",2)(5,"div",3)(6,"input",4),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g(),p(7,"div",5)(8,"span",6),_(9,"seconds"),g()()()()(),p(10,"small")(11,"i"),_(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),g()()()),2&e&&(v(6),M("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[H5,xe,a1,e1],encapsulation:2}),t})(),Bf2=(()=>{class t extends o1{constructor(e){super(e),this.model=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"enableDetailedLogging")&&(this.model=this.config.enableDetailedLogging)}update(){this.updateConfig({enableDetailedLogging:this.model})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-enable-detailed-logging"]],features:[Z],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Debug Mode"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.model=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),g()()()),2&e&&(v(5),M("ngModel",i.model))},directives:[U1,a1,e1],encapsulation:2}),t})(),Uf2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"omitLogFiles")&&(this.value=this.config.omitLogFiles)}update(){this.updateConfig({omitLogFiles:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-omit-log-files"]],features:[Z],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Don't store log files"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),g()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})(),Gf2=(()=>{class t extends o1{constructor(e){super(e),this.model=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"cleanCache")&&(this.model=this.config.cleanCache)}update(){this.updateConfig({cleanCache:this.model})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-clean-cache"]],features:[Z],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Clean cache automatically"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.model=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),g()()()),2&e&&(v(5),M("ngModel",i.model))},directives:[U1,a1,e1],encapsulation:2}),t})();function jf2(t,n){1&t&&(p(0,"span"),_(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),g())}function $f2(t,n){1&t&&(p(0,"option",6),_(1,"Use global setting"),g()),2&t&&M("ngValue",void 0)}function Wf2(t,n){1&t&&(p(0,"option",6),_(1,"Use global setting"),g()),2&t&&M("ngValue",void 0)}function qf2(t,n){1&t&&(p(0,"option",6),_(1,"Use global setting"),g()),2&t&&M("ngValue",void 0)}function Kf2(t,n){1&t&&(p(0,"option",6),_(1,"Use global setting"),g()),2&t&&M("ngValue",void 0)}let Yf2=(()=>{class t extends o1{constructor(e){super(e),this.hkHome=void 0,this.hkAway=void 0,this.hkNight=void 0,this.hkOff=void 0}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){const i=e.accessory?yield e.getStationConfig(e.accessory.uniqueId):yield e.pluginService.getConfig();i&&Object.prototype.hasOwnProperty.call(i,"hkHome")?e.hkHome=i.hkHome:e.accessory||(e.hkHome=1),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?e.hkAway=i.hkAway:e.accessory||(e.hkAway=0),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?e.hkNight=i.hkNight:e.accessory||(e.hkNight=3),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?e.hkOff=i.hkOff:e.accessory||(e.hkOff=63)})()}update(){var e=this;return f2(function*(){let i=e.accessory?yield e.getStationConfig(e.accessory.uniqueId):yield e.pluginService.getConfig();void 0===i&&(i={}),void 0===e.hkHome&&Object.prototype.hasOwnProperty.call(i,"hkHome")?delete i.hkHome:i.hkHome=e.hkHome,void 0===e.hkAway&&Object.prototype.hasOwnProperty.call(i,"hkAway")?delete i.hkAway:i.hkAway=e.hkAway,void 0===e.hkNight&&Object.prototype.hasOwnProperty.call(i,"hkNight")?delete i.hkNight:i.hkNight=e.hkNight,void 0===e.hkOff&&Object.prototype.hasOwnProperty.call(i,"hkOff")?delete i.hkOff:i.hkOff=e.hkOff;let a=yield e.pluginService.getConfig();if(e.accessory){Array.isArray(a.stations)||(a.stations=[]);let r=-1;a.stations.forEach((o,s)=>{var c;o.serialNumber===(null===(c=e.accessory)||void 0===c?void 0:c.uniqueId)&&(r=s)}),r>=0?a.stations[r]=i:(i.serialNumber=e.accessory.uniqueId,a.stations.push(i))}else a=i;e.pluginService.updateConfig(a)})()}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[Z],decls:90,vars:41,consts:[[1,"settingsItem","row","p-3"],[4,"ngIf"],[1,"input-group","mb-1"],["for","inputGroupSelect01",1,"input-group-text","w-25"],["id","inputGroupSelect01",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngIf"],[3,"ngValue"],["for","inputGroupSelect02",1,"input-group-text","w-25"],["id","inputGroupSelect02",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect03",1,"input-group-text","w-25"],["id","inputGroupSelect03",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect04",1,"input-group-text","w-25"],["id","inputGroupSelect04",1,"form-select",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"span"),_(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),g(),T(3,"p"),k(4,jf2,2,0,"span",1),T(5,"p"),p(6,"div",2)(7,"label",3),_(8,"HomeKit Home"),g(),p(9,"select",4),A("ngModelChange",function(r){return i.hkHome=r})("change",function(){return i.update()}),k(10,$f2,2,1,"option",5),p(11,"option",6),_(12,"Eufy Home"),g(),p(13,"option",6),_(14,"Eufy Away"),g(),p(15,"option",6),_(16,"Eufy Schedule"),g(),p(17,"option",6),_(18,"Eufy Custom 1 (Night)"),g(),p(19,"option",6),_(20,"Eufy Custom 2"),g(),p(21,"option",6),_(22,"Eufy Custom 3"),g(),p(23,"option",6),_(24,"Eufy Geofencing"),g(),p(25,"option",6),_(26,"Eufy Disarmed"),g()()(),p(27,"div",2)(28,"label",7),_(29,"HomeKit Away"),g(),p(30,"select",8),A("ngModelChange",function(r){return i.hkAway=r})("change",function(){return i.update()}),k(31,Wf2,2,1,"option",5),p(32,"option",6),_(33,"Eufy Home"),g(),p(34,"option",6),_(35,"Eufy Away"),g(),p(36,"option",6),_(37,"Eufy Schedule"),g(),p(38,"option",6),_(39,"Eufy Custom 1 (Night)"),g(),p(40,"option",6),_(41,"Eufy Custom 2"),g(),p(42,"option",6),_(43,"Eufy Custom 3"),g(),p(44,"option",6),_(45,"Eufy Geofencing"),g(),p(46,"option",6),_(47,"Eufy Disarmed"),g()()(),p(48,"div",2)(49,"label",9),_(50,"HomeKit Night"),g(),p(51,"select",10),A("ngModelChange",function(r){return i.hkNight=r})("change",function(){return i.update()}),k(52,qf2,2,1,"option",5),p(53,"option",6),_(54,"Eufy Home"),g(),p(55,"option",6),_(56,"Eufy Away"),g(),p(57,"option",6),_(58,"Eufy Schedule"),g(),p(59,"option",6),_(60,"Eufy Custom 1 (Night)"),g(),p(61,"option",6),_(62,"Eufy Custom 2"),g(),p(63,"option",6),_(64,"Eufy Custom 3"),g(),p(65,"option",6),_(66,"Eufy Geofencing"),g(),p(67,"option",6),_(68,"Eufy Disarmed"),g()()(),p(69,"div",2)(70,"label",11),_(71,"HomeKit Off"),g(),p(72,"select",12),A("ngModelChange",function(r){return i.hkOff=r})("change",function(){return i.update()}),k(73,Kf2,2,1,"option",5),p(74,"option",6),_(75,"Eufy Home"),g(),p(76,"option",6),_(77,"Eufy Away"),g(),p(78,"option",6),_(79,"Eufy Schedule"),g(),p(80,"option",6),_(81,"Eufy Custom 1 (Night)"),g(),p(82,"option",6),_(83,"Eufy Custom 2"),g(),p(84,"option",6),_(85,"Eufy Custom 3"),g(),p(86,"option",6),_(87,"Eufy Geofencing"),g(),p(88,"option",6),_(89,"Eufy Disarmed"),g()()()()),2&e&&(v(4),M("ngIf",i.accessory),v(5),M("ngModel",i.hkHome),v(1),M("ngIf",i.accessory),v(1),M("ngValue",1),v(2),M("ngValue",0),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngValue",4),v(2),M("ngValue",5),v(2),M("ngValue",47),v(2),M("ngValue",63),v(5),M("ngModel",i.hkAway),v(1),M("ngIf",i.accessory),v(1),M("ngValue",1),v(2),M("ngValue",0),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngValue",4),v(2),M("ngValue",5),v(2),M("ngValue",47),v(2),M("ngValue",63),v(5),M("ngModel",i.hkNight),v(1),M("ngIf",i.accessory),v(1),M("ngValue",1),v(2),M("ngValue",0),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngValue",4),v(2),M("ngValue",5),v(2),M("ngValue",47),v(2),M("ngValue",63),v(5),M("ngModel",i.hkOff),v(1),M("ngIf",i.accessory),v(1),M("ngValue",1),v(2),M("ngValue",0),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngValue",4),v(2),M("ngValue",5),v(2),M("ngValue",47),v(2),M("ngValue",63))},directives:[m1,Ae,a1,e1,w5,z5],encapsulation:2}),t})();var Qf2=s1(172);function Zf2(t,n){if(1&t&&(p(0,"div",7),_(1),g()),2&t){const e=D();v(1),R3(" ",e.failureMessage," ")}}function Jf2(t,n){1&t&&T(0,"span",10)}function Xf2(t,n){1&t&&(p(0,"span"),_(1,"Download Logs"),g())}function eu2(t,n){1&t&&(p(0,"span"),_(1," Generating Log File..."),g())}function tu2(t,n){if(1&t){const e=w1();p(0,"button",8),A("click",function(){return F(e),D().downloadLogs()}),k(1,Jf2,1,0,"span",9),k(2,Xf2,2,0,"span",6),k(3,eu2,2,0,"span",6),g()}if(2&t){const e=D();B("disabled",!!e.isDownloading||null),v(1),M("ngIf",e.isDownloading),v(1),M("ngIf",!e.isDownloading),v(1),M("ngIf",e.isDownloading)}}function nu2(t,n){if(1&t){const e=w1();p(0,"a",11),A("click",function(){return F(e),D().openLink()}),p(1,"span"),_(2,"Download Logs"),g()()}}function iu2(t,n){if(1&t&&(p(0,"small")(1,"i"),_(2),g()()),2&t){const e=D();v(2),R3(" ",e.downloadMessage," ")}}function au2(t,n){1&t&&(p(0,"small")(1,"i"),_(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),T(3,"br"),p(4,"b"),_(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),p(6,"a",12),_(7,"site"),g(),_(8," can help."),g()()())}let ru2=(()=>{class t{constructor(e,i){this.router=e,this.zone=i,this.failed=!1,this.isDownloading=!1,this.hasDownloaded=!1,this.failureMessage="",this.logFileLocation=""}ngOnInit(){this.routeSub=this.router.events.subscribe(e=>{e instanceof Y0&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",e=>{this.updateDownloadMessage(`Compressing ${e.data.numberOfFiles} log files...`)})}downloadLogs(){var e=this;return f2(function*(){try{e.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),a=Qf2.lW.from(i.data),r=new File([a],"logs.zip",{type:"application/zip"}),o=window.URL.createObjectURL(r);e.logFileLocation=o,window.open(e.logFileLocation),e.updateDownloadMessage(void 0),e.hasDownloaded=!0}catch(i){console.log(i);const a=i;e.failed=!0,e.updateDownloadMessage(void 0),e.failureMessage=`Generating of compressed logs.zip file did not complete: ${a.message}`}finally{e.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(e){this.zone.run(()=>{this.downloadMessage=e})}}return t.\u0275fac=function(e){return new(e||t)(b(e3),b(F2))},t.\u0275cmp=n2({type:t,selectors:[["app-download-logs"]],decls:9,vars:5,consts:[[1,"settingsItem","row","p-3"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["type","button","class","btn btn-secondary col-12 col-sm-4",3,"click",4,"ngIf"],["class","btn btn-success col-12 col-sm-4",3,"click",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-secondary","col-12","col-sm-4",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"btn","btn-success","col-12","col-sm-4",3,"click"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(e,i){1&e&&(p(0,"div",0),k(1,Zf2,2,1,"div",1),p(2,"div",2)(3,"span",3),_(4,"Download Logs"),g(),k(5,tu2,4,4,"button",4),k(6,nu2,3,0,"a",5),g(),k(7,iu2,3,1,"small",6),k(8,au2,9,0,"small",6),g()),2&e&&(v(1),M("ngIf",i.failed),v(4),M("ngIf",!i.hasDownloaded),v(1),M("ngIf",i.hasDownloaded),v(1),M("ngIf",i.downloadMessage),v(1),M("ngIf",i.hasDownloaded))},directives:[m1],encapsulation:2}),t})(),ou2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["app-reset-plugin"]],decls:9,vars:0,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["routerLink","/reset",1,"btn","btn-danger","col-12","col-sm-4"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Reset Plugin"),g(),p(4,"a",3),_(5,"Remove everything"),g()(),p(6,"small")(7,"i"),_(8," This will delete the plugin settings and files. Please be aware that this will not delete any cached accessories from homebridge. You'll have to remove these manually via the homebridge UI. "),g()()())},directives:[pe],encapsulation:2}),t})();function su2(t,n){1&t&&(p(0,"div",5),_(1," Please be advised that we are not reliable for any side effects occur while you try experimental settings."),T(2,"p"),_(3," Also take care to deactivate every experimental setting before disabling 'Experimental Mode'. Just disabling this option, "),p(4,"b"),_(5,"will not"),g(),_(6," return your devices to the default configuration! (e.g. if you enable rtsp streaming on a doorbell, disable it on the device settings before disabling 'Experimental Mode'). "),g())}let cu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"experimentalMode")&&(this.value=this.config.experimentalMode)}update(){this.updateConfig({experimentalMode:this.value})}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-experimental-mode"]],features:[Z],decls:10,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-warning","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Experimental Mode"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,su2,7,0,"div",4),p(7,"small")(8,"i"),_(9," When enabled, the plugin allows you to change specific behaviour of some eufy devices. For example you can try to enable RTSP streaming on Doorbells (which usually don't support RTSP streaming). "),g()()()),2&e&&(v(5),M("ngModel",i.value),v(1),M("ngIf",i.value))},directives:[U1,a1,e1,m1],encapsulation:2}),t})(),lu2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n2({type:t,selectors:[["app-advanced-config-options"]],decls:27,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"]],template:function(e,i){1&e&&(p(0,"a",0),_(1,"Back to Devices List"),g(),p(2,"div",1)(3,"div",2),_(4," Advanced Settings "),g(),p(5,"div",3),T(6,"app-edit-credentials")(7,"hr")(8,"app-prefer-local")(9,"hr")(10,"app-polling-interval-minutes")(11,"hr")(12,"app-livestream-duration-seconds")(13,"hr")(14,"app-enable-detailed-logging")(15,"hr")(16,"app-omit-log-files")(17,"hr")(18,"app-clean-cache")(19,"hr")(20,"app-guard-modes-mapping")(21,"hr")(22,"app-download-logs")(23,"hr")(24,"app-reset-plugin")(25,"hr")(26,"app-experimental-mode"),g()())},directives:[pe,Of2,Rf2,Pf2,Ff2,Bf2,Uf2,Gf2,Yf2,ru2,ou2,cu2],encapsulation:2}),t})(),Sw=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){if(e.config=yield e.pluginService.getConfig(),e.accessory){const i=e.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(e.config[i])&&(e.value=void 0!==e.config[i].find(a=>a===e.accessory.uniqueId))}})()}update(){var e=this;return f2(function*(){if(!e.accessory)return;const i=e.accessory.station?"ignoreStations":"ignoreDevices";e.config=yield e.pluginService.getConfig(),e.value?Array.isArray(e.config[i])&&!e.config[i].find(a=>a===e.accessory.uniqueId)?e.config[i].push(e.accessory.uniqueId):Array.isArray(e.config[i])||(e.config[i]=[e.accessory.uniqueId]):Array.isArray(e.config[i])&&void 0!==e.config[i].find(a=>a===e.accessory.uniqueId)&&(e.config[i]=e.config[i].filter(a=>a!==e.accessory.uniqueId)),e.pluginService.updateConfig(e.config)})()}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[Z],decls:6,vars:2,consts:[[1,"settingsItem","row","p-3","pb-1"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()()()),2&e&&(v(3),R3("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),v(2),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function Cu2(t,n){1&t&&(p(0,"small")(1,"i"),_(2," This option is disabled since doorbells are handled always as cameras. "),g()())}function fu2(t,n){1&t&&(p(0,"small")(1,"i"),_(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),g()())}let uu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1,this.disabled=!1}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;e.accessory&&T8.isDoorbell(e.accessory.type)&&(e.value=!0,e.disabled=!0,e.update());const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"enableCamera")&&(e.value=a.enableCamera)})()}update(){this.updateConfig({enableCamera:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[Z],decls:12,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],["value","false"],["value","true"],[4,"ngIf"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Operation Mode"),g(),p(4,"div",2)(5,"select",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p(6,"option",4),_(7,"Motion Sensor"),g(),p(8,"option",5),_(9,"Camera"),g()()()(),k(10,Cu2,3,0,"small",6),k(11,fu2,3,0,"small",6),g()),2&e&&(v(5),M("ngModel",i.value),B("disabled",!!i.disabled||null),v(5),M("ngIf",i.disabled),v(1),M("ngIf",!i.disabled))},directives:[Ae,a1,e1,w5,z5,m1],encapsulation:2}),t})();function du2(t,n){1&t&&(p(0,"div",5),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),g())}let hu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1,this.talkbackIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"rtsp")&&(e.value=a.rtsp),a&&Object.prototype.hasOwnProperty.call(a,"talkback")&&(e.talkbackIsEnabled=a.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[Z],decls:11,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Use RTSP streaming"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,du2,2,0,"div",4),p(7,"small")(8,"i"),_(9," Try to utilize RTSP capabilities of some devices. This may result in improved streaming stability. Please be advised that RTSP must be enable within Eufy App first!"),T(10,"br"),g()()()),2&e&&(v(5),M("ngModel",i.value),v(1),M("ngIf",i.talkbackIsEnabled&&i.value))},directives:[U1,a1,e1,m1],encapsulation:2}),t})(),pu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&a.videoConfig&&Object.prototype.hasOwnProperty.call(a.videoConfig,"audio")&&(e.value=a.videoConfig.audio)})()}update(){var e=this;return f2(function*(){var i,a;if(!e.accessory)return;let r=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");r||(r={serialNumber:null===(a=e.accessory)||void 0===a?void 0:a.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(r,"videoConfig")||(r.videoConfig={}),r.videoConfig.audio=e.value,e.updateConfig(r,e.accessory)})()}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[Z],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Audio"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," Try to enable audio streaming for this device."),T(9,"br"),_(10," If you encounter problems try to disable this setting. "),g()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function gu2(t,n){1&t&&(p(0,"div",5),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),g())}let mu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1,this.rtspIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"talkback")&&(e.value=a.talkback),a&&Object.prototype.hasOwnProperty.call(a,"rtsp")&&(e.rtspIsEnabled=a.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[Z],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Talkback (Two way communication)"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,gu2,2,0,"div",4),p(7,"small")(8,"i"),_(9," Enables you to talk with someone infront of the camera while streaming. "),T(10,"p"),_(11," Please be advised that this setting is in an early development stage. If you're experiencing issues while streaming, it is recommened to disable this setting."),T(12,"br"),g()()()),2&e&&(v(5),M("ngModel",i.value),v(1),M("ngIf",i.rtspIsEnabled&&i.value))},directives:[U1,a1,e1,m1],encapsulation:2}),t})(),vu2=(()=>{class t extends o1{constructor(e){super(e),this.enableCameraButton=!0,this.enableMotionButton=!0}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"enableButton")&&(e.enableCameraButton=a.enableButton),a&&Object.prototype.hasOwnProperty.call(a,"motionButton")&&(e.enableMotionButton=a.motionButton)})()}update(){this.updateConfig({enableButton:this.enableCameraButton,motionButton:this.enableMotionButton},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[Z],decls:17,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Display HomeKit button to switch camera on/off"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.enableCameraButton=r})("change",function(){return i.update()}),g()()(),p(6,"div",1)(7,"span"),_(8,"Display HomeKit button to switch motion detection on/off"),g(),p(9,"div",2)(10,"input",3),A("ngModelChange",function(r){return i.enableMotionButton=r})("change",function(){return i.update()}),g()()(),p(11,"small")(12,"i"),_(13," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),p(14,"a",4),_(15,"here"),g(),_(16," for more details. "),g()()()),2&e&&(v(5),M("ngModel",i.enableCameraButton),v(5),M("ngModel",i.enableMotionButton))},directives:[U1,a1,e1],encapsulation:2}),t})(),zi=(()=>{class t{getChargingStatus(e){return f2(function*(){return window.homebridge.request("/getChargingStatus",e)})()}setExperimentalRTSPStatus(e,i){return f2(function*(){return window.homebridge.request("/setExperimentalRTSP",{sn:e,value:i})})()}getExperimentalRTSPStatus(e){return f2(function*(){return window.homebridge.request("/getExperimentalRTSPStatus",e)})()}getStationsCamerasMapping(){return f2(function*(){return window.homebridge.request("/getStationDeviceMapping")})()}getCamerasOnSameStation(e,i=[]){var a=this;return f2(function*(){try{const r=yield a.getStationsCamerasMapping();for(const o of Object.values(r))if(Array.isArray(o)&&o.indexOf(e)>-1){const s=[e];for(const c of o)c!==e&&-1===i.indexOf(c)&&s.push(c);return Promise.resolve(s)}throw new Error("no valid station - devices mapping was found")}catch(r){return Promise.reject(r)}})()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function _u2(t,n){if(1&t&&(p(0,"li"),_(1),g()),2&t){const e=n.$implicit;v(1),ee(e)}}function Mu2(t,n){if(1&t&&(p(0,"div",6),_(1," There are other cameras connected through the same station as this device. One station can only ever stream from one camera at the same time. Therefore it is not possible to use HomeKit Secure Video with this camera since this would lead to conflicts."),T(2,"p"),_(3," Cameras on the same station: "),p(4,"ul"),k(5,_u2,2,1,"li",7),g()()),2&t){const e=D();v(5),M("ngForOf",e.camerasOnSameStation)}}function yu2(t,n){1&t&&(p(0,"div",6),_(1," Since your device is battery powered and currently not charging we don't recommend using this setting. The battery life will most likely decrease significantly. "),g())}function Lu2(t,n){1&t&&(p(0,"div",8),_(1," Please be advised that since your device is only solar powered we cannot guarantee optimal results with this setting. It might well be, that your battery is depleting faster than it can be recharged by the sun. This depends heavily on your exact use case. "),g())}let bu2=(()=>{class t extends o1{constructor(e,i){super(e),this.accessoryService=i,this.value=false,this.chargingStatus=G5.PLUGGED,this.camerasOnSameStation=[]}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");if(a&&Object.prototype.hasOwnProperty.call(a,"hsv")&&(e.value=a.hsv),e.accessory){e.accessoryService.getChargingStatus(e.accessory.uniqueId).then(o=>e.chargingStatus=o);const r=a&&Object.prototype.hasOwnProperty.call(a,"ignoreDevices")?a.ignoreDevices:[];e.accessoryService.getCamerasOnSameStation(e.accessory.uniqueId,r).then(o=>{e.camerasOnSameStation=o,e.camerasOnSameStation.length>1&&(e.value=!1,e.update())})}})()}update(){this.updateConfig({hsv:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(zi))},t.\u0275cmp=n2({type:t,selectors:[["app-enable-hsv"]],inputs:{accessory:"accessory"},features:[Z],decls:20,vars:5,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"],[4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-secondary"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Use HomeKit Secure Video"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,Mu2,6,1,"div",4),k(7,yu2,2,0,"div",4),k(8,Lu2,2,0,"div",5),p(9,"small")(10,"i"),_(11," This feature is in an experimental state and can have some side-effects due to technical limitations imposed by the connection to the eufy device. "),T(12,"p"),p(13,"ul")(14,"li"),_(15,"The device will record until the HomeKit-Controller cancels the recording, or up to a maximum of three minutes. However Apple analyzes the recorded video and only shows the snippets containing an actual event."),g(),p(16,"li"),_(17,"Due to the continued recording the power consumption will be higher than with the native recording through the eufy app. Keep this in mind, if you use battery powered devices."),g(),p(18,"li"),_(19,"If you use low performance hardware the recording might interfere with livestreaming. You might be able to utilize the 'copy' preset in advanced configuration to mitigate this."),g()()()()()),2&e&&(v(5),M("ngModel",i.value),B("disabled",i.camerasOnSameStation.length>1||null),v(1),M("ngIf",i.camerasOnSameStation.length>1),v(1),M("ngIf",2===i.chargingStatus&&i.value),v(1),M("ngIf",4===i.chargingStatus&&i.value))},directives:[U1,a1,e1,m1,ae],encapsulation:2}),t})(),Vu2=(()=>{class t extends o1{constructor(e){super(e),this.value=false}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"unbridge")&&(e.value=a.unbridge)})()}update(){this.updateConfig({unbridge:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-unbridge-accessory"]],inputs:{accessory:"accessory"},features:[Z],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Unbridge Camera"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),p(9,"a",4),_(10,"here"),g(),_(11," for mor details. "),g()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function Hu2(t,n){if(1&t&&(p(0,"li"),_(1),g()),2&t){const e=n.$implicit;v(1),ee(e)}}function wu2(t,n){if(1&t&&(p(0,"div",8),_(1," There are other cameras connected through the same station as this device. One station can only ever stream from one camera at the same time. Therefore it is not possible to use another snapshot method other than cloud snapshots."),T(2,"p"),_(3," Cameras on the same station: "),p(4,"ul"),k(5,Hu2,2,1,"li",9),g()()),2&t){const e=D();v(5),M("ngForOf",e.camerasOnSameStation)}}function zu2(t,n){1&t&&(p(0,"div",8)(1,"b"),_(2,"Caution!"),g(),_(3," While Force Refresh Snapshots will deliver most up-to-date snapshots, this can have negative effects on HomeKit behaviour. For example starting a livestream might be delayed as a side effect by this option. See "),p(4,"a",10),_(5,"here"),g(),_(6," for more informtaion. "),g())}function Su2(t,n){1&t&&(p(0,"div",8),_(1," Since your device is battery powered and currently not charging we don't recommend using this setting. The battery life will most likely decrease significantly. "),g())}function Du2(t,n){1&t&&(p(0,"div",11),_(1," Please be advised that since your device is only solar powered we cannot guarantee optimal results with this setting. It might well be, that your battery is depleting faster than it can be recharged by the sun. This depends heavily on your exact use case. "),g())}function xu2(t,n){if(1&t&&(p(0,"small")(1,"i")(2,"b"),_(3,"Description:"),g(),_(4," The plugin will try to get the latest possible snapshot. If none is present the plugin will start a livestream to render one frame."),T(5,"br"),_(6," This process might take a few seconds and can slow down your homebridge instance for this duration. If you encounter problems with this method please try another. "),T(7,"p")(8,"fa-icon",12),_(9," Up-to-date Snapshots (events)"),T(10,"br")(11,"fa-icon",12),_(12," Up-to-date Snapshots (HomeKit View)"),T(13,"br")(14,"fa-icon",13),_(15," Performance"),T(16,"br")(17,"fa-icon",13),_(18," Battery life"),T(19,"br"),g()()),2&t){const e=D();v(8),M("icon",e.plusIcon),v(3),M("icon",e.plusIcon),v(3),M("icon",e.minusIcon),v(3),M("icon",e.minusIcon)}}function Nu2(t,n){if(1&t&&(p(0,"small")(1,"i")(2,"b"),_(3,"Description:"),g(),_(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),T(5,"br"),_(6," After one second the snapshot will be delivered - if necessary by using an older snapshot. For events the plugin will wait on a new snapshot. "),T(7,"p")(8,"fa-icon",12),_(9," Up-to-date Snapshots (events)"),T(10,"br")(11,"fa-icon",14),_(12," Up-to-date Snapshots (HomeKit View)"),T(13,"br")(14,"fa-icon",12),_(15," Performance"),T(16,"br")(17,"fa-icon",13),_(18," Battery life"),T(19,"br"),g()()),2&t){const e=D();v(8),M("icon",e.plusIcon),v(3),M("icon",e.mediumIcon),v(3),M("icon",e.plusIcon),v(3),M("icon",e.minusIcon)}}function Tu2(t,n){if(1&t&&(p(0,"small")(1,"i")(2,"b"),_(3,"Description:"),g(),_(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),T(5,"br"),_(6," If an event, like motion or doorbell ring oocurs, the plugin will try to wait for a cloud snapshot to be provided. But the periodic snapshots in homekit will most likely be outdated (e.g. up to a few hours old). "),T(7,"p")(8,"fa-icon",12),_(9," Up-to-date Snapshots (events)"),T(10,"br")(11,"fa-icon",13),_(12," Up-to-date Snapshots (HomeKit View)"),T(13,"br")(14,"fa-icon",12),_(15," Performance"),T(16,"br")(17,"fa-icon",12),_(18," Battery life"),T(19,"br"),g()()),2&t){const e=D();v(8),M("icon",e.plusIcon),v(3),M("icon",e.minusIcon),v(3),M("icon",e.plusIcon),v(3),M("icon",e.plusIcon)}}let Eu2=(()=>{class t extends o1{constructor(e,i){super(e),this.accessoryService=i,this.plusIcon=QM,this.minusIcon=WM,this.mediumIcon=zM,this.value=3,this.chargingStatus=G5.PLUGGED,this.camerasOnSameStation=[]}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");if(a&&Object.prototype.hasOwnProperty.call(a,"snapshotHandlingMethod")?e.value=a.snapshotHandlingMethod:a&&Object.prototype.hasOwnProperty.call(a,"forcerefreshsnap")&&(e.value=a.forcerefreshsnap?1:3),e.accessory){e.accessoryService.getChargingStatus(e.accessory.uniqueId).then(o=>e.chargingStatus=o);const r=a&&Object.prototype.hasOwnProperty.call(a,"ignoreDevices")?a.ignoreDevices:[];e.accessoryService.getCamerasOnSameStation(e.accessory.uniqueId,r).then(o=>{e.camerasOnSameStation=o,e.camerasOnSameStation.length>1&&(e.value=3,e.update())})}})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(zi))},t.\u0275cmp=n2({type:t,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[Z],decls:19,vars:12,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],[4,"ngFor","ngForOf"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Streaming-Settings#streams-take-a-long-time-to-start","target","_blank","rel","noopener noreferrer"],["role","alert",1,"alert","alert-secondary"],["size","xs",1,"m-1",2,"color","#7FFF00",3,"icon"],["size","xs",1,"m-1",2,"color","#B22222",3,"icon"],["size","xs",1,"m-1",2,"color","#FF8C00",3,"icon"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Snapshot Handling Method"),g(),p(4,"div",2)(5,"select",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p(6,"option",4),_(7,"Force Refresh Snapshots"),g(),p(8,"option",4),_(9,"Balanced"),g(),p(10,"option",4),_(11,"Cloud Snapshots"),g()()()(),k(12,wu2,6,1,"div",5),k(13,zu2,7,0,"div",5),k(14,Su2,2,0,"div",5),k(15,Du2,2,0,"div",6),k(16,xu2,20,4,"small",7),k(17,Nu2,20,4,"small",7),k(18,Tu2,20,4,"small",7),g()),2&e&&(v(5),M("ngModel",i.value),B("disabled",i.camerasOnSameStation.length>1||null),v(1),M("ngValue",1),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngIf",i.camerasOnSameStation.length>1),v(1),M("ngIf",1===i.value),v(1),M("ngIf",2===i.chargingStatus&&1===i.value),v(1),M("ngIf",4===i.chargingStatus&&1===i.value),v(1),M("ngIf",1===i.value),v(1),M("ngIf",2===i.value),v(1),M("ngIf",3===i.value))},directives:[Ae,a1,e1,w5,z5,m1,ae,H9],encapsulation:2}),t})(),Au2=(()=>{class t extends o1{constructor(e){super(e),this.value=false}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"immediateRingNotificationWithoutSnapshot")&&(e.value=a.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[Z],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Immediate Notification on ring events"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," In general Homekit will try to get a snapshot to show it in it's push notifications. Since the process to genereate a snapshot takes some time the push notification will be delayed by this time difference. This option allows to generate an empty snapshot on ringing events to speed up the push notification. This can safe up to 10 seconds between the event and the corresponding notification on your device."),T(9,"br"),p(10,"b"),_(11,"This option however delivers most likely an empty (black) snapshot on those events!"),g()()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})(),ku2=(()=>{class t extends o1{constructor(e){super(e),this.value=false}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"delayCameraSnapshot")&&(e.value=a.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[Z],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Night-Vision Improvement for camera snapshots"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," Force night vision on dark snapshots to improve the image."),T(9,"br"),p(10,"b"),_(11,"The snapshot request will be delayed by half a second if you enable this setting."),g()()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function Iu2(t,n){1&t&&(p(0,"div",12),_(1," Since your device is battery powered and currently not charging we don't recommend using this setting. The battery life will most likely decrease significantly. "),g())}function Ou2(t,n){1&t&&(p(0,"div",13),_(1," Please be advised that since your device is only solar powered we cannot guarantee optimal results with this setting. It might well be, that your battery is depleting faster than it can be recharged by the sun. This depends heavily on your exact use case. "),g())}let Ru2=(()=>{class t extends o1{constructor(e,i){super(e),this.accessoryService=i,this.value=0,this.inputIsInvalid=!1,this.chargingStatus=G5.PLUGGED}ngOnInit(){this.readValue(),this.accessory&&this.accessoryService.getChargingStatus(this.accessory.uniqueId).then(e=>this.chargingStatus=e)}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"refreshSnapshotIntervalMinutes")&&(e.value=a.refreshSnapshotIntervalMinutes)})()}switchSetting(){this.value=0===this.value?30:0,this.update()}update(){!this.validate()||this.updateConfig({refreshSnapshotIntervalMinutes:this.value},this.accessory)}validate(){return this.inputIsInvalid=!1,(null==this.value||this.value<5&&0!==this.value)&&(this.inputIsInvalid=!0),!this.inputIsInvalid}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(zi))},t.\u0275cmp=n2({type:t,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[Z],decls:27,vars:5,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"],["role","alert",1,"alert","alert-warning"],["role","alert",1,"alert","alert-secondary"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Periodic Snapshot Refresh"),g(),p(4,"div",2)(5,"input",3),A("change",function(){return i.switchSetting()}),g()()(),k(6,Iu2,2,0,"div",4),k(7,Ou2,2,0,"div",5),p(8,"div",6)(9,"span"),_(10,"Refresh Interval"),g(),p(11,"div",7)(12,"div",8)(13,"input",9),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g(),p(14,"div",10)(15,"span",11),_(16,"minutes"),g()()()()(),p(17,"small")(18,"i"),_(19," This option will force a snapshot to be generated every x minutes. This snapshot will then be used for homekit. So that your snapshots will never be older than this."),T(20,"br"),_(21," Best used with 'Cloud Snapshots' handling method."),T(22,"br"),_(23," Every setting below 5 minutes will be discarded due to performance reasons."),T(24,"br"),p(25,"b"),_(26,"Don't use this with the 'Force Refresh Snapshots' method, since it will have negligible effects other than slowing down homebridge and decreasing possible battery life."),g()()()()),2&e&&(v(5),B("checked",i.value>0||null),v(1),M("ngIf",2===i.chargingStatus&&i.value>0),v(1),M("ngIf",4===i.chargingStatus&&i.value>0),v(6),M("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[m1,H5,xe,a1,e1],encapsulation:2}),t})(),Pu2=(()=>{class t extends o1{constructor(e){super(e),this.value=!1}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"forcerefreshsnap")&&(e.value=a.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[Z],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Force Refresh Snapshot (Deprecated)"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),p(6,"small")(7,"i"),_(8," When enabled, we will start stream for one frame and use as a snapshot (this can affect the battery life). If it's disabled, we will use the Eufy Cloud API one (which could be really old)."),T(9,"br"),_(10," This option is only used if you have disabled enhanced snapshot handling. "),g()()()),2&e&&(v(5),M("ngModel",i.value))},directives:[U1,a1,e1],encapsulation:2}),t})();function Fu2(t,n){if(1&t&&(p(0,"div",8),_(1),g()),2&t){const e=D();v(1),R3(" There was an error setting the RTSP status: ",e.error.message," ")}}function Bu2(t,n){1&t&&(p(0,"div",9),_(1," To utilize RTSP streaming, you'll also have to enable the RTSP setting above. "),g())}function Uu2(t,n){1&t&&(p(0,"div"),_(1,"Current RTSP state of this device:"),g())}function Gu2(t,n){1&t&&(p(0,"div",10)(1,"span",11),_(2,"Loading..."),g()())}function ju2(t,n){if(1&t&&(p(0,"b"),_(1),g()),2&t){const e=D();v(1),ee(e.state?"On":"Off")}}function $u2(t,n){1&t&&(p(0,"div"),_(1,"RTSP url for this device:"),g())}let Wu2=(()=>{class t extends o1{constructor(e,i){super(e),this.accessoryService=i,this.value=!1,this.rtspSetting=!1,this.waiting=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"experimentalRTSP")&&(e.value=a.experimentalRTSP),a&&Object.prototype.hasOwnProperty.call(a,"rtsp")&&(e.rtspSetting=a.rtsp),e.getCurrentRTSPValues()})()}getCurrentRTSPValues(){this.accessory&&this.accessoryService.getExperimentalRTSPStatus(this.accessory.uniqueId).then(e=>{this.waiting=!1,this.state=e.state,this.url=e.url})}update(){this.updateConfig({experimentalRTSP:this.value},this.accessory),this.accessory&&(this.waiting=!0,this.accessoryService.setExperimentalRTSPStatus(this.accessory.uniqueId,this.value).then(e=>{this.rtspUrl=e,this.getCurrentRTSPValues()}).catch(e=>this.error=e))}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(zi))},t.\u0275cmp=n2({type:t,selectors:[["app-experimental-rtsp"]],inputs:{accessory:"accessory"},features:[Z],decls:20,vars:8,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],[4,"ngIf"],["class","spinner-border spinner-border-sm","role","status",4,"ngIf"],["role","alert",1,"alert","alert-danger"],["role","alert",1,"alert","alert-warning"],["role","status",1,"spinner-border","spinner-border-sm"],[1,"sr-only"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable experimental RTSP streaming capabilities"),g(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),g()()(),k(6,Fu2,2,1,"div",4),k(7,Bu2,2,0,"div",5),p(8,"div",1),k(9,Uu2,2,0,"div",6),k(10,Gu2,3,0,"div",7),k(11,ju2,2,1,"b",6),g(),p(12,"div",1),k(13,$u2,2,0,"div",6),p(14,"div"),_(15),g()(),p(16,"small")(17,"i"),_(18," Most devices that don't support RTSP streaming officially have the ability nonetheless. You can try to enable it with this setting."),T(19,"br"),g()()()),2&e&&(v(5),M("ngModel",i.value),v(1),M("ngIf",void 0!==i.error),v(1),M("ngIf",i.value&&!i.rtspSetting),v(2),M("ngIf",void 0!==i.state),v(1),M("ngIf",i.waiting),v(1),M("ngIf",!i.waiting),v(2),M("ngIf",i.url),v(2),ee(i.url))},directives:[U1,a1,e1,m1],encapsulation:2}),t})();var Fw={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 336c-18 0-32 14-32 32s13.1 32 32 32c17.1 0 32-14 32-32S273.1 336 256 336zM289.1 128h-51.1C199 128 168 159 168 198c0 13 11 24 24 24s24-11 24-24C216 186 225.1 176 237.1 176h51.1C301.1 176 312 186 312 198c0 8-4 14.1-11 18.1L244 251C236 256 232 264 232 272V288c0 13 11 24 24 24S280 301 280 288V286l45.1-28c21-13 34-36 34-60C360 159 329 128 289.1 128z"]};function tg2(t,n){1&t&&(p(0,"span")(1,"b"),_(2,"Advanced Video Config"),g()())}function ng2(t,n){1&t&&(p(0,"button",4)(1,"span")(2,"b"),_(3,"Advanced Video Config"),g()()())}function ig2(t,n){if(1&t&&(p(0,"div"),_(1),g()),2&t){const e=D(2);v(1),R3(" ",e.presetDescription," ")}}function ag2(t,n){if(1&t){const e=w1();_(0," The following options directly change the way how ffmpeg is configured when a stream is started. If configured incorrectly these will most likely result in faulty streams or bad streaming performance. "),T(1,"p"),_(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),T(3,"p"),p(4,"div",5)(5,"div",6)(6,"select",7),A("ngModelChange",function(a){return F(e),D().preset=a})("change",function(){return F(e),D().loadPreset()}),p(7,"option",8),_(8,"No Preset (default)"),g(),p(9,"option",8),_(10,"Copy"),g(),p(11,"option",8),_(12,"Performance"),g(),p(13,"option",8),_(14,"Custom"),g()()()(),k(15,ig2,2,1,"div",9),T(16,"p"),p(17,"div",10)(18,"div",11),_(19," General Settings "),g(),p(20,"ul",12)(21,"li",13)(22,"div",14)(23,"input",15),A("ngModelChange",function(a){return F(e),D().debug=a})("change",function(){return F(e),D().update()}),g(),p(24,"label",16),_(25," ffmpeg Debug "),T(26,"fa-icon",17),g()()(),p(27,"li",13)(28,"label",18)(29,"div",14)(30,"input",19),A("change",function(){F(e);const a=D();return a.videoProcessor=void 0===a.videoProcessor?"":void 0,a.update()}),g(),p(31,"label",20),_(32," (path to) ffmpeg executable "),T(33,"fa-icon",21),g()()(),p(34,"input",22),A("ngModelChange",function(a){return F(e),D().videoProcessor=a})("change",function(){return F(e),D().update()}),g()(),p(35,"li",13)(36,"div",14)(37,"input",23),A("ngModelChange",function(a){return F(e),D().useSeparateProcesses=a})("change",function(){return F(e),D().update()}),g(),p(38,"label",24),_(39," Use separate processes for video and audio "),T(40,"fa-icon",25),g()()(),p(41,"li",13)(42,"div",14)(43,"input",26),A("ngModelChange",function(a){return F(e),D().readRate=a})("change",function(){return F(e),D().update()}),g(),p(44,"label",27),_(45," readRate "),T(46,"fa-icon",28),g()()(),p(47,"li",13)(48,"label",29)(49,"div",14)(50,"input",30),A("change",function(){F(e);const a=D();return a.probeSize=void 0===a.probeSize?0:void 0,a.update()}),g(),p(51,"label",31),_(52," probeSize "),T(53,"fa-icon",32),g()()(),p(54,"input",33),A("ngModelChange",function(a){return F(e),D().probeSize=a})("change",function(){return F(e),D().update()}),g()(),p(55,"li",13)(56,"label",34)(57,"div",14)(58,"input",35),A("change",function(){F(e);const a=D();return a.analyzeDuration=void 0===a.analyzeDuration?0:void 0,a.update()}),g(),p(59,"label",36),_(60," analyzeDuration "),T(61,"fa-icon",37),g()()(),p(62,"input",38),A("ngModelChange",function(a){return F(e),D().analyzeDuration=a})("change",function(){return F(e),D().update()}),g()(),p(63,"li",13)(64,"label",39)(65,"div",14)(66,"input",40),A("change",function(){F(e);const a=D();return a.maxStreams=void 0===a.maxStreams?2:void 0,a.update()}),g(),p(67,"label",41),_(68," maxStreams "),T(69,"fa-icon",42),g()()(),p(70,"input",43),A("ngModelChange",function(a){return F(e),D().maxStreams=a})("change",function(){return F(e),D().update()}),g()()()(),p(71,"div",10)(72,"div",11),_(73," Video Settings "),g(),p(74,"ul",12)(75,"li",13)(76,"label",44)(77,"div",14)(78,"input",45),A("change",function(){F(e);const a=D();return a.vcodec=void 0===a.vcodec?"":void 0,a.update()}),g(),p(79,"label",46),_(80," vcodec "),T(81,"fa-icon",47),g()()(),p(82,"input",48),A("ngModelChange",function(a){return F(e),D().vcodec=a})("change",function(){return F(e),D().update()}),g()(),p(83,"li",13)(84,"label",49)(85,"div",14)(86,"input",50),A("change",function(){F(e);const a=D();return a.videoFilter=void 0===a.videoFilter?"":void 0,a.update()}),g(),p(87,"label",51),_(88," videoFilter "),T(89,"fa-icon",52),g()()(),p(90,"input",53),A("ngModelChange",function(a){return F(e),D().videoFilter=a})("change",function(){return F(e),D().update()}),g()(),p(91,"li",13)(92,"label",54)(93,"div",14)(94,"input",55),A("change",function(){F(e);const a=D();return a.encoderOptions=void 0===a.encoderOptions?"":void 0,a.update()}),g(),p(95,"label",56),_(96," encoderOptions "),T(97,"fa-icon",57),g()()(),p(98,"input",58),A("ngModelChange",function(a){return F(e),D().encoderOptions=a})("change",function(){return F(e),D().update()}),g()(),p(99,"li",13)(100,"div",59)(101,"div",60)(102,"label",61)(103,"div",14)(104,"input",62),A("change",function(){F(e);const a=D();return a.maxWidth=void 0===a.maxWidth?0:void 0,a.update()}),g(),p(105,"label",63),_(106," maxWidth "),T(107,"fa-icon",64),g()()(),p(108,"input",65),A("ngModelChange",function(a){return F(e),D().maxWidth=a})("change",function(){return F(e),D().update()}),g()(),p(109,"span",66),_(110,"x"),g(),p(111,"div",67)(112,"label",68)(113,"div",14)(114,"input",69),A("change",function(){F(e);const a=D();return a.maxHeight=void 0===a.maxHeight?0:void 0,a.update()}),g(),p(115,"label",70),_(116," maxHeight "),T(117,"fa-icon",71),g()()(),p(118,"input",72),A("ngModelChange",function(a){return F(e),D().maxHeight=a})("change",function(){return F(e),D().update()}),g()()()(),p(119,"li",13)(120,"div",14)(121,"input",73),A("ngModelChange",function(a){return F(e),D().crop=a})("change",function(){return F(e),D().update()}),g(),p(122,"label",74),_(123," force crop image to requested/defined resolution "),T(124,"fa-icon",75),g()()(),p(125,"li",13)(126,"label",76)(127,"div",14)(128,"input",77),A("change",function(){F(e);const a=D();return a.maxFPS=void 0===a.maxFPS?0:void 0,a.update()}),g(),p(129,"label",78),_(130," fps "),T(131,"fa-icon",79),g()()(),p(132,"input",80),A("ngModelChange",function(a){return F(e),D().maxFPS=a})("change",function(){return F(e),D().update()}),g()(),p(133,"li",13)(134,"label",81)(135,"div",14)(136,"input",82),A("change",function(){F(e);const a=D();return a.maxBitrate=void 0===a.maxBitrate?0:void 0,a.update()}),g(),p(137,"label",83),_(138," bitrate "),T(139,"fa-icon",84),g()()(),p(140,"input",85),A("ngModelChange",function(a){return F(e),D().maxBitrate=a})("change",function(){return F(e),D().update()}),g()()()(),p(141,"div",10)(142,"div",11),_(143," Audio Settings "),g(),p(144,"ul",12)(145,"li",13)(146,"label",86)(147,"div",14)(148,"input",87),A("change",function(){F(e);const a=D();return a.acodecHK=void 0===a.acodecHK?"AAC-eld":void 0,a.update()}),g(),p(149,"label",88),_(150," Audio Codec that will be requested by HomeKit. "),T(151,"fa-icon",89),g()()(),p(152,"select",90),A("ngModelChange",function(a){return F(e),D().acodecHK=a})("change",function(){return F(e),D().update()}),p(153,"option",8),_(154,"AAC-eld"),g(),p(155,"option",8),_(156,"OPUS"),g()()(),p(157,"li",13)(158,"label",91)(159,"div",14)(160,"input",92),A("change",function(){F(e);const a=D();return a.acodec=void 0===a.acodec?"":void 0,a.update()}),g(),p(161,"label",93),_(162," Forced audio codec "),T(163,"fa-icon",94),g()()(),p(164,"input",95),A("ngModelChange",function(a){return F(e),D().acodec=a})("change",function(){return F(e),D().update()}),g()(),p(165,"li",13)(166,"label",96)(167,"div",14)(168,"input",97),A("change",function(){F(e);const a=D();return a.acodecOptions=void 0===a.acodecOptions?"":void 0,a.update()}),g(),p(169,"label",98),_(170," Audio Codec encoding options "),T(171,"fa-icon",99),g()()(),p(172,"input",100),A("ngModelChange",function(a){return F(e),D().acodecOptions=a})("change",function(){return F(e),D().update()}),g()(),p(173,"li",13)(174,"label",101)(175,"div",14)(176,"input",102),A("change",function(){F(e);const a=D();return a.audioSampleRate=void 0===a.audioSampleRate?16:void 0,a.update()}),g(),p(177,"label",103),_(178," samplerate "),T(179,"fa-icon",104),g()()(),p(180,"select",105),A("ngModelChange",function(a){return F(e),D().audioSampleRate=a})("change",function(){return F(e),D().update()}),p(181,"option",8),_(182,"8 kHz"),g(),p(183,"option",8),_(184,"16 kHz"),g(),p(185,"option",8),_(186,"24 kHz"),g()()(),p(187,"li",13)(188,"label",106)(189,"div",14)(190,"input",107),A("change",function(){F(e);const a=D();return a.audioBitrate=void 0===a.audioBitrate?24:void 0,a.update()}),g(),p(191,"label",108),_(192," audio bitrate "),T(193,"fa-icon",109),g()()(),p(194,"input",110),A("ngModelChange",function(a){return F(e),D().audioBitrate=a})("change",function(){return F(e),D().update()}),g()()()()}if(2&t){const e=D();v(6),M("ngModel",e.preset),v(1),M("ngValue",0),v(2),M("ngValue",1),v(2),M("ngValue",2),v(2),M("ngValue",3),v(2),M("ngIf",e.presetDescription),v(8),M("ngModel",e.debug),v(3),M("icon",e.faQuestionCircle),v(4),M("checked",void 0!==e.videoProcessor||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.videoProcessor),B("disabled",void 0===e.videoProcessor||null),v(3),M("ngModel",e.useSeparateProcesses),v(3),M("icon",e.faQuestionCircle),v(3),M("ngModel",e.readRate),v(3),M("icon",e.faQuestionCircle),v(4),M("checked",void 0!==e.probeSize||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.probeSize),B("disabled",void 0===e.probeSize||null),v(4),M("checked",void 0!==e.analyzeDuration||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.analyzeDuration),B("disabled",void 0===e.analyzeDuration||null),v(4),M("checked",void 0!==e.maxStreams||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxStreams),B("disabled",void 0===e.maxStreams||null),v(8),M("checked",void 0!==e.vcodec||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.vcodec),B("disabled",void 0===e.vcodec||null),v(4),M("checked",void 0!==e.videoFilter||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.videoFilter),B("disabled",void 0===e.videoFilter||"copy"===e.vcodec||null),v(4),M("checked",void 0!==e.encoderOptions||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.encoderOptions),B("placeholder",void 0!==e.encoderOptions?"":e.vcodecOptionsPlaceholder)("disabled",void 0===e.encoderOptions||"copy"===e.vcodec||null),v(6),M("checked",void 0!==e.maxWidth||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxWidth),B("disabled",void 0===e.maxWidth||"copy"===e.vcodec||null),v(6),M("checked",void 0!==e.maxHeight||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxHeight),B("disabled",void 0===e.maxHeight||"copy"===e.vcodec||null),v(3),M("ngModel",e.crop),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(4),M("checked",void 0!==e.maxFPS||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxFPS),B("disabled",void 0===e.maxFPS||"copy"===e.vcodec||null),v(4),M("checked",void 0!==e.maxBitrate||null),B("disabled","copy"===e.vcodec||null),v(1),B("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,E4),v(2),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.maxBitrate),B("disabled",void 0===e.maxBitrate||"copy"===e.vcodec||null),v(8),M("checked",void 0!==e.acodecHK||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.acodecHK),B("disabled",void 0===e.acodecHK||null),v(1),M("ngValue","AAC-eld"),v(2),M("ngValue","OPUS"),v(5),M("checked",void 0!==e.acodec||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.acodec),B("placeholder",e.acodecPlaceholder)("disabled",void 0===e.acodec||null),v(4),M("checked",void 0!==e.acodecOptions||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.acodecOptions),B("placeholder",void 0!==e.acodecOptions?"":e.acodecOptionsPlaceholder)("disabled",void 0===e.acodecOptions||null),v(4),M("checked",void 0!==e.audioSampleRate||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.audioSampleRate),B("disabled",void 0===e.audioSampleRate||null),v(1),M("ngValue",8),v(2),M("ngValue",16),v(2),M("ngValue",24),v(5),M("checked",void 0!==e.audioBitrate||null),v(3),M("icon",e.faQuestionCircle),v(1),M("ngModel",e.audioBitrate),B("disabled",void 0===e.audioBitrate||null)}}let rg2=(()=>{class t extends o1{constructor(e){super(e),this.faQuestionCircle=Fw,this.debug=void 0,this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.crop=void 0,this.audioSampleRate=void 0,this.audioBitrate=void 0,this.acodecHK=void 0,this.acodecOptions=void 0,this.videoProcessor=void 0,this.preset=0,this.acodecPlaceholder="libfdk_aac",this.acodecOptionsPlaceholder="-profile:a aac_eld",this.vcodecOptionsPlaceholder="-preset ultrafast -tune zerolatency"}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Object.prototype.hasOwnProperty.call(a,"videoConfig")&&Object.entries(a.videoConfig).forEach(([r,o])=>{e[r]=o}),e.placeholderUpdate(),e.updatePreset()})()}placeholderUpdate(){switch(this.acodecHK){case"ACC-eld":default:this.acodecPlaceholder="libfdk_aac",this.acodecOptionsPlaceholder="-profile:a aac_eld";break;case"OPUS":this.acodecPlaceholder="libopus",this.acodecOptionsPlaceholder="-application lowdelay"}switch(this.vcodec){case"copy":this.vcodecOptionsPlaceholder="";break;case"":case"libx264":case void 0:this.vcodecOptionsPlaceholder="-preset ultrafast -tune zerolatency";break;default:this.vcodecOptionsPlaceholder="leave blank if you don't know"}}loadPreset(){0===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.crop=void 0,this.presetDescription=void 0):1===this.preset?(this.readRate=void 0,this.vcodec="copy",this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.crop=void 0,this.presetDescription="Most eufy cams support the same codec that HomeKit requests. You can try and 'forward' the stream directly without encoding it with ffmpeg. This can increase performance and quality drastically."):2===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=640,this.maxHeight=480,this.maxFPS=15,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.crop=void 0,this.presetDescription="This preset tries to increase performance by reducing the quality of the stream. This can work for low performance hardware like raspberry pis."):this.presetDescription=void 0,this.update()}updatePreset(){let e=3;!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&void 0===this.useSeparateProcesses&&void 0===this.crop&&(e=0),!this.readRate&&"copy"===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&void 0===this.crop&&(e=1),!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&640===this.maxWidth&&480===this.maxHeight&&15===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&void 0===this.crop&&(e=2),e!==this.preset&&(this.preset=e)}update(){var e=this;return f2(function*(){var i;const a=yield e.getCameraConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||""),r=a&&Object.prototype.hasOwnProperty.call(a,"videoConfig")?a.videoConfig:{},o={};Object.prototype.hasOwnProperty.call(r,"audio")&&(o.audio=r.audio),e.debug&&(o.debug=e.debug),e.readRate&&(o.readRate=e.readRate),e.vcodec&&""!==e.vcodec&&(o.vcodec=e.vcodec),e.acodec&&""!==e.acodec&&(o.acodec=e.acodec),e.videoFilter&&""!==e.videoFilter&&(o.videoFilter=e.videoFilter),void 0!==e.encoderOptions&&(o.encoderOptions=e.encoderOptions),void 0!==e.probeSize&&(o.probeSize=e.probeSize),void 0!==e.analyzeDuration&&(o.analyzeDuration=e.analyzeDuration),void 0!==e.maxStreams&&(o.maxStreams=e.maxStreams),void 0!==e.maxWidth&&(o.maxWidth=e.maxWidth),void 0!==e.maxHeight&&(o.maxHeight=e.maxHeight),void 0!==e.maxFPS&&(o.maxFPS=e.maxFPS),void 0!==e.maxBitrate&&(o.maxBitrate=e.maxBitrate),e.useSeparateProcesses&&(o.useSeparateProcesses=e.useSeparateProcesses),e.crop&&(o.crop=e.crop),void 0!==e.audioSampleRate&&(o.audioSampleRate=e.audioSampleRate),void 0!==e.audioBitrate&&(o.audioBitrate=e.audioBitrate),e.acodecHK&&""!==e.acodecHK&&(o.acodecHK=e.acodecHK),void 0!==e.acodecOptions&&(o.acodecOptions=e.acodecOptions),e.videoProcessor&&""!==e.videoProcessor&&(o.videoProcessor=e.videoProcessor),e.updateConfig({videoConfig:o},e.accessory),e.placeholderUpdate(),e.updatePreset()})()}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[Z],decls:6,vars:0,consts:[["acc","ngbAccordion"],["ngbPanelTitle","","class","accordion-header"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","",1,"accordion-button"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Presets",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],[1,"card","mb-3"],[1,"card-header"],[1,"list-group","list-group-flush"],[1,"list-group-item"],[1,"form-check"],["type","checkbox","id","ffmpegDebug",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","ffmpegDebug",1,"form-check-label"],["ngbTooltip","Enable debug messages in the plugin log for ffmpeg processes.",1,"m-1",3,"icon"],["for","videoProcessorInput",1,"form-label"],["type","checkbox","id","videoProcessor",1,"form-check-input",3,"checked","change"],["for","videoProcessor",1,"form-check-label"],["ngbTooltip","If you have another ffmpeg binary (e.g. self compiled) that you want to use, you can enter the path here. By default the npm package 'ffmpeg-for-homebridge' will be used.",1,"m-1",3,"icon"],["type","text","id","videoProcessorInput","placeholder","ffmpeg-for-homebridge",1,"form-control",3,"ngModel","ngModelChange","change"],["type","checkbox","id","useSeparateProcesses",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","useSeparateProcesses",1,"form-check-label"],["ngbTooltip","Start audio and video processes in their own process instead of mixing them up. This can reduce start up times of streams but also can cause errors in rare cases.",1,"m-1",3,"icon"],["type","checkbox","id","readRate",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","readRate",1,"form-check-label"],["ngbTooltip","Add -re argument to ffmpeg processes. This is normally not necessary for streaming purposes.",1,"m-1",3,"icon"],["for","probeSizeInput",1,"form-label"],["type","checkbox","id","probeSize",1,"form-check-input",3,"checked","change"],["for","probeSize",1,"form-check-label"],["ngbTooltip","Set the size of streaming data that is analyzed to get stream information.",1,"m-1",3,"icon"],["type","number","id","probeSizeInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","analyzeDurationInput",1,"form-label"],["type","checkbox","id","analyzeDuration",1,"form-check-input",3,"checked","change"],["for","analyzeDuration",1,"form-check-label"],["ngbTooltip","Set how many microseconds are analyzed to probe the input. Higher values will introduce more latency.",1,"m-1",3,"icon"],["type","number","id","analyzeDurationInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","maxStreamsInput",1,"form-label"],["type","checkbox","id","maxStreams",1,"form-check-input",3,"checked","change"],["for","maxStreams",1,"form-check-label"],["ngbTooltip","This setting tells the HomeKit Controller how many concurrent streams can be handled. Default: 2",1,"m-1",3,"icon"],["type","number","id","maxStreamsInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","vcodecInput",1,"form-label"],["type","checkbox","id","vcodec",1,"form-check-input",3,"checked","change"],["for","vcodec",1,"form-check-label"],["ngbTooltip","Choose which video codec should be used to encode the video stream for HomeKit.",1,"m-1",3,"icon"],["type","text","id","vcodecInput","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["for","filterInput",1,"form-label"],["type","checkbox","id","videoFilter",1,"form-check-input",3,"checked","change"],["for","videoFilter",1,"form-check-label"],["ngbTooltip","Set custom filters for video encoding.",1,"m-1",3,"icon"],["type","text","id","filterInput","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["for","encoderOptionsInput",1,"form-label"],["type","checkbox","id","encoderOptions",1,"form-check-input",3,"checked","change"],["for","encoderOptions",1,"form-check-label"],["ngbTooltip","Set custom codec options for video encoding.",1,"m-1",3,"icon"],["type","text","id","encoderOptionsInput",1,"form-control",3,"ngModel","ngModelChange","change"],[1,"row"],[1,"col-sm-5","col-12","mb-2","mb-sm-0"],["for","maxWidthInput",1,"form-label"],["type","checkbox","id","maxWidth",1,"form-check-input",3,"checked","change"],["for","maxWidth",1,"form-check-label"],["ngbTooltip","Maximum width for encoded video stream. Lower Values might improve performance.",1,"m-1",3,"icon"],["type","number","id","maxWidthInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],[1,"col-2","d-none","d-sm-flex","justify-content-center","align-items-end"],[1,"col-sm-5","col-12"],["for","maxHeightInput",1,"form-label"],["type","checkbox","id","maxHeight",1,"form-check-input",3,"checked","change"],["for","maxHeight",1,"form-check-label"],["ngbTooltip","Maximum height for encoded video stream. Lower Values might improve performance.",1,"m-1",3,"icon"],["type","number","id","maxHeightInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["type","checkbox","id","crop",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","crop",1,"form-check-label"],["ngbTooltip","The input might be in another aspect ratio than requested by HomeKit (e.g. Doorbells may stream 1600x1200 -> 4:3 while HomeKit requests 1920x1080 -> 16:9). This setting will ensure that the requested aspect ratio is hit by cropping the image accordingly.",1,"m-1",3,"icon"],["for","maxFPSInput",1,"form-label"],["type","checkbox","id","maxFPS",1,"form-check-input",3,"checked","change"],["for","maxFPS",1,"form-check-label"],["ngbTooltip","Frames per second for the encoded video. If not set the value requested by the HomeKit Controller will be used.",1,"m-1",3,"icon"],["type","number","id","maxFPSInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","mmaxBitrateInput",1,"form-label"],["type","checkbox","id","maxBitrate",1,"form-check-input",3,"checked","change"],["for","maxBitrate",1,"form-check-label"],["ngbTooltip","Bitrate used for the encoded video. If not set the value requested by the HomeKit Controller will be used.",1,"m-1",3,"icon"],["type","number","id","maxBitrateInput","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"],["for","acodecHKInput",1,"form-label"],["type","checkbox","id","acodecHK",1,"form-check-input",3,"checked","change"],["for","acodecHK",1,"form-check-label"],["ngbTooltip","Set the audio codec that will be requested by the HomeKit controller. The actual used codec will be determined by the plugin based by the request and the next setting for forced codec.",1,"m-1",3,"icon"],["id","acodecHKInput","aria-label","acodecHK",1,"form-select",3,"ngModel","ngModelChange","change"],["for","acodecInput",1,"form-label"],["type","checkbox","id","acodec",1,"form-check-input",3,"checked","change"],["for","acodec",1,"form-check-label"],["ngbTooltip","Choose which audio codec should be used to encode the audio stream for HomeKit. This may overwrite the previous setting, but be aware that audio streaming will fail if these settings differ.",1,"m-1",3,"icon"],["type","text","id","acodecInput",1,"form-control",3,"ngModel","ngModelChange","change"],["for","acodecOptionsInput",1,"form-label"],["type","checkbox","id","acodecOptions",1,"form-check-input",3,"checked","change"],["for","acodecOptions",1,"form-check-label"],["ngbTooltip","Set custom codec options for audio encoding.",1,"m-1",3,"icon"],["type","text","id","acodecOptionsInput",1,"form-control",3,"ngModel","ngModelChange","change"],["for","samplerateInput",1,"form-label"],["type","checkbox","id","samplerate",1,"form-check-input",3,"checked","change"],["for","samplerate",1,"form-check-label"],["ngbTooltip","Set the samplerate that the encoded audio should have. The HomeKit Controller might request another samplerate, which then will be used instead.",1,"m-1",3,"icon"],["id","samplerateInput","aria-label","Samplerate",1,"form-select",3,"ngModel","ngModelChange","change"],["for","aBitrateInput",1,"form-label"],["type","checkbox","id","aBitrate",1,"form-check-input",3,"checked","change"],["for","aBitrate",1,"form-check-label"],["ngbTooltip","Set the bitrate for encoded audio. Caution: if set to high the audio stream will be discarded by the HomeKit Controller.",1,"m-1",3,"icon"],["type","number","id","aBitrateInput","placeholder","24",1,"form-control",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(p(0,"ngb-accordion",null,0)(2,"ngb-panel"),k(3,tg2,3,0,"ng-template",1),k(4,ng2,4,0,"ng-template",2),k(5,ag2,195,100,"ng-template",3),g()())},directives:[Fo,H0,Ro,V0,Bo,Po,Ae,a1,e1,w5,z5,m1,U1,H9,aj,xe,H5],styles:[".accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#00000008!important;color:#000!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed):after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")}.input-group-text[_ngcontent-%COMP%]{padding:.375rem 1rem}"]}),t})();function og2(t,n){1&t&&T(0,"hr")}function sg2(t,n){1&t&&T(0,"app-rtsp-streaming",6),2&t&&M("accessory",D(3).accessory)}function cg2(t,n){1&t&&T(0,"hr")}function lg2(t,n){1&t&&T(0,"app-talkback",6),2&t&&M("accessory",D(3).accessory)}function Cg2(t,n){if(1&t&&(p(0,"div"),T(1,"hr")(2,"app-enable-camera",6),k(3,og2,1,0,"hr",2),k(4,sg2,1,1,"app-rtsp-streaming",7),T(5,"hr")(6,"app-enable-audio",6),k(7,cg2,1,0,"hr",2),k(8,lg2,1,1,"app-talkback",7),g()),2&t){const e=D(2);v(2),M("accessory",e.accessory),v(1),M("ngIf",e.supportsRTSP),v(1),M("ngIf",e.supportsRTSP),v(2),M("accessory",e.accessory),v(1),M("ngIf",e.supportsTalkback),v(1),M("ngIf",e.supportsTalkback)}}function fg2(t,n){if(1&t&&(p(0,"div",3)(1,"div",4)(2,"b"),_(3,"Camera Settings"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",5),T(8,"app-ignore-accessory",6),k(9,Cg2,9,6,"div",2),g()()),2&t){const e=D();v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory),v(1),M("ngIf",e.isCamera)}}function ug2(t,n){if(1&t&&(p(0,"div",3)(1,"div",4)(2,"b"),_(3,"HomeKit Behaviour"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",5),T(8,"app-camera-buttons",6)(9,"hr")(10,"app-enable-hsv",6)(11,"hr")(12,"app-unbridge-accessory",6),g()()),2&t){const e=D(2);v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory),v(2),M("accessory",e.accessory),v(2),M("accessory",e.accessory)}}function dg2(t,n){1&t&&T(0,"hr")}function hg2(t,n){1&t&&T(0,"app-immediate-notification-on-ring",6),2&t&&M("accessory",D(3).accessory)}function pg2(t,n){if(1&t&&(p(0,"div"),T(1,"app-force-refreshsnap",6),g()),2&t){const e=D(3);v(1),M("accessory",e.accessory)}}function gg2(t,n){if(1&t&&(p(0,"div",3)(1,"div",4)(2,"b"),_(3,"Snapshot Behaviour"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",5),T(8,"app-snapshot-handling-method",6),k(9,dg2,1,0,"hr",2),k(10,hg2,1,1,"app-immediate-notification-on-ring",7),T(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),k(15,pg2,2,1,"div",2),g()()),2&t){const e=D(2);v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory),v(1),M("ngIf",e.isDoorbell),v(1),M("ngIf",e.isDoorbell),v(2),M("accessory",e.accessory),v(2),M("accessory",e.accessory),v(1),M("ngIf",!e.showEnhancedSnapshotBehaviour)}}function mg2(t,n){if(1&t&&(p(0,"div",3)(1,"div",4)(2,"b"),_(3,"Experimental Mode - Options"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",5),T(8,"app-experimental-rtsp",6),g()()),2&t){const e=D(2);v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory)}}function vg2(t,n){if(1&t&&(p(0,"div"),T(1,"p"),k(2,ug2,13,5,"div",1),T(3,"p"),k(4,gg2,16,8,"div",1),T(5,"p"),k(6,mg2,9,3,"div",1),T(7,"p")(8,"app-advanced-videoconfig",6),g()),2&t){const e=D();v(2),M("ngIf",e.accessory),v(2),M("ngIf",e.accessory),v(2),M("ngIf",e.accessory&&e.experimentalMode),v(2),M("accessory",e.accessory)}}let _g2=(()=>{class t extends o1{constructor(e,i){super(e),this.route=i,this.showEnhancedSnapshotBehaviour=!0,this.isDoorbell=!1,this.isCamera=!1,this.supportsRTSP=!1,this.supportsTalkback=!1,this.experimentalMode=!1}ngOnInit(){const e=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(e),this.accessory&&(this.isDoorbell=T8.isDoorbell(this.accessory.type),this.isCamera=T8.isCamera(this.accessory.type),this.supportsRTSP=T8.supportsRTSP(this.accessory.type),this.supportsTalkback=T8.supportsTalkback(this.accessory.type),Object.prototype.hasOwnProperty.call(this.config,"experimentalMode")&&this.config.experimentalMode&&(this.supportsRTSP||(this.experimentalMode=!0,this.supportsRTSP=!0)),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(e){this.showEnhancedSnapshotBehaviour=e}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(he))},t.\u0275cmp=n2({type:t,selectors:[["app-camera-config-options"]],features:[Z],decls:4,vars:2,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"],[3,"accessory",4,"ngIf"]],template:function(e,i){1&e&&(p(0,"a",0),_(1,"Back to Devices List"),g(),k(2,fg2,10,4,"div",1),k(3,vg2,9,4,"div",2)),2&e&&(v(2),M("ngIf",i.accessory),v(1),M("ngIf",i.isCamera))},directives:[pe,m1,Sw,uu2,hu2,pu2,mu2,vu2,bu2,Vu2,Eu2,Au2,ku2,Ru2,Pu2,Wu2,rg2],encapsulation:2}),t})();var E8=(()=>{return(t=E8||(E8={}))[t.UNKNOWN=0]="UNKNOWN",t[t.CAPTCHA=1]="CAPTCHA",t[t.TFA=2]="TFA",t[t.TIMEOUT=3]="TIMEOUT",E8;var t})();const Mg2={AF:"Afghanistan",AX:"Aland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Cote D'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and Mcdonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libyan Arab Jamahiriya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestinian Territory, Occupied",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",CS:"Serbia and Montenegro",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turk",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.s.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"};let yg2=(()=>{class t{constructor(e){this.pluginService=e}getCredentials(){var e=this;return f2(function*(){try{const i=yield e.pluginService.getConfig();return i.username&&i.password?Promise.resolve({username:i.username,password:i.password,country:i.country?i.country:"US",deviceName:i.deviceName}):Promise.reject("no full credentials in config")}catch(i){return Promise.reject("no config")}})()}login(e){return f2(function*(){try{const i=yield window.homebridge.request("/login",e);return Promise.resolve(i)}catch(i){return Promise.reject(i)}})()}updateConfigCredentials(e){var i=this;return f2(function*(){let a={};try{a=yield i.pluginService.getConfig()}catch(r){console.log("Could not get credentials from config: "+r)}a.username=e.username,a.password=e.password,a.country=e.country,a.deviceName=e.deviceName,yield i.pluginService.updateConfig(a,!0)})()}}return t.\u0275fac=function(e){return new(e||t)(q(O2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Lg2(t,n){1&t&&(I6(),_(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),O6(),T(1,"p"),p(2,"i"),_(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),g())}function bg2(t,n){if(1&t){const e=w1();p(0,"p",10)(1,"ngb-alert",11),A("closed",function(){return F(e),D().resetLoginFailed()}),I6(),p(2,"svg",12),T(3,"use",13),g(),O6(),p(4,"strong"),_(5,"Login was not successful!"),g()()()}2&t&&(v(1),M("dismissible",!0))}function Vg2(t,n){if(1&t&&(p(0,"div",31),I6(),p(1,"svg",32),T(2,"use",33),g(),O6(),p(3,"div"),_(4," Please make sure to restart plugin after you're done. "),p(5,"u",34),_(6," Tell me why... "),g()()()),2&t){D(2);const e=J3(6);v(5),M("autoClose","outside")("ngbPopover",e)}}function Hg2(t,n){if(1&t&&(p(0,"option"),_(1),g()),2&t){const e=n.$implicit,i=D(2);B("value",e.short)("selected",i.credentials.country===e.short||null),v(1),R3("",e.long," ")}}function wg2(t,n){1&t&&T(0,"span",35)}function zg2(t,n){1&t&&(p(0,"span"),_(1,"..."),g())}function Sg2(t,n){if(1&t){const e=w1();p(0,"div"),k(1,Vg2,7,2,"div",14),p(2,"div",15)(3,"input",16),A("ngModelChange",function(a){return F(e),D().credentials.username=a}),g(),p(4,"label",17),_(5,"Email address"),g()(),T(6,"p"),p(7,"div",15)(8,"input",18),A("ngModelChange",function(a){return F(e),D().credentials.password=a}),g(),p(9,"label",19),_(10,"Password"),g()(),T(11,"p"),p(12,"div",15)(13,"input",20),A("ngModelChange",function(a){return F(e),D().credentials.deviceName=a}),g(),p(14,"label",21),_(15,"Device Name"),g()(),p(16,"div",22)(17,"div",23)(18,"select",24),A("ngModelChange",function(a){return F(e),D().credentials.country=a}),k(19,Hg2,2,3,"option",25),g(),p(20,"small")(21,"i"),_(22," Make sure to use the same country that you use to login with the eufy app. "),g()()(),T(23,"span",26),p(24,"div",27)(25,"button",28),A("click",function(){return F(e),D().login()}),k(26,wg2,1,0,"span",29),_(27," Login "),k(28,zg2,2,0,"span",9),g(),p(29,"button",30),A("click",function(){return F(e),D().cancelLogin()}),_(30," Cancel "),g()()()()}if(2&t){const e=D();v(1),M("ngIf",!e.firstLoginAssumed),v(2),M("ngModel",e.credentials.username),B("class",e.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),v(5),M("ngModel",e.credentials.password),B("class",e.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),v(5),M("ngModel",e.credentials.deviceName),B("class",e.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),v(5),M("ngModel",e.credentials.country),B("disabled",!!e.loginInProgress||null),v(1),M("ngForOf",e.countries),v(6),B("disabled",!!e.loginInProgress||null),v(1),M("ngIf",e.loginInProgress),v(2),M("ngIf",e.loginInProgress),v(1),B("disabled",!!e.loginInProgress||null)}}function Dg2(t,n){1&t&&T(0,"span",35)}function xg2(t,n){1&t&&(p(0,"span"),_(1,"..."),g())}function Ng2(t,n){if(1&t){const e=w1();p(0,"div")(1,"div",36),_(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),g(),p(3,"div",6)(4,"div",37)(5,"input",38),A("ngModelChange",function(a){return F(e),D().otp=a}),g(),p(6,"label",39),_(7,"2FA Code"),g()()(),p(8,"div",40)(9,"div",41)(10,"button",42),A("click",function(){return F(e),D().login()}),k(11,Dg2,1,0,"span",29),_(12," Verify "),k(13,xg2,2,0,"span",9),g()()(),p(14,"div",6)(15,"div",41)(16,"button",30),A("click",function(){return F(e),D().cancelLogin()}),_(17," Cancel "),g()()()()}if(2&t){const e=D();v(5),M("ngModel",e.otp),B("class",e.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),v(5),B("disabled",!!e.loginInProgress||null),v(1),M("ngIf",e.loginInProgress),v(2),M("ngIf",e.loginInProgress),v(3),B("disabled",!!e.loginInProgress||null)}}function Tg2(t,n){1&t&&T(0,"span",35)}function Eg2(t,n){1&t&&(p(0,"span"),_(1,"..."),g())}function Ag2(t,n){if(1&t){const e=w1();p(0,"div")(1,"div",36),_(2,"Please enter the captcha below."),g(),p(3,"div",40),T(4,"img",43),g(),p(5,"div",6)(6,"div",37)(7,"input",38),A("ngModelChange",function(a){return F(e),D().captcha=a}),g(),p(8,"label",39),_(9,"Captcha"),g()()(),p(10,"div",40)(11,"div",41)(12,"button",42),A("click",function(){return F(e),D().login()}),k(13,Tg2,1,0,"span",29),_(14," Verify "),k(15,Eg2,2,0,"span",9),g()()(),p(16,"div",6)(17,"div",41)(18,"button",30),A("click",function(){return F(e),D().cancelLogin()}),_(19," Cancel "),g()()()()}if(2&t){const e=D();v(4),M("src",e.captchaImageData,Je),v(3),M("ngModel",e.captcha),B("class",e.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),v(5),B("disabled",!!e.loginInProgress||null),v(1),M("ngIf",e.loginInProgress),v(2),M("ngIf",e.loginInProgress),v(3),B("disabled",!!e.loginInProgress||null)}}var S3=(()=>{return(t=S3||(S3={}))[t.LOGIN=1]="LOGIN",t[t.TFA=2]="TFA",t[t.CAPTCHA=3]="CAPTCHA",S3;var t})();let kg2=(()=>{class t{constructor(e,i){this.loginService=e,this.routerService=i,this.countries=[],this.credentials={username:"",password:"",country:"US",deviceName:""},this.otp="",this.captcha="",this.captchaImageData="",this.captchaId="",this.loginInProgress=!1,this.loginFailed=!1,this.loginStep=S3.LOGIN,this.firstLoginAssumed=!1,this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0,this.captchaIsValid=!0}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(e=>this.credentials=e).catch(e=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+e)})}fillCountryArray(){Object.entries(Mg2).forEach(([e,i])=>{this.countries.push({short:e,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===S3.LOGIN&&this.loginWithCredentials(),this.loginStep===S3.TFA&&this.loginWithTFA(),this.loginStep===S3.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var e=this;return f2(function*(){let i;try{i=yield e.loginService.login(e.credentials)}catch(a){console.log("login error: "+a)}e.evaluateLoginResult(i)})()}loginWithTFA(){var e=this;return f2(function*(){let i;try{i=yield e.loginService.login({verifyCode:e.otp})}catch(a){console.log("login error: "+a)}e.evaluateLoginResult(i)})()}loginWithCaptcha(){var e=this;return f2(function*(){let i;try{i=yield e.loginService.login({captcha:{captchaCode:e.captcha,captchaId:e.captchaId}})}catch(a){console.log("login error: "+a)}e.evaluateLoginResult(i)})()}evaluateLoginResult(e){if(this.loginInProgress=!1,e&&e.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(e&&e.failReason&&e.failReason===E8.TFA)return void(this.loginStep=S3.TFA);if(e&&e.failReason&&e.failReason===E8.CAPTCHA&&e.data&&e.data.id&&e.data.captcha)return this.loginStep=S3.CAPTCHA,this.captchaId=e.data.id,void(this.captchaImageData=e.data.captcha);this.loginStep=S3.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let e=!1;return this.loginStep===S3.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,e=!0),this.loginStep===S3.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,e=!0),this.loginStep===S3.TFA&&this.otp.length<6&&(this.otpIsValid=!1,e=!0),this.loginStep===S3.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,e=!0),e}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return t.\u0275fac=function(e){return new(e||t)(b(yg2),b(e3))},t.\u0275cmp=n2({type:t,selectors:[["app-login"]],decls:13,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg",2,"display","none"],["id","info-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"],["id","exclamation-triangle-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"],["popInfo",""],[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[4,"ngIf"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"],["class","alert alert-warning d-flex align-items-center","role","alert",4,"ngIf"],[1,"form-floating","mb-3"],["type","email","id","floatingInput","placeholder","name@example.com","ngModel","","email","",3,"ngModel","ngModelChange"],["for","floatingInput"],["type","password","id","floatingPassword","placeholder","Password",3,"ngModel","ngModelChange"],["for","floatingPassword"],["type","text","id","floatingDevice","placeholder","Device Name",3,"ngModel","ngModelChange"],["for","floatingDevice"],[1,"row"],[1,"col-12","col-sm-6","mb-3","mb-sm0"],["aria-label","select country",1,"form-select","mb-3",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[1,"col-0","col-sm-1"],[1,"col-12","col-sm-5","text-end","mb-3"],["type","button",1,"btn","btn-success","col-12","mb-3",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["type","button",1,"btn","btn-secondary","col-12",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center"],["width","24","height","24","role","img","aria-label","Warning:",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#info-fill"],["role","button","popoverTitle","Please restart after login",3,"autoClose","ngbPopover"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"row","mb-3"],[1,"form-floating","mb-3","col-8","col-sm-6"],["type","text","id","floatingOTP","placeholder","",3,"ngModel","ngModelChange"],["for","floatingOTP"],[1,"row","d-flex","justify-content-center","mb-3"],[1,"col-8","col-sm-6"],["type","button",1,"btn","btn-success","col-12",3,"click"],[1,"col-10","col-sm-8",3,"src"]],template:function(e,i){1&e&&(I6(),p(0,"svg",0)(1,"symbol",1),T(2,"path",2),g(),p(3,"symbol",3),T(4,"path",4),g()(),k(5,Lg2,4,0,"ng-template",null,5,X3),O6(),p(7,"div",6),k(8,bg2,6,1,"p",7),p(9,"div",8),k(10,Sg2,31,17,"div",9),k(11,Ng2,18,7,"div",9),k(12,Ag2,20,8,"div",9),g()()),2&e&&(v(8),M("ngIf",i.loginFailed),v(2),M("ngIf",1===i.loginStep),v(1),M("ngIf",2===i.loginStep),v(1),M("ngIf",3===i.loginStep))},directives:[m1,ag,JG,xe,a1,e1,yo,Ae,ae,w5,z5],encapsulation:2}),t})(),Ig2=(()=>{class t extends o1{constructor(e){super(e),this.value=[]}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;const a=yield e.getStationConfig((null===(i=e.accessory)||void 0===i?void 0:i.uniqueId)||"");a&&Array.isArray(a.manualTriggerModes)&&(e.value=a.manualTriggerModes)})()}toggle(e){-1!==this.value.indexOf(e)?this.value=this.value.filter(i=>i!==e):this.value.push(e)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[Z],decls:36,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"]],template:function(e,i){1&e&&(p(0,"div",0)(1,"span",1),_(2,"Manual Alarm Trigger Modes"),g(),p(3,"div",2)(4,"span"),_(5,"HomeKit Home"),g(),p(6,"div",3)(7,"input",4),A("change",function(){return i.toggle(0),i.update()}),g()()(),p(8,"div",2)(9,"span"),_(10,"HomeKit Away"),g(),p(11,"div",3)(12,"input",4),A("change",function(){return i.toggle(1),i.update()}),g()()(),p(13,"div",2)(14,"span"),_(15,"HomeKit Night"),g(),p(16,"div",3)(17,"input",4),A("change",function(){return i.toggle(2),i.update()}),g()()(),p(18,"div",2)(19,"span"),_(20,"HomeKit Off/Disarmed"),g(),p(21,"div",3)(22,"input",4),A("change",function(){return i.toggle(3),i.update()}),g()()(),p(23,"small")(24,"i"),_(25," You can manually trigger (and reset) the stations alarm with a switch. Therefore you can utilize non eufy devices (e.g. a motion sensor, leak sensor, break-in sensor, ... from another vendor) to trigger the alarm with a homekit automation."),T(26,"p"),_(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),T(28,"p"),_(29," Please be aware that this setting can only be set on a per station basis and not per automation."),T(30,"br"),_(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),T(32,"p"),_(33," The manual alarm respects the delay alarm on leave settings from the eufy app. Triggered automations while the delay is effective will be ignored."),T(34,"br"),_(35," The native alarm delay setting is currently not supported. "),g()()()),2&e&&(v(7),B("checked",-1!==i.value.indexOf(0)||null),v(5),B("checked",-1!==i.value.indexOf(1)||null),v(5),B("checked",-1!==i.value.indexOf(2)||null),v(5),B("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2}),t})();function Og2(t,n){if(1&t&&(p(0,"div",2)(1,"div",3)(2,"b"),_(3,"Station Settings"),g(),_(4," for "),p(5,"i"),_(6),g()(),p(7,"div",4),T(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),g()()),2&t){const e=D();v(6),t6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),v(2),M("accessory",e.accessory),v(2),M("accessory",e.accessory)}}function Pg2(t,n){if(1&t){const e=w1();p(0,"p",7)(1,"ngb-alert",8),A("closed",function(){return F(e),D().failed=!1}),I6(),p(2,"svg",9),T(3,"use",10),g(),O6(),p(4,"strong"),_(5,"Reset was not successful!"),g()()()}2&t&&(v(1),M("dismissible",!0))}const Fg2=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:If2},{path:"advancedConfig",component:lu2},{path:"cameraConfig/:uniqueId",component:_g2},{path:"stationConfig/:uniqueId",component:(()=>{class t{constructor(e,i){this.pluginService=e,this.route=i}ngOnInit(){const e=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(e)}}return t.\u0275fac=function(e){return new(e||t)(b(O2),b(he))},t.\u0275cmp=n2({type:t,selectors:[["app-station-config-options"]],decls:3,vars:1,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"]],template:function(e,i){1&e&&(p(0,"a",0),_(1,"Back to Devices List"),g(),k(2,Og2,11,4,"div",1)),2&e&&(v(2),M("ngIf",i.accessory))},directives:[pe,m1,Sw,Ig2],encapsulation:2}),t})()},{path:"login",component:kg2},{path:"reset",component:(()=>{class t{constructor(e,i){this.routerService=e,this.pluginService=i,this.disabled=!1,this.failed=!1}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var e=this;return f2(function*(){e.disabled=!0;try{const i=yield window.homebridge.request("/reset");e.failed=1!==i.result}catch(i){e.failed=!0}e.disabled=!1,e.failed||(yield e.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return t.\u0275fac=function(e){return new(e||t)(b(e3),b(O2))},t.\u0275cmp=n2({type:t,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-secondary","col-11","col-sm-3","mb-sm-0","mb-3",3,"click"],["type","button",1,"btn","btn-danger","col-11","col-sm-3",3,"click"],[1,"col-11","col-sm-7"],["type","danger",3,"dismissible","closed"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"]],template:function(e,i){1&e&&(p(0,"div",0),k(1,Pg2,6,1,"p",1),p(2,"div",2)(3,"h3",3),_(4,"Are you sure that you want to erase everything?"),g(),p(5,"div",4)(6,"button",5),A("click",function(){return i.cancel()}),_(7,"No"),g(),p(8,"button",6),A("click",function(){return i.resetEverything()}),_(9,"Do it!"),g()()()()),2&e&&(v(1),M("ngIf",i.failed),v(5),B("disabled",!!i.disabled||null),v(2),B("disabled",!!i.disabled||null))},directives:[m1,ag],encapsulation:2}),t})()},{path:"**",redirectTo:"/accessories"}];let Bg2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t}),t.\u0275inj=T2({imports:[[t_.forRoot(Fg2,{scrollPositionRestoration:"enabled"})],t_]}),t})(),Ug2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=E2({type:t,bootstrap:[fK]}),t.\u0275inj=T2({providers:[{provide:o6,useClass:Yd}],imports:[[IR,Dp,sj,Bg2,tW]]}),t})();(function MI(){Ad=!1})(),AR().bootstrapModule(Ug2).catch(t=>console.error(t))},343:(z6,D3)=>{"use strict";D3.byteLength=function n1(a2){var M2=N2(a2),d1=M2[1];return 3*(M2[0]+d1)/4-d1},D3.toByteArray=function N1(a2){var M2,o3,U2=N2(a2),d1=U2[0],_1=U2[1],K2=new a3(function N(a2,M2,U2){return 3*(M2+U2)/4-U2}(0,d1,_1)),r3=0,$3=_1>0?d1-4:d1;for(o3=0;o3<$3;o3+=4)M2=K[a2.charCodeAt(o3)]<<18|K[a2.charCodeAt(o3+1)]<<12|K[a2.charCodeAt(o3+2)]<<6|K[a2.charCodeAt(o3+3)],K2[r3++]=M2>>16&255,K2[r3++]=M2>>8&255,K2[r3++]=255&M2;return 2===_1&&(M2=K[a2.charCodeAt(o3)]<<2|K[a2.charCodeAt(o3+1)]>>4,K2[r3++]=255&M2),1===_1&&(M2=K[a2.charCodeAt(o3)]<<10|K[a2.charCodeAt(o3+1)]<<4|K[a2.charCodeAt(o3+2)]>>2,K2[r3++]=M2>>8&255,K2[r3++]=255&M2),K2},D3.fromByteArray=function O1(a2){for(var M2,U2=a2.length,d1=U2%3,_1=[],r3=0,$3=U2-d1;r3<$3;r3+=16383)_1.push(T1(a2,r3,r3+16383>$3?$3:r3+16383));return 1===d1?_1.push(s1[(M2=a2[U2-1])>>2]+s1[M2<<4&63]+"=="):2===d1&&_1.push(s1[(M2=(a2[U2-2]<<8)+a2[U2-1])>>10]+s1[M2>>4&63]+s1[M2<<2&63]+"="),_1.join("")};for(var s1=[],K=[],a3="undefined"!=typeof Uint8Array?Uint8Array:Array,v1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q2=0,H2=v1.length;q2<H2;++q2)s1[q2]=v1[q2],K[v1.charCodeAt(q2)]=q2;function N2(a2){var M2=a2.length;if(M2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U2=a2.indexOf("=");return-1===U2&&(U2=M2),[U2,U2===M2?0:4-U2%4]}function i1(a2){return s1[a2>>18&63]+s1[a2>>12&63]+s1[a2>>6&63]+s1[63&a2]}function T1(a2,M2,U2){for(var _1=[],K2=M2;K2<U2;K2+=3)_1.push(i1((a2[K2]<<16&16711680)+(a2[K2+1]<<8&65280)+(255&a2[K2+2])));return _1.join("")}K["-".charCodeAt(0)]=62,K["_".charCodeAt(0)]=63},172:(z6,D3,s1)=>{"use strict";var a3=s1(343),v1=s1(461),q2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;D3.lW=N,D3.h2=50;var H2=2147483647;function n1(y){if(y>H2)throw new RangeError('The value "'+y+'" is invalid for option "size"');var u=new Uint8Array(y);return Object.setPrototypeOf(u,N.prototype),u}function N(y,u,d){if("number"==typeof y){if("string"==typeof u)throw new TypeError('The "string" argument must be of type string. Received type number');return O1(y)}return N1(y,u,d)}function N1(y,u,d){if("string"==typeof y)return function a2(y,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!N.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var d=0|$3(y,u),L=n1(d),z=L.write(y,u);return z!==d&&(L=L.slice(0,z)),L}(y,u);if(ArrayBuffer.isView(y))return function U2(y){if(s4(y,Uint8Array)){var u=new Uint8Array(y);return d1(u.buffer,u.byteOffset,u.byteLength)}return M2(y)}(y);if(null==y)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(s4(y,ArrayBuffer)||y&&s4(y.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(s4(y,SharedArrayBuffer)||y&&s4(y.buffer,SharedArrayBuffer)))return d1(y,u,d);if("number"==typeof y)throw new TypeError('The "value" argument must not be of type number. Received type number');var L=y.valueOf&&y.valueOf();if(null!=L&&L!==y)return N.from(L,u,d);var z=function _1(y){if(N.isBuffer(y)){var u=0|K2(y.length),d=n1(u);return 0===d.length||y.copy(d,0,0,u),d}return void 0!==y.length?"number"!=typeof y.length||P8(y.length)?n1(0):M2(y):"Buffer"===y.type&&Array.isArray(y.data)?M2(y.data):void 0}(y);if(z)return z;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof y[Symbol.toPrimitive])return N.from(y[Symbol.toPrimitive]("string"),u,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}function i1(y){if("number"!=typeof y)throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function O1(y){return i1(y),n1(y<0?0:0|K2(y))}function M2(y){for(var u=y.length<0?0:0|K2(y.length),d=n1(u),L=0;L<u;L+=1)d[L]=255&y[L];return d}function d1(y,u,d){if(u<0||y.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<u+(d||0))throw new RangeError('"length" is outside of buffer bounds');var L;return L=void 0===u&&void 0===d?new Uint8Array(y):void 0===d?new Uint8Array(y,u):new Uint8Array(y,u,d),Object.setPrototypeOf(L,N.prototype),L}function K2(y){if(y>=H2)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H2.toString(16)+" bytes");return 0|y}function $3(y,u){if(N.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||s4(y,ArrayBuffer))return y.byteLength;if("string"!=typeof y)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);var d=y.length,L=arguments.length>2&&!0===arguments[2];if(!L&&0===d)return 0;for(var z=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return je(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*d;case"hex":return d>>>1;case"base64":return Bi(y).length;default:if(z)return L?-1:je(y).length;u=(""+u).toLowerCase(),z=!0}}function o3(y,u,d){var L=!1;if((void 0===u||u<0)&&(u=0),u>this.length||((void 0===d||d>this.length)&&(d=this.length),d<=0)||(d>>>=0)<=(u>>>=0))return"";for(y||(y="utf8");;)switch(y){case"hex":return Ri(this,u,d);case"utf8":case"utf-8":return Ii(this,u,d);case"ascii":return O8(this,u,d);case"latin1":case"binary":return Oi(this,u,d);case"base64":return o4(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pi(this,u,d);default:if(L)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),L=!0}}function r4(y,u,d){var L=y[u];y[u]=y[d],y[d]=L}function I8(y,u,d,L,z){if(0===y.length)return-1;if("string"==typeof d?(L=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),P8(d=+d)&&(d=z?0:y.length-1),d<0&&(d=y.length+d),d>=y.length){if(z)return-1;d=y.length-1}else if(d<0){if(!z)return-1;d=0}if("string"==typeof u&&(u=N.from(u,L)),N.isBuffer(u))return 0===u.length?-1:Ge(y,u,d,L,z);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?z?Uint8Array.prototype.indexOf.call(y,u,d):Uint8Array.prototype.lastIndexOf.call(y,u,d):Ge(y,[u],d,L,z);throw new TypeError("val must be string, number or Buffer")}function Ge(y,u,d,L,z){var Y2,R=1,P=y.length,z2=u.length;if(void 0!==L&&("ucs2"===(L=String(L).toLowerCase())||"ucs-2"===L||"utf16le"===L||"utf-16le"===L)){if(y.length<2||u.length<2)return-1;R=2,P/=2,z2/=2,d/=2}function w2(F8,Gi){return 1===R?F8[Gi]:F8.readUInt16BE(Gi*R)}if(z){var Y1=-1;for(Y2=d;Y2<P;Y2++)if(w2(y,Y2)===w2(u,-1===Y1?0:Y2-Y1)){if(-1===Y1&&(Y1=Y2),Y2-Y1+1===z2)return Y1*R}else-1!==Y1&&(Y2-=Y2-Y1),Y1=-1}else for(d+z2>P&&(d=P-z2),Y2=d;Y2>=0;Y2--){for(var l1=!0,Z5=0;Z5<z2;Z5++)if(w2(y,Y2+Z5)!==w2(u,Z5)){l1=!1;break}if(l1)return Y2}return-1}function S6(y,u,d,L){d=Number(d)||0;var z=y.length-d;L?(L=Number(L))>z&&(L=z):L=z;var R=u.length;L>R/2&&(L=R/2);for(var P=0;P<L;++P){var z2=parseInt(u.substr(2*P,2),16);if(P8(z2))return P;y[d+P]=z2}return P}function Ai(y,u,d,L){return Q5(je(u,y.length-d),y,d,L)}function W5(y,u,d,L){return Q5(function Xs(y){for(var u=[],d=0;d<y.length;++d)u.push(255&y.charCodeAt(d));return u}(u),y,d,L)}function ki(y,u,d,L){return Q5(Bi(u),y,d,L)}function q5(y,u,d,L){return Q5(function R8(y,u){for(var d,L,R=[],P=0;P<y.length&&!((u-=2)<0);++P)L=(d=y.charCodeAt(P))>>8,R.push(d%256),R.push(L);return R}(u,y.length-d),y,d,L)}function o4(y,u,d){return a3.fromByteArray(0===u&&d===y.length?y:y.slice(u,d))}function Ii(y,u,d){d=Math.min(y.length,d);for(var L=[],z=u;z<d;){var w2,Y2,Y1,l1,R=y[z],P=null,z2=R>239?4:R>223?3:R>191?2:1;if(z+z2<=d)switch(z2){case 1:R<128&&(P=R);break;case 2:128==(192&(w2=y[z+1]))&&(l1=(31&R)<<6|63&w2)>127&&(P=l1);break;case 3:Y2=y[z+2],128==(192&(w2=y[z+1]))&&128==(192&Y2)&&(l1=(15&R)<<12|(63&w2)<<6|63&Y2)>2047&&(l1<55296||l1>57343)&&(P=l1);break;case 4:Y2=y[z+2],Y1=y[z+3],128==(192&(w2=y[z+1]))&&128==(192&Y2)&&128==(192&Y1)&&(l1=(15&R)<<18|(63&w2)<<12|(63&Y2)<<6|63&Y1)>65535&&l1<1114112&&(P=l1)}null===P?(P=65533,z2=1):P>65535&&(L.push((P-=65536)>>>10&1023|55296),P=56320|1023&P),L.push(P),z+=z2}return function k2(y){var u=y.length;if(u<=4096)return String.fromCharCode.apply(String,y);for(var d="",L=0;L<u;)d+=String.fromCharCode.apply(String,y.slice(L,L+=4096));return d}(L)}function O8(y,u,d){var L="";d=Math.min(y.length,d);for(var z=u;z<d;++z)L+=String.fromCharCode(127&y[z]);return L}function Oi(y,u,d){var L="";d=Math.min(y.length,d);for(var z=u;z<d;++z)L+=String.fromCharCode(y[z]);return L}function Ri(y,u,d){var L=y.length;(!u||u<0)&&(u=0),(!d||d<0||d>L)&&(d=L);for(var z="",R=u;R<d;++R)z+=Ui[y[R]];return z}function Pi(y,u,d){for(var L=y.slice(u,d),z="",R=0;R<L.length-1;R+=2)z+=String.fromCharCode(L[R]+256*L[R+1]);return z}function d2(y,u,d){if(y%1!=0||y<0)throw new RangeError("offset is not uint");if(y+u>d)throw new RangeError("Trying to access beyond buffer length")}function K1(y,u,d,L,z,R){if(!N.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>z||u<R)throw new RangeError('"value" argument is out of bounds');if(d+L>y.length)throw new RangeError("Index out of range")}function Y5(y,u,d,L,z,R){if(d+L>y.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function c1(y,u,d,L,z){return u=+u,d>>>=0,z||Y5(y,0,d,4),v1.write(y,u,d,L,23,4),d+4}function R2(y,u,d,L,z){return u=+u,d>>>=0,z||Y5(y,0,d,8),v1.write(y,u,d,L,52,8),d+8}!(N.TYPED_ARRAY_SUPPORT=function N2(){try{var y=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(y,u),42===y.foo()}catch(d){return!1}}())&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(N.prototype,"parent",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.buffer}}),Object.defineProperty(N.prototype,"offset",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.byteOffset}}),N.poolSize=8192,N.from=function(y,u,d){return N1(y,u,d)},Object.setPrototypeOf(N.prototype,Uint8Array.prototype),Object.setPrototypeOf(N,Uint8Array),N.alloc=function(y,u,d){return function T1(y,u,d){return i1(y),y<=0?n1(y):void 0!==u?"string"==typeof d?n1(y).fill(u,d):n1(y).fill(u):n1(y)}(y,u,d)},N.allocUnsafe=function(y){return O1(y)},N.allocUnsafeSlow=function(y){return O1(y)},N.isBuffer=function(u){return null!=u&&!0===u._isBuffer&&u!==N.prototype},N.compare=function(u,d){if(s4(u,Uint8Array)&&(u=N.from(u,u.offset,u.byteLength)),s4(d,Uint8Array)&&(d=N.from(d,d.offset,d.byteLength)),!N.isBuffer(u)||!N.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===d)return 0;for(var L=u.length,z=d.length,R=0,P=Math.min(L,z);R<P;++R)if(u[R]!==d[R]){L=u[R],z=d[R];break}return L<z?-1:z<L?1:0},N.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},N.concat=function(u,d){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(0===u.length)return N.alloc(0);var L;if(void 0===d)for(d=0,L=0;L<u.length;++L)d+=u[L].length;var z=N.allocUnsafe(d),R=0;for(L=0;L<u.length;++L){var P=u[L];if(s4(P,Uint8Array))R+P.length>z.length?N.from(P).copy(z,R):Uint8Array.prototype.set.call(z,P,R);else{if(!N.isBuffer(P))throw new TypeError('"list" argument must be an Array of Buffers');P.copy(z,R)}R+=P.length}return z},N.byteLength=$3,N.prototype._isBuffer=!0,N.prototype.swap16=function(){var u=this.length;if(u%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<u;d+=2)r4(this,d,d+1);return this},N.prototype.swap32=function(){var u=this.length;if(u%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<u;d+=4)r4(this,d,d+3),r4(this,d+1,d+2);return this},N.prototype.swap64=function(){var u=this.length;if(u%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<u;d+=8)r4(this,d,d+7),r4(this,d+1,d+6),r4(this,d+2,d+5),r4(this,d+3,d+4);return this},N.prototype.toLocaleString=N.prototype.toString=function(){var u=this.length;return 0===u?"":0===arguments.length?Ii(this,0,u):o3.apply(this,arguments)},N.prototype.equals=function(u){if(!N.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u||0===N.compare(this,u)},N.prototype.inspect=function(){var u="",d=D3.h2;return u=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(u+=" ... "),"<Buffer "+u+">"},q2&&(N.prototype[q2]=N.prototype.inspect),N.prototype.compare=function(u,d,L,z,R){if(s4(u,Uint8Array)&&(u=N.from(u,u.offset,u.byteLength)),!N.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(void 0===d&&(d=0),void 0===L&&(L=u?u.length:0),void 0===z&&(z=0),void 0===R&&(R=this.length),d<0||L>u.length||z<0||R>this.length)throw new RangeError("out of range index");if(z>=R&&d>=L)return 0;if(z>=R)return-1;if(d>=L)return 1;if(this===u)return 0;for(var P=(R>>>=0)-(z>>>=0),z2=(L>>>=0)-(d>>>=0),w2=Math.min(P,z2),Y2=this.slice(z,R),Y1=u.slice(d,L),l1=0;l1<w2;++l1)if(Y2[l1]!==Y1[l1]){P=Y2[l1],z2=Y1[l1];break}return P<z2?-1:z2<P?1:0},N.prototype.includes=function(u,d,L){return-1!==this.indexOf(u,d,L)},N.prototype.indexOf=function(u,d,L){return I8(this,u,d,L,!0)},N.prototype.lastIndexOf=function(u,d,L){return I8(this,u,d,L,!1)},N.prototype.write=function(u,d,L,z){if(void 0===d)z="utf8",L=this.length,d=0;else if(void 0===L&&"string"==typeof d)z=d,L=this.length,d=0;else{if(!isFinite(d))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");d>>>=0,isFinite(L)?(L>>>=0,void 0===z&&(z="utf8")):(z=L,L=void 0)}var R=this.length-d;if((void 0===L||L>R)&&(L=R),u.length>0&&(L<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");for(var P=!1;;)switch(z){case"hex":return S6(this,u,d,L);case"utf8":case"utf-8":return Ai(this,u,d,L);case"ascii":case"latin1":case"binary":return W5(this,u,d,L);case"base64":return ki(this,u,d,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q5(this,u,d,L);default:if(P)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),P=!0}},N.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},N.prototype.slice=function(u,d){var L=this.length;(u=~~u)<0?(u+=L)<0&&(u=0):u>L&&(u=L),(d=void 0===d?L:~~d)<0?(d+=L)<0&&(d=0):d>L&&(d=L),d<u&&(d=u);var z=this.subarray(u,d);return Object.setPrototypeOf(z,N.prototype),z},N.prototype.readUintLE=N.prototype.readUIntLE=function(u,d,L){u>>>=0,d>>>=0,L||d2(u,d,this.length);for(var z=this[u],R=1,P=0;++P<d&&(R*=256);)z+=this[u+P]*R;return z},N.prototype.readUintBE=N.prototype.readUIntBE=function(u,d,L){u>>>=0,d>>>=0,L||d2(u,d,this.length);for(var z=this[u+--d],R=1;d>0&&(R*=256);)z+=this[u+--d]*R;return z},N.prototype.readUint8=N.prototype.readUInt8=function(u,d){return u>>>=0,d||d2(u,1,this.length),this[u]},N.prototype.readUint16LE=N.prototype.readUInt16LE=function(u,d){return u>>>=0,d||d2(u,2,this.length),this[u]|this[u+1]<<8},N.prototype.readUint16BE=N.prototype.readUInt16BE=function(u,d){return u>>>=0,d||d2(u,2,this.length),this[u]<<8|this[u+1]},N.prototype.readUint32LE=N.prototype.readUInt32LE=function(u,d){return u>>>=0,d||d2(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},N.prototype.readUint32BE=N.prototype.readUInt32BE=function(u,d){return u>>>=0,d||d2(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},N.prototype.readIntLE=function(u,d,L){u>>>=0,d>>>=0,L||d2(u,d,this.length);for(var z=this[u],R=1,P=0;++P<d&&(R*=256);)z+=this[u+P]*R;return z>=(R*=128)&&(z-=Math.pow(2,8*d)),z},N.prototype.readIntBE=function(u,d,L){u>>>=0,d>>>=0,L||d2(u,d,this.length);for(var z=d,R=1,P=this[u+--z];z>0&&(R*=256);)P+=this[u+--z]*R;return P>=(R*=128)&&(P-=Math.pow(2,8*d)),P},N.prototype.readInt8=function(u,d){return u>>>=0,d||d2(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},N.prototype.readInt16LE=function(u,d){u>>>=0,d||d2(u,2,this.length);var L=this[u]|this[u+1]<<8;return 32768&L?4294901760|L:L},N.prototype.readInt16BE=function(u,d){u>>>=0,d||d2(u,2,this.length);var L=this[u+1]|this[u]<<8;return 32768&L?4294901760|L:L},N.prototype.readInt32LE=function(u,d){return u>>>=0,d||d2(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},N.prototype.readInt32BE=function(u,d){return u>>>=0,d||d2(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},N.prototype.readFloatLE=function(u,d){return u>>>=0,d||d2(u,4,this.length),v1.read(this,u,!0,23,4)},N.prototype.readFloatBE=function(u,d){return u>>>=0,d||d2(u,4,this.length),v1.read(this,u,!1,23,4)},N.prototype.readDoubleLE=function(u,d){return u>>>=0,d||d2(u,8,this.length),v1.read(this,u,!0,52,8)},N.prototype.readDoubleBE=function(u,d){return u>>>=0,d||d2(u,8,this.length),v1.read(this,u,!1,52,8)},N.prototype.writeUintLE=N.prototype.writeUIntLE=function(u,d,L,z){u=+u,d>>>=0,L>>>=0,z||K1(this,u,d,L,Math.pow(2,8*L)-1,0);var P=1,z2=0;for(this[d]=255&u;++z2<L&&(P*=256);)this[d+z2]=u/P&255;return d+L},N.prototype.writeUintBE=N.prototype.writeUIntBE=function(u,d,L,z){u=+u,d>>>=0,L>>>=0,z||K1(this,u,d,L,Math.pow(2,8*L)-1,0);var P=L-1,z2=1;for(this[d+P]=255&u;--P>=0&&(z2*=256);)this[d+P]=u/z2&255;return d+L},N.prototype.writeUint8=N.prototype.writeUInt8=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,1,255,0),this[d]=255&u,d+1},N.prototype.writeUint16LE=N.prototype.writeUInt16LE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,2,65535,0),this[d]=255&u,this[d+1]=u>>>8,d+2},N.prototype.writeUint16BE=N.prototype.writeUInt16BE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,2,65535,0),this[d]=u>>>8,this[d+1]=255&u,d+2},N.prototype.writeUint32LE=N.prototype.writeUInt32LE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,4,4294967295,0),this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=255&u,d+4},N.prototype.writeUint32BE=N.prototype.writeUInt32BE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,4,4294967295,0),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=255&u,d+4},N.prototype.writeIntLE=function(u,d,L,z){if(u=+u,d>>>=0,!z){var R=Math.pow(2,8*L-1);K1(this,u,d,L,R-1,-R)}var P=0,z2=1,w2=0;for(this[d]=255&u;++P<L&&(z2*=256);)u<0&&0===w2&&0!==this[d+P-1]&&(w2=1),this[d+P]=(u/z2>>0)-w2&255;return d+L},N.prototype.writeIntBE=function(u,d,L,z){if(u=+u,d>>>=0,!z){var R=Math.pow(2,8*L-1);K1(this,u,d,L,R-1,-R)}var P=L-1,z2=1,w2=0;for(this[d+P]=255&u;--P>=0&&(z2*=256);)u<0&&0===w2&&0!==this[d+P+1]&&(w2=1),this[d+P]=(u/z2>>0)-w2&255;return d+L},N.prototype.writeInt8=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,1,127,-128),u<0&&(u=255+u+1),this[d]=255&u,d+1},N.prototype.writeInt16LE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,2,32767,-32768),this[d]=255&u,this[d+1]=u>>>8,d+2},N.prototype.writeInt16BE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=255&u,d+2},N.prototype.writeInt32LE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,4,2147483647,-2147483648),this[d]=255&u,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24,d+4},N.prototype.writeInt32BE=function(u,d,L){return u=+u,d>>>=0,L||K1(this,u,d,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=255&u,d+4},N.prototype.writeFloatLE=function(u,d,L){return c1(this,u,d,!0,L)},N.prototype.writeFloatBE=function(u,d,L){return c1(this,u,d,!1,L)},N.prototype.writeDoubleLE=function(u,d,L){return R2(this,u,d,!0,L)},N.prototype.writeDoubleBE=function(u,d,L){return R2(this,u,d,!1,L)},N.prototype.copy=function(u,d,L,z){if(!N.isBuffer(u))throw new TypeError("argument should be a Buffer");if(L||(L=0),!z&&0!==z&&(z=this.length),d>=u.length&&(d=u.length),d||(d=0),z>0&&z<L&&(z=L),z===L||0===u.length||0===this.length)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),u.length-d<z-L&&(z=u.length-d+L);var R=z-L;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(d,L,z):Uint8Array.prototype.set.call(u,this.subarray(L,z),d),R},N.prototype.fill=function(u,d,L,z){if("string"==typeof u){if("string"==typeof d?(z=d,d=0,L=this.length):"string"==typeof L&&(z=L,L=this.length),void 0!==z&&"string"!=typeof z)throw new TypeError("encoding must be a string");if("string"==typeof z&&!N.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(1===u.length){var R=u.charCodeAt(0);("utf8"===z&&R<128||"latin1"===z)&&(u=R)}}else"number"==typeof u?u&=255:"boolean"==typeof u&&(u=Number(u));if(d<0||this.length<d||this.length<L)throw new RangeError("Out of range index");if(L<=d)return this;var P;if(d>>>=0,L=void 0===L?this.length:L>>>0,u||(u=0),"number"==typeof u)for(P=d;P<L;++P)this[P]=u;else{var z2=N.isBuffer(u)?u:N.from(u,z),w2=z2.length;if(0===w2)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(P=0;P<L-d;++P)this[P+d]=z2[P%w2]}return this};var Fi=/[^+/0-9A-Za-z-_]/g;function je(y,u){u=u||1/0;for(var d,L=y.length,z=null,R=[],P=0;P<L;++P){if((d=y.charCodeAt(P))>55295&&d<57344){if(!z){if(d>56319){(u-=3)>-1&&R.push(239,191,189);continue}if(P+1===L){(u-=3)>-1&&R.push(239,191,189);continue}z=d;continue}if(d<56320){(u-=3)>-1&&R.push(239,191,189),z=d;continue}d=65536+(z-55296<<10|d-56320)}else z&&(u-=3)>-1&&R.push(239,191,189);if(z=null,d<128){if((u-=1)<0)break;R.push(d)}else if(d<2048){if((u-=2)<0)break;R.push(d>>6|192,63&d|128)}else if(d<65536){if((u-=3)<0)break;R.push(d>>12|224,d>>6&63|128,63&d|128)}else{if(!(d<1114112))throw new Error("Invalid code point");if((u-=4)<0)break;R.push(d>>18|240,d>>12&63|128,d>>6&63|128,63&d|128)}}return R}function Bi(y){return a3.toByteArray(function v2(y){if((y=(y=y.split("=")[0]).trim().replace(Fi,"")).length<2)return"";for(;y.length%4!=0;)y+="=";return y}(y))}function Q5(y,u,d,L){for(var z=0;z<L&&!(z+d>=u.length||z>=y.length);++z)u[z+d]=y[z];return z}function s4(y,u){return y instanceof u||null!=y&&null!=y.constructor&&null!=y.constructor.name&&y.constructor.name===u.name}function P8(y){return y!=y}var Ui=function(){for(var y="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var L=16*d,z=0;z<16;++z)u[L+z]=y[d]+y[z];return u}()},461:(z6,D3)=>{D3.read=function(s1,K,a3,v1,q2){var H2,N2,n1=8*q2-v1-1,N=(1<<n1)-1,N1=N>>1,i1=-7,T1=a3?q2-1:0,O1=a3?-1:1,a2=s1[K+T1];for(T1+=O1,H2=a2&(1<<-i1)-1,a2>>=-i1,i1+=n1;i1>0;H2=256*H2+s1[K+T1],T1+=O1,i1-=8);for(N2=H2&(1<<-i1)-1,H2>>=-i1,i1+=v1;i1>0;N2=256*N2+s1[K+T1],T1+=O1,i1-=8);if(0===H2)H2=1-N1;else{if(H2===N)return N2?NaN:1/0*(a2?-1:1);N2+=Math.pow(2,v1),H2-=N1}return(a2?-1:1)*N2*Math.pow(2,H2-v1)},D3.write=function(s1,K,a3,v1,q2,H2){var N2,n1,N,N1=8*H2-q2-1,i1=(1<<N1)-1,T1=i1>>1,O1=23===q2?Math.pow(2,-24)-Math.pow(2,-77):0,a2=v1?0:H2-1,M2=v1?1:-1,U2=K<0||0===K&&1/K<0?1:0;for(K=Math.abs(K),isNaN(K)||K===1/0?(n1=isNaN(K)?1:0,N2=i1):(N2=Math.floor(Math.log(K)/Math.LN2),K*(N=Math.pow(2,-N2))<1&&(N2--,N*=2),(K+=N2+T1>=1?O1/N:O1*Math.pow(2,1-T1))*N>=2&&(N2++,N/=2),N2+T1>=i1?(n1=0,N2=i1):N2+T1>=1?(n1=(K*N-1)*Math.pow(2,q2),N2+=T1):(n1=K*Math.pow(2,T1-1)*Math.pow(2,q2),N2=0));q2>=8;s1[a3+a2]=255&n1,a2+=M2,n1/=256,q2-=8);for(N2=N2<<q2|n1,N1+=q2;N1>0;s1[a3+a2]=255&N2,a2+=M2,N2/=256,N1-=8);s1[a3+a2-M2]|=128*U2}}},z6=>{z6(z6.s=830)}]);
|