homebridge-eufy-security 2.2.4 → 2.3.0
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/CHANGELOG.md +39 -11
- package/README.md +26 -25
- package/dist/accessories/CameraAccessory.d.ts +55 -21
- package/dist/accessories/CameraAccessory.d.ts.map +1 -1
- package/dist/accessories/CameraAccessory.js +460 -214
- package/dist/accessories/CameraAccessory.js.map +1 -1
- package/dist/accessories/Device.d.ts +3 -3
- package/dist/accessories/Device.d.ts.map +1 -1
- package/dist/accessories/Device.js +15 -0
- package/dist/accessories/Device.js.map +1 -1
- package/dist/accessories/DoorbellCameraAccessory.d.ts +4 -1
- package/dist/accessories/DoorbellCameraAccessory.d.ts.map +1 -1
- package/dist/accessories/DoorbellCameraAccessory.js +65 -4
- package/dist/accessories/DoorbellCameraAccessory.js.map +1 -1
- package/dist/accessories/SmartLockAccessory.d.ts +2 -2
- package/dist/accessories/StationAccessory.d.ts +4 -0
- package/dist/accessories/StationAccessory.d.ts.map +1 -1
- package/dist/accessories/StationAccessory.js +64 -7
- package/dist/accessories/StationAccessory.js.map +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/controller/LocalLivestreamManager.d.ts +3 -8
- package/dist/controller/LocalLivestreamManager.d.ts.map +1 -1
- package/dist/controller/LocalLivestreamManager.js +4 -47
- package/dist/controller/LocalLivestreamManager.js.map +1 -1
- package/dist/controller/SnapshotManager.d.ts +1 -1
- package/dist/controller/SnapshotManager.d.ts.map +1 -1
- package/dist/controller/SnapshotManager.js +23 -1
- package/dist/controller/SnapshotManager.js.map +1 -1
- package/dist/controller/recordingDelegate.d.ts +29 -0
- package/dist/controller/recordingDelegate.d.ts.map +1 -0
- package/dist/controller/recordingDelegate.js +186 -0
- package/dist/controller/recordingDelegate.js.map +1 -0
- package/dist/controller/streamingDelegate.d.ts +6 -6
- package/dist/controller/streamingDelegate.d.ts.map +1 -1
- package/dist/controller/streamingDelegate.js +21 -60
- package/dist/controller/streamingDelegate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/platform.d.ts +6 -0
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +112 -66
- package/dist/platform.js.map +1 -1
- package/dist/utils/EufyClientInteractor.d.ts +36 -0
- package/dist/utils/EufyClientInteractor.d.ts.map +1 -0
- package/dist/utils/EufyClientInteractor.js +357 -0
- package/dist/utils/EufyClientInteractor.js.map +1 -0
- package/dist/utils/Talkback.d.ts +0 -1
- package/dist/utils/Talkback.d.ts.map +1 -1
- package/dist/utils/configTypes.d.ts +15 -5
- package/dist/utils/configTypes.d.ts.map +1 -1
- package/dist/utils/experimental.d.ts +4 -0
- package/dist/utils/experimental.d.ts.map +1 -0
- package/dist/utils/experimental.js +49 -0
- package/dist/utils/experimental.js.map +1 -0
- package/dist/utils/ffmpeg.d.ts +30 -4
- package/dist/utils/ffmpeg.d.ts.map +1 -1
- package/dist/utils/ffmpeg.js +322 -30
- package/dist/utils/ffmpeg.js.map +1 -1
- package/dist/utils/interfaces.d.ts +13 -0
- package/dist/utils/interfaces.d.ts.map +1 -0
- package/dist/utils/interfaces.js +12 -0
- package/dist/utils/interfaces.js.map +1 -0
- package/homebridge-ui/configui/app/accessory.d.ts +1 -1
- package/homebridge-ui/configui/app/accessory.d.ts.map +1 -1
- package/homebridge-ui/configui/app/util/types.d.ts +2 -2
- package/homebridge-ui/configui/app/util/types.d.ts.map +1 -1
- package/homebridge-ui/configui/app/util/types.js +1 -1
- package/homebridge-ui/configui/app/util/types.js.map +1 -1
- package/homebridge-ui/plugin/utils/EufyClientInteractor.d.ts +36 -0
- package/homebridge-ui/plugin/utils/EufyClientInteractor.d.ts.map +1 -0
- package/homebridge-ui/plugin/utils/EufyClientInteractor.js +357 -0
- package/homebridge-ui/plugin/utils/EufyClientInteractor.js.map +1 -0
- package/homebridge-ui/plugin/utils/experimental.d.ts +4 -0
- package/homebridge-ui/plugin/utils/experimental.d.ts.map +1 -0
- package/homebridge-ui/plugin/utils/experimental.js +49 -0
- package/homebridge-ui/plugin/utils/experimental.js.map +1 -0
- package/homebridge-ui/plugin/utils/interfaces.d.ts +13 -0
- package/homebridge-ui/plugin/utils/interfaces.d.ts.map +1 -0
- package/homebridge-ui/plugin/utils/interfaces.js +12 -0
- package/homebridge-ui/plugin/utils/interfaces.js.map +1 -0
- package/homebridge-ui/plugin/utils/logger.d.ts +12 -0
- package/homebridge-ui/plugin/utils/logger.d.ts.map +1 -0
- package/homebridge-ui/plugin/utils/logger.js +36 -0
- package/homebridge-ui/plugin/utils/logger.js.map +1 -0
- package/homebridge-ui/public/3rdpartylicenses.txt +191 -6
- package/homebridge-ui/public/index.html +2 -2
- package/homebridge-ui/public/main.22a0c49e2138888f.js +1 -0
- package/homebridge-ui/public/polyfills.6050693665c0e882.js +1 -0
- package/homebridge-ui/public/styles.e02689e7df4304da.css +6 -0
- package/homebridge-ui/server.js +17 -1
- package/homebridge-ui/server.js.map +1 -1
- package/package.json +48 -46
- package/homebridge-ui/public/assets/devices/4g_lte_starlight_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/garage_camera_t8452_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/smartdrop_t8790_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/smartsafe_s10_t7400_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/smartsafe_s12_t7401_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/walllight_s100_large.jpg +0 -0
- package/homebridge-ui/public/main.0d25748cc9303f6b.js +0 -1
- package/homebridge-ui/public/polyfills.cdb21ff95fdea645.js +0 -1
- package/homebridge-ui/public/styles.021488511c20c432.css +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{618:(E6,N3,s1)=>{"use strict";function K(t){return"function"==typeof t}function r3(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 _1=r3(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 _1?r.errors:[r]}const{_finalizers:a}=this;if(a){this._finalizers=null;for(const r of a)try{A(r)}catch(o){n=null!=n?n:[],o instanceof _1?n=[...n,...o.errors]:n.push(o)}}if(n)throw new _1(n)}}add(n){var e;if(n&&n!==this)if(this.closed)A(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 a1(t){return t instanceof H2||t&&"closed"in t&&K(t.remove)&&K(t.add)&&K(t.unsubscribe)}function A(t){K(t)?t():t.unsubscribe()}const T1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},r1={setTimeout(t,n,...e){const{delegate:i}=r1;return(null==i?void 0:i.setTimeout)?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=r1;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function E1(t){r1.setTimeout(()=>{const{onUnhandledError:n}=T1;if(!n)throw t;n(t)})}function R1(){}const r2=p1("C",void 0,void 0);function p1(t,n,e){return{kind:t,value:n,error:e}}let M1=null;function Z2(t){if(T1.useDeprecatedSynchronousErrorHandling){const n=!M1;if(n&&(M1={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=M1;if(M1=null,e)throw i}}else t()}class W3 extends H2{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,a1(n)&&n.add(this)):this.destination=Ii}static create(n,e,i){return new We(n,e,i)}next(n){this.isStopped?Kt(function G2(t){return p1("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Kt(function M2(t){return p1("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Kt(r2,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 s3=Function.prototype.bind;function o4(t,n){return s3.call(t,n)}class O8{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){A6(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){A6(i)}else A6(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){A6(e)}}}class We extends W3{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&&T1.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),a={next:n.next&&o4(n.next,r),error:n.error&&o4(n.error,r),complete:n.complete&&o4(n.complete,r)}):a=n}this.destination=new O8(a)}}function A6(t){T1.useDeprecatedSynchronousErrorHandling?function o3(t){T1.useDeprecatedSynchronousErrorHandling&&M1&&(M1.errorThrown=!0,M1.error=t)}(t):E1(t)}function Kt(t,n){const{onStoppedNotification:e}=T1;e&&r1.setTimeout(()=>e(t,n))}const Ii={closed:!0,next:R1,error:function ki(t){throw t},complete:R1},Yt="function"==typeof Symbol&&Symbol.observable||"@@observable";function s4(t){return t}let I2=(()=>{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 Pi(t){return t&&t instanceof W3||function Ri(t){return t&&K(t.next)&&K(t.error)&&K(t.complete)}(t)&&a1(t)}(e)?e:new We(e,i,a);return Z2(()=>{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=R8(i))((a,r)=>{const o=new We({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)}[Yt](){return this}pipe(...e){return function Qt(t){return 0===t.length?s4:1===t.length?t[0]:function(e){return t.reduce((i,a)=>a(i),e)}}(e)(this)}toPromise(e){return new(e=R8(e))((i,a)=>{let r;this.subscribe(o=>r=o,o=>a(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function R8(t){var n;return null!==(n=null!=t?t:T1.Promise)&&void 0!==n?n:Promise}const Fi=r3(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let d2=(()=>{class t extends I2{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 Fi}next(e){Z2(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Z2(()=>{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(){Z2(()=>{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 I2;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 Zt(t){return K(null==t?void 0:t.lift)}function c1(t){return n=>{if(Zt(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 P2(t,n,e,i,a){return new Bi(t,n,e,i,a)}class Bi extends W3{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(P2(i,r=>{i.next(t.call(n,r,a++))}))})}function w2(t){return this instanceof w2?(this.v=t,this):new w2(t)}function J2(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(g){i[g]&&(a[g]=function(v){return new Promise(function(V,H){r.push([g,v,V,H])>1||s(g,v)})})}function s(g,v){try{!function c(g){g.value instanceof w2?Promise.resolve(g.value.v).then(l,C):f(r[0][2],g)}(i[g](v))}catch(V){f(r[0][3],V)}}function l(g){s("next",g)}function C(g){s("throw",g)}function f(g,v){g(v),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 b(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 $i=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function ac(t){return K(null==t?void 0:t.then)}function rc(t){return K(t[Yt])}function oc(t){return Symbol.asyncIterator&&K(null==t?void 0:t[Symbol.asyncIterator])}function sc(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 cc=function lS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function lc(t){return K(null==t?void 0:t[cc])}function Cc(t){return J2(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 fc(t){return K(null==t?void 0:t.getReader)}function c3(t){if(t instanceof I2)return t;if(null!=t){if(rc(t))return function CS(t){return new I2(n=>{const e=t[Yt]();if(K(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if($i(t))return function fS(t){return new I2(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(ac(t))return function uS(t){return new I2(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,E1)})}(t);if(oc(t))return uc(t);if(lc(t))return function dS(t){return new I2(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(fc(t))return function hS(t){return uc(Cc(t))}(t)}throw sc(t)}function uc(t){return new I2(n=>{(function pS(t,n){var e,i,a,r;return function Gi(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 K4(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 H1(t,n,e=1/0){return K(n)?H1((i,a)=>v2((r,o)=>n(i,r,a,o))(c3(t(i,a))),e):("number"==typeof n&&(e=n),c1((i,a)=>function gS(t,n,e,i,a,r,o,s){const c=[];let l=0,C=0,f=!1;const g=()=>{f&&!c.length&&!l&&n.complete()},v=H=>l<i?V(H):c.push(H),V=H=>{r&&n.next(H),l++;let D=!1;c3(e(H,C++)).subscribe(P2(n,E=>{null==a||a(E),r?v(E):n.next(E)},()=>{D=!0},void 0,()=>{if(D)try{for(l--;c.length&&l<i;){const E=c.shift();o?K4(n,o,()=>V(E)):V(E)}g()}catch(E){n.error(E)}}))};return t.subscribe(P2(n,v,()=>{f=!0,g()})),()=>{null==s||s()}}(i,a,t,e)))}function e5(t=1/0){return H1(s4,t)}const l4=new I2(t=>t.complete());function dc(t){return t&&K(t.schedule)}function Wi(t){return t[t.length-1]}function U8(t){return K(Wi(t))?t.pop():void 0}function t5(t){return dc(Wi(t))?t.pop():void 0}function hc(t,n=0){return c1((e,i)=>{e.subscribe(P2(i,a=>K4(i,t,()=>i.next(a),n),()=>K4(i,t,()=>i.complete(),n),a=>K4(i,t,()=>i.error(a),n)))})}function pc(t,n=0){return c1((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function gc(t,n){if(!t)throw new Error("Iterable cannot be null");return new I2(e=>{K4(e,n,()=>{const i=t[Symbol.asyncIterator]();K4(e,n,()=>{i.next().then(a=>{a.done?e.complete():e.next(a.value)})},0,!0)})})}function $1(t,n){return n?function VS(t,n){if(null!=t){if(rc(t))return function _S(t,n){return c3(t).pipe(pc(n),hc(n))}(t,n);if($i(t))return function yS(t,n){return new I2(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(ac(t))return function MS(t,n){return c3(t).pipe(pc(n),hc(n))}(t,n);if(oc(t))return gc(t,n);if(lc(t))return function bS(t,n){return new I2(e=>{let i;return K4(e,n,()=>{i=t[cc](),K4(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(fc(t))return function LS(t,n){return gc(Cc(t),n)}(t,n)}throw sc(t)}(t,n):c3(t)}function mc(...t){const n=t5(t),e=function vS(t,n){return"number"==typeof Wi(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?c3(i[0]):e5(e)($1(i,n)):l4}function Q1(t){return t<=0?()=>l4:c1((n,e)=>{let i=0;n.subscribe(P2(e,a=>{++i<=t&&(e.next(a),t<=i&&e.complete())}))})}function vc(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 g=()=>{null==s||s.unsubscribe(),s=null},v=()=>{g(),o=c=null,C=f=!1},V=()=>{const H=o;v(),null==H||H.unsubscribe()};return c1((H,D)=>{l++,!f&&!C&&g();const E=c=null!=c?c:n();D.add(()=>{l--,0===l&&!f&&!C&&(s=qi(V,a))}),E.subscribe(D),o||(o=new We({next:w=>E.next(w),error:w=>{f=!0,g(),s=qi(v,e,w),E.error(w)},complete:()=>{C=!0,g(),s=qi(v,i),E.complete()}}),$1(H).subscribe(o))})(r)}}function qi(t,n,...e){return!0===n?(t(),null):!1===n?null:n(...e).pipe(Q1(1)).subscribe(()=>t())}function j2(t){for(let n in t)if(t[n]===j2)return n;throw Error("Could not find renamed property on target object.")}function Ki(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function O2(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(O2).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 Yi(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const HS=j2({__forward_ref__:j2});function x2(t){return t.__forward_ref__=x2,t.toString=function(){return O2(this())},t}function h2(t){return _c(t)?t():t}function _c(t){return"function"==typeof t&&t.hasOwnProperty(HS)&&t.__forward_ref__===x2}class S2 extends Error{constructor(n,e){super(function Qi(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 G8(t,n){const e=n?` in ${n}`:"";throw new S2(-201,`No provider for ${Z1(t)} found${e}`)}function E3(t,n){null==t&&function $2(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Z(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 Zi(t){return Mc(t,j8)||Mc(t,bc)}function Mc(t,n){return t.hasOwnProperty(n)?t[n]:null}function yc(t){return t&&(t.hasOwnProperty(Ji)||t.hasOwnProperty(TS))?t[Ji]:null}const j8=j2({\u0275prov:j2}),Ji=j2({\u0275inj:j2}),bc=j2({ngInjectableDef:j2}),TS=j2({ngInjectorDef:j2});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 Xi;function ye(t){const n=Xi;return Xi=t,n}function Lc(t,n,e){const i=Zi(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 G8(O2(t),"Injector")}function be(t){return{toString:t}.toString()}var C4=(()=>((C4=C4||{})[C4.OnPush=0]="OnPush",C4[C4.Default=1]="Default",C4))(),D4=(()=>{return(t=D4||(D4={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",D4;var t})();const AS="undefined"!=typeof globalThis&&globalThis,kS="undefined"!=typeof window&&window,IS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,F2=AS||"undefined"!=typeof global&&global||kS||IS,k6={},W2=[],$8=j2({\u0275cmp:j2}),ea=j2({\u0275dir:j2}),ta=j2({\u0275pipe:j2}),Vc=j2({\u0275mod:j2}),Q4=j2({\u0275fac:j2}),n5=j2({__NG_ELEMENT_ID__:j2});let OS=0;function t2(t){return be(()=>{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===C4.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||W2,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||D4.Emulated,id:"c",styles:t.styles||W2,_:null,setInput:null,schemas:t.schemas||null,tView:null},a=t.directives,r=t.features,o=t.pipes;return i.id+=OS++,i.inputs=Sc(t.inputs,e),i.outputs=Sc(t.outputs),r&&r.forEach(s=>s(i)),i.directiveDefs=a?()=>("function"==typeof a?a():a).map(Hc):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(wc):null,i})}function Hc(t){return l3(t)||function Le(t){return t[ea]||null}(t)}function wc(t){return function Ke(t){return t[ta]||null}(t)}const zc={};function k2(t){return be(()=>{const n={type:t.type,bootstrap:t.bootstrap||W2,declarations:t.declarations||W2,imports:t.imports||W2,exports:t.exports||W2,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(zc[t.id]=t.type),n})}function Sc(t,n){if(null==t)return k6;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=t2;function l3(t){return t[$8]||null}function q3(t,n){const e=t[Vc]||null;if(!e&&!0===n)throw new Error(`Type ${O2(t)} does not have '\u0275mod' property.`);return e}function x4(t){return Array.isArray(t)&&"object"==typeof t[1]}function u4(t){return Array.isArray(t)&&!0===t[1]}function aa(t){return 0!=(8&t.flags)}function Y8(t){return 2==(2&t.flags)}function Q8(t){return 1==(1&t.flags)}function d4(t){return null!==t.template}function GS(t){return 0!=(512&t[2])}function Je(t,n){return t.hasOwnProperty(Q4)?t[Q4]:null}class WS{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function y1(){return xc}function xc(t){return t.type.prototype.ngOnChanges&&(t.setInput=KS),qS}function qS(){const t=Tc(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===k6)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function KS(t,n,e,i){const a=Tc(t)||function YS(t,n){return t[Nc]=n}(t,{previous:k6,current:null}),r=a.current||(a.current={}),o=a.previous,s=this.declaredInputs[e],c=o[s];r[s]=new WS(c&&c.currentValue,n,o===k6),t[i]=n}y1.ngInherit=!0;const Nc="__ngSimpleChanges__";function Tc(t){return t[Nc]||null}let la;function Ca(){return void 0!==la?la:"undefined"!=typeof document?document:void 0}function b1(t){return!!t.listen}const Ec={createRenderer:(t,n)=>Ca()};function A1(t){for(;Array.isArray(t);)t=t[0];return t}function Z8(t,n){return A1(n[t])}function Q3(t,n){return A1(n[t.index])}function fa(t,n){return t.data[n]}function k3(t,n){const e=n[t];return x4(e)?e:e[0]}function Ac(t){return 4==(4&t[2])}function ua(t){return 128==(128&t[2])}function Ve(t,n){return null==n?null:t[n]}function kc(t){t[18]=0}function da(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:jc(null),bindingsEnabled:!0};function Oc(){return l2.bindingsEnabled}function R(){return l2.lFrame.lView}function D2(){return l2.lFrame.tView}function I(t){return l2.lFrame.contextLView=t,t[8]}function P1(){let t=Rc();for(;null!==t&&64===t.type;)t=t.parent;return t}function Rc(){return l2.lFrame.currentTNode}function N4(t,n){const e=l2.lFrame;e.currentTNode=t,e.isParent=n}function ha(){return l2.lFrame.isParent}function pa(){l2.lFrame.isParent=!1}function B6(){return l2.lFrame.bindingIndex++}function J4(t){const n=l2.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function uD(t,n){const e=l2.lFrame;e.bindingIndex=e.bindingRootIndex=t,ga(n)}function ga(t){l2.lFrame.currentDirectiveIndex=t}function Bc(){return l2.lFrame.currentQueryIndex}function va(t){l2.lFrame.currentQueryIndex=t}function hD(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Uc(t,n,e){if(e&o2.SkipSelf){let a=n,r=t;for(;!(a=a.parent,null!==a||e&o2.Host||(a=hD(r),null===a||(r=r[15],10&a.type))););if(null===a)return!1;n=a,t=r}const i=l2.lFrame=Gc();return i.currentTNode=n,i.lView=t,!0}function X8(t){const n=Gc(),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 Gc(){const t=l2.lFrame,n=null===t?null:t.child;return null===n?jc(t):n}function jc(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 $c(){const t=l2.lFrame;return l2.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Wc=$c;function en(){const t=$c();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 He(t){l2.lFrame.selectedIndex=t}function L1(){const t=l2.lFrame;return fa(t.tView,t.selectedIndex)}function U6(){l2.lFrame.currentNamespace="svg"}function G6(){!function vD(){l2.lFrame.currentNamespace=null}()}function tn(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 nn(t,n,e){qc(t,n,3,e)}function an(t,n,e,i){(3&t[2])===e&&qc(t,n,e,i)}function _a(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function qc(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)&&(yD(t,e,n,c),t[18]=(4294901760&t[18])+c+2),c++}function yD(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 s5{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function rn(t,n,e){const i=b1(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];ya(o)?i&&t.setProperty(n,o,s):i?t.setAttribute(n,o,s):n.setAttribute(o,s),a++}}return a}function Kc(t){return 3===t||4===t||6===t}function ya(t){return 64===t.charCodeAt(0)}function on(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||Yc(t,e,a,null,-1===e||2===e?n[++i]:null)}}return t}function Yc(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 Qc(t){return-1!==t}function j6(t){return 32767&t}function $6(t,n){let e=function wD(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let ba=!0;function sn(t){const n=ba;return ba=t,n}let zD=0;function l5(t,n){const e=Va(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=cn(t,n),r=t.injectorIndex;if(Qc(a)){const o=j6(a),s=$6(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 Va(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function cn(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 ln(t,n,e){!function SD(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(n5)&&(i=e[n5]),null==i&&(i=e[n5]=zD++);const a=255&i;n.data[t+(a>>5)]|=1<<a}(t,n,e)}function Xc(t,n,e){if(e&o2.Optional)return t;G8(n,"NodeInjector")}function el(t,n,e,i){if(e&o2.Optional&&void 0===i&&(i=null),0==(e&(o2.Self|o2.Host))){const a=t[9],r=ye(void 0);try{return a?a.get(n,i,e&o2.Optional):Lc(n,i,e&o2.Optional)}finally{ye(r)}}return Xc(i,n,e)}function tl(t,n,e,i=o2.Default,a){if(null!==t){const r=function TD(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(n5)?t[n5]:void 0;return"number"==typeof n?n>=0?255&n:xD:n}(e);if("function"==typeof r){if(!Uc(n,t,i))return i&o2.Host?Xc(a,e,i):el(n,e,i,a);try{const o=r(i);if(null!=o||i&o2.Optional)return o;G8(e)}finally{Wc()}}else if("number"==typeof r){let o=null,s=Va(t,n),c=-1,l=i&o2.Host?n[16][6]:null;for((-1===s||i&o2.SkipSelf)&&(c=-1===s?cn(t,n):n[s+8],-1!==c&&al(i,!1)?(o=n[1],s=j6(c),n=$6(c,n)):s=-1);-1!==s;){const C=n[1];if(il(r,s,C.data)){const f=ND(s,n,e,o,i,l);if(f!==nl)return f}c=n[s+8],-1!==c&&al(i,n[1].data[s+8]===l)&&il(r,s,n)?(o=C,s=j6(c),n=$6(c,n)):s=-1}}}return el(n,e,i,a)}const nl={};function xD(){return new W6(P1(),R())}function ND(t,n,e,i,a,r){const o=n[1],s=o.data[t+8],C=Cn(s,o,e,null==i?Y8(s)&&ba:i!=o&&0!=(3&s.type),a&o2.Host&&r===s);return null!==C?C5(n,o,C,s):nl}function Cn(t,n,e,i,a){const r=t.providerIndexes,o=n.data,s=1048575&r,c=t.directiveStart,C=r>>20,g=a?s+C:t.directiveEnd;for(let v=i?s:s+C;v<g;v++){const V=o[v];if(v<c&&e===V||v>=c&&V.type===e)return v}if(a){const v=o[c];if(v&&d4(v)&&v.type===e)return c}return null}function C5(t,n,e,i){let a=t[e];const r=n.data;if(function bD(t){return t instanceof s5}(a)){const o=a;o.resolving&&function wS(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=sn(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?ye(o.injectImpl):null;Uc(t,i,o2.Default);try{a=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function MD(t,n,e){const{ngOnChanges:i,ngOnInit:a,ngDoCheck:r}=n.type.prototype;if(i){const o=xc(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&&ye(c),sn(s),o.resolving=!1,Wc()}}return a}function il(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function al(t,n){return!(t&o2.Self||t&o2.Host&&n)}class W6{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return tl(this._tNode,this._lView,n,i,e)}}function f3(t){return be(()=>{const n=t.prototype.constructor,e=n[Q4]||Ha(n),i=Object.prototype;let a=Object.getPrototypeOf(t.prototype).constructor;for(;a&&a!==i;){const r=a[Q4]||Ha(a);if(r&&r!==e)return r;a=Object.getPrototypeOf(a)}return r=>new r})}function Ha(t){return _c(t)?()=>{const n=Ha(h2(t));return n&&n()}:Je(t)}const K6="__parameters__";function Q6(t,n,e){return be(()=>{const i=function wa(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(K6)?c[K6]:Object.defineProperty(c,K6,{value:[]})[K6];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=Z({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const AD=new _2("AnalyzeForEntryComponents");function Z3(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)),Z3(i,n)):n!==t&&n.push(i)}return n}function T4(t,n){t.forEach(e=>Array.isArray(e)?T4(e,n):n(e))}function ol(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function fn(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function d5(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function I3(t,n,e){let i=Z6(t,n);return i>=0?t[1|i]=e:(i=~i,function OD(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 Sa(t,n){const e=Z6(t,n);if(e>=0)return t[1|e]}function Z6(t,n){return function ll(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 h5={},xa="__NG_DI_FLAG__",dn="ngTempTokenPath",jD=/\n/gm,fl="__source",WD=j2({provide:String,useValue:j2});let p5;function ul(t){const n=p5;return p5=t,n}function qD(t,n=o2.Default){if(void 0===p5)throw new S2(203,"");return null===p5?Lc(t,void 0,n):p5.get(t,n&o2.Optional?null:void 0,n)}function q(t,n=o2.Default){return(function ES(){return Xi}()||qD)(h2(t),n)}const KD=q;function Na(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=YD(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 g5(t,n){return t[xa]=n,t.prototype[xa]=n,t}function YD(t){return t[xa]}const hn=g5(Q6("Inject",t=>({token:t})),-1),ze=g5(Q6("Optional"),8),m5=g5(Q6("SkipSelf"),4);let gn,mn;function X6(t){var n;return(null===(n=function Ea(){if(void 0===gn&&(gn=null,F2.trustedTypes))try{gn=F2.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return gn}())||void 0===n?void 0:n.createHTML(t))||t}function vl(t){var n;return(null===(n=function Aa(){if(void 0===mn&&(mn=null,F2.trustedTypes))try{mn=F2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return mn}())||void 0===n?void 0:n.createHTML(t))||t}class e6{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class cx extends e6{getTypeName(){return"HTML"}}class lx extends e6{getTypeName(){return"Style"}}class Cx extends e6{getTypeName(){return"Script"}}class fx extends e6{getTypeName(){return"URL"}}class ux extends e6{getTypeName(){return"ResourceURL"}}function O3(t){return t instanceof e6?t.changingThisBreaksApplicationSecurity:t}function E4(t,n){const e=yl(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 yl(t){return t instanceof e6&&t.getTypeName()||null}class vx{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(X6(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class _x{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=X6(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=X6(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 yx=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,bx=/^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 _5(t){return(t=String(t)).match(yx)||t.match(bx)?t:"unsafe:"+t}function A4(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function M5(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Vl=A4("area,br,col,hr,img,wbr"),Hl=A4("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wl=A4("rp,rt"),ka=M5(Vl,M5(Hl,A4("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")),M5(wl,A4("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")),M5(wl,Hl)),Ia=A4("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Oa=A4("srcset"),zl=M5(Ia,Oa,A4("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"),A4("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=A4("script,style,template");class Vx{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(!ka.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(!zl.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let c=r.value;Ia[s]&&(c=_5(c)),Oa[s]&&(t=c,c=(t=String(t)).split(",").map(n=>_5(n.trim())).join(", ")),this.buf.push(" ",o,'="',Sl(c),'"')}var t;return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();ka.hasOwnProperty(e)&&!Vl.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Sl(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 Hx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wx=/([^\#-~ |!])/g;function Sl(t){return t.replace(/&/g,"&").replace(Hx,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(wx,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let vn;function Dl(t,n){let e=null;try{vn=vn||function bl(t){const n=new _x(t);return function Mx(){try{return!!(new window.DOMParser).parseFromString(X6(""),"text/html")}catch(t){return!1}}()?new vx(n):n}(t);let i=n?String(n):"";e=vn.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=vn.getInertBodyElement(i)}while(i!==r);return X6((new Vx).sanitizeChildren(Ra(e)||e))}finally{if(e){const i=Ra(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Ra(t){return"content"in t&&function zx(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var e1=(()=>((e1=e1||{})[e1.NONE=0]="NONE",e1[e1.HTML=1]="HTML",e1[e1.STYLE=2]="STYLE",e1[e1.SCRIPT=3]="SCRIPT",e1[e1.URL=4]="URL",e1[e1.RESOURCE_URL=5]="RESOURCE_URL",e1))();function xl(t){const n=y5();return n?vl(n.sanitize(e1.HTML,t)||""):E4(t,"HTML")?vl(O3(t)):Dl(Ca(),c2(t))}function M3(t){const n=y5();return n?n.sanitize(e1.STYLE,t)||"":E4(t,"Style")?O3(t):c2(t)}function t6(t){const n=y5();return n?n.sanitize(e1.URL,t)||"":E4(t,"URL")?O3(t):_5(c2(t))}function y5(){const t=R();return t&&t[12]}const El="__ngContext__";function u3(t,n){t[El]=n}function Fa(t){const n=function b5(t){return t[El]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function Ua(t){return t.ngOriginalError}function Ux(t,...n){t.error(...n)}class L5{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function Bx(t){return t&&t.ngErrorLogger||Ux}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Ua(n);for(;e&&Ua(e);)e=Ua(e);return e||null}}const Jx=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F2))();function k4(t){return t instanceof Function?t():t}var R3=(()=>((R3=R3||{})[R3.Important=1]="Important",R3[R3.DashCase=2]="DashCase",R3))();function ja(t,n){return undefined(t,n)}function V5(t){const n=t[3];return u4(n)?n[3]:n}function $a(t){return Ul(t[13])}function Wa(t){return Ul(t[4])}function Ul(t){for(;null!==t&&!u4(t);)t=t[4];return t}function tt(t,n,e,i,a){if(null!=i){let r,o=!1;u4(i)?r=i:x4(i)&&(o=!0,i=i[0]);const s=A1(i);0===t&&null!==e?null==a?Kl(n,e,s):n6(n,e,s,a||null,!0):1===t&&null!==e?n6(n,e,s,a||null,!0):2===t?function tC(t,n,e){const i=_n(t,n);i&&function uN(t,n,e,i){b1(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,s,o):3===t&&n.destroyNode(s),null!=r&&function pN(t,n,e,i,a){const r=e[7];r!==A1(e)&&tt(n,t,i,r,a);for(let s=10;s<e.length;s++){const c=e[s];H5(c[1],c,t,n,i,r)}}(n,t,r,e,a)}}function Ka(t,n,e){if(b1(t))return t.createElement(n,e);{const i=null!==e?function XS(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 jl(t,n){const e=t[9],i=e.indexOf(n),a=n[3];1024&n[2]&&(n[2]&=-1025,da(a,-1)),e.splice(i,1)}function Ya(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const a=i[17];null!==a&&a!==t&&jl(a,i),n>0&&(t[e-1][4]=i[4]);const r=fn(t,10+n);!function aN(t,n){H5(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 $l(t,n){if(!(256&n[2])){const e=n[11];b1(e)&&e.destroyNode&&H5(t,n,e,3,null,null),function sN(t){let n=t[13];if(!n)return Qa(t[1],t);for(;n;){let e=null;if(x4(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)x4(n)&&Qa(n[1],n),n=n[3];null===n&&(n=t),x4(n)&&Qa(n[1],n),e=n&&n[4]}n=e}}(n)}}function Qa(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function fN(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 s5)){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 CN(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):A1(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&&b1(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&u4(n[3])){e!==n[3]&&jl(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function Wl(t,n,e){return function ql(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===D4.None||a===D4.Emulated)return null}return Q3(i,e)}(t,n.parent,e)}function n6(t,n,e,i,a){b1(t)?t.insertBefore(n,e,i,a):n.insertBefore(e,i,a)}function Kl(t,n,e){b1(t)?t.appendChild(n,e):n.appendChild(e)}function Yl(t,n,e,i,a){null!==i?n6(t,n,e,i,a):Kl(t,n,e)}function _n(t,n){return b1(t)?t.parentNode(n):n.parentNode}function Ql(t,n,e){return Jl(t,n,e)}let Jl=function Zl(t,n,e){return 40&t.type?Q3(t,e):null};function Mn(t,n,e,i){const a=Wl(t,i,n),r=n[11],s=Ql(i.parent||n[6],i,n);if(null!=a)if(Array.isArray(e))for(let c=0;c<e.length;c++)Yl(r,a,e[c],s,!1);else Yl(r,a,e,s,!1)}function yn(t,n){if(null!==n){const e=n.type;if(3&e)return Q3(n,t);if(4&e)return Ja(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return yn(t,i);{const a=t[n.index];return u4(a)?Ja(-1,a):A1(a)}}if(32&e)return ja(n,t)()||A1(t[n.index]);{const i=eC(t,n);return null!==i?Array.isArray(i)?i[0]:yn(V5(t[16]),i):yn(t,n.next)}}return null}function eC(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Ja(t,n){const e=10+t+1;if(e<n.length){const i=n[e],a=i[1].firstChild;if(null!==a)return yn(i,a)}return n[7]}function Xa(t,n,e,i,a,r,o){for(;null!=e;){const s=i[e.index],c=e.type;if(o&&0===n&&(s&&u3(A1(s),i),e.flags|=4),64!=(64&e.flags))if(8&c)Xa(t,n,e.child,i,a,r,!1),tt(n,t,a,s,r);else if(32&c){const l=ja(e,i);let C;for(;C=l();)tt(n,t,a,C,r);tt(n,t,a,s,r)}else 16&c?nC(t,n,i,e,a,r):tt(n,t,a,s,r);e=o?e.projectionNext:e.next}}function H5(t,n,e,i,a,r){Xa(e,i,t.firstChild,n,a,r,!1)}function nC(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++)tt(n,t,a,c[l],r);else Xa(t,n,c,o[3],a,r,!0)}function iC(t,n,e){b1(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function er(t,n,e){b1(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function aC(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 rC="ng-template";function mN(t,n,e){let i=0;for(;i<t.length;){let a=t[i++];if(e&&"class"===a){if(a=t[i],-1!==aC(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 oC(t){return 4===t.type&&t.value!==rC}function vN(t,n,e){return n===(4!==t.type||e?t.value:rC)}function _N(t,n,e){let i=4;const a=t.attrs||[],r=function bN(t){for(let n=0;n<t.length;n++)if(Kc(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&&!vN(t,c,e)||""===c&&1===n.length){if(h4(i))return!1;o=!0}}else{const l=8&i?c:n[++s];if(8&i&&null!==t.attrs){if(!mN(t.attrs,l,e)){if(h4(i))return!1;o=!0}continue}const f=MN(8&i?"class":c,a,oC(t),e);if(-1===f){if(h4(i))return!1;o=!0;continue}if(""!==l){let g;g=f>r?"":a[f+1].toLowerCase();const v=8&i?g:null;if(v&&-1!==aC(v,l,0)||2&i&&l!==g){if(h4(i))return!1;o=!0}}}}else{if(!o&&!h4(i)&&!h4(c))return!1;if(o&&h4(c))continue;o=!1,i=c|1&i}}return h4(i)||o}function h4(t){return 0==(1&t)}function MN(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 sC(t,n,e=!1){for(let i=0;i<n.length;i++)if(_N(t,n[i],e))return!0;return!1}function VN(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 cC(t,n){return t?":not("+n.trim()+")":n}function HN(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&&!h4(o)&&(n+=cC(r,a),a=""),i=o,r=r||!h4(i);e++}return""!==a&&(n+=cC(r,a)),n}const C2={};function m(t){lC(D2(),R(),_3()+t,!1)}function lC(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&nn(n,r,e)}else{const r=t.preOrderHooks;null!==r&&an(n,r,0,e)}He(e)}function bn(t,n){return t<<17|n<<2}function p4(t){return t>>17&32767}function tr(t){return 2|t}function X4(t){return(131068&t)>>2}function nr(t,n){return-131069&t|n<<2}function ir(t){return 1|t}function MC(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];va(a),o.contentQueries(2,n[r],r)}}}function w5(t,n,e,i,a,r,o,s,c,l){const C=n.blueprint.slice();return C[0]=a,C[2]=140|i,kc(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 nt(t,n,e,i,a){let r=t.data[n];if(null===r)r=function ur(t,n,e,i,a){const r=Rc(),o=ha(),c=t.data[n]=function GN(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 fD(){return l2.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=a;const o=function o5(){const t=l2.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return N4(r,!0),r}function it(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 z5(t,n,e){X8(n);try{const i=t.viewQuery;null!==i&&yr(1,i,e);const a=t.template;null!==a&&yC(t,n,a,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&MC(t,n),t.staticViewQueries&&yr(2,t.viewQuery,e);const r=t.components;null!==r&&function FN(t,n){for(let e=0;e<n.length;e++)sT(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,en()}}function at(t,n,e,i){const a=n[2];if(256!=(256&a)){X8(n);try{kc(n),function Pc(t){return l2.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&yC(t,n,e,2,i);const o=3==(3&a);if(o){const l=t.preOrderCheckHooks;null!==l&&nn(n,l,null)}else{const l=t.preOrderHooks;null!==l&&an(n,l,0,null),_a(n,0)}if(function rT(t){for(let n=$a(t);null!==n;n=Wa(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])&&da(r,1),a[2]|=1024}}}(n),function aT(t){for(let n=$a(t);null!==n;n=Wa(n))for(let e=10;e<n.length;e++){const i=n[e],a=i[1];ua(i)&&at(a,i,a.template,i[8])}}(n),null!==t.contentQueries&&MC(t,n),o){const l=t.contentCheckHooks;null!==l&&nn(n,l)}else{const l=t.contentHooks;null!==l&&an(n,l,1),_a(n,1)}!function RN(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)He(~a);else{const r=a,o=e[++i],s=e[++i];uD(o,r),s(2,n[r])}}}finally{He(-1)}}(t,n);const s=t.components;null!==s&&function PN(t,n){for(let e=0;e<n.length;e++)oT(t,n[e])}(n,s);const c=t.viewQuery;if(null!==c&&yr(2,c,i),o){const l=t.viewCheckHooks;null!==l&&nn(n,l)}else{const l=t.viewHooks;null!==l&&an(n,l,2),_a(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,da(n[3],-1))}finally{en()}}}function BN(t,n,e,i){const a=n[10],o=Ac(n);try{!o&&a.begin&&a.begin(),o&&z5(t,n,i),at(t,n,e,i)}finally{!o&&a.end&&a.end()}}function yC(t,n,e,i,a){const r=_3(),o=2&i;try{He(-1),o&&n.length>20&&lC(t,n,20,!1),e(i,a)}finally{He(r)}}function dr(t,n,e){!Oc()||(function QN(t,n,e,i){const a=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||l5(e,n),u3(i,n);const o=e.initialInputs;for(let s=a;s<r;s++){const c=t.data[s],l=d4(c);l&&tT(n,e,c);const C=C5(n,t,s,e);u3(C,n),null!==o&&nT(0,s-a,C,c,0,o),l&&(k3(e.index,n)[8]=C)}}(t,n,e,Q3(e,n)),128==(128&e.flags)&&function ZN(t,n,e){const i=e.directiveStart,a=e.directiveEnd,o=e.index,s=function dD(){return l2.lFrame.currentDirectiveIndex}();try{He(o);for(let c=i;c<a;c++){const l=t.data[c],C=n[c];ga(c),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&xC(l,C)}}finally{He(-1),ga(s)}}(t,n,e))}function hr(t,n,e=Q3){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 LC(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Hn(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Hn(t,n,e,i,a,r,o,s,c,l){const C=20+i,f=C+a,g=function UN(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:C2);return e}(C,f),v="function"==typeof l?l():l;return g[1]={type:t,blueprint:g,template:e,queries:null,viewQuery:s,declTNode:n,data:g.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:v,incompleteFirstPass:!1}}function wC(t,n,e,i){const a=IC(n);null===e?a.push(i):(a.push(e),t.firstCreatePass&&OC(t).push(i,a.length-1))}function zC(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 P3(t,n,e,i,a,r,o,s){const c=Q3(n,e);let C,l=n.inputs;!s&&null!=l&&(C=l[i])?(FC(t,e,C,i,a),Y8(n)&&function WN(t,n){const e=k3(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function $N(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,b1(r)?r.setProperty(c,i,a):ya(i)||(c.setProperty?c.setProperty(i,a):c[i]=a))}function pr(t,n,e,i){let a=!1;if(Oc()){const r=function JN(t,n,e){const i=t.directiveRegistry;let a=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];sC(e,o.selectors,!1)&&(a||(a=[]),ln(l5(e,n),t,o.type),d4(o)?(NC(t,e),a.unshift(o)):a.push(o))}return a}(t,n,e),o=null===i?null:{"":-1};if(null!==r){a=!0,TC(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=it(t,n,r.length,null);for(let C=0;C<r.length;C++){const f=r[C];e.mergedAttrs=on(e.mergedAttrs,f.hostAttrs),EC(t,e,n,l,f),eT(l,f,o),null!==f.contentQueries&&(e.flags|=8),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(e.flags|=128);const g=f.type.prototype;!s&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),s=!0),!c&&(g.ngOnChanges||g.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),c=!0),l++}!function jN(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,g=null===r||oC(n)?null:iT(f,r);o.push(g),s=zC(f,l,s),c=zC(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 XN(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=on(e.mergedAttrs,e.attrs),a}function DC(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 YN(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 xC(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function NC(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function eT(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;d4(n)&&(e[""]=t)}}function TC(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function EC(t,n,e,i,a){t.data[i]=a;const r=a.factory||(a.factory=Je(a.type)),o=new s5(r,d4(a),null);t.blueprint[i]=o,e[i]=o,DC(t,n,0,i,it(t,e,a.hostVars,C2),a)}function tT(t,n,e){const i=Q3(n,t),a=LC(e),r=t[10],o=wn(t,w5(t,a,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function I4(t,n,e,i,a,r){const o=Q3(t,n);!function gr(t,n,e,i,a,r,o){if(null==r)b1(t)?t.removeAttribute(n,a,e):n.removeAttribute(a);else{const s=null==o?c2(r):o(r,i||"",a);b1(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 nT(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 iT(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 AC(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function oT(t,n){const e=k3(n,t);if(ua(e)){const i=e[1];80&e[2]?at(i,e,i.template,e[8]):e[5]>0&&mr(e)}}function mr(t){for(let i=$a(t);null!==i;i=Wa(i))for(let a=10;a<i.length;a++){const r=i[a];if(1024&r[2]){const o=r[1];at(o,r,o.template,r[8])}else r[5]>0&&mr(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const a=k3(e[i],t);ua(a)&&a[5]>0&&mr(a)}}function sT(t,n){const e=k3(n,t),i=e[1];(function cT(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),z5(i,e,e[8])}function wn(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function vr(t){for(;t;){t[2]|=64;const n=V5(t);if(GS(t)&&!n)return t;t=n}return null}function kC(t){!function _r(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=Fa(e),a=i[1];BN(a,i,a.template,e)}}(t[8])}function yr(t,n,e){va(0),n(t,e)}const CT=(()=>Promise.resolve(null))();function IC(t){return t[7]||(t[7]=[])}function OC(t){return t.cleanup||(t.cleanup=[])}function PC(t,n){const e=t[9],i=e?e.get(L5,null):null;i&&i.handleError(n)}function FC(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 ee(t,n,e){const i=Z8(n,t);!function Gl(t,n,e){b1(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function zn(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=Yi(a,s):2==r&&(i=Yi(i,s+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=a:t.classesWithoutHost=a}const br=new _2("INJECTOR",-1);class BC{get(n,e=h5){if(e===h5){const i=new Error(`NullInjectorError: No provider for ${O2(n)}!`);throw i.name="NullInjectorError",i}return e}}const Lr=new _2("Set Injector scope."),S5={},dT={};let Vr;function UC(){return void 0===Vr&&(Vr=new BC),Vr}function GC(t,n=null,e=null,i){const a=jC(t,n,e,i);return a._resolveInjectorDefTypes(),a}function jC(t,n=null,e=null,i){return new hT(t,e,n||UC(),i)}class hT{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&&T4(e,s=>this.processProvider(s,n,e)),T4([n],s=>this.processInjectorType(s,[],r)),this.records.set(br,rt(void 0,this));const o=this.records.get(Lr);this.scope=null!=o?o.value:null,this.source=a||("object"==typeof n?null:O2(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=h5,i=o2.Default){this.assertNotDestroyed();const a=ul(this),r=ye(void 0);try{if(!(i&o2.SkipSelf)){let s=this.records.get(n);if(void 0===s){const c=function bT(t){return"function"==typeof t||"object"==typeof t&&t instanceof _2}(n)&&Zi(n);s=c&&this.injectableDefInScope(c)?rt(Hr(n),S5):null,this.records.set(n,s)}if(null!=s)return this.hydrate(n,s)}return(i&o2.Self?UC():this.parent).get(n,e=i&o2.Optional&&e===h5?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[dn]=o[dn]||[]).unshift(O2(n)),a)throw o;return function QD(t,n,e,i){const a=t[dn];throw n[fl]&&a.unshift(n[fl]),t.message=function ZD(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let a=O2(n);if(Array.isArray(n))a=n.map(O2).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):O2(s)))}a=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${a}]: ${t.replace(jD,"\n ")}`}("\n"+t.message,a,e,i),t.ngTokenPath=a,t[dn]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{ye(r),ul(a)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,a)=>n.push(O2(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=yc(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=yc(r)),null==a)return!1;if(null!=a.imports&&!s){let C;i.push(o);try{T4(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:g,providers:v}=C[f];T4(v,V=>this.processProvider(V,g,v||W2))}}this.injectorDefTypes.add(o);const c=Je(o)||(()=>new o);this.records.set(o,rt(c,S5));const l=a.providers;if(null!=l&&!s){const C=n;T4(l,f=>this.processProvider(f,C,l))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let a=ot(n=h2(n))?n:h2(n&&n.provide);const r=function gT(t,n,e){return WC(t)?rt(void 0,t.useValue):rt($C(t),S5)}(n);if(ot(n)||!0!==n.multi)this.records.get(a);else{let o=this.records.get(a);o||(o=rt(void 0,S5,!0),o.factory=()=>Na(o.multi),this.records.set(a,o)),a=n,o.multi.push(n)}this.records.set(a,r)}hydrate(n,e){return e.value===S5&&(e.value=dT,e.value=e.factory()),"object"==typeof e.value&&e.value&&function yT(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 Hr(t){const n=Zi(t),e=null!==n?n.factory:Je(t);if(null!==e)return e;if(t instanceof _2)throw new S2(204,!1);if(t instanceof Function)return function pT(t){const n=t.length;if(n>0)throw d5(n,"?"),new S2(204,!1);const e=function xS(t){const n=t&&(t[j8]||t[bc]);if(n){const e=function NS(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 $C(t,n,e){let i;if(ot(t)){const a=h2(t);return Je(a)||Hr(a)}if(WC(t))i=()=>h2(t.useValue);else if(function vT(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Na(t.deps||[]));else if(function mT(t){return!(!t||!t.useExisting)}(t))i=()=>q(h2(t.useExisting));else{const a=h2(t&&(t.useClass||t.provide));if(!function MT(t){return!!t.deps}(t))return Je(a)||Hr(a);i=()=>new a(...Na(t.deps))}return i}function rt(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function WC(t){return null!==t&&"object"==typeof t&&WD in t}function ot(t){return"function"==typeof t}let k1=(()=>{class t{static create(e,i){var a;if(Array.isArray(e))return GC({name:""},i,e,"");{const r=null!==(a=e.name)&&void 0!==a?a:"";return GC({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=h5,t.NULL=new BC,t.\u0275prov=Z({token:t,providedIn:"any",factory:()=>q(br)}),t.__NG_ELEMENT_ID__=-1,t})();function xT(t,n){tn(Fa(t)[1],P1())}function Q(t){let n=function rf(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let a;if(d4(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=Sr(t.inputs),o.declaredInputs=Sr(t.declaredInputs),o.outputs=Sr(t.outputs);const s=a.hostBindings;s&&AT(t,s);const c=a.viewQuery,l=a.contentQueries;if(c&&TT(t,c),l&&ET(t,l),Ki(t.inputs,a.inputs),Ki(t.declaredInputs,a.declaredInputs),Ki(t.outputs,a.outputs),d4(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===Q&&(e=!1)}}n=Object.getPrototypeOf(n)}!function NT(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=on(a.hostAttrs,e=on(e,a.hostAttrs))}}(i)}function Sr(t){return t===k6?{}:t===W2?[]:t}function TT(t,n){const e=t.viewQuery;t.viewQuery=e?(i,a)=>{n(i,a),e(i,a)}:n}function ET(t,n){const e=t.contentQueries;t.contentQueries=e?(i,a,r)=>{n(i,a,r),e(i,a,r)}:n}function AT(t,n){const e=t.hostBindings;t.hostBindings=e?(i,a)=>{n(i,a),e(i,a)}:n}let Sn=null;function st(){if(!Sn){const t=F2.Symbol;if(t&&t.iterator)Sn=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&&(Sn=i)}}}return Sn}function D5(t){return!!function Dr(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&st()in t)}function d3(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function i6(t,n,e,i){const a=d3(t,n,e);return d3(t,n+1,i)||a}function P(t,n,e,i){const a=R();return d3(a,B6(),n)&&(D2(),I4(L1(),a,t,n,e,i)),P}function lt(t,n,e,i){return d3(t,B6(),e)?n+c2(e)+i:C2}function Ct(t,n,e,i,a,r){const s=i6(t,function Z4(){return l2.lFrame.bindingIndex}(),e,a);return J4(2),s?n+c2(e)+i+c2(a)+r:C2}function k(t,n,e,i,a,r,o,s){const c=R(),l=D2(),C=t+20,f=l.firstCreatePass?function BT(t,n,e,i,a,r,o,s,c){const l=n.consts,C=nt(n,t,4,o||null,Ve(l,s));pr(n,e,C,Ve(l,c)),tn(n,C);const f=C.tViews=Hn(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];N4(f,!1);const g=c[11].createComment("");Mn(l,c,g,f),u3(g,c),wn(c,c[C]=AC(g,c,g,f)),Q8(f)&&dr(l,c,f),null!=o&&hr(c,f,s)}function X3(t){return function F6(t,n){return t[n]}(function CD(){return l2.lFrame.contextLView}(),20+t)}function L(t,n=o2.Default){const e=R();return null===e?q(t,n):tl(P1(),e,h2(t),n)}function Ar(){throw new Error("invalid")}function M(t,n,e){const i=R();return d3(i,B6(),n)&&P3(D2(),L1(),i,t,n,i[11],e,!1),M}function kr(t,n,e,i,a){const o=a?"class":"style";FC(t,e,n.inputs[o],o,i)}function h(t,n,e,i){const a=R(),r=D2(),o=20+t,s=a[11],c=a[o]=Ka(s,n,function _D(){return l2.lFrame.currentNamespace}()),l=r.firstCreatePass?function cE(t,n,e,i,a,r,o){const s=n.consts,l=nt(n,t,2,a,Ve(s,r));return pr(n,e,l,Ve(s,o)),null!==l.attrs&&zn(l,l.attrs,!1),null!==l.mergedAttrs&&zn(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(o,r,a,0,n,e,i):r.data[o];N4(l,!0);const C=l.mergedAttrs;null!==C&&rn(s,c,C);const f=l.classes;null!==f&&er(s,c,f);const g=l.styles;return null!==g&&iC(s,c,g),64!=(64&l.flags)&&Mn(r,a,c,l),0===function rD(){return l2.lFrame.elementDepthCount}()&&u3(c,a),function oD(){l2.lFrame.elementDepthCount++}(),Q8(l)&&(dr(r,a,l),function bC(t,n,e){if(aa(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&&hr(a,l),h}function p(){let t=P1();ha()?pa():(t=t.parent,N4(t,!1));const n=t;!function sD(){l2.lFrame.elementDepthCount--}();const e=D2();return e.firstCreatePass&&(tn(e,t),aa(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function VD(t){return 0!=(16&t.flags)}(n)&&kr(e,n,R(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function HD(t){return 0!=(32&t.flags)}(n)&&kr(e,n,R(),n.stylesWithoutHost,!1),p}function N(t,n,e,i){return h(t,n,e,i),p(),N}function f1(){return R()}function N5(t){return!!t&&"function"==typeof t.then}const Rr=function zf(t){return!!t&&"function"==typeof t.subscribe};function x(t,n,e,i){const a=R(),r=D2(),o=P1();return function Df(t,n,e,i,a,r,o,s){const c=Q8(i),C=t.firstCreatePass&&OC(t),f=n[8],g=IC(n);let v=!0;if(3&i.type||s){const D=Q3(i,n),E=s?s(D):D,w=g.length,O=s?U=>s(A1(U[i.index])):i.index;if(b1(e)){let U=null;if(!s&&c&&(U=function CE(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,v=!1;else{r=Pr(i,n,f,r,!1);const j=e.listen(E,a,r);g.push(r,j),C&&C.push(a,O,w,w+1)}}else r=Pr(i,n,f,r,!0),E.addEventListener(a,r,o),g.push(r),C&&C.push(a,O,w,o)}else r=Pr(i,n,f,r,!1);const V=i.outputs;let H;if(v&&null!==V&&(H=V[a])){const D=H.length;if(D)for(let E=0;E<D;E+=2){const J=n[H[E]][H[E+1]].subscribe(r),u2=g.length;g.push(r,J),C&&C.push(a,i.index,u2,-(u2+1))}}}(r,a,a[11],o,t,n,!!e,i),x}function xf(t,n,e,i){try{return!1!==e(i)}catch(a){return PC(t,a),!1}}function Pr(t,n,e,i,a){return function r(o){if(o===Function)return i;const s=2&t.flags?k3(t.index,n):n;0==(32&n[2])&&vr(s);let c=xf(n,0,i,o),l=r.__ngNextListenerFn__;for(;l;)c=xf(n,0,l,o)&&c,l=l.__ngNextListenerFn__;return a&&!1===c&&(o.preventDefault(),o.returnValue=!1),c}}function z(t=1){return function pD(t){return(l2.lFrame.contextLView=function gD(t,n){for(;t>0;)n=n[15],t--;return n}(t,l2.lFrame.contextLView))[8]}(t)}function fE(t,n){let e=null;const i=function yN(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?sC(t,r,!0):VN(i,r))return a}else e=a}return e}function vt(t){const n=R()[16][6];if(!n.projection){const i=n.projection=d5(t?t.length:1,null),a=i.slice();let r=n.child;for(;null!==r;){const o=t?fE(r,t):0;null!==o&&(a[o]?a[o].projectionNext=r:i[o]=r,a[o]=r),r=r.next}}}function _t(t,n=0,e){const i=R(),a=D2(),r=nt(a,20+t,16,null,e||null);null===r.projection&&(r.projection=n),pa(),64!=(64&r.flags)&&function hN(t,n,e){nC(n[11],0,n,e,Wl(t,e,n),Ql(e.parent||n[6],e,n))}(a,i,r)}function Fr(t,n,e){return Mt(t,"",n,"",e),Fr}function Mt(t,n,e,i,a){const r=R(),o=lt(r,n,e,i);return o!==C2&&P3(D2(),L1(),r,t,o,r[11],a,!1),Mt}function Pf(t,n,e,i,a){const r=t[e+1],o=null===n;let s=i?p4(r):X4(r),c=!1;for(;0!==s&&(!1===c||o);){const C=t[s+1];hE(t[s],n)&&(c=!0,t[s+1]=i?ir(C):tr(C)),s=i?p4(C):X4(C)}c&&(t[e+1]=i?tr(r):ir(r))}function hE(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Z6(t,n)>=0}const B1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ff(t){return t.substring(B1.key,B1.keyEnd)}function Bf(t,n){const e=B1.textEnd;return e===n?-1:(n=B1.keyEnd=function vE(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,B1.key=n,e),yt(t,n,e))}function yt(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function t1(t,n){return function m4(t,n,e,i){const a=R(),r=D2(),o=J4(2);r.firstUpdatePass&&qf(r,t,o,i),n!==C2&&d3(a,o,n)&&Yf(r,r.data[_3()],a,a[11],t,a[o+1]=function SE(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=O2(O3(t)))),t}(n,e),i,o)}(t,n,null,!0),t1}function te(t){!function v4(t,n,e,i){const a=D2(),r=J4(2);a.firstUpdatePass&&qf(a,null,r,i);const o=R();if(e!==C2&&d3(o,r,e)){const s=a.data[_3()];if(Zf(s,i)&&!Wf(a,r)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Yi(c,e||"")),kr(a,s,o,e,i)}else!function zE(t,n,e,i,a,r,o,s){a===C2&&(a=W2);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 g=c<a.length?a[c+1]:void 0,v=l<r.length?r[l+1]:void 0;let H,V=null;C===f?(c+=2,l+=2,g!==v&&(V=f,H=v)):null===f||null!==C&&C<f?(c+=2,V=C):(l+=2,V=f,H=v),null!==V&&Yf(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 wE(t,n,e){if(null==e||""===e)return W2;const i=[],a=O3(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)}}(I3,P4,t,!0)}function P4(t,n){for(let e=function gE(t){return function Gf(t){B1.key=0,B1.keyEnd=0,B1.value=0,B1.valueEnd=0,B1.textEnd=t.length}(t),Bf(t,yt(t,0,B1.textEnd))}(n);e>=0;e=Bf(n,e))I3(t,Ff(n),!0)}function Wf(t,n){return n>=t.expandoStartIndex}function qf(t,n,e,i){const a=t.data;if(null===a[e+1]){const r=a[_3()],o=Wf(t,e);Zf(r,i)&&null===n&&!o&&(n=!1),n=function bE(t,n,e,i){const a=function ma(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=T5(e=Ur(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==a)if(e=Ur(a,t,n,e,i),null===r){let c=function LE(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==X4(i))return t[p4(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=Ur(null,t,n,c[1],i),c=T5(c,n.attrs,i),function VE(t,n,e,i){t[p4(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else r=function HE(t,n,e){let i;const a=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<a;r++)i=T5(i,t[r].hostAttrs,e);return T5(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(a,r,n,i),function uE(t,n,e,i,a,r){let o=r?n.classBindings:n.styleBindings,s=p4(o),c=X4(o);t[i]=e;let C,l=!1;if(Array.isArray(e)){const f=e;C=f[1],(null===C||Z6(f,C)>0)&&(l=!0)}else C=e;if(a)if(0!==c){const g=p4(t[s+1]);t[i+1]=bn(g,s),0!==g&&(t[g+1]=nr(t[g+1],i)),t[s+1]=function SN(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=bn(s,0),0!==s&&(t[s+1]=nr(t[s+1],i)),s=i;else t[i+1]=bn(c,0),0===s?s=i:t[c+1]=nr(t[c+1],i),c=i;l&&(t[i+1]=tr(t[i+1])),Pf(t,C,i,!0),Pf(t,C,i,!1),function dE(t,n,e,i,a){const r=a?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Z6(r,n)>=0&&(e[i+1]=ir(e[i+1]))}(n,C,t,i,r),o=bn(s,c),r?n.classBindings=o:n.styleBindings=o}(a,r,n,e,o,i)}}function Ur(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=T5(i,r.hostAttrs,a),r!==t);)s++;return null!==t&&(e.directiveStylingLast=s),i}function T5(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]),I3(t,o,!!e||n[++r]))}return void 0===t?null:t}function Yf(t,n,e,i,a,r,o,s){if(!(3&n.type))return;const c=t.data,l=c[s+1];Nn(function uC(t){return 1==(1&t)}(l)?Qf(c,n,e,a,X4(l),o):void 0)||(Nn(r)||function fC(t){return 2==(2&t)}(l)&&(r=Qf(c,null,e,a,s,o)),function gN(t,n,e,i,a){const r=b1(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:R3.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|=R3.Important),r?t.setStyle(e,i,a,o):e.style.setProperty(i,a,s?"important":"")}}}(i,o,Z8(_3(),e),a,r))}function Qf(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 g=e[a+1];g===C2&&(g=f?W2:void 0);let v=f?Sa(g,i):C===i?g:void 0;if(l&&!Nn(v)&&(v=Sa(c,i)),Nn(v)&&(s=v,o))return s;const V=t[a+1];a=o?p4(V):X4(V)}if(null!==n){let c=r?n.residualClasses:n.residualStyles;null!=c&&(s=Sa(c,i))}return s}function Nn(t){return void 0!==t}function Zf(t,n){return 0!=(t.flags&(n?16:32))}function _(t,n=""){const e=R(),i=D2(),a=t+20,r=i.firstCreatePass?nt(i,a,1,n,null):i.data[a],o=e[a]=function qa(t,n){return b1(t)?t.createText(n):t.createTextNode(n)}(e[11],n);Mn(i,e,o,r),N4(r,!1)}function ne(t){return S3("",t,""),ne}function S3(t,n,e){const i=R(),a=lt(i,t,n,e);return a!==C2&&ee(i,_3(),a),S3}function a6(t,n,e,i,a){const r=R(),o=Ct(r,t,n,e,i,a);return o!==C2&&ee(r,_3(),o),a6}function _4(t,n,e){const i=R();return d3(i,B6(),n)&&P3(D2(),L1(),i,t,n,i[11],e,!0),_4}const Tn="en-US";let mu=Tn;function Wr(t,n,e,i,a){if(t=h2(t),Array.isArray(t))for(let r=0;r<t.length;r++)Wr(t[r],n,e,i,a);else{const r=D2(),o=R();let s=ot(t)?t:h2(t.provide),c=$C(t);const l=P1(),C=1048575&l.providerIndexes,f=l.directiveStart,g=l.providerIndexes>>20;if(ot(t)||!t.multi){const v=new s5(c,a,L),V=Kr(s,n,a?C:C+g,f);-1===V?(ln(l5(l,o),r,s),qr(r,t,n.length),n.push(s),l.directiveStart++,l.directiveEnd++,a&&(l.providerIndexes+=1048576),e.push(v),o.push(v)):(e[V]=v,o[V]=v)}else{const v=Kr(s,n,C+g,f),V=Kr(s,n,C,C+g),H=v>=0&&e[v],D=V>=0&&e[V];if(a&&!D||!a&&!H){ln(l5(l,o),r,s);const E=function $A(t,n,e,i,a){const r=new s5(t,e,L);return r.multi=[],r.index=n,r.componentProviders=0,Bu(r,a,i&&!e),r}(a?jA:GA,e.length,a,i,c);!a&&D&&(e[V].providerFactory=E),qr(r,t,n.length,0),n.push(s),l.directiveStart++,l.directiveEnd++,a&&(l.providerIndexes+=1048576),e.push(E),o.push(E)}else qr(r,t,v>-1?v:V,Bu(e[a?V:v],c,!a&&i));!a&&i&&D&&e[V].componentProviders++}}}function qr(t,n,e,i){const a=ot(n),r=function _T(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 Bu(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Kr(t,n,e,i){for(let a=e;a<i;a++)if(n[a]===t)return a;return-1}function GA(t,n,e,i){return Yr(this.multi,[])}function jA(t,n,e,i){const a=this.multi;let r;if(this.providerFactory){const o=this.providerFactory.componentProviders,s=C5(e,e[1],this.providerFactory.index,i);r=s.slice(0,o),Yr(a,r);for(let c=o;c<s.length;c++)r.push(s[c])}else r=[],Yr(a,r);return r}function Yr(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function q2(t,n=[]){return e=>{e.providersResolver=(i,a)=>function UA(t,n,e){const i=D2();if(i.firstCreatePass){const a=d4(t);Wr(e,i.data,i.blueprint,a,!0),Wr(n,i.data,i.blueprint,a,!1)}}(i,a?a(t):t,n)}}class Uu{}class KA{resolveComponentFactory(n){throw function qA(t){const n=Error(`No component factory found for ${O2(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Vt=(()=>{class t{}return t.NULL=new KA,t})();function YA(){return Ht(P1(),R())}function Ht(t,n){return new E2(Q3(t,n))}let E2=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=YA,t})();function QA(t){return t instanceof E2?t.nativeElement:t}class Qr{}let h3=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function JA(){const t=R(),e=k3(P1().index,t);return function ZA(t){return t[11]}(x4(e)?e:t)}(),t})(),XA=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>null}),t})();class O5{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const ek=new O5("13.3.11"),Zr={};function On(t,n,e,i,a=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(A1(r)),u4(r))for(let s=10;s<r.length;s++){const c=r[s],l=c[1].firstChild;null!==l&&On(c[1],c,l,i)}const o=e.type;if(8&o)On(t,n,e.child,i);else if(32&o){const s=ja(e,n);let c;for(;c=s();)i.push(c)}else if(16&o){const s=eC(n,e);if(Array.isArray(s))i.push(...s);else{const c=V5(n[16]);On(c[1],c,s,i,!0)}}e=a?e.projectionNext:e.next}return i}class R5{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 On(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(u4(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Ya(n,i),fn(e,i))}this._attachedToViewContainer=!1}$l(this._lView[1],this._lView)}onDestroy(n){wC(this._lView[1],this._lView,null,n)}markForCheck(){vr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Mr(t,n,e){const i=n[10];i.begin&&i.begin();try{at(t,n,t.template,e)}catch(a){throw PC(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 oN(t,n){H5(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 tk extends R5{constructor(n){super(n),this._view=n}detectChanges(){kC(this._view)}checkNoChanges(){}get context(){return null}}class ju extends Vt{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=l3(n);return new Jr(e,this.ngModule)}}function $u(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class Jr extends Uu{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function wN(t){return t.map(HN).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return $u(this.componentDef.inputs)}get outputs(){return $u(this.componentDef.outputs)}create(n,e,i,a){const r=(a=a||this.ngModule)?function ik(t,n){return{get:(e,i,a)=>{const r=t.get(e,Zr,a);return r!==Zr||i===Zr?r:n.get(e,i,a)}}}(n,a.injector):n,o=r.get(Qr,Ec),s=r.get(XA,null),c=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",C=i?function HC(t,n,e){if(b1(t))return t.selectRootElement(n,e===D4.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(c,i,this.componentDef.encapsulation):Ka(o.createRenderer(null,this.componentDef),l,function nk(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(l)),f=this.componentDef.onPush?576:528,g=function af(t,n){return{components:[],scheduler:t||Jx,clean:CT,playerHandler:n||null,flags:0}}(),v=Hn(0,null,null,1,0,null,null,null,null,null),V=w5(null,v,g,f,null,null,o,c,s,r);let H,D;X8(V);try{const E=function tf(t,n,e,i,a,r){const o=e[1];e[20]=t;const c=nt(o,20,2,"#host",null),l=c.mergedAttrs=n.hostAttrs;null!==l&&(zn(c,l,!0),null!==t&&(rn(a,t,l),null!==c.classes&&er(a,t,c.classes),null!==c.styles&&iC(a,t,c.styles)));const C=i.createRenderer(t,n),f=w5(e,LC(n),null,n.onPush?64:16,e[20],c,i,C,r||null,null);return o.firstCreatePass&&(ln(l5(c,e),o,n.type),NC(o,c),TC(c,e.length,1)),wn(e,f),e[20]=f}(C,this.componentDef,V,o,c);if(C)if(i)rn(c,C,["ng-version",ek.full]);else{const{attrs:w,classes:O}=function zN(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(!h4(a))break;a=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);w&&rn(c,C,w),O&&O.length>0&&er(c,C,O.join(" "))}if(D=fa(v,20),void 0!==e){const w=D.projection=[];for(let O=0;O<this.ngContentSelectors.length;O++){const U=e[O];w.push(null!=U?Array.from(U):null)}}H=function nf(t,n,e,i,a){const r=e[1],o=function KN(t,n,e){const i=P1();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),EC(t,i,n,it(t,n,1,null),e));const a=C5(n,t,i.directiveStart,i);u3(a,n);const r=Q3(i,n);return r&&u3(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=P1();n.contentQueries(1,o,c.directiveStart)}const s=P1();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(He(s.index),DC(e[1],s,0,s.directiveStart,s.directiveEnd,n),xC(n,o)),o}(E,this.componentDef,V,g,[xT]),z5(v,V,null)}finally{en()}return new rk(this.componentType,H,Ht(D,V),V,D)}}class rk extends class WA{}{constructor(n,e,i,a,r){super(),this.location=i,this._rootLView=a,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new tk(a),this.componentType=n}get injector(){return new W6(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class ie{}class Wu{}const wt=new Map;class Yu extends ie{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ju(this);const i=q3(n);this._bootstrapComponents=k4(i.bootstrap),this._r3Injector=jC(n,e,[{provide:ie,useValue:this},{provide:Vt,useValue:this.componentFactoryResolver}],O2(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=k1.THROW_IF_NOT_FOUND,i=o2.Default){return n===k1||n===ie||n===br?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 Xr extends Wu{constructor(n){super(),this.moduleType=n,null!==q3(n)&&function sk(t){const n=new Set;!function e(i){const a=q3(i,!0),r=a.id;null!==r&&(function qu(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${O2(n)} vs ${O2(n.name)}`)}(r,wt.get(r),i),wt.set(r,i));const o=k4(a.imports);for(const s of o)n.has(s)||(n.add(s),e(s))}(t)}(n)}create(n){return new Yu(this.moduleType,n)}}function P5(t,n,e,i,a){return function Zu(t,n,e,i,a,r,o){const s=n+e;return i6(t,s,a,r)?function O4(t,n,e){return t[n]=e}(t,s+2,o?i.call(o,a,r):i(a,r)):function F5(t,n){const e=t[n];return e===C2?void 0:e}(t,s+2)}(R(),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 t7(t){return n=>{setTimeout(t,void 0,n)}}const n2=class bk 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=t7(c),s&&(s=t7(s)),l&&(l=t7(l)));const C=super.subscribe({next:s,error:c,complete:l});return n instanceof H2&&n.add(C),C}};function Lk(){return this._results[st()]()}class n7{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=st(),i=n7.prototype;i[e]||(i[e]=Lk)}get changes(){return this._changes||(this._changes=new n2)}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=Z3(n);(this._changesDetected=!function kD(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 u1=(()=>{class t{}return t.__NG_ELEMENT_ID__=wk,t})();const Vk=u1,Hk=class extends Vk{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=w5(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)),z5(e,i,n),new R5(i)}};function wk(){return Pn(P1(),R())}function Pn(t,n){return 4&t.type?new Hk(n,t,Ht(t,n)):null}let F3=(()=>{class t{}return t.__NG_ELEMENT_ID__=zk,t})();function zk(){return id(P1(),R())}const Sk=F3,td=class extends Sk{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ht(this._hostTNode,this._hostLView)}get injector(){return new W6(this._hostTNode,this._hostLView)}get parentInjector(){const n=cn(this._hostTNode,this._hostLView);if(Qc(n)){const e=$6(n,this._hostLView),i=j6(n);return new W6(e[1].data[i+8],e)}return new W6(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=nd(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 u5(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 Jr(l3(n)),l=i||this.parentInjector;if(!r&&null==c.ngModule){const g=(o?l:this.parentInjector).get(ie,null);g&&(r=g)}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 aD(t){return u4(t[3])}(i)){const C=this.indexOf(n);if(-1!==C)this.detach(C);else{const f=i[3],g=new td(f,f[6],f[3]);g.detach(g.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function cN(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],ol(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function lN(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=Ja(r,o),c=i[11],l=_n(c,o[7]);return null!==l&&function rN(t,n,e,i,a,r){i[0]=a,i[6]=n,H5(t,i,e,1,a,r)}(a,o[6],c,i,l,s),n.attachToViewContainerRef(),ol(i7(o),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=nd(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Ya(this._lContainer,e);i&&(fn(i7(this._lContainer),e),$l(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Ya(this._lContainer,e);return i&&null!=fn(i7(this._lContainer),e)?new R5(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function nd(t){return t[8]}function i7(t){return t[8]||(t[8]=[])}function id(t,n){let e;const i=n[t.index];if(u4(i))e=i;else{let a;if(8&t.type)a=A1(i);else{const r=n[11];a=r.createComment("");const o=Q3(t,n);n6(r,_n(r,o),a,function dN(t,n){return b1(t)?t.nextSibling(n):n.nextSibling}(r,o),!1)}n[t.index]=e=AC(i,n,a,t),wn(n,e)}return new td(e,t,n)}class a7{constructor(n){this.queryList=n,this.matches=null}clone(){return new a7(this.queryList)}setDirty(){this.queryList.setDirty()}}class r7{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 r7(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!==cd(n,e).matches&&this.queries[e].setDirty()}}class ad{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class o7{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 o7(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 s7{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 s7(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,Nk(e,r)),this.matchTNodeWithReadOption(n,e,Cn(e,n,r,!1,!1))}else i===u1?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Cn(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const a=this.metadata.read;if(null!==a)if(a===E2||a===F3||a===u1&&4&e.type)this.addMatch(e.index,-2);else{const r=Cn(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 Nk(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 Ek(t,n,e,i){return-1===e?function Tk(t,n){return 11&t.type?Ht(t,n):4&t.type?Pn(t,n):null}(n,t):-2===e?function Ak(t,n,e){return e===E2?Ht(n,t):e===u1?Pn(n,t):e===F3?id(n,t):void 0}(t,n,i):C5(t,t[1],e,n)}function rd(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:Ek(n,r[l],o[c+1],e.metadata.read))}a.matches=s}return a.matches}function c7(t,n,e,i){const a=t.queries.getByIndex(e),r=a.matches;if(null!==r){const o=rd(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 g=C[f];g[17]===g[3]&&c7(g[1],g,l,i)}if(null!==C[9]){const f=C[9];for(let g=0;g<f.length;g++){const v=f[g];c7(v[1],v,l,i)}}}}}return i}function g1(t){const n=R(),e=D2(),i=Bc();va(i+1);const a=cd(e,i);if(t.dirty&&Ac(n)===(2==(2&a.metadata.flags))){if(null===a.matches)t.reset([]);else{const r=a.crossesNgTemplate?c7(e,n,i,[]):rd(e,n,a,i);t.reset(r,QA),t.notifyOnChanges()}return!0}return!1}function z1(t,n,e,i){const a=D2();if(a.firstCreatePass){const r=P1();sd(a,new ad(n,e,i),r.index),function Ik(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)}od(a,R(),e)}function m1(){return function kk(t,n){return t[19].queries[n].queryList}(R(),Bc())}function od(t,n,e){const i=new n7(4==(4&e));wC(t,n,i,i.destroy),null===n[19]&&(n[19]=new r7),n[19].queries.push(new a7(i))}function sd(t,n,e){null===t.queries&&(t.queries=new o7),t.queries.track(new s7(n,e))}function cd(t,n){return t.queries.getByIndex(n)}function e4(t,n){return Pn(t,n)}function Un(...t){}const p7=new _2("Application Initializer");let g7=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Un,this.reject=Un,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(N5(r))e.push(r);else if(Rr(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(p7,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const G5=new _2("AppId",{providedIn:"root",factory:function Hd(){return`${m7()}${m7()}${m7()}`}});function m7(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const wd=new _2("Platform Initializer"),v7=new _2("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),zd=new _2("appBootstrapListener");let Xk=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Ne=new _2("LocaleId",{providedIn:"root",factory:()=>KD(Ne,o2.Optional|o2.SkipSelf)||function eI(){return"undefined"!=typeof $localize&&$localize.locale||Tn}()});class nI{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Sd=(()=>{class t{compileModuleSync(e){return new Xr(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=k4(q3(e).declarations).reduce((o,s)=>{const c=l3(s);return c&&o.push(new Jr(c)),o},[]);return new nI(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=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const aI=(()=>Promise.resolve(0))();function _7(t){"undefined"==typeof Zone?aI.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class R2{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new n2(!1),this.onMicrotaskEmpty=new n2(!1),this.onStable=new n2(!1),this.onError=new n2(!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 rI(){let t=F2.requestAnimationFrame,n=F2.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 cI(t){const n=()=>{!function sI(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F2,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,y7(t),t.isCheckStableRunning=!0,M7(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),y7(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,a,r,o,s)=>{try{return Dd(t),e.invokeTask(a,r,o,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),xd(t)}},onInvoke:(e,i,a,r,o,s,c)=>{try{return Dd(t),e.invoke(a,r,o,s,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),xd(t)}},onHasTask:(e,i,a,r)=>{e.hasTask(a,r),i===a&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,y7(t),M7(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(!R2.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(R2.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,oI,Un,Un);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 oI={};function M7(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 y7(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Dd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xd(t){t._nesting--,M7(t)}class lI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new n2,this.onMicrotaskEmpty=new n2,this.onStable=new n2,this.onError=new n2}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 b7=(()=>{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:()=>{R2.assertNotInAngularZone(),_7(()=>{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())_7(()=>{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(R2))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),CI=(()=>{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=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class fI{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let L7=new fI,o6=null;const Nd=new _2("AllowMultipleToken"),Td=new _2("PlatformOnDestroy");class Ed{constructor(n,e){this.name=n,this.token=e}}function Ad(t,n,e=[]){const i=`Platform: ${n}`,a=new _2(i);return(r=[])=>{let o=V7();if(!o||o.injector.get(Nd,!1)){const s=[...e,...r,{provide:a,useValue:!0}];t?t(s):function pI(t){if(o6&&!o6.get(Nd,!1))throw new S2(400,"");o6=t;const n=t.get(kd),e=t.get(wd,null);e&&e.forEach(i=>i())}(function mI(t=[],n){return k1.create({name:n,providers:[{provide:Lr,useValue:"platform"},{provide:Td,useValue:()=>o6=null},...t]})}(s,i))}return function gI(t){const n=V7();if(!n)throw new S2(401,"");return n}()}}function V7(){var t;return null!==(t=null==o6?void 0:o6.get(kd))&&void 0!==t?t:null}let kd=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const s=function vI(t,n){let e;return e="noop"===t?new lI:("zone.js"===t?void 0:t)||new R2({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:R2,useValue:s}];return s.run(()=>{const l=k1.create({providers:c,parent:this.injector,name:e.moduleType.name}),C=e.create(l),f=C.injector.get(L5,null);if(!f)throw new S2(402,"");return s.runOutsideAngular(()=>{const g=s.onError.subscribe({next:v=>{f.handleError(v)}});C.onDestroy(()=>{H7(this._modules,C),g.unsubscribe()})}),function _I(t,n,e){try{const i=e();return N5(i)?i.catch(a=>{throw n.runOutsideAngular(()=>t.handleError(a)),a}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(f,s,()=>{const g=C.injector.get(g7);return g.runInitializers(),g.donePromise.then(()=>(function XE(t){E3(t,"Expected localeId to be defined"),"string"==typeof t&&(mu=t.toLowerCase().replace(/_/g,"-"))}(C.injector.get(Ne,Tn)||Tn),this._moduleDoBootstrap(C),C))})})}bootstrapModule(e,i=[]){const a=Id({},i);return function dI(t,n,e){const i=new Xr(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,a))}_moduleDoBootstrap(e){const i=e.injector.get(St);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(Td,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(q(k1))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Id(t,n){return Array.isArray(n)?n.reduce(Id,t):Object.assign(Object.assign({},t),n)}let St=(()=>{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 I2(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),s=new I2(c=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{R2.assertNotInAngularZone(),_7(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const C=this._zone.onUnstable.subscribe(()=>{R2.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{l.unsubscribe(),C.unsubscribe()}});this.isStable=mc(o,s.pipe(vc()))}bootstrap(e,i){if(!this._initStatus.done)throw new S2(405,"");let a;a=e instanceof Uu?e:this._injector.get(Vt).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const r=function hI(t){return t.isBoundToModule}(a)?void 0:this._injector.get(ie),s=a.create(k1.NULL,[],i||a.selector,r),c=s.location.nativeElement,l=s.injector.get(b7,null),C=l&&s.injector.get(CI);return l&&C&&C.registerApplication(c,l),s.onDestroy(()=>{this.detachView(s.hostView),H7(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;H7(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(zd,[]).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(R2),q(k1),q(L5),q(g7))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function H7(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Rd=!0,B3=(()=>{class t{}return t.__NG_ELEMENT_ID__=bI,t})();function bI(t){return function LI(t,n,e){if(Y8(t)&&!e){const i=k3(t.index,n);return new R5(i,i)}return 47&t.type?new R5(n[16],n):null}(P1(),R(),16==(16&t))}class Gd{constructor(){}supports(n){return D5(n)}create(n){return new DI(n)}}const SI=(t,n)=>n;class DI{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||SI}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<$d(i,a,r)?e:i,s=$d(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 g=0;g<l;g++){const v=g<r.length?r[g]:r[g]=0,V=v+g;C<=V&&V<l&&(r[g]=v+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=[]),!D5(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 FT(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[st()]();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 xI(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 jd),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 jd),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 xI{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 NI{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 jd{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new NI,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 $d(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 qd(){return new $n([new Gd])}let $n=(()=>{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||qd()),deps:[[t,new m5,new ze]]}}find(e){const i=this.factories.find(a=>a.supports(e));if(null!=i)return i;throw new S2(901,"")}}return t.\u0275prov=Z({token:t,providedIn:"root",factory:qd}),t})();const II=Ad(null,"core",[]);let OI=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(q(St))},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({}),t})(),Wn=null;function F4(){return Wn}const S1=new _2("DocumentToken");let c6=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return function BI(){return q(Yd)}()},providedIn:"platform"}),t})();const UI=new _2("Location Initialized");let Yd=(()=>{class t extends c6{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return F4().getBaseHref(this._doc)}onPopState(e){const i=F4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=F4().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){Qd()?this._history.pushState(e,i,a):this.location.hash=a}replaceState(e,i,a){Qd()?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=Z({token:t,factory:function(){return function GI(){return new Yd(q(S1))}()},providedIn:"platform"}),t})();function Qd(){return!!window.history.pushState}function x7(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 Zd(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 ae(t){return t&&"?"!==t[0]?"?"+t:t}let l6=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return function jI(t){const n=q(S1).location;return new Jd(q(c6),n&&n.origin||"")}()},providedIn:"root"}),t})();const N7=new _2("appBaseHref");let Jd=(()=>{class t extends l6{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 x7(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ae(this._platformLocation.search),a=this._platformLocation.hash;return a&&e?`${i}${a}`:i}pushState(e,i,a,r){const o=this.prepareExternalUrl(a+ae(r));this._platformLocation.pushState(e,i,o)}replaceState(e,i,a,r){const o=this.prepareExternalUrl(a+ae(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(c6),q(N7,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Xd=(()=>{class t extends l6{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=x7(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,a,r){let o=this.prepareExternalUrl(a+ae(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,a,r){let o=this.prepareExternalUrl(a+ae(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(c6),q(N7,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),T7=(()=>{class t{constructor(e,i){this._subject=new n2,this._urlChangeListeners=[],this._platformStrategy=e;const a=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Zd(eh(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+ae(i))}normalize(e){return t.stripTrailingSlash(function WI(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,eh(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+ae(i)),a)}replaceState(e,i="",a=null){this._platformStrategy.replaceState(a,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ae(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=ae,t.joinWithSlash=x7,t.stripTrailingSlash=Zd,t.\u0275fac=function(e){return new(e||t)(q(l6),q(c6))},t.\u0275prov=Z({token:t,factory:function(){return function $I(){return new T7(q(l6),q(c6))}()},providedIn:"root"}),t})();function eh(t){return t.replace(/\/index.html$/,"")}class TO{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 oe=(()=>{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 TO(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),lh(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=>{lh(i.get(a.currentIndex),a)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(L(F3),L(u1),L($n))},t.\u0275dir=G({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function lh(t,n){t.context.$implicit=n.item}let d1=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new EO,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){Ch("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ch("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)(L(F3),L(u1))},t.\u0275dir=G({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class EO{constructor(){this.$implicit=null,this.ngIf=null}}function Ch(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${O2(n)}'.`)}let Dt=(()=>{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)(L(F3))},t.\u0275dir=G({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[y1]}),t})(),U3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({}),t})();let lR=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>new CR(q(S1),window)}),t})();class CR{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 fR(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=hh(this.window.history)||hh(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 hh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class W7 extends class dR extends class FI{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function PI(t){Wn||(Wn=t)}(new W7)}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 hR(){return q5=q5||document.querySelector("base"),q5?q5.getAttribute("href"):null}();return null==e?null:function pR(t){n0=n0||document.createElement("a"),n0.setAttribute("href",t);const n=n0.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){q5=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function DO(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 n0,q5=null;const ph=new _2("TRANSITION_ID"),mR=[{provide:p7,useFactory:function gR(t,n,e){return()=>{e.get(g7).donePromise.then(()=>{const i=F4(),a=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<a.length;r++)i.remove(a[r])})}},deps:[ph,S1,k1],multi:!0}];class q7{static init(){!function uI(t){L7=t}(new q7)}addToWindow(n){F2.getAngularTestability=(i,a=!0)=>{const r=n.findTestabilityInTree(i,a);if(null==r)throw new Error("Could not find testability for element.");return r},F2.getAllAngularTestabilities=()=>n.getAllTestabilities(),F2.getAllAngularRootElements=()=>n.getAllRootElements(),F2.frameworkStabilizers||(F2.frameworkStabilizers=[]),F2.frameworkStabilizers.push(i=>{const a=F2.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?F4().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let vR=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const a0=new _2("EventManagerPlugins");let r0=(()=>{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(a0),q(R2))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class gh{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const a=F4().getGlobalEventTarget(this._doc,n);if(!a)throw new Error(`Unsupported event target ${a} for event ${e}`);return this.addEventListener(a,e,i)}}let mh=(()=>{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=Z({token:t,factory:t.\u0275fac}),t})(),K5=(()=>{class t extends mh{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(vh),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,a)=>{this._addStylesToHost(e,a,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(vh))}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function vh(t){F4().remove(t)}const K7={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/"},Y7=/%COMP%/g;function o0(t,n,e){for(let i=0;i<n.length;i++){let a=n[i];Array.isArray(a)?o0(t,a,e):(a=a.replace(Y7,t),e.push(a))}return e}function yh(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Q7=(()=>{class t{constructor(e,i,a){this.eventManager=e,this.sharedStylesHost=i,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Z7(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case D4.Emulated:{let a=this.rendererByCompId.get(i.id);return a||(a=new VR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,a)),a.applyToHost(e),a}case 1:case D4.ShadowDom:return new HR(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const a=o0(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(r0),q(K5),q(G5))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class Z7{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(K7[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=K7[a];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const a=K7[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&(R3.DashCase|R3.Important)?n.style.setProperty(e,i,a&R3.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&R3.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,yh(i)):this.eventManager.addEventListener(n,e,yh(i))}}class VR extends Z7{constructor(n,e,i,a){super(n),this.component=i;const r=o0(a+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function yR(t){return"_ngcontent-%COMP%".replace(Y7,t)}(a+"-"+i.id),this.hostAttr=function bR(t){return"_nghost-%COMP%".replace(Y7,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 HR extends Z7{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=o0(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 wR=(()=>{class t extends gh{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=Z({token:t,factory:t.\u0275fac}),t})();const Lh=["alt","control","meta","shift"],SR={"\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"},Vh={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"},DR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let xR=(()=>{class t extends gh{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(()=>F4().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(Lh.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 NR(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&&Vh.hasOwnProperty(n)&&(n=Vh[n]))}return SR[n]||n}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Lh.forEach(r=>{r!=a&&DR[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=Z({token:t,factory:t.\u0275fac}),t})();const kR=Ad(II,"browser",[{provide:v7,useValue:"browser"},{provide:wd,useValue:function TR(){W7.makeCurrent(),q7.init()},multi:!0},{provide:S1,useFactory:function AR(){return function eD(t){la=t}(document),document},deps:[]}]),IR=[{provide:Lr,useValue:"root"},{provide:L5,useFactory:function ER(){return new L5},deps:[]},{provide:a0,useClass:wR,multi:!0,deps:[S1,R2,v7]},{provide:a0,useClass:xR,multi:!0,deps:[S1]},{provide:Q7,useClass:Q7,deps:[r0,K5,G5]},{provide:Qr,useExisting:Q7},{provide:mh,useExisting:K5},{provide:K5,useClass:K5,deps:[S1]},{provide:b7,useClass:b7,deps:[R2]},{provide:r0,useClass:r0,deps:[a0,R2]},{provide:class uR{},useClass:vR,deps:[]}];let OR=(()=>{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:G5,useValue:e.appId},{provide:ph,useExisting:G5},mR]}}}return t.\u0275fac=function(e){return new(e||t)(q(t,12))},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({providers:IR,imports:[U3,OI]}),t})();"undefined"!=typeof window&&window;let zh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(e){let i=null;return i=e?new(e||t):q(Sh),i},providedIn:"root"}),t})(),Sh=(()=>{class t extends zh{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case e1.NONE:return i;case e1.HTML:return E4(i,"HTML")?O3(i):Dl(this._doc,String(i)).toString();case e1.STYLE:return E4(i,"Style")?O3(i):i;case e1.SCRIPT:if(E4(i,"Script"))return O3(i);throw new Error("unsafe value used in a script context");case e1.URL:return yl(i),E4(i,"URL")?O3(i):_5(String(i));case e1.RESOURCE_URL:if(E4(i,"ResourceURL"))return O3(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 dx(t){return new cx(t)}(e)}bypassSecurityTrustStyle(e){return function hx(t){return new lx(t)}(e)}bypassSecurityTrustScript(e){return function px(t){return new Cx(t)}(e)}bypassSecurityTrustUrl(e){return function gx(t){return new fx(t)}(e)}bypassSecurityTrustResourceUrl(e){return function mx(t){return new ux(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(q(S1))},t.\u0275prov=Z({token:t,factory:function(e){let i=null;return i=e?new e:function qR(t){return new Sh(t.get(S1))}(q(k1)),i},providedIn:"root"}),t})();const{isArray:KR}=Array,{getPrototypeOf:YR,prototype:QR,keys:ZR}=Object;function Dh(t){if(1===t.length){const n=t[0];if(KR(n))return{args:n,keys:null};if(function JR(t){return t&&"object"==typeof t&&YR(t)===QR}(n)){const e=ZR(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:XR}=Array;function X7(t){return v2(n=>function eP(t,n){return XR(n)?t(...n):t(n)}(t,n))}function xh(t,n){return t.reduce((e,i,a)=>(e[i]=n[a],e),{})}let Nh=(()=>{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)(L(h3),L(E2))},t.\u0275dir=G({type:t}),t})(),C6=(()=>{class t extends Nh{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=f3(t)))(i||t)}}(),t.\u0275dir=G({type:t,features:[Q]}),t})();const i4=new _2("NgValueAccessor"),nP={provide:i4,useExisting:x2(()=>x1),multi:!0};let x1=(()=>{class t extends C6{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=f3(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&&x("change",function(r){return i.onChange(r.target.checked)})("blur",function(){return i.onTouched()})},features:[q2([nP]),Q]}),t})();const iP={provide:i4,useExisting:x2(()=>se),multi:!0},rP=new _2("CompositionEventMode");let se=(()=>{class t extends Nh{constructor(e,i,a){super(e,i),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function aP(){const t=F4()?F4().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)(L(h3),L(E2),L(rP,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&&x("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:[q2([iP]),Q]}),t})();function Ee(t){return null==t||0===t.length}const p3=new _2("NgValidators"),Ae=new _2("NgAsyncValidators"),oP=/^(?=.{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 Oh(t){return Ee(t.value)||oP.test(t.value)?null:{email:!0}}function s0(t){return null}function Bh(t){return null!=t}function Uh(t){const n=N5(t)?$1(t):t;return Rr(n),n}function Gh(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 jh(t,n){return n.map(e=>e(t))}function $h(t){return t.map(n=>function sP(t){return!t.validate}(n)?n:e=>n.validate(e))}function eo(t){return null!=t?function Wh(t){if(!t)return null;const n=t.filter(Bh);return 0==n.length?null:function(e){return Gh(jh(e,n))}}($h(t)):null}function to(t){return null!=t?function qh(t){if(!t)return null;const n=t.filter(Bh);return 0==n.length?null:function(e){return function tP(...t){const n=U8(t),{args:e,keys:i}=Dh(t),a=new I2(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;c3(e[C]).subscribe(P2(r,g=>{f||(f=!0,l--),s[C]=g},()=>c--,void 0,()=>{(!c||!f)&&(l||r.next(i?xh(i,s):s),r.complete())}))}});return n?a.pipe(X7(n)):a}(jh(e,n).map(Uh)).pipe(v2(Gh))}}($h(t)):null}function Kh(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function no(t){return t?Array.isArray(t)?t:[t]:[]}function c0(t,n){return Array.isArray(t)?t.includes(n):t===n}function Zh(t,n){const e=no(n);return no(t).forEach(a=>{c0(e,a)||e.push(a)}),e}function Jh(t,n){return no(n).filter(e=>!c0(t,e))}class Xh{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=eo(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=to(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 ke extends Xh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class V3 extends Xh{get formDirective(){return null}get path(){return null}}let K2=(()=>{class t extends class ep{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)(L(ke,2))},t.\u0275dir=G({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&t1("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:[Q]}),t})();function Y5(t,n){(function ro(t,n){const e=function Yh(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(Kh(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function Qh(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(Kh(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const a=()=>t.updateValueAndValidity();u0(n._rawValidators,a),u0(n._rawAsyncValidators,a)})(t,n),n.valueAccessor.writeValue(t.value),function gP(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&np(t,n)})}(t,n),function vP(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 mP(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&np(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function pP(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function u0(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function np(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function co(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const Q5="VALID",h0="INVALID",xt="PENDING",Z5="DISABLED";function Co(t){return(p0(t)?t.validators:t)||null}function op(t){return Array.isArray(t)?eo(t):t||null}function fo(t,n){return(p0(n)?n.asyncValidators:t)||null}function sp(t){return Array.isArray(t)?to(t):t||null}function p0(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const uo=t=>t instanceof po;function lp(t){return(t=>t instanceof up)(t)?t.value:t.getRawValue()}function Cp(t,n){const e=uo(t),i=t.controls;if(!(e?Object.keys(i):i).length)throw new S2(1e3,"");if(!i[n])throw new S2(1001,"")}function fp(t,n){uo(t),t._forEachChild((i,a)=>{if(void 0===n[a])throw new S2(1002,"")})}class ho{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=op(this._rawValidators),this._composedAsyncValidatorFn=sp(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===Q5}get invalid(){return this.status===h0}get pending(){return this.status==xt}get disabled(){return this.status===Z5}get enabled(){return this.status!==Z5}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=op(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=sp(n)}addValidators(n){this.setValidators(Zh(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Zh(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Jh(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Jh(n,this._rawAsyncValidators))}hasValidator(n){return c0(this._rawValidators,n)}hasAsyncValidator(n){return c0(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=xt,!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=Z5,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=Q5,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===Q5||this.status===xt)&&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()?Z5:Q5}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=xt,this._hasOwnPendingAsyncValidator=!0;const e=Uh(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 bP(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=uo(i)?i.controls.hasOwnProperty(a)?i.controls[a]:null:(t=>t instanceof VP)(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 n2,this.statusChanges=new n2}_calculateStatus(){return this._allControlsDisabled()?Z5:this.errors?h0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xt)?xt:this._anyControlsHaveStatus(h0)?h0:Q5}_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){p0(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class up extends ho{constructor(n=null,e,i){super(Co(e),fo(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}),p0(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){co(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){co(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 po extends ho{constructor(n,e,i){super(Co(e),fo(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={}){fp(this,n),Object.keys(n).forEach(i=>{Cp(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]=lp(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 VP extends ho{constructor(n,e,i){super(Co(e),fo(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={}){fp(this,n),n.forEach((i,a)=>{Cp(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=>lp(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 zP={provide:ke,useExisting:x2(()=>B2)},pp=(()=>Promise.resolve(null))();let B2=(()=>{class t extends ke{constructor(e,i,a,r,o){super(),this._changeDetectorRef=o,this.control=new up,this._registered=!1,this.update=new n2,this._parent=e,this._setValidators(i),this._setAsyncValidators(a),this.valueAccessor=function so(t,n){if(!n)return null;let e,i,a;return Array.isArray(n),n.forEach(r=>{r.constructor===se?e=r:function yP(t){return Object.getPrototypeOf(t.constructor)===C6}(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 oo(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(){Y5(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){pp.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;pp.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 C0(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(L(V3,9),L(p3,10),L(Ae,10),L(i4,10),L(B3,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:[q2([zP]),Q,y1]}),t})();const DP={provide:i4,useExisting:x2(()=>f6),multi:!0};let f6=(()=>{class t extends C6{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=f3(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&&x("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},features:[q2([DP]),Q]}),t})(),gp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({}),t})();const RP={provide:i4,useExisting:x2(()=>ce),multi:!0};function Lp(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let ce=(()=>{class t extends C6{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=Lp(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 PP(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=f3(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&&x("change",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[q2([RP]),Q]}),t})(),u6=(()=>{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(Lp(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)(L(E2),L(h3),L(ce,9))},t.\u0275dir=G({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const FP={provide:i4,useExisting:x2(()=>Mo),multi:!0};function Vp(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Mo=(()=>{class t extends C6{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 BP(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=f3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,i){1&e&&x("change",function(r){return i.onChange(r.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[q2([FP]),Q]}),t})(),d6=(()=>{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(Vp(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Vp(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)(L(E2),L(h3),L(Mo,9))},t.\u0275dir=G({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function wp(t){return"number"==typeof t?t:parseFloat(t)}let h6=(()=>{class t{constructor(){this._validator=s0}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):s0,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:[y1]}),t})();const GP={provide:p3,useExisting:x2(()=>yo),multi:!0};let yo=(()=>{class t extends h6{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>wp(e),this.createValidator=e=>function Ah(t){return n=>{if(Ee(n.value)||Ee(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=f3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&P("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[q2([GP]),Q]}),t})();const jP={provide:p3,useExisting:x2(()=>bo),multi:!0};let bo=(()=>{class t extends h6{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>wp(e),this.createValidator=e=>function Eh(t){return n=>{if(Ee(n.value)||Ee(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=f3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&P("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[q2([jP]),Q]}),t})();const qP={provide:p3,useExisting:x2(()=>Vo),multi:!0};let Vo=(()=>{class t extends h6{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=e=>""===e||!0===e||"true"===e,this.createValidator=e=>Oh}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=f3(t)))(i||t)}}(),t.\u0275dir=G({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[q2([qP]),Q]}),t})(),ZP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[gp]]}),t})(),Np=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[ZP]}),t})();function s2(...t){return $1(t,t5(t))}const JP=["addListener","removeListener"],XP=["addEventListener","removeEventListener"],eF=["on","off"];function g3(t,n,e,i){if(K(e)&&(i=e,e=void 0),i)return g3(t,n,e).pipe(X7(i));const[a,r]=function iF(t){return K(t.addEventListener)&&K(t.removeEventListener)}(t)?XP.map(o=>s=>t[o](n,s,e)):function tF(t){return K(t.addListener)&&K(t.removeListener)}(t)?JP.map(Tp(t,n)):function nF(t){return K(t.on)&&K(t.off)}(t)?eF.map(Tp(t,n)):[];if(!a&&$i(t))return H1(o=>g3(o,n,e))(c3(t));if(!a)throw new TypeError("Invalid event target");return new I2(o=>{const s=(...c)=>o.next(1<c.length?c:c[0]);return a(s),()=>r(s)})}function Tp(t,n){return e=>i=>t[e](n,i)}class aF extends H2{constructor(n,e){super()}schedule(n,e=0){return this}}const g0={setInterval(t,n,...e){const{delegate:i}=g0;return(null==i?void 0:i.setInterval)?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=g0;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0},Ep={now:()=>(Ep.delegate||Date).now(),delegate:void 0};class X5{constructor(n,e=X5.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}X5.now=Ep.now;const Ap=new class oF extends X5{constructor(n,e=X5.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 rF extends aF{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 g0.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;g0.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()}}}),sF=Ap;function Ho(t=0,n,e=sF){let i=-1;return null!=n&&(dc(n)?e=n:i=n),new I2(a=>{let r=function cF(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:lF}=Array;function kp(t){return 1===t.length&&lF(t[0])?t[0]:t}function Ip(...t){return 1===(t=kp(t)).length?c3(t[0]):new I2(function CF(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i<t.length;i++)e.push(c3(t[i]).subscribe(P2(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 Op(t,n,e){t?K4(e,t,n):n()}function m0(...t){const n=U8(t),e=kp(t);return e.length?new I2(i=>{let a=e.map(()=>[]),r=e.map(()=>!1);i.add(()=>{a=r=null});for(let o=0;!i.closed&&o<e.length;o++)c3(e[o]).subscribe(P2(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}}):l4}function e8(...t){return function uF(){return e5(1)}()($1(t,t5(t)))}function G1(t){return c1((n,e)=>{c3(t).subscribe(P2(e,()=>e.complete(),R1)),!e.closed&&n.subscribe(e)})}function J1(t,n){return c1((e,i)=>{let a=0;e.subscribe(P2(i,r=>t.call(n,r,a++)&&i.next(r)))})}function le(t,n){return c1((e,i)=>{let a=null,r=0,o=!1;const s=()=>o&&!a&&i.complete();e.subscribe(P2(i,c=>{null==a||a.unsubscribe();let l=0;const C=r++;c3(t(c,C)).subscribe(a=P2(i,f=>i.next(n?n(c,f,C,l++):f),()=>{a=null,s()}))},()=>{o=!0,s()}))})}function m3(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(P2(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)}))}):s4}function So(...t){const n=U8(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++)c3(t[c]).subscribe(P2(i,l=>{r[c]=l,!s&&!o[c]&&(o[c]=!0,(s=o.every(s4))&&(o=null))},R1));e.subscribe(P2(i,c=>{if(s){const l=[c,...r];i.next(n?n(...l):l)}}))})}function Pp(t,n){return n?e=>e8(n.pipe(Q1(1),function pF(){return c1((t,n)=>{t.subscribe(P2(n,R1))})}()),e.pipe(Pp(t))):H1((e,i)=>t(e,i).pipe(Q1(1),function gF(t){return v2(()=>t)}(e)))}function Fp(t,n=Ap){const e=Ho(t,n);return Pp(()=>e)}new I2(R1);var vF={left:"right",right:"left",bottom:"top",top:"bottom"};function _0(t){return t.replace(/left|right|bottom|top/g,function(n){return vF[n]})}function B4(t){return t.split("-")[0]}var _F={start:"end",end:"start"};function Bp(t){return t.replace(/start|end/g,function(n){return _F[n]})}var G3="top",b4="bottom",L4="right",j3="left",Do="auto",t8=[G3,b4,L4,j3],Nt="start",n8="end",Up="viewport",i8="popper",Gp=t8.reduce(function(t,n){return t.concat([n+"-"+Nt,n+"-"+n8])},[]),jp=[].concat(t8,[Do]).reduce(function(t,n){return t.concat([n,n+"-"+Nt,n+"-"+n8])},[]),NF=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function V4(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Tt(t){return t instanceof V4(t).Element||t instanceof Element}function a4(t){return t instanceof V4(t).HTMLElement||t instanceof HTMLElement}function xo(t){return"undefined"!=typeof ShadowRoot&&(t instanceof V4(t).ShadowRoot||t instanceof ShadowRoot)}function Ie(t){return((Tt(t)?t.ownerDocument:t.document)||window.document).documentElement}var p6=Math.max,M0=Math.min,Et=Math.round;function At(t,n){void 0===n&&(n=!1);var e=t.getBoundingClientRect(),i=1,a=1;if(a4(t)&&n){var r=t.offsetHeight,o=t.offsetWidth;o>0&&(i=Et(e.width)/o||1),r>0&&(a=Et(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 No(t){var n=V4(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function To(t){return At(Ie(t)).left+No(t).scrollLeft}function Ce(t){return V4(t).getComputedStyle(t)}function U4(t){return t?(t.nodeName||"").toLowerCase():null}function y0(t){return"html"===U4(t)?t:t.assignedSlot||t.parentNode||(xo(t)?t.host:null)||Ie(t)}function Eo(t){var n=Ce(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function $p(t){return["html","body","#document"].indexOf(U4(t))>=0?t.ownerDocument.body:a4(t)&&Eo(t)?t:$p(y0(t))}function a8(t,n){var e;void 0===n&&(n=[]);var i=$p(t),a=i===(null==(e=t.ownerDocument)?void 0:e.body),r=V4(i),o=a?[r].concat(r.visualViewport||[],Eo(i)?i:[]):i,s=n.concat(o);return a?s:s.concat(a8(y0(o)))}function AF(t){return["table","td","th"].indexOf(U4(t))>=0}function Wp(t){return a4(t)&&"fixed"!==Ce(t).position?t.offsetParent:null}function r8(t){for(var n=V4(t),e=Wp(t);e&&AF(e)&&"static"===Ce(e).position;)e=Wp(e);return e&&("html"===U4(e)||"body"===U4(e)&&"static"===Ce(e).position)?n:e||function kF(t){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&a4(t)&&"fixed"===Ce(t).position)return null;var a=y0(t);for(xo(a)&&(a=a.host);a4(a)&&["html","body"].indexOf(U4(a))<0;){var r=Ce(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 qp(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&xo(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ao(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kp(t,n){return n===Up?Ao(function TF(t){var n=V4(t),e=Ie(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+To(t),y:s}}(t)):Tt(n)?function IF(t){var n=At(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):Ao(function EF(t){var n,e=Ie(t),i=No(t),a=null==(n=t.ownerDocument)?void 0:n.body,r=p6(e.scrollWidth,e.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=p6(e.scrollHeight,e.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-i.scrollLeft+To(t),c=-i.scrollTop;return"rtl"===Ce(a||e).direction&&(s+=p6(e.clientWidth,a?a.clientWidth:0)-r),{width:r,height:o,x:s,y:c}}(Ie(t)))}function kt(t){return t.split("-")[1]}function ko(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Yp(t){var c,n=t.reference,e=t.element,i=t.placement,a=i?B4(i):null,r=i?kt(i):null,o=n.x+n.width/2-e.width/2,s=n.y+n.height/2-e.height/2;switch(a){case G3:c={x:o,y:n.y-e.height};break;case b4:c={x:o,y:n.y+n.height};break;case L4:c={x:n.x+n.width,y:s};break;case j3:c={x:n.x-e.width,y:s};break;default:c={x:n.x,y:n.y}}var l=a?ko(a):null;if(null!=l){var C="y"===l?"height":"width";switch(r){case Nt:c[l]=c[l]-(n[C]/2-e[C]/2);break;case n8:c[l]=c[l]+(n[C]/2-e[C]/2)}}return c}function Zp(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Jp(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function Io(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?Up:s,l=n.elementContext,C=void 0===l?i8:l,f=n.altBoundary,g=void 0!==f&&f,v=n.padding,V=void 0===v?0:v,H=Zp("number"!=typeof V?V:Jp(V,t8)),E=t.rects.popper,w=t.elements[g?C===i8?"reference":i8:C],O=function RF(t,n,e){var i="clippingParents"===n?function OF(t){var n=a8(y0(t)),i=["absolute","fixed"].indexOf(Ce(t).position)>=0&&a4(t)?r8(t):t;return Tt(i)?n.filter(function(a){return Tt(a)&&qp(a,i)&&"body"!==U4(a)}):[]}(t):[].concat(n),a=[].concat(i,[e]),o=a.reduce(function(s,c){var l=Kp(t,c);return s.top=p6(l.top,s.top),s.right=M0(l.right,s.right),s.bottom=M0(l.bottom,s.bottom),s.left=p6(l.left,s.left),s},Kp(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}(Tt(w)?w:w.contextElement||Ie(t.elements.popper),o,c),U=At(t.elements.reference),j=Yp({reference:U,element:E,strategy:"absolute",placement:a}),J=Ao(Object.assign({},E,j)),u2=C===i8?J:U,m2={top:O.top-u2.top+H.top,bottom:u2.bottom-O.bottom+H.bottom,left:O.left-u2.left+H.left,right:u2.right-O.right+H.right},U2=t.modifiersData.offset;if(C===i8&&U2){var N1=U2[a];Object.keys(m2).forEach(function(i1){var H3=[L4,b4].indexOf(i1)>=0?1:-1,n3=[G3,b4].indexOf(i1)>=0?"y":"x";m2[i1]+=N1[n3]*H3})}return m2}const UF={name:"flip",enabled:!0,phase:"main",fn:function BF(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,g=e.altBoundary,v=e.flipVariations,V=void 0===v||v,H=e.allowedAutoPlacements,D=n.options.placement,E=B4(D),O=c||(E!==D&&V?function FF(t){if(B4(t)===Do)return[];var n=_0(t);return[Bp(t),n,Bp(n)]}(D):[_0(D)]),U=[D].concat(O).reduce(function(qt,$e){return qt.concat(B4($e)===Do?function PF(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?jp:c,C=kt(n.placement),f=C?s?Gp:Gp.filter(function(V){return kt(V)===C}):t8,g=f.filter(function(V){return l.indexOf(V)>=0});0===g.length&&(g=f);var v=g.reduce(function(V,H){return V[H]=Io(t,{placement:H,boundary:a,rootBoundary:r,padding:o})[B4(H)],V},{});return Object.keys(v).sort(function(V,H){return v[V]-v[H]})}(n,{placement:$e,boundary:C,rootBoundary:f,padding:l,flipVariations:V,allowedAutoPlacements:H}):$e)},[]),j=n.rects.reference,J=n.rects.popper,u2=new Map,m2=!0,U2=U[0],N1=0;N1<U.length;N1++){var i1=U[N1],H3=B4(i1),n3=kt(i1)===Nt,_e=[G3,b4].indexOf(H3)>=0,Me=_e?"width":"height",a3=Io(n,{placement:i1,boundary:C,rootBoundary:f,altBoundary:g,padding:l}),S4=_e?n3?L4:j3:n3?b4:G3;j[Me]>J[Me]&&(S4=_0(S4));var xi=_0(S4),x6=[];if(r&&x6.push(a3[H3]<=0),s&&x6.push(a3[S4]<=0,a3[xi]<=0),x6.every(function(qt){return qt})){U2=i1,m2=!1;break}u2.set(i1,x6)}if(m2)for(var Xs=function($e){var I8=U.find(function(Ei){var N6=u2.get(Ei);if(N6)return N6.slice(0,$e).every(function(ec){return ec})});if(I8)return U2=I8,"break"},k8=V?3:1;k8>0&&"break"!==Xs(k8);k8--);n.placement!==U2&&(n.modifiersData[i]._skip=!0,n.placement=U2,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function o8(t,n,e){return p6(t,M0(n,e))}function Oo(t){var n=At(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 WF={name:"preventOverflow",enabled:!0,phase:"main",fn:function $F(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,g=e.tether,v=void 0===g||g,V=e.tetherOffset,H=void 0===V?0:V,D=Io(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),E=B4(n.placement),w=kt(n.placement),O=!w,U=ko(E),j=function GF(t){return"x"===t?"y":"x"}(U),J=n.modifiersData.popperOffsets,u2=n.rects.reference,m2=n.rects.popper,U2="function"==typeof H?H(Object.assign({},n.rects,{placement:n.placement})):H,N1="number"==typeof U2?{mainAxis:U2,altAxis:U2}:Object.assign({mainAxis:0,altAxis:0},U2),i1=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,H3={x:0,y:0};if(J){if(r){var n3,_e="y"===U?G3:j3,Me="y"===U?b4:L4,a3="y"===U?"height":"width",S4=J[U],xi=S4+D[_e],x6=S4-D[Me],Ni=v?-m2[a3]/2:0,Xs=w===Nt?u2[a3]:m2[a3],k8=w===Nt?-m2[a3]:-u2[a3],Ti=n.elements.arrow,qt=v&&Ti?Oo(Ti):{width:0,height:0},$e=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I8=$e[_e],Ei=$e[Me],N6=o8(0,u2[a3],qt[a3]),ec=O?u2[a3]/2-Ni-N6-I8-N1.mainAxis:Xs-N6-I8-N1.mainAxis,em2=O?-u2[a3]/2+Ni+N6+Ei+N1.mainAxis:k8+N6+Ei+N1.mainAxis,tc=n.elements.arrow&&r8(n.elements.arrow),eS=null!=(n3=null==i1?void 0:i1[U])?n3:0,im2=S4+em2-eS,tS=o8(v?M0(xi,S4+ec-eS-(tc?"y"===U?tc.clientTop||0:tc.clientLeft||0:0)):xi,S4,v?p6(x6,im2):x6);J[U]=tS,H3[U]=tS-S4}if(s){var nS,T6=J[j],Ai="y"===j?"height":"width",iS=T6+D["x"===U?G3:j3],aS=T6-D["x"===U?b4:L4],nc=-1!==[G3,j3].indexOf(E),rS=null!=(nS=null==i1?void 0:i1[j])?nS:0,oS=nc?iS:T6-u2[Ai]-m2[Ai]-rS+N1.altAxis,sS=nc?T6+u2[Ai]+m2[Ai]-rS-N1.altAxis:aS,cS=v&&nc?function jF(t,n,e){var i=o8(t,n,e);return i>e?e:i}(oS,T6,sS):o8(v?oS:iS,T6,v?sS:aS);J[j]=cS,H3[j]=cS-T6}n.modifiersData[i]=H3}},requiresIfExists:["offset"]},QF={name:"arrow",enabled:!0,phase:"main",fn:function KF(t){var n,e=t.state,i=t.name,a=t.options,r=e.elements.arrow,o=e.modifiersData.popperOffsets,s=B4(e.placement),c=ko(s),C=[j3,L4].indexOf(s)>=0?"height":"width";if(r&&o){var f=function(n,e){return Zp("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:Jp(n,t8))}(a.padding,e),g=Oo(r),v="y"===c?G3:j3,V="y"===c?b4:L4,H=e.rects.reference[C]+e.rects.reference[c]-o[c]-e.rects.popper[C],D=o[c]-e.rects.reference[c],E=r8(r),w=E?"y"===c?E.clientHeight||0:E.clientWidth||0:0,J=w/2-g[C]/2+(H/2-D/2),u2=o8(f[v],J,w-g[C]-f[V]);e.modifiersData[i]=((n={})[c]=u2,n.centerOffset=u2-J,n)}},effect:function YF(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))||!qp(n.elements.popper,a)||(n.elements.arrow=a))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function eB(t,n,e){void 0===e&&(e=!1);var i=a4(n),a=a4(n)&&function XF(t){var n=t.getBoundingClientRect(),e=Et(n.width)/t.offsetWidth||1,i=Et(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),r=Ie(n),o=At(t,a),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!e)&&(("body"!==U4(n)||Eo(r))&&(s=function JF(t){return t!==V4(t)&&a4(t)?function ZF(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):No(t)}(n)),a4(n)?((c=At(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):r&&(c.x=To(r))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function tB(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 iB(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var Xp={placement:"bottom",modifiers:[],strategy:"absolute"};function eg(){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 rB(t){void 0===t&&(t={});var e=t.defaultModifiers,i=void 0===e?[]:e,a=t.defaultOptions,r=void 0===a?Xp:a;return function(s,c,l){void 0===l&&(l=r);var C={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xp,r),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],g=!1,v={state:C,setOptions:function(E){var w="function"==typeof E?E(C.options):E;H(),C.options=Object.assign({},r,C.options,w),C.scrollParents={reference:Tt(s)?a8(s):s.contextElement?a8(s.contextElement):[],popper:a8(c)};var O=function nB(t){var n=tB(t);return NF.reduce(function(e,i){return e.concat(n.filter(function(a){return a.phase===i}))},[])}(function aB(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=O.filter(function(i1){return i1.enabled}),function V(){C.orderedModifiers.forEach(function(D){var w=D.options,U=D.effect;if("function"==typeof U){var j=U({state:C,name:D.name,instance:v,options:void 0===w?{}:w});f.push(j||function(){})}})}(),v.update()},forceUpdate:function(){if(!g){var E=C.elements,w=E.reference,O=E.popper;if(eg(w,O)){C.rects={reference:eB(w,r8(O),"fixed"===C.options.strategy),popper:Oo(O)},C.reset=!1,C.placement=C.options.placement,C.orderedModifiers.forEach(function(i1){return C.modifiersData[i1.name]=Object.assign({},i1.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:v})||C)}else C.reset=!1,j=-1}}},update:iB(function(){return new Promise(function(D){v.forceUpdate(),D(C)})}),destroy:function(){H(),g=!0}};if(!eg(s,c))return v;function H(){f.forEach(function(D){return D()}),f=[]}return v.setOptions(l).then(function(D){!g&&l.onFirstUpdate&&l.onFirstUpdate(D)}),v}}var b0={passive:!0},CB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tg(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,g=o.x,v=void 0===g?0:g,V=o.y,H=void 0===V?0:V,D="function"==typeof C?C({x:v,y:H}):{x:v,y:H};v=D.x,H=D.y;var E=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),O=j3,U=G3,j=window;if(l){var J=r8(e),u2="clientHeight",m2="clientWidth";J===V4(e)&&"static"!==Ce(J=Ie(e)).position&&"absolute"===s&&(u2="scrollHeight",m2="scrollWidth"),J=J,(a===G3||(a===j3||a===L4)&&r===n8)&&(U=b4,H-=(f&&J===j&&j.visualViewport?j.visualViewport.height:J[u2])-i.height,H*=c?1:-1),a!==j3&&(a!==G3&&a!==b4||r!==n8)||(O=L4,v-=(f&&J===j&&j.visualViewport?j.visualViewport.width:J[m2])-i.width,v*=c?1:-1)}var n3,i1=Object.assign({position:s},l&&CB),H3=!0===C?function fB(t){var e=t.y,a=window.devicePixelRatio||1;return{x:Et(t.x*a)/a||0,y:Et(e*a)/a||0}}({x:v,y:H}):{x:v,y:H};return v=H3.x,H=H3.y,Object.assign({},i1,c?((n3={})[U]=w?"0":"",n3[O]=E?"0":"",n3.transform=(j.devicePixelRatio||1)<=1?"translate("+v+"px, "+H+"px)":"translate3d("+v+"px, "+H+"px, 0)",n3):((n={})[U]=w?H+"px":"",n[O]=E?v+"px":"",n.transform="",n))}var mB=rB({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function oB(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=V4(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return r&&l.forEach(function(C){C.addEventListener("scroll",e.update,b0)}),s&&c.addEventListener("resize",e.update,b0),function(){r&&l.forEach(function(C){C.removeEventListener("scroll",e.update,b0)}),s&&c.removeEventListener("resize",e.update,b0)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function cB(t){var n=t.state;n.modifiersData[t.name]=Yp({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function uB(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:B4(n.placement),variation:kt(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,tg(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,tg(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 hB(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];!a4(r)||!U4(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 pB(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},{});!a4(a)||!U4(a)||(Object.assign(a.style,s),Object.keys(r).forEach(function(c){a.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const MB={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function _B(t){var n=t.state,i=t.name,a=t.options.offset,r=void 0===a?[0,0]:a,o=jp.reduce(function(C,f){return C[f]=function vB(t,n,e){var i=B4(t),a=[j3,G3].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,[j3,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 yB(t,n){}function bB(t,n){if(1&t&&(h(0,"button",3),_(1),k(2,yB,0,0,"ng-template",4),p()),2&t){const e=n.$implicit;M("ngbPanelToggle",e),m(1),S3(" ",e.title,""),m(1),M("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function LB(t,n){}function VB(t,n){}function HB(t,n){if(1&t){const e=f1();h(0,"div",8),x("ngbRef",function(a){return I(e),z().$implicit.panelDiv=a}),h(1,"div",9),k(2,VB,0,0,"ng-template",4),p()()}if(2&t){const e=z().$implicit;Fr("id",e.id),P("aria-labelledby",e.id+"-header"),m(2),M("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const wB=function(t,n){return{$implicit:t,opened:n}};function zB(t,n){if(1&t&&(h(0,"div")(1,"div",5),k(2,LB,0,0,"ng-template",6),p(),k(3,HB,3,3,"div",7),p()),2&t){const e=n.$implicit,i=z(),a=X3(1);te("accordion-item "+(e.cardClass||"")),m(1),te("accordion-header "+(e.type?"bg-"+e.type:i.type?"bg-"+i.type:"")),Mt("id","",e.id,"-header"),m(1),M("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||a)("ngTemplateOutletContext",P5(8,wB,e,e.isOpen)),m(1),M("ngIf",!i.destroyOnHide||e.isOpen||e.transitionRunning)}}function SB(t,n){if(1&t){const e=f1();h(0,"button",1),x("click",function(){return I(e),z().close()}),p()}}const L0=["*"],WB=["dialog"];function VU(t,n){1&t&&_(0),2&t&&ne(z(2).title)}function HU(t,n){}function wU(t,n){if(1&t&&(h(0,"h3",3),k(1,VU,1,1,"ng-template",null,4,e4),k(3,HU,0,0,"ng-template",5),p()),2&t){const e=X3(2),i=z();m(3),M("ngTemplateOutlet",i.isTitleTemplate()?i.title:e)("ngTemplateOutletContext",i.context)}}function Po(t){return"string"==typeof t}function g6(t){return null!=t}function It(t){return(t||document.body).getBoundingClientRect()}const ig={animation:!0,transitionTimerDelayMs:5},BU=()=>{},{transitionTimerDelayMs:UU}=ig,s8=new Map,X1=(t,n,e,i)=>{let a=i.context||{};const r=s8.get(n);if(r)switch(i.runningTransition){case"continue":return l4;case"stop":t.run(()=>r.transition$.complete()),a=Object.assign(r.context,a),s8.delete(n)}const o=e(n,i.animation,a)||BU;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>o()),s2(void 0).pipe(function PU(t){return n=>new I2(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 dF(...t){return n=>e8(n,s2(...t))}(!0));s8.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:a});const C=function FU(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const f=g3(n,"transitionend").pipe(G1(l),J1(({target:v})=>v===n));Ip(Ho(C+UU).pipe(G1(l)),f,c).pipe(G1(l)).subscribe(()=>{s8.delete(n),t.run(()=>{o(),s.next(),s.complete()})})}),s.asObservable()},Bo=(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 jU(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"),It(t),r.add("collapsing")),t.style.height="show"===i?a:"0px",()=>{o(),r.remove("collapsing"),t.style.height=""};o()};let Oe=(()=>{class t{constructor(){this.animation=ig.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$U=(()=>{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(Oe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WU=0,H0=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(L(u1))},t.\u0275dir=G({type:t,selectors:[["ng-template","ngbPanelHeader",""]]}),t})(),Uo=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(L(u1))},t.\u0275dir=G({type:t,selectors:[["ng-template","ngbPanelTitle",""]]}),t})(),Go=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(L(u1))},t.\u0275dir=G({type:t,selectors:[["ng-template","ngbPanelContent",""]]}),t})(),w0=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+WU++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new n2,this.hidden=new n2}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,Uo,4),z1(a,H0,4),z1(a,Go,4)),2&e){let r;g1(r=m1())&&(i.titleTpls=r),g1(r=m1())&&(i.headerTpls=r),g1(r=m1())&&(i.contentTpls=r)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),t})(),qU=(()=>{class t{constructor(e){this._El=e,this.ngbRef=new n2}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(L(E2))},t.\u0275dir=G({type:t,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"}}),t})(),jo=(()=>{class t{constructor(e,i,a){this._ngZone=i,this._changeDetector=a,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new n2,this.shown=new n2,this.hidden=new n2,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(){Po(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,X1(this._ngZone,i,Bo,{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&&X1(this._ngZone,i.panelDiv,Bo,{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)(L($U),L(R2),L(B3))},t.\u0275cmp=t2({type:t,selectors:[["ngb-accordion"]],contentQueries:function(e,i,a){if(1&e&&z1(a,w0,4),2&e){let r;g1(r=m1())&&(i.panels=r)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,i){2&e&&P("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,bB,3,3,"ng-template",0,1,e4),k(2,zB,4,11,"ng-template",2)),2&e&&(m(2),M("ngForOf",i.panels))},directives:function(){return[H0,$o,Dt,oe,d1,qU]},encapsulation:2}),t})(),$o=(()=>{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)(L(jo),L(w0,9))},t.\u0275dir=G({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,i){1&e&&x("click",function(){return i.accordion.toggle(i.panel.id)}),2&e&&(_4("disabled",i.panel.disabled),P("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),t1("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),t})(),ag=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})();const KU=({classList:t})=>{t.remove("show")};let YU=(()=>{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(Oe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rg=(()=>{class t{constructor(e,i,a,r){this._renderer=i,this._element=a,this._zone=r,this.closed=new n2,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=X1(this._zone,this._element.nativeElement,KU,{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)(L(YU),L(h3),L(E2),L(R2))},t.\u0275cmp=t2({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&t1("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[y1],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&&(vt(),_t(0),k(1,SB,1,0,"button",0)),2&e&&(m(1),M("ngIf",i.dismissible))},directives:[d1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),og=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})(),cg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({}),t})(),fg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})(),iG=(()=>{class t{constructor(e){this._ngbConfig=e}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(Oe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),aG=(()=>{class t{constructor(e,i,a){this._element=e,this._zone=a,this.collapsed=!1,this.ngbCollapseChange=new n2,this.shown=new n2,this.hidden=new n2,this.animation=i.animation}ngOnInit(){this._runTransition(this.collapsed,!1)}ngOnChanges({collapsed:e}){e.firstChange||this._runTransitionWithEvents(this.collapsed,this.animation)}toggle(e=this.collapsed){this.collapsed=!e,this.ngbCollapseChange.next(this.collapsed),this._runTransitionWithEvents(this.collapsed,this.animation)}_runTransition(e,i){return X1(this._zone,this._element.nativeElement,Bo,{animation:i,runningTransition:"stop",context:{direction:e?"hide":"show"}})}_runTransitionWithEvents(e,i){this._runTransition(e,i).subscribe(()=>{e?this.hidden.emit():this.shown.emit()})}}return t.\u0275fac=function(e){return new(e||t)(L(E2),L(iG),L(R2))},t.\u0275dir=G({type:t,selectors:[["","ngbCollapse",""]],inputs:{animation:"animation",collapsed:["ngbCollapse","collapsed"]},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],features:[y1]}),t})(),ug=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({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 S0=(t,n)=>!!n&&n.some(e=>e.contains(t)),dg=(t,n)=>!n||null!=function RU(t,n){return n&&void 0!==t.closest?t.closest(n):null}(t,n),fG="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 qo(t,n,e,i,a,r,o,s){e&&t.runOutsideAngular((t=>fG?()=>setTimeout(()=>t(),100):t)(()=>{const l=g3(n,"keydown").pipe(G1(a),J1(g=>g.which===j1.Escape),m3(g=>g.preventDefault())),C=g3(n,"mousedown").pipe(v2(g=>{const v=g.target;return 2!==g.button&&!S0(v,o)&&("inside"===e?S0(v,r)&&dg(v,s):"outside"===e?!S0(v,r):dg(v,s)||!S0(v,r))}),G1(a)),f=g3(n,"mouseup").pipe(So(C),J1(([g,v])=>v),Fp(0),G1(a));Ip([l.pipe(v2(g=>0)),f.pipe(v2(g=>1))]).subscribe(g=>t.run(()=>i(g)))}))}const hg=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function pg(t){const n=Array.from(t.querySelectorAll(hg)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const hG=/\s+/,pG=/ +/gi,gG=/^start/,mG=/^end/,vG=/-(top|left)$/,_G=/-(bottom|right)$/,yG=/^left/,bG=/^right/,LG=/^start/,VG=/^end/;function gg({placement:t,baseClass:n}){let e=Array.isArray(t)?t:t.split(hG),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(gG,"left").replace(mG,"right").replace(vG,"-start").replace(_G,"-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 g=C.className;g=g.replace(l,""),g+=` ${function HG(t,n){let[e,i]=n.split("-");const a=e.replace(yG,"start").replace(bG,"end");let r=[a];if(i){let o=i;("left"===e||"right"===e)&&(o=o.replace(LG,"top").replace(VG,"bottom")),r.push(`${a}-${o}`)}return t&&(r=r.map(o=>`${t}-${o}`)),r.join(" ")}(n,f)}`,g=g.trim().replace(pG," "),C.className=g}},UF,WF,QF,{enabled:!0,name:"flip",options:{fallbackPlacements:r}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function mg(t){return t}function Ko(){let t=null;return{createPopper(n){if(!t){let i=(n.updatePopperOptions||mg)(gg(n));t=mB(n.hostElement,n.targetElement,i)}},update(){t&&t.update()},setOptions(n){if(t){let i=(n.updatePopperOptions||mg)(gg(n));t.setOptions(i)}},destroy(){t&&(t.destroy(),t=null)}}}function vg(t){return n=>(n.modifiers.push(MB,{name:"offset",options:{offset:()=>t}}),n)}new Date(1882,10,12),new Date(2174,10,25);let Vg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3,Np]]}),t})(),Sg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({}),t})();class M6{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class Dg{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),H1(()=>X1(this._ngZone,a,({classList:o})=>o.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(n=!1){return this._windowRef?X1(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(m3(()=>{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 u1){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new M6([i.rootNodes],i)}return new M6([[this._renderer.createText(`${n}`)]])}return new M6([])}}let IG=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Q1(1)).subscribe(()=>{X1(this._zone,this._el.nativeElement,(e,i)=>{i&&It(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return X1(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(L(E2),L(R2))},t.\u0275cmp=t2({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(te("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),t1("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class xg{close(n){}dismiss(n){}}class OG{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 ng(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}}),m0(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var y6=(()=>{return(t=y6||(y6={}))[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",y6;var t})();let RG=(()=>{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 n2,this.shown=new d2,this.hidden=new d2}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Po(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=m0(X1(this._zone,e,()=>e.classList.remove("show"),i),X1(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"};m0(X1(this._zone,this._elRef.nativeElement,(r,o)=>{o&&It(r),r.classList.add("show")},e),X1(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(()=>{g3(e,"keydown").pipe(G1(this._closed$),J1(a=>a.which===j1.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(y6.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;g3(this._dialogEl.nativeElement,"mousedown").pipe(G1(this._closed$),m3(()=>i=!1),le(()=>g3(e,"mouseup").pipe(G1(this._closed$),Q1(1))),J1(({target:a})=>e===a)).subscribe(()=>{i=!0}),g3(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(y6.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=pg(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&&X1(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)(L(S1),L(E2),L(R2))},t.\u0275cmp=t2({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&function l7(t,n,e){const i=D2();i.firstCreatePass&&(sd(i,new ad(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),od(i,R(),n)}(WB,7),2&e){let a;g1(a=m1())&&(i._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(P("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),te("modal d-block"+(i.windowClass?" "+i.windowClass:"")),t1("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&&(vt(),h(0,"div",0,1)(2,"div",2),_t(3),p()()),2&e&&te("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})(),PG=(()=>{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=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),FG=(()=>{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 n2,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=g3(n,"focusin").pipe(G1(e),v2(r=>r.target));g3(n,"keydown").pipe(G1(e),J1(r=>r.which===j1.Tab),So(a)).subscribe(([r,o])=>{const[s,c]=pg(n);(o===s||o===n)&&r.shiftKey&&(c.focus(),r.preventDefault()),o===c&&!r.shiftKey&&(s.focus(),r.preventDefault())}),i&&g3(n,"click").pipe(G1(e),So(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:g6(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 xg,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),g=new OG(f,l,C,r.beforeDismiss);return this._registerModalRef(g),this._registerWindowCmpt(f),g.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=v=>{g.close(v)},c.dismiss=v=>{g.dismiss(v)},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(),g}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(IG).create(this._injector);return this._applicationRef.attachView(r.hostView),i.appendChild(r.location.nativeElement),r}_attachWindowComponent(e,i,a){let o=e.resolveComponentFactory(RG).create(this._injector,a.nodes);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_applyWindowOptions(e,i){this._windowAttributes.forEach(a=>{g6(i[a])&&(e[a]=i[a])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(a=>{g6(i[a])&&(e[a]=i[a])})}_getContentRef(e,i,a,r,o){return a?a instanceof u1?this._createFromTemplateRef(a,r):Po(a)?this._createFromString(a):this._createFromComponent(e,i,a,r,o):new M6([])}_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 M6([r.rootNodes],r)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new M6([[i]])}_createFromComponent(e,i,a,r,o){const s=e.resolveComponentFactory(a),c=k1.create({providers:[{provide:xg,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 M6([[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(St),q(k1),q(S1),q(PG),q(Qr),q(R2))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),BG=(()=>{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(Oe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ng=(()=>{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(Vt),q(k1),q(FG),q(BG))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({providers:[Ng]}),t})(),Ig=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})(),jg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})();class qG{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const KG={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},$g=t=>t>0?Fp(t):n=>n;function Wg(t,n,e,i,a,r,o=0,s=0){const c=function YG(t,n=KG){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 qG(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 I2(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 ZG(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)}),vc());return mc(r.pipe(J1(c=>c.open),$g(t)),r.pipe(J1(c=>!c.open),$g(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 JG=(()=>{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(Oe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XG=0,ej=(()=>{class t{isTitleTemplate(){return this.title instanceof u1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=t2({type:t,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(_4("id",i.id),te("popover"+(i.popoverClass?" "+i.popoverClass:"")),t1("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&&(vt(),N(0,"div",0),k(1,wU,4,2,"h3",1),h(2,"div",2),_t(3),p()),2&e&&(m(1),M("ngIf",i.title))},directives:[d1,Dt],encapsulation:2,changeDetection:0}),t})(),tj=(()=>{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 n2,this.hidden=new n2,this._ngbPopoverWindowId="ngb-popover-"+XG++,this._windowRef=null,this._positioning=Ko(),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 Dg(ej,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:vg([0,8])}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),qo(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=Wg(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)(L(E2),L(h3),L(k1),L(F3),L(JG),L(R2),L(S1),L(B3),L(St))},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:[y1]}),t})(),qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})(),Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})(),Yg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})(),Qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})(),Zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})(),aj=(()=>{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(Oe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rj=0,oj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=t2({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(_4("id",i.id),te("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),t1("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&&(vt(),N(0,"div",0),h(1,"div",1),_t(2),p())},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 n2,this.hidden=new n2,this._ngbTooltipWindowId="ngb-tooltip-"+rj++,this._windowRef=null,this._positioning=Ko(),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 Dg(oj,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())})}),qo(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=Wg(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)(L(E2),L(h3),L(k1),L(F3),L(aj),L(R2),L(S1),L(B3),L(St))},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:[y1]}),t})(),Xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({}),t})();new _2("live announcer delay",{providedIn:"root",factory:function sj(){return 100}});let em=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[U3]]}),t})(),tm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({}),t})();const cj=[ag,og,cg,fg,ug,Vg,Sg,Tg,Ig,tm,jg,qg,Kg,Yg,Qg,Zg,Xg,em];let lj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[cj,ag,og,cg,fg,ug,Vg,Sg,Tg,Ig,tm,jg,qg,Kg,Yg,Qg,Zg,Xg,em]}),t})();function nm(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?nm(Object(e),!0).forEach(function(i){uj(t,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):nm(Object(e)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}return t}function A0(t){return(A0="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 im(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 uj(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function t9(t,n){return function pj(t){if(Array.isArray(t))return t}(t)||function mj(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)||am(t,n)||function _j(){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 I0(t){return function hj(t){if(Array.isArray(t))return n9(t)}(t)||function gj(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||am(t)||function vj(){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 am(t,n){if(t){if("string"==typeof t)return n9(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 n9(t,n)}}function n9(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 rm=function(){},i9={},om={},sm=null,cm={mark:rm,measure:rm};try{"undefined"!=typeof window&&(i9=window),"undefined"!=typeof document&&(om=document),"undefined"!=typeof MutationObserver&&(sm=MutationObserver),"undefined"!=typeof performance&&(cm=performance)}catch(t){}var lm=(i9.navigator||{}).userAgent,Cm=void 0===lm?"":lm,Pe=i9,o1=om,fm=sm,O0=cm,ue=!!o1.documentElement&&!!o1.head&&"function"==typeof o1.addEventListener&&"function"==typeof o1.createElement,um=~Cm.indexOf("MSIE")||~Cm.indexOf("Trident/"),de="___FONT_AWESOME___",hm="svg-inline--fa",b6="data-fa-i2svg",r9="data-fa-pseudo-element",o9="data-prefix",s9="data-icon",pm="fontawesome-i2svg",Lj=["HTML","HEAD","STYLE","SCRIPT"],gm=function(){try{return!0}catch(t){return!1}}(),c9={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"},R0={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},mm={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Vj={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},Hj=/fa[srltdbk\-\ ]/,vm="fa-layers-text",wj=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,zj={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},_m=[1,2,3,4,5,6,7,8,9,10],Sj=_m.concat([11,12,13,14,15,16,17,18,19,20]),Dj=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],xj=[].concat(I0(Object.keys(R0)),["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(_m.map(function(t){return"".concat(t,"x")})).concat(Sj.map(function(t){return"w-".concat(t)})),Mm=Pe.FontAwesomeConfig||{};o1&&"function"==typeof o1.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=t9(t,2),i=n[1],a=function Tj(t){return""===t||"false"!==t&&("true"===t||t)}(function Nj(t){var n=o1.querySelector("script["+t+"]");if(n)return n.getAttribute(t)}(n[0]));null!=a&&(Mm[i]=a)});var u8=Y(Y({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:hm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),Mm);u8.autoReplaceSvg||(u8.observeMutations=!1);var X={};Object.keys(u8).forEach(function(t){Object.defineProperty(X,t,{enumerable:!0,set:function(e){u8[t]=e,P0.forEach(function(i){return i(X)})},get:function(){return u8[t]}})}),Pe.FontAwesomeConfig=X;var P0=[],j4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function d8(){for(var t=12,n="";t-- >0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function Rt(t){for(var n=[],e=(t||[]).length>>>0;e--;)n[e]=t[e];return n}function l9(t){return t.classList?Rt(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(n){return n})}function ym(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function F0(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,": ").concat(t[e].trim(),";")},"")}function C9(t){return t.size!==j4.size||t.x!==j4.x||t.y!==j4.y||t.rotate!==j4.rotate||t.flipX||t.flipY}function bm(){var t="fa",n=hm,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 Lm=!1;function f9(){X.autoAddCss&&!Lm&&(function Ij(t){if(t&&ue){var n=o1.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=t;for(var e=o1.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)}o1.head.insertBefore(n,i)}}(bm()),Lm=!0)}var Uj={mixout:function(){return{dom:{css:bm,insertCss:f9}}},hooks:function(){return{beforeDOMElementCreation:function(){f9()},beforeI2svg:function(){f9()}}}},he=Pe||{};he[de]||(he[de]={}),he[de].styles||(he[de].styles={}),he[de].hooks||(he[de].hooks={}),he[de].shims||(he[de].shims=[]);var w4=he[de],Vm=[],B0=!1;function jj(t){!ue||(B0?setTimeout(t,0):Vm.push(t))}function h8(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?ym(t):"<".concat(n," ").concat(function Rj(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,'="').concat(ym(t[e]),'" ')},"").trim()}(i),">").concat(r.map(h8).join(""),"</").concat(n,">")}function Hm(t,n,e){if(t&&t[n]&&t[n][e])return{prefix:n,iconName:e,icon:t[n][e]}}ue&&((B0=(o1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(o1.readyState))||o1.addEventListener("DOMContentLoaded",function t(){o1.removeEventListener("DOMContentLoaded",t),B0=1,Vm.map(function(n){return n()})}));var u9=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 d9(t){var n=function Wj(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 wm(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 h9(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.skipHooks,a=void 0!==i&&i,r=wm(n);"function"!=typeof w4.hooks.addPack||a?w4.styles[t]=Y(Y({},w4.styles[t]||{}),r):w4.hooks.addPack(t,wm(n)),"fas"===t&&h9("fa",n)}var p8=w4.styles,Kj=w4.shims,Yj=Object.values(mm),p9=null,zm={},Sm={},Dm={},xm={},Nm={},Qj=Object.keys(c9);function Jj(t,n){var e=n.split("-"),i=e[0],a=e.slice(1).join("-");return i!==t||""===a||function Zj(t){return~xj.indexOf(t)}(a)?null:a}var Tm=function(){var n=function(r){return u9(p8,function(o,s,c){return o[c]=u9(s,r,{}),o},{})};zm=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}),Sm=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}),Nm=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 p8||X.autoFetchSvg,i=u9(Kj,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:{}});Dm=i.names,xm=i.unicodes,p9=U0(X.styleDefault)};function g9(t,n){return(zm[t]||{})[n]}function Pt(t,n){return(Nm[t]||{})[n]}function Em(t){return Dm[t]||{prefix:null,iconName:null}}function Be(){return p9}function U0(t){return R0[t]||R0[c9[t]]||(t in w4.styles?t:null)||null}function G0(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=Jj(X.familyPrefix,s);if(p8[s]?(s=Yj.includes(s)?Vj[s]:s,a=s,o.prefix=s):Qj.indexOf(s)>-1?(a=s,o.prefix=U0(s)):c?o.iconName=c:s!==X.replacementClass&&o.rest.push(s),!i&&o.prefix&&o.iconName){var l="fa"===a?Em(o.iconName):{},C=Pt(o.prefix,o.iconName);l.prefix&&(a=null),o.iconName=l.iconName||C||o.iconName,o.prefix=l.prefix||o.prefix,"far"===o.prefix&&!p8.far&&p8.fas&&!X.autoFetchSvg&&(o.prefix="fas")}return o},{prefix:null,iconName:null,rest:[]});return("fa"===r.prefix||"fa"===a)&&(r.prefix=Be()||"fas"),r}(function kj(t){P0.push(t)})(function(t){p9=U0(t.styleDefault)}),Tm();var t$=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 fj(t,n,e){n&&im(t.prototype,n),e&&im(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]),h9(s,o[s]);var c=mm[s];c&&h9(c,o[s]),Tm()})}},{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}(),Am=[],Ft={},Bt={},n$=Object.keys(Bt);function v9(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=Ft[t]||[];return r.forEach(function(o){n=o.apply(null,[n].concat(i))}),n}function V6(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=Ft[t]||[];a.forEach(function(r){r.apply(null,e)})}function pe(){var t=arguments[0],n=Array.prototype.slice.call(arguments,1);return Bt[t]?Bt[t].apply(null,n):void 0}function _9(t){"fa"===t.prefix&&(t.prefix="fas");var n=t.iconName,e=t.prefix||Be();if(n)return n=Pt(e,n)||n,Hm(km.definitions,e,n)||Hm(w4.styles,e,n)}var km=new t$,r$={i2svg:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ue?(V6("beforeI2svg",n),pe("pseudoElements2svg",n),pe("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,jj(function(){s$({autoReplaceSvgRoot:e}),V6("watch",n)})}},$3={noAuto:function(){X.autoReplaceSvg=!1,X.observeMutations=!1,V6("noAuto")},config:X,dom:r$,parse:{icon:function(n){if(null===n)return null;if("object"===A0(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:Pt(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=U0(n[0]);return{prefix:i,iconName:Pt(i,e)||e}}if("string"==typeof n&&(n.indexOf("".concat(X.familyPrefix,"-"))>-1||n.match(Hj))){var a=G0(n.split(" "),{skipLookups:!0});return{prefix:a.prefix||Be(),iconName:Pt(a.prefix,a.iconName)||a.iconName}}if("string"==typeof n){var r=Be();return{prefix:r,iconName:Pt(r,n)||n}}}},library:km,findIconDefinition:_9,toHtml:h8},s$=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot,i=void 0===e?o1:e;(Object.keys(w4.styles).length>0||X.autoFetchSvg)&&ue&&X.autoReplaceSvg&&$3.dom.i2svg({node:i})};function j0(t,n){return Object.defineProperty(t,"abstract",{get:n}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(i){return h8(i)})}}),Object.defineProperty(t,"node",{get:function(){if(ue){var i=o1.createElement("div");return i.innerHTML=t.html,i.children}}}),t}function M9(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,g=t.watchable,v=void 0!==g&&g,V=i.found?i:e,H=V.width,D=V.height,E="fak"===a,w=[X.replacementClass,r?"".concat(X.familyPrefix,"-").concat(r):""].filter(function(U2){return-1===f.classes.indexOf(U2)}).filter(function(U2){return""!==U2||!!U2}).concat(f.classes).join(" "),O={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(D)})},U=E&&!~f.classes.indexOf("fa-fw")?{width:"".concat(H/D*16*.0625,"em")}:{};v&&(O.attributes[b6]=""),c&&(O.children.push({tag:"title",attributes:{id:O.attributes["aria-labelledby"]||"title-".concat(C||d8())},children:[c]}),delete O.attributes.title);var j=Y(Y({},O),{},{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?pe("generateAbstractMask",j)||{children:[],attributes:{}}:pe("generateAbstractIcon",j)||{children:[],attributes:{}},m2=J.attributes;return j.children=J.children,j.attributes=m2,s?function l$(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 c$(t){var n=t.children,e=t.main,i=t.mask,a=t.attributes,r=t.styles,o=t.transform;if(C9(o)&&e.found&&!i.found){var l={x:e.width/e.height/2,y:.5};a.style=F0(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 Im(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[b6]="");var C=Y({},o.styles);C9(a)&&(C.transform=function Fj(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&&um?"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=F0(C);f.length>0&&(l.style=f);var g=[];return g.push({tag:"span",attributes:l,children:[n]}),r&&g.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),g}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=F0(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 y9=w4.styles;function b9(t){var n=t[0],e=t[1],r=t9(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 f$={found:!1,width:512,height:512};function L9(t,n){var e=n;return"fa"===n&&null!==X.styleDefault&&(n=Be()),new Promise(function(i,a){if(pe("missingIconAbstract"),"fa"===e){var o=Em(t)||{};t=o.iconName||t,n=o.prefix||n}if(t&&n&&y9[n]&&y9[n][t])return i(b9(y9[n][t]));(function u$(t,n){!gm&&!X.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(n,'" is missing.'))})(t,n),i(Y(Y({},f$),{},{icon:X.showMissingIcons&&t&&pe("missingIconAbstract")||{}}))})}var Om=function(){},V9=X.measurePerformance&&O0&&O0.mark&&O0.measure?O0:{mark:Om,measure:Om},g8='FA "6.1.1"',H9_begin=function(n){return V9.mark("".concat(g8," ").concat(n," begins")),function(){return function(n){V9.mark("".concat(g8," ").concat(n," ends")),V9.measure("".concat(g8," ").concat(n),"".concat(g8," ").concat(n," begins"),"".concat(g8," ").concat(n," ends"))}(n)}},$0=function(){};function Pm(t){return"string"==typeof(t.getAttribute?t.getAttribute(b6):null)}function m$(t){return o1.createElementNS("http://www.w3.org/2000/svg",t)}function v$(t){return o1.createElement(t)}function Fm(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.ceFn,i=void 0===e?"svg"===t.tag?m$:v$:e;if("string"==typeof t)return o1.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(Fm(o,{ceFn:i}))}),a}var W0={replace:function(n){var e=n[0];if(e.parentNode)if(n[1].forEach(function(a){e.parentNode.insertBefore(Fm(a),e)}),null===e.getAttribute(b6)&&X.keepOriginalSource){var i=o1.createComment(function _$(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(~l9(e).indexOf(X.replacementClass))return W0.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 h8(s)}).join("\n");e.setAttribute(b6,""),e.innerHTML=o}};function Bm(t){t()}function Um(t,n){var e="function"==typeof n?n:$0;if(0===t.length)e();else{var i=Bm;"async"===X.mutateApproach&&(i=Pe.requestAnimationFrame||Bm),i(function(){var a=function g$(){return!0===X.autoReplaceSvg?W0.replace:W0[X.autoReplaceSvg]||W0.replace}(),r=H9_begin("mutate");t.map(a),r(),e()})}}var w9=!1;function Gm(){w9=!0}function z9(){w9=!1}var q0=null;function jm(t){if(fm&&X.observeMutations){var n=t.treeCallback,e=void 0===n?$0:n,i=t.nodeCallback,a=void 0===i?$0:i,r=t.pseudoElementsCallback,o=void 0===r?$0:r,s=t.observeMutationsRoot,c=void 0===s?o1:s;q0=new fm(function(l){if(!w9){var C=Be();Rt(l).forEach(function(f){if("childList"===f.type&&f.addedNodes.length>0&&!Pm(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&&Pm(f.target)&&~Dj.indexOf(f.attributeName))if("class"===f.attributeName&&function h$(t){var n=t.getAttribute?t.getAttribute(o9):null,e=t.getAttribute?t.getAttribute(s9):null;return n&&e}(f.target)){var g=G0(l9(f.target)),V=g.iconName;f.target.setAttribute(o9,g.prefix||C),V&&f.target.setAttribute(s9,V)}else(function p$(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(X.replacementClass)})(f.target)&&a(f.target)})}}),ue&&q0.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function y$(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 b$(t){var n=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",a=G0(l9(t));return a.prefix||(a.prefix=Be()),n&&e&&(a.prefix=n,a.iconName=e),a.iconName&&a.prefix||a.prefix&&i.length>0&&(a.iconName=function Xj(t,n){return(Sm[t]||{})[n]}(a.prefix,t.innerText)||g9(a.prefix,d9(t.innerText))),a}function L$(t){var n=Rt(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||d8()):(n["aria-hidden"]="true",n.focusable="false")),n}function $m(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},e=b$(t),i=e.iconName,a=e.prefix,r=e.rest,o=L$(t),s=v9("parseNodeAttributes",{},t),c=n.styleParser?y$(t):[];return Y({iconName:i,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:a,transform:j4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:c,attributes:o}},s)}var H$=w4.styles;function Wm(t){var n="nest"===X.autoReplaceSvg?$m(t,{styleParser:!1}):$m(t);return~n.extra.classes.indexOf(vm)?pe("generateLayersText",t,n):pe("generateSvgReplacementMutation",t,n)}function qm(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ue)return Promise.resolve();var e=o1.documentElement.classList,i=function(f){return e.add("".concat(pm,"-").concat(f))},a=function(f){return e.remove("".concat(pm,"-").concat(f))},r=Object.keys(X.autoFetchSvg?c9:H$),o=[".".concat(vm,":not([").concat(b6,"])")].concat(r.map(function(C){return".".concat(C,":not([").concat(b6,"])")})).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=Rt(t.querySelectorAll(o))}catch(C){}if(!(s.length>0))return Promise.resolve();i("pending"),a("complete");var c=H9_begin("onTree"),l=s.reduce(function(C,f){try{var g=Wm(f);g&&C.push(g)}catch(v){gm||"MissingIcon"===v.name&&console.error(v)}return C},[]);return new Promise(function(C,f){Promise.all(l).then(function(g){Um(g,function(){i("active"),i("complete"),a("pending"),"function"==typeof n&&n(),c(),C()})}).catch(function(g){c(),f(g)})})}function w$(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Wm(t).then(function(e){e&&Um([e],n)})}var S$=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.transform,a=void 0===i?j4: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,g=void 0===f?null:f,v=e.titleId,V=void 0===v?null:v,H=e.classes,D=void 0===H?[]:H,E=e.attributes,w=void 0===E?{}:E,O=e.styles,U=void 0===O?{}:O;if(n){var j=n.prefix,J=n.iconName,u2=n.icon;return j0(Y({type:"icon"},n),function(){return V6("beforeDOMElementCreation",{iconDefinition:n,params:e}),X.autoA11y&&(g?w["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(V||d8()):(w["aria-hidden"]="true",w.focusable="false")),M9({icons:{main:b9(u2),mask:c?b9(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:j,iconName:J,transform:Y(Y({},j4),a),symbol:o,title:g,maskId:C,titleId:V,extra:{attributes:w,styles:U,classes:D}})})}},D$={mixout:function(){return{icon:(t=S$,function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:_9(n||{}),a=e.mask;return a&&(a=(a||{}).icon?a:_9(a||{})),t(i,Y(Y({},e),{},{mask:a}))})};var t},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=qm,e.nodeCallback=w$,e}}},provides:function(n){n.i2svg=function(e){var i=e.node,r=e.callback;return qm(void 0===i?o1: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,g=i.extra;return new Promise(function(v,V){Promise.all([L9(a,s),C.iconName?L9(C.iconName,C.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(H){var D=t9(H,2);v([e,M9({icons:{main:D[0],mask:D[1]},prefix:s,iconName:a,transform:c,symbol:l,maskId:f,title:r,titleId:o,extra:g,watchable:!0})])}).catch(V)})},n.generateAbstractIcon=function(e){var l,i=e.children,a=e.attributes,r=e.main,o=e.transform,c=F0(e.styles);return c.length>0&&(a.style=c),C9(o)&&(l=pe("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),i.push(l||r.icon),{children:i,attributes:a}}}},x$={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 j0({type:"layer"},function(){V6("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(I0(r)).join(" ")},children:o}]})}}}},N$={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 j0({type:"counter",content:e},function(){return V6("beforeDOMElementCreation",{content:e,params:i}),C$({content:e.toString(),title:r,extra:{attributes:l,styles:f,classes:["".concat(X.familyPrefix,"-layers-counter")].concat(I0(s))}})})}}}},T$={mixout:function(){return{text:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.transform,r=void 0===a?j4: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,g=i.styles,v=void 0===g?{}:g;return j0({type:"text",content:e},function(){return V6("beforeDOMElementCreation",{content:e,params:i}),Im({content:e,transform:Y(Y({},j4),r),title:s,extra:{attributes:f,styles:v,classes:["".concat(X.familyPrefix,"-layers-text")].concat(I0(l))}})})}}},provides:function(n){n.generateLayersText=function(e,i){var a=i.title,r=i.transform,o=i.extra,s=null,c=null;if(um){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,Im({content:e.innerHTML,width:s,height:c,transform:r,title:a,extra:o,watchable:!0})])}}},E$=new RegExp('"',"ug"),Km=[1105920,1112319];function Ym(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=Rt(t.children).filter(function(J){return J.getAttribute(r9)===n})[0],s=Pe.getComputedStyle(t,n),c=s.getPropertyValue("font-family").match(wj),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"),g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?R0[c[2].toLowerCase()]:zj[l],v=function A$(t){var n=t.replace(E$,""),e=function qj(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>=Km[0]&&e<=Km[1],a=2===n.length&&n[0]===n[1];return{value:d9(a?n[0]:n),isSecondary:i||a}}(f),V=v.value,H=v.isSecondary,D=c[0].startsWith("FontAwesome"),E=g9(g,V),w=E;if(D){var O=function e$(t){var n=xm[t],e=g9("fas",t);return n||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}(V);O.iconName&&O.prefix&&(E=O.iconName,g=O.prefix)}if(!E||H||o&&o.getAttribute(o9)===g&&o.getAttribute(s9)===w)i();else{t.setAttribute(e,w),o&&t.removeChild(o);var U=function V$(){return{iconName:null,title:null,titleId:null,prefix:null,transform:j4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),j=U.extra;j.attributes[r9]=n,L9(E,g).then(function(J){var u2=M9(Y(Y({},U),{},{icons:{main:J,mask:{prefix:null,iconName:null,rest:[]}},prefix:g,iconName:w,extra:j,watchable:!0})),m2=o1.createElement("svg");"::before"===n?t.insertBefore(m2,t.firstChild):t.appendChild(m2),m2.outerHTML=u2.map(function(U2){return h8(U2)}).join("\n"),t.removeAttribute(e),i()}).catch(a)}}else i()})}function k$(t){return Promise.all([Ym(t,"::before"),Ym(t,"::after")])}function I$(t){return!(t.parentNode===document.head||~Lj.indexOf(t.tagName.toUpperCase())||t.getAttribute(r9)||t.parentNode&&"svg"===t.parentNode.tagName)}function Qm(t){if(ue)return new Promise(function(n,e){var i=Rt(t.querySelectorAll("*")).filter(I$).map(k$),a=H9_begin("searchPseudoElements");Gm(),Promise.all(i).then(function(){a(),z9(),n()}).catch(function(){a(),z9(),e()})})}var Zm=!1,Jm=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})},S9={x:0,y:0,width:"100%",height:"100%"};function Xm(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 i$(t,n){var e=n.mixoutsTo;Am=t,Ft={},Object.keys(Bt).forEach(function(i){-1===n$.indexOf(i)&&delete Bt[i]}),Am.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"===A0(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){Ft[o]||(Ft[o]=[]),Ft[o].push(r[o])})}i.provides&&i.provides(Bt)})}([Uj,D$,x$,N$,T$,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Qm,e}}},provides:function(n){n.pseudoElements2svg=function(e){var i=e.node;X.searchPseudoElements&&Qm(void 0===i?o1:i)}}},{mixout:function(){return{dom:{unwatch:function(){Gm(),Zm=!0}}}},hooks:function(){return{bootstrap:function(){jm(v9("mutationObserverCallbacks",{}))},noAuto:function(){!function M$(){!q0||q0.disconnect()}()},watch:function(e){var i=e.observeMutationsRoot;Zm?z9():jm(v9("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(e){return Jm(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,i){var a=i.getAttribute("data-fa-transform");return a&&(e.transform=Jm(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)"),v={outer:s,inner:{transform:"".concat(c," ").concat(l," ").concat(C)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:Y({},v.outer),children:[{tag:"g",attributes:Y({},v.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:Y(Y({},i.icon.attributes),v.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,i){var a=i.getAttribute("data-fa-mask"),r=a?G0(a.split(" ").map(function(o){return o.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Be()),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,g=o.icon,v=function Pj(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({},S9),{},{fill:"white"})},H=C.children?{children:C.children.map(Xm)}:{},D={tag:"g",attributes:Y({},v.inner),children:[Xm(Y({tag:C.tag,attributes:Y(Y({},C.attributes),v.path)},H))]},E={tag:"g",attributes:Y({},v.outer),children:[D]},w="mask-".concat(s||d8()),O="clip-".concat(s||d8()),U={tag:"mask",attributes:Y(Y({},S9),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[V,E]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:O},children:(t=g,"g"===t.tag?t.children:[t])},U]};return i.push(j,{tag:"rect",attributes:Y({fill:"currentColor","clip-path":"url(#".concat(O,")"),mask:"url(#".concat(w,")")},S9)}),{children:i,attributes:a}}}},{provides:function(n){var e=!1;Pe.matchMedia&&(e=Pe.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:$3});var $$=$3.parse,W$=$3.icon;const q$=["*"],Q$=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 X$=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),eW=(()=>{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=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tW=(()=>{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:[y1]}),t})(),nW=(()=>{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)(L(h3),L(E2))},t.\u0275cmp=t2({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[y1],ngContentSelectors:q$,decls:1,vars:0,template:function(e,i){1&e&&(vt(),_t(0))},encapsulation:2}),t})(),K0=(()=>{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?$$.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...Q$(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=W$(e,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(L(zh),L(X$),L(eW),L(tW,8),L(nW,8))},t.\u0275cmp=t2({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(e,i){2&e&&(_4("innerHTML",i.renderedIconHTML,xl),P("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:[y1],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),iW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({}),t})();function Y0(t,n){const e=K(t)?t:()=>t,i=a=>a.error(e());return new I2(n?a=>n.schedule(i,0,a):i)}const Q0=r3(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ev(t){return new I2(n=>{c3(t()).subscribe(n)})}function tv(){return c1((t,n)=>{let e=null;t._refCount++;const i=P2(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 aW extends I2{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Zt(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(P2(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 tv()(this)}}function rW(t,n,e,i,a){return(r,o)=>{let s=e,c=n,l=0;r.subscribe(P2(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 nv(t,n){return c1(rW(t,n,arguments.length>=2,!0))}function Ue(t){return c1((n,e)=>{let r,i=null,a=!1;i=n.subscribe(P2(e,void 0,void 0,o=>{r=c3(t(o,Ue(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):a=!0})),a&&(i.unsubscribe(),i=null,r.subscribe(e))})}function m8(t,n){return K(n)?H1(t,n,1):H1(t,1)}function D9(t){return t<=0?()=>l4:c1((n,e)=>{let i=[];n.subscribe(P2(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 iv(t=oW){return c1((n,e)=>{let i=!1;n.subscribe(P2(e,a=>{i=!0,e.next(a)},()=>i?e.complete():e.error(t())))})}function oW(){return new Q0}function av(t){return c1((n,e)=>{let i=!1;n.subscribe(P2(e,a=>{i=!0,e.next(a)},()=>{i||e.next(t),e.complete()}))})}function Ut(t,n){const e=arguments.length>=2;return i=>i.pipe(t?J1((a,r)=>t(a,r,i)):s4,Q1(1),e?av(n):iv(()=>new Q0))}class ge{constructor(n,e){this.id=n,this.url=e}}class Z0 extends ge{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 v8 extends ge{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class rv extends ge{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class lW extends ge{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 ge{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 fW extends ge{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 uW extends ge{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 dW extends ge{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 hW extends ge{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 ov{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class sv{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class pW{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gW{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mW{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vW{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cv{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 b2="primary";class _W{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 Gt(t){return new _W(t)}const lv="ngNavigationCancelingError";function x9(t){const n=Error("NavigationCancelingError: "+t);return n[lv]=!0,n}function yW(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 $4(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 fv(t){return Array.prototype.concat.apply([],t)}function uv(t){return t.length>0?t[t.length-1]:null}function e3(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function W4(t){return Rr(t)?t:N5(t)?$1(Promise.resolve(t)):s2(t)}const VW={exact:function pv(t,n,e){if(!w6(t.segments,n.segments)||!J0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!pv(t.children[i],n.children[i],e))return!1;return!0},subset:gv},dv={exact:function HW(t,n){return $4(t,n)},subset:function wW(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Cv(t[e],n[e]))},ignored:()=>!0};function hv(t,n,e){return VW[e.paths](t.root,n.root,e.matrixParams)&&dv[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function gv(t,n,e){return mv(t,n,n.segments,e)}function mv(t,n,e,i){if(t.segments.length>e.length){const a=t.segments.slice(0,e.length);return!(!w6(a,e)||n.hasChildren()||!J0(a,e,i))}if(t.segments.length===e.length){if(!w6(t.segments,e)||!J0(t.segments,e,i))return!1;for(const a in n.children)if(!t.children[a]||!gv(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!!(w6(t.segments,a)&&J0(t.segments,a,i)&&t.children[b2])&&mv(t.children[b2],n,r,i)}}function J0(t,n,e){return n.every((i,a)=>dv[e](t[a].parameters,i.parameters))}class H6{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gt(this.queryParams)),this._queryParamMap}toString(){return DW.serialize(this)}}class V2{constructor(n,e){this.segments=n,this.children=e,this.parent=null,e3(e,(i,a)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return X0(this)}}class _8{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Gt(this.parameters)),this._parameterMap}toString(){return bv(this)}}function w6(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class vv{}class _v{parse(n){const e=new RW(n);return new H6(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${M8(n.root,!0)}`,i=function TW(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(a=>`${ei(e)}=${ei(a)}`).join("&"):`${ei(e)}=${ei(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function xW(t){return encodeURI(t)}(n.fragment)}`:""}`}}const DW=new _v;function X0(t){return t.segments.map(n=>bv(n)).join("/")}function M8(t,n){if(!t.hasChildren())return X0(t);if(n){const e=t.children[b2]?M8(t.children[b2],!1):"",i=[];return e3(t.children,(a,r)=>{r!==b2&&i.push(`${r}:${M8(a,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function SW(t,n){let e=[];return e3(t.children,(i,a)=>{a===b2&&(e=e.concat(n(i,a)))}),e3(t.children,(i,a)=>{a!==b2&&(e=e.concat(n(i,a)))}),e}(t,(i,a)=>a===b2?[M8(t.children[b2],!1)]:[`${a}:${M8(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[b2]?`${X0(t)}/${e[0]}`:`${X0(t)}/(${e.join("//")})`}}function Mv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ei(t){return Mv(t).replace(/%3B/gi,";")}function N9(t){return Mv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ti(t){return decodeURIComponent(t)}function yv(t){return ti(t.replace(/\+/g,"%20"))}function bv(t){return`${N9(t.path)}${function NW(t){return Object.keys(t).map(n=>`;${N9(n)}=${N9(t[n])}`).join("")}(t.parameters)}`}const EW=/^[^\/()?;=#]+/;function ni(t){const n=t.match(EW);return n?n[0]:""}const AW=/^[^=?&#]+/,IW=/^[^&#]+/;class RW{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[b2]=new V2(n,e)),i}parseSegment(){const n=ni(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new _8(ti(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=ni(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=ni(this.remaining);a&&(i=a,this.capture(i))}n[ti(e)]=ti(i)}parseQueryParam(n){const e=function kW(t){const n=t.match(AW);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function OW(t){const n=t.match(IW);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const a=yv(e),r=yv(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=ni(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=b2);const o=this.parseChildren();e[r]=1===Object.keys(o).length?o[b2]: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 Lv{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=T9(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=T9(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=E9(n,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==n)}pathFromRoot(n){return E9(n,this._root).map(e=>e.value)}}function T9(t,n){if(t===n.value)return n;for(const e of n.children){const i=T9(t,e);if(i)return i}return null}function E9(t,n){if(t===n.value)return[n];for(const e of n.children){const i=E9(t,e);if(i.length)return i.unshift(n),i}return[]}class me{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function jt(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class Vv extends Lv{constructor(n,e){super(n),this.snapshot=e,A9(this,n)}toString(){return this.snapshot.toString()}}function Hv(t,n){const e=function PW(t,n){const o=new ii([],{},{},"",{},b2,n,null,t.root,-1,{});return new zv("",new me(o,[]))}(t,n),i=new q1([new _8("",{})]),a=new q1({}),r=new q1({}),o=new q1({}),s=new q1(""),c=new ve(i,a,o,s,r,b2,n,e.root);return c.snapshot=e.root,new Vv(new me(c,[]),e)}class ve{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=>Gt(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(v2(n=>Gt(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function wv(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 FW(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 ii{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=Gt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class zv extends Lv{constructor(n,e){super(e),this.url=n,A9(this,e)}toString(){return Sv(this._root)}}function A9(t,n){n.value._routerState=t,n.children.forEach(e=>A9(t,e))}function Sv(t){const n=t.children.length>0?` { ${t.children.map(Sv).join(", ")} } `:"";return`${t.value}${n}`}function k9(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,$4(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),$4(n.params,e.params)||t.params.next(e.params),function bW(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!$4(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),$4(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function I9(t,n){const e=$4(t.params,n.params)&&function zW(t,n){return w6(t,n)&&t.every((e,i)=>$4(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||I9(t.parent,n.parent))}function y8(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const a=function UW(t,n,e){return n.children.map(i=>{for(const a of e.children)if(t.shouldReuseRoute(i.value,a.value.snapshot))return y8(t,i,a);return y8(t,i)})}(t,n,e);return new me(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=>y8(t,s)),o}}const i=function GW(t){return new ve(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=>y8(t,r));return new me(i,a)}}function ai(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function b8(t){return"object"==typeof t&&null!=t&&t.outlets}function O9(t,n,e,i,a){let r={};if(i&&e3(i,(s,c)=>{r[c]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),t===n)return new H6(e,r,a);const o=Dv(t,n,e);return new H6(o,r,a)}function Dv(t,n,e){const i={};return e3(t.children,(a,r)=>{i[r]=a===n?e:Dv(a,n,e)}),new V2(t.segments,i)}class xv{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ai(i[0]))throw new Error("Root segment cannot have matrix parameters");const a=i.find(b8);if(a&&a!==uv(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class R9{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function Nv(t,n,e){if(t||(t=new V2([],{})),0===t.segments.length&&t.hasChildren())return ri(t,n,e);const i=function YW(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(b8(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(!Ev(c,l,o))return r;i+=2}else{if(!Ev(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[b2]=new V2(t.segments.slice(i.pathIndex),t.children),ri(r,0,a)}return i.match&&0===a.length?new V2(t.segments,{}):i.match&&!t.hasChildren()?P9(t,n,e):i.match?ri(t,0,a):P9(t,n,e)}function ri(t,n,e){if(0===e.length)return new V2(t.segments,{});{const i=function KW(t){return b8(t[0])?t[0].outlets:{[b2]:t}}(e),a={};return e3(i,(r,o)=>{"string"==typeof r&&(r=[r]),null!==r&&(a[o]=Nv(t.children[o],n,r))}),e3(t.children,(r,o)=>{void 0===i[o]&&(a[o]=r)}),new V2(t.segments,a)}}function P9(t,n,e){const i=t.segments.slice(0,n);let a=0;for(;a<e.length;){const r=e[a];if(b8(r)){const c=QW(r.outlets);return new V2(i,c)}if(0===a&&ai(e[0])){i.push(new _8(t.segments[n].path,Tv(e[0]))),a++;continue}const o=b8(r)?r.outlets[b2]:`${r}`,s=a<e.length-1?e[a+1]:null;o&&s&&ai(s)?(i.push(new _8(o,Tv(s))),a+=2):(i.push(new _8(o,{})),a++)}return new V2(i,{})}function QW(t){const n={};return e3(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=P9(new V2([],{}),0,e))}),n}function Tv(t){const n={};return e3(t,(e,i)=>n[i]=`${e}`),n}function Ev(t,n,e){return t==e.path&&$4(n,e.parameters)}class JW{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),k9(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const a=jt(e);n.children.forEach(r=>{const o=r.value.outlet;this.deactivateRoutes(r,a[o],i),delete a[o]}),e3(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=jt(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=jt(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=jt(e);n.children.forEach(r=>{this.activateRoutes(r,a[r.value.outlet],i),this.forwardEvent(new vW(r.value.snapshot))}),n.children.length&&this.forwardEvent(new gW(n.value.snapshot))}activateRoutes(n,e,i){const a=n.value,r=e?e.value:null;if(k9(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),k9(s.route.value),this.activateChildRoutes(n,null,o.children)}else{const s=function XW(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 F9{constructor(n,e){this.routes=n,this.module=e}}function Ge(t){return"function"==typeof t}function z6(t){return t instanceof H6}const L8=Symbol("INITIAL_VALUE");function V8(){return le(t=>function wo(...t){const n=t5(t),e=U8(t),{args:i,keys:a}=Dh(t);if(0===i.length)return $1([],n);const r=new I2(function fF(t,n,e=s4){return i=>{Op(n,()=>{const{length:a}=t,r=new Array(a);let o=a,s=a;for(let c=0;c<a;c++)Op(n,()=>{const l=$1(t[c],n);let C=!1;l.subscribe(P2(i,f=>{r[c]=f,C||(C=!0,s--),s||i.next(e(r.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,n,a?o=>xh(a,o):s4));return e?r.pipe(X7(e)):r}(t.map(n=>n.pipe(Q1(1),function v0(...t){const n=t5(t);return c1((e,i)=>{(n?e8(t,e,n):e8(t,e)).subscribe(i)})}(L8)))).pipe(nv((n,e)=>{let i=!1;return e.reduce((a,r,o)=>a!==L8?a:(r===L8&&(i=!0),i||!1!==r&&o!==e.length-1&&!z6(r)?a:r),n)},L8),J1(n=>n!==L8),v2(n=>z6(n)?n:!0===n),Q1(1)))}class rq{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new H8,this.attachRef=null}}class H8{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 rq,this.contexts.set(n,e)),e}getContext(n){return this.contexts.get(n)||null}}let B9=(()=>{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 n2,this.deactivateEvents=new n2,this.attachEvents=new n2,this.detachEvents=new n2,this.name=r||b2,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 oq(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)(L(H8),L(F3),L(Vt),function Xe(t){return function DD(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(Kc(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}(P1(),t)}("name"),L(B3))},t.\u0275dir=G({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class oq{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===ve?this.route:n===H8?this.childContexts:this.parent.get(n,e)}}let Av=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=t2({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&N(0,"router-outlet")},directives:[B9],encapsulation:2}),t})();function kv(t,n=""){for(let e=0;e<t.length;e++){const i=t[e];sq(i,cq(n,i))}}function sq(t,n){t.children&&kv(t.children,n)}function cq(t,n){return n?t||n.path?t&&!n.path?`${t}/`:!t&&n.path?n.path:`${t}/${n.path}`:"":t}function U9(t){const n=t.children&&t.children.map(U9),e=n?Object.assign(Object.assign({},t),{children:n}):Object.assign({},t);return!e.component&&(n||e.loadChildren)&&e.outlet&&e.outlet!==b2&&(e.component=Av),e}function r4(t){return t.outlet||b2}function Iv(t,n){const e=t.filter(i=>r4(i)===n);return e.push(...t.filter(i=>r4(i)!==n)),e}const Ov={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oi(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},Ov):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||yW)(e,t,n);if(!r)return Object.assign({},Ov);const o={};e3(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 si(t,n,e,i,a="corrected"){if(e.length>0&&function fq(t,n,e){return e.some(i=>ci(t,n,i)&&r4(i)!==b2)}(t,e,i)){const o=new V2(n,function Cq(t,n,e,i){const a={};a[b2]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&r4(r)!==b2){const o=new V2([],{});o._sourceSegment=t,o._segmentIndexShift=n.length,a[r4(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 uq(t,n,e){return e.some(i=>ci(t,n,i))}(t,e,i)){const o=new V2(t.segments,function lq(t,n,e,i,a,r){const o={};for(const s of i)if(ci(t,e,s)&&!a[r4(s)]){const c=new V2([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===r?t.segments.length:n.length,o[r4(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 ci(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function Rv(t,n,e,i){return!!(r4(t)===i||i!==b2&&ci(n,e,t))&&("**"===t.path||oi(n,t,e).matched)}function Pv(t,n,e){return 0===n.length&&!t.children[e]}class li{constructor(n){this.segmentGroup=n||null}}class Fv{constructor(n){this.urlTree=n}}function w8(t){return Y0(new li(t))}function Bv(t){return Y0(new Fv(t))}class gq{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(ie)}apply(){const n=si(this.urlTree.root,[],[],this.config).segmentGroup,e=new V2(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,b2).pipe(v2(r=>this.createUrlTree(G9(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ue(r=>{if(r instanceof Fv)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof li?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,b2).pipe(v2(a=>this.createUrlTree(G9(a),n.queryParams,n.fragment))).pipe(Ue(a=>{throw a instanceof li?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([],{[b2]:n}):n;return new H6(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(m8(r=>{const o=i.children[r],s=Iv(e,r);return this.expandSegmentGroup(n,s,o,r).pipe(v2(c=>({segment:c,outlet:r})))}),nv((r,o)=>(r[o.outlet]=o.segment,r),{}),function sW(t,n){const e=arguments.length>=2;return i=>i.pipe(t?J1((a,r)=>t(a,r,i)):s4,D9(1),e?av(n):iv(()=>new Q0))}())}expandSegment(n,e,i,a,r,o){return $1(i).pipe(m8(s=>this.expandSegmentAgainstRoute(n,e,i,s,a,r,o).pipe(Ue(l=>{if(l instanceof li)return s2(null);throw l}))),Ut(s=>!!s),Ue((s,c)=>{if(s instanceof Q0||"EmptyError"===s.name)return Pv(e,a,r)?s2(new V2([],{})):w8(e);throw s}))}expandSegmentAgainstRoute(n,e,i,a,r,o,s){return Rv(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):w8(e):w8(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("/")?Bv(r):this.lineralizeSegments(i,r).pipe(H1(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}=oi(e,a,r);if(!s)return w8(e);const f=this.applyRedirectCommands(c,a.redirectTo,C);return a.redirectTo.startsWith("/")?Bv(f):this.lineralizeSegments(a,f).pipe(H1(g=>this.expandSegment(n,e,i,g.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}=oi(e,i,a);return o?this.getChildConfig(n,i,a).pipe(H1(C=>{const f=C.module,g=C.routes,{segmentGroup:v,slicedSegments:V}=si(e,s,c,g),H=new V2(v.segments,v.children);if(0===V.length&&H.hasChildren())return this.expandChildren(f,g,H).pipe(v2(O=>new V2(s,O)));if(0===g.length&&0===V.length)return s2(new V2(s,{}));const D=r4(i)===r;return this.expandSegment(f,H,g,V,D?b2:r,!0).pipe(v2(w=>new V2(s.concat(w.segments),w.children)))})):w8(e)}getChildConfig(n,e,i){return e.children?s2(new F9(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?s2(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(H1(a=>a?this.configLoader.load(n.injector,e).pipe(v2(r=>(e._loadedConfig=r,r))):function hq(t){return Y0(x9(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))}(e))):s2(new F9([],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 tq(t){return t&&Ge(t.canLoad)}(s))c=s.canLoad(e,i);else{if(!Ge(s))throw new Error("Invalid CanLoad guard");c=s(e,i)}return W4(c)})).pipe(V8(),m3(o=>{if(!z6(o))return;const s=x9(`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[b2])return Y0(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));a=a.children[b2]}}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 H6(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return e3(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 e3(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 G9(t){const n={};for(const i of Object.keys(t.children)){const r=G9(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function mq(t){if(1===t.numberOfChildren&&t.children[b2]){const n=t.children[b2];return new V2(t.segments.concat(n.segments),n.children)}return t}(new V2(t.segments,n))}class Uv{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 _q(t,n,e){const i=t._root;return z8(i,n?n._root:null,e,[i.value])}function fi(t,n,e){const i=function yq(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 z8(t,n,e,i,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=jt(n);return t.children.forEach(o=>{(function bq(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 Lq(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!w6(t.url,n.url);case"pathParamsOrQueryParamsChange":return!w6(t.url,n.url)||!$4(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!I9(t,n)||!$4(t.queryParams,n.queryParams);default:return!I9(t,n)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Uv(i)):(r.data=o.data,r._resolvedData=o._resolvedData),z8(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&&S8(n,s,a),a.canActivateChecks.push(new Uv(i)),z8(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]}),e3(r,(o,s)=>S8(o,e.getContext(s),a)),a}function S8(t,n,e){const i=jt(t),a=t.value;e3(i,(r,o)=>{S8(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 Tq{}function Gv(t){return new I2(n=>n.error(t))}class Aq{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=si(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,b2);if(null===e)return null;const i=new ii([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},b2,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new me(i,e),r=new zv(this.url,a);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(n){const e=n.value,i=wv(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=Iv(n,r),c=this.processSegmentGroup(s,o,r);if(null===c)return null;i.push(...c)}const a=jv(i);return function kq(t){t.sort((n,e)=>n.value.outlet===b2?-1:e.value.outlet===b2?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 Pv(e,i,a)?[]:null}processSegmentAgainstRoute(n,e,i,a){if(n.redirectTo||!Rv(n,e,i,a))return null;let r,o=[],s=[];if("**"===n.path){const v=i.length>0?uv(i).parameters:{};r=new ii(i,v,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qv(n),r4(n),n.component,n,$v(e),Wv(e)+i.length,Kv(n))}else{const v=oi(e,n,i);if(!v.matched)return null;o=v.consumedSegments,s=v.remainingSegments,r=new ii(o,v.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qv(n),r4(n),n.component,n,$v(e),Wv(e)+o.length,Kv(n))}const c=function Iq(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:l,slicedSegments:C}=si(e,o,s,c.filter(v=>void 0===v.redirectTo),this.relativeLinkResolution);if(0===C.length&&l.hasChildren()){const v=this.processChildren(c,l);return null===v?null:[new me(r,v)]}if(0===c.length&&0===C.length)return[new me(r,[])];const f=r4(n)===a,g=this.processSegment(c,l,C,f?b2:a);return null===g?null:[new me(r,g)]}}function Oq(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function jv(t){const n=[],e=new Set;for(const i of t){if(!Oq(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=jv(i.children);n.push(new me(i.value,a))}return n.filter(i=>!e.has(i))}function $v(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function Wv(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 qv(t){return t.data||{}}function Kv(t){return t.resolve||{}}function Yv(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function j9(t){return le(n=>{const e=t(n);return e?$1(e).pipe(v2(()=>n)):s2(n)})}class $q extends class jq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const $9=new _2("ROUTES");class Qv{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 F9(fv(o.injector.get($9,void 0,o2.Self|o2.Optional)).map(U9),o)}),Ue(r=>{throw e._loader$=void 0,r}));return e._loader$=new aW(a,()=>new d2).pipe(tv()),e._loader$}loadModuleFactory(n){return W4(n()).pipe(H1(e=>e instanceof Wu?s2(e):$1(this.compiler.compileModuleAsync(e))))}}class qq{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function Kq(t){throw t}function Yq(t,n,e){return n.parse("/")}function Zv(t,n){return s2(null)}const Qq={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zq={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let t3=(()=>{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=Kq,this.malformedUriErrorHandler=Yq,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Zv,afterPreactivation:Zv},this.urlHandlingStrategy=new qq,this.routeReuseStrategy=new $q,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(ie),this.console=o.get(Xk);const f=o.get(R2);this.isNgZoneEnabled=f instanceof R2&&R2.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=function LW(){return new H6(new V2([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Qv(o,s,g=>this.triggerEvent(new ov(g)),g=>this.triggerEvent(new sv(g))),this.routerState=Hv(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)})),le(a=>{let r=!1,o=!1;return s2(a).pipe(m3(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}}),le(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 Jv(s.source)&&(this.browserUrlTree=s.extractedUrl),s2(s).pipe(le(f=>{const g=this.transitions.getValue();return i.next(new Z0(f.id,this.serializeUrl(f.extractedUrl),f.source,f.restoredState)),g!==this.transitions.getValue()?l4:Promise.resolve(f)}),function vq(t,n,e,i){return le(a=>function pq(t,n,e,i,a){return new gq(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),m3(f=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:f.urlAfterRedirects})}),function Rq(t,n,e,i,a){return H1(r=>function Eq(t,n,e,i,a="emptyOnly",r="legacy"){try{const o=new Aq(t,n,e,i,a,r).recognize();return null===o?Gv(new Tq):s2(o)}catch(o){return Gv(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),m3(f=>{if("eager"===this.urlUpdateStrategy){if(!f.extras.skipLocationChange){const v=this.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl);this.setBrowserUrl(v,f)}this.browserUrlTree=f.urlAfterRedirects}const g=new CW(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.next(g)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:g,extractedUrl:v,source:V,restoredState:H,extras:D}=s,E=new Z0(g,this.serializeUrl(v),V,H);i.next(E);const w=Hv(v,this.rootComponentType).snapshot;return s2(Object.assign(Object.assign({},s),{targetSnapshot:w,urlAfterRedirects:v,extras:Object.assign(Object.assign({},D),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),l4}),j9(s=>{const{targetSnapshot:c,id:l,extractedUrl:C,rawUrl:f,extras:{skipLocationChange:g,replaceUrl:v}}=s;return this.hooks.beforePreactivation(c,{navigationId:l,appliedUrlTree:C,rawUrlTree:f,skipLocationChange:!!g,replaceUrl:!!v})}),m3(s=>{const c=new fW(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),v2(s=>Object.assign(Object.assign({},s),{guards:_q(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function Vq(t,n){return H1(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 Hq(t,n,e,i){return $1(t).pipe(H1(a=>function Nq(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=fi(s,n,a);let l;if(function aq(t){return t&&Ge(t.canDeactivate)}(c))l=W4(c.canDeactivate(t,n,e,i));else{if(!Ge(c))throw new Error("Invalid CanDeactivate guard");l=W4(c(t,n,e,i))}return l.pipe(Ut())})).pipe(V8()):s2(!0)}(a.component,a.route,e,n,i)),Ut(a=>!0!==a,!0))}(o,i,a,t).pipe(H1(s=>s&&function eq(t){return"boolean"==typeof t}(s)?function wq(t,n,e,i){return $1(n).pipe(m8(a=>e8(function Sq(t,n){return null!==t&&n&&n(new pW(t)),s2(!0)}(a.route.parent,i),function zq(t,n){return null!==t&&n&&n(new mW(t)),s2(!0)}(a.route,i),function xq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(o=>function Mq(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=>ev(()=>s2(o.guards.map(c=>{const l=fi(c,o.node,e);let C;if(function iq(t){return t&&Ge(t.canActivateChild)}(l))C=W4(l.canActivateChild(i,t));else{if(!Ge(l))throw new Error("Invalid CanActivateChild guard");C=W4(l(i,t))}return C.pipe(Ut())})).pipe(V8())));return s2(r).pipe(V8())}(t,a.path,e),function Dq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return s2(!0);const a=i.map(r=>ev(()=>{const o=fi(r,n,e);let s;if(function nq(t){return t&&Ge(t.canActivate)}(o))s=W4(o.canActivate(n,t));else{if(!Ge(o))throw new Error("Invalid CanActivate guard");s=W4(o(n,t))}return s.pipe(Ut())}));return s2(a).pipe(V8())}(t,a.route,e))),Ut(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)),m3(s=>{if(z6(s.guardsResult)){const l=x9(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw l.url=s.guardsResult,l}const c=new uW(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)),j9(s=>{if(s.guards.canActivateChecks.length)return s2(s).pipe(m3(c=>{const l=new dW(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}),le(c=>{let l=!1;return s2(c).pipe(function Pq(t,n){return H1(e=>{const{targetSnapshot:i,guards:{canActivateChecks:a}}=e;if(!a.length)return s2(e);let r=0;return $1(a).pipe(m8(o=>function Fq(t,n,e,i){return function Bq(t,n,e,i){const a=Yv(t);if(0===a.length)return s2({});const r={};return $1(a).pipe(H1(o=>function Uq(t,n,e,i){const a=fi(t,n,i);return W4(a.resolve?a.resolve(n,e):a(n,e))}(t[o],n,e,i).pipe(m3(s=>{r[o]=s}))),D9(1),H1(()=>Yv(r).length===a.length?s2(r):l4))}(t._resolve,t,n,i).pipe(v2(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),wv(t,e).resolve),null)))}(o.route,i,t,n)),m3(()=>r++),D9(1),H1(o=>r===a.length?s2(e):l4))})}(this.paramsInheritanceStrategy,this.ngModule.injector),m3({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(c),this.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),m3(c=>{const l=new hW(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}))}),j9(s=>{const{targetSnapshot:c,id:l,extractedUrl:C,rawUrl:f,extras:{skipLocationChange:g,replaceUrl:v}}=s;return this.hooks.afterPreactivation(c,{navigationId:l,appliedUrlTree:C,rawUrlTree:f,skipLocationChange:!!g,replaceUrl:!!v})}),v2(s=>{const c=function BW(t,n,e){const i=y8(t,n._root,e?e._root:void 0);return new Vv(i,n)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:c})}),m3(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 JW(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),m3({next(){r=!0},complete(){r=!0}}),function cW(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)}),Ue(s=>{if(o=!0,function MW(t){return t&&t[lv]}(s)){const c=z6(s.url);c||(this.navigated=!0,this.restoreHistory(a,!0));const l=new rv(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||Jv(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 lW(a.id,this.serializeUrl(a.extractedUrl),s);i.next(c);try{a.resolve(this.errorHandler(s))}catch(l){a.reject(l)}}return l4}))}))}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){kv(e),this.config=e.map(U9),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 jW(t,n,e,i,a){if(0===e.length)return O9(n.root,n.root,n.root,i,a);const r=function $W(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new xv(!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 e3(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 xv(e,n,i)}(e);if(r.toRoot())return O9(n.root,n.root,new V2([],{}),i,a);const o=function WW(t,n,e){if(t.isAbsolute)return new R9(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new R9(r,r===n.root,0)}const i=ai(t.commands[0])?0:1;return function qW(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 R9(i,!1,a-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,n,t),s=o.processChildren?ri(o.segmentGroup,o.index,r.commands):Nv(o.segmentGroup,o.index,r.commands);return O9(n.root,o.segmentGroup,s,i,a)}(l,this.currentUrlTree,e,f,null!=C?C:null)}navigateByUrl(e,i={skipLocationChange:!1}){const a=z6(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 Jq(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({},Qq):!1===i?Object.assign({},Zq):i,z6(e))return hv(this.currentUrlTree,e,a);const r=this.parseUrl(e);return hv(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 v8(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 g=++this.navigationId;let v;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),v=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):v=0,this.setTransition({id:g,targetPageId:v,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 rv(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){Ar()},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function Jv(t){return"imperative"!==t}let z4=(()=>{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 v8&&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:$t(this.skipLocationChange),replaceUrl:$t(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:$t(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(L(t3),L(ve),L(l6))},t.\u0275dir=G({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&x("click",function(r){return i.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&P("target",i.target)("href",i.href,t6)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[y1]}),t})();function $t(t){return""===t||!!t}class Xv{}class e_{preload(n,e){return s2(null)}}let t_=(()=>{class t{constructor(e,i,a,r){this.router=e,this.injector=a,this.preloadingStrategy=r,this.loader=new Qv(a,i,c=>e.triggerEvent(new ov(c)),c=>e.triggerEvent(new sv(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(J1(e=>e instanceof v8),m8(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(ie);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(e5(),v2(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?s2(i._loadedConfig):this.loader.load(e.injector,i)).pipe(H1(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(q(t3),q(Sd),q(k1),q(Xv))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),q9=(()=>{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 Z0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof v8&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof cv&&(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 cv(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){Ar()},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const S6=new _2("ROUTER_CONFIGURATION"),n_=new _2("ROUTER_FORROOT_GUARD"),nK=[T7,{provide:vv,useClass:_v},{provide:t3,useFactory:function sK(t,n,e,i,a,r,o={},s,c){const l=new t3(null,t,n,e,i,a,fv(r));return s&&(l.urlHandlingStrategy=s),c&&(l.routeReuseStrategy=c),function cK(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,g;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${C.constructor.name}`),console.log(C.toString()),console.log(C),null===(g=console.groupEnd)||void 0===g||g.call(console)}),l},deps:[vv,H8,T7,k1,Sd,$9,S6,[class Wq{},new ze],[class Gq{},new ze]]},H8,{provide:ve,useFactory:function lK(t){return t.routerState.root},deps:[t3]},t_,e_,class tK{preload(n,e){return e().pipe(Ue(()=>s2(null)))}},{provide:S6,useValue:{enableTracing:!1}}];function iK(){return new Ed("Router",t3)}let i_=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[nK,a_(e),{provide:n_,useFactory:oK,deps:[[t3,new ze,new m5]]},{provide:S6,useValue:i||{}},{provide:l6,useFactory:rK,deps:[c6,[new hn(N7),new ze],S6]},{provide:q9,useFactory:aK,deps:[t3,lR,S6]},{provide:Xv,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:e_},{provide:Ed,multi:!0,useFactory:iK},[K9,{provide:p7,multi:!0,useFactory:CK,deps:[K9]},{provide:r_,useFactory:fK,deps:[K9]},{provide:zd,multi:!0,useExisting:r_}]]}}static forChild(e){return{ngModule:t,providers:[a_(e)]}}}return t.\u0275fac=function(e){return new(e||t)(q(n_,8),q(t3,8))},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({}),t})();function aK(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new q9(t,n,e)}function rK(t,n,e={}){return e.useHash?new Xd(t,n):new Jd(t,n)}function oK(t){return"guarded"}function a_(t){return[{provide:AD,multi:!0,useValue:t},{provide:$9,multi:!0,useValue:t}]}let K9=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new d2}appInitializer(){return this.injector.get(UI,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(t3),o=this.injector.get(S6);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(S6),a=this.injector.get(t_),r=this.injector.get(q9),o=this.injector.get(t3),s=this.injector.get(St);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(k1))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function CK(t){return t.appInitializer.bind(t)}function fK(t){return t.bootstrapListener.bind(t)}const r_=new _2("Router Initializer");let dK=(()=>{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=t2({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&&(h(0,"div",0)(1,"div",1),N(2,"img",2),p(),h(3,"h3",3),_(4," Welcome to"),N(5,"br"),h(6,"b",4),_(7,"Eufy Security Plugin"),p()(),h(8,"h6",3),_(9,"Homebridge plugin for Eufy Security Devices"),p(),N(10,"hr"),h(11,"div",5),N(12,"router-outlet"),p(),N(13,"hr"),h(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. "),p()()),2&e&&(m(2),M("src",i.logoSrc,t6))},directives:[B9],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 o_(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){o_(r,i,a,o,s,"next",c)}function s(c){o_(r,i,a,o,s,"throw",c)}o(void 0)})}}var DM={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"]},KM={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"]},JM={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"]},Ty={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"]},zs={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"]},Ds={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"]},T=(()=>{return(t=T||(T={}))[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.HB3=18]="HB3",t[t.CAMERA3=19]="CAMERA3",t[t.CAMERA3C=23]="CAMERA3C",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",T;var t})();class D6{static isDoorbell(n){return n===T.DOORBELL||n===T.BATTERY_DOORBELL||n===T.BATTERY_DOORBELL_2||n===T.BATTERY_DOORBELL_PLUS||n===T.DOORBELL_SOLO}static isBatteryDoorbell(n){return n===T.BATTERY_DOORBELL||n===T.BATTERY_DOORBELL_2||n===T.BATTERY_DOORBELL_PLUS}static isWiredDoorbell(n){return n===T.DOORBELL}static isCamera(n){return n===T.CAMERA||n===T.CAMERA2||n===T.CAMERA_E||n===T.CAMERA2C||n===T.CAMERA3||n===T.CAMERA3C||n===T.INDOOR_CAMERA||n===T.INDOOR_PT_CAMERA||n===T.FLOODLIGHT||n===T.DOORBELL||n===T.BATTERY_DOORBELL||n===T.BATTERY_DOORBELL_2||n===T.BATTERY_DOORBELL_PLUS||n===T.DOORBELL_SOLO||n===T.CAMERA2C_PRO||n===T.CAMERA2_PRO||n===T.INDOOR_CAMERA_1080||n===T.INDOOR_PT_CAMERA_1080||n===T.SOLO_CAMERA||n===T.SOLO_CAMERA_PRO||n===T.SOLO_CAMERA_SPOTLIGHT_1080||n===T.SOLO_CAMERA_SPOTLIGHT_2K||n===T.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===T.INDOOR_OUTDOOR_CAMERA_1080P||n===T.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===T.INDOOR_OUTDOOR_CAMERA_2K||n===T.INDOOR_COST_DOWN_CAMERA||n===T.FLOODLIGHT_CAMERA_8422||n===T.FLOODLIGHT_CAMERA_8423||n===T.FLOODLIGHT_CAMERA_8424}static supportsRTSP(n){return n===T.CAMERA||n===T.CAMERA2||n===T.CAMERA2C||n===T.CAMERA2C_PRO||n===T.CAMERA3||n===T.CAMERA3C||n===T.CAMERA_E||n===T.INDOOR_CAMERA||n===T.INDOOR_CAMERA_1080||n===T.INDOOR_OUTDOOR_CAMERA_1080P||n===T.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===T.INDOOR_OUTDOOR_CAMERA_2K||n===T.INDOOR_PT_CAMERA||n===T.INDOOR_PT_CAMERA_1080||n===T.INDOOR_COST_DOWN_CAMERA||n===T.FLOODLIGHT_CAMERA_8423}static supportsTalkback(n){return n===T.CAMERA2||n===T.CAMERA2C||n===T.CAMERA2C_PRO||n===T.CAMERA2_PRO||n===T.CAMERA3||n===T.CAMERA3C||n===T.DOORBELL||n===T.BATTERY_DOORBELL||n===T.BATTERY_DOORBELL_2||n===T.BATTERY_DOORBELL_PLUS||n===T.DOORBELL_SOLO||n===T.INDOOR_CAMERA||n===T.INDOOR_CAMERA_1080||n===T.INDOOR_OUTDOOR_CAMERA_1080P||n===T.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===T.INDOOR_OUTDOOR_CAMERA_2K||n===T.INDOOR_PT_CAMERA||n===T.INDOOR_PT_CAMERA_1080||n===T.INDOOR_COST_DOWN_CAMERA||n===T.SOLO_CAMERA||n===T.SOLO_CAMERA_PRO||n===T.SOLO_CAMERA_SPOTLIGHT_1080||n===T.SOLO_CAMERA_SPOTLIGHT_2K||n===T.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===T.FLOODLIGHT||n===T.FLOODLIGHT_CAMERA_8422||n===T.FLOODLIGHT_CAMERA_8423||n===T.FLOODLIGHT_CAMERA_8424}}var Wt=(()=>{return(t=Wt||(Wt={}))[t.CHARGING=1]="CHARGING",t[t.UNPLUGGED=2]="UNPLUGGED",t[t.PLUGGED=3]="PLUGGED",t[t.SOLAR_CHARGING=4]="SOLAR_CHARGING",Wt;var t})();const js=new Map([[T.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[T.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[T.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[T.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[T.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[T.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[T.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[T.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[T.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[T.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[T.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[T.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[T.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[T.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[T.HB3,{image:"homebase3_large.jpg",padding:"0px"}],[T.CAMERA3,{image:"eufycam3_large.jpg",padding:"0px"}],[T.CAMERA3C,{image:"eufycam3c_large.jpg",padding:"0px"}],[T.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[T.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[T.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[T.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[T.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[T.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[T.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[T.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[T.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[T.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[T.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[T.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[T.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[T.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[T.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[T.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[T.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[T.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[T.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[T.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[T.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[T.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[T.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[T.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[T.SMART_DROP,{image:"unknown.png",padding:"20px"}],[T.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[T.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[T.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[T.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[T.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[T.CAMERA_FG,{image:"unknown.png",padding:"20px"}],[T.SMART_SAFE_7400,{image:"unknown.png",padding:"20px"}],[T.SMART_SAFE_7401,{image:"unknown.png",padding:"20px"}],[T.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[T.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}]]);let A2=(()=>{class t extends EventTarget{constructor(){super(),this.stations=[],this.devices=[],this.accessories$=g3(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=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Nf2(t,n){if(1&t){const e=f1();h(0,"div",2)(1,"h4",3),_(2,"Refresh stations and devices"),p(),h(3,"button",4),x("click",function(){return I(e).$implicit.dismiss("Cross click")}),p()(),h(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. "),N(7,"p"),h(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."),p(),N(10,"p"),_(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),h(12,"a",8),_(13,"here"),p(),_(14," for more information). "),p()(),h(15,"div",9)(16,"a",10),x("click",function(){return I(e).$implicit.close("Login")}),_(17,"Login with eufy"),p()()}}function Tf2(t,n){1&t&&(h(0,"div",11)(1,"div",12),N(2,"div",13),h(3,"div",14)(4,"div",15)(5,"div",16),_(6," Loading Accessories... "),h(7,"div",17),N(8,"div",18),p()()()(),N(9,"div",13),p()())}function Ef2(t,n){if(1&t&&(h(0,"span",42),N(1,"fa-icon",43),p()),2&t){const e=z(3);m(1),M("icon",e.ignoreIcon)}}function Af2(t,n){if(1&t&&(h(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),N(5,"img",36),h(6,"span",37),N(7,"fa-icon",38),p(),k(8,Ef2,2,1,"span",39),p()()()(),h(9,"span",40),_(10),p(),h(11,"span",41),_(12),p()()),2&t){const e=n.$implicit,i=z(2);let a;m(3),Mt("routerLink","/stationConfig/",e.uniqueId,""),m(2),M("src","assets/devices/"+(i.DeviceImage.get(e.type)?null==(a=i.DeviceImage.get(e.type))?null:a.image:"unknown.png"),t6),P("style",i.getDevicePanelStyle(e),M3),m(2),M("icon",i.settingsIcon),m(1),M("ngIf",e.ignored),m(2),ne(e.cachedName?e.cachedName:e.displayName),m(2),S3("(",e.uniqueId,")")}}function kf2(t,n){if(1&t&&(h(0,"span",42),N(1,"fa-icon",43),p()),2&t){const e=z(3);m(1),M("icon",e.ignoreIcon)}}function If2(t,n){if(1&t&&(h(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),N(5,"img",36),h(6,"span",37),N(7,"fa-icon",38),p(),k(8,kf2,2,1,"span",39),p()()()(),h(9,"span",40),_(10),p(),h(11,"span",41),_(12),p()()),2&t){const e=n.$implicit,i=z(2);let a;m(3),Mt("routerLink","/cameraConfig/",e.uniqueId,""),m(2),M("src","assets/devices/"+(i.DeviceImage.get(e.type)?null==(a=i.DeviceImage.get(e.type))?null:a.image:"unknown.png"),t6),P("style",i.getDevicePanelStyle(e),M3),m(2),M("icon",i.settingsIcon),m(1),M("ngIf",e.ignored),m(2),ne(e.cachedName?e.cachedName:e.displayName),m(2),S3("(",e.uniqueId,")")}}function Of2(t,n){if(1&t){const e=f1();h(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),x("click",function(){I(e);const a=z(),r=X3(1);return a.openReloadModal(r)}),N(4,"fa-icon",22),p()(),h(5,"div",23)(6,"a",24),_(7,"Plugin Settings"),p()()(),N(8,"p"),h(9,"span"),_(10,"Click on any device below to access its settings."),p(),N(11,"p"),h(12,"div",25)(13,"div",26),_(14," Stations "),p(),h(15,"div",27)(16,"div",19),k(17,Af2,13,7,"div",28),p()()(),N(18,"p"),h(19,"div",25)(20,"div",26),_(21," Devices "),p(),h(22,"div",29)(23,"div",19),k(24,If2,13,7,"div",28),p()()(),N(25,"p"),h(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 "),h(29,"a",30),_(30,"Github page."),p()()()()}if(2&t){const e=z();m(4),M("icon",e.reloadIcon),m(13),M("ngForOf",e.stations),m(7),M("ngForOf",e.devices)}}let Rf2=(()=>{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=Ds,this.ignoreIcon=Ty,this.reloadIcon=zs,this.DeviceImage=js,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===y6.ESC?"by pressing ESC":e===y6.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${e}`}getDevicePanelStyle(e){var i;let a="";return e.ignored&&(a+="opacity: 0.2;"),js.get(e.type)?a+="padding:"+(null===(i=js.get(e.type))||void 0===i?void 0:i.padding):a+="padding:20px",a}}return t.\u0275fac=function(e){return new(e||t)(L(Ng),L(A2),L(ve),L(t3))},t.\u0275cmp=t2({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,Nf2,18,0,"ng-template",null,0,e4),k(2,Tf2,10,0,"div",1),k(3,Of2,31,3,"div",1)),2&e&&(m(2),M("ngIf",0===i.stations.length&&0===i.devices.length),m(1),M("ngIf",0!==i.stations.length||0!==i.devices.length))},directives:[z4,d1,K0,oe],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})(),Pf2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=t2({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&&(h(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Change username, password and country"),p(),h(4,"a",3),_(5,"New Login"),p()()())},directives:[z4],encapsulation:2}),t})();class Y2{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 Ff2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-prefer-local"]],features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Prefer Local Connection"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),h(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). "),h(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."),p()()()()),2&e&&(m(5),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})(),Bf2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-polling-interval-minutes"]],features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Polling Interval"),p(),h(4,"div",2)(5,"div",3)(6,"input",4),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p(),h(7,"div",5)(8,"span",6),_(9,"minutes"),p()()()()(),h(10,"small")(11,"i"),_(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),p()()()),2&e&&(m(6),M("ngModel",i.value),P("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[f6,se,K2,B2],encapsulation:2}),t})(),Uf2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-livestream-duration-seconds"]],features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Maximum Livestream Duration"),p(),h(4,"div",2)(5,"div",3)(6,"input",4),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p(),h(7,"div",5)(8,"span",6),_(9,"seconds"),p()()()()(),h(10,"small")(11,"i"),_(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),p()()()),2&e&&(m(6),M("ngModel",i.value),P("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[f6,se,K2,B2],encapsulation:2}),t})(),Gf2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-enable-detailed-logging"]],features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Debug Mode"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.model=r})("change",function(){return i.update()}),p()()(),h(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. "),p()()()),2&e&&(m(5),M("ngModel",i.model))},directives:[x1,K2,B2],encapsulation:2}),t})();let jf2=(()=>{class t extends Y2{constructor(e){super(e),this.value=false}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"ignoreMultipleDevicesWarning")&&(this.value=this.config.ignoreMultipleDevicesWarning)}update(){this.updateConfig({ignoreMultipleDevicesWarning:this.value})}}return t.\u0275fac=function(e){return new(e||t)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-ignore-multiple-devices-warning"]],features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable snapshot and HKSV settings for multiple devices on one station."),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),h(6,"small")(7,"i"),_(8," Normally it is not encouraged to use live snapshots and the HKSV feature if multiple cameras are connected through one and the same station. These options are therefore disabled by default for these devices. By enabling this setting you'll be able to use these features anyway, but please be aware that this might result in failing streams. "),p()()()),2&e&&(m(5),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})(),$f2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-clean-cache"]],features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Clean cache automatically"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.model=r})("change",function(){return i.update()}),p()()(),h(6,"small")(7,"i"),_(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),p()()()),2&e&&(m(5),M("ngModel",i.model))},directives:[x1,K2,B2],encapsulation:2}),t})(),Wf2=(()=>{class t extends Y2{constructor(e){super(e),this.value=false}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"syncStationModes")&&(this.value=this.config.syncStationModes)}update(){this.updateConfig({syncStationModes:this.value})}}return t.\u0275fac=function(e){return new(e||t)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-sync-station-modes"]],features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Sync Station Modes"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),h(6,"small")(7,"i"),_(8," If enabled every station will be synced when changing the guard mode. So set one station to 'Away' and every other station will also be set to this mode. "),p()()()),2&e&&(m(5),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})();function qf2(t,n){1&t&&(h(0,"span"),_(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),p())}function Kf2(t,n){1&t&&(h(0,"option",6),_(1,"Use global setting"),p()),2&t&&M("ngValue",void 0)}function Yf2(t,n){1&t&&(h(0,"option",6),_(1,"Use global setting"),p()),2&t&&M("ngValue",void 0)}function Qf2(t,n){1&t&&(h(0,"option",6),_(1,"Use global setting"),p()),2&t&&M("ngValue",void 0)}function Zf2(t,n){1&t&&(h(0,"option",6),_(1,"Use global setting"),p()),2&t&&M("ngValue",void 0)}let Jf2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"span"),_(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),p(),N(3,"p"),k(4,qf2,2,0,"span",1),N(5,"p"),h(6,"div",2)(7,"label",3),_(8,"HomeKit Home"),p(),h(9,"select",4),x("ngModelChange",function(r){return i.hkHome=r})("change",function(){return i.update()}),k(10,Kf2,2,1,"option",5),h(11,"option",6),_(12,"Eufy Home"),p(),h(13,"option",6),_(14,"Eufy Away"),p(),h(15,"option",6),_(16,"Eufy Schedule"),p(),h(17,"option",6),_(18,"Eufy Custom 1 (Night)"),p(),h(19,"option",6),_(20,"Eufy Custom 2"),p(),h(21,"option",6),_(22,"Eufy Custom 3"),p(),h(23,"option",6),_(24,"Eufy Geofencing"),p(),h(25,"option",6),_(26,"Eufy Disarmed"),p()()(),h(27,"div",2)(28,"label",7),_(29,"HomeKit Away"),p(),h(30,"select",8),x("ngModelChange",function(r){return i.hkAway=r})("change",function(){return i.update()}),k(31,Yf2,2,1,"option",5),h(32,"option",6),_(33,"Eufy Home"),p(),h(34,"option",6),_(35,"Eufy Away"),p(),h(36,"option",6),_(37,"Eufy Schedule"),p(),h(38,"option",6),_(39,"Eufy Custom 1 (Night)"),p(),h(40,"option",6),_(41,"Eufy Custom 2"),p(),h(42,"option",6),_(43,"Eufy Custom 3"),p(),h(44,"option",6),_(45,"Eufy Geofencing"),p(),h(46,"option",6),_(47,"Eufy Disarmed"),p()()(),h(48,"div",2)(49,"label",9),_(50,"HomeKit Night"),p(),h(51,"select",10),x("ngModelChange",function(r){return i.hkNight=r})("change",function(){return i.update()}),k(52,Qf2,2,1,"option",5),h(53,"option",6),_(54,"Eufy Home"),p(),h(55,"option",6),_(56,"Eufy Away"),p(),h(57,"option",6),_(58,"Eufy Schedule"),p(),h(59,"option",6),_(60,"Eufy Custom 1 (Night)"),p(),h(61,"option",6),_(62,"Eufy Custom 2"),p(),h(63,"option",6),_(64,"Eufy Custom 3"),p(),h(65,"option",6),_(66,"Eufy Geofencing"),p(),h(67,"option",6),_(68,"Eufy Disarmed"),p()()(),h(69,"div",2)(70,"label",11),_(71,"HomeKit Off"),p(),h(72,"select",12),x("ngModelChange",function(r){return i.hkOff=r})("change",function(){return i.update()}),k(73,Zf2,2,1,"option",5),h(74,"option",6),_(75,"Eufy Home"),p(),h(76,"option",6),_(77,"Eufy Away"),p(),h(78,"option",6),_(79,"Eufy Schedule"),p(),h(80,"option",6),_(81,"Eufy Custom 1 (Night)"),p(),h(82,"option",6),_(83,"Eufy Custom 2"),p(),h(84,"option",6),_(85,"Eufy Custom 3"),p(),h(86,"option",6),_(87,"Eufy Geofencing"),p(),h(88,"option",6),_(89,"Eufy Disarmed"),p()()()()),2&e&&(m(4),M("ngIf",i.accessory),m(5),M("ngModel",i.hkHome),m(1),M("ngIf",i.accessory),m(1),M("ngValue",1),m(2),M("ngValue",0),m(2),M("ngValue",2),m(2),M("ngValue",3),m(2),M("ngValue",4),m(2),M("ngValue",5),m(2),M("ngValue",47),m(2),M("ngValue",63),m(5),M("ngModel",i.hkAway),m(1),M("ngIf",i.accessory),m(1),M("ngValue",1),m(2),M("ngValue",0),m(2),M("ngValue",2),m(2),M("ngValue",3),m(2),M("ngValue",4),m(2),M("ngValue",5),m(2),M("ngValue",47),m(2),M("ngValue",63),m(5),M("ngModel",i.hkNight),m(1),M("ngIf",i.accessory),m(1),M("ngValue",1),m(2),M("ngValue",0),m(2),M("ngValue",2),m(2),M("ngValue",3),m(2),M("ngValue",4),m(2),M("ngValue",5),m(2),M("ngValue",47),m(2),M("ngValue",63),m(5),M("ngModel",i.hkOff),m(1),M("ngIf",i.accessory),m(1),M("ngValue",1),m(2),M("ngValue",0),m(2),M("ngValue",2),m(2),M("ngValue",3),m(2),M("ngValue",4),m(2),M("ngValue",5),m(2),M("ngValue",47),m(2),M("ngValue",63))},directives:[d1,ce,K2,B2,u6,d6],encapsulation:2}),t})(),Xf2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-omit-log-files"]],features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Don't store log files"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),h(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. "),p()()()),2&e&&(m(5),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})();var eu2=s1(172);function tu2(t,n){if(1&t&&(h(0,"div",7),_(1),p()),2&t){const e=z();m(1),S3(" ",e.failureMessage," ")}}function nu2(t,n){1&t&&N(0,"span",10)}function iu2(t,n){1&t&&(h(0,"span"),_(1,"Download Logs"),p())}function au2(t,n){1&t&&(h(0,"span"),_(1," Generating Log File..."),p())}function ru2(t,n){if(1&t){const e=f1();h(0,"button",8),x("click",function(){return I(e),z().downloadLogs()}),k(1,nu2,1,0,"span",9),k(2,iu2,2,0,"span",6),k(3,au2,2,0,"span",6),p()}if(2&t){const e=z();P("disabled",!!e.isDownloading||null),m(1),M("ngIf",e.isDownloading),m(1),M("ngIf",!e.isDownloading),m(1),M("ngIf",e.isDownloading)}}function ou2(t,n){if(1&t){const e=f1();h(0,"a",11),x("click",function(){return I(e),z().openLink()}),h(1,"span"),_(2,"Download Logs"),p()()}}function su2(t,n){if(1&t&&(h(0,"small")(1,"i"),_(2),p()()),2&t){const e=z();m(2),S3(" ",e.downloadMessage," ")}}function cu2(t,n){1&t&&(h(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."),N(3,"br"),h(4,"b"),_(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),h(6,"a",12),_(7,"site"),p(),_(8," can help."),p()()())}let lu2=(()=>{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 Z0&&""!==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=eu2.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)(L(t3),L(R2))},t.\u0275cmp=t2({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&&(h(0,"div",0),k(1,tu2,2,1,"div",1),h(2,"div",2)(3,"span",3),_(4,"Download Logs"),p(),k(5,ru2,4,4,"button",4),k(6,ou2,3,0,"a",5),p(),k(7,su2,3,1,"small",6),k(8,cu2,9,0,"small",6),p()),2&e&&(m(1),M("ngIf",i.failed),m(4),M("ngIf",!i.hasDownloaded),m(1),M("ngIf",i.hasDownloaded),m(1),M("ngIf",i.downloadMessage),m(1),M("ngIf",i.hasDownloaded))},directives:[d1],encapsulation:2}),t})(),Cu2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=t2({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&&(h(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Reset Plugin"),p(),h(4,"a",3),_(5,"Remove everything"),p()(),h(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. "),p()()())},directives:[z4],encapsulation:2}),t})();function fu2(t,n){1&t&&(h(0,"div",5),_(1," Please be advised that we are not reliable for any side effects occur while you try experimental settings."),N(2,"p"),_(3," Also take care to deactivate every experimental setting before disabling 'Experimental Mode'. Just disabling this option, "),h(4,"b"),_(5,"will not"),p(),_(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'). "),p())}let uu2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-experimental-mode"]],features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Experimental Mode"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),k(6,fu2,7,0,"div",4),h(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). "),p()()()),2&e&&(m(5),M("ngModel",i.value),m(1),M("ngIf",i.value))},directives:[x1,K2,B2,d1],encapsulation:2}),t})(),du2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=t2({type:t,selectors:[["app-advanced-config-options"]],decls:31,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&&(h(0,"a",0),_(1,"Back to Devices List"),p(),h(2,"div",1)(3,"div",2),_(4," Advanced Settings "),p(),h(5,"div",3),N(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-ignore-multiple-devices-warning")(17,"hr")(18,"app-clean-cache")(19,"hr")(20,"app-sync-station-modes")(21,"hr")(22,"app-guard-modes-mapping")(23,"hr")(24,"app-omit-log-files")(25,"hr")(26,"app-download-logs")(27,"hr")(28,"app-reset-plugin")(29,"hr")(30,"app-experimental-mode"),p()())},directives:[z4,Pf2,Ff2,Bf2,Uf2,Gf2,jf2,$f2,Wf2,Jf2,Xf2,lu2,Cu2,uu2],encapsulation:2}),t})(),xw=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()()()),2&e&&(m(3),S3("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),m(2),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})();function hu2(t,n){1&t&&(h(0,"small")(1,"i"),_(2," This option is disabled since doorbells are handled always as cameras. "),p()())}function pu2(t,n){1&t&&(h(0,"small")(1,"i"),_(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),p()())}let gu2=(()=>{class t extends Y2{constructor(e){super(e),this.value=!1,this.disabled=!1}ngOnInit(){this.readValue()}readValue(){var e=this;return f2(function*(){var i;e.accessory&&D6.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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Operation Mode"),p(),h(4,"div",2)(5,"select",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),h(6,"option",4),_(7,"Motion Sensor"),p(),h(8,"option",5),_(9,"Camera"),p()()()(),k(10,hu2,3,0,"small",6),k(11,pu2,3,0,"small",6),p()),2&e&&(m(5),M("ngModel",i.value),P("disabled",!!i.disabled||null),m(5),M("ngIf",i.disabled),m(1),M("ngIf",!i.disabled))},directives:[ce,K2,B2,u6,d6,d1],encapsulation:2}),t})();function mu2(t,n){1&t&&(h(0,"div",5),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),p())}let vu2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Use RTSP streaming"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),k(6,mu2,2,0,"div",4),h(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!"),N(10,"br"),p()()()),2&e&&(m(5),M("ngModel",i.value),m(1),M("ngIf",i.talkbackIsEnabled&&i.value))},directives:[x1,K2,B2,d1],encapsulation:2}),t})(),_u2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Audio"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),h(6,"small")(7,"i"),_(8," Try to enable audio streaming for this device."),N(9,"br"),_(10," If you encounter problems try to disable this setting. "),p()()()),2&e&&(m(5),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})();function Mu2(t,n){1&t&&(h(0,"div",7),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),p())}function yu2(t,n){1&t&&N(0,"p")}function bu2(t,n){if(1&t){const e=f1();h(0,"div",8)(1,"span"),_(2,"Talkback Configuration"),p(),h(3,"div",9)(4,"select",10),x("ngModelChange",function(a){return I(e),z().talkbackChannels=a})("change",function(){return I(e),z().update()}),h(5,"option",11),_(6,"Mono"),p(),h(7,"option",11),_(8,"Stereo"),p()()()()}if(2&t){const e=z();m(4),M("ngModel",e.talkbackChannels),m(1),M("ngValue",1),m(2),M("ngValue",2)}}function Lu2(t,n){1&t&&(h(0,"small")(1,"i"),_(2," Please use mono as default setting. If you experience weird talkback output, you can try stereo instead."),N(3,"br"),p()())}let Vu2=(()=>{class t extends Y2{constructor(e){super(e),this.value=false,this.talkbackChannels=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,"talkbackChannels")&&(e.talkbackChannels=a.talkbackChannels),a&&Object.prototype.hasOwnProperty.call(a,"rtsp")&&(e.rtspIsEnabled=a.rtsp)})()}update(){this.updateConfig({talkback:this.value,talkbackChannels:this.talkbackChannels},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[Q],decls:16,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-danger","role","alert",4,"ngIf"],[4,"ngIf"],["class","d-flex flex-column flex-sm-row justify-content-between align-items-start align-items-sm-center mb-2",4,"ngIf"],["role","alert",1,"alert","alert-danger"],[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"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Talkback (Two way communication)"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),k(6,Mu2,2,0,"div",4),h(7,"small")(8,"i"),_(9," Enables you to talk with someone infront of the camera while streaming. "),N(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."),N(12,"br"),p()(),k(13,yu2,1,0,"p",5),k(14,bu2,9,3,"div",6),k(15,Lu2,4,0,"small",5),p()),2&e&&(m(5),M("ngModel",i.value),m(1),M("ngIf",i.rtspIsEnabled&&i.value),m(7),M("ngIf",i.value),m(1),M("ngIf",i.value),m(1),M("ngIf",i.value))},directives:[x1,K2,B2,d1,ce,u6,d6],encapsulation:2}),t})();function Hu2(t,n){if(1&t){const e=f1();h(0,"div",1)(1,"span"),_(2,"Display HomeKit button to turn indoor chime on/off"),p(),h(3,"div",2)(4,"input",3),x("ngModelChange",function(a){return I(e),z().indoorChimeButton=a})("change",function(){return I(e),z().update()}),p()()()}if(2&t){const e=z();m(4),M("ngModel",e.indoorChimeButton)}}let wu2=(()=>{class t extends Y2{constructor(e){super(e),this.enableCameraButton=!0,this.enableMotionButton=!0,this.showIndoorChimeButtonSetting=!1,this.indoorChimeButton=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)||"");e.accessory&&(e.showIndoorChimeButtonSetting=D6.isBatteryDoorbell(e.accessory.type)||D6.isWiredDoorbell(e.accessory.type)),a&&Object.prototype.hasOwnProperty.call(a,"enableButton")&&(e.enableCameraButton=a.enableButton),a&&Object.prototype.hasOwnProperty.call(a,"motionButton")&&(e.enableMotionButton=a.motionButton),a&&Object.prototype.hasOwnProperty.call(a,"indoorChimeButton")&&(e.indoorChimeButton=a.indoorChimeButton)})()}update(){const e={};e.enableButton=this.enableCameraButton,e.motionButton=this.enableMotionButton,this.showIndoorChimeButtonSetting&&(e.indoorChimeButton=this.indoorChimeButton),this.updateConfig(e,this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[Q],decls:18,vars:3,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","d-flex justify-content-between align-items-center mb-2",4,"ngIf"],["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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Display HomeKit switch to turn camera on/off"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.enableCameraButton=r})("change",function(){return i.update()}),p()()(),h(6,"div",1)(7,"span"),_(8,"Display HomeKit switch to turn motion detection on/off"),p(),h(9,"div",2)(10,"input",3),x("ngModelChange",function(r){return i.enableMotionButton=r})("change",function(){return i.update()}),p()()(),k(11,Hu2,5,1,"div",4),h(12,"small")(13,"i"),_(14," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),h(15,"a",5),_(16,"here"),p(),_(17," for more details. "),p()()()),2&e&&(m(5),M("ngModel",i.enableCameraButton),m(5),M("ngModel",i.enableMotionButton),m(1),M("ngIf",i.showIndoorChimeButtonSetting))},directives:[x1,K2,B2,d1],encapsulation:2}),t})();var Ws={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"]};let Di=(()=>{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=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function kp2(t,n){1&t&&(h(0,"div"),_(1," You can enable this setting nevertheless in "),h(2,"a",9),_(3,"Plugin Settings"),p(),N(4,"p"),p())}function Ip2(t,n){if(1&t&&(h(0,"li"),_(1),p()),2&t){const e=n.$implicit;m(1),ne(e)}}function Op2(t,n){if(1&t&&(h(0,"div",7),_(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 recommened to use HomeKit Secure Video with this camera since this would likely lead to conflicts."),N(2,"p"),k(3,kp2,5,0,"div",6),_(4," Cameras on the same station: "),h(5,"ul"),k(6,Ip2,2,1,"li",8),p()()),2&t){const e=z();m(3),M("ngIf",!e.ignoreMultipleDevicesWarning),m(3),M("ngForOf",e.camerasOnSameStation)}}function Rp2(t,n){1&t&&(h(0,"div",7),_(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. "),p())}function Pp2(t,n){1&t&&(h(0,"div",10),_(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. "),p())}function Fp2(t,n){if(1&t){const e=f1();h(0,"div")(1,"button",11),x("click",function(){I(e);const a=z();return a.showAdvancedSettings=!a.showAdvancedSettings}),_(2),p(),h(3,"div",12,13),x("ngbCollapseChange",function(a){return I(e),!(z().showAdvancedSettings=a)}),h(5,"div",14),_(6,"HomeKit Secure Video is processed on Apples dedicated Servers (object and face recognition). This service is somewhat picky about the encoded video data it accepts. If you encounter problems with HKSV but normal streaming is doing fine, you can try to alter these settings. "),p(),h(7,"div",15)(8,"div",16),_(9," Video Settings "),p(),h(10,"ul",17)(11,"li",18)(12,"label",19)(13,"span"),_(14,"Maximum Recording Duration "),N(15,"fa-icon",20),p()(),h(16,"input",21),x("ngModelChange",function(a){return I(e),z().recordingDuration=a})("change",function(){return I(e),z().update()}),p()(),h(17,"li",18)(18,"label",22)(19,"div",23)(20,"input",24),x("change",function(){I(e);const a=z();return a.vcodec=void 0===a.vcodec?"":void 0,a.update()}),p(),h(21,"label",25),_(22," vcodec "),N(23,"fa-icon",26),p()()(),h(24,"input",27),x("ngModelChange",function(a){return I(e),z().vcodec=a})("change",function(){return I(e),z().update()}),p()(),h(25,"li",18)(26,"label",28)(27,"div",23)(28,"input",29),x("change",function(){I(e);const a=z();return a.videoFilter=void 0===a.videoFilter?"":void 0,a.update()}),p(),h(29,"label",30),_(30," videoFilter "),N(31,"fa-icon",31),p()()(),h(32,"input",32),x("ngModelChange",function(a){return I(e),z().videoFilter=a})("change",function(){return I(e),z().update()}),p()(),h(33,"li",18)(34,"label",33)(35,"div",23)(36,"input",34),x("change",function(){I(e);const a=z();return a.encoderOptions=void 0===a.encoderOptions?"":void 0,a.update()}),p(),h(37,"label",35),_(38," encoderOptions "),N(39,"fa-icon",36),p()()(),h(40,"input",37),x("ngModelChange",function(a){return I(e),z().encoderOptions=a})("change",function(){return I(e),z().update()}),p()(),h(41,"li",18)(42,"div",23)(43,"input",38),x("ngModelChange",function(a){return I(e),z().crop=a})("change",function(){return I(e),z().update()}),p(),h(44,"label",39),_(45," force crop image to requested/defined resolution "),N(46,"fa-icon",40),p()()(),h(47,"li",18)(48,"label",41)(49,"div",23)(50,"input",42),x("change",function(){I(e);const a=z();return a.maxFPS=void 0===a.maxFPS?0:void 0,a.update()}),p(),h(51,"label",43),_(52," fps "),N(53,"fa-icon",44),p()()(),h(54,"input",45),x("ngModelChange",function(a){return I(e),z().maxFPS=a})("change",function(){return I(e),z().update()}),p()(),h(55,"li",18)(56,"label",46)(57,"div",23)(58,"input",47),x("change",function(){I(e);const a=z();return a.maxBitrate=void 0===a.maxBitrate?0:void 0,a.update()}),p(),h(59,"label",48),_(60," bitrate "),N(61,"fa-icon",49),p()()(),h(62,"input",50),x("ngModelChange",function(a){return I(e),z().maxBitrate=a})("change",function(){return I(e),z().update()}),p()()()(),h(63,"div",15)(64,"div",16),_(65," Audio Settings "),p(),h(66,"ul",17)(67,"li",18)(68,"div",23)(69,"input",51),x("ngModelChange",function(a){return I(e),z().audio=a})("change",function(){return I(e),z().update()}),p(),h(70,"label",52),_(71," Enable Audio "),N(72,"fa-icon",53),p()()()()()()()}if(2&t){const e=z();m(2),S3("",e.showAdvancedSettings?"Hide":"Show"," advanced HKSV settings"),m(1),M("ngbCollapse",!e.showAdvancedSettings),m(12),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.recordingDuration),m(4),M("checked",void 0!==e.vcodec||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.vcodec),P("disabled",void 0===e.vcodec||null),m(4),M("checked",void 0!==e.videoFilter||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.videoFilter),P("disabled",void 0===e.videoFilter||"copy"===e.vcodec||null),m(4),M("checked",void 0!==e.encoderOptions||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.encoderOptions),P("placeholder",void 0!==e.encoderOptions?"":e.vcodecOptionsPlaceholder)("disabled",void 0===e.encoderOptions||"copy"===e.vcodec||null),m(3),M("ngModel",e.crop),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(4),M("checked",void 0!==e.maxFPS||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.maxFPS),P("disabled",void 0===e.maxFPS||"copy"===e.vcodec||null),m(4),M("checked",void 0!==e.maxBitrate||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.maxBitrate),P("disabled",void 0===e.maxBitrate||"copy"===e.vcodec||null),m(7),M("ngModel",e.audio),m(3),M("icon",e.faQuestionCircle)}}let Bp2=(()=>{class t extends Y2{constructor(e,i){super(e),this.accessoryService=i,this.faQuestionCircle=Ws,this.value=false,this.showAdvancedSettings=!1,this.vcodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.crop=!0,this.audio=!0,this.recordingDuration=90,this.vcodecOptionsPlaceholder="-preset ultrafast -tune zerolatency",this.chargingStatus=Wt.PLUGGED,this.camerasOnSameStation=[],this.ignoreMultipleDevicesWarning=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)||"");if(a&&Object.prototype.hasOwnProperty.call(a,"hsv")&&(e.value=a.hsv),a&&Object.prototype.hasOwnProperty.call(a,"hsvRecordingDuration")&&(e.recordingDuration=a.hsvRecordingDuration),a&&Object.prototype.hasOwnProperty.call(a,"hsvConfig")&&Object.entries(a.hsvConfig).forEach(([r,o])=>{e[r]=o}),e.accessory){e.accessoryService.getChargingStatus(e.accessory.uniqueId).then(o=>e.chargingStatus=o),Object.prototype.hasOwnProperty.call(e.config,"ignoreMultipleDevicesWarning")&&(e.ignoreMultipleDevicesWarning=e.config.ignoreMultipleDevicesWarning);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.ignoreMultipleDevicesWarning&&(e.value=!1,e.update())})}e.placeholderUpdate()})()}placeholderUpdate(){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"}}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)||""),o=(a&&Object.prototype.hasOwnProperty.call(a,"videoConfig"),{});e.audio||(o.audio=e.audio),e.crop||(o.crop=e.crop),e.vcodec&&""!==e.vcodec&&(o.vcodec=e.vcodec),e.videoFilter&&""!==e.videoFilter&&(o.videoFilter=e.videoFilter),void 0!==e.encoderOptions&&(o.encoderOptions=e.encoderOptions),void 0!==e.maxFPS&&(o.maxFPS=e.maxFPS),void 0!==e.maxBitrate&&(o.maxBitrate=e.maxBitrate),e.updateConfig({hsv:e.value,hsvRecordingDuration:e.recordingDuration,hsvConfig:o},e.accessory),e.placeholderUpdate()})()}}return t.\u0275fac=function(e){return new(e||t)(L(A2),L(Di))},t.\u0275cmp=t2({type:t,selectors:[["app-enable-hsv"]],inputs:{accessory:"accessory"},features:[Q],decls:21,vars:6,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"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],[4,"ngFor","ngForOf"],["routerLink","/advancedConfig"],["role","alert",1,"alert","alert-secondary"],["type","button",1,"btn","btn-secondary","mb-3",3,"click"],[3,"ngbCollapse","ngbCollapseChange"],["collapse","ngbCollapse"],[1,"mb-3"],[1,"card","mb-3"],[1,"card-header"],[1,"list-group","list-group-flush"],[1,"list-group-item"],["for","recordingDurationInput",1,"form-label"],["ngbTooltip","Duration a HKSV event will be recorded. The recording may be ended sooner by HomeKit, but mostly the whole time will be recorded and analyzed regarding motion, people and so on. Don't use too high values for battery powered devices.",1,"m-1",3,"icon"],["type","number","id","recordingDurationInput","placeholder","90","min","10","max","300",1,"form-control",3,"ngModel","ngModelChange","change"],["for","vcodecInput",1,"form-label"],[1,"form-check"],["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"],["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","maxBitrateInput",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"],["type","checkbox","id","hsvAudio",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","hsvAudio",1,"form-check-label"],["ngbTooltip","Enable audio in HKSV recordings.",1,"m-1",3,"icon"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Use HomeKit Secure Video"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),k(6,Op2,7,2,"div",4),k(7,Rp2,2,0,"div",4),k(8,Pp2,2,0,"div",5),h(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. "),N(12,"p"),h(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."),p(),h(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."),p(),h(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."),p()()()(),k(20,Fp2,73,39,"div",6),p()),2&e&&(m(5),M("ngModel",i.value),P("disabled",i.camerasOnSameStation.length>1&&!i.ignoreMultipleDevicesWarning||null),m(1),M("ngIf",i.camerasOnSameStation.length>1),m(1),M("ngIf",2===i.chargingStatus&&i.value),m(1),M("ngIf",4===i.chargingStatus&&i.value),m(12),M("ngIf",i.value))},directives:[x1,K2,B2,d1,z4,oe,aG,K0,Jg,bo,yo,f6,se],encapsulation:2}),t})(),Up2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-unbridge-accessory"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Unbridge Camera"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),h(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 "),h(9,"a",4),_(10,"here"),p(),_(11," for mor details. "),p()()()),2&e&&(m(5),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})();function Gp2(t,n){1&t&&(h(0,"div"),_(1," You can enable this setting nevertheless in "),h(2,"a",10),_(3,"Plugin Settings"),p(),N(4,"p"),p())}function jp2(t,n){if(1&t&&(h(0,"li"),_(1),p()),2&t){const e=n.$implicit;m(1),ne(e)}}function $p2(t,n){if(1&t&&(h(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 recommened to use another snapshot method other than cloud snapshots."),N(2,"p"),k(3,Gp2,5,0,"div",7),_(4," Cameras on the same station: "),h(5,"ul"),k(6,jp2,2,1,"li",9),p()()),2&t){const e=z();m(3),M("ngIf",!e.ignoreMultipleDevicesWarning),m(3),M("ngForOf",e.camerasOnSameStation)}}function Wp2(t,n){1&t&&(h(0,"div",8)(1,"b"),_(2,"Caution!"),p(),_(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 "),h(4,"a",11),_(5,"here"),p(),_(6," for more informtaion. "),p())}function qp2(t,n){1&t&&(h(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. "),p())}function Kp2(t,n){1&t&&(h(0,"div",12),_(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. "),p())}function Yp2(t,n){if(1&t&&(h(0,"small")(1,"i")(2,"b"),_(3,"Description:"),p(),_(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."),N(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. "),N(7,"p")(8,"fa-icon",13),_(9," Up-to-date Snapshots (events)"),N(10,"br")(11,"fa-icon",13),_(12," Up-to-date Snapshots (HomeKit View)"),N(13,"br")(14,"fa-icon",14),_(15," Performance"),N(16,"br")(17,"fa-icon",14),_(18," Battery life"),N(19,"br"),p()()),2&t){const e=z();m(8),M("icon",e.plusIcon),m(3),M("icon",e.plusIcon),m(3),M("icon",e.minusIcon),m(3),M("icon",e.minusIcon)}}function Qp2(t,n){if(1&t&&(h(0,"small")(1,"i")(2,"b"),_(3,"Description:"),p(),_(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),N(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. "),N(7,"p")(8,"fa-icon",13),_(9," Up-to-date Snapshots (events)"),N(10,"br")(11,"fa-icon",15),_(12," Up-to-date Snapshots (HomeKit View)"),N(13,"br")(14,"fa-icon",13),_(15," Performance"),N(16,"br")(17,"fa-icon",14),_(18," Battery life"),N(19,"br"),p()()),2&t){const e=z();m(8),M("icon",e.plusIcon),m(3),M("icon",e.mediumIcon),m(3),M("icon",e.plusIcon),m(3),M("icon",e.minusIcon)}}function Zp2(t,n){if(1&t&&(h(0,"small")(1,"i")(2,"b"),_(3,"Description:"),p(),_(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),N(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). "),N(7,"p")(8,"fa-icon",13),_(9," Up-to-date Snapshots (events)"),N(10,"br")(11,"fa-icon",14),_(12," Up-to-date Snapshots (HomeKit View)"),N(13,"br")(14,"fa-icon",13),_(15," Performance"),N(16,"br")(17,"fa-icon",13),_(18," Battery life"),N(19,"br"),p()()),2&t){const e=z();m(8),M("icon",e.plusIcon),m(3),M("icon",e.minusIcon),m(3),M("icon",e.plusIcon),m(3),M("icon",e.plusIcon)}}let Jp2=(()=>{class t extends Y2{constructor(e,i){super(e),this.accessoryService=i,this.plusIcon=JM,this.minusIcon=KM,this.mediumIcon=DM,this.value=3,this.chargingStatus=Wt.PLUGGED,this.camerasOnSameStation=[],this.ignoreMultipleDevicesWarning=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)||"");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),Object.prototype.hasOwnProperty.call(e.config,"ignoreMultipleDevicesWarning")&&(e.ignoreMultipleDevicesWarning=e.config.ignoreMultipleDevicesWarning);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.ignoreMultipleDevicesWarning&&(e.value=3,e.update())})}})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return t.\u0275fac=function(e){return new(e||t)(L(A2),L(Di))},t.\u0275cmp=t2({type:t,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[Q],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"],["routerLink","/advancedConfig"],["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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Snapshot Handling Method"),p(),h(4,"div",2)(5,"select",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),h(6,"option",4),_(7,"Force Refresh Snapshots"),p(),h(8,"option",4),_(9,"Balanced"),p(),h(10,"option",4),_(11,"Cloud Snapshots"),p()()()(),k(12,$p2,7,2,"div",5),k(13,Wp2,7,0,"div",5),k(14,qp2,2,0,"div",5),k(15,Kp2,2,0,"div",6),k(16,Yp2,20,4,"small",7),k(17,Qp2,20,4,"small",7),k(18,Zp2,20,4,"small",7),p()),2&e&&(m(5),M("ngModel",i.value),P("disabled",i.camerasOnSameStation.length>1&&!i.ignoreMultipleDevicesWarning||null),m(1),M("ngValue",1),m(2),M("ngValue",2),m(2),M("ngValue",3),m(2),M("ngIf",i.camerasOnSameStation.length>1),m(1),M("ngIf",1===i.value),m(1),M("ngIf",2===i.chargingStatus&&1===i.value),m(1),M("ngIf",4===i.chargingStatus&&1===i.value),m(1),M("ngIf",1===i.value),m(1),M("ngIf",2===i.value),m(1),M("ngIf",3===i.value))},directives:[ce,K2,B2,u6,d6,d1,z4,oe,K0],encapsulation:2}),t})(),Xp2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Immediate Notification on ring events"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),h(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."),N(9,"br"),h(10,"b"),_(11,"This option however delivers most likely an empty (black) snapshot on those events!"),p()()()()),2&e&&(m(5),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})(),eg2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Night-Vision Improvement for camera snapshots"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),h(6,"small")(7,"i"),_(8," Force night vision on dark snapshots to improve the image."),N(9,"br"),h(10,"b"),_(11,"The snapshot request will be delayed by half a second if you enable this setting."),p()()()()),2&e&&(m(5),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})();function tg2(t,n){1&t&&(h(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. "),p())}function ng2(t,n){1&t&&(h(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. "),p())}let ig2=(()=>{class t extends Y2{constructor(e,i){super(e),this.accessoryService=i,this.value=0,this.inputIsInvalid=!1,this.chargingStatus=Wt.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)(L(A2),L(Di))},t.\u0275cmp=t2({type:t,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Periodic Snapshot Refresh"),p(),h(4,"div",2)(5,"input",3),x("change",function(){return i.switchSetting()}),p()()(),k(6,tg2,2,0,"div",4),k(7,ng2,2,0,"div",5),h(8,"div",6)(9,"span"),_(10,"Refresh Interval"),p(),h(11,"div",7)(12,"div",8)(13,"input",9),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p(),h(14,"div",10)(15,"span",11),_(16,"minutes"),p()()()()(),h(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."),N(20,"br"),_(21," Best used with 'Cloud Snapshots' handling method."),N(22,"br"),_(23," Every setting below 5 minutes will be discarded due to performance reasons."),N(24,"br"),h(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."),p()()()()),2&e&&(m(5),P("checked",i.value>0||null),m(1),M("ngIf",2===i.chargingStatus&&i.value>0),m(1),M("ngIf",4===i.chargingStatus&&i.value>0),m(6),M("ngModel",i.value),P("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[d1,f6,se,K2,B2],encapsulation:2}),t})(),ag2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Force Refresh Snapshot (Deprecated)"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),h(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)."),N(9,"br"),_(10," This option is only used if you have disabled enhanced snapshot handling. "),p()()()),2&e&&(m(5),M("ngModel",i.value))},directives:[x1,K2,B2],encapsulation:2}),t})();function rg2(t,n){if(1&t&&(h(0,"div",8),_(1),p()),2&t){const e=z();m(1),S3(" There was an error setting the RTSP status: ",e.error.message," ")}}function og2(t,n){1&t&&(h(0,"div",9),_(1," To utilize RTSP streaming, you'll also have to enable the RTSP setting above. "),p())}function sg2(t,n){1&t&&(h(0,"div"),_(1,"Current RTSP state of this device:"),p())}function cg2(t,n){1&t&&(h(0,"div",10)(1,"span",11),_(2,"Loading..."),p()())}function lg2(t,n){if(1&t&&(h(0,"b"),_(1),p()),2&t){const e=z();m(1),ne(e.state?"On":"Off")}}function Cg2(t,n){1&t&&(h(0,"div"),_(1,"RTSP url for this device:"),p())}let fg2=(()=>{class t extends Y2{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)(L(A2),L(Di))},t.\u0275cmp=t2({type:t,selectors:[["app-experimental-rtsp"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable experimental RTSP streaming capabilities"),p(),h(4,"div",2)(5,"input",3),x("ngModelChange",function(r){return i.value=r})("change",function(){return i.update()}),p()()(),k(6,rg2,2,1,"div",4),k(7,og2,2,0,"div",5),h(8,"div",1),k(9,sg2,2,0,"div",6),k(10,cg2,3,0,"div",7),k(11,lg2,2,1,"b",6),p(),h(12,"div",1),k(13,Cg2,2,0,"div",6),h(14,"div"),_(15),p()(),h(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."),N(19,"br"),p()()()),2&e&&(m(5),M("ngModel",i.value),m(1),M("ngIf",void 0!==i.error),m(1),M("ngIf",i.value&&!i.rtspSetting),m(2),M("ngIf",void 0!==i.state),m(1),M("ngIf",i.waiting),m(1),M("ngIf",!i.waiting),m(2),M("ngIf",i.url),m(2),ne(i.url))},directives:[x1,K2,B2,d1],encapsulation:2}),t})();function ug2(t,n){1&t&&(h(0,"span")(1,"b"),_(2,"Advanced Video Config"),p()())}function dg2(t,n){1&t&&(h(0,"button",4)(1,"span")(2,"b"),_(3,"Advanced Video Config"),p()()())}function hg2(t,n){if(1&t&&(h(0,"div"),_(1),p()),2&t){const e=z(2);m(1),S3(" ",e.presetDescription," ")}}function pg2(t,n){if(1&t){const e=f1();_(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. "),N(1,"p"),_(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),N(3,"p"),h(4,"div",5)(5,"div",6)(6,"select",7),x("ngModelChange",function(a){return I(e),z().preset=a})("change",function(){return I(e),z().loadPreset()}),h(7,"option",8),_(8,"No Preset (default)"),p(),h(9,"option",8),_(10,"Copy"),p(),h(11,"option",8),_(12,"Performance"),p(),h(13,"option",8),_(14,"Custom"),p()()()(),k(15,hg2,2,1,"div",9),N(16,"p"),h(17,"div",10)(18,"div",11),_(19," General Settings "),p(),h(20,"ul",12)(21,"li",13)(22,"div",14)(23,"input",15),x("ngModelChange",function(a){return I(e),z().debug=a})("change",function(){return I(e),z().update()}),p(),h(24,"label",16),_(25," ffmpeg Debug "),N(26,"fa-icon",17),p()()(),h(27,"li",13)(28,"label",18)(29,"div",14)(30,"input",19),x("change",function(){I(e);const a=z();return a.videoProcessor=void 0===a.videoProcessor?"":void 0,a.update()}),p(),h(31,"label",20),_(32," (path to) ffmpeg executable "),N(33,"fa-icon",21),p()()(),h(34,"input",22),x("ngModelChange",function(a){return I(e),z().videoProcessor=a})("change",function(){return I(e),z().update()}),p()(),h(35,"li",13)(36,"div",14)(37,"input",23),x("ngModelChange",function(a){return I(e),z().useSeparateProcesses=a})("change",function(){return I(e),z().update()}),p(),h(38,"label",24),_(39," Use separate processes for video and audio "),N(40,"fa-icon",25),p()()(),h(41,"li",13)(42,"div",14)(43,"input",26),x("ngModelChange",function(a){return I(e),z().readRate=a})("change",function(){return I(e),z().update()}),p(),h(44,"label",27),_(45," readRate "),N(46,"fa-icon",28),p()()(),h(47,"li",13)(48,"label",29)(49,"div",14)(50,"input",30),x("change",function(){I(e);const a=z();return a.probeSize=void 0===a.probeSize?0:void 0,a.update()}),p(),h(51,"label",31),_(52," probeSize "),N(53,"fa-icon",32),p()()(),h(54,"input",33),x("ngModelChange",function(a){return I(e),z().probeSize=a})("change",function(){return I(e),z().update()}),p()(),h(55,"li",13)(56,"label",34)(57,"div",14)(58,"input",35),x("change",function(){I(e);const a=z();return a.analyzeDuration=void 0===a.analyzeDuration?0:void 0,a.update()}),p(),h(59,"label",36),_(60," analyzeDuration "),N(61,"fa-icon",37),p()()(),h(62,"input",38),x("ngModelChange",function(a){return I(e),z().analyzeDuration=a})("change",function(){return I(e),z().update()}),p()(),h(63,"li",13)(64,"label",39)(65,"div",14)(66,"input",40),x("change",function(){I(e);const a=z();return a.maxStreams=void 0===a.maxStreams?2:void 0,a.update()}),p(),h(67,"label",41),_(68," maxStreams "),N(69,"fa-icon",42),p()()(),h(70,"input",43),x("ngModelChange",function(a){return I(e),z().maxStreams=a})("change",function(){return I(e),z().update()}),p()()()(),h(71,"div",10)(72,"div",11),_(73," Video Settings "),p(),h(74,"ul",12)(75,"li",13)(76,"label",44)(77,"div",14)(78,"input",45),x("change",function(){I(e);const a=z();return a.vcodec=void 0===a.vcodec?"":void 0,a.update()}),p(),h(79,"label",46),_(80," vcodec "),N(81,"fa-icon",47),p()()(),h(82,"input",48),x("ngModelChange",function(a){return I(e),z().vcodec=a})("change",function(){return I(e),z().update()}),p()(),h(83,"li",13)(84,"label",49)(85,"div",14)(86,"input",50),x("change",function(){I(e);const a=z();return a.videoFilter=void 0===a.videoFilter?"":void 0,a.update()}),p(),h(87,"label",51),_(88," videoFilter "),N(89,"fa-icon",52),p()()(),h(90,"input",53),x("ngModelChange",function(a){return I(e),z().videoFilter=a})("change",function(){return I(e),z().update()}),p()(),h(91,"li",13)(92,"label",54)(93,"div",14)(94,"input",55),x("change",function(){I(e);const a=z();return a.encoderOptions=void 0===a.encoderOptions?"":void 0,a.update()}),p(),h(95,"label",56),_(96," encoderOptions "),N(97,"fa-icon",57),p()()(),h(98,"input",58),x("ngModelChange",function(a){return I(e),z().encoderOptions=a})("change",function(){return I(e),z().update()}),p()(),h(99,"li",13)(100,"div",59)(101,"div",60)(102,"label",61)(103,"div",14)(104,"input",62),x("change",function(){I(e);const a=z();return a.maxWidth=void 0===a.maxWidth?0:void 0,a.update()}),p(),h(105,"label",63),_(106," maxWidth "),N(107,"fa-icon",64),p()()(),h(108,"input",65),x("ngModelChange",function(a){return I(e),z().maxWidth=a})("change",function(){return I(e),z().update()}),p()(),h(109,"span",66),_(110,"x"),p(),h(111,"div",67)(112,"label",68)(113,"div",14)(114,"input",69),x("change",function(){I(e);const a=z();return a.maxHeight=void 0===a.maxHeight?0:void 0,a.update()}),p(),h(115,"label",70),_(116," maxHeight "),N(117,"fa-icon",71),p()()(),h(118,"input",72),x("ngModelChange",function(a){return I(e),z().maxHeight=a})("change",function(){return I(e),z().update()}),p()()()(),h(119,"li",13)(120,"div",14)(121,"input",73),x("ngModelChange",function(a){return I(e),z().crop=a})("change",function(){return I(e),z().update()}),p(),h(122,"label",74),_(123," force crop image to requested/defined resolution "),N(124,"fa-icon",75),p()()(),h(125,"li",13)(126,"label",76)(127,"div",14)(128,"input",77),x("change",function(){I(e);const a=z();return a.maxFPS=void 0===a.maxFPS?0:void 0,a.update()}),p(),h(129,"label",78),_(130," fps "),N(131,"fa-icon",79),p()()(),h(132,"input",80),x("ngModelChange",function(a){return I(e),z().maxFPS=a})("change",function(){return I(e),z().update()}),p()(),h(133,"li",13)(134,"label",81)(135,"div",14)(136,"input",82),x("change",function(){I(e);const a=z();return a.maxBitrate=void 0===a.maxBitrate?0:void 0,a.update()}),p(),h(137,"label",83),_(138," bitrate "),N(139,"fa-icon",84),p()()(),h(140,"input",85),x("ngModelChange",function(a){return I(e),z().maxBitrate=a})("change",function(){return I(e),z().update()}),p()()()(),h(141,"div",10)(142,"div",11),_(143," Audio Settings "),p(),h(144,"ul",12)(145,"li",13)(146,"label",86)(147,"div",14)(148,"input",87),x("change",function(){I(e);const a=z();return a.acodecHK=void 0===a.acodecHK?"AAC-eld":void 0,a.update()}),p(),h(149,"label",88),_(150," Audio Codec that will be requested by HomeKit. "),N(151,"fa-icon",89),p()()(),h(152,"select",90),x("ngModelChange",function(a){return I(e),z().acodecHK=a})("change",function(){return I(e),z().update()}),h(153,"option",8),_(154,"AAC-eld"),p(),h(155,"option",8),_(156,"OPUS"),p()()(),h(157,"li",13)(158,"label",91)(159,"div",14)(160,"input",92),x("change",function(){I(e);const a=z();return a.acodec=void 0===a.acodec?"":void 0,a.update()}),p(),h(161,"label",93),_(162," Forced audio codec "),N(163,"fa-icon",94),p()()(),h(164,"input",95),x("ngModelChange",function(a){return I(e),z().acodec=a})("change",function(){return I(e),z().update()}),p()(),h(165,"li",13)(166,"label",96)(167,"div",14)(168,"input",97),x("change",function(){I(e);const a=z();return a.acodecOptions=void 0===a.acodecOptions?"":void 0,a.update()}),p(),h(169,"label",98),_(170," Audio Codec encoding options "),N(171,"fa-icon",99),p()()(),h(172,"input",100),x("ngModelChange",function(a){return I(e),z().acodecOptions=a})("change",function(){return I(e),z().update()}),p()(),h(173,"li",13)(174,"label",101)(175,"div",14)(176,"input",102),x("change",function(){I(e);const a=z();return a.audioSampleRate=void 0===a.audioSampleRate?16:void 0,a.update()}),p(),h(177,"label",103),_(178," samplerate "),N(179,"fa-icon",104),p()()(),h(180,"select",105),x("ngModelChange",function(a){return I(e),z().audioSampleRate=a})("change",function(){return I(e),z().update()}),h(181,"option",8),_(182,"8 kHz"),p(),h(183,"option",8),_(184,"16 kHz"),p(),h(185,"option",8),_(186,"24 kHz"),p()()(),h(187,"li",13)(188,"label",106)(189,"div",14)(190,"input",107),x("change",function(){I(e);const a=z();return a.audioBitrate=void 0===a.audioBitrate?24:void 0,a.update()}),p(),h(191,"label",108),_(192," audio bitrate "),N(193,"fa-icon",109),p()()(),h(194,"input",110),x("ngModelChange",function(a){return I(e),z().audioBitrate=a})("change",function(){return I(e),z().update()}),p()()()()}if(2&t){const e=z();m(6),M("ngModel",e.preset),m(1),M("ngValue",0),m(2),M("ngValue",1),m(2),M("ngValue",2),m(2),M("ngValue",3),m(2),M("ngIf",e.presetDescription),m(8),M("ngModel",e.debug),m(3),M("icon",e.faQuestionCircle),m(4),M("checked",void 0!==e.videoProcessor||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.videoProcessor),P("disabled",void 0===e.videoProcessor||null),m(3),M("ngModel",e.useSeparateProcesses),m(3),M("icon",e.faQuestionCircle),m(3),M("ngModel",e.readRate),m(3),M("icon",e.faQuestionCircle),m(4),M("checked",void 0!==e.probeSize||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.probeSize),P("disabled",void 0===e.probeSize||null),m(4),M("checked",void 0!==e.analyzeDuration||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.analyzeDuration),P("disabled",void 0===e.analyzeDuration||null),m(4),M("checked",void 0!==e.maxStreams||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.maxStreams),P("disabled",void 0===e.maxStreams||null),m(8),M("checked",void 0!==e.vcodec||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.vcodec),P("disabled",void 0===e.vcodec||null),m(4),M("checked",void 0!==e.videoFilter||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.videoFilter),P("disabled",void 0===e.videoFilter||"copy"===e.vcodec||null),m(4),M("checked",void 0!==e.encoderOptions||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.encoderOptions),P("placeholder",void 0!==e.encoderOptions?"":e.vcodecOptionsPlaceholder)("disabled",void 0===e.encoderOptions||"copy"===e.vcodec||null),m(6),M("checked",void 0!==e.maxWidth||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.maxWidth),P("disabled",void 0===e.maxWidth||"copy"===e.vcodec||null),m(6),M("checked",void 0!==e.maxHeight||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.maxHeight),P("disabled",void 0===e.maxHeight||"copy"===e.vcodec||null),m(3),M("ngModel",e.crop),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(4),M("checked",void 0!==e.maxFPS||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.maxFPS),P("disabled",void 0===e.maxFPS||"copy"===e.vcodec||null),m(4),M("checked",void 0!==e.maxBitrate||null),P("disabled","copy"===e.vcodec||null),m(1),P("style","copy"===e.vcodec?"text-decoration: line-through; color: lightgray;":null,M3),m(2),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.maxBitrate),P("disabled",void 0===e.maxBitrate||"copy"===e.vcodec||null),m(8),M("checked",void 0!==e.acodecHK||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.acodecHK),P("disabled",void 0===e.acodecHK||null),m(1),M("ngValue","AAC-eld"),m(2),M("ngValue","OPUS"),m(5),M("checked",void 0!==e.acodec||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.acodec),P("placeholder",e.acodecPlaceholder)("disabled",void 0===e.acodec||null),m(4),M("checked",void 0!==e.acodecOptions||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.acodecOptions),P("placeholder",void 0!==e.acodecOptions?"":e.acodecOptionsPlaceholder)("disabled",void 0===e.acodecOptions||null),m(4),M("checked",void 0!==e.audioSampleRate||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.audioSampleRate),P("disabled",void 0===e.audioSampleRate||null),m(1),M("ngValue",8),m(2),M("ngValue",16),m(2),M("ngValue",24),m(5),M("checked",void 0!==e.audioBitrate||null),m(3),M("icon",e.faQuestionCircle),m(1),M("ngModel",e.audioBitrate),P("disabled",void 0===e.audioBitrate||null)}}let gg2=(()=>{class t extends Y2{constructor(e){super(e),this.faQuestionCircle=Ws,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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"ngb-accordion",null,0)(2,"ngb-panel"),k(3,ug2,3,0,"ng-template",1),k(4,dg2,4,0,"ng-template",2),k(5,pg2,195,100,"ng-template",3),p()())},directives:[jo,w0,Uo,H0,$o,Go,ce,K2,B2,u6,d6,d1,x1,K0,Jg,se,f6],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 mg2(t,n){1&t&&N(0,"hr")}function vg2(t,n){1&t&&N(0,"app-rtsp-streaming",6),2&t&&M("accessory",z(3).accessory)}function _g2(t,n){1&t&&N(0,"hr")}function Mg2(t,n){1&t&&N(0,"app-talkback",6),2&t&&M("accessory",z(3).accessory)}function yg2(t,n){if(1&t&&(h(0,"div"),N(1,"hr")(2,"app-enable-camera",6),k(3,mg2,1,0,"hr",2),k(4,vg2,1,1,"app-rtsp-streaming",7),N(5,"hr")(6,"app-enable-audio",6),k(7,_g2,1,0,"hr",2),k(8,Mg2,1,1,"app-talkback",7),p()),2&t){const e=z(2);m(2),M("accessory",e.accessory),m(1),M("ngIf",e.supportsRTSP),m(1),M("ngIf",e.supportsRTSP),m(2),M("accessory",e.accessory),m(1),M("ngIf",e.supportsTalkback),m(1),M("ngIf",e.supportsTalkback)}}function bg2(t,n){if(1&t&&(h(0,"div",3)(1,"div",4)(2,"b"),_(3,"Camera Settings"),p(),_(4," for "),h(5,"i"),_(6),p()(),h(7,"div",5),N(8,"app-ignore-accessory",6),k(9,yg2,9,6,"div",2),p()()),2&t){const e=z();m(6),a6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),m(2),M("accessory",e.accessory),m(1),M("ngIf",e.isCamera)}}function Lg2(t,n){if(1&t&&(h(0,"div",3)(1,"div",4)(2,"b"),_(3,"HomeKit Behaviour"),p(),_(4," for "),h(5,"i"),_(6),p()(),h(7,"div",5),N(8,"app-camera-buttons",6)(9,"hr")(10,"app-enable-hsv",6)(11,"hr")(12,"app-unbridge-accessory",6),p()()),2&t){const e=z(2);m(6),a6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),m(2),M("accessory",e.accessory),m(2),M("accessory",e.accessory),m(2),M("accessory",e.accessory)}}function Vg2(t,n){1&t&&N(0,"hr")}function Hg2(t,n){1&t&&N(0,"app-immediate-notification-on-ring",6),2&t&&M("accessory",z(3).accessory)}function wg2(t,n){if(1&t&&(h(0,"div"),N(1,"app-force-refreshsnap",6),p()),2&t){const e=z(3);m(1),M("accessory",e.accessory)}}function zg2(t,n){if(1&t&&(h(0,"div",3)(1,"div",4)(2,"b"),_(3,"Snapshot Behaviour"),p(),_(4," for "),h(5,"i"),_(6),p()(),h(7,"div",5),N(8,"app-snapshot-handling-method",6),k(9,Vg2,1,0,"hr",2),k(10,Hg2,1,1,"app-immediate-notification-on-ring",7),N(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),k(15,wg2,2,1,"div",2),p()()),2&t){const e=z(2);m(6),a6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),m(2),M("accessory",e.accessory),m(1),M("ngIf",e.isDoorbell),m(1),M("ngIf",e.isDoorbell),m(2),M("accessory",e.accessory),m(2),M("accessory",e.accessory),m(1),M("ngIf",!e.showEnhancedSnapshotBehaviour)}}function Sg2(t,n){if(1&t&&(h(0,"div",3)(1,"div",4)(2,"b"),_(3,"Experimental Mode - Options"),p(),_(4," for "),h(5,"i"),_(6),p()(),h(7,"div",5),N(8,"app-experimental-rtsp",6),p()()),2&t){const e=z(2);m(6),a6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),m(2),M("accessory",e.accessory)}}function Dg2(t,n){if(1&t&&(h(0,"div"),N(1,"p"),k(2,Lg2,13,5,"div",1),N(3,"p"),k(4,zg2,16,8,"div",1),N(5,"p"),k(6,Sg2,9,3,"div",1),N(7,"p")(8,"app-advanced-videoconfig",6),p()),2&t){const e=z();m(2),M("ngIf",e.accessory),m(2),M("ngIf",e.accessory),m(2),M("ngIf",e.accessory&&e.experimentalMode),m(2),M("accessory",e.accessory)}}let xg2=(()=>{class t extends Y2{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=D6.isDoorbell(this.accessory.type),this.isCamera=D6.isCamera(this.accessory.type),this.supportsRTSP=D6.supportsRTSP(this.accessory.type),this.supportsTalkback=D6.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)(L(A2),L(ve))},t.\u0275cmp=t2({type:t,selectors:[["app-camera-config-options"]],features:[Q],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&&(h(0,"a",0),_(1,"Back to Devices List"),p(),k(2,bg2,10,4,"div",1),k(3,Dg2,9,4,"div",2)),2&e&&(m(2),M("ngIf",i.accessory),m(1),M("ngIf",i.isCamera))},directives:[z4,d1,xw,gu2,vu2,_u2,Vu2,wu2,Bp2,Up2,Jp2,Xp2,eg2,ig2,ag2,fg2,gg2],encapsulation:2}),t})();var A8=(()=>{return(t=A8||(A8={}))[t.UNKNOWN=0]="UNKNOWN",t[t.CAPTCHA=1]="CAPTCHA",t[t.TFA=2]="TFA",t[t.TIMEOUT=3]="TIMEOUT",A8;var t})();const Ng2={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 Tg2=(()=>{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(A2))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Eg2(t,n){1&t&&(U6(),_(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),G6(),N(1,"p"),h(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."),p())}function Ag2(t,n){if(1&t){const e=f1();h(0,"p",10)(1,"ngb-alert",11),x("closed",function(){return I(e),z().resetLoginFailed()}),U6(),h(2,"svg",12),N(3,"use",13),p(),G6(),h(4,"strong"),_(5,"Login was not successful!"),p()()()}2&t&&(m(1),M("dismissible",!0))}function kg2(t,n){if(1&t&&(h(0,"div",31),U6(),h(1,"svg",32),N(2,"use",33),p(),G6(),h(3,"div"),_(4," Please make sure to restart plugin after you're done. "),h(5,"u",34),_(6," Tell me why... "),p()()()),2&t){z(2);const e=X3(6);m(5),M("autoClose","outside")("ngbPopover",e)}}function Ig2(t,n){if(1&t&&(h(0,"option"),_(1),p()),2&t){const e=n.$implicit,i=z(2);P("value",e.short)("selected",i.credentials.country===e.short||null),m(1),S3("",e.long," ")}}function Og2(t,n){1&t&&N(0,"span",35)}function Rg2(t,n){1&t&&(h(0,"span"),_(1,"..."),p())}function Pg2(t,n){if(1&t){const e=f1();h(0,"div"),k(1,kg2,7,2,"div",14),h(2,"div",15)(3,"input",16),x("ngModelChange",function(a){return I(e),z().credentials.username=a}),p(),h(4,"label",17),_(5,"Email address"),p()(),N(6,"p"),h(7,"div",15)(8,"input",18),x("ngModelChange",function(a){return I(e),z().credentials.password=a}),p(),h(9,"label",19),_(10,"Password"),p()(),N(11,"p"),h(12,"div",15)(13,"input",20),x("ngModelChange",function(a){return I(e),z().credentials.deviceName=a}),p(),h(14,"label",21),_(15,"Device Name"),p()(),h(16,"div",22)(17,"div",23)(18,"select",24),x("ngModelChange",function(a){return I(e),z().credentials.country=a}),k(19,Ig2,2,3,"option",25),p(),h(20,"small")(21,"i"),_(22," Make sure to use the same country that you use to login with the eufy app. "),p()()(),N(23,"span",26),h(24,"div",27)(25,"button",28),x("click",function(){return I(e),z().login()}),k(26,Og2,1,0,"span",29),_(27," Login "),k(28,Rg2,2,0,"span",9),p(),h(29,"button",30),x("click",function(){return I(e),z().cancelLogin()}),_(30," Cancel "),p()()()()}if(2&t){const e=z();m(1),M("ngIf",!e.firstLoginAssumed),m(2),M("ngModel",e.credentials.username),P("class",e.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),m(5),M("ngModel",e.credentials.password),P("class",e.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),m(5),M("ngModel",e.credentials.deviceName),P("class",e.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),m(5),M("ngModel",e.credentials.country),P("disabled",!!e.loginInProgress||null),m(1),M("ngForOf",e.countries),m(6),P("disabled",!!e.loginInProgress||null),m(1),M("ngIf",e.loginInProgress),m(2),M("ngIf",e.loginInProgress),m(1),P("disabled",!!e.loginInProgress||null)}}function Fg2(t,n){1&t&&N(0,"span",35)}function Bg2(t,n){1&t&&(h(0,"span"),_(1,"..."),p())}function Ug2(t,n){if(1&t){const e=f1();h(0,"div")(1,"div",36),_(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),p(),h(3,"div",6)(4,"div",37)(5,"input",38),x("ngModelChange",function(a){return I(e),z().otp=a}),p(),h(6,"label",39),_(7,"2FA Code"),p()()(),h(8,"div",40)(9,"div",41)(10,"button",42),x("click",function(){return I(e),z().login()}),k(11,Fg2,1,0,"span",29),_(12," Verify "),k(13,Bg2,2,0,"span",9),p()()(),h(14,"div",6)(15,"div",41)(16,"button",30),x("click",function(){return I(e),z().cancelLogin()}),_(17," Cancel "),p()()()()}if(2&t){const e=z();m(5),M("ngModel",e.otp),P("class",e.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),m(5),P("disabled",!!e.loginInProgress||null),m(1),M("ngIf",e.loginInProgress),m(2),M("ngIf",e.loginInProgress),m(3),P("disabled",!!e.loginInProgress||null)}}function Gg2(t,n){1&t&&N(0,"span",35)}function jg2(t,n){1&t&&(h(0,"span"),_(1,"..."),p())}function $g2(t,n){if(1&t){const e=f1();h(0,"div")(1,"div",36),_(2,"Please enter the captcha below."),p(),h(3,"div",40),N(4,"img",43),p(),h(5,"div",6)(6,"div",37)(7,"input",38),x("ngModelChange",function(a){return I(e),z().captcha=a}),p(),h(8,"label",39),_(9,"Captcha"),p()()(),h(10,"div",40)(11,"div",41)(12,"button",42),x("click",function(){return I(e),z().login()}),k(13,Gg2,1,0,"span",29),_(14," Verify "),k(15,jg2,2,0,"span",9),p()()(),h(16,"div",6)(17,"div",41)(18,"button",30),x("click",function(){return I(e),z().cancelLogin()}),_(19," Cancel "),p()()()()}if(2&t){const e=z();m(4),M("src",e.captchaImageData,t6),m(3),M("ngModel",e.captcha),P("class",e.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!e.loginInProgress||null),m(5),P("disabled",!!e.loginInProgress||null),m(1),M("ngIf",e.loginInProgress),m(2),M("ngIf",e.loginInProgress),m(3),P("disabled",!!e.loginInProgress||null)}}var x3=(()=>{return(t=x3||(x3={}))[t.LOGIN=1]="LOGIN",t[t.TFA=2]="TFA",t[t.CAPTCHA=3]="CAPTCHA",x3;var t})();let Wg2=(()=>{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=x3.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(Ng2).forEach(([e,i])=>{this.countries.push({short:e,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===x3.LOGIN&&this.loginWithCredentials(),this.loginStep===x3.TFA&&this.loginWithTFA(),this.loginStep===x3.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===A8.TFA)return void(this.loginStep=x3.TFA);if(e&&e.failReason&&e.failReason===A8.CAPTCHA&&e.data&&e.data.id&&e.data.captcha)return this.loginStep=x3.CAPTCHA,this.captchaId=e.data.id,void(this.captchaImageData=e.data.captcha);this.loginStep=x3.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let e=!1;return this.loginStep===x3.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,e=!0),this.loginStep===x3.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,e=!0),this.loginStep===x3.TFA&&this.otp.length<6&&(this.otpIsValid=!1,e=!0),this.loginStep===x3.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)(L(Tg2),L(t3))},t.\u0275cmp=t2({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&&(U6(),h(0,"svg",0)(1,"symbol",1),N(2,"path",2),p(),h(3,"symbol",3),N(4,"path",4),p()(),k(5,Eg2,4,0,"ng-template",null,5,e4),G6(),h(7,"div",6),k(8,Ag2,6,1,"p",7),h(9,"div",8),k(10,Pg2,31,17,"div",9),k(11,Ug2,18,7,"div",9),k(12,$g2,20,8,"div",9),p()()),2&e&&(m(8),M("ngIf",i.loginFailed),m(2),M("ngIf",1===i.loginStep),m(1),M("ngIf",2===i.loginStep),m(1),M("ngIf",3===i.loginStep))},directives:[d1,rg,tj,se,K2,B2,Vo,ce,oe,u6,d6],encapsulation:2}),t})(),qg2=(()=>{class t extends Y2{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)(L(A2))},t.\u0275cmp=t2({type:t,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[Q],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&&(h(0,"div",0)(1,"span",1),_(2,"Manual Alarm Trigger Modes"),p(),h(3,"div",2)(4,"span"),_(5,"HomeKit Home"),p(),h(6,"div",3)(7,"input",4),x("change",function(){return i.toggle(0),i.update()}),p()()(),h(8,"div",2)(9,"span"),_(10,"HomeKit Away"),p(),h(11,"div",3)(12,"input",4),x("change",function(){return i.toggle(1),i.update()}),p()()(),h(13,"div",2)(14,"span"),_(15,"HomeKit Night"),p(),h(16,"div",3)(17,"input",4),x("change",function(){return i.toggle(2),i.update()}),p()()(),h(18,"div",2)(19,"span"),_(20,"HomeKit Off/Disarmed"),p(),h(21,"div",3)(22,"input",4),x("change",function(){return i.toggle(3),i.update()}),p()()(),h(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."),N(26,"p"),_(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),N(28,"p"),_(29," Please be aware that this setting can only be set on a per station basis and not per automation."),N(30,"br"),_(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),N(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."),N(34,"br"),_(35," The native alarm delay setting is currently not supported. "),p()()()),2&e&&(m(7),P("checked",-1!==i.value.indexOf(0)||null),m(5),P("checked",-1!==i.value.indexOf(1)||null),m(5),P("checked",-1!==i.value.indexOf(2)||null),m(5),P("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2}),t})();function Kg2(t,n){if(1&t&&(h(0,"div",2)(1,"div",3)(2,"b"),_(3,"Station Settings"),p(),_(4," for "),h(5,"i"),_(6),p()(),h(7,"div",4),N(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),p()()),2&t){const e=z();m(6),a6("",e.accessory.displayName," (",e.accessory.uniqueId,")"),m(2),M("accessory",e.accessory),m(2),M("accessory",e.accessory)}}function Qg2(t,n){if(1&t){const e=f1();h(0,"p",7)(1,"ngb-alert",8),x("closed",function(){return I(e),z().failed=!1}),U6(),h(2,"svg",9),N(3,"use",10),p(),G6(),h(4,"strong"),_(5,"Reset was not successful!"),p()()()}2&t&&(m(1),M("dismissible",!0))}const Zg2=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:Rf2},{path:"advancedConfig",component:du2},{path:"cameraConfig/:uniqueId",component:xg2},{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)(L(A2),L(ve))},t.\u0275cmp=t2({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&&(h(0,"a",0),_(1,"Back to Devices List"),p(),k(2,Kg2,11,4,"div",1)),2&e&&(m(2),M("ngIf",i.accessory))},directives:[z4,d1,xw,qg2],encapsulation:2}),t})()},{path:"login",component:Wg2},{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)(L(t3),L(A2))},t.\u0275cmp=t2({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&&(h(0,"div",0),k(1,Qg2,6,1,"p",1),h(2,"div",2)(3,"h3",3),_(4,"Are you sure that you want to erase everything?"),p(),h(5,"div",4)(6,"button",5),x("click",function(){return i.cancel()}),_(7,"No"),p(),h(8,"button",6),x("click",function(){return i.resetEverything()}),_(9,"Do it!"),p()()()()),2&e&&(m(1),M("ngIf",i.failed),m(5),P("disabled",!!i.disabled||null),m(2),P("disabled",!!i.disabled||null))},directives:[d1,rg],encapsulation:2}),t})()},{path:"**",redirectTo:"/accessories"}];let Jg2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t}),t.\u0275inj=T2({imports:[[i_.forRoot(Zg2,{scrollPositionRestoration:"enabled"})],i_]}),t})(),Xg2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=k2({type:t,bootstrap:[dK]}),t.\u0275inj=T2({providers:[{provide:l6,useClass:Xd}],imports:[[OR,Np,lj,Jg2,iW]]}),t})();(function yI(){Rd=!1})(),kR().bootstrapModule(Xg2).catch(t=>console.error(t))},343:(E6,N3)=>{"use strict";N3.byteLength=function a1(r2){var M2=N2(r2),p1=M2[1];return 3*(M2[0]+p1)/4-p1},N3.toByteArray=function T1(r2){var M2,s3,G2=N2(r2),p1=G2[0],M1=G2[1],Z2=new r3(function A(r2,M2,G2){return 3*(M2+G2)/4-G2}(0,p1,M1)),o3=0,W3=M1>0?p1-4:p1;for(s3=0;s3<W3;s3+=4)M2=K[r2.charCodeAt(s3)]<<18|K[r2.charCodeAt(s3+1)]<<12|K[r2.charCodeAt(s3+2)]<<6|K[r2.charCodeAt(s3+3)],Z2[o3++]=M2>>16&255,Z2[o3++]=M2>>8&255,Z2[o3++]=255&M2;return 2===M1&&(M2=K[r2.charCodeAt(s3)]<<2|K[r2.charCodeAt(s3+1)]>>4,Z2[o3++]=255&M2),1===M1&&(M2=K[r2.charCodeAt(s3)]<<10|K[r2.charCodeAt(s3+1)]<<4|K[r2.charCodeAt(s3+2)]>>2,Z2[o3++]=M2>>8&255,Z2[o3++]=255&M2),Z2},N3.fromByteArray=function R1(r2){for(var M2,G2=r2.length,p1=G2%3,M1=[],o3=0,W3=G2-p1;o3<W3;o3+=16383)M1.push(E1(r2,o3,o3+16383>W3?W3:o3+16383));return 1===p1?M1.push(s1[(M2=r2[G2-1])>>2]+s1[M2<<4&63]+"=="):2===p1&&M1.push(s1[(M2=(r2[G2-2]<<8)+r2[G2-1])>>10]+s1[M2>>4&63]+s1[M2<<2&63]+"="),M1.join("")};for(var s1=[],K=[],r3="undefined"!=typeof Uint8Array?Uint8Array:Array,_1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q2=0,H2=_1.length;Q2<H2;++Q2)s1[Q2]=_1[Q2],K[_1.charCodeAt(Q2)]=Q2;function N2(r2){var M2=r2.length;if(M2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var G2=r2.indexOf("=");return-1===G2&&(G2=M2),[G2,G2===M2?0:4-G2%4]}function r1(r2){return s1[r2>>18&63]+s1[r2>>12&63]+s1[r2>>6&63]+s1[63&r2]}function E1(r2,M2,G2){for(var M1=[],Z2=M2;Z2<G2;Z2+=3)M1.push(r1((r2[Z2]<<16&16711680)+(r2[Z2+1]<<8&65280)+(255&r2[Z2+2])));return M1.join("")}K["-".charCodeAt(0)]=62,K["_".charCodeAt(0)]=63},172:(E6,N3,s1)=>{"use strict";var r3=s1(343),_1=s1(461),Q2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;N3.lW=A,N3.h2=50;var H2=2147483647;function a1(y){if(y>H2)throw new RangeError('The value "'+y+'" is invalid for option "size"');var u=new Uint8Array(y);return Object.setPrototypeOf(u,A.prototype),u}function A(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 R1(y)}return T1(y,u,d)}function T1(y,u,d){if("string"==typeof y)return function r2(y,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!A.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var d=0|W3(y,u),b=a1(d),S=b.write(y,u);return S!==d&&(b=b.slice(0,S)),b}(y,u);if(ArrayBuffer.isView(y))return function G2(y){if(c4(y,Uint8Array)){var u=new Uint8Array(y);return p1(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(c4(y,ArrayBuffer)||y&&c4(y.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(c4(y,SharedArrayBuffer)||y&&c4(y.buffer,SharedArrayBuffer)))return p1(y,u,d);if("number"==typeof y)throw new TypeError('The "value" argument must not be of type number. Received type number');var b=y.valueOf&&y.valueOf();if(null!=b&&b!==y)return A.from(b,u,d);var S=function M1(y){if(A.isBuffer(y)){var u=0|Z2(y.length),d=a1(u);return 0===d.length||y.copy(d,0,0,u),d}return void 0!==y.length?"number"!=typeof y.length||F8(y.length)?a1(0):M2(y):"Buffer"===y.type&&Array.isArray(y.data)?M2(y.data):void 0}(y);if(S)return S;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof y[Symbol.toPrimitive])return A.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 r1(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 R1(y){return r1(y),a1(y<0?0:0|Z2(y))}function M2(y){for(var u=y.length<0?0:0|Z2(y.length),d=a1(u),b=0;b<u;b+=1)d[b]=255&y[b];return d}function p1(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 b;return b=void 0===u&&void 0===d?new Uint8Array(y):void 0===d?new Uint8Array(y,u):new Uint8Array(y,u,d),Object.setPrototypeOf(b,A.prototype),b}function Z2(y){if(y>=H2)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H2.toString(16)+" bytes");return 0|y}function W3(y,u){if(A.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||c4(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,b=arguments.length>2&&!0===arguments[2];if(!b&&0===d)return 0;for(var S=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return qe(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*d;case"hex":return d>>>1;case"base64":return Ui(y).length;default:if(S)return b?-1:qe(y).length;u=(""+u).toLowerCase(),S=!0}}function s3(y,u,d){var b=!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 Pi(this,u,d);case"utf8":case"utf-8":return Oi(this,u,d);case"ascii":return R8(this,u,d);case"latin1":case"binary":return Ri(this,u,d);case"base64":return s4(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fi(this,u,d);default:if(b)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),b=!0}}function o4(y,u,d){var b=y[u];y[u]=y[d],y[d]=b}function O8(y,u,d,b,S){if(0===y.length)return-1;if("string"==typeof d?(b=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),F8(d=+d)&&(d=S?0:y.length-1),d<0&&(d=y.length+d),d>=y.length){if(S)return-1;d=y.length-1}else if(d<0){if(!S)return-1;d=0}if("string"==typeof u&&(u=A.from(u,b)),A.isBuffer(u))return 0===u.length?-1:We(y,u,d,b,S);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?S?Uint8Array.prototype.indexOf.call(y,u,d):Uint8Array.prototype.lastIndexOf.call(y,u,d):We(y,[u],d,b,S);throw new TypeError("val must be string, number or Buffer")}function We(y,u,d,b,S){var J2,F=1,B=y.length,z2=u.length;if(void 0!==b&&("ucs2"===(b=String(b).toLowerCase())||"ucs-2"===b||"utf16le"===b||"utf-16le"===b)){if(y.length<2||u.length<2)return-1;F=2,B/=2,z2/=2,d/=2}function w2(B8,ji){return 1===F?B8[ji]:B8.readUInt16BE(ji*F)}if(S){var Y1=-1;for(J2=d;J2<B;J2++)if(w2(y,J2)===w2(u,-1===Y1?0:J2-Y1)){if(-1===Y1&&(Y1=J2),J2-Y1+1===z2)return Y1*F}else-1!==Y1&&(J2-=J2-Y1),Y1=-1}else for(d+z2>B&&(d=B-z2),J2=d;J2>=0;J2--){for(var l1=!0,Xt=0;Xt<z2;Xt++)if(w2(y,J2+Xt)!==w2(u,Xt)){l1=!1;break}if(l1)return J2}return-1}function A6(y,u,d,b){d=Number(d)||0;var S=y.length-d;b?(b=Number(b))>S&&(b=S):b=S;var F=u.length;b>F/2&&(b=F/2);for(var B=0;B<b;++B){var z2=parseInt(u.substr(2*B,2),16);if(F8(z2))return B;y[d+B]=z2}return B}function ki(y,u,d,b){return Jt(qe(u,y.length-d),y,d,b)}function Kt(y,u,d,b){return Jt(function ic(y){for(var u=[],d=0;d<y.length;++d)u.push(255&y.charCodeAt(d));return u}(u),y,d,b)}function Ii(y,u,d,b){return Jt(Ui(u),y,d,b)}function Yt(y,u,d,b){return Jt(function P8(y,u){for(var d,b,F=[],B=0;B<y.length&&!((u-=2)<0);++B)b=(d=y.charCodeAt(B))>>8,F.push(d%256),F.push(b);return F}(u,y.length-d),y,d,b)}function s4(y,u,d){return r3.fromByteArray(0===u&&d===y.length?y:y.slice(u,d))}function Oi(y,u,d){d=Math.min(y.length,d);for(var b=[],S=u;S<d;){var w2,J2,Y1,l1,F=y[S],B=null,z2=F>239?4:F>223?3:F>191?2:1;if(S+z2<=d)switch(z2){case 1:F<128&&(B=F);break;case 2:128==(192&(w2=y[S+1]))&&(l1=(31&F)<<6|63&w2)>127&&(B=l1);break;case 3:J2=y[S+2],128==(192&(w2=y[S+1]))&&128==(192&J2)&&(l1=(15&F)<<12|(63&w2)<<6|63&J2)>2047&&(l1<55296||l1>57343)&&(B=l1);break;case 4:J2=y[S+2],Y1=y[S+3],128==(192&(w2=y[S+1]))&&128==(192&J2)&&128==(192&Y1)&&(l1=(15&F)<<18|(63&w2)<<12|(63&J2)<<6|63&Y1)>65535&&l1<1114112&&(B=l1)}null===B?(B=65533,z2=1):B>65535&&(b.push((B-=65536)>>>10&1023|55296),B=56320|1023&B),b.push(B),S+=z2}return function I2(y){var u=y.length;if(u<=4096)return String.fromCharCode.apply(String,y);for(var d="",b=0;b<u;)d+=String.fromCharCode.apply(String,y.slice(b,b+=4096));return d}(b)}function R8(y,u,d){var b="";d=Math.min(y.length,d);for(var S=u;S<d;++S)b+=String.fromCharCode(127&y[S]);return b}function Ri(y,u,d){var b="";d=Math.min(y.length,d);for(var S=u;S<d;++S)b+=String.fromCharCode(y[S]);return b}function Pi(y,u,d){var b=y.length;(!u||u<0)&&(u=0),(!d||d<0||d>b)&&(d=b);for(var S="",F=u;F<d;++F)S+=Gi[y[F]];return S}function Fi(y,u,d){for(var b=y.slice(u,d),S="",F=0;F<b.length-1;F+=2)S+=String.fromCharCode(b[F]+256*b[F+1]);return S}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,b,S,F){if(!A.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>S||u<F)throw new RangeError('"value" argument is out of bounds');if(d+b>y.length)throw new RangeError("Index out of range")}function Zt(y,u,d,b,S,F){if(d+b>y.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function c1(y,u,d,b,S){return u=+u,d>>>=0,S||Zt(y,0,d,4),_1.write(y,u,d,b,23,4),d+4}function P2(y,u,d,b,S){return u=+u,d>>>=0,S||Zt(y,0,d,8),_1.write(y,u,d,b,52,8),d+8}!(A.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(A.prototype,"parent",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.buffer}}),Object.defineProperty(A.prototype,"offset",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.byteOffset}}),A.poolSize=8192,A.from=function(y,u,d){return T1(y,u,d)},Object.setPrototypeOf(A.prototype,Uint8Array.prototype),Object.setPrototypeOf(A,Uint8Array),A.alloc=function(y,u,d){return function E1(y,u,d){return r1(y),y<=0?a1(y):void 0!==u?"string"==typeof d?a1(y).fill(u,d):a1(y).fill(u):a1(y)}(y,u,d)},A.allocUnsafe=function(y){return R1(y)},A.allocUnsafeSlow=function(y){return R1(y)},A.isBuffer=function(u){return null!=u&&!0===u._isBuffer&&u!==A.prototype},A.compare=function(u,d){if(c4(u,Uint8Array)&&(u=A.from(u,u.offset,u.byteLength)),c4(d,Uint8Array)&&(d=A.from(d,d.offset,d.byteLength)),!A.isBuffer(u)||!A.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===d)return 0;for(var b=u.length,S=d.length,F=0,B=Math.min(b,S);F<B;++F)if(u[F]!==d[F]){b=u[F],S=d[F];break}return b<S?-1:S<b?1:0},A.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}},A.concat=function(u,d){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(0===u.length)return A.alloc(0);var b;if(void 0===d)for(d=0,b=0;b<u.length;++b)d+=u[b].length;var S=A.allocUnsafe(d),F=0;for(b=0;b<u.length;++b){var B=u[b];if(c4(B,Uint8Array))F+B.length>S.length?A.from(B).copy(S,F):Uint8Array.prototype.set.call(S,B,F);else{if(!A.isBuffer(B))throw new TypeError('"list" argument must be an Array of Buffers');B.copy(S,F)}F+=B.length}return S},A.byteLength=W3,A.prototype._isBuffer=!0,A.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)o4(this,d,d+1);return this},A.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)o4(this,d,d+3),o4(this,d+1,d+2);return this},A.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)o4(this,d,d+7),o4(this,d+1,d+6),o4(this,d+2,d+5),o4(this,d+3,d+4);return this},A.prototype.toLocaleString=A.prototype.toString=function(){var u=this.length;return 0===u?"":0===arguments.length?Oi(this,0,u):s3.apply(this,arguments)},A.prototype.equals=function(u){if(!A.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u||0===A.compare(this,u)},A.prototype.inspect=function(){var u="",d=N3.h2;return u=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(u+=" ... "),"<Buffer "+u+">"},Q2&&(A.prototype[Q2]=A.prototype.inspect),A.prototype.compare=function(u,d,b,S,F){if(c4(u,Uint8Array)&&(u=A.from(u,u.offset,u.byteLength)),!A.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===b&&(b=u?u.length:0),void 0===S&&(S=0),void 0===F&&(F=this.length),d<0||b>u.length||S<0||F>this.length)throw new RangeError("out of range index");if(S>=F&&d>=b)return 0;if(S>=F)return-1;if(d>=b)return 1;if(this===u)return 0;for(var B=(F>>>=0)-(S>>>=0),z2=(b>>>=0)-(d>>>=0),w2=Math.min(B,z2),J2=this.slice(S,F),Y1=u.slice(d,b),l1=0;l1<w2;++l1)if(J2[l1]!==Y1[l1]){B=J2[l1],z2=Y1[l1];break}return B<z2?-1:z2<B?1:0},A.prototype.includes=function(u,d,b){return-1!==this.indexOf(u,d,b)},A.prototype.indexOf=function(u,d,b){return O8(this,u,d,b,!0)},A.prototype.lastIndexOf=function(u,d,b){return O8(this,u,d,b,!1)},A.prototype.write=function(u,d,b,S){if(void 0===d)S="utf8",b=this.length,d=0;else if(void 0===b&&"string"==typeof d)S=d,b=this.length,d=0;else{if(!isFinite(d))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");d>>>=0,isFinite(b)?(b>>>=0,void 0===S&&(S="utf8")):(S=b,b=void 0)}var F=this.length-d;if((void 0===b||b>F)&&(b=F),u.length>0&&(b<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");S||(S="utf8");for(var B=!1;;)switch(S){case"hex":return A6(this,u,d,b);case"utf8":case"utf-8":return ki(this,u,d,b);case"ascii":case"latin1":case"binary":return Kt(this,u,d,b);case"base64":return Ii(this,u,d,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Yt(this,u,d,b);default:if(B)throw new TypeError("Unknown encoding: "+S);S=(""+S).toLowerCase(),B=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},A.prototype.slice=function(u,d){var b=this.length;(u=~~u)<0?(u+=b)<0&&(u=0):u>b&&(u=b),(d=void 0===d?b:~~d)<0?(d+=b)<0&&(d=0):d>b&&(d=b),d<u&&(d=u);var S=this.subarray(u,d);return Object.setPrototypeOf(S,A.prototype),S},A.prototype.readUintLE=A.prototype.readUIntLE=function(u,d,b){u>>>=0,d>>>=0,b||d2(u,d,this.length);for(var S=this[u],F=1,B=0;++B<d&&(F*=256);)S+=this[u+B]*F;return S},A.prototype.readUintBE=A.prototype.readUIntBE=function(u,d,b){u>>>=0,d>>>=0,b||d2(u,d,this.length);for(var S=this[u+--d],F=1;d>0&&(F*=256);)S+=this[u+--d]*F;return S},A.prototype.readUint8=A.prototype.readUInt8=function(u,d){return u>>>=0,d||d2(u,1,this.length),this[u]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(u,d){return u>>>=0,d||d2(u,2,this.length),this[u]|this[u+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(u,d){return u>>>=0,d||d2(u,2,this.length),this[u]<<8|this[u+1]},A.prototype.readUint32LE=A.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]},A.prototype.readUint32BE=A.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])},A.prototype.readIntLE=function(u,d,b){u>>>=0,d>>>=0,b||d2(u,d,this.length);for(var S=this[u],F=1,B=0;++B<d&&(F*=256);)S+=this[u+B]*F;return S>=(F*=128)&&(S-=Math.pow(2,8*d)),S},A.prototype.readIntBE=function(u,d,b){u>>>=0,d>>>=0,b||d2(u,d,this.length);for(var S=d,F=1,B=this[u+--S];S>0&&(F*=256);)B+=this[u+--S]*F;return B>=(F*=128)&&(B-=Math.pow(2,8*d)),B},A.prototype.readInt8=function(u,d){return u>>>=0,d||d2(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},A.prototype.readInt16LE=function(u,d){u>>>=0,d||d2(u,2,this.length);var b=this[u]|this[u+1]<<8;return 32768&b?4294901760|b:b},A.prototype.readInt16BE=function(u,d){u>>>=0,d||d2(u,2,this.length);var b=this[u+1]|this[u]<<8;return 32768&b?4294901760|b:b},A.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},A.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]},A.prototype.readFloatLE=function(u,d){return u>>>=0,d||d2(u,4,this.length),_1.read(this,u,!0,23,4)},A.prototype.readFloatBE=function(u,d){return u>>>=0,d||d2(u,4,this.length),_1.read(this,u,!1,23,4)},A.prototype.readDoubleLE=function(u,d){return u>>>=0,d||d2(u,8,this.length),_1.read(this,u,!0,52,8)},A.prototype.readDoubleBE=function(u,d){return u>>>=0,d||d2(u,8,this.length),_1.read(this,u,!1,52,8)},A.prototype.writeUintLE=A.prototype.writeUIntLE=function(u,d,b,S){u=+u,d>>>=0,b>>>=0,S||K1(this,u,d,b,Math.pow(2,8*b)-1,0);var B=1,z2=0;for(this[d]=255&u;++z2<b&&(B*=256);)this[d+z2]=u/B&255;return d+b},A.prototype.writeUintBE=A.prototype.writeUIntBE=function(u,d,b,S){u=+u,d>>>=0,b>>>=0,S||K1(this,u,d,b,Math.pow(2,8*b)-1,0);var B=b-1,z2=1;for(this[d+B]=255&u;--B>=0&&(z2*=256);)this[d+B]=u/z2&255;return d+b},A.prototype.writeUint8=A.prototype.writeUInt8=function(u,d,b){return u=+u,d>>>=0,b||K1(this,u,d,1,255,0),this[d]=255&u,d+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(u,d,b){return u=+u,d>>>=0,b||K1(this,u,d,2,65535,0),this[d]=255&u,this[d+1]=u>>>8,d+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(u,d,b){return u=+u,d>>>=0,b||K1(this,u,d,2,65535,0),this[d]=u>>>8,this[d+1]=255&u,d+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(u,d,b){return u=+u,d>>>=0,b||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},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(u,d,b){return u=+u,d>>>=0,b||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},A.prototype.writeIntLE=function(u,d,b,S){if(u=+u,d>>>=0,!S){var F=Math.pow(2,8*b-1);K1(this,u,d,b,F-1,-F)}var B=0,z2=1,w2=0;for(this[d]=255&u;++B<b&&(z2*=256);)u<0&&0===w2&&0!==this[d+B-1]&&(w2=1),this[d+B]=(u/z2>>0)-w2&255;return d+b},A.prototype.writeIntBE=function(u,d,b,S){if(u=+u,d>>>=0,!S){var F=Math.pow(2,8*b-1);K1(this,u,d,b,F-1,-F)}var B=b-1,z2=1,w2=0;for(this[d+B]=255&u;--B>=0&&(z2*=256);)u<0&&0===w2&&0!==this[d+B+1]&&(w2=1),this[d+B]=(u/z2>>0)-w2&255;return d+b},A.prototype.writeInt8=function(u,d,b){return u=+u,d>>>=0,b||K1(this,u,d,1,127,-128),u<0&&(u=255+u+1),this[d]=255&u,d+1},A.prototype.writeInt16LE=function(u,d,b){return u=+u,d>>>=0,b||K1(this,u,d,2,32767,-32768),this[d]=255&u,this[d+1]=u>>>8,d+2},A.prototype.writeInt16BE=function(u,d,b){return u=+u,d>>>=0,b||K1(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=255&u,d+2},A.prototype.writeInt32LE=function(u,d,b){return u=+u,d>>>=0,b||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},A.prototype.writeInt32BE=function(u,d,b){return u=+u,d>>>=0,b||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},A.prototype.writeFloatLE=function(u,d,b){return c1(this,u,d,!0,b)},A.prototype.writeFloatBE=function(u,d,b){return c1(this,u,d,!1,b)},A.prototype.writeDoubleLE=function(u,d,b){return P2(this,u,d,!0,b)},A.prototype.writeDoubleBE=function(u,d,b){return P2(this,u,d,!1,b)},A.prototype.copy=function(u,d,b,S){if(!A.isBuffer(u))throw new TypeError("argument should be a Buffer");if(b||(b=0),!S&&0!==S&&(S=this.length),d>=u.length&&(d=u.length),d||(d=0),S>0&&S<b&&(S=b),S===b||0===u.length||0===this.length)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("sourceEnd out of bounds");S>this.length&&(S=this.length),u.length-d<S-b&&(S=u.length-d+b);var F=S-b;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(d,b,S):Uint8Array.prototype.set.call(u,this.subarray(b,S),d),F},A.prototype.fill=function(u,d,b,S){if("string"==typeof u){if("string"==typeof d?(S=d,d=0,b=this.length):"string"==typeof b&&(S=b,b=this.length),void 0!==S&&"string"!=typeof S)throw new TypeError("encoding must be a string");if("string"==typeof S&&!A.isEncoding(S))throw new TypeError("Unknown encoding: "+S);if(1===u.length){var F=u.charCodeAt(0);("utf8"===S&&F<128||"latin1"===S)&&(u=F)}}else"number"==typeof u?u&=255:"boolean"==typeof u&&(u=Number(u));if(d<0||this.length<d||this.length<b)throw new RangeError("Out of range index");if(b<=d)return this;var B;if(d>>>=0,b=void 0===b?this.length:b>>>0,u||(u=0),"number"==typeof u)for(B=d;B<b;++B)this[B]=u;else{var z2=A.isBuffer(u)?u:A.from(u,S),w2=z2.length;if(0===w2)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(B=0;B<b-d;++B)this[B+d]=z2[B%w2]}return this};var Bi=/[^+/0-9A-Za-z-_]/g;function qe(y,u){u=u||1/0;for(var d,b=y.length,S=null,F=[],B=0;B<b;++B){if((d=y.charCodeAt(B))>55295&&d<57344){if(!S){if(d>56319){(u-=3)>-1&&F.push(239,191,189);continue}if(B+1===b){(u-=3)>-1&&F.push(239,191,189);continue}S=d;continue}if(d<56320){(u-=3)>-1&&F.push(239,191,189),S=d;continue}d=65536+(S-55296<<10|d-56320)}else S&&(u-=3)>-1&&F.push(239,191,189);if(S=null,d<128){if((u-=1)<0)break;F.push(d)}else if(d<2048){if((u-=2)<0)break;F.push(d>>6|192,63&d|128)}else if(d<65536){if((u-=3)<0)break;F.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;F.push(d>>18|240,d>>12&63|128,d>>6&63|128,63&d|128)}}return F}function Ui(y){return r3.toByteArray(function v2(y){if((y=(y=y.split("=")[0]).trim().replace(Bi,"")).length<2)return"";for(;y.length%4!=0;)y+="=";return y}(y))}function Jt(y,u,d,b){for(var S=0;S<b&&!(S+d>=u.length||S>=y.length);++S)u[S+d]=y[S];return S}function c4(y,u){return y instanceof u||null!=y&&null!=y.constructor&&null!=y.constructor.name&&y.constructor.name===u.name}function F8(y){return y!=y}var Gi=function(){for(var y="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var b=16*d,S=0;S<16;++S)u[b+S]=y[d]+y[S];return u}()},461:(E6,N3)=>{N3.read=function(s1,K,r3,_1,Q2){var H2,N2,a1=8*Q2-_1-1,A=(1<<a1)-1,T1=A>>1,r1=-7,E1=r3?Q2-1:0,R1=r3?-1:1,r2=s1[K+E1];for(E1+=R1,H2=r2&(1<<-r1)-1,r2>>=-r1,r1+=a1;r1>0;H2=256*H2+s1[K+E1],E1+=R1,r1-=8);for(N2=H2&(1<<-r1)-1,H2>>=-r1,r1+=_1;r1>0;N2=256*N2+s1[K+E1],E1+=R1,r1-=8);if(0===H2)H2=1-T1;else{if(H2===A)return N2?NaN:1/0*(r2?-1:1);N2+=Math.pow(2,_1),H2-=T1}return(r2?-1:1)*N2*Math.pow(2,H2-_1)},N3.write=function(s1,K,r3,_1,Q2,H2){var N2,a1,A,T1=8*H2-Q2-1,r1=(1<<T1)-1,E1=r1>>1,R1=23===Q2?Math.pow(2,-24)-Math.pow(2,-77):0,r2=_1?0:H2-1,M2=_1?1:-1,G2=K<0||0===K&&1/K<0?1:0;for(K=Math.abs(K),isNaN(K)||K===1/0?(a1=isNaN(K)?1:0,N2=r1):(N2=Math.floor(Math.log(K)/Math.LN2),K*(A=Math.pow(2,-N2))<1&&(N2--,A*=2),(K+=N2+E1>=1?R1/A:R1*Math.pow(2,1-E1))*A>=2&&(N2++,A/=2),N2+E1>=r1?(a1=0,N2=r1):N2+E1>=1?(a1=(K*A-1)*Math.pow(2,Q2),N2+=E1):(a1=K*Math.pow(2,E1-1)*Math.pow(2,Q2),N2=0));Q2>=8;s1[r3+r2]=255&a1,r2+=M2,a1/=256,Q2-=8);for(N2=N2<<Q2|a1,T1+=Q2;T1>0;s1[r3+r2]=255&N2,r2+=M2,N2/=256,T1-=8);s1[r3+r2-M2]|=128*G2}}},E6=>{E6(E6.s=618)}]);
|