homebridge-eufy-security 2.3.2 → 2.3.3

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/accessories/BaseAccessory.d.ts +17 -0
  3. package/dist/accessories/BaseAccessory.d.ts.map +1 -1
  4. package/dist/accessories/BaseAccessory.js +23 -0
  5. package/dist/accessories/BaseAccessory.js.map +1 -1
  6. package/dist/accessories/CameraAccessory.d.ts +8 -0
  7. package/dist/accessories/CameraAccessory.d.ts.map +1 -1
  8. package/dist/accessories/CameraAccessory.js +39 -45
  9. package/dist/accessories/CameraAccessory.js.map +1 -1
  10. package/dist/accessories/EntrySensorAccessory.d.ts +15 -3
  11. package/dist/accessories/EntrySensorAccessory.d.ts.map +1 -1
  12. package/dist/accessories/EntrySensorAccessory.js +22 -3
  13. package/dist/accessories/EntrySensorAccessory.js.map +1 -1
  14. package/dist/accessories/LockAccessory.d.ts +33 -4
  15. package/dist/accessories/LockAccessory.d.ts.map +1 -1
  16. package/dist/accessories/LockAccessory.js +116 -99
  17. package/dist/accessories/LockAccessory.js.map +1 -1
  18. package/dist/accessories/MotionSensorAccessory.d.ts +15 -3
  19. package/dist/accessories/MotionSensorAccessory.d.ts.map +1 -1
  20. package/dist/accessories/MotionSensorAccessory.js +22 -3
  21. package/dist/accessories/MotionSensorAccessory.js.map +1 -1
  22. package/dist/accessories/StationAccessory.js +5 -5
  23. package/dist/accessories/StationAccessory.js.map +1 -1
  24. package/dist/config.d.ts +17 -0
  25. package/dist/config.d.ts.map +1 -1
  26. package/dist/config.js +18 -0
  27. package/dist/config.js.map +1 -1
  28. package/dist/controller/LocalLivestreamManager.d.ts +2 -0
  29. package/dist/controller/LocalLivestreamManager.d.ts.map +1 -1
  30. package/dist/controller/LocalLivestreamManager.js +59 -46
  31. package/dist/controller/LocalLivestreamManager.js.map +1 -1
  32. package/dist/controller/streamingDelegate.d.ts.map +1 -1
  33. package/dist/controller/streamingDelegate.js.map +1 -1
  34. package/dist/interfaces.d.ts +5 -2
  35. package/dist/interfaces.d.ts.map +1 -1
  36. package/dist/platform.d.ts +9 -2
  37. package/dist/platform.d.ts.map +1 -1
  38. package/dist/platform.js +192 -245
  39. package/dist/platform.js.map +1 -1
  40. package/dist/utils/Talkback.js +2 -2
  41. package/dist/utils/Talkback.js.map +1 -1
  42. package/dist/utils/configTypes.d.ts +18 -0
  43. package/dist/utils/configTypes.d.ts.map +1 -1
  44. package/dist/utils/configTypes.js +19 -0
  45. package/dist/utils/configTypes.js.map +1 -1
  46. package/homebridge-ui/public/index.html +1 -1
  47. package/homebridge-ui/public/main.c0ae6628b221d36c.js +1 -0
  48. package/package.json +1 -1
  49. package/homebridge-ui/public/main.c40b1db5eceb9425.js +0 -1
@@ -0,0 +1 @@
1
+ (self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{378:(J4,q2,u1)=>{"use strict";function Q(e){return"function"==typeof e}function d2(e){const r=e(n=>{Error.call(n),n.stack=(new Error).stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}const S1=d2(e=>function(r){e(this),this.message=r?`${r.length} errors occurred during unsubscription:\n${r.map((n,i)=>`${i+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=r});function Je(e,t){if(e){const r=e.indexOf(t);0<=r&&e.splice(r,1)}}class Se{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(const a of r)a.remove(this);else r.remove(this);const{initialTeardown:n}=this;if(Q(n))try{n()}catch(a){t=a instanceof S1?a.errors:[a]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const a of i)try{E(a)}catch(s){t=t??[],s instanceof S1?t=[...t,...s.errors]:t.push(s)}}if(t)throw new S1(t)}}add(t){var r;if(t&&t!==this)if(this.closed)E(t);else{if(t instanceof Se){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}}_hasParent(t){const{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){const{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){const{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&Je(r,t)}remove(t){const{_finalizers:r}=this;r&&Je(r,t),t instanceof Se&&t._removeParent(this)}}Se.EMPTY=(()=>{const e=new Se;return e.closed=!0,e})();const Ee=Se.EMPTY;function a1(e){return e instanceof Se||e&&"closed"in e&&Q(e.remove)&&Q(e.add)&&Q(e.unsubscribe)}function E(e){Q(e)?e():e.unsubscribe()}const k1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},s1={setTimeout(e,t,...r){const{delegate:n}=s1;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){const{delegate:t}=s1;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function P1(e){s1.setTimeout(()=>{const{onUnhandledError:t}=k1;if(!t)throw e;t(e)})}function Z1(){}const le=C1("C",void 0,void 0);function C1(e,t,r){return{kind:e,value:t,error:r}}let D1=null;function Xe(e){if(k1.useDeprecatedSynchronousErrorHandling){const t=!D1;if(t&&(D1={errorThrown:!1,error:null}),e(),t){const{errorThrown:r,error:n}=D1;if(D1=null,r)throw n}}else e()}class ct extends Se{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,a1(t)&&t.add(this)):this.destination=b6}static create(t,r,n){return new Tn(t,r,n)}next(t){this.isStopped?Dr(function Ye(e){return C1("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Dr(function be(e){return C1("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Dr(le,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const p2=Function.prototype.bind;function bt(e,t){return p2.call(e,t)}class Ba{constructor(t){this.partialObserver=t}next(t){const{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){X4(n)}}error(t){const{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){X4(n)}else X4(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){X4(r)}}}class Tn extends ct{constructor(t,r,n){let i;if(super(),Q(t)||!t)i={next:t??void 0,error:r??void 0,complete:n??void 0};else{let a;this&&k1.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&bt(t.next,a),error:t.error&&bt(t.error,a),complete:t.complete&&bt(t.complete,a)}):i=t}this.destination=new Ba(i)}}function X4(e){k1.useDeprecatedSynchronousErrorHandling?function h2(e){k1.useDeprecatedSynchronousErrorHandling&&D1&&(D1.errorThrown=!0,D1.error=e)}(e):P1(e)}function Dr(e,t){const{onStoppedNotification:r}=k1;r&&s1.setTimeout(()=>r(e,t))}const b6={closed:!0,next:Z1,error:function y6(e){throw e},complete:Z1},Lr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ht(e){return e}function xr(e){return 0===e.length?Ht:1===e.length?e[0]:function(r){return e.reduce((n,i)=>i(n),r)}}let We=(()=>{class e{constructor(r){r&&(this._subscribe=r)}lift(r){const n=new e;return n.source=this,n.operator=r,n}subscribe(r,n,i){const a=function w6(e){return e&&e instanceof ct||function H6(e){return e&&Q(e.next)&&Q(e.error)&&Q(e.complete)}(e)&&a1(e)}(r)?r:new Tn(r,n,i);return Xe(()=>{const{operator:s,source:c}=this;a.add(s?s.call(a,c):c?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return new(n=ja(n))((i,a)=>{const s=new Tn({next:c=>{try{r(c)}catch(o){a(o),s.unsubscribe()}},error:a,complete:i});this.subscribe(s)})}_subscribe(r){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(r)}[Lr](){return this}pipe(...r){return xr(r)(this)}toPromise(r){return new(r=ja(r))((n,i)=>{let a;this.subscribe(s=>a=s,s=>i(s),()=>n(a))})}}return e.create=t=>new e(t),e})();function ja(e){var t;return null!==(t=e??k1.Promise)&&void 0!==t?t:Promise}const V6=d2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ue=(()=>{class e extends We{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){const n=new r2(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new V6}next(r){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(r)}})}error(r){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;const{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return(null===(r=this.observers)||void 0===r?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){const{hasError:n,isStopped:i,observers:a}=this;return n||i?Ee:(this.currentObservers=null,a.push(r),new Se(()=>{this.currentObservers=null,Je(a,r)}))}_checkFinalizedStatuses(r){const{hasError:n,thrownError:i,isStopped:a}=this;n?r.error(i):a&&r.complete()}asObservable(){const r=new We;return r.source=this,r}}return e.create=(t,r)=>new r2(t,r),e})();class r2 extends ue{constructor(t,r){super(),this.destination=t,this.source=r}next(t){var r,n;null===(n=null===(r=this.destination)||void 0===r?void 0:r.next)||void 0===n||n.call(r,t)}error(t){var r,n;null===(n=null===(r=this.destination)||void 0===r?void 0:r.error)||void 0===n||n.call(r,t)}complete(){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===r||r.call(t)}_subscribe(t){var r,n;return null!==(n=null===(r=this.source)||void 0===r?void 0:r.subscribe(t))&&void 0!==n?n:Ee}}function Nr(e){return Q(e?.lift)}function d1(e){return t=>{if(Nr(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function qe(e,t,r,n,i){return new Ga(e,t,r,n,i)}class Ga extends ct{constructor(t,r,n,i,a,s){super(t),this.onFinalize=a,this.shouldUnsubscribe=s,this._next=r?function(c){try{r(c)}catch(o){t.error(o)}}:super._next,this._error=i?function(c){try{i(c)}catch(o){t.error(o)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:r}=this;super.unsubscribe(),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function we(e,t){return d1((r,n)=>{let i=0;r.subscribe(qe(n,a=>{n.next(e.call(t,a,i++))}))})}function u(e){return this instanceof u?(this.v=e,this):new u(e)}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function c4(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(s){return new Promise(function(c,o){!function i(a,s,c,o){Promise.resolve(o).then(function(l){a({value:l,done:c})},s)}(c,o,(s=e[a](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const L6=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function fu(e){return Q(e?.then)}function uu(e){return Q(e[Lr])}function du(e){return Symbol.asyncIterator&&Q(e?.[Symbol.asyncIterator])}function hu(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const pu=function aA(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function mu(e){return Q(e?.[pu])}function gu(e){return function h(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(e,t||[]),a=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(m){n[m]&&(i[m]=function(g){return new Promise(function(w,z){a.push([m,g,w,z])>1||c(m,g)})})}function c(m,g){try{!function o(m){m.value instanceof u?Promise.resolve(m.value.v).then(l,f):d(a[0][2],m)}(n[m](g))}catch(w){d(a[0][3],w)}}function l(m){c("next",m)}function f(m){c("throw",m)}function d(m,g){m(g),a.shift(),a.length&&c(a[0][0],a[0][1])}}(this,arguments,function*(){const r=e.getReader();try{for(;;){const{value:n,done:i}=yield u(r.read());if(i)return yield u(void 0);yield yield u(n)}}finally{r.releaseLock()}})}function vu(e){return Q(e?.getReader)}function j1(e){if(e instanceof We)return e;if(null!=e){if(uu(e))return function sA(e){return new We(t=>{const r=e[Lr]();if(Q(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(L6(e))return function cA(e){return new We(t=>{for(let r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}(e);if(fu(e))return function oA(e){return new We(t=>{e.then(r=>{t.closed||(t.next(r),t.complete())},r=>t.error(r)).then(null,P1)})}(e);if(du(e))return _u(e);if(mu(e))return function lA(e){return new We(t=>{for(const r of e)if(t.next(r),t.closed)return;t.complete()})}(e);if(vu(e))return function fA(e){return _u(gu(e))}(e)}throw hu(e)}function _u(e){return new We(t=>{(function uA(e,t){var r,n,i,a;return function qa(e,t,r,n){return new(r||(r=Promise))(function(a,s){function c(f){try{l(n.next(f))}catch(d){s(d)}}function o(f){try{l(n.throw(f))}catch(d){s(d)}}function l(f){f.done?a(f.value):function i(a){return a instanceof r?a:new r(function(s){s(a)})}(f.value).then(c,o)}l((n=n.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(r=S(e);!(n=yield r.next()).done;)if(t.next(n.value),t.closed)return}catch(s){i={error:s}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(r=>t.error(r))})}function ln(e,t,r,n=0,i=!1){const a=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}function F1(e,t,r=1/0){return Q(t)?F1((n,i)=>we((a,s)=>t(n,a,i,s))(j1(e(n,i))),r):("number"==typeof t&&(r=t),d1((n,i)=>function dA(e,t,r,n,i,a,s,c){const o=[];let l=0,f=0,d=!1;const m=()=>{d&&!o.length&&!l&&t.complete()},g=z=>l<n?w(z):o.push(z),w=z=>{a&&t.next(z),l++;let L=!1;j1(r(z,f++)).subscribe(qe(t,T=>{i?.(T),a?g(T):t.next(T)},()=>{L=!0},void 0,()=>{if(L)try{for(l--;o.length&&l<n;){const T=o.shift();s?ln(t,s,()=>w(T)):w(T)}m()}catch(T){t.error(T)}}))};return e.subscribe(qe(t,g,()=>{d=!0,m()})),()=>{c?.()}}(n,i,e,r)))}function n3(e=1/0){return F1(Ht,e)}const lt=new We(e=>e.complete());function Cu(e){return e&&Q(e.schedule)}function x6(e){return e[e.length-1]}function Za(e){return Q(x6(e))?e.pop():void 0}function Er(e){return Cu(x6(e))?e.pop():void 0}function Mu(e,t=0){return d1((r,n)=>{r.subscribe(qe(n,i=>ln(n,e,()=>n.next(i),t),()=>ln(n,e,()=>n.complete(),t),i=>ln(n,e,()=>n.error(i),t)))})}function yu(e,t=0){return d1((r,n)=>{n.add(e.schedule(()=>r.subscribe(n),t))})}function bu(e,t){if(!e)throw new Error("Iterable cannot be null");return new We(r=>{ln(r,t,()=>{const n=e[Symbol.asyncIterator]();ln(r,t,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Q1(e,t){return t?function MA(e,t){if(null!=e){if(uu(e))return function mA(e,t){return j1(e).pipe(yu(t),Mu(t))}(e,t);if(L6(e))return function vA(e,t){return new We(r=>{let n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}(e,t);if(fu(e))return function gA(e,t){return j1(e).pipe(yu(t),Mu(t))}(e,t);if(du(e))return bu(e,t);if(mu(e))return function _A(e,t){return new We(r=>{let n;return ln(r,t,()=>{n=e[pu](),ln(r,t,()=>{let i,a;try{({value:i,done:a}=n.next())}catch(s){return void r.error(s)}a?r.complete():r.next(i)},0,!0)}),()=>Q(n?.return)&&n.return()})}(e,t);if(vu(e))return function CA(e,t){return bu(gu(e),t)}(e,t)}throw hu(e)}(e,t):j1(e)}function N6(...e){const t=Er(e),r=function pA(e,t){return"number"==typeof x6(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?j1(n[0]):n3(r)(Q1(n,t)):lt}class ft extends ue{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const r=super._subscribe(t);return!r.closed&&t.next(this._value),r}getValue(){const{hasError:t,thrownError:r,_value:n}=this;if(t)throw r;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}function ae(...e){return Q1(e,Er(e))}function A6(e={}){const{connector:t=(()=>new ue),resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=e;return a=>{let s,c,o,l=0,f=!1,d=!1;const m=()=>{c?.unsubscribe(),c=void 0},g=()=>{m(),s=o=void 0,f=d=!1},w=()=>{const z=s;g(),z?.unsubscribe()};return d1((z,L)=>{l++,!d&&!f&&m();const T=o=o??t();L.add(()=>{l--,0===l&&!d&&!f&&(c=E6(w,i))}),T.subscribe(L),!s&&l>0&&(s=new Tn({next:D=>T.next(D),error:D=>{d=!0,m(),c=E6(g,r,D),T.error(D)},complete:()=>{f=!0,m(),c=E6(g,n),T.complete()}}),j1(z).subscribe(s))})(a)}}function E6(e,t,...r){if(!0===t)return void e();if(!1===t)return;const n=new Tn({next:()=>{n.unsubscribe(),e()}});return j1(t(...r)).subscribe(n)}function wt(e,t){return d1((r,n)=>{let i=null,a=0,s=!1;const c=()=>s&&!i&&n.complete();r.subscribe(qe(n,o=>{i?.unsubscribe();let l=0;const f=a++;j1(e(o,f)).subscribe(i=qe(n,d=>n.next(t?t(o,d,f,l++):d),()=>{i=null,c()}))},()=>{s=!0,c()}))})}function yA(e,t){return e===t}function Ue(e){for(let t in e)if(e[t]===Ue)return t;throw Error("Could not find renamed property on target object.")}function Qa(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function G1(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(G1).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function T6(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const bA=Ue({__forward_ref__:Ue});function me(e){return e.__forward_ref__=me,e.toString=function(){return G1(this())},e}function fe(e){return I6(e)?e():e}function I6(e){return"function"==typeof e&&e.hasOwnProperty(bA)&&e.__forward_ref__===me}function O6(e){return e&&!!e.\u0275providers}const wu="https://g.co/ng/security#xss";class F extends Error{constructor(t,r){super(function Ja(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,r)),this.code=t}}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function R6(e,t){throw new F(-201,!1)}function ut(e,t){null==e&&function ce(e,t,r,n){throw new Error(`ASSERTION ERROR: ${e}`+(null==n?"":` [Expected=> ${r} ${n} ${t} <=Actual]`))}(t,e,null,"!=")}function K(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ie(e){return{providers:e.providers||[],imports:e.imports||[]}}function Xa(e){return Vu(e,ts)||Vu(e,zu)}function Vu(e,t){return e.hasOwnProperty(t)?e[t]:null}function es(e){return e&&(e.hasOwnProperty(k6)||e.hasOwnProperty(xA))?e[k6]:null}const ts=Ue({\u0275prov:Ue}),k6=Ue({\u0275inj:Ue}),zu=Ue({ngInjectableDef:Ue}),xA=Ue({ngInjectorDef:Ue});var Ve=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ve||{});let P6;function A2(e){const t=P6;return P6=e,t}function Du(e,t,r){const n=Xa(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:r&Ve.Optional?null:void 0!==t?t:void R6(G1(e))}const t1=globalThis,Tr={},G6="__NG_DI_FLAG__",ns="ngTempTokenPath",EA=/\n/gm,xu="__source";let r3;function Rn(e){const t=r3;return r3=e,t}function OA(e,t=Ve.Default){if(void 0===r3)throw new F(-203,!1);return null===r3?Du(e,void 0,t):r3.get(e,t&Ve.Optional?null:void 0,t)}function Y(e,t=Ve.Default){return(function Su(){return P6}()||OA)(fe(e),t)}function J(e,t=Ve.Default){return Y(e,rs(t))}function rs(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function $6(e){const t=[];for(let r=0;r<e.length;r++){const n=fe(e[r]);if(Array.isArray(n)){if(0===n.length)throw new F(900,!1);let i,a=Ve.Default;for(let s=0;s<n.length;s++){const c=n[s],o=RA(c);"number"==typeof o?-1===o?i=c.token:a|=o:i=c}t.push(Y(i,a))}else t.push(Y(n))}return t}function Ir(e,t){return e[G6]=t,e.prototype[G6]=t,e}function RA(e){return e[G6]}function fn(e){return{toString:e}.toString()}var is=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(is||{}),Vt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Vt||{});const Gt={},Te=[],as=Ue({\u0275cmp:Ue}),W6=Ue({\u0275dir:Ue}),q6=Ue({\u0275pipe:Ue}),Au=Ue({\u0275mod:Ue}),un=Ue({\u0275fac:Ue}),Or=Ue({__NG_ELEMENT_ID__:Ue}),Eu=Ue({__NG_ENV_ID__:Ue});function Tu(e,t,r){let n=e.length;for(;;){const i=e.indexOf(t,r);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const a=t.length;if(i+a===n||e.charCodeAt(i+a)<=32)return i}r=i+1}}function K6(e,t,r){let n=0;for(;n<r.length;){const i=r[n];if("number"==typeof i){if(0!==i)break;n++;const a=r[n++],s=r[n++],c=r[n++];e.setAttribute(t,s,c,a)}else{const a=i,s=r[++n];Ou(a)?e.setProperty(t,a,s):e.setAttribute(t,a,s),n++}}return n}function Iu(e){return 3===e||4===e||6===e}function Ou(e){return 64===e.charCodeAt(0)}function Rr(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let r=-1;for(let n=0;n<t.length;n++){const i=t[n];"number"==typeof i?r=i:0===r||Ru(e,r,i,null,-1===r||2===r?t[++n]:null)}}return e}function Ru(e,t,r,n,i){let a=0,s=e.length;if(-1===t)s=-1;else for(;a<e.length;){const c=e[a++];if("number"==typeof c){if(c===t){s=-1;break}if(c>t){s=a-1;break}}}for(;a<e.length;){const c=e[a];if("number"==typeof c)break;if(c===r){if(null===n)return void(null!==i&&(e[a+1]=i));if(n===e[a+1])return void(e[a+2]=i)}a++,null!==n&&a++,null!==i&&a++}-1!==s&&(e.splice(s,0,t),a=s+1),e.splice(a++,0,r),null!==n&&e.splice(a++,0,n),null!==i&&e.splice(a++,0,i)}const ku="ng-template";function FA(e,t,r){let n=0,i=!0;for(;n<e.length;){let a=e[n++];if("string"==typeof a&&i){const s=e[n++];if(r&&"class"===a&&-1!==Tu(s.toLowerCase(),t,0))return!0}else{if(1===a){for(;n<e.length&&"string"==typeof(a=e[n++]);)if(a.toLowerCase()===t)return!0;return!1}"number"==typeof a&&(i=!1)}}return!1}function Pu(e){return 4===e.type&&e.value!==ku}function BA(e,t,r){return t===(4!==e.type||r?e.value:ku)}function UA(e,t,r){let n=4;const i=e.attrs||[],a=function $A(e){for(let t=0;t<e.length;t++)if(Iu(e[t]))return t;return e.length}(i);let s=!1;for(let c=0;c<t.length;c++){const o=t[c];if("number"!=typeof o){if(!s)if(4&n){if(n=2|1&n,""!==o&&!BA(e,o,r)||""===o&&1===t.length){if(zt(n))return!1;s=!0}}else{const l=8&n?o:t[++c];if(8&n&&null!==e.attrs){if(!FA(e.attrs,l,r)){if(zt(n))return!1;s=!0}continue}const d=jA(8&n?"class":o,i,Pu(e),r);if(-1===d){if(zt(n))return!1;s=!0;continue}if(""!==l){let m;m=d>a?"":i[d+1].toLowerCase();const g=8&n?m:null;if(g&&-1!==Tu(g,l,0)||2&n&&l!==m){if(zt(n))return!1;s=!0}}}}else{if(!s&&!zt(n)&&!zt(o))return!1;if(s&&zt(o))continue;s=!1,n=o|1&n}}return zt(n)||s}function zt(e){return 0==(1&e)}function jA(e,t,r,n){if(null===t)return-1;let i=0;if(n||!r){let a=!1;for(;i<t.length;){const s=t[i];if(s===e)return i;if(3===s||6===s)a=!0;else{if(1===s||2===s){let c=t[++i];for(;"string"==typeof c;)c=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=a?1:2}return-1}return function WA(e,t){let r=e.indexOf(4);if(r>-1)for(r++;r<e.length;){const n=e[r];if("number"==typeof n)return-1;if(n===t)return r;r++}return-1}(t,e)}function Fu(e,t,r=!1){for(let n=0;n<t.length;n++)if(UA(e,t[n],r))return!0;return!1}function qA(e,t){e:for(let r=0;r<t.length;r++){const n=t[r];if(e.length===n.length){for(let i=0;i<e.length;i++)if(e[i]!==n[i])continue e;return!0}}return!1}function Bu(e,t){return e?":not("+t.trim()+")":t}function KA(e){let t=e[0],r=1,n=2,i="",a=!1;for(;r<e.length;){let s=e[r];if("string"==typeof s)if(2&n){const c=e[++r];i+="["+s+(c.length>0?'="'+c+'"':"")+"]"}else 8&n?i+="."+s:4&n&&(i+=" "+s);else""!==i&&!zt(s)&&(t+=Bu(a,i),i=""),n=s,a=a||!zt(n);r++}return""!==i&&(t+=Bu(a,i)),t}function se(e){return fn(()=>{const t=ju(e),r={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===is.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Vt.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""};Gu(r);const n=e.dependencies;return r.directiveDefs=ss(n,!1),r.pipeDefs=ss(n,!0),r.id=function nE(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of r)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(r),r})}function JA(e){return Le(e)||a2(e)}function XA(e){return null!==e}function Fe(e){return fn(()=>({type:e.type,bootstrap:e.bootstrap||Te,declarations:e.declarations||Te,imports:e.imports||Te,exports:e.exports||Te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Uu(e,t){if(null==e)return Gt;const r={};for(const n in e)if(e.hasOwnProperty(n)){let i=e[n],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),r[i]=n,t&&(t[i]=a)}return r}function W(e){return fn(()=>{const t=ju(e);return Gu(t),t})}function Le(e){return e[as]||null}function a2(e){return e[W6]||null}function C2(e){return e[q6]||null}function Y2(e,t){const r=e[Au]||null;if(!r&&!0===t)throw new Error(`Type ${G1(e)} does not have '\u0275mod' property.`);return r}function ju(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Gt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Uu(e.inputs,t),outputs:Uu(e.outputs)}}function Gu(e){e.features?.forEach(t=>t(e))}function ss(e,t){if(!e)return null;const r=t?C2:JA;return()=>("function"==typeof e?e():e).map(n=>r(n)).filter(XA)}const L1=0,Z=1,ge=2,m1=3,St=4,kr=5,m2=6,a3=7,E1=8,kn=9,s3=10,he=11,Pr=12,$u=13,c3=14,T1=15,Fr=16,o3=17,$t=18,Br=19,Wu=20,Pn=21,dn=22,Ur=23,jr=24,ze=25,Y6=1,qu=2,Wt=7,l3=9,s2=11;function T2(e){return Array.isArray(e)&&"object"==typeof e[Y6]}function M2(e){return Array.isArray(e)&&!0===e[Y6]}function Z6(e){return 0!=(4&e.flags)}function l4(e){return e.componentOffset>-1}function os(e){return 1==(1&e.flags)}function Dt(e){return!!e.template}function Q6(e){return 0!=(512&e[ge])}function f4(e,t){return e.hasOwnProperty(un)?e[un]:null}let c2=null,ls=!1;function dt(e){const t=c2;return c2=e,t}const Zu={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Ju(e){if(!$r(e)||e.dirty){if(!e.producerMustRecompute(e)&&!t9(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function e9(e){e.dirty=!0,function Xu(e){if(void 0===e.liveConsumerNode)return;const t=ls;ls=!0;try{for(const r of e.liveConsumerNode)r.dirty||e9(r)}finally{ls=t}}(e),e.consumerMarkedDirty?.(e)}function X6(e){return e&&(e.nextProducerIndex=0),dt(e)}function e0(e,t){if(dt(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if($r(e))for(let r=e.nextProducerIndex;r<e.producerNode.length;r++)fs(e.producerNode[r],e.producerIndexOfThis[r]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function t9(e){f3(e);for(let t=0;t<e.producerNode.length;t++){const r=e.producerNode[t],n=e.producerLastReadVersion[t];if(n!==r.version||(Ju(r),n!==r.version))return!0}return!1}function n9(e){if(f3(e),$r(e))for(let t=0;t<e.producerNode.length;t++)fs(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function fs(e,t){if(function i9(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),f3(e),1===e.liveConsumerNode.length)for(let n=0;n<e.producerNode.length;n++)fs(e.producerNode[n],e.producerIndexOfThis[n]);const r=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[r],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[r],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const n=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];f3(i),i.producerIndexOfThis[n]=t}}function $r(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function f3(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let a9=null;const l9=()=>{},mE=(()=>({...Zu,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:l9}))();class gE{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}}function M1(){return f9}function f9(e){return e.type.prototype.ngOnChanges&&(e.setInput=_E),vE}function vE(){const e=d9(this),t=e?.current;if(t){const r=e.previous;if(r===Gt)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function _E(e,t,r,n){const i=this.declaredInputs[r],a=d9(e)||function CE(e,t){return e[u9]=t}(e,{previous:Gt,current:null}),s=a.current||(a.current={}),c=a.previous,o=c[i];s[i]=new gE(o&&o.currentValue,t,c===Gt),e[n]=t}M1.ngInherit=!0;const u9="__ngSimpleChanges__";function d9(e){return e[u9]||null}const qt=function(e,t,r){},h9="svg";function n1(e){for(;Array.isArray(e);)e=e[L1];return e}function us(e,t){return n1(t[e])}function I2(e,t){return n1(t[e.index])}function m9(e,t){return e.data[t]}function Z2(e,t){const r=t[e];return T2(r)?r:r[L1]}function Bn(e,t){return null==t?null:e[t]}function g9(e){e[o3]=0}function VE(e){1024&e[ge]||(e[ge]|=1024,_9(e,1))}function v9(e){1024&e[ge]&&(e[ge]&=-1025,_9(e,-1))}function _9(e,t){let r=e[m1];if(null===r)return;r[kr]+=t;let n=r;for(r=r[m1];null!==r&&(1===t&&1===n[kr]||-1===t&&0===n[kr]);)r[kr]+=t,n=r,r=r[m1]}const oe={lFrame:L9(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function y9(){return oe.bindingsEnabled}function d3(){return null!==oe.skipHydrationRootTNode}function P(){return oe.lFrame.lView}function xe(){return oe.lFrame.tView}function G(e){return oe.lFrame.contextLView=e,e[E1]}function $(e){return oe.lFrame.contextLView=null,e}function o2(){let e=b9();for(;null!==e&&64===e.type;)e=e.parent;return e}function b9(){return oe.lFrame.currentTNode}function Kt(e,t){const r=oe.lFrame;r.currentTNode=e,r.isParent=t}function s0(){return oe.lFrame.isParent}function c0(){oe.lFrame.isParent=!1}function h3(){return oe.lFrame.bindingIndex++}function pn(e){const t=oe.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function RE(e,t){const r=oe.lFrame;r.bindingIndex=r.bindingRootIndex=e,o0(t)}function o0(e){oe.lFrame.currentDirectiveIndex=e}function z9(){return oe.lFrame.currentQueryIndex}function f0(e){oe.lFrame.currentQueryIndex=e}function PE(e){const t=e[Z];return 2===t.type?t.declTNode:1===t.type?e[m2]:null}function S9(e,t,r){if(r&Ve.SkipSelf){let i=t,a=e;for(;!(i=i.parent,null!==i||r&Ve.Host||(i=PE(a),null===i||(a=a[c3],10&i.type))););if(null===i)return!1;t=i,e=a}const n=oe.lFrame=D9();return n.currentTNode=t,n.lView=e,!0}function u0(e){const t=D9(),r=e[Z];oe.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function D9(){const e=oe.lFrame,t=null===e?null:e.child;return null===t?L9(e):t}function L9(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function x9(){const e=oe.lFrame;return oe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const N9=x9;function d0(){const e=x9();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function b2(){return oe.lFrame.selectedIndex}function u4(e){oe.lFrame.selectedIndex=e}function y1(){const e=oe.lFrame;return m9(e.tView,e.selectedIndex)}function p3(){oe.lFrame.currentNamespace=h9}function m3(){!function jE(){oe.lFrame.currentNamespace=null}()}let E9=!0;function ds(){return E9}function Un(e){E9=e}function hs(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r<n;r++){const a=e.data[r].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:c,ngAfterViewInit:o,ngAfterViewChecked:l,ngOnDestroy:f}=a;s&&(e.contentHooks??=[]).push(-r,s),c&&((e.contentHooks??=[]).push(r,c),(e.contentCheckHooks??=[]).push(r,c)),o&&(e.viewHooks??=[]).push(-r,o),l&&((e.viewHooks??=[]).push(r,l),(e.viewCheckHooks??=[]).push(r,l)),null!=f&&(e.destroyHooks??=[]).push(r,f)}}function ps(e,t,r){T9(e,t,3,r)}function ms(e,t,r,n){(3&e[ge])===r&&T9(e,t,r,n)}function h0(e,t){let r=e[ge];(3&r)===t&&(r&=8191,r+=1,e[ge]=r)}function T9(e,t,r,n){const a=n??-1,s=t.length-1;let c=0;for(let o=void 0!==n?65535&e[o3]:0;o<s;o++)if("number"==typeof t[o+1]){if(c=t[o],null!=n&&c>=n)break}else t[o]<0&&(e[o3]+=65536),(c<a||-1==a)&&($E(e,r,t,o),e[o3]=(4294901760&e[o3])+o+2),o++}function I9(e,t){qt(4,e,t);const r=dt(null);try{t.call(e)}finally{dt(r),qt(5,e,t)}}function $E(e,t,r,n){const i=r[n]<0,a=r[n+1],c=e[i?-r[n]:r[n]];i?e[ge]>>13<e[o3]>>16&&(3&e[ge])===t&&(e[ge]+=8192,I9(c,a)):I9(c,a)}const g3=-1;class qr{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}}function m0(e){return e!==g3}function Kr(e){return 32767&e}function Yr(e,t){let r=function YE(e){return e>>16}(e),n=t;for(;r>0;)n=n[c3],r--;return n}let g0=!0;function gs(e){const t=g0;return g0=e,t}const O9=255,R9=5;let ZE=0;const Yt={};function vs(e,t){const r=k9(e,t);if(-1!==r)return r;const n=t[Z];n.firstCreatePass&&(e.injectorIndex=t.length,v0(n.data,e),v0(t,null),v0(n.blueprint,null));const i=_s(e,t),a=e.injectorIndex;if(m0(i)){const s=Kr(i),c=Yr(i,t),o=c[Z].data;for(let l=0;l<8;l++)t[a+l]=c[s+l]|o[s+l]}return t[a+8]=i,a}function v0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function k9(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function _s(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,n=null,i=t;for(;null!==i;){if(n=$9(i),null===n)return g3;if(r++,i=i[c3],-1!==n.injectorIndex)return n.injectorIndex|r<<16}return g3}function _0(e,t,r){!function QE(e,t,r){let n;"string"==typeof r?n=r.charCodeAt(0)||0:r.hasOwnProperty(Or)&&(n=r[Or]),null==n&&(n=r[Or]=ZE++);const i=n&O9;t.data[e+(i>>R9)]|=1<<i}(e,t,r)}function P9(e,t,r){if(r&Ve.Optional||void 0!==e)return e;R6()}function F9(e,t,r,n){if(r&Ve.Optional&&void 0===n&&(n=null),!(r&(Ve.Self|Ve.Host))){const i=e[kn],a=A2(void 0);try{return i?i.get(t,n,r&Ve.Optional):Du(t,n,r&Ve.Optional)}finally{A2(a)}}return P9(n,0,r)}function B9(e,t,r,n=Ve.Default,i){if(null!==e){if(2048&t[ge]&&!(n&Ve.Self)){const s=function rT(e,t,r,n,i){let a=e,s=t;for(;null!==a&&null!==s&&2048&s[ge]&&!(512&s[ge]);){const c=U9(a,s,r,n|Ve.Self,Yt);if(c!==Yt)return c;let o=a.parent;if(!o){const l=s[Wu];if(l){const f=l.get(r,Yt,n);if(f!==Yt)return f}o=$9(s),s=s[c3]}a=o}return i}(e,t,r,n,Yt);if(s!==Yt)return s}const a=U9(e,t,r,n,Yt);if(a!==Yt)return a}return F9(t,r,n,i)}function U9(e,t,r,n,i){const a=function eT(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Or)?e[Or]:void 0;return"number"==typeof t?t>=0?t&O9:nT:t}(r);if("function"==typeof a){if(!S9(t,e,n))return n&Ve.Host?P9(i,0,n):F9(t,r,n,i);try{let s;if(s=a(n),null!=s||n&Ve.Optional)return s;R6()}finally{N9()}}else if("number"==typeof a){let s=null,c=k9(e,t),o=g3,l=n&Ve.Host?t[T1][m2]:null;for((-1===c||n&Ve.SkipSelf)&&(o=-1===c?_s(e,t):t[c+8],o!==g3&&G9(n,!1)?(s=t[Z],c=Kr(o),t=Yr(o,t)):c=-1);-1!==c;){const f=t[Z];if(j9(a,c,f.data)){const d=XE(c,t,r,s,n,l);if(d!==Yt)return d}o=t[c+8],o!==g3&&G9(n,t[Z].data[c+8]===l)&&j9(a,c,t)?(s=f,c=Kr(o),t=Yr(o,t)):c=-1}}return i}function XE(e,t,r,n,i,a){const s=t[Z],c=s.data[e+8],f=Cs(c,s,r,null==n?l4(c)&&g0:n!=s&&0!=(3&c.type),i&Ve.Host&&a===c);return null!==f?d4(t,s,f,c):Yt}function Cs(e,t,r,n,i){const a=e.providerIndexes,s=t.data,c=1048575&a,o=e.directiveStart,f=a>>20,m=i?c+f:e.directiveEnd;for(let g=n?c:c+f;g<m;g++){const w=s[g];if(g<o&&r===w||g>=o&&w.type===r)return g}if(i){const g=s[o];if(g&&Dt(g)&&g.type===r)return o}return null}function d4(e,t,r,n){let i=e[r];const a=t.data;if(function WE(e){return e instanceof qr}(i)){const s=i;s.resolving&&function HA(e,t){const r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new F(-200,`Circular dependency in DI detected for ${e}${r}`)}(function Pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}(a[r]));const c=gs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?A2(s.injectImpl):null;S9(e,n,Ve.Default);try{i=e[r]=s.factory(void 0,a,e,n),t.firstCreatePass&&r>=n.directiveStart&&function GE(e,t,r){const{ngOnChanges:n,ngOnInit:i,ngDoCheck:a}=t.type.prototype;if(n){const s=f9(t);(r.preOrderHooks??=[]).push(e,s),(r.preOrderCheckHooks??=[]).push(e,s)}i&&(r.preOrderHooks??=[]).push(0-e,i),a&&((r.preOrderHooks??=[]).push(e,a),(r.preOrderCheckHooks??=[]).push(e,a))}(r,a[r],t)}finally{null!==l&&A2(l),gs(c),s.resolving=!1,N9()}}return i}function j9(e,t,r){return!!(r[t+(e>>R9)]&1<<e)}function G9(e,t){return!(e&Ve.Self||e&Ve.Host&&t)}class H2{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return B9(this._tNode,this._lView,t,rs(n),r)}}function nT(){return new H2(o2(),P())}function I1(e){return fn(()=>{const t=e.prototype.constructor,r=t[un]||C0(t),n=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;){const a=i[un]||C0(i);if(a&&a!==r)return a;i=Object.getPrototypeOf(i)}return a=>new a})}function C0(e){return I6(e)?()=>{const t=C0(fe(e));return t&&t()}:f4(e)}function $9(e){const t=e[Z],r=t.type;return 2===r?t.declTNode:1===r?e[m2]:null}const _3="__parameters__";function M3(e,t,r){return fn(()=>{const n=function M0(e){return function(...r){if(e){const n=e(...r);for(const i in n)this[i]=n[i]}}}(t);function i(...a){if(this instanceof i)return n.apply(this,a),this;const s=new i(...a);return c.annotation=s,c;function c(o,l,f){const d=o.hasOwnProperty(_3)?o[_3]:Object.defineProperty(o,_3,{value:[]})[_3];for(;d.length<=f;)d.push(null);return(d[f]=d[f]||[]).push(s),o}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function b3(e,t){e.forEach(r=>Array.isArray(r)?b3(r,t):t(r))}function q9(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Ms(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jr(e,t){const r=[];for(let n=0;n<e;n++)r.push(t);return r}function Q2(e,t,r){let n=H3(e,t);return n>=0?e[1|n]=r:(n=~n,function fT(e,t,r,n){let i=e.length;if(i==t)e.push(r,n);else if(1===i)e.push(n,e[0]),e[0]=r;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=r,e[t+1]=n}}(e,n,t,r)),n}function y0(e,t){const r=H3(e,t);if(r>=0)return e[1|r]}function H3(e,t){return function K9(e,t,r){let n=0,i=e.length>>r;for(;i!==n;){const a=n+(i-n>>1),s=e[a<<r];if(t===s)return a<<r;s>t?i=a:n=a+1}return~(i<<r)}(e,t,1)}const bs=Ir(M3("Optional"),8),Hs=Ir(M3("SkipSelf"),4);function Ds(e){return 128==(128&e.flags)}var jn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(jn||{});const z0=new Map;let TT=0;const D0="__ngContext__";function g2(e,t){T2(t)?(e[D0]=t[Br],function OT(e){z0.set(e[Br],e)}(t)):e[D0]=t}let L0;function x0(e,t){return L0(e,t)}function ti(e){const t=e[m1];return M2(t)?t[m1]:t}function pd(e){return gd(e[Pr])}function md(e){return gd(e[St])}function gd(e){for(;null!==e&&!M2(e);)e=e[St];return e}function z3(e,t,r,n,i){if(null!=n){let a,s=!1;M2(n)?a=n:T2(n)&&(s=!0,n=n[L1]);const c=n1(n);0===e&&null!==r?null==i?Md(t,r,c):p4(t,r,c,i||null,!0):1===e&&null!==r?p4(t,r,c,i||null,!0):2===e?function Is(e,t,r){const n=Es(e,t);n&&function tI(e,t,r,n){e.removeChild(t,r,n)}(e,n,t,r)}(t,c,s):3===e&&t.destroyNode(c),null!=a&&function iI(e,t,r,n,i){const a=r[Wt];a!==n1(r)&&z3(t,e,n,a,i);for(let c=s2;c<r.length;c++){const o=r[c];ri(o[Z],o,e,t,n,a)}}(t,e,a,r,i)}}function Ns(e,t,r){return e.createElement(t,r)}function _d(e,t){const r=e[l3],n=r.indexOf(t);v9(t),r.splice(n,1)}function As(e,t){if(e.length<=s2)return;const r=s2+t,n=e[r];if(n){const i=n[Fr];null!==i&&i!==e&&_d(i,n),t>0&&(e[r-1][St]=n[St]);const a=Ms(e,s2+t);!function qT(e,t){ri(e,t,t[he],2,null,null),t[L1]=null,t[m2]=null}(n[Z],n);const s=a[$t];null!==s&&s.detachView(a[Z]),n[m1]=null,n[St]=null,n[ge]&=-129}return n}function A0(e,t){if(!(256&t[ge])){const r=t[he];t[Ur]&&n9(t[Ur]),t[jr]&&n9(t[jr]),r.destroyNode&&ri(e,t,r,3,null,null),function ZT(e){let t=e[Pr];if(!t)return E0(e[Z],e);for(;t;){let r=null;if(T2(t))r=t[Pr];else{const n=t[s2];n&&(r=n)}if(!r){for(;t&&!t[St]&&t!==e;)T2(t)&&E0(t[Z],t),t=t[m1];null===t&&(t=e),T2(t)&&E0(t[Z],t),r=t&&t[St]}t=r}}(t)}}function E0(e,t){if(!(256&t[ge])){t[ge]&=-129,t[ge]|=256,function eI(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let n=0;n<r.length;n+=2){const i=t[r[n]];if(!(i instanceof qr)){const a=r[n+1];if(Array.isArray(a))for(let s=0;s<a.length;s+=2){const c=i[a[s]],o=a[s+1];qt(4,c,o);try{o.call(c)}finally{qt(5,c,o)}}else{qt(4,i,a);try{a.call(i)}finally{qt(5,i,a)}}}}}(e,t),function XT(e,t){const r=e.cleanup,n=t[a3];if(null!==r)for(let a=0;a<r.length-1;a+=2)if("string"==typeof r[a]){const s=r[a+3];s>=0?n[s]():n[-s].unsubscribe(),a+=2}else r[a].call(n[r[a+1]]);null!==n&&(t[a3]=null);const i=t[Pn];if(null!==i){t[Pn]=null;for(let a=0;a<i.length;a++)(0,i[a])()}}(e,t),1===t[Z].type&&t[he].destroy();const r=t[Fr];if(null!==r&&M2(t[m1])){r!==t[m1]&&_d(r,t);const n=t[$t];null!==n&&n.detachView(e)}!function RT(e){z0.delete(e[Br])}(t)}}function T0(e,t,r){return function Cd(e,t,r){let n=t;for(;null!==n&&40&n.type;)n=(t=n).parent;if(null===n)return r[L1];{const{componentOffset:i}=n;if(i>-1){const{encapsulation:a}=e.data[n.directiveStart+i];if(a===Vt.None||a===Vt.Emulated)return null}return I2(n,r)}}(e,t.parent,r)}function p4(e,t,r,n,i){e.insertBefore(t,r,n,i)}function Md(e,t,r){e.appendChild(t,r)}function yd(e,t,r,n,i){null!==n?p4(e,t,r,n,i):Md(e,t,r)}function Es(e,t){return e.parentNode(t)}function bd(e,t,r){return wd(e,t,r)}let I0,Os,P0,Rs,wd=function Hd(e,t,r){return 40&e.type?I2(e,r):null};function Ts(e,t,r,n){const i=T0(e,n,t),a=t[he],c=bd(n.parent||t[m2],n,t);if(null!=i)if(Array.isArray(r))for(let o=0;o<r.length;o++)yd(a,i,r[o],c,!1);else yd(a,i,r,c,!1);void 0!==I0&&I0(a,n,t,r,i)}function ni(e,t){if(null!==t){const r=t.type;if(3&r)return I2(t,e);if(4&r)return O0(-1,e[t.index]);if(8&r){const n=t.child;if(null!==n)return ni(e,n);{const i=e[t.index];return M2(i)?O0(-1,i):n1(i)}}if(32&r)return x0(t,e)()||n1(e[t.index]);{const n=zd(e,t);return null!==n?Array.isArray(n)?n[0]:ni(ti(e[T1]),n):ni(e,t.next)}}return null}function zd(e,t){return null!==t?e[T1][m2].projection[t.projection]:null}function O0(e,t){const r=s2+e+1;if(r<t.length){const n=t[r],i=n[Z].firstChild;if(null!==i)return ni(n,i)}return t[Wt]}function R0(e,t,r,n,i,a,s){for(;null!=r;){const c=n[r.index],o=r.type;if(s&&0===t&&(c&&g2(n1(c),n),r.flags|=2),32!=(32&r.flags))if(8&o)R0(e,t,r.child,n,i,a,!1),z3(t,e,i,c,a);else if(32&o){const l=x0(r,n);let f;for(;f=l();)z3(t,e,i,f,a);z3(t,e,i,c,a)}else 16&o?Dd(e,t,n,r,i,a):z3(t,e,i,c,a);r=s?r.projectionNext:r.next}}function ri(e,t,r,n,i,a){R0(r,n,e.firstChild,t,i,a,!1)}function Dd(e,t,r,n,i,a){const s=r[T1],o=s[m2].projection[n.projection];if(Array.isArray(o))for(let l=0;l<o.length;l++)z3(t,e,i,o[l],a);else{let l=o;const f=s[m1];Ds(n)&&(l.flags|=128),R0(e,t,l,f,i,a,!0)}}function Ld(e,t,r){""===r?e.removeAttribute(t,"class"):e.setAttribute(t,"class",r)}function xd(e,t,r){const{mergedAttrs:n,classes:i,styles:a}=r;null!==n&&K6(e,t,n),null!==i&&Ld(e,t,i),null!==a&&function sI(e,t,r){e.setAttribute(t,"style",r)}(e,t,a)}function S3(e){return function k0(){if(void 0===Os&&(Os=null,t1.trustedTypes))try{Os=t1.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Os}()?.createHTML(e)||e}function D3(){if(void 0!==P0)return P0;if(typeof document<"u")return document;throw new F(210,!1)}function F0(){if(void 0===Rs&&(Rs=null,t1.trustedTypes))try{Rs=t1.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Rs}function Nd(e){return F0()?.createHTML(e)||e}function Ed(e){return F0()?.createScriptURL(e)||e}class m4{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${wu})`}}class uI extends m4{getTypeName(){return"HTML"}}class dI extends m4{getTypeName(){return"Style"}}class hI extends m4{getTypeName(){return"Script"}}class pI extends m4{getTypeName(){return"URL"}}class mI extends m4{getTypeName(){return"ResourceURL"}}function J2(e){return e instanceof m4?e.changingThisBreaksApplicationSecurity:e}function Zt(e,t){const r=function gI(e){return e instanceof m4&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${wu})`)}return r===t}class bI{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const r=(new window.DOMParser).parseFromString(S3(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class HI{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=S3(t),r}}const VI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ks(e){return(e=String(e)).match(VI)?e:"unsafe:"+e}function mn(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function ii(...e){const t={};for(const r of e)for(const n in r)r.hasOwnProperty(n)&&(t[n]=!0);return t}const Id=mn("area,br,col,hr,img,wbr"),Od=mn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Rd=mn("rp,rt"),B0=ii(Id,ii(Od,mn("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")),ii(Rd,mn("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")),ii(Rd,Od)),U0=mn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),kd=ii(U0,mn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),mn("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")),zI=mn("script,style,template");class SI{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,n=!0;for(;r;)if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild)r=r.firstChild;else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let i=this.checkClobberedElement(r,r.nextSibling);if(i){r=i;break}r=this.checkClobberedElement(r,r.parentNode)}return this.buf.join("")}startElement(t){const r=t.nodeName.toLowerCase();if(!B0.hasOwnProperty(r))return this.sanitizedSomething=!0,!zI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const n=t.attributes;for(let i=0;i<n.length;i++){const a=n.item(i),s=a.name,c=s.toLowerCase();if(!kd.hasOwnProperty(c)){this.sanitizedSomething=!0;continue}let o=a.value;U0[c]&&(o=ks(o)),this.buf.push(" ",s,'="',Pd(o),'"')}return this.buf.push(">"),!0}endElement(t){const r=t.nodeName.toLowerCase();B0.hasOwnProperty(r)&&!Id.hasOwnProperty(r)&&(this.buf.push("</"),this.buf.push(r),this.buf.push(">"))}chars(t){this.buf.push(Pd(t))}checkClobberedElement(t,r){if(r&&(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return r}}const DI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LI=/([^\#-~ |!])/g;function Pd(e){return e.replace(/&/g,"&amp;").replace(DI,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(LI,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ps;function Fd(e,t){let r=null;try{Ps=Ps||function Td(e){const t=new HI(e);return function wI(){try{return!!(new window.DOMParser).parseFromString(S3(""),"text/html")}catch{return!1}}()?new bI(t):t}(e);let n=t?String(t):"";r=Ps.getInertBodyElement(n);let i=5,a=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=a,a=r.innerHTML,r=Ps.getInertBodyElement(n)}while(n!==a);return S3((new SI).sanitizeChildren(j0(r)||r))}finally{if(r){const n=j0(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function j0(e){return"content"in e&&function xI(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var pt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(pt||{});function Bd(e){const t=ai();return t?Nd(t.sanitize(pt.HTML,e)||""):Zt(e,"HTML")?Nd(J2(e)):Fd(D3(),de(e))}function R2(e){const t=ai();return t?t.sanitize(pt.STYLE,e)||"":Zt(e,"Style")?J2(e):de(e)}function L3(e){const t=ai();return t?t.sanitize(pt.URL,e)||"":Zt(e,"URL")?J2(e):ks(de(e))}function Ud(e){const t=ai();if(t)return Ed(t.sanitize(pt.RESOURCE_URL,e)||"");if(Zt(e,"ResourceURL"))return Ed(J2(e));throw new F(904,!1)}function ai(){const e=P();return e&&e[s3].sanitizer}class te{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=K({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const si=new te("ENVIRONMENT_INITIALIZER"),Gd=new te("INJECTOR",-1),$d=new te("INJECTOR_DEF_TYPES");class G0{get(t,r=Tr){if(r===Tr){const n=new Error(`NullInjectorError: No provider for ${G1(t)}!`);throw n.name="NullInjectorError",n}return r}}function II(...e){return{\u0275providers:qd(0,e),\u0275fromNgModule:!0}}function qd(e,...t){const r=[],n=new Set;let i;const a=s=>{r.push(s)};return b3(t,s=>{const c=s;Fs(c,a,[],n)&&(i||=[],i.push(c))}),void 0!==i&&Kd(i,a),r}function Kd(e,t){for(let r=0;r<e.length;r++){const{ngModule:n,providers:i}=e[r];$0(i,a=>{t(a,n)})}}function Fs(e,t,r,n){if(!(e=fe(e)))return!1;let i=null,a=es(e);const s=!a&&Le(e);if(a||s){if(s&&!s.standalone)return!1;i=e}else{const o=e.ngModule;if(a=es(o),!a)return!1;i=o}const c=n.has(i);if(s){if(c)return!1;if(n.add(i),s.dependencies){const o="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of o)Fs(l,t,r,n)}}else{if(!a)return!1;{if(null!=a.imports&&!c){let l;n.add(i);try{b3(a.imports,f=>{Fs(f,t,r,n)&&(l||=[],l.push(f))})}finally{}void 0!==l&&Kd(l,t)}if(!c){const l=f4(i)||(()=>new i);t({provide:i,useFactory:l,deps:Te},i),t({provide:$d,useValue:i,multi:!0},i),t({provide:si,useValue:()=>Y(i),multi:!0},i)}const o=a.providers;if(null!=o&&!c){const l=e;$0(o,f=>{t(f,l)})}}}return i!==e&&void 0!==e.providers}function $0(e,t){for(let r of e)O6(r)&&(r=r.\u0275providers),Array.isArray(r)?$0(r,t):t(r)}const OI=Ue({provide:String,useValue:Ue});function W0(e){return null!==e&&"object"==typeof e&&OI in e}function g4(e){return"function"==typeof e}const q0=new te("Set Injector scope."),Bs={},kI={};let K0;function Us(){return void 0===K0&&(K0=new G0),K0}class k2{}class js extends k2{get destroyed(){return this._destroyed}constructor(t,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Z0(t,s=>this.processProvider(s)),this.records.set(Gd,x3(void 0,this)),i.has("environment")&&this.records.set(k2,x3(void 0,this));const a=this.records.get(q0);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get($d.multi,Te,Ve.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=Rn(this),n=A2(void 0);try{return t()}finally{Rn(r),A2(n)}}get(t,r=Tr,n=Ve.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Eu))return t[Eu](this);n=rs(n);const a=Rn(this),s=A2(void 0);try{if(!(n&Ve.SkipSelf)){let o=this.records.get(t);if(void 0===o){const l=function jI(e){return"function"==typeof e||"object"==typeof e&&e instanceof te}(t)&&Xa(t);o=l&&this.injectableDefInScope(l)?x3(Y0(t),Bs):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&Ve.Self?Us():this.parent).get(t,r=n&Ve.Optional&&r===Tr?null:r)}catch(c){if("NullInjectorError"===c.name){if((c[ns]=c[ns]||[]).unshift(G1(t)),a)throw c;return function kA(e,t,r,n){const i=e[ns];throw t[xu]&&i.unshift(t[xu]),e.message=function PA(e,t,r,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=G1(t);if(Array.isArray(t))i=t.map(G1).join(" -> ");else if("object"==typeof t){let a=[];for(let s in t)if(t.hasOwnProperty(s)){let c=t[s];a.push(s+":"+("string"==typeof c?JSON.stringify(c):G1(c)))}i=`{${a.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${e.replace(EA,"\n ")}`}("\n"+e.message,i,r,n),e.ngTokenPath=i,e[ns]=null,e}(c,t,"R3InjectorError",this.source)}throw c}finally{A2(s),Rn(a)}}resolveInjectorInitializers(){const t=Rn(this),r=A2(void 0);try{const i=this.get(si.multi,Te,Ve.Self);for(const a of i)a()}finally{Rn(t),A2(r)}}toString(){const t=[],r=this.records;for(const n of r.keys())t.push(G1(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(t){let r=g4(t=fe(t))?t:fe(t&&t.provide);const n=function FI(e){return W0(e)?x3(void 0,e.useValue):x3(Qd(e),Bs)}(t);if(g4(t)||!0!==t.multi)this.records.get(r);else{let i=this.records.get(r);i||(i=x3(void 0,Bs,!0),i.factory=()=>$6(i.multi),this.records.set(r,i)),r=t,i.multi.push(t)}this.records.set(r,n)}hydrate(t,r){return r.value===Bs&&(r.value=kI,r.value=r.factory()),"object"==typeof r.value&&r.value&&function UI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(t){if(!t.providedIn)return!1;const r=fe(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Y0(e){const t=Xa(e),r=null!==t?t.factory:f4(e);if(null!==r)return r;if(e instanceof te)throw new F(204,!1);if(e instanceof Function)return function PI(e){const t=e.length;if(t>0)throw Jr(t,"?"),new F(204,!1);const r=function LA(e){return e&&(e[ts]||e[zu])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new F(204,!1)}function Qd(e,t,r){let n;if(g4(e)){const i=fe(e);return f4(i)||Y0(i)}if(W0(e))n=()=>fe(e.useValue);else if(function Zd(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...$6(e.deps||[]));else if(function Yd(e){return!(!e||!e.useExisting)}(e))n=()=>Y(fe(e.useExisting));else{const i=fe(e&&(e.useClass||e.provide));if(!function BI(e){return!!e.deps}(e))return f4(i)||Y0(i);n=()=>new i(...$6(e.deps))}return n}function x3(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Z0(e,t){for(const r of e)Array.isArray(r)?Z0(r,t):r&&O6(r)?Z0(r.\u0275providers,t):t(r)}const Gs=new te("AppId",{providedIn:"root",factory:()=>GI}),GI="ng",Jd=new te("Platform Initializer"),N3=new te("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xd=new te("CSP nonce",{providedIn:"root",factory:()=>D3().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let eh=(e,t,r)=>null;function i8(e,t,r=!1){return eh(e,t,r)}class eO{}class rh{}class nO{resolveComponentFactory(t){throw function tO(e){const t=Error(`No component factory found for ${G1(e)}.`);return t.ngComponent=e,t}(t)}}let Zs=(()=>{class t{}return t.NULL=new nO,t})();function rO(){return T3(o2(),P())}function T3(e,t){return new Ne(I2(e,t))}let Ne=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=rO,t})();function iO(e){return e instanceof Ne?e.nativeElement:e}class c8{}let l2=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function aO(){const e=P(),r=Z2(o2().index,e);return(T2(r)?r:e)[he]}(),t})(),sO=(()=>{var e;class t{}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>null}),t})();class li{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const cO=new li("16.2.6"),o8={};function oh(e,t=null,r=null,n){const i=lh(e,t,r,n);return i.resolveInjectorInitializers(),i}function lh(e,t=null,r=null,n,i=new Set){const a=[r||Te,II(e)];return n=n||("object"==typeof e?void 0:G1(e)),new js(a,t||Us(),n||null,i)}let B1=(()=>{var e;class t{static create(n,i){if(Array.isArray(n))return oh({name:""},i,n,"");{const a=n.name??"";return oh({name:a},n.parent,n.providers,a)}}}return(e=t).THROW_IF_NOT_FOUND=Tr,e.NULL=new G0,e.\u0275prov=K({token:e,providedIn:"any",factory:()=>Y(Gd)}),e.__NG_ELEMENT_ID__=-1,t})();function f8(e){return e.ngOriginalError}class gn{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&f8(t);for(;r&&f8(r);)r=f8(r);return r||null}}function d8(e){return t=>{setTimeout(e,void 0,t)}}const ee=class pO extends ue{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,r,n){let i=t,a=r||(()=>null),s=n;if(t&&"object"==typeof t){const o=t;i=o.next?.bind(o),a=o.error?.bind(o),s=o.complete?.bind(o)}this.__isAsync&&(a=d8(a),i&&(i=d8(i)),s&&(s=d8(s)));const c=super.subscribe({next:i,error:a,complete:s});return t instanceof Se&&t.add(c),c}};function uh(...e){}class ye{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ee(!1),this.onMicrotaskEmpty=new ee(!1),this.onStable=new ee(!1),this.onError=new ee(!1),typeof Zone>"u")throw new F(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function mO(){const e="function"==typeof t1.requestAnimationFrame;let t=t1[e?"requestAnimationFrame":"setTimeout"],r=t1[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function _O(e){const t=()=>{!function vO(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(t1,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,p8(e),e.isCheckStableRunning=!0,h8(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),p8(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,a,s,c)=>{if(function MO(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(c))return r.invokeTask(i,a,s,c);try{return dh(e),r.invokeTask(i,a,s,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),hh(e)}},onInvoke:(r,n,i,a,s,c,o)=>{try{return dh(e),r.invoke(i,a,s,c,o)}finally{e.shouldCoalesceRunChangeDetection&&t(),hh(e)}},onHasTask:(r,n,i,a)=>{r.hasTask(i,a),n===i&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,p8(e),h8(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(r,n,i,a)=>(r.handleError(i,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ye.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(ye.isInAngularZone())throw new F(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,i){const a=this._inner,s=a.scheduleEventTask("NgZoneEvent: "+i,t,gO,uh,uh);try{return a.runTask(s,r,n)}finally{a.cancelTask(s)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}}const gO={};function h8(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function p8(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function dh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hh(e){e._nesting--,h8(e)}class CO{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ee,this.onMicrotaskEmpty=new ee,this.onStable=new ee,this.onError=new ee}run(t,r,n){return t.apply(r,n)}runGuarded(t,r,n){return t.apply(r,n)}runOutsideAngular(t){return t()}runTask(t,r,n,i){return t.apply(r,n)}}const ph=new te("",{providedIn:"root",factory:mh});function mh(){const e=J(ye);let t=!0;return N6(new We(i=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(t),i.complete()})}),new We(i=>{let a;e.runOutsideAngular(()=>{a=e.onStable.subscribe(()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,i.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ye.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{a.unsubscribe(),s.unsubscribe()}}).pipe(A6()))}function vn(e){return e instanceof Function?e():e}let m8=(()=>{var e;class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>new e}),t})();function fi(e){for(;e;){e[ge]|=64;const t=ti(e);if(Q6(e)&&!t)return e;e=t}return null}const Mh=new te("",{providedIn:"root",factory:()=>!1});let Js=null;function wh(e,t){return e[t]??Sh()}function Vh(e,t){const r=Sh();r.producerNode?.length&&(e[t]=Js,r.lView=e,Js=zh())}const xO={...Zu,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{fi(e.lView)},lView:null};function zh(){return Object.create(xO)}function Sh(){return Js??=zh(),Js}const pe={};function C(e){Dh(xe(),P(),b2()+e,!1)}function Dh(e,t,r,n){if(!n)if(3==(3&t[ge])){const a=e.preOrderCheckHooks;null!==a&&ps(t,a,r)}else{const a=e.preOrderHooks;null!==a&&ms(t,a,0,r)}u4(r)}function H(e,t=Ve.Default){const r=P();return null===r?Y(e,t):B9(o2(),r,fe(e),t)}function Xs(e,t,r,n,i,a,s,c,o,l,f){const d=t.blueprint.slice();return d[L1]=i,d[ge]=140|n,(null!==l||e&&2048&e[ge])&&(d[ge]|=2048),g9(d),d[m1]=d[c3]=e,d[E1]=r,d[s3]=s||e&&e[s3],d[he]=c||e&&e[he],d[kn]=o||e&&e[kn]||null,d[m2]=a,d[Br]=function IT(){return TT++}(),d[dn]=f,d[Wu]=l,d[T1]=2==t.type?e[T1]:d,d}function R3(e,t,r,n,i){let a=e.data[t];if(null===a)a=function g8(e,t,r,n,i){const a=b9(),s=s0(),o=e.data[t]=function kO(e,t,r,n,i,a){let s=t?t.injectorIndex:-1,c=0;return d3()&&(c|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:c,providerIndexes:0,value:i,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?a:a&&a.parent,r,t,n,i);return null===e.firstChild&&(e.firstChild=o),null!==a&&(s?null==a.child&&null!==o.parent&&(a.child=o):null===a.next&&(a.next=o,o.prev=a)),o}(e,t,r,n,i),function OE(){return oe.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=r,a.value=n,a.attrs=i;const s=function Wr(){const e=oe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();a.injectorIndex=null===s?-1:s.injectorIndex}return Kt(a,!0),a}function ui(e,t,r,n){if(0===r)return-1;const i=t.length;for(let a=0;a<r;a++)t.push(n),e.blueprint.push(n),e.data.push(null);return i}function xh(e,t,r,n,i){const a=wh(t,Ur),s=b2(),c=2&n;try{u4(-1),c&&t.length>ze&&Dh(e,t,ze,!1),qt(c?2:0,i);const l=c?a:null,f=X6(l);try{null!==l&&(l.dirty=!1),r(n,i)}finally{e0(l,f)}}finally{c&&null===t[Ur]&&Vh(t,Ur),u4(s),qt(c?3:1,i)}}function v8(e,t,r){if(Z6(t)){const n=dt(null);try{const a=t.directiveEnd;for(let s=t.directiveStart;s<a;s++){const c=e.data[s];c.contentQueries&&c.contentQueries(1,r[s],s)}}finally{dt(n)}}}function _8(e,t,r){y9()&&(function $O(e,t,r,n){const i=r.directiveStart,a=r.directiveEnd;l4(r)&&function JO(e,t,r){const n=I2(t,e),i=Nh(r);let s=16;r.signals?s=4096:r.onPush&&(s=64);const c=ec(e,Xs(e,i,null,s,n,t,null,e[s3].rendererFactory.createRenderer(n,r),null,null,null));e[t.index]=c}(t,r,e.data[i+r.componentOffset]),e.firstCreatePass||vs(r,t),g2(n,t);const s=r.initialInputs;for(let c=i;c<a;c++){const o=e.data[c],l=d4(t,e,c,r);g2(l,t),null!==s&&XO(0,c-i,l,o,0,s),Dt(o)&&(Z2(r.index,t)[E1]=d4(t,e,c,r))}}(e,t,r,I2(r,t)),64==(64&r.flags)&&Oh(e,t,r))}function C8(e,t,r=I2){const n=t.localNames;if(null!==n){let i=t.index+1;for(let a=0;a<n.length;a+=2){const s=n[a+1],c=-1===s?r(t,e):e[s];e[i++]=c}}}function Nh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=M8(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function M8(e,t,r,n,i,a,s,c,o,l,f){const d=ze+n,m=d+i,g=function AO(e,t){const r=[];for(let n=0;n<t;n++)r.push(n<e?null:pe);return r}(d,m),w="function"==typeof l?l():l;return g[Z]={type:e,blueprint:g,template:r,queries:null,viewQuery:c,declTNode:t,data:g.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:m,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 a?a():a,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:o,consts:w,incompleteFirstPass:!1,ssrId:f}}let Ah=e=>null;function Eh(e,t,r,n){for(let i in e)if(e.hasOwnProperty(i)){r=null===r?{}:r;const a=e[i];null===n?Th(r,t,i,a):n.hasOwnProperty(i)&&Th(r,t,n[i],a)}return r}function Th(e,t,r,n){e.hasOwnProperty(r)?e[r].push(t,n):e[r]=[t,n]}function X2(e,t,r,n,i,a,s,c){const o=I2(t,r);let f,l=t.inputs;!c&&null!=l&&(f=l[n])?(V8(e,r,f,n,i),l4(t)&&function BO(e,t){const r=Z2(t,e);16&r[ge]||(r[ge]|=64)}(r,t.index)):3&t.type&&(n=function FO(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(n),i=null!=s?s(i,t.value||"",n):i,a.setProperty(o,n,i))}function y8(e,t,r,n){if(y9()){const i=null===n?null:{"":-1},a=function qO(e,t){const r=e.directiveRegistry;let n=null,i=null;if(r)for(let a=0;a<r.length;a++){const s=r[a];if(Fu(t,s.selectors,!1))if(n||(n=[]),Dt(s))if(null!==s.findHostDirectiveDefs){const c=[];i=i||new Map,s.findHostDirectiveDefs(s,c,i),n.unshift(...c,s),b8(e,t,c.length)}else n.unshift(s),b8(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,n,i),n.push(s)}return null===n?null:[n,i]}(e,r);let s,c;null===a?s=c=null:[s,c]=a,null!==s&&Ih(e,t,r,s,i,c),i&&function KO(e,t,r){if(t){const n=e.localNames=[];for(let i=0;i<t.length;i+=2){const a=r[t[i+1]];if(null==a)throw new F(-301,!1);n.push(t[i],a)}}}(r,n,i)}r.mergedAttrs=Rr(r.mergedAttrs,r.attrs)}function Ih(e,t,r,n,i,a){for(let l=0;l<n.length;l++)_0(vs(r,t),e,n[l].type);!function ZO(e,t,r){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+r,e.providerIndexes=t}(r,e.data.length,n.length);for(let l=0;l<n.length;l++){const f=n[l];f.providersResolver&&f.providersResolver(f)}let s=!1,c=!1,o=ui(e,t,n.length,null);for(let l=0;l<n.length;l++){const f=n[l];r.mergedAttrs=Rr(r.mergedAttrs,f.hostAttrs),QO(e,r,t,o,f),YO(o,f,i),null!==f.contentQueries&&(r.flags|=4),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(r.flags|=64);const d=f.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(r.index),s=!0),!c&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(r.index),c=!0),o++}!function PO(e,t,r){const i=t.directiveEnd,a=e.data,s=t.attrs,c=[];let o=null,l=null;for(let f=t.directiveStart;f<i;f++){const d=a[f],m=r?r.get(d):null,w=m?m.outputs:null;o=Eh(d.inputs,f,o,m?m.inputs:null),l=Eh(d.outputs,f,l,w);const z=null===o||null===s||Pu(t)?null:eR(o,f,s);c.push(z)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=8),o.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=c,t.inputs=o,t.outputs=l}(e,r,a)}function Oh(e,t,r){const n=r.directiveStart,i=r.directiveEnd,a=r.index,s=function kE(){return oe.lFrame.currentDirectiveIndex}();try{u4(a);for(let c=n;c<i;c++){const o=e.data[c],l=t[c];o0(c),(null!==o.hostBindings||0!==o.hostVars||null!==o.hostAttrs)&&WO(o,l)}}finally{u4(-1),o0(s)}}function WO(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function b8(e,t,r){t.componentOffset=r,(e.components??=[]).push(t.index)}function YO(e,t,r){if(r){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)r[t.exportAs[n]]=e;Dt(t)&&(r[""]=e)}}function QO(e,t,r,n,i){e.data[n]=i;const a=i.factory||(i.factory=f4(i.type)),s=new qr(a,Dt(i),H);e.blueprint[n]=s,r[n]=s,function jO(e,t,r,n,i){const a=i.hostBindings;if(a){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const c=~t.index;(function GO(e){let t=e.length;for(;t>0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(s)!=c&&s.push(c),s.push(r,n,a)}}(e,t,n,ui(e,r,i.hostVars,pe),i)}function Qt(e,t,r,n,i,a){const s=I2(e,t);!function H8(e,t,r,n,i,a,s){if(null==a)e.removeAttribute(t,i,r);else{const c=null==s?de(a):s(a,n||"",i);e.setAttribute(t,i,c,r)}}(t[he],s,a,e.value,r,n,i)}function XO(e,t,r,n,i,a){const s=a[t];if(null!==s)for(let c=0;c<s.length;)Rh(n,r,s[c++],s[c++],s[c++])}function Rh(e,t,r,n,i){const a=dt(null);try{const s=e.inputTransforms;null!==s&&s.hasOwnProperty(n)&&(i=s[n].call(t,i)),null!==e.setInput?e.setInput(t,i,r,n):t[n]=i}finally{dt(a)}}function eR(e,t,r){let n=null,i=0;for(;i<r.length;){const a=r[i];if(0!==a)if(5!==a){if("number"==typeof a)break;if(e.hasOwnProperty(a)){null===n&&(n=[]);const s=e[a];for(let c=0;c<s.length;c+=2)if(s[c]===t){n.push(a,s[c+1],r[i+1]);break}}i+=2}else i+=2;else i+=4}return n}function kh(e,t,r,n){return[e,!0,!1,t,null,0,n,r,null,null,null]}function Ph(e,t){const r=e.contentQueries;if(null!==r)for(let n=0;n<r.length;n+=2){const a=r[n+1];if(-1!==a){const s=e.data[a];f0(r[n]),s.contentQueries(2,t[a],a)}}}function ec(e,t){return e[Pr]?e[$u][St]=t:e[Pr]=t,e[$u]=t,t}function w8(e,t,r){f0(0);const n=dt(null);try{t(e,r)}finally{dt(n)}}function Fh(e){return e[a3]||(e[a3]=[])}function Bh(e){return e.cleanup||(e.cleanup=[])}function jh(e,t){const r=e[kn],n=r?r.get(gn,null):null;n&&n.handleError(t)}function V8(e,t,r,n,i){for(let a=0;a<r.length;){const s=r[a++],c=r[a++];Rh(e.data[s],t[s],n,c,i)}}function _n(e,t,r){const n=us(t,e);!function vd(e,t,r){e.setValue(t,r)}(e[he],n,r)}function tR(e,t){const r=Z2(t,e),n=r[Z];!function nR(e,t){for(let r=t.length;r<e.blueprint.length;r++)t.push(e.blueprint[r])}(n,r);const i=r[L1];null!==i&&null===r[dn]&&(r[dn]=i8(i,r[kn])),z8(n,r,r[E1])}function z8(e,t,r){u0(t);try{const n=e.viewQuery;null!==n&&w8(1,n,r);const i=e.template;null!==i&&xh(e,t,i,1,r),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Ph(e,t),e.staticViewQueries&&w8(2,e.viewQuery,r);const a=e.components;null!==a&&function rR(e,t){for(let r=0;r<t.length;r++)tR(e,t[r])}(t,a)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{t[ge]&=-5,d0()}}let Gh=(()=>{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(n,i,a){const s=typeof Zone>"u"?null:Zone.current,c=function pE(e,t,r){const n=Object.create(mE);r&&(n.consumerAllowSignalWrites=!0),n.fn=e,n.schedule=t;const i=s=>{n.cleanupFn=s};return n.ref={notify:()=>e9(n),run:()=>{if(n.dirty=!1,n.hasRun&&!t9(n))return;n.hasRun=!0;const s=X6(n);try{n.cleanupFn(),n.cleanupFn=l9,n.fn(i)}finally{e0(n,s)}},cleanup:()=>n.cleanupFn()},n.ref}(n,f=>{this.all.has(f)&&this.queue.set(f,s)},a);let o;this.all.add(c),c.notify();const l=()=>{c.cleanup(),o?.(),this.all.delete(c),this.queue.delete(c)};return o=i?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,i]of this.queue)this.queue.delete(n),i?i.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>new e}),t})();function tc(e,t,r){let n=r?e.styles:null,i=r?e.classes:null,a=0;if(null!==t)for(let s=0;s<t.length;s++){const c=t[s];"number"==typeof c?a=c:1==a?i=T6(i,c):2==a&&(n=T6(n,c+": "+t[++s]+";"))}r?e.styles=n:e.stylesWithoutHost=n,r?e.classes=i:e.classesWithoutHost=i}function di(e,t,r,n,i=!1){for(;null!==r;){const a=t[r.index];null!==a&&n.push(n1(a)),M2(a)&&$h(a,n);const s=r.type;if(8&s)di(e,t,r.child,n);else if(32&s){const c=x0(r,t);let o;for(;o=c();)n.push(o)}else if(16&s){const c=zd(t,r);if(Array.isArray(c))n.push(...c);else{const o=ti(t[T1]);di(o[Z],o,c,n,!0)}}r=i?r.projectionNext:r.next}return n}function $h(e,t){for(let r=s2;r<e.length;r++){const n=e[r],i=n[Z].firstChild;null!==i&&di(n[Z],n,i,t)}e[Wt]!==e[L1]&&t.push(e[Wt])}function nc(e,t,r,n=!0){const i=t[s3],a=i.rendererFactory,s=i.afterRenderEventManager;a.begin?.(),s?.begin();try{Wh(e,t,e.template,r)}catch(o){throw n&&jh(t,o),o}finally{a.end?.(),i.effectManager?.flush(),s?.end()}}function Wh(e,t,r,n){const i=t[ge];if(256!=(256&i)){t[s3].effectManager?.flush(),u0(t);try{g9(t),function w9(e){return oe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&xh(e,t,r,2,n);const s=3==(3&i);if(s){const l=e.preOrderCheckHooks;null!==l&&ps(t,l,null)}else{const l=e.preOrderHooks;null!==l&&ms(t,l,0,null),h0(t,0)}if(function sR(e){for(let t=pd(e);null!==t;t=md(t)){if(!t[qu])continue;const r=t[l3];for(let n=0;n<r.length;n++){VE(r[n])}}}(t),qh(t,2),null!==e.contentQueries&&Ph(e,t),s){const l=e.contentCheckHooks;null!==l&&ps(t,l)}else{const l=e.contentHooks;null!==l&&ms(t,l,1),h0(t,1)}!function NO(e,t){const r=e.hostBindingOpCodes;if(null===r)return;const n=wh(t,jr);try{for(let i=0;i<r.length;i++){const a=r[i];if(a<0)u4(~a);else{const s=a,c=r[++i],o=r[++i];RE(c,s),n.dirty=!1;const l=X6(n);try{o(2,t[s])}finally{e0(n,l)}}}}finally{null===t[jr]&&Vh(t,jr),u4(-1)}}(e,t);const c=e.components;null!==c&&Yh(t,c,0);const o=e.viewQuery;if(null!==o&&w8(2,o,n),s){const l=e.viewCheckHooks;null!==l&&ps(t,l)}else{const l=e.viewHooks;null!==l&&ms(t,l,2),h0(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[ge]&=-73,v9(t)}finally{d0()}}}function qh(e,t){for(let r=pd(e);null!==r;r=md(r))for(let n=s2;n<r.length;n++)Kh(r[n],t)}function cR(e,t,r){Kh(Z2(t,e),r)}function Kh(e,t){if(!function HE(e){return 128==(128&e[ge])}(e))return;const r=e[Z],n=e[ge];if(80&n&&0===t||1024&n||2===t)Wh(r,e,r.template,e[E1]);else if(e[kr]>0){qh(e,1);const i=r.components;null!==i&&Yh(e,i,1)}}function Yh(e,t,r){for(let n=0;n<t.length;n++)cR(e,t[n],r)}class hi{get rootNodes(){const t=this._lView,r=t[Z];return di(r,t,r.firstChild,[])}constructor(t,r){this._lView=t,this._cdRefInjectingView=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[E1]}set context(t){this._lView[E1]=t}get destroyed(){return 256==(256&this._lView[ge])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[m1];if(M2(t)){const r=t[8],n=r?r.indexOf(this):-1;n>-1&&(As(t,n),Ms(r,n))}this._attachedToViewContainer=!1}A0(this._lView[Z],this._lView)}onDestroy(t){!function C9(e,t){if(256==(256&e[ge]))throw new F(911,!1);null===e[Pn]&&(e[Pn]=[]),e[Pn].push(t)}(this._lView,t)}markForCheck(){fi(this._cdRefInjectingView||this._lView)}detach(){this._lView[ge]&=-129}reattach(){this._lView[ge]|=128}detectChanges(){nc(this._lView[Z],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function YT(e,t){ri(e,t,t[he],2,null,null)}(this._lView[Z],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=t}}class oR extends hi{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;nc(t[Z],t,t[E1],!1)}checkNoChanges(){}get context(){return null}}class Zh extends Zs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const r=Le(t);return new pi(r,this.ngModule)}}function Qh(e){const t=[];for(let r in e)e.hasOwnProperty(r)&&t.push({propName:e[r],templateName:r});return t}class fR{constructor(t,r){this.injector=t,this.parentInjector=r}get(t,r,n){n=rs(n);const i=this.injector.get(t,o8,n);return i!==o8||r===o8?i:this.parentInjector.get(t,r,n)}}class pi extends rh{get inputs(){const t=this.componentDef,r=t.inputTransforms,n=Qh(t.inputs);if(null!==r)for(const i of n)r.hasOwnProperty(i.propName)&&(i.transform=r[i.propName]);return n}get outputs(){return Qh(this.componentDef.outputs)}constructor(t,r){super(),this.componentDef=t,this.ngModule=r,this.componentType=t.type,this.selector=function YA(e){return e.map(KA).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!r}create(t,r,n,i){let a=(i=i||this.ngModule)instanceof k2?i:i?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const s=a?new fR(t,a):t,c=s.get(c8,null);if(null===c)throw new F(407,!1);const d={rendererFactory:c,sanitizer:s.get(sO,null),effectManager:s.get(Gh,null),afterRenderEventManager:s.get(m8,null)},m=c.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",w=n?function EO(e,t,r,n){const a=n.get(Mh,!1)||r===Vt.ShadowDom,s=e.selectRootElement(t,a);return function TO(e){Ah(e)}(s),s}(m,n,this.componentDef.encapsulation,s):Ns(m,g,function lR(e){const t=e.toLowerCase();return"svg"===t?h9:"math"===t?"math":null}(g)),T=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let D=null;null!==w&&(D=i8(w,s,!0));const U=M8(0,null,null,1,0,null,null,null,null,null,null),j=Xs(null,U,null,T,null,null,d,m,s,null,D);let q,ie;u0(j);try{const _e=this.componentDef;let He,ke=null;_e.findHostDirectiveDefs?(He=[],ke=new Map,_e.findHostDirectiveDefs(_e,He,ke),He.push(_e)):He=[_e];const z1=function dR(e,t){const r=e[Z],n=ze;return e[n]=t,R3(r,n,2,"#host",null)}(j,w),n2=function hR(e,t,r,n,i,a,s){const c=i[Z];!function pR(e,t,r,n){for(const i of e)t.mergedAttrs=Rr(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(tc(t,t.mergedAttrs,!0),null!==r&&xd(n,r,t))}(n,e,t,s);let o=null;null!==t&&(o=i8(t,i[kn]));const l=a.rendererFactory.createRenderer(t,r);let f=16;r.signals?f=4096:r.onPush&&(f=64);const d=Xs(i,Nh(r),null,f,i[e.index],e,a,l,null,null,o);return c.firstCreatePass&&b8(c,e,n.length-1),ec(i,d),i[e.index]=d}(z1,w,_e,He,j,d,m);ie=m9(U,ze),w&&function gR(e,t,r,n){if(n)K6(e,r,["ng-version",cO.full]);else{const{attrs:i,classes:a}=function ZA(e){const t=[],r=[];let n=1,i=2;for(;n<e.length;){let a=e[n];if("string"==typeof a)2===i?""!==a&&t.push(a,e[++n]):8===i&&r.push(a);else{if(!zt(i))break;i=a}n++}return{attrs:t,classes:r}}(t.selectors[0]);i&&K6(e,r,i),a&&a.length>0&&Ld(e,r,a.join(" "))}}(m,_e,w,n),void 0!==r&&function vR(e,t,r){const n=e.projection=[];for(let i=0;i<t.length;i++){const a=r[i];n.push(null!=a?Array.from(a):null)}}(ie,this.ngContentSelectors,r),q=function mR(e,t,r,n,i,a){const s=o2(),c=i[Z],o=I2(s,i);Ih(c,i,s,r,null,n);for(let f=0;f<r.length;f++)g2(d4(i,c,s.directiveStart+f,s),i);Oh(c,i,s),o&&g2(o,i);const l=d4(i,c,s.directiveStart+s.componentOffset,s);if(e[E1]=i[E1]=l,null!==a)for(const f of a)f(l,t);return v8(c,s,e),l}(n2,_e,He,ke,j,[_R]),z8(U,j,null)}finally{d0()}return new uR(this.componentType,q,T3(ie,j),j,ie)}}class uR extends eO{constructor(t,r,n,i,a){super(),this.location=n,this._rootLView=i,this._tNode=a,this.previousInputValues=null,this.instance=r,this.hostView=this.changeDetectorRef=new oR(i),this.componentType=t}setInput(t,r){const n=this._tNode.inputs;let i;if(null!==n&&(i=n[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),r))return;const a=this._rootLView;V8(a[Z],a,i,t,r),this.previousInputValues.set(t,r),fi(Z2(this._tNode.index,a))}}get injector(){return new H2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function _R(){const e=o2();hs(P()[Z],e)}function re(e){let t=function Jh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const n=[e];for(;t;){let i;if(Dt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new F(903,!1);i=t.\u0275dir}if(i){if(r){n.push(i);const s=e;s.inputs=rc(e.inputs),s.inputTransforms=rc(e.inputTransforms),s.declaredInputs=rc(e.declaredInputs),s.outputs=rc(e.outputs);const c=i.hostBindings;c&&bR(e,c);const o=i.viewQuery,l=i.contentQueries;if(o&&MR(e,o),l&&yR(e,l),Qa(e.inputs,i.inputs),Qa(e.declaredInputs,i.declaredInputs),Qa(e.outputs,i.outputs),null!==i.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),Qa(s.inputTransforms,i.inputTransforms)),Dt(i)&&i.data.animation){const f=e.data;f.animation=(f.animation||[]).concat(i.data.animation)}}const a=i.features;if(a)for(let s=0;s<a.length;s++){const c=a[s];c&&c.ngInherit&&c(e),c===re&&(r=!1)}}t=Object.getPrototypeOf(t)}!function CR(e){let t=0,r=null;for(let n=e.length-1;n>=0;n--){const i=e[n];i.hostVars=t+=i.hostVars,i.hostAttrs=Rr(i.hostAttrs,r=Rr(r,i.hostAttrs))}}(n)}function rc(e){return e===Gt?{}:e===Te?[]:e}function MR(e,t){const r=e.viewQuery;e.viewQuery=r?(n,i)=>{t(n,i),r(n,i)}:t}function yR(e,t){const r=e.contentQueries;e.contentQueries=r?(n,i,a)=>{t(n,i,a),r(n,i,a)}:t}function bR(e,t){const r=e.hostBindings;e.hostBindings=r?(n,i)=>{t(n,i),r(n,i)}:t}function np(e){const t=e.inputConfig,r={};for(const n in t)if(t.hasOwnProperty(n)){const i=t[n];Array.isArray(i)&&i[2]&&(r[n]=i[2])}e.inputTransforms=r}function ic(e){return!!function S8(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function v2(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function v4(e,t,r,n){const i=v2(e,t,r);return v2(e,t+1,n)||i}function B(e,t,r,n){const i=P();return v2(i,h3(),t)&&(xe(),Qt(y1(),i,e,t,r,n)),B}function P3(e,t,r,n){return v2(e,h3(),r)?t+de(r)+n:pe}function F3(e,t,r,n,i,a){const c=v4(e,function hn(){return oe.lFrame.bindingIndex}(),r,i);return pn(2),c?t+de(r)+n+de(i)+a:pe}function I(e,t,r,n,i,a,s,c){const o=P(),l=xe(),f=e+ze,d=l.firstCreatePass?function WR(e,t,r,n,i,a,s,c,o){const l=t.consts,f=R3(t,e,4,s||null,Bn(l,c));y8(t,r,f,Bn(l,o)),hs(t,f);const d=f.tView=M8(2,f,n,i,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,f),d.queries=t.queries.embeddedTView(f)),f}(f,l,o,t,r,n,i,a,s):l.data[f];Kt(d,!1);const m=mp(l,o,d,e);ds()&&Ts(l,o,m,d),g2(m,o),ec(o,o[f]=kh(m,o,m,d)),os(d)&&_8(l,o,d),null!=s&&C8(o,d,c)}let mp=function gp(e,t,r,n){return Un(!0),t[he].createComment("")};function P2(e){return function u3(e,t){return e[t]}(function IE(){return oe.lFrame.contextLView}(),ze+e)}function y(e,t,r){const n=P();return v2(n,h3(),t)&&X2(xe(),y1(),n,e,t,n[he],r,!1),y}function E8(e,t,r,n,i){const s=i?"class":"style";V8(e,r,t.inputs[s],s,n)}function p(e,t,r,n){const i=P(),a=xe(),s=ze+e,c=i[he],o=a.firstCreatePass?function ZR(e,t,r,n,i,a){const s=t.consts,o=R3(t,e,2,n,Bn(s,i));return y8(t,r,o,Bn(s,a)),null!==o.attrs&&tc(o,o.attrs,!1),null!==o.mergedAttrs&&tc(o,o.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,o),o}(s,a,i,t,r,n):a.data[s],l=vp(a,i,o,c,t,e);i[s]=l;const f=os(o);return Kt(o,!0),xd(c,l,o),32!=(32&o.flags)&&ds()&&Ts(a,i,l,o),0===function SE(){return oe.lFrame.elementDepthCount}()&&g2(l,i),function DE(){oe.lFrame.elementDepthCount++}(),f&&(_8(a,i,o),v8(a,o,i)),null!==n&&C8(i,o),p}function v(){let e=o2();s0()?c0():(e=e.parent,Kt(e,!1));const t=e;(function xE(e){return oe.skipHydrationRootTNode===e})(t)&&function TE(){oe.skipHydrationRootTNode=null}(),function LE(){oe.lFrame.elementDepthCount--}();const r=xe();return r.firstCreatePass&&(hs(r,e),Z6(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function qE(e){return 0!=(8&e.flags)}(t)&&E8(r,t,P(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function KE(e){return 0!=(16&e.flags)}(t)&&E8(r,t,P(),t.stylesWithoutHost,!1),v}function R(e,t,r,n){return p(e,t,r,n),v(),R}let vp=(e,t,r,n,i,a)=>(Un(!0),Ns(n,i,function A9(){return oe.lFrame.currentNamespace}()));function b1(){return P()}function Mi(e){return!!e&&"function"==typeof e.then}function Mp(e){return!!e&&"function"==typeof e.subscribe}function O(e,t,r,n){const i=P(),a=xe(),s=o2();return function bp(e,t,r,n,i,a,s){const c=os(n),l=e.firstCreatePass&&Bh(e),f=t[E1],d=Fh(t);let m=!0;if(3&n.type||s){const z=I2(n,t),L=s?s(z):z,T=d.length,D=s?j=>s(n1(j[n.index])):n.index;let U=null;if(!s&&c&&(U=function nk(e,t,r,n){const i=e.cleanup;if(null!=i)for(let a=0;a<i.length-1;a+=2){const s=i[a];if(s===r&&i[a+1]===n){const c=t[a3],o=i[a+2];return c.length>o?c[o]:null}"string"==typeof s&&(a+=2)}return null}(e,t,i,n.index)),null!==U)(U.__ngLastListenerFn__||U).__ngNextListenerFn__=a,U.__ngLastListenerFn__=a,m=!1;else{a=wp(n,t,f,a,!1);const j=r.listen(L,i,a);d.push(a,j),l&&l.push(i,D,T,T+1)}}else a=wp(n,t,f,a,!1);const g=n.outputs;let w;if(m&&null!==g&&(w=g[i])){const z=w.length;if(z)for(let L=0;L<z;L+=2){const q=t[w[L]][w[L+1]].subscribe(a),ie=d.length;d.push(a,q),l&&l.push(i,n.index,ie,-(ie+1))}}}(a,i,i[he],s,e,t,n),O}function Hp(e,t,r,n){try{return qt(6,t,r),!1!==r(n)}catch(i){return jh(e,i),!1}finally{qt(7,t,r)}}function wp(e,t,r,n,i){return function a(s){if(s===Function)return n;fi(e.componentOffset>-1?Z2(e.index,t):t);let o=Hp(t,r,n,s),l=a.__ngNextListenerFn__;for(;l;)o=Hp(t,r,l,s)&&o,l=l.__ngNextListenerFn__;return i&&!1===o&&s.preventDefault(),o}}function x(e=1){return function FE(e){return(oe.lFrame.contextLView=function BE(e,t){for(;e>0;)t=t[c3],e--;return t}(e,oe.lFrame.contextLView))[E1]}(e)}function rk(e,t){let r=null;const n=function GA(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let i=0;i<t.length;i++){const a=t[i];if("*"!==a){if(null===n?Fu(e,a,!0):qA(n,a))return i}else r=i}return r}function q3(e){const t=P()[T1][m2];if(!t.projection){const n=t.projection=Jr(e?e.length:1,null),i=n.slice();let a=t.child;for(;null!==a;){const s=e?rk(a,e):0;null!==s&&(i[s]?i[s].projectionNext=a:n[s]=a,i[s]=a),a=a.next}}}function K3(e,t=0,r){const n=P(),i=xe(),a=R3(i,ze+e,16,null,r||null);null===a.projection&&(a.projection=t),c0(),(!n[dn]||d3())&&32!=(32&a.flags)&&function rI(e,t,r){Dd(t[he],0,t,r,T0(e,r,t),bd(r.parent||t[m2],r,t))}(i,n,a)}function O8(e,t,r){return Y3(e,"",t,"",r),O8}function Y3(e,t,r,n,i){const a=P(),s=P3(a,t,r,n);return s!==pe&&X2(xe(),y1(),a,e,s,a[he],i,!1),Y3}function lc(e,t){return e<<17|t<<2}function Gn(e){return e>>17&32767}function R8(e){return 2|e}function _4(e){return(131068&e)>>2}function k8(e,t){return-131069&e|t<<2}function P8(e){return 1|e}function Ep(e,t,r,n,i){const a=e[r+1],s=null===t;let c=n?Gn(a):_4(a),o=!1;for(;0!==c&&(!1===o||s);){const f=e[c+1];lk(e[c],t)&&(o=!0,e[c+1]=n?P8(f):R8(f)),c=n?Gn(f):_4(f)}o&&(e[r+1]=n?R8(a):P8(a))}function lk(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&H3(e,t)>=0}const W1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Tp(e){return e.substring(W1.key,W1.keyEnd)}function Ip(e,t){const r=W1.textEnd;return r===t?-1:(t=W1.keyEnd=function hk(e,t,r){for(;t<r&&e.charCodeAt(t)>32;)t++;return t}(e,W1.key=t,r),Z3(e,t,r))}function Z3(e,t,r){for(;t<r&&e.charCodeAt(t)<=32;)t++;return t}function De(e,t){return function Lt(e,t,r,n){const i=P(),a=xe(),s=pn(2);a.firstUpdatePass&&Up(a,e,s,n),t!==pe&&v2(i,s,t)&&Gp(a,a.data[b2()],i,i[he],e,i[s+1]=function wk(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=G1(J2(e)))),e}(t,r),n,s)}(e,t,null,!0),De}function Cn(e){!function xt(e,t,r,n){const i=xe(),a=pn(2);i.firstUpdatePass&&Up(i,null,a,n);const s=P();if(r!==pe&&v2(s,a,r)){const c=i.data[b2()];if(Wp(c,n)&&!Bp(i,a)){let o=n?c.classesWithoutHost:c.stylesWithoutHost;null!==o&&(r=T6(o,r||"")),E8(i,c,s,r,n)}else!function Hk(e,t,r,n,i,a,s,c){i===pe&&(i=Te);let o=0,l=0,f=0<i.length?i[0]:null,d=0<a.length?a[0]:null;for(;null!==f||null!==d;){const m=o<i.length?i[o+1]:void 0,g=l<a.length?a[l+1]:void 0;let z,w=null;f===d?(o+=2,l+=2,m!==g&&(w=d,z=g)):null===d||null!==f&&f<d?(o+=2,w=f):(l+=2,w=d,z=g),null!==w&&Gp(e,t,r,n,w,z,s,c),f=o<i.length?i[o]:null,d=l<a.length?a[l]:null}}(i,c,s,s[he],s[a+1],s[a+1]=function yk(e,t,r){if(null==r||""===r)return Te;const n=[],i=J2(r);if(Array.isArray(i))for(let a=0;a<i.length;a++)e(n,i[a],!0);else if("object"==typeof i)for(const a in i)i.hasOwnProperty(a)&&e(n,a,i[a]);else"string"==typeof i&&t(n,i);return n}(e,t,r),n,a)}}(bk,en,e,!0)}function en(e,t){for(let r=function uk(e){return function Rp(e){W1.key=0,W1.keyEnd=0,W1.value=0,W1.valueEnd=0,W1.textEnd=e.length}(e),Ip(e,Z3(e,0,W1.textEnd))}(t);r>=0;r=Ip(t,r))Q2(e,Tp(t),!0)}function Bp(e,t){return t>=e.expandoStartIndex}function Up(e,t,r,n){const i=e.data;if(null===i[r+1]){const a=i[b2()],s=Bp(e,r);Wp(a,n)&&null===t&&!s&&(t=!1),t=function vk(e,t,r,n){const i=function l0(e){const t=oe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=n?t.residualClasses:t.residualStyles;if(null===i)0===(n?t.classBindings:t.styleBindings)&&(r=yi(r=F8(null,e,t,r,n),t.attrs,n),a=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(r=F8(i,e,t,r,n),null===a){let o=function _k(e,t,r){const n=r?t.classBindings:t.styleBindings;if(0!==_4(n))return e[Gn(n)]}(e,t,n);void 0!==o&&Array.isArray(o)&&(o=F8(null,e,t,o[1],n),o=yi(o,t.attrs,n),function Ck(e,t,r,n){e[Gn(r?t.classBindings:t.styleBindings)]=n}(e,t,n,o))}else a=function Mk(e,t,r){let n;const i=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<i;a++)n=yi(n,e[a].hostAttrs,r);return yi(n,t.attrs,r)}(e,t,n)}return void 0!==a&&(n?t.residualClasses=a:t.residualStyles=a),r}(i,a,t,n),function ck(e,t,r,n,i,a){let s=a?t.classBindings:t.styleBindings,c=Gn(s),o=_4(s);e[n]=r;let f,l=!1;if(Array.isArray(r)?(f=r[1],(null===f||H3(r,f)>0)&&(l=!0)):f=r,i)if(0!==o){const m=Gn(e[c+1]);e[n+1]=lc(m,c),0!==m&&(e[m+1]=k8(e[m+1],n)),e[c+1]=function ak(e,t){return 131071&e|t<<17}(e[c+1],n)}else e[n+1]=lc(c,0),0!==c&&(e[c+1]=k8(e[c+1],n)),c=n;else e[n+1]=lc(o,0),0===c?c=n:e[o+1]=k8(e[o+1],n),o=n;l&&(e[n+1]=R8(e[n+1])),Ep(e,f,n,!0),Ep(e,f,n,!1),function ok(e,t,r,n,i){const a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&H3(a,t)>=0&&(r[n+1]=P8(r[n+1]))}(t,f,e,n,a),s=lc(c,o),a?t.classBindings=s:t.styleBindings=s}(i,a,t,r,s,n)}}function F8(e,t,r,n,i){let a=null;const s=r.directiveEnd;let c=r.directiveStylingLast;for(-1===c?c=r.directiveStart:c++;c<s&&(a=t[c],n=yi(n,a.hostAttrs,i),a!==e);)c++;return null!==e&&(r.directiveStylingLast=c),n}function yi(e,t,r){const n=r?1:2;let i=-1;if(null!==t)for(let a=0;a<t.length;a++){const s=t[a];"number"==typeof s?i=s:i===n&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Q2(e,s,!!r||t[++a]))}return void 0===e?null:e}function bk(e,t,r){const n=String(t);""!==n&&!n.includes(" ")&&Q2(e,n,r)}function Gp(e,t,r,n,i,a,s,c){if(!(3&t.type))return;const o=e.data,l=o[c+1],f=function sk(e){return 1==(1&e)}(l)?$p(o,t,r,i,_4(l),s):void 0;fc(f)||(fc(a)||function ik(e){return 2==(2&e)}(l)&&(a=$p(o,null,r,i,c,s)),function aI(e,t,r,n,i){if(t)i?e.addClass(r,n):e.removeClass(r,n);else{let a=-1===n.indexOf("-")?void 0:jn.DashCase;null==i?e.removeStyle(r,n,a):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),a|=jn.Important),e.setStyle(r,n,i,a))}}(n,s,us(b2(),r),i,a))}function $p(e,t,r,n,i,a){const s=null===t;let c;for(;i>0;){const o=e[i],l=Array.isArray(o),f=l?o[1]:o,d=null===f;let m=r[i+1];m===pe&&(m=d?Te:void 0);let g=d?y0(m,n):f===n?m:void 0;if(l&&!fc(g)&&(g=y0(o,n)),fc(g)&&(c=g,s))return c;const w=e[i+1];i=s?Gn(w):_4(w)}if(null!==t){let o=a?t.residualClasses:t.residualStyles;null!=o&&(c=y0(o,n))}return c}function fc(e){return void 0!==e}function Wp(e,t){return 0!=(e.flags&(t?8:16))}function M(e,t=""){const r=P(),n=xe(),i=e+ze,a=n.firstCreatePass?R3(n,i,1,t,null):n.data[i],s=qp(n,r,a,t,e);r[i]=s,ds()&&Ts(n,r,s,a),Kt(a,!1)}let qp=(e,t,r,n,i)=>(Un(!0),function xs(e,t){return e.createText(t)}(t[he],n));function F2(e){return B2("",e,""),F2}function B2(e,t,r){const n=P(),i=P3(n,e,t,r);return i!==pe&&_n(n,b2(),i),B2}function Q3(e,t,r,n,i){const a=P(),s=F3(a,e,t,r,n,i);return s!==pe&&_n(a,b2(),s),Q3}function w2(e,t,r){const n=P();return v2(n,h3(),t)&&X2(xe(),y1(),n,e,t,n[he],r,!0),w2}const X3="en-US";let hm=X3;function j8(e,t,r,n,i){if(e=fe(e),Array.isArray(e))for(let a=0;a<e.length;a++)j8(e[a],t,r,n,i);else{const a=xe(),s=P(),c=o2();let o=g4(e)?e:fe(e.provide);const l=Qd(e),f=1048575&c.providerIndexes,d=c.directiveStart,m=c.providerIndexes>>20;if(g4(e)||!e.multi){const g=new qr(l,i,H),w=$8(o,t,i?f:f+m,d);-1===w?(_0(vs(c,s),a,o),G8(a,e,t.length),t.push(o),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),r.push(g),s.push(g)):(r[w]=g,s[w]=g)}else{const g=$8(o,t,f+m,d),w=$8(o,t,f,f+m),L=w>=0&&r[w];if(i&&!L||!i&&!(g>=0&&r[g])){_0(vs(c,s),a,o);const T=function GP(e,t,r,n,i){const a=new qr(e,r,H);return a.multi=[],a.index=t,a.componentProviders=0,km(a,i,n&&!r),a}(i?jP:UP,r.length,i,n,l);!i&&L&&(r[w].providerFactory=T),G8(a,e,t.length,0),t.push(o),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),r.push(T),s.push(T)}else G8(a,e,g>-1?g:w,km(r[i?w:g],l,!i&&n));!i&&n&&L&&r[w].componentProviders++}}}function G8(e,t,r,n){const i=g4(t),a=function RI(e){return!!e.useClass}(t);if(i||a){const o=(a?fe(t.useClass):t).prototype.ngOnDestroy;if(o){const l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const f=l.indexOf(r);-1===f?l.push(r,[n,o]):l[f+1].push(n,o)}else l.push(r,o)}}}function km(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function $8(e,t,r,n){for(let i=r;i<n;i++)if(t[i]===e)return i;return-1}function UP(e,t,r,n){return W8(this.multi,[])}function jP(e,t,r,n){const i=this.multi;let a;if(this.providerFactory){const s=this.providerFactory.componentProviders,c=d4(r,r[Z],this.providerFactory.index,n);a=c.slice(0,s),W8(i,a);for(let o=s;o<c.length;o++)a.push(c[o])}else a=[],W8(i,a);return a}function W8(e,t){for(let r=0;r<e.length;r++)t.push((0,e[r])());return t}function Ze(e,t=[]){return r=>{r.providersResolver=(n,i)=>function BP(e,t,r){const n=xe();if(n.firstCreatePass){const i=Dt(e);j8(r,n.data,n.blueprint,i,!0),j8(t,n.data,n.blueprint,i,!1)}}(n,i?i(e):e,t)}}class M4{}class Pm{}class q8 extends M4{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zh(this);const i=Y2(t);this._bootstrapComponents=vn(i.bootstrap),this._r3Injector=lh(t,r,[{provide:M4,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver},...n],G1(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class K8 extends Pm{constructor(t){super(),this.moduleType=t}create(t){return new q8(this.moduleType,t,[])}}class Fm extends M4{constructor(t){super(),this.componentFactoryResolver=new Zh(this),this.instance=null;const r=new js([...t.providers,{provide:M4,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver}],t.parent||Us(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Y8(e,t,r=null){return new Fm({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let qP=(()=>{var e;class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const i=qd(0,n.type),a=i.length>0?Y8([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,a)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=K({token:e,providedIn:"environment",factory:()=>new e(Y(k2))}),t})();function z2(e){e.getStandaloneInjector=t=>t.get(qP).getOrCreateStandaloneInjector(e)}function Li(e,t,r,n,i){return function Km(e,t,r,n,i,a,s){const c=t+r;return v4(e,c,i,a)?function Jt(e,t,r){return e[t]=r}(e,c+2,s?n.call(s,i,a):n(i,a)):function xi(e,t){const r=e[t];return r===pe?void 0:r}(e,c+2)}(P(),function y2(){const e=oe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,r,n,i)}function gF(){return this._results[Symbol.iterator]()}class J8{get changes(){return this._changes||(this._changes=new ee)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const r=J8.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=gF)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){const n=this;n.dirty=!1;const i=function ht(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function oT(e,t,r){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],a=t[n];if(r&&(i=r(i),a=r(a)),a!==i)return!1}return!0}(n._results,i,r))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function _F(e,t,r,n=!0){const i=t[Z];if(function QT(e,t,r,n){const i=s2+n,a=r.length;n>0&&(r[i-1][St]=t),n<a-s2?(t[St]=r[i],q9(r,s2+n,t)):(r.push(t),t[St]=null),t[m1]=r;const s=t[Fr];null!==s&&r!==s&&function JT(e,t){const r=e[l3];t[T1]!==t[m1][m1][T1]&&(e[qu]=!0),null===r?e[l3]=[t]:r.push(t)}(s,t);const c=t[$t];null!==c&&c.insertView(e),t[ge]|=128}(i,t,e,r),n){const a=O0(r,e),s=t[he],c=Es(s,e[Wt]);null!==c&&function KT(e,t,r,n,i,a){n[L1]=i,n[m2]=t,ri(e,n,r,1,i,a)}(i,e[m2],s,t,c,a)}}let c1=(()=>{class t{}return t.__NG_ELEMENT_ID__=yF,t})();const CF=c1,MF=class extends CF{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){const i=function vF(e,t,r,n){const i=t.tView,c=Xs(e,i,r,4096&e[ge]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);c[Fr]=e[t.index];const l=e[$t];return null!==l&&(c[$t]=l.createEmbeddedView(i)),z8(i,c,r),c}(this._declarationLView,this._declarationTContainer,t,{injector:r,hydrationInfo:n});return new hi(i)}};function yF(){return mc(o2(),P())}function mc(e,t){return 4&e.type?new MF(t,e,T3(e,t)):null}let j2=(()=>{class t{}return t.__NG_ELEMENT_ID__=SF,t})();function SF(){return ig(o2(),P())}const DF=j2,ng=class extends DF{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return T3(this._hostTNode,this._hostLView)}get injector(){return new H2(this._hostTNode,this._hostLView)}get parentInjector(){const t=_s(this._hostTNode,this._hostLView);if(m0(t)){const r=Yr(t,this._hostLView),n=Kr(t);return new H2(r[Z].data[n+8],r)}return new H2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=rg(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-s2}createEmbeddedView(t,r,n){let i,a;"number"==typeof n?i=n:null!=n&&(i=n.index,a=n.injector);const c=t.createEmbeddedViewImpl(r||{},a,null);return this.insertImpl(c,i,false),c}createComponent(t,r,n,i,a){const s=t&&!function Qr(e){return"function"==typeof e}(t);let c;if(s)c=r;else{const z=r||{};c=z.index,n=z.injector,i=z.projectableNodes,a=z.environmentInjector||z.ngModuleRef}const o=s?t:new pi(Le(t)),l=n||this.parentInjector;if(!a&&null==o.ngModule){const L=(s?l:this.parentInjector).get(k2,null);L&&(a=L)}Le(o.componentType??{});const g=o.create(l,i,null,a);return this.insertImpl(g.hostView,c,false),g}insert(t,r){return this.insertImpl(t,r,!1)}insertImpl(t,r,n){const i=t._lView;if(function wE(e){return M2(e[m1])}(i)){const o=this.indexOf(t);if(-1!==o)this.detach(o);else{const l=i[m1],f=new ng(l,l[m2],l[m1]);f.detach(f.indexOf(t))}}const s=this._adjustIndex(r),c=this._lContainer;return _F(c,i,s,!n),t.attachToViewContainerRef(),q9(X8(c),s,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=rg(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),n=As(this._lContainer,r);n&&(Ms(X8(this._lContainer),r),A0(n[Z],n))}detach(t){const r=this._adjustIndex(t,-1),n=As(this._lContainer,r);return n&&null!=Ms(X8(this._lContainer),r)?new hi(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function rg(e){return e[8]}function X8(e){return e[8]||(e[8]=[])}function ig(e,t){let r;const n=t[e.index];return M2(n)?r=n:(r=kh(n,t,null,e),t[e.index]=r,ec(t,r)),ag(r,t,e,n),new ng(r,e,t)}let ag=function sg(e,t,r,n){if(e[Wt])return;let i;i=8&r.type?n1(n):function LF(e,t){const r=e[he],n=r.createComment(""),i=I2(t,e);return p4(r,Es(r,i),n,function nI(e,t){return e.nextSibling(t)}(r,i),!1),n}(t,r),e[Wt]=i};class el{constructor(t){this.queryList=t,this.matches=null}clone(){return new el(this.queryList)}setDirty(){this.queryList.setDirty()}}class tl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const n=null!==t.contentQueries?t.contentQueries[0]:r.length,i=[];for(let a=0;a<n;a++){const s=r.getByIndex(a);i.push(this.queries[s.indexInDeclarationView].clone())}return new tl(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let r=0;r<this.queries.length;r++)null!==ug(t,r).matches&&this.queries[r].setDirty()}}class cg{constructor(t,r,n=null){this.predicate=t,this.flags=r,this.read=n}}class nl{constructor(t=[]){this.queries=t}elementStart(t,r){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,r)}elementEnd(t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementEnd(t)}embeddedTView(t){let r=null;for(let n=0;n<this.length;n++){const i=null!==r?r.length:0,a=this.getByIndex(n).embeddedTView(t,i);a&&(a.indexInDeclarationView=n,null!==r?r.push(a):r=[a])}return null!==r?new nl(r):null}template(t,r){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,r)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class rl{constructor(t,r=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=r}elementStart(t,r){this.isApplyingToNode(r)&&this.matchTNode(t,r)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,r){this.elementStart(t,r)}embeddedTView(t,r){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,r),new rl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const r=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==r;)n=n.parent;return r===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,r){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const a=n[i];this.matchTNodeWithReadOption(t,r,AF(r,a)),this.matchTNodeWithReadOption(t,r,Cs(r,t,a,!1,!1))}else n===c1?4&r.type&&this.matchTNodeWithReadOption(t,r,-1):this.matchTNodeWithReadOption(t,r,Cs(r,t,n,!1,!1))}matchTNodeWithReadOption(t,r,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Ne||i===j2||i===c1&&4&r.type)this.addMatch(r.index,-2);else{const a=Cs(r,t,i,!1,!1);null!==a&&this.addMatch(r.index,a)}else this.addMatch(r.index,n)}}addMatch(t,r){null===this.matches?this.matches=[t,r]:this.matches.push(t,r)}}function AF(e,t){const r=e.localNames;if(null!==r)for(let n=0;n<r.length;n+=2)if(r[n]===t)return r[n+1];return null}function TF(e,t,r,n){return-1===r?function EF(e,t){return 11&e.type?T3(e,t):4&e.type?mc(e,t):null}(t,e):-2===r?function IF(e,t,r){return r===Ne?T3(t,e):r===c1?mc(t,e):r===j2?ig(t,e):void 0}(e,t,n):d4(e,e[Z],r,t)}function og(e,t,r,n){const i=t[$t].queries[n];if(null===i.matches){const a=e.data,s=r.matches,c=[];for(let o=0;o<s.length;o+=2){const l=s[o];c.push(l<0?null:TF(t,a[l],s[o+1],r.metadata.read))}i.matches=c}return i.matches}function il(e,t,r,n){const i=e.queries.getByIndex(r),a=i.matches;if(null!==a){const s=og(e,t,i,r);for(let c=0;c<a.length;c+=2){const o=a[c];if(o>0)n.push(s[c/2]);else{const l=a[c+1],f=t[-o];for(let d=s2;d<f.length;d++){const m=f[d];m[Fr]===m[m1]&&il(m[Z],m,l,n)}if(null!==f[l3]){const d=f[l3];for(let m=0;m<d.length;m++){const g=d[m];il(g[Z],g,l,n)}}}}}return n}function je(e){const t=P(),r=xe(),n=z9();f0(n+1);const i=ug(r,n);if(e.dirty&&function bE(e){return 4==(4&e[ge])}(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const a=i.crossesNgTemplate?il(r,t,n,[]):og(r,t,i,n);e.reset(a,iO),e.notifyOnChanges()}return!0}return!1}function H1(e,t,r,n){const i=xe();if(i.firstCreatePass){const a=o2();fg(i,new cg(t,r,n),a.index),function RF(e,t){const r=e.contentQueries||(e.contentQueries=[]);t!==(r.length?r[r.length-1]:-1)&&r.push(e.queries.length-1,t)}(i,e),2==(2&r)&&(i.staticContentQueries=!0)}lg(i,P(),r)}function Ge(){return function OF(e,t){return e[$t].queries[t].queryList}(P(),z9())}function lg(e,t,r){const n=new J8(4==(4&r));(function RO(e,t,r,n){const i=Fh(t);i.push(r),e.firstCreatePass&&Bh(e).push(n,i.length-1)})(e,t,n,n.destroy),null===t[$t]&&(t[$t]=new tl),t[$t].queries.push(new el(n))}function fg(e,t,r){null===e.queries&&(e.queries=new nl),e.queries.track(new rl(t,r))}function ug(e,t){return e.queries.getByIndex(t)}function S2(e,t){return mc(e,t)}const fl=new te("Application Initializer");let ul=(()=>{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=J(fl,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const a of this.appInits){const s=a();if(Mi(s))n.push(s);else if(Mp(s)){const c=new Promise((o,l)=>{s.subscribe({complete:o,error:l})});n.push(c)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(a=>{this.reject(a)}),0===n.length&&i(),this.initialized=!0}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Dg=(()=>{var e;class t{log(n){console.log(n)}warn(n){console.warn(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const Nt=new te("LocaleId",{providedIn:"root",factory:()=>J(Nt,Ve.Optional|Ve.SkipSelf)||function iB(){return typeof $localize<"u"&&$localize.locale||X3}()});let Lg=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ft(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class cB{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let xg=(()=>{var e;class t{compileModuleSync(n){return new K8(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=vn(Y2(n).declarations).reduce((c,o)=>{const l=Le(o);return l&&c.push(new pi(l)),c},[]);return new cB(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Tg=new te(""),Cc=new te("");let gl,pl=(()=>{var e;class t{constructor(n,i,a){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gl||(function SB(e){gl=e}(a),a.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,a){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}whenStable(n,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(n,i,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,a){return[]}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(ye),Y(ml),Y(Cc))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})(),ml=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return gl?.findTestabilityInTree(this,n,i)??null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),$n=null;const Ig=new te("AllowMultipleToken"),vl=new te("PlatformDestroyListeners"),_l=new te("appBootstrapListener");class Rg{constructor(t,r){this.name=t,this.token=r}}function Pg(e,t,r=[]){const n=`Platform: ${t}`,i=new te(n);return(a=[])=>{let s=Cl();if(!s||s.injector.get(Ig,!1)){const c=[...r,...a,{provide:i,useValue:!0}];e?e(c):function xB(e){if($n&&!$n.get(Ig,!1))throw new F(400,!1);(function Og(){!function lE(e){a9=e}(()=>{throw new F(600,!1)})})(),$n=e;const t=e.get(Bg);(function kg(e){e.get(Jd,null)?.forEach(r=>r())})(e)}(function Fg(e=[],t){return B1.create({name:t,providers:[{provide:q0,useValue:"platform"},{provide:vl,useValue:new Set([()=>$n=null])},...e]})}(c,n))}return function AB(e){const t=Cl();if(!t)throw new F(401,!1);return t}()}}function Cl(){return $n?.get(Bg)??null}let Bg=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const a=function EB(e="zone.js",t){return"noop"===e?new CO:"zone.js"===e?new ye(t):e}(i?.ngZone,function Ug(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return a.run(()=>{const s=function WP(e,t,r){return new q8(e,t,r)}(n.moduleType,this.injector,function qg(e){return[{provide:ye,useFactory:e},{provide:si,multi:!0,useFactory:()=>{const t=J(IB,{optional:!0});return()=>t.initialize()}},{provide:Wg,useFactory:TB},{provide:ph,useFactory:mh}]}(()=>a)),c=s.injector.get(gn,null);return a.runOutsideAngular(()=>{const o=a.onError.subscribe({next:l=>{c.handleError(l)}});s.onDestroy(()=>{Mc(this._modules,s),o.unsubscribe()})}),function jg(e,t,r){try{const n=r();return Mi(n)?n.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(c,a,()=>{const o=s.injector.get(ul);return o.runInitializers(),o.donePromise.then(()=>(function pm(e){ut(e,"Expected localeId to be defined"),"string"==typeof e&&(hm=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(Nt,X3)||X3),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,i=[]){const a=Gg({},i);return function DB(e,t,r){const n=new K8(r);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,a))}_moduleDoBootstrap(n){const i=n.injector.get(tn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>i.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new F(-403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(vl,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(B1))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function Gg(e,t){return Array.isArray(t)?t.reduce(Gg,e):{...e,...t}}let tn=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=J(Wg),this.zoneIsStable=J(ph),this.componentTypes=[],this.components=[],this.isStable=J(Lg).hasPendingTasks.pipe(wt(n=>n?ae(!1):this.zoneIsStable),function Hu(e,t=Ht){return e=e??yA,d1((r,n)=>{let i,a=!0;r.subscribe(qe(n,s=>{const c=t(s);(a||!e(i,c))&&(a=!1,i=c,n.next(s))}))})}(),A6()),this._injector=J(k2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){const a=n instanceof rh;if(!this._injector.get(ul).done)throw!a&&function i3(e){const t=Le(e)||a2(e)||C2(e);return null!==t&&t.standalone}(n),new F(405,!1);let c;c=a?n:this._injector.get(Zs).resolveComponentFactory(n),this.componentTypes.push(c.componentType);const o=function LB(e){return e.isBoundToModule}(c)?void 0:this._injector.get(M4),f=c.create(B1.NULL,[],i||c.selector,o),d=f.location.nativeElement,m=f.injector.get(Tg,null);return m?.registerApplication(d),f.onDestroy(()=>{this.detachView(f.hostView),Mc(this.components,f),m?.unregisterApplication(d)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new F(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Mc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const i=this._injector.get(_l,[]);i.push(...this._bootstrapListeners),i.forEach(a=>a(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Mc(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new F(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Mc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Wg=new te("",{providedIn:"root",factory:()=>J(gn).handleError.bind(void 0)});function TB(){const e=J(ye),t=J(gn);return r=>e.runOutsideAngular(()=>t.handleError(r))}let IB=(()=>{var e;class t{constructor(){this.zone=J(ye),this.applicationRef=J(tn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();let et=(()=>{class t{}return t.__NG_ELEMENT_ID__=RB,t})();function RB(e){return function kB(e,t,r){if(l4(e)&&!r){const n=Z2(e.index,t);return new hi(n,n)}return 47&e.type?new hi(t[T1],t):null}(o2(),P(),16==(16&e))}class Qg{constructor(){}supports(t){return ic(t)}create(t){return new GB(t)}}const jB=(e,t)=>t;class GB{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||jB}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,n=this._removalsHead,i=0,a=null;for(;r||n;){const s=!n||r&&r.currentIndex<Xg(n,i,a)?r:n,c=Xg(s,i,a),o=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(r=r._next,null==s.previousIndex)i++;else{a||(a=[]);const l=c-i,f=o-i;if(l!=f){for(let m=0;m<l;m++){const g=m<a.length?a[m]:a[m]=0,w=g+m;f<=w&&w<l&&(a[m]=g+1)}a[s.previousIndex]=f-l}}c!==o&&t(s,c,o)}}forEachPreviousItem(t){let r;for(r=this._previousItHead;null!==r;r=r._nextPrevious)t(r)}forEachAddedItem(t){let r;for(r=this._additionsHead;null!==r;r=r._nextAdded)t(r)}forEachMovedItem(t){let r;for(r=this._movesHead;null!==r;r=r._nextMoved)t(r)}forEachRemovedItem(t){let r;for(r=this._removalsHead;null!==r;r=r._nextRemoved)t(r)}forEachIdentityChange(t){let r;for(r=this._identityChangesHead;null!==r;r=r._nextIdentityChange)t(r)}diff(t){if(null==t&&(t=[]),!ic(t))throw new F(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,a,s,r=this._itHead,n=!1;if(Array.isArray(t)){this.length=t.length;for(let c=0;c<this.length;c++)a=t[c],s=this._trackByFn(c,a),null!==r&&Object.is(r.trackById,s)?(n&&(r=this._verifyReinsertion(r,a,s,c)),Object.is(r.item,a)||this._addIdentityChange(r,a)):(r=this._mismatch(r,a,s,c),n=!0),r=r._next}else i=0,function DR(e,t){if(Array.isArray(e))for(let r=0;r<e.length;r++)t(e[r]);else{const r=e[Symbol.iterator]();let n;for(;!(n=r.next()).done;)t(n.value)}}(t,c=>{s=this._trackByFn(i,c),null!==r&&Object.is(r.trackById,s)?(n&&(r=this._verifyReinsertion(r,c,s,i)),Object.is(r.item,c)||this._addIdentityChange(r,c)):(r=this._mismatch(r,c,s,i),n=!0),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,n,i){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,a,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,a,i)):t=this._addAfter(new $B(r,n),a,i),t}_verifyReinsertion(t,r,n,i){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==a?t=this._reinsertAfter(a,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,a=t._nextRemoved;return null===i?this._removalsHead=a:i._nextRemoved=a,null===a?this._removalsTail=i:a._prevRemoved=i,this._insertAfter(t,r,n),this._addToMoves(t,n),t}_moveAfter(t,r,n){return this._unlink(t),this._insertAfter(t,r,n),this._addToMoves(t,n),t}_addAfter(t,r,n){return this._insertAfter(t,r,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,n){const i=null===r?this._itHead:r._next;return t._next=i,t._prev=r,null===i?this._itTail=t:i._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new Jg),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,n=t._next;return null===r?this._itHead=n:r._next=n,null===n?this._itTail=r:n._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Jg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class $B{constructor(t,r){this.item=t,this.trackById=r,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 WB{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===r||r<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const r=t._prevDup,n=t._nextDup;return null===r?this._head=n:r._nextDup=n,null===n?this._tail=r:n._prevDup=r,null===this._head}}class Jg{constructor(){this.map=new Map}put(t){const r=t.trackById;let n=this.map.get(r);n||(n=new WB,this.map.set(r,n)),n.add(t)}get(t,r){const i=this.map.get(t);return i?i.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Xg(e,t,r){const n=e.previousIndex;if(null===n)return n;let i=0;return r&&n<r.length&&(i=r[n]),n+t+i}function tv(){return new Hc([new Qg])}let Hc=(()=>{var e;class t{constructor(n){this.factories=n}static create(n,i){if(null!=i){const a=i.factories.slice();n=n.concat(a)}return new t(n)}static extend(n){return{provide:t,useFactory:i=>t.create(n,i||tv()),deps:[[t,new Hs,new bs]]}}find(n){const i=this.factories.find(a=>a.supports(n));if(null!=i)return i;throw new F(901,!1)}}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:tv}),t})();const QB=Pg(null,"core",[]);let JB=(()=>{var e;class t{constructor(n){}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(tn))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function nr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function Vl(e,t){const r=Le(e),n=t.elementInjector||Us();return new pi(r).create(n,t.projectableNodes,t.hostElement,t.environmentInjector)}let zl=null;function Wn(){return zl}class dU{}const w1=new te("DocumentToken");let Sl=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(pU)},providedIn:"platform"}),t})();const hU=new te("Location Initialized");let pU=(()=>{var e;class t extends Sl{constructor(){super(),this._doc=J(w1),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wn().getBaseHref(this._doc)}onPopState(n){const i=Wn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){const i=Wn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,i,a){this._history.pushState(n,i,a)}replaceState(n,i,a){this._history.replaceState(n,i,a)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return new e},providedIn:"platform"}),t})();function Dl(e,t){if(0==e.length)return t;if(0==t.length)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,2==r?e+t.substring(1):1==r?e+t:e+"/"+t}function uv(e){const t=e.match(/#|\?|$/),r=t&&t.index||e.length;return e.slice(0,r-("/"===e[r-1]?1:0))+e.slice(r)}function Mn(e){return e&&"?"!==e[0]?"?"+e:e}let qn=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(hv)},providedIn:"root"}),t})();const dv=new te("appBaseHref");let hv=(()=>{var e;class t extends qn{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??J(w1).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Dl(this._baseHref,n)}path(n=!1){const i=this._platformLocation.pathname+Mn(this._platformLocation.search),a=this._platformLocation.hash;return a&&n?`${i}${a}`:i}pushState(n,i,a,s){const c=this.prepareExternalUrl(a+Mn(s));this._platformLocation.pushState(n,i,c)}replaceState(n,i,a,s){const c=this.prepareExternalUrl(a+Mn(s));this._platformLocation.replaceState(n,i,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Sl),Y(dv,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),pv=(()=>{var e;class t extends qn{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(n){const i=Dl(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,a,s){let c=this.prepareExternalUrl(a+Mn(s));0==c.length&&(c=this._platformLocation.pathname),this._platformLocation.pushState(n,i,c)}replaceState(n,i,a,s){let c=this.prepareExternalUrl(a+Mn(s));0==c.length&&(c=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Sl),Y(dv,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})(),Ll=(()=>{var e;class t{constructor(n){this._subject=new ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const i=this._locationStrategy.getBaseHref();this._basePath=function vU(e){if(new RegExp("^(https?:)?//").test(e)){const[,r]=e.split(/\/\/[^\/]+/);return r}return e}(uv(mv(i))),this._locationStrategy.onPopState(a=>{this._subject.emit({url:this.path(!0),pop:!0,state:a.state,type:a.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Mn(i))}normalize(n){return t.stripTrailingSlash(function gU(e,t){if(!e||!t.startsWith(e))return t;const r=t.substring(e.length);return""===r||["/",";","?","#"].includes(r[0])?r:t}(this._basePath,mv(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",a=null){this._locationStrategy.pushState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Mn(i)),a)}replaceState(n,i="",a=null){this._locationStrategy.replaceState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Mn(i)),a)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(a=>a(n,i))}subscribe(n,i,a){return this._subject.subscribe({next:n,error:i,complete:a})}}return(e=t).normalizeQueryParams=Mn,e.joinWithSlash=Dl,e.stripTrailingSlash=uv,e.\u0275fac=function(n){return new(n||e)(Y(qn))},e.\u0275prov=K({token:e,factory:function(){return function mU(){return new Ll(Y(qn))}()},providedIn:"root"}),t})();function mv(e){return e.replace(/\/index.html$/,"")}class tj{constructor(t,r,n,i){this.$implicit=t,this.ngForOf=r,this.index=n,this.count=i}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 _t=(()=>{var e;class t{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,a){this._viewContainer=n,this._template=i,this._differs=a,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const i=this._viewContainer;n.forEachOperation((a,s,c)=>{if(null==a.previousIndex)i.createEmbeddedView(this._template,new tj(a.item,this._ngForOf,-1,-1),null===c?void 0:c);else if(null==c)i.remove(null===s?void 0:s);else if(null!==s){const o=i.get(s);i.move(o,c),Dv(o,a)}});for(let a=0,s=i.length;a<s;a++){const o=i.get(a).context;o.index=a,o.count=s,o.ngForOf=this._ngForOf}n.forEachIdentityChange(a=>{Dv(i.get(a.currentIndex),a)})}static ngTemplateContextGuard(n,i){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(H(j2),H(c1),H(Hc))},e.\u0275dir=W({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function Dv(e,t){e.context.$implicit=t.item}let V1=(()=>{var e;class t{constructor(n,i){this._viewContainer=n,this._context=new nj,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Lv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Lv("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(H(j2),H(c1))},e.\u0275dir=W({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class nj{constructor(){this.$implicit=null,this.ngIf=null}}function Lv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${G1(t)}'.`)}let H4=(()=>{var e;class t{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(n.ngTemplateOutlet||n.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:a,ngTemplateOutletContext:s,ngTemplateOutletInjector:c}=this;this._viewRef=i.createEmbeddedView(a,s,c?{injector:c}:void 0)}else this._viewRef=null}else this._viewRef&&n.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(j2))},e.\u0275dir=W({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[M1]}),t})(),Lj=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function Ev(e){return"server"===e}let Ej=(()=>{var e;class t{}return(e=t).\u0275prov=K({token:e,providedIn:"root",factory:()=>new Tj(Y(w1),window)}),t})();class Tj{constructor(t,r){this.document=t,this.window=r,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const r=function Ij(e,t){const r=e.getElementById(t)||e.getElementsByName(t)[0];if(r)return r;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const a=i.shadowRoot;if(a){const s=a.getElementById(t)||a.querySelector(`[name="${t}"]`);if(s)return s}i=n.nextNode()}}return null}(this.document,t);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(t){this.supportsScrolling()&&(this.window.history.scrollRestoration=t)}scrollToElement(t){const r=t.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(n-a[0],i-a[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class aG extends dU{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ql extends aG{static makeCurrent(){!function uU(e){zl||(zl=e)}(new ql)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return(r=r||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return"window"===r?window:"document"===r?t:"body"===r?t.body:null}getBaseHref(t){const r=function sG(){return ki=ki||document.querySelector("base"),ki?ki.getAttribute("href"):null}();return null==r?null:function cG(e){Rc=Rc||document.createElement("a"),Rc.setAttribute("href",e);const t=Rc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(r)}resetBaseElement(){ki=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function JU(e,t){t=encodeURIComponent(t);for(const r of e.split(";")){const n=r.indexOf("="),[i,a]=-1==n?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===t)return decodeURIComponent(a)}return null}(document.cookie,t)}}let Rc,ki=null,lG=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const Kl=new te("EventManagerPlugins");let kv=(()=>{var e;class t{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(a=>{a.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,a){return this._findPluginFor(i).addEventListener(n,i,a)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new F(5101,!1);return this._eventNameToPlugin.set(n,i),i}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Kl),Y(ye))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();class Pv{constructor(t){this._doc=t}}const Yl="ng-app-id";let Fv=(()=>{var e;class t{constructor(n,i,a,s={}){this.doc=n,this.appId=i,this.nonce=a,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ev(s),this.resetHostNodes()}addStyles(n){for(const i of n)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(n){for(const i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){const i=this.styleRef;i.get(n)?.elements?.forEach(a=>a.remove()),i.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Yl}="${this.appId}"]`);if(n?.length){const i=new Map;return n.forEach(a=>{null!=a.textContent&&i.set(a.textContent,a)}),i}return null}changeUsageCount(n,i){const a=this.styleRef;if(a.has(n)){const s=a.get(n);return s.usage+=i,s.usage}return a.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){const a=this.styleNodesInDOM,s=a?.get(i);if(s?.parentNode===n)return a.delete(i),s.removeAttribute(Yl),s;{const c=this.doc.createElement("style");return this.nonce&&c.setAttribute("nonce",this.nonce),c.textContent=i,this.platformIsServer&&c.setAttribute(Yl,this.appId),c}}addStyleToHost(n,i){const a=this.getStyleElement(n,i);n.appendChild(a);const s=this.styleRef,c=s.get(i)?.elements;c?c.push(a):s.set(i,{elements:[a],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(w1),Y(Gs),Y(Xd,8),Y(N3))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const Zl={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/"},Ql=/%COMP%/g,hG=new te("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Uv(e,t){return t.map(r=>r.replace(Ql,e))}let jv=(()=>{var e;class t{constructor(n,i,a,s,c,o,l,f=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=a,this.removeStylesOnCompDestroy=s,this.doc=c,this.platformId=o,this.ngZone=l,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=Ev(o),this.defaultRenderer=new Jl(n,c,l,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Vt.ShadowDom&&(i={...i,encapsulation:Vt.Emulated});const a=this.getOrCreateRenderer(n,i);return a instanceof $v?a.applyToHost(n):a instanceof Xl&&a.applyStyles(),a}getOrCreateRenderer(n,i){const a=this.rendererByCompId;let s=a.get(i.id);if(!s){const c=this.doc,o=this.ngZone,l=this.eventManager,f=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.platformIsServer;switch(i.encapsulation){case Vt.Emulated:s=new $v(l,f,i,this.appId,d,c,o,m);break;case Vt.ShadowDom:return new vG(l,f,n,i,c,o,this.nonce,m);default:s=new Xl(l,f,i,d,c,o,m)}a.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(kv),Y(Fv),Y(Gs),Y(hG),Y(w1),Y(N3),Y(ye),Y(Xd))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();class Jl{constructor(t,r,n,i){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(Zl[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(Gv(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(Gv(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n="string"==typeof t?this.doc.querySelector(t):t;if(!n)throw new F(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,i){if(i){r=i+":"+r;const a=Zl[i];a?t.setAttributeNS(a,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){const i=Zl[n];i?t.removeAttributeNS(i,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,i){i&(jn.DashCase|jn.Important)?t.style.setProperty(r,n,i&jn.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&jn.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t[r]=n}setValue(t,r){t.nodeValue=r}listen(t,r,n){if("string"==typeof t&&!(t=Wn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if("__ngUnwrap__"===r)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))&&r.preventDefault()}}}function Gv(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class vG extends Jl{constructor(t,r,n,i,a,s,c,o){super(t,a,s,o),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Uv(i.id,i.styles);for(const f of l){const d=document.createElement("style");c&&d.setAttribute("nonce",c),d.textContent=f,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Xl extends Jl{constructor(t,r,n,i,a,s,c,o){super(t,a,s,c),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=o?Uv(o,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class $v extends Xl{constructor(t,r,n,i,a,s,c,o){const l=i+"-"+n.id;super(t,r,n,a,s,c,o,l),this.contentAttr=function pG(e){return"_ngcontent-%COMP%".replace(Ql,e)}(l),this.hostAttr=function mG(e){return"_nghost-%COMP%".replace(Ql,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){const n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}}let _G=(()=>{var e;class t extends Pv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,a){return n.addEventListener(i,a,!1),()=>this.removeEventListener(n,i,a)}removeEventListener(n,i,a){return n.removeEventListener(i,a)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(w1))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const Wv=["alt","control","meta","shift"],CG={"\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"},MG={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let yG=(()=>{var e;class t extends Pv{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,i,a){const s=t.parseEventName(i),c=t.eventCallback(s.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wn().onAndCancel(n,s.domEventName,c))}static parseEventName(n){const i=n.toLowerCase().split("."),a=i.shift();if(0===i.length||"keydown"!==a&&"keyup"!==a)return null;const s=t._normalizeKey(i.pop());let c="",o=i.indexOf("code");if(o>-1&&(i.splice(o,1),c="code."),Wv.forEach(f=>{const d=i.indexOf(f);d>-1&&(i.splice(d,1),c+=f+".")}),c+=s,0!=i.length||0===s.length)return null;const l={};return l.domEventName=a,l.fullKey=c,l}static matchEventFullKeyCode(n,i){let a=CG[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(a=n.code,s="code."),!(null==a||!a)&&(a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Wv.forEach(c=>{c!==a&&(0,MG[c])(n)&&(s+=c+".")}),s+=a,s===i)}static eventCallback(n,i,a){return s=>{t.matchEventFullKeyCode(s,n)&&a.runGuarded(()=>i(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(w1))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();const VG=Pg(QB,"browser",[{provide:N3,useValue:"browser"},{provide:Jd,useValue:function bG(){ql.makeCurrent()},multi:!0},{provide:w1,useFactory:function wG(){return function fI(e){P0=e}(document),document},deps:[]}]),zG=new te(""),Yv=[{provide:Cc,useClass:class oG{addToWindow(t){t1.getAngularTestability=(n,i=!0)=>{const a=t.findTestabilityInTree(n,i);if(null==a)throw new F(5103,!1);return a},t1.getAllAngularTestabilities=()=>t.getAllTestabilities(),t1.getAllAngularRootElements=()=>t.getAllRootElements(),t1.frameworkStabilizers||(t1.frameworkStabilizers=[]),t1.frameworkStabilizers.push(n=>{const i=t1.getAllAngularTestabilities();let a=i.length,s=!1;const c=function(o){s=s||o,a--,0==a&&n(s)};i.forEach(o=>{o.whenStable(c)})})}findTestabilityInTree(t,r,n){return null==r?null:t.getTestability(r)??(n?Wn().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},deps:[]},{provide:Tg,useClass:pl,deps:[ye,ml,Cc]},{provide:pl,useClass:pl,deps:[ye,ml,Cc]}],Zv=[{provide:q0,useValue:"root"},{provide:gn,useFactory:function HG(){return new gn},deps:[]},{provide:Kl,useClass:_G,multi:!0,deps:[w1,ye,N3]},{provide:Kl,useClass:yG,multi:!0,deps:[w1]},jv,Fv,kv,{provide:c8,useExisting:jv},{provide:class Oj{},useClass:lG,deps:[]},[]];let SG=(()=>{var e;class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Gs,useValue:n.appId}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(zG,12))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({providers:[...Zv,...Yv],imports:[Lj,JB]}),t})(),Qv=(()=>{var e;class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(w1))},e.\u0275prov=K({token:e,factory:function(n){let i=null;return i=n?new n:function LG(){return new Qv(Y(w1))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let e_=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(n){let i=null;return i=n?new(n||e):Y(t_),i},providedIn:"root"}),t})(),t_=(()=>{var e;class t extends e_{constructor(n){super(),this._doc=n}sanitize(n,i){if(null==i)return null;switch(n){case pt.NONE:return i;case pt.HTML:return Zt(i,"HTML")?J2(i):Fd(this._doc,String(i)).toString();case pt.STYLE:return Zt(i,"Style")?J2(i):i;case pt.SCRIPT:if(Zt(i,"Script"))return J2(i);throw new F(5200,!1);case pt.URL:return Zt(i,"URL")?J2(i):ks(String(i));case pt.RESOURCE_URL:if(Zt(i,"ResourceURL"))return J2(i);throw new F(5201,!1);default:throw new F(5202,!1)}}bypassSecurityTrustHtml(n){return function vI(e){return new uI(e)}(n)}bypassSecurityTrustStyle(n){return function _I(e){return new dI(e)}(n)}bypassSecurityTrustScript(n){return function CI(e){return new hI(e)}(n)}bypassSecurityTrustUrl(n){return function MI(e){return new pI(e)}(n)}bypassSecurityTrustResourceUrl(n){return function yI(e){return new mI(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(w1))},e.\u0275prov=K({token:e,factory:function(n){let i=null;return i=n?new n:function EG(e){return new t_(e.get(w1))}(Y(B1)),i},providedIn:"root"}),t})();function Pi(e){return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function V(e,t,r){return(t=function IG(e){var t=function TG(e,t){if("object"!==Pi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Pi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const{isArray:OG}=Array,{getPrototypeOf:RG,prototype:kG,keys:PG}=Object;function r_(e){if(1===e.length){const t=e[0];if(OG(t))return{args:t,keys:null};if(function FG(e){return e&&"object"==typeof e&&RG(e)===kG}(t)){const r=PG(t);return{args:r.map(n=>t[n]),keys:r}}}return{args:e,keys:null}}const{isArray:BG}=Array;function t5(e){return we(t=>function UG(e,t){return BG(t)?e(...t):e(t)}(e,t))}function i_(e,t){return e.reduce((r,n,i)=>(r[n]=t[i],r),{})}let a_=(()=>{var e;class t{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(l2),H(Ne))},e.\u0275dir=W({type:e}),t})(),w4=(()=>{var e;class t extends a_{}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,features:[re]}),t})();const Ct=new te("NgValueAccessor"),GG={provide:Ct,useExisting:me(()=>X1),multi:!0};let X1=(()=>{var e;class t extends w4{writeValue(n){this.setProperty("checked",n)}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,i){1&n&&O("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[Ze([GG]),re]}),t})();const $G={provide:Ct,useExisting:me(()=>Hn),multi:!0},qG=new te("CompositionEventMode");let Hn=(()=>{var e;class t extends a_{constructor(n,i,a){super(n,i),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function WG(){const e=Wn()?Wn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(l2),H(Ne),H(qG,8))},e.\u0275dir=W({type:e,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(n,i){1&n&&O("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Ze([$G]),re]}),t})();function Yn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}const f2=new te("NgValidators"),Zn=new te("NgAsyncValidators"),KG=/^(?=.{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 u_(e){return Yn(e.value)||KG.test(e.value)?null:{email:!0}}function kc(e){return null}function m_(e){return null!=e}function g_(e){return Mi(e)?Q1(e):e}function v_(e){let t={};return e.forEach(r=>{t=null!=r?{...t,...r}:t}),0===Object.keys(t).length?null:t}function __(e,t){return t.map(r=>r(e))}function C_(e){return e.map(t=>function YG(e){return!e.validate}(t)?t:r=>t.validate(r))}function n5(e){return null!=e?function M_(e){if(!e)return null;const t=e.filter(m_);return 0==t.length?null:function(r){return v_(__(r,t))}}(C_(e)):null}function r5(e){return null!=e?function y_(e){if(!e)return null;const t=e.filter(m_);return 0==t.length?null:function(r){return function jG(...e){const t=Za(e),{args:r,keys:n}=r_(e),i=new We(a=>{const{length:s}=r;if(!s)return void a.complete();const c=new Array(s);let o=s,l=s;for(let f=0;f<s;f++){let d=!1;j1(r[f]).subscribe(qe(a,m=>{d||(d=!0,l--),c[f]=m},()=>o--,void 0,()=>{(!o||!d)&&(l||a.next(n?i_(n,c):c),a.complete())}))}});return t?i.pipe(t5(t)):i}(__(r,t).map(g_)).pipe(we(v_))}}(C_(e)):null}function b_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function i5(e){return e?Array.isArray(e)?e:[e]:[]}function Pc(e,t){return Array.isArray(e)?e.includes(t):e===t}function V_(e,t){const r=i5(t);return i5(e).forEach(i=>{Pc(r,i)||r.push(i)}),r}function z_(e,t){return i5(t).filter(r=>!Pc(e,r))}class S_{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(t){this._rawValidators=t||[],this._composedValidatorFn=n5(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=r5(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,r){return!!this.control&&this.control.hasError(t,r)}getError(t,r){return this.control?this.control.getError(t,r):null}}class L2 extends S_{get formDirective(){return null}get path(){return null}}class Qn extends S_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class D_{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let g1=(()=>{var e;class t extends D_{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Qn,2))},e.\u0275dir=W({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,i){2&n&&De("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[re]}),t})();const Fi="VALID",Bc="INVALID",ir="PENDING",Bi="DISABLED";function Uc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class A_{constructor(t,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Fi}get invalid(){return this.status===Bc}get pending(){return this.status==ir}get disabled(){return this.status===Bi}get enabled(){return this.status!==Bi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(V_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(V_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(z_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(z_(t,this._rawAsyncValidators))}hasValidator(t){return Pc(this._rawValidators,t)}hasAsyncValidator(t){return Pc(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ir,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const r=this._parentMarkedDirty(t.onlySelf);this.status=Bi,this.errors=null,this._forEachChild(n=>{n.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:r}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const r=this._parentMarkedDirty(t.onlySelf);this.status=Fi,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:r}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fi||this.status===ir)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Bi:Fi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ir,this._hasOwnPendingAsyncValidator=!0;const r=g_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,r={}){this.errors=t,this._updateControlsErrors(!1!==r.emitEvent)}get(t){let r=t;return null==r||(Array.isArray(r)||(r=r.split(".")),0===r.length)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(t,r){const n=r?this.get(r):this;return n&&n.errors?n.errors[t]:null}hasError(t,r){return!!this.getError(t,r)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ee,this.statusChanges=new ee}_calculateStatus(){return this._allControlsDisabled()?Bi:this.errors?Bc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ir)?ir:this._anyControlsHaveStatus(Bc)?Bc:Fi}_anyControlsHaveStatus(t){return this._anyControls(r=>r.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Uc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function e$(e){return Array.isArray(e)?n5(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function t$(e){return Array.isArray(e)?r5(e):e||null}(this._rawAsyncValidators)}}const ar=new te("CallSetDisabledState",{providedIn:"root",factory:()=>jc}),jc="always";function Ui(e,t,r=jc){(function f5(e,t){const r=function H_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(b_(r,t.validator)):"function"==typeof r&&e.setValidators([r]);const n=function w_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(b_(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const i=()=>e.updateValueAndValidity();Wc(t._rawValidators,i),Wc(t._rawAsyncValidators,i)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===r)&&t.valueAccessor.setDisabledState?.(e.disabled),function i$(e,t){t.valueAccessor.registerOnChange(r=>{e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&E_(e,t)})}(e,t),function s$(e,t){const r=(n,i)=>{t.valueAccessor.writeValue(n),i&&t.viewToModelUpdate(n)};e.registerOnChange(r),t._registerOnDestroy(()=>{e._unregisterOnChange(r)})}(e,t),function a$(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&E_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function r$(e,t){if(t.valueAccessor.setDisabledState){const r=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(r),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(r)})}}(e,t)}function Wc(e,t){e.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(t)})}function E_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function O_(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function R_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const k_=class extends A_{constructor(t=null,r,n){super(function c5(e){return(Uc(e)?e.validators:e)||null}(r),function o5(e,t){return(Uc(t)?t.asyncValidators:e)||null}(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Uc(r)&&(r.nonNullable||r.initialValueIsDefault)&&(this.defaultValue=R_(t)?t.value:t)}setValue(t,r={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==r.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==r.emitViewToModelChange)),this.updateValueAndValidity(r)}patchValue(t,r={}){this.setValue(t,r)}reset(t=this.defaultValue,r={}){this._applyFormState(t),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){O_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){O_(this._onDisabledChange,t)}_forEachChild(t){}_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(t){R_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},p$={provide:Qn,useExisting:me(()=>o1)},B_=(()=>Promise.resolve())();let o1=(()=>{var e;class t extends Qn{constructor(n,i,a,s,c,o){super(),this._changeDetectorRef=c,this.callSetDisabledState=o,this.control=new k_,this._registered=!1,this.name="",this.update=new ee,this._parent=n,this._setValidators(i),this._setAsyncValidators(a),this.valueAccessor=function h5(e,t){if(!t)return null;let r,n,i;return Array.isArray(t),t.forEach(a=>{a.constructor===Hn?r=a:function l$(e){return Object.getPrototypeOf(e.constructor)===w4}(a)?n=a:i=a}),i||n||r||null}(0,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function d5(e,t){if(!e.hasOwnProperty("model"))return!1;const r=e.model;return!!r.isFirstChange()||!Object.is(t,r.currentValue)}(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){Ui(this.control,this,this.callSetDisabledState),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(n){B_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const i=n.isDisabled.currentValue,a=0!==i&&nr(i);B_.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Gc(e,t){return[...t.path,e]}(n,this._parent):[n]}}return(e=t).\u0275fac=function(n){return new(n||e)(H(L2,9),H(f2,10),H(Zn,10),H(Ct,10),H(et,8),H(ar,8))},e.\u0275dir=W({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ze([p$]),re,M1]}),t})();const g$={provide:Ct,useExisting:me(()=>V4),multi:!0};let V4=(()=>{var e;class t extends w4{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=i=>{n(""==i?null:parseFloat(i))}}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,i){1&n&&O("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Ze([g$]),re]}),t})(),U_=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const V$={provide:Ct,useExisting:me(()=>wn),multi:!0};function Y_(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let wn=(()=>{var e;class t extends w4{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const a=Y_(this._getOptionId(n),n);this.setProperty("value",a)}registerOnChange(n){this.onChange=i=>{this.value=this._getOptionValue(i),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),n))return i;return null}_getOptionValue(n){const i=function z$(e){return e.split(":")[0]}(n);return this._optionMap.has(i)?this._optionMap.get(i):n}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,i){1&n&&O("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ze([V$]),re]}),t})(),z4=(()=>{var e;class t{constructor(n,i,a){this._element=n,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(Y_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(l2),H(wn,9))},e.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const S$={provide:Ct,useExisting:me(()=>_5),multi:!0};function Z_(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let _5=(()=>{var e;class t extends w4{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let i;if(this.value=n,Array.isArray(n)){const a=n.map(s=>this._getOptionId(s));i=(s,c)=>{s._setSelected(a.indexOf(c.toString())>-1)}}else i=(a,s)=>{a._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(n){this.onChange=i=>{const a=[],s=i.selectedOptions;if(void 0!==s){const c=s;for(let o=0;o<c.length;o++){const f=this._getOptionValue(c[o].value);a.push(f)}}else{const c=i.options;for(let o=0;o<c.length;o++){const l=c[o];if(l.selected){const f=this._getOptionValue(l.value);a.push(f)}}}this.value=a,n(a)}}_registerOption(n){const i=(this._idCounter++).toString();return this._optionMap.set(i,n),i}_getOptionId(n){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,n))return i;return null}_getOptionValue(n){const i=function D$(e){return e.split(":")[0]}(n);return this._optionMap.has(i)?this._optionMap.get(i)._value:n}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,i){1&n&&O("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ze([S$]),re]}),t})(),S4=(()=>{var e;class t{constructor(n,i,a){this._element=n,this._renderer=i,this._select=a,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(Z_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Z_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(l2),H(_5,9))},e.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function J_(e){return"number"==typeof e?e:parseFloat(e)}let D4=(()=>{var e;class t{constructor(){this._validator=kc}ngOnChanges(n){if(this.inputName in n){const i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):kc,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=W({type:e,features:[M1]}),t})();const L$={provide:f2,useExisting:me(()=>C5),multi:!0};let C5=(()=>{var e;class t extends D4{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>J_(n),this.createValidator=n=>function o_(e){return t=>{if(Yn(t.value)||Yn(e))return null;const r=parseFloat(t.value);return!isNaN(r)&&r>e?{max:{max:e,actual:t.value}}:null}}(n)}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,i){2&n&&B("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[Ze([L$]),re]}),t})();const x$={provide:f2,useExisting:me(()=>M5),multi:!0};let M5=(()=>{var e;class t extends D4{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>J_(n),this.createValidator=n=>function c_(e){return t=>{if(Yn(t.value)||Yn(e))return null;const r=parseFloat(t.value);return!isNaN(r)&&r<e?{min:{min:e,actual:t.value}}:null}}(n)}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,i){2&n&&B("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[Ze([x$]),re]}),t})();const E$={provide:f2,useExisting:me(()=>b5),multi:!0};let b5=(()=>{var e;class t extends D4{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=nr,this.createValidator=n=>u_}enabled(n){return n}}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275dir=W({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ze([E$]),re]}),t})(),R$=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[U_]}),t})(),P$=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:ar,useValue:n.callSetDisabledState??jc}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[R$]}),t})();const F$=["addListener","removeListener"],B$=["addEventListener","removeEventListener"],U$=["on","off"];function e2(e,t,r,n){if(Q(r)&&(n=r,r=void 0),n)return e2(e,t,r).pipe(t5(n));const[i,a]=function $$(e){return Q(e.addEventListener)&&Q(e.removeEventListener)}(e)?B$.map(s=>c=>e[s](t,c,r)):function j$(e){return Q(e.addListener)&&Q(e.removeListener)}(e)?F$.map(rC(e,t)):function G$(e){return Q(e.on)&&Q(e.off)}(e)?U$.map(rC(e,t)):[];if(!i&&L6(e))return F1(s=>e2(s,t,r))(j1(e));if(!i)throw new TypeError("Invalid event target");return new We(s=>{const c=(...o)=>s.next(1<o.length?o:o[0]);return i(c),()=>a(c)})}function rC(e,t){return r=>n=>e[r](t,n)}class W$ extends Se{constructor(t,r){super()}schedule(t,r=0){return this}}const Kc={setInterval(e,t,...r){const{delegate:n}=Kc;return n?.setInterval?n.setInterval(e,t,...r):setInterval(e,t,...r)},clearInterval(e){const{delegate:t}=Kc;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},iC={now:()=>(iC.delegate||Date).now(),delegate:void 0};class Gi{constructor(t,r=Gi.now){this.schedulerActionCtor=t,this.now=r}schedule(t,r=0,n){return new this.schedulerActionCtor(this,t).schedule(n,r)}}Gi.now=iC.now;const aC=new class K$ extends Gi{constructor(t,r=Gi.now){super(t,r),this.actions=[],this._active=!1}flush(t){const{actions:r}=this;if(this._active)return void r.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}}}(class q$ extends W${constructor(t,r){super(t,r),this.scheduler=t,this.work=r,this.pending=!1}schedule(t,r=0){var n;if(this.closed)return this;this.state=t;const i=this.id,a=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(a,i,r)),this.pending=!0,this.delay=r,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(a,this.id,r),this}requestAsyncId(t,r,n=0){return Kc.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,r,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return r;null!=r&&Kc.clearInterval(r)}execute(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,r);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,r){let i,n=!1;try{this.work(t)}catch(a){n=!0,i=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:t,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Je(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,super.unsubscribe()}}}),Y$=aC;function sC(e=0,t,r=Y$){let n=-1;return null!=t&&(Cu(t)?r=t:n=t),new We(i=>{let a=function Z$(e){return e instanceof Date&&!isNaN(e)}(e)?+e-r.now():e;a<0&&(a=0);let s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},a)})}const{isArray:Q$}=Array;function cC(e){return 1===e.length&&Q$(e[0])?e[0]:e}function oC(...e){return 1===(e=cC(e)).length?j1(e[0]):new We(function J$(e){return t=>{let r=[];for(let n=0;r&&!t.closed&&n<e.length;n++)r.push(j1(e[n]).subscribe(qe(t,i=>{if(r){for(let a=0;a<r.length;a++)a!==n&&r[a].unsubscribe();r=null}t.next(i)})))}}(e))}function H5(...e){const t=Za(e),r=cC(e);return r.length?new We(n=>{let i=r.map(()=>[]),a=r.map(()=>!1);n.add(()=>{i=a=null});for(let s=0;!n.closed&&s<r.length;s++)j1(r[s]).subscribe(qe(n,c=>{if(i[s].push(c),i.every(o=>o.length)){const o=i.map(l=>l.shift());n.next(t?t(...o):o),i.some((l,f)=>!l.length&&a[f])&&n.complete()}},()=>{a[s]=!0,!i[s].length&&n.complete()}));return()=>{i=a=null}}):lt}function $i(...e){return function X$(){return n3(1)}()(Q1(e,Er(e)))}function R1(e){return d1((t,r)=>{j1(e).subscribe(qe(r,()=>r.complete(),Z1)),!r.closed&&t.subscribe(r)})}function N1(e,t){return d1((r,n)=>{let i=0;r.subscribe(qe(n,a=>e.call(t,a,i++)&&n.next(a)))})}function t2(e){return e<=0?()=>lt:d1((t,r)=>{let n=0;t.subscribe(qe(r,i=>{++n<=e&&(r.next(i),e<=n&&r.complete())}))})}function q1(e,t,r){const n=Q(e)||t||r?{next:e,error:t,complete:r}:e;return n?d1((i,a)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let c=!0;i.subscribe(qe(a,o=>{var l;null===(l=n.next)||void 0===l||l.call(n,o),a.next(o)},()=>{var o;c=!1,null===(o=n.complete)||void 0===o||o.call(n),a.complete()},o=>{var l;c=!1,null===(l=n.error)||void 0===l||l.call(n,o),a.error(o)},()=>{var o,l;c&&(null===(o=n.unsubscribe)||void 0===o||o.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):Ht}function w5(...e){const t=Za(e);return d1((r,n)=>{const i=e.length,a=new Array(i);let s=e.map(()=>!1),c=!1;for(let o=0;o<i;o++)j1(e[o]).subscribe(qe(n,l=>{a[o]=l,!c&&!s[o]&&(s[o]=!0,(c=s.every(Ht))&&(s=null))},Z1));r.subscribe(qe(n,o=>{if(c){const l=[o,...a];n.next(t?t(...l):l)}}))})}function lC(e){return we(()=>e)}function fC(e,t){return t?r=>$i(t.pipe(t2(1),function tW(){return d1((e,t)=>{e.subscribe(qe(t,Z1))})}()),r.pipe(fC(e))):F1((r,n)=>j1(e(r,n)).pipe(t2(1),lC(r)))}function uC(e,t=aC){const r=sC(e,t);return fC(()=>r)}var rW={left:"right",right:"left",bottom:"top",top:"bottom"};function Yc(e){return e.replace(/left|right|bottom|top/g,function(t){return rW[t]})}function nn(e){return e.split("-")[0]}var iW={start:"end",end:"start"};function hC(e){return e.replace(/start|end/g,function(t){return iW[t]})}var nt="top",Tt="bottom",It="right",rt="left",V5="auto",Wi=[nt,Tt,It,rt],sr="start",qi="end",pC="viewport",Ki="popper",mC=Wi.reduce(function(e,t){return e.concat([t+"-"+sr,t+"-"+qi])},[]),gC=[].concat(Wi,[V5]).reduce(function(e,t){return e.concat([t,t+"-"+sr,t+"-"+qi])},[]),gW=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function it(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function L4(e){return e instanceof it(e).Element||e instanceof Element}function Mt(e){return e instanceof it(e).HTMLElement||e instanceof HTMLElement}function z5(e){return!(typeof ShadowRoot>"u")&&(e instanceof it(e).ShadowRoot||e instanceof ShadowRoot)}function Jn(e){return((L4(e)?e.ownerDocument:e.document)||window.document).documentElement}var x4=Math.max,Zc=Math.min,cr=Math.round;function S5(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function vC(){return!/^((?!chrome|android).)*safari/i.test(S5())}function or(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Mt(e)&&(i=e.offsetWidth>0&&cr(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&cr(n.height)/e.offsetHeight||1);var c=(L4(e)?it(e):window).visualViewport,o=!vC()&&r,l=(n.left+(o&&c?c.offsetLeft:0))/i,f=(n.top+(o&&c?c.offsetTop:0))/a,d=n.width/i,m=n.height/a;return{width:d,height:m,top:f,right:l+d,bottom:f+m,left:l,x:l,y:f}}function D5(e){var t=it(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function L5(e){return or(Jn(e)).left+D5(e).scrollLeft}function Vn(e){return it(e).getComputedStyle(e)}function rn(e){return e?(e.nodeName||"").toLowerCase():null}function Qc(e){return"html"===rn(e)?e:e.assignedSlot||e.parentNode||(z5(e)?e.host:null)||Jn(e)}function x5(e){var t=Vn(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function _C(e){return["html","body","#document"].indexOf(rn(e))>=0?e.ownerDocument.body:Mt(e)&&x5(e)?e:_C(Qc(e))}function Yi(e,t){var r;void 0===t&&(t=[]);var n=_C(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),a=it(n),s=i?[a].concat(a.visualViewport||[],x5(n)?n:[]):n,c=t.concat(s);return i?c:c.concat(Yi(Qc(s)))}function CW(e){return["table","td","th"].indexOf(rn(e))>=0}function CC(e){return Mt(e)&&"fixed"!==Vn(e).position?e.offsetParent:null}function Zi(e){for(var t=it(e),r=CC(e);r&&CW(r)&&"static"===Vn(r).position;)r=CC(r);return r&&("html"===rn(r)||"body"===rn(r)&&"static"===Vn(r).position)?t:r||function MW(e){var t=/firefox/i.test(S5());if(/Trident/i.test(S5())&&Mt(e)&&"fixed"===Vn(e).position)return null;var i=Qc(e);for(z5(i)&&(i=i.host);Mt(i)&&["html","body"].indexOf(rn(i))<0;){var a=Vn(i);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return i;i=i.parentNode}return null}(e)||t}function MC(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&z5(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function N5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yC(e,t,r){return t===pC?N5(function vW(e,t){var r=it(e),n=Jn(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,o=0;if(i){a=i.width,s=i.height;var l=vC();(l||!l&&"fixed"===t)&&(c=i.offsetLeft,o=i.offsetTop)}return{width:a,height:s,x:c+L5(e),y:o}}(e,r)):L4(t)?function yW(e,t){var r=or(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):N5(function _W(e){var t,r=Jn(e),n=D5(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=x4(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=x4(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+L5(e),o=-n.scrollTop;return"rtl"===Vn(i||r).direction&&(c+=x4(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:c,y:o}}(Jn(e)))}function lr(e){return e.split("-")[1]}function A5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bC(e){var o,t=e.reference,r=e.element,n=e.placement,i=n?nn(n):null,a=n?lr(n):null,s=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2;switch(i){case nt:o={x:s,y:t.y-r.height};break;case Tt:o={x:s,y:t.y+t.height};break;case It:o={x:t.x+t.width,y:c};break;case rt:o={x:t.x-r.width,y:c};break;default:o={x:t.x,y:t.y}}var l=i?A5(i):null;if(null!=l){var f="y"===l?"height":"width";switch(a){case sr:o[l]=o[l]-(t[f]/2-r[f]/2);break;case qi:o[l]=o[l]+(t[f]/2-r[f]/2)}}return o}function wC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function VC(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}function E5(e,t){void 0===t&&(t={});var n=t.placement,i=void 0===n?e.placement:n,a=t.strategy,s=void 0===a?e.strategy:a,c=t.boundary,o=void 0===c?"clippingParents":c,l=t.rootBoundary,f=void 0===l?pC:l,d=t.elementContext,m=void 0===d?Ki:d,g=t.altBoundary,w=void 0!==g&&g,z=t.padding,L=void 0===z?0:z,T=wC("number"!=typeof L?L:VC(L,Wi)),U=e.rects.popper,j=e.elements[w?m===Ki?"reference":Ki:m],q=function HW(e,t,r,n){var i="clippingParents"===t?function bW(e){var t=Yi(Qc(e)),n=["absolute","fixed"].indexOf(Vn(e).position)>=0&&Mt(e)?Zi(e):e;return L4(n)?t.filter(function(i){return L4(i)&&MC(i,n)&&"body"!==rn(i)}):[]}(e):[].concat(t),a=[].concat(i,[r]),c=a.reduce(function(o,l){var f=yC(e,l,n);return o.top=x4(f.top,o.top),o.right=Zc(f.right,o.right),o.bottom=Zc(f.bottom,o.bottom),o.left=x4(f.left,o.left),o},yC(e,a[0],n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}(L4(j)?j:j.contextElement||Jn(e.elements.popper),o,f,s),ie=or(e.elements.reference),_e=bC({reference:ie,element:U,strategy:"absolute",placement:i}),He=N5(Object.assign({},U,_e)),ke=m===Ki?He:ie,z1={top:q.top-ke.top+T.top,bottom:ke.bottom-q.bottom+T.bottom,left:q.left-ke.left+T.left,right:ke.right-q.right+T.right},n2=e.modifiersData.offset;if(m===Ki&&n2){var Ft=n2[i];Object.keys(z1).forEach(function(N2){var q4=[It,Tt].indexOf(N2)>=0?1:-1,K4=[nt,Tt].indexOf(N2)>=0?"y":"x";z1[N2]+=Ft[K4]*q4})}return z1}const SW={name:"flip",enabled:!0,phase:"main",fn:function zW(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=void 0===i||i,s=r.altAxis,c=void 0===s||s,o=r.fallbackPlacements,l=r.padding,f=r.boundary,d=r.rootBoundary,m=r.altBoundary,g=r.flipVariations,w=void 0===g||g,z=r.allowedAutoPlacements,L=t.options.placement,T=nn(L),U=o||(T!==L&&w?function VW(e){if(nn(e)===V5)return[];var t=Yc(e);return[hC(e),t,hC(t)]}(L):[Yc(L)]),j=[L].concat(U).reduce(function(Sr,s4){return Sr.concat(nn(s4)===V5?function wW(e,t){void 0===t&&(t={});var i=t.boundary,a=t.rootBoundary,s=t.padding,c=t.flipVariations,o=t.allowedAutoPlacements,l=void 0===o?gC:o,f=lr(t.placement),d=f?c?mC:mC.filter(function(w){return lr(w)===f}):Wi,m=d.filter(function(w){return l.indexOf(w)>=0});0===m.length&&(m=d);var g=m.reduce(function(w,z){return w[z]=E5(e,{placement:z,boundary:i,rootBoundary:a,padding:s})[nn(z)],w},{});return Object.keys(g).sort(function(w,z){return g[w]-g[z]})}(t,{placement:s4,boundary:f,rootBoundary:d,padding:l,flipVariations:w,allowedAutoPlacements:z}):s4)},[]),q=t.rects.reference,ie=t.rects.popper,_e=new Map,He=!0,ke=j[0],z1=0;z1<j.length;z1++){var n2=j[z1],Ft=nn(n2),N2=lr(n2)===sr,q4=[nt,Tt].indexOf(Ft)>=0,K4=q4?"width":"height",st=E5(t,{placement:n2,boundary:f,rootBoundary:d,altBoundary:m,padding:l}),Bt=q4?N2?It:rt:N2?Tt:nt;q[K4]>ie[K4]&&(Bt=Yc(Bt));var g6=Yc(Bt),Y4=[];if(a&&Y4.push(st[Ft]<=0),c&&Y4.push(st[Bt]<=0,st[g6]<=0),Y4.every(function(Sr){return Sr})){ke=n2,He=!1;break}_e.set(n2,Y4)}if(He)for(var iu=function(s4){var Fa=j.find(function(C6){var Z4=_e.get(C6);if(Z4)return Z4.slice(0,s4).every(function(au){return au})});if(Fa)return ke=Fa,"break"},Pa=w?3:1;Pa>0&&"break"!==iu(Pa);Pa--);t.placement!==ke&&(t.modifiersData[n]._skip=!0,t.placement=ke,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Qi(e,t,r){return x4(e,Zc(t,r))}function T5(e){var t=or(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}const NW={name:"preventOverflow",enabled:!0,phase:"main",fn:function xW(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=void 0===i||i,s=r.altAxis,c=void 0!==s&&s,m=r.tether,g=void 0===m||m,w=r.tetherOffset,z=void 0===w?0:w,L=E5(t,{boundary:r.boundary,rootBoundary:r.rootBoundary,padding:r.padding,altBoundary:r.altBoundary}),T=nn(t.placement),D=lr(t.placement),U=!D,j=A5(T),q=function DW(e){return"x"===e?"y":"x"}(j),ie=t.modifiersData.popperOffsets,_e=t.rects.reference,He=t.rects.popper,ke="function"==typeof z?z(Object.assign({},t.rects,{placement:t.placement})):z,z1="number"==typeof ke?{mainAxis:ke,altAxis:ke}:Object.assign({mainAxis:0,altAxis:0},ke),n2=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ft={x:0,y:0};if(ie){if(a){var N2,q4="y"===j?nt:rt,K4="y"===j?Tt:It,st="y"===j?"height":"width",Bt=ie[j],g6=Bt+L[q4],Y4=Bt-L[K4],v6=g?-He[st]/2:0,iu=D===sr?_e[st]:He[st],Pa=D===sr?-He[st]:-_e[st],_6=t.elements.arrow,Sr=g&&_6?T5(_6):{width:0,height:0},s4=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Fa=s4[q4],C6=s4[K4],Z4=Qi(0,_e[st],Sr[st]),au=U?_e[st]/2-v6-Z4-Fa-z1.mainAxis:iu-Z4-Fa-z1.mainAxis,oHe=U?-_e[st]/2+v6+Z4+C6+z1.mainAxis:Pa+Z4+C6+z1.mainAxis,su=t.elements.arrow&&Zi(t.elements.arrow),lHe=su?"y"===j?su.clientTop||0:su.clientLeft||0:0,qN=null!=(N2=n2?.[j])?N2:0,uHe=Bt+oHe-qN,KN=Qi(g?Zc(g6,Bt+au-qN-lHe):g6,Bt,g?x4(Y4,uHe):Y4);ie[j]=KN,Ft[j]=KN-Bt}if(c){var YN,Q4=ie[q],M6="y"===q?"height":"width",ZN=Q4+L["x"===j?nt:rt],QN=Q4-L["x"===j?Tt:It],cu=-1!==[nt,rt].indexOf(T),JN=null!=(YN=n2?.[q])?YN:0,XN=cu?ZN:Q4-_e[M6]-He[M6]-JN+z1.altAxis,eA=cu?Q4+_e[M6]+He[M6]-JN-z1.altAxis:QN,tA=g&&cu?function LW(e,t,r){var n=Qi(e,t,r);return n>r?r:n}(XN,Q4,eA):Qi(g?XN:ZN,Q4,g?eA:QN);ie[q]=tA,Ft[q]=tA-Q4}t.modifiersData[n]=Ft}},requiresIfExists:["offset"]},IW={name:"arrow",enabled:!0,phase:"main",fn:function EW(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,c=nn(r.placement),o=A5(c),f=[rt,It].indexOf(c)>=0?"height":"width";if(a&&s){var d=function(t,r){return wC("number"!=typeof(t="function"==typeof t?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:VC(t,Wi))}(i.padding,r),m=T5(a),g="y"===o?nt:rt,w="y"===o?Tt:It,z=r.rects.reference[f]+r.rects.reference[o]-s[o]-r.rects.popper[f],L=s[o]-r.rects.reference[o],T=Zi(a),D=T?"y"===o?T.clientHeight||0:T.clientWidth||0:0,ie=D/2-m[f]/2+(z/2-L/2),_e=Qi(d[g],ie,D-m[f]-d[w]);r.modifiersData[n]=((t={})[o]=_e,t.centerOffset=_e-ie,t)}},effect:function TW(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"==typeof i&&!(i=t.elements.popper.querySelector(i))||MC(t.elements.popper,i)&&(t.elements.arrow=i))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function PW(e,t,r){void 0===r&&(r=!1);var n=Mt(t),i=Mt(t)&&function kW(e){var t=e.getBoundingClientRect(),r=cr(t.width)/e.offsetWidth||1,n=cr(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=Jn(t),s=or(e,i,r),c={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(n||!n&&!r)&&(("body"!==rn(t)||x5(a))&&(c=function RW(e){return e!==it(e)&&Mt(e)?function OW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):D5(e)}(t)),Mt(t)?((o=or(t,!0)).x+=t.clientLeft,o.y+=t.clientTop):a&&(o.x=L5(a))),{x:s.left+c.scrollLeft-o.x,y:s.top+c.scrollTop-o.y,width:s.width,height:s.height}}function FW(e){var t=new Map,r=new Set,n=[];function i(a){r.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(c){if(!r.has(c)){var o=t.get(c);o&&i(o)}}),n.push(a)}return e.forEach(function(a){t.set(a.name,a)}),e.forEach(function(a){r.has(a.name)||i(a)}),n}function UW(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}var zC={placement:"bottom",modifiers:[],strategy:"absolute"};function SC(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&"function"==typeof n.getBoundingClientRect)})}function GW(e){void 0===e&&(e={});var r=e.defaultModifiers,n=void 0===r?[]:r,i=e.defaultOptions,a=void 0===i?zC:i;return function(c,o,l){void 0===l&&(l=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},zC,a),modifiersData:{},elements:{reference:c,popper:o},attributes:{},styles:{}},d=[],m=!1,g={state:f,setOptions:function(T){var D="function"==typeof T?T(f.options):T;z(),f.options=Object.assign({},a,f.options,D),f.scrollParents={reference:L4(c)?Yi(c):c.contextElement?Yi(c.contextElement):[],popper:Yi(o)};var U=function BW(e){var t=FW(e);return gW.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}(function jW(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}([].concat(n,f.options.modifiers)));return f.orderedModifiers=U.filter(function(j){return j.enabled}),function w(){f.orderedModifiers.forEach(function(L){var D=L.options,j=L.effect;if("function"==typeof j){var q=j({state:f,name:L.name,instance:g,options:void 0===D?{}:D});d.push(q||function(){})}})}(),g.update()},forceUpdate:function(){if(!m){var T=f.elements,D=T.reference,U=T.popper;if(SC(D,U)){f.rects={reference:PW(D,Zi(U),"fixed"===f.options.strategy),popper:T5(U)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(z1){return f.modifiersData[z1.name]=Object.assign({},z1.data)});for(var j=0;j<f.orderedModifiers.length;j++)if(!0!==f.reset){var q=f.orderedModifiers[j],ie=q.fn,_e=q.options;"function"==typeof ie&&(f=ie({state:f,options:void 0===_e?{}:_e,name:q.name,instance:g})||f)}else f.reset=!1,j=-1}}},update:UW(function(){return new Promise(function(L){g.forceUpdate(),L(f)})}),destroy:function(){z(),m=!0}};if(!SC(c,o))return g;function z(){d.forEach(function(L){return L()}),d=[]}return g.setOptions(l).then(function(L){!m&&l.onFirstUpdate&&l.onFirstUpdate(L)}),g}}var Jc={passive:!0},YW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DC(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,c=e.position,o=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,d=e.isFixed,m=s.x,g=void 0===m?0:m,w=s.y,z=void 0===w?0:w,L="function"==typeof f?f({x:g,y:z}):{x:g,y:z};g=L.x,z=L.y;var T=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),U=rt,j=nt,q=window;if(l){var ie=Zi(r),_e="clientHeight",He="clientWidth";ie===it(r)&&"static"!==Vn(ie=Jn(r)).position&&"absolute"===c&&(_e="scrollHeight",He="scrollWidth"),(i===nt||(i===rt||i===It)&&a===qi)&&(j=Tt,z-=(d&&ie===q&&q.visualViewport?q.visualViewport.height:ie[_e])-n.height,z*=o?1:-1),i!==rt&&(i!==nt&&i!==Tt||a!==qi)||(U=It,g-=(d&&ie===q&&q.visualViewport?q.visualViewport.width:ie[He])-n.width,g*=o?1:-1)}var N2,n2=Object.assign({position:c},l&&YW),Ft=!0===f?function ZW(e,t){var n=e.y,i=t.devicePixelRatio||1;return{x:cr(e.x*i)/i||0,y:cr(n*i)/i||0}}({x:g,y:z},it(r)):{x:g,y:z};return g=Ft.x,z=Ft.y,Object.assign({},n2,o?((N2={})[j]=D?"0":"",N2[U]=T?"0":"",N2.transform=(q.devicePixelRatio||1)<=1?"translate("+g+"px, "+z+"px)":"translate3d("+g+"px, "+z+"px, 0)",N2):((t={})[j]=D?z+"px":"",t[U]=T?g+"px":"",t.transform="",t))}var nq=GW({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function $W(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=void 0===i||i,s=n.resize,c=void 0===s||s,o=it(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(f){f.addEventListener("scroll",r.update,Jc)}),c&&o.addEventListener("resize",r.update,Jc),function(){a&&l.forEach(function(f){f.removeEventListener("scroll",r.update,Jc)}),c&&o.removeEventListener("resize",r.update,Jc)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function qW(e){var t=e.state;t.modifiersData[e.name]=bC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function QW(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,a=r.adaptive,s=void 0===a||a,c=r.roundOffsets,o=void 0===c||c,l={placement:nn(t.placement),variation:lr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,DC(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,DC(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function XW(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!Mt(a)||!rn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(s){var c=i[s];!1===c?a.removeAttribute(s):a.setAttribute(s,!0===c?"":c)}))})},effect:function eq(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]).reduce(function(o,l){return o[l]="",o},{});!Mt(i)||!rn(i)||(Object.assign(i.style,c),Object.keys(a).forEach(function(o){i.removeAttribute(o)}))})}},requires:["computeStyles"]}]});const aq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function iq(e){var t=e.state,n=e.name,i=e.options.offset,a=void 0===i?[0,0]:i,s=gC.reduce(function(f,d){return f[d]=function rq(e,t,r){var n=nn(e),i=[rt,nt].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=a[0],c=a[1];return s=s||0,c=(c||0)*i,[rt,It].indexOf(n)>=0?{x:c,y:s}:{x:s,y:c}}(d,t.rects,a),f},{}),c=s[t.placement],l=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c.x,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=s}};function sq(e,t){}function cq(e,t){if(1&e&&(p(0,"button",3),M(1),I(2,sq,0,0,"ng-template",4),v()),2&e){const r=t.$implicit;y("ngbPanelToggle",r),C(1),B2(" ",r.title," "),C(1),y("ngTemplateOutlet",null==r.titleTpl?null:r.titleTpl.templateRef)}}function oq(e,t){}function lq(e,t){}function fq(e,t){if(1&e){const r=b1();p(0,"div",8),O("ngbRef",function(i){return G(r),$(x().$implicit.panelDiv=i)}),p(1,"div",9),I(2,lq,0,0,"ng-template",4),v()()}if(2&e){const r=x().$implicit;O8("id",r.id),B("aria-labelledby",r.id+"-header"),C(2),y("ngTemplateOutlet",(null==r.contentTpl?null:r.contentTpl.templateRef)||null)}}const uq=function(e,t){return{$implicit:e,opened:t}};function dq(e,t){if(1&e&&(p(0,"div")(1,"div",5),I(2,oq,0,0,"ng-template",6),v(),I(3,fq,3,3,"div",7),v()),2&e){const r=t.$implicit,n=x(),i=P2(1);Cn("accordion-item "+(r.cardClass||"")),C(1),Cn("accordion-header "+(r.type?"bg-"+r.type:n.type?"bg-"+n.type:"")),Y3("id","",r.id,"-header"),C(1),y("ngTemplateOutlet",(null==r.headerTpl?null:r.headerTpl.templateRef)||i)("ngTemplateOutletContext",Li(8,uq,r,r.isOpen)),C(1),y("ngIf",!n.destroyOnHide||r.isOpen||r.transitionRunning)}}function hq(e,t){if(1&e){const r=b1();p(0,"button",1),O("click",function(){return G(r),$(x().close())}),v()}}const Xc=["*"],jq=["dialog"];function CK(e,t){1&e&&M(0),2&e&&F2(x(2).title)}function MK(e,t){}function yK(e,t){if(1&e&&(p(0,"h3",3),I(1,CK,1,1,"ng-template",null,4,S2),I(3,MK,0,0,"ng-template",5),v()),2&e){const r=P2(2),n=x();C(3),y("ngTemplateOutlet",n.isTitleTemplate()?n.title:r)("ngTemplateOutletContext",n.context)}}function zn(e){return"string"==typeof e}function N4(e){return null!=e}function fr(e){return(e||document.body).getBoundingClientRect()}const TC={animation:!0,transitionTimerDelayMs:5},OK=()=>{},{transitionTimerDelayMs:RK}=TC,Ji=new Map,x2=(e,t,r,n)=>{let i=n.context||{};const a=Ji.get(t);if(a)switch(n.runningTransition){case"continue":return lt;case"stop":e.run(()=>a.transition$.complete()),i=Object.assign(a.context,i),Ji.delete(t)}const s=r(t,n.animation,i)||OK;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),ae(void 0).pipe(function TK(e){return t=>new We(r=>t.subscribe({next:s=>e.run(()=>r.next(s)),error:s=>e.run(()=>r.error(s)),complete:()=>e.run(()=>r.complete())}))}(e));const c=new ue,o=new ue,l=c.pipe(function eW(...e){return t=>$i(t,ae(...e))}(!0));Ji.set(t,{transition$:c,complete:()=>{o.next(),o.complete()},context:i});const f=function IK(e){const{transitionDelay:t,transitionDuration:r}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(r))}(t);return e.runOutsideAngular(()=>{const d=e2(t,"transitionend").pipe(R1(l),N1(({target:g})=>g===t));oC(sC(f+RK).pipe(R1(l)),d,o).pipe(R1(l)).subscribe(()=>{Ji.delete(t),e.run(()=>{s(),c.next(),c.complete()})})}),c.asObservable()},O5=(e,t,r)=>{let{direction:n,maxSize:i,dimension:a}=r;const{classList:s}=e;function c(){s.add("collapse"),"show"===n?s.add("show"):s.remove("show")}if(t)return i||(i=function kK(e,t){if(typeof navigator>"u")return"0px";const{classList:r}=e,n=r.contains("show");n||r.add("show"),e.style[t]="";const i=e.getBoundingClientRect()[t]+"px";return n||r.remove("show"),i}(e,a),r.maxSize=i,e.style[a]="show"!==n?i:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),fr(e),s.add("collapsing")),e.style[a]="show"===n?i:"0px",()=>{c(),s.remove("collapsing"),e.style[a]=""};c()};let A4=(()=>{var e;class t{constructor(){this.animation=TC.animation}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),IC=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),PK=0,eo=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(H(c1))},e.\u0275dir=W({type:e,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),R5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(H(c1))},e.\u0275dir=W({type:e,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),k5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(H(c1))},e.\u0275dir=W({type:e,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),to=(()=>{var e;class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+PK++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new ee,this.hidden=new ee}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=W({type:e,selectors:[["ngb-panel"]],contentQueries:function(n,i,a){if(1&n&&(H1(a,R5,4),H1(a,eo,4),H1(a,k5,4)),2&n){let s;je(s=Ge())&&(i.titleTpls=s),je(s=Ge())&&(i.headerTpls=s),je(s=Ge())&&(i.contentTpls=s)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),FK=(()=>{var e;class t{constructor(n){this._El=n,this.ngbRef=new ee}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne))},e.\u0275dir=W({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),P5=(()=>{var e;class t{set ngbPanelToggle(n){n&&(this.panel=n)}constructor(n,i){this.accordion=n,this.panel=i}}return(e=t).\u0275fac=function(n){return new(n||e)(H(me(()=>F5)),H(to,9))},e.\u0275dir=W({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(n,i){1&n&&O("click",function(){return i.accordion.toggle(i.panel.id)}),2&n&&(w2("disabled",i.panel.disabled),B("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),De("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),F5=(()=>{var e;class t{constructor(n,i,a){this._ngZone=i,this._changeDetector=a,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new ee,this.shown=new ee,this.hidden=new ee,this.animation=n.animation,this.type=n.type,this.closeOtherPanels=n.closeOthers}isExpanded(n){return this.activeIds.indexOf(n)>-1}expand(n){this._changeOpenState(this._findPanelById(n),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(n=>this._changeOpenState(n,!0))}collapse(n){this._changeOpenState(this._findPanelById(n),!1)}collapseAll(){this.panels.forEach(n=>{this._changeOpenState(n,!1)})}toggle(n){const i=this._findPanelById(n);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){zn(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(n=>{n.isOpen=!n.disabled&&this.activeIds.indexOf(n.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(t2(1)).subscribe(()=>{this.panels.forEach(n=>{const i=n.panelDiv;i?n.initClassDone||(n.initClassDone=!0,x2(this._ngZone,i,O5,{animation:!1,runningTransition:"continue",context:{direction:n.isOpen?"show":"hide",dimension:"height"}})):n.initClassDone=!1})})}_changeOpenState(n,i){if(null!=n&&!n.disabled&&n.isOpen!==i){let a=!1;this.panelChange.emit({panelId:n.id,nextState:i,preventDefault:()=>{a=!0}}),a||(n.isOpen=i,n.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(n.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(n,i=!0){this.panels.forEach(a=>{a.id!==n&&a.isOpen&&(a.isOpen=!1,a.transitionRunning=i)})}_findPanelById(n){return this.panels.find(i=>i.id===n)||null}_updateActiveIds(){this.activeIds=this.panels.filter(n=>n.isOpen&&!n.disabled).map(n=>n.id)}_runTransitions(n){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&x2(this._ngZone,i.panelDiv,O5,{animation:n,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{i.transitionRunning=!1;const{id:s}=i;i.isOpen?(i.shown.emit(),this.shown.emit(s)):(i.hidden.emit(),this.hidden.emit(s))})})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(IC),H(ye),H(et))},e.\u0275cmp=se({type:e,selectors:[["ngb-accordion"]],contentQueries:function(n,i,a){if(1&n&&H1(a,to,4),2&n){let s;je(s=Ge())&&(i.panels=s)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(n,i){2&n&&B("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[z2],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(n,i){1&n&&(I(0,cq,3,3,"ng-template",0,1,S2),I(2,dq,4,11,"ng-template",2)),2&n&&(C(2),y("ngForOf",i.panels))},dependencies:[_t,H4,P5,FK,eo,V1],encapsulation:2}),t})(),BK=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.horizontal=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),B5=(()=>{var e;class t{set collapsed(n){this._isCollapsed!==n&&(this._isCollapsed=n,this._afterInit&&this._runTransitionWithEvents(n,this.animation))}constructor(n,i,a){this._element=n,this._zone=a,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new ee,this.shown=new ee,this.hidden=new ee,this.animation=i.animation,this.horizontal=i.horizontal}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(n=this._isCollapsed){this.collapsed=!n,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(n,i){return x2(this._zone,this._element.nativeElement,O5,{animation:i,runningTransition:"stop",context:{direction:n?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(n,i){this._runTransition(n,i).subscribe(()=>{n?this.hidden.emit():this.shown.emit()})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(BK),H(ye))},e.\u0275dir=W({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(n,i){2&n&&De("collapse-horizontal",i.horizontal)},inputs:{animation:"animation",collapsed:["ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0}),t})(),kC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const WK=({classList:e})=>{e.remove("show")};let qK=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),PC=(()=>{var e;class t{constructor(n,i,a,s){this._renderer=i,this._element=a,this._zone=s,this.closed=new ee,this.dismissible=n.dismissible,this.type=n.type,this.animation=n.animation}close(){const n=x2(this._zone,this._element.nativeElement,WK,{animation:this.animation,runningTransition:"continue"});return n.subscribe(()=>this.closed.emit()),n}ngOnChanges(n){const i=n.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(e=t).\u0275fac=function(n){return new(n||e)(H(qK),H(l2),H(Ne),H(ye))},e.\u0275cmp=se({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(n,i){2&n&&De("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[M1,z2],ngContentSelectors:Xc,decls:2,vars:1,consts:function(){let r;return r=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",r,3,"click",4,"ngIf"],["type","button","aria-label",r,1,"btn-close",3,"click"]]},template:function(n,i){1&n&&(q3(),K3(0),I(1,hq,1,0,"button",0)),2&n&&(C(1),y("ngIf",i.dismissible))},dependencies:[V1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),FC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),jC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),GC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();var Qe=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e}(Qe||{});const co=(e,t)=>!!t&&t.some(r=>r.contains(e)),YC=(e,t)=>!t||null!=function EK(e,t){return!t||typeof e.closest>"u"?null:e.closest(t)}(e,t),pY=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function oo(e,t,r,n,i,a,s,c){r&&e.runOutsideAngular((e=>pY?()=>setTimeout(()=>e(),100):e)(()=>{const l=e2(t,"keydown").pipe(R1(i),N1(m=>m.which===Qe.Escape),q1(m=>m.preventDefault())),f=e2(t,"mousedown").pipe(we(m=>{const g=m.target;return 2!==m.button&&!co(g,s)&&("inside"===r?co(g,a)&&YC(g,c):"outside"===r?!co(g,a):YC(g,c)||!co(g,a))}),R1(i)),d=e2(t,"mouseup").pipe(w5(f),N1(([m,g])=>g),uC(0),R1(i));oC([l.pipe(we(m=>0)),d.pipe(we(m=>1))]).subscribe(m=>e.run(()=>n(m)))}))}const ZC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function QC(e){const t=Array.from(e.querySelectorAll(ZC)).filter(r=>-1!==r.tabIndex);return[t[0],t[t.length-1]]}let gY=(()=>{var e;class t{constructor(n){this._element=n.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(w1))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const vY=/\s+/,_Y=/ +/gi,CY={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},yY=/^left/,bY=/^right/,HY=/^start/,wY=/^end/;function XC({placement:e,baseClass:t},r){let n=Array.isArray(e)?e:e.split(vY),a=n.findIndex(l=>"auto"===l);a>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(l){null==n.find(f=>-1!==f.search("^"+l))&&n.splice(a++,1,l)});const s=n.map(l=>function MY(e,t){const[r,n]=CY[e];return t&&n||r}(l,r.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!t,phase:"write",fn({state:l}){const f=new RegExp(t+"(-[a-z]+)*","gi"),d=l.elements.popper,m=l.placement;let g=d.className;g=g.replace(f,""),g+=` ${function VY(e,t){let[r,n]=t.split("-");const i=r.replace(yY,"start").replace(bY,"end");let a=[i];if(n){let s=n;("left"===r||"right"===r)&&(s=s.replace(HY,"top").replace(wY,"bottom")),a.push(`${i}-${s}`)}return e&&(a=a.map(s=>`${e}-${s}`)),a.join(" ")}(t,m)}`,g=g.trim().replace(_Y," "),d.className=g}},SW,NW,IW,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function eM(e){return e}function lo(){const e=J(gY);let t=null;return{createPopper(r){if(!t){let i=(r.updatePopperOptions||eM)(XC(r,e));t=nq(r.hostElement,r.targetElement,i)}},update(){t&&t.update()},setOptions(r){if(t){let i=(r.updatePopperOptions||eM)(XC(r,e));t.setOptions(i)}},destroy(){t&&(t.destroy(),t=null)}}}new Date(1882,10,12),new Date(2174,10,25);let oM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),uM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();class R4{constructor(t,r,n){this.nodes=t,this.viewRef=r,this.componentRef=n}}class dM{constructor(t,r,n,i,a,s){this._componentType=t,this._injector=r,this._viewContainerRef=n,this._renderer=i,this._ngZone=a,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(t,r,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,r),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:i}=this._windowRef.location,a=this._ngZone.onStable.pipe(t2(1),F1(()=>x2(this._ngZone,i,({classList:s})=>s.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(t=!1){return this._windowRef?x2(this._ngZone,this._windowRef.location.nativeElement,({classList:r})=>r.remove("show"),{animation:t,runningTransition:"stop"}).pipe(q1(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):ae(void 0)}_getContentRef(t,r){if(t){if(t instanceof c1){const n=t.createEmbeddedView(r);return this._applicationRef.attachView(n),new R4([n.rootNodes],n)}return new R4([[this._renderer.createText(`${t}`)]])}return new R4([])}}let kY=(()=>{var e;class t{constructor(n,i){this._el=n,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(t2(1)).subscribe(()=>{x2(this._zone,this._el.nativeElement,(n,i)=>{i&&fr(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return x2(this._zone,this._el.nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(ye))},e.\u0275cmp=se({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,i){2&n&&(Cn("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),De("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[z2],decls:0,vars:0,template:function(n,i){},encapsulation:2}),t})();class hM{update(t){}close(t){}dismiss(t){}}const PY=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],FY=["animation","backdropClass"];class BY{_applyWindowOptions(t,r){PY.forEach(n=>{N4(r[n])&&(t[n]=r[n])})}_applyBackdropOptions(t,r){FY.forEach(n=>{N4(r[n])&&(t[n]=r[n])})}update(t){this._applyWindowOptions(this._windowCmptRef.instance,t),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,t)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(R1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(R1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(t,r,n,i){this._windowCmptRef=t,this._contentRef=r,this._backdropCmptRef=n,this._beforeDismiss=i,this._closed=new ue,this._dismissed=new ue,this._hidden=new ue,t.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,s)=>{this._resolve=a,this._reject=s}),this.result.then(null,()=>{})}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const r=this._beforeDismiss();!function xC(e){return e&&e.then}(r)?!1!==r&&this._dismiss(t):r.then(n=>{!1!==n&&this._dismiss(t)},()=>{})}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),r=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ae(void 0);t.subscribe(()=>{const{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),r.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),H5(t,r).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var na=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(na||{});let UY=(()=>{var e;class t{constructor(n,i,a){this._document=n,this._elRef=i,this._zone=a,this._closed$=new ue,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ee,this.shown=new ue,this.hidden=new ue}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":zn(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(t2(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:n}=this._elRef,i={animation:this.animation,runningTransition:"stop"},c=H5(x2(this._zone,n,()=>n.classList.remove("show"),i),x2(this._zone,this._dialogEl.nativeElement,()=>{},i));return c.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),c}_show(){const n={animation:this.animation,runningTransition:"continue"};H5(x2(this._zone,this._elRef.nativeElement,(s,c)=>{c&&fr(s),s.classList.add("show")},n),x2(this._zone,this._dialogEl.nativeElement,()=>{},n)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{e2(n,"keydown").pipe(R1(this._closed$),N1(a=>a.which===Qe.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(na.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;e2(this._dialogEl.nativeElement,"mousedown").pipe(R1(this._closed$),q1(()=>i=!1),wt(()=>e2(n,"mouseup").pipe(R1(this._closed$),t2(1))),N1(({target:a})=>n===a)).subscribe(()=>{i=!0}),e2(n,"click").pipe(R1(this._closed$)).subscribe(({target:a})=>{n===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(na.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){const i=n.querySelector("[ngbAutofocus]"),a=QC(n)[0];(i||a||n).focus()}}_restoreFocus(){const n=this._document.body,i=this._elWithFocus;let a;a=i&&i.focus&&n.contains(i)?i:n,this._zone.runOutsideAngular(()=>{setTimeout(()=>a.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&x2(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(w1),H(Ne),H(ye))},e.\u0275cmp=se({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,i){if(1&n&&function y4(e,t,r){const n=xe();n.firstCreatePass&&(fg(n,new cg(e,t,r),-1),2==(2&t)&&(n.staticViewQueries=!0)),lg(n,P(),t)}(jq,7),2&n){let a;je(a=Ge())&&(i._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(n,i){2&n&&(B("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Cn("modal d-block"+(i.windowClass?" "+i.windowClass:"")),De("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"},standalone:!0,features:[z2],ngContentSelectors:Xc,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(n,i){1&n&&(q3(),p(0,"div",0,1)(2,"div",2),K3(3),v()()),2&n&&Cn("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})(),jY=(()=>{var e;class t{constructor(n){this._document=n}hide(){const n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,a=i.style,{overflow:s,paddingRight:c}=a;if(n>0){const o=parseFloat(window.getComputedStyle(i).paddingRight);a.paddingRight=`${o+n}px`}return a.overflow="hidden",()=>{n>0&&(a.paddingRight=c),a.overflow=s}}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(w1))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),GY=(()=>{var e;class t{constructor(n,i,a,s,c,o,l){this._applicationRef=n,this._injector=i,this._environmentInjector=a,this._document=s,this._scrollBar=c,this._rendererFactory=o,this._ngZone=l,this._activeWindowCmptHasChanged=new ue,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ee,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const f=this._windowCmpts[this._windowCmpts.length-1];((e,t,r,n=!1)=>{e.runOutsideAngular(()=>{const i=e2(t,"focusin").pipe(R1(r),we(a=>a.target));e2(t,"keydown").pipe(R1(r),N1(a=>a.which===Qe.Tab),w5(i)).subscribe(([a,s])=>{const[c,o]=QC(t);(s===c||s===t)&&a.shiftKey&&(o.focus(),a.preventDefault()),s===o&&!a.shiftKey&&(c.focus(),a.preventDefault())}),n&&e2(t,"click").pipe(R1(r),w5(i),we(a=>a[1])).subscribe(a=>a.focus())})})(this._ngZone,f.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(f.location.nativeElement)}})}_restoreScrollBar(){const n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,i,a){const s=a.container instanceof HTMLElement?a.container:N4(a.container)?this._document.querySelector(a.container):this._document.body,c=this._rendererFactory.createRenderer(null,null);if(!s)throw new Error(`The specified modal container "${a.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const o=new hM,l=(n=a.injector||n).get(k2,null)||this._environmentInjector,f=this._getContentRef(n,l,i,o,a);let d=!1!==a.backdrop?this._attachBackdrop(s):void 0,m=this._attachWindowComponent(s,f.nodes),g=new BY(m,f,d,a.beforeDismiss);return this._registerModalRef(g),this._registerWindowCmpt(m),g.hidden.pipe(t2(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(c.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),o.close=w=>{g.close(w)},o.dismiss=w=>{g.dismiss(w)},o.update=w=>{g.update(w)},g.update(a),1===this._modalRefs.length&&c.addClass(this._document.body,"modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),m.changeDetectorRef.detectChanges(),g}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(i=>i.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let i=Vl(kY,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),n.appendChild(i.location.nativeElement),i}_attachWindowComponent(n,i){let a=Vl(UY,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(a.hostView),n.appendChild(a.location.nativeElement),a}_getContentRef(n,i,a,s,c){return a?a instanceof c1?this._createFromTemplateRef(a,s):zn(a)?this._createFromString(a):this._createFromComponent(n,i,a,s,c):new R4([])}_createFromTemplateRef(n,i){const s=n.createEmbeddedView({$implicit:i,close(c){i.close(c)},dismiss(c){i.dismiss(c)}});return this._applicationRef.attachView(s),new R4([s.rootNodes],s)}_createFromString(n){const i=this._document.createTextNode(`${n}`);return new R4([[i]])}_createFromComponent(n,i,a,s,c){const l=Vl(a,{environmentInjector:i,elementInjector:B1.create({providers:[{provide:hM,useValue:s}],parent:n})}),f=l.location.nativeElement;return c.scrollable&&f.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new R4([[f]],l.hostView,l)}_setAriaHidden(n){const i=n.parentElement;i&&n!==this._document.body&&(Array.from(i.children).forEach(a=>{a!==n&&"SCRIPT"!==a.nodeName&&(this._ariaHiddenValues.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,i)=>{n?i.setAttribute("aria-hidden",n):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){const i=()=>{const a=this._modalRefs.indexOf(n);a>-1&&(this._modalRefs.splice(a,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(i,i)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{const i=this._windowCmpts.indexOf(n);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(tn),Y(B1),Y(k2),Y(w1),Y(jY),Y(c8),Y(ye))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),$Y=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),pM=(()=>{var e;class t{constructor(n,i,a){this._injector=n,this._modalStack=i,this._config=a}open(n,i={}){const a={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,n,a)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(B1),Y(GY),Y($Y))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),mM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({providers:[pM]}),t})(),_M=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),zM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();class eZ{constructor(t,r){this.open=t,this.close=r,r||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const tZ={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},SM=e=>e>0?uC(e):t=>t;function DM(e,t,r,n,i,a,s=0,c=0){const o=function nZ(e,t=tZ){const r=(e||"").trim();if(0===r.length)return[];const n=r.split(/\s+/).map(a=>a.split(":")).map(a=>{let s=t[a[0]]||a;return new eZ(s[0],s[1])}),i=n.filter(a=>a.isManual());if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&n.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return n}(r);if(1===o.length&&o[0].isManual())return()=>{};const l=function rZ(e,t,r,n){return new We(i=>{const a=[],s=()=>i.next(!0),c=()=>i.next(!1),o=()=>i.next(!n());return r.forEach(l=>{l.open===l.close?a.push(e.listen(t,l.open,o)):a.push(e.listen(t,l.open,s),e.listen(t,l.close,c))}),()=>{a.forEach(l=>l())}})}(e,t,o,n).pipe(function iZ(e,t,r){return n=>{let i=null;const a=n.pipe(we(o=>({open:o})),N1(o=>{const l=r();return l===o.open||i&&i.open!==l?(i&&i.open!==o.open&&(i=null),!1):(i=o,!0)}),A6());return N6(a.pipe(N1(o=>o.open),SM(e)),a.pipe(N1(o=>!o.open),SM(t))).pipe(N1(o=>o===i&&(i=null,o.open!==r())),we(o=>o.open))}}(s,c,n)).subscribe(f=>f?i():a());return()=>l.unsubscribe()}let aZ=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,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(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),sZ=0,cZ=(()=>{var e;class t{isTitleTemplate(){return this.title instanceof c1}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,i){2&n&&(w2("id",i.id),Cn("popover"+(i.popoverClass?" "+i.popoverClass:"")),De("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[z2],ngContentSelectors:Xc,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(n,i){1&n&&(q3(),R(0,"div",0),I(1,yK,4,2,"h3",1),p(2,"div",2),K3(3),v()),2&n&&(C(1),y("ngIf",i.title))},dependencies:[H4,V1],encapsulation:2,changeDetection:0}),t})(),oZ=(()=>{var e;class t{_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}constructor(n,i,a,s,c,o,l,f,d){this._elementRef=n,this._renderer=i,this._ngZone=o,this._document=l,this._changeDetector=f,this.shown=new ee,this.hidden=new ee,this._ngbPopoverWindowId="ngb-popover-"+sZ++,this._windowRef=null,this.animation=c.animation,this.autoClose=c.autoClose,this.placement=c.placement,this.popperOptions=c.popperOptions,this.triggers=c.triggers,this.container=c.container,this.disablePopover=c.disablePopover,this.popoverClass=c.popoverClass,this.openDelay=c.openDelay,this.closeDelay=c.closeDelay,this._positioning=lo(),this._popupService=new dM(cZ,a,s,i,this._ngZone,d)}open(n){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:a}=this._popupService.open(this.ngbPopover,n??this.popoverContext,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",n??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"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._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:s=>this.popperOptions(function K5(e){return t=>(t.modifiers.push(aq,{name:"offset",options:{offset:()=>e}}),t)}([0,8])(s))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),oo(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(n=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(n).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=DM(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:n,popoverTitle:i,disablePopover:a,popoverClass:s}){s&&this.isOpen()&&(this._windowRef.instance.popoverClass=s.currentValue),(n||i||a)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(zn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(l2),H(B1),H(j2),H(aZ),H(ye),H(w1),H(et),H(tn))},e.\u0275dir=W({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],standalone:!0,features:[M1]}),t})(),LM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),xM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),NM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),AM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),EM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),TM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),hZ=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,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(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(A4))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),pZ=0,mZ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,i){2&n&&(w2("id",i.id),Cn("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),De("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[z2],ngContentSelectors:Xc,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,i){1&n&&(q3(),R(0,"div",0),p(1,"div",1),K3(2),v())},encapsulation:2,changeDetection:0}),t})(),IM=(()=>{var e;class t{constructor(n,i,a,s,c,o,l,f,d){this._elementRef=n,this._renderer=i,this._ngZone=o,this._document=l,this._changeDetector=f,this.shown=new ee,this.hidden=new ee,this._ngbTooltipWindowId="ngb-tooltip-"+pZ++,this._windowRef=null,this.animation=c.animation,this.autoClose=c.autoClose,this.placement=c.placement,this.popperOptions=c.popperOptions,this.triggers=c.triggers,this.container=c.container,this.disableTooltip=c.disableTooltip,this.tooltipClass=c.tooltipClass,this.openDelay=c.openDelay,this.closeDelay=c.closeDelay,this._popupService=new dM(mZ,a,s,i,this._ngZone,d),this._positioning=lo()}set ngbTooltip(n){this._ngbTooltip=n,!n&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(n){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:a}=this._popupService.open(this._ngbTooltip,n??this.tooltipContext,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"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._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:s=>this.popperOptions(s)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),oo(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(n=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(n).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=DM(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:n}){n&&this.isOpen()&&(this._windowRef.instance.tooltipClass=n.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(zn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(H(Ne),H(l2),H(B1),H(j2),H(hZ),H(ye),H(w1),H(et),H(tn))},e.\u0275dir=W({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[M1]}),t})(),OM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();new te("live announcer delay",{providedIn:"root",factory:function gZ(){return 100}});let RM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})(),kM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();const _Z=[kC,FC,jC,GC,oM,uM,mM,_M,kM,zM,LM,xM,NM,AM,EM,TM,OM,RM];let CZ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({imports:[_Z,kC,FC,jC,GC,oM,uM,mM,_M,kM,zM,LM,xM,NM,AM,EM,TM,OM,RM]}),t})();function PM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?PM(Object(r),!0).forEach(function(n){Y1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vo(e){return(vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function FM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Y1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X5(e,t){return function wZ(e){if(Array.isArray(e))return e}(e)||function zZ(e,t){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,c,n=[],i=!0,a=!1;try{for(r=r.call(e);!(i=(s=r.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(o){a=!0,c=o}finally{try{!i&&null!=r.return&&r.return()}finally{if(a)throw c}}return n}}(e,t)||BM(e,t)||function DZ(){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 aa(e){return function HZ(e){if(Array.isArray(e))return e7(e)}(e)||function VZ(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||BM(e)||function SZ(){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 BM(e,t){if(e){if("string"==typeof e)return e7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e7(e,t)}}function e7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var UM=function(){},t7={},jM={},GM=null,$M={mark:UM,measure:UM};try{typeof window<"u"&&(t7=window),typeof document<"u"&&(jM=document),typeof MutationObserver<"u"&&(GM=MutationObserver),typeof performance<"u"&&($M=performance)}catch{}var Mo,yo,bo,Ho,wo,WM=(t7.navigator||{}).userAgent,qM=void 0===WM?"":WM,Xn=t7,l1=jM,KM=GM,Co=$M,Sn=!!l1.documentElement&&!!l1.head&&"function"==typeof l1.addEventListener&&"function"==typeof l1.createElement,YM=~qM.indexOf("MSIE")||~qM.indexOf("Trident/"),Dn="___FONT_AWESOME___",ZM="fa",QM="svg-inline--fa",k4="data-fa-i2svg",r7="data-fa-pseudo-element",xZ="data-fa-pseudo-element-pending",i7="data-prefix",a7="data-icon",JM="fontawesome-i2svg",NZ="async",AZ=["HTML","HEAD","STYLE","SCRIPT"],XM=function(){try{return!0}catch{return!1}}(),f1="classic",A1="sharp",s7=[f1,A1];function sa(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[f1]}})}var ca=sa((Y1(Mo={},f1,{fa:"solid",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"}),Y1(Mo,A1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Mo)),oa=sa((Y1(yo={},f1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Y1(yo,A1,{solid:"fass",regular:"fasr",light:"fasl"}),yo)),la=sa((Y1(bo={},f1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Y1(bo,A1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),bo)),EZ=sa((Y1(Ho={},f1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Y1(Ho,A1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Ho)),TZ=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,ey="fa-layers-text",IZ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,OZ=sa((Y1(wo={},f1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Y1(wo,A1,{900:"fass",400:"fasr",300:"fasl"}),wo)),ty=[1,2,3,4,5,6,7,8,9,10],RZ=ty.concat([11,12,13,14,15,16,17,18,19,20]),kZ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],P4={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},fa=new Set;Object.keys(oa[f1]).map(fa.add.bind(fa)),Object.keys(oa[A1]).map(fa.add.bind(fa));var PZ=[].concat(s7,aa(fa),["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",P4.GROUP,P4.SWAP_OPACITY,P4.PRIMARY,P4.SECONDARY]).concat(ty.map(function(e){return"".concat(e,"x")})).concat(RZ.map(function(e){return"w-".concat(e)})),ua=Xn.FontAwesomeConfig||{};l1&&"function"==typeof l1.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["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(e){var t=X5(e,2),n=t[1],i=function BZ(e){return""===e||"false"!==e&&("true"===e||e)}(function FZ(e){var t=l1.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=i&&(ua[n]=i)});var ny={styleDefault:"solid",familyDefault:"classic",cssPrefix:ZM,replacementClass:QM,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ua.familyPrefix&&(ua.cssPrefix=ua.familyPrefix);var pr=X(X({},ny),ua);pr.autoReplaceSvg||(pr.observeMutations=!1);var ne={};Object.keys(ny).forEach(function(e){Object.defineProperty(ne,e,{enumerable:!0,set:function(r){pr[e]=r,da.forEach(function(n){return n(ne)})},get:function(){return pr[e]}})}),Object.defineProperty(ne,"familyPrefix",{enumerable:!0,set:function(t){pr.cssPrefix=t,da.forEach(function(r){return r(ne)})},get:function(){return pr.cssPrefix}}),Xn.FontAwesomeConfig=ne;var da=[],an={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},$Z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ha(){for(var e=12,t="";e-- >0;)t+=$Z[62*Math.random()|0];return t}function mr(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function c7(e){return e.classList?mr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function ry(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Vo(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function o7(e){return e.size!==an.size||e.x!==an.x||e.y!==an.y||e.rotate!==an.rotate||e.flipX||e.flipY}var YZ=':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-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\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, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\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 -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 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}';function iy(){var e=ZM,t=QM,r=ne.cssPrefix,n=ne.replacementClass,i=YZ;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(s,"--".concat(r,"-")).replace(c,".".concat(n))}return i}var ay=!1;function l7(){ne.autoAddCss&&!ay&&(function GZ(e){if(e&&Sn){var t=l1.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=l1.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],s=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(n=a)}l1.head.insertBefore(t,n)}}(iy()),ay=!0)}var ZZ={mixout:function(){return{dom:{css:iy,insertCss:l7}}},hooks:function(){return{beforeDOMElementCreation:function(){l7()},beforeI2svg:function(){l7()}}}},Ln=Xn||{};Ln[Dn]||(Ln[Dn]={}),Ln[Dn].styles||(Ln[Dn].styles={}),Ln[Dn].hooks||(Ln[Dn].hooks={}),Ln[Dn].shims||(Ln[Dn].shims=[]);var Rt=Ln[Dn],sy=[],zo=!1;function pa(e){var t=e.tag,r=e.attributes,n=void 0===r?{}:r,i=e.children,a=void 0===i?[]:i;return"string"==typeof e?ry(e):"<".concat(t," ").concat(function WZ(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(ry(e[r]),'" ')},"").trim()}(n),">").concat(a.map(pa).join(""),"</").concat(t,">")}function cy(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}Sn&&((zo=(l1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(l1.readyState))||l1.addEventListener("DOMContentLoaded",function e(){l1.removeEventListener("DOMContentLoaded",e),zo=1,sy.map(function(t){return t()})}));var f7=function(t,r,n,i){var o,l,f,a=Object.keys(t),s=a.length,c=void 0!==i?function(t,r){return function(n,i,a,s){return t.call(r,n,i,a,s)}}(r,i):r;for(void 0===n?(o=1,f=t[a[0]]):(o=0,f=n);o<s;o++)f=c(f,t[l=a[o]],l,t);return f};function u7(e){var t=function eQ(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),r--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function oy(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return n.icon?t[n.iconName]=n.icon:t[r]=n,t},{})}function d7(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,i=void 0!==n&&n,a=oy(t);"function"!=typeof Rt.hooks.addPack||i?Rt.styles[e]=X(X({},Rt.styles[e]||{}),a):Rt.hooks.addPack(e,oy(t)),"fas"===e&&d7("fa",t)}var So,Do,Lo,gr=Rt.styles,nQ=Rt.shims,rQ=(Y1(So={},f1,Object.values(la[f1])),Y1(So,A1,Object.values(la[A1])),So),h7=null,ly={},fy={},uy={},dy={},hy={},iQ=(Y1(Do={},f1,Object.keys(ca[f1])),Y1(Do,A1,Object.keys(ca[A1])),Do);var py=function(){var t=function(a){return f7(gr,function(s,c,o){return s[o]=f7(c,a,{}),s},{})};ly=t(function(i,a,s){return a[3]&&(i[a[3]]=s),a[2]&&a[2].filter(function(o){return"number"==typeof o}).forEach(function(o){i[o.toString(16)]=s}),i}),fy=t(function(i,a,s){return i[s]=s,a[2]&&a[2].filter(function(o){return"string"==typeof o}).forEach(function(o){i[o]=s}),i}),hy=t(function(i,a,s){var c=a[2];return i[s]=s,c.forEach(function(o){i[o]=s}),i});var r="far"in gr||ne.autoFetchSvg,n=f7(nQ,function(i,a){var s=a[0],c=a[1],o=a[2];return"far"===c&&!r&&(c="fas"),"string"==typeof s&&(i.names[s]={prefix:c,iconName:o}),"number"==typeof s&&(i.unicodes[s.toString(16)]={prefix:c,iconName:o}),i},{names:{},unicodes:{}});uy=n.names,dy=n.unicodes,h7=xo(ne.styleDefault,{family:ne.familyDefault})};function p7(e,t){return(ly[e]||{})[t]}function F4(e,t){return(hy[e]||{})[t]}function my(e){return uy[e]||{prefix:null,iconName:null}}function t4(){return h7}(function jZ(e){da.push(e)})(function(e){h7=xo(e.styleDefault,{family:ne.familyDefault})}),py();var m7=function(){return{prefix:null,iconName:null,rest:[]}};function xo(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===r?f1:r;return oa[n][e]||oa[n][ca[n][e]]||(e in Rt.styles?e:null)||null}var gy=(Y1(Lo={},f1,Object.keys(la[f1])),Y1(Lo,A1,Object.keys(la[A1])),Lo);function No(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,i=void 0!==n&&n,a=(Y1(t={},f1,"".concat(ne.cssPrefix,"-").concat(f1)),Y1(t,A1,"".concat(ne.cssPrefix,"-").concat(A1)),t),s=null,c=f1;(e.includes(a[f1])||e.some(function(l){return gy[f1].includes(l)}))&&(c=f1),(e.includes(a[A1])||e.some(function(l){return gy[A1].includes(l)}))&&(c=A1);var o=e.reduce(function(l,f){var d=function sQ(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n!==e||""===i||function aQ(e){return~PZ.indexOf(e)}(i)?null:i}(ne.cssPrefix,f);if(gr[f]?(f=rQ[c].includes(f)?EZ[c][f]:f,s=f,l.prefix=f):iQ[c].indexOf(f)>-1?(s=f,l.prefix=xo(f,{family:c})):d?l.iconName=d:f!==ne.replacementClass&&f!==a[f1]&&f!==a[A1]&&l.rest.push(f),!i&&l.prefix&&l.iconName){var m="fa"===s?my(l.iconName):{},g=F4(l.prefix,l.iconName);m.prefix&&(s=null),l.iconName=m.iconName||g||l.iconName,l.prefix=m.prefix||l.prefix,"far"===l.prefix&&!gr.far&&gr.fas&&!ne.autoFetchSvg&&(l.prefix="fas")}return l},m7());return(e.includes("fa-brands")||e.includes("fab"))&&(o.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(o.prefix="fad"),!o.prefix&&c===A1&&(gr.fass||ne.autoFetchSvg)&&(o.prefix="fass",o.iconName=F4(o.prefix,o.iconName)||o.iconName),("fa"===o.prefix||"fa"===s)&&(o.prefix=t4()||"fas"),o}var lQ=function(){function e(){(function MZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function yZ(e,t,r){t&&FM(e.prototype,t),r&&FM(e,r),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var s=i.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(c){r.definitions[c]=X(X({},r.definitions[c]||{}),s[c]),d7(c,s[c]);var o=la[f1][c];o&&d7(o,s[c]),py()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(function(a){var s=i[a],c=s.prefix,o=s.iconName,l=s.icon,f=l[2];r[c]||(r[c]={}),f.length>0&&f.forEach(function(d){"string"==typeof d&&(r[c][d]=l)}),r[c][o]=l}),r}}]),e}(),vy=[],vr={},_r={},fQ=Object.keys(_r);function g7(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return(vr[e]||[]).forEach(function(s){t=s.apply(null,[t].concat(n))}),t}function B4(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(vr[e]||[]).forEach(function(a){a.apply(null,r)})}function xn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return _r[e]?_r[e].apply(null,t):void 0}function v7(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,r=e.prefix||t4();if(t)return t=F4(r,t)||t,cy(_y.definitions,r,t)||cy(Rt.styles,r,t)}var _y=new lQ,hQ={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Sn?(B4("beforeI2svg",t),xn("pseudoElements2svg",t),xn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.autoReplaceSvgRoot;!1===ne.autoReplaceSvg&&(ne.autoReplaceSvg=!0),ne.observeMutations=!0,function JZ(e){Sn&&(zo?setTimeout(e,0):sy.push(e))}(function(){mQ({autoReplaceSvgRoot:r}),B4("watch",t)})}},at={noAuto:function(){ne.autoReplaceSvg=!1,ne.observeMutations=!1,B4("noAuto")},config:ne,dom:hQ,parse:{icon:function(t){if(null===t)return null;if("object"===vo(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:F4(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var r=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=xo(t[0]);return{prefix:n,iconName:F4(n,r)||r}}if("string"==typeof t&&(t.indexOf("".concat(ne.cssPrefix,"-"))>-1||t.match(TZ))){var i=No(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||t4(),iconName:F4(i.prefix,i.iconName)||i.iconName}}if("string"==typeof t){var a=t4();return{prefix:a,iconName:F4(a,t)||t}}}},library:_y,findIconDefinition:v7,toHtml:pa},mQ=function(){var r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,n=void 0===r?l1:r;(Object.keys(Rt.styles).length>0||ne.autoFetchSvg)&&Sn&&ne.autoReplaceSvg&&at.dom.i2svg({node:n})};function Ao(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return pa(n)})}}),Object.defineProperty(e,"node",{get:function(){if(Sn){var n=l1.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function _7(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,s=e.transform,c=e.symbol,o=e.title,l=e.maskId,f=e.titleId,d=e.extra,m=e.watchable,g=void 0!==m&&m,w=n.found?n:r,z=w.width,L=w.height,T="fak"===i,D=[ne.replacementClass,a?"".concat(ne.cssPrefix,"-").concat(a):""].filter(function(ke){return-1===d.classes.indexOf(ke)}).filter(function(ke){return""!==ke||!!ke}).concat(d.classes).join(" "),U={children:[],attributes:X(X({},d.attributes),{},{"data-prefix":i,"data-icon":a,class:D,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(z," ").concat(L)})},j=T&&!~d.classes.indexOf("fa-fw")?{width:"".concat(z/L*16*.0625,"em")}:{};g&&(U.attributes[k4]=""),o&&(U.children.push({tag:"title",attributes:{id:U.attributes["aria-labelledby"]||"title-".concat(f||ha())},children:[o]}),delete U.attributes.title);var q=X(X({},U),{},{prefix:i,iconName:a,main:r,mask:n,maskId:l,transform:s,symbol:c,styles:X(X({},j),d.styles)}),ie=n.found&&r.found?xn("generateAbstractMask",q)||{children:[],attributes:{}}:xn("generateAbstractIcon",q)||{children:[],attributes:{}},He=ie.attributes;return q.children=ie.children,q.attributes=He,c?function vQ(e){var r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,s=!0===a?"".concat(e.prefix,"-").concat(ne.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:X(X({},i),{},{id:s}),children:n}]}]}(q):function gQ(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,s=e.transform;if(o7(s)&&r.found&&!n.found){var l={x:r.width/r.height/2,y:.5};i.style=Vo(X(X({},a),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(q)}function Cy(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,s=e.extra,c=e.watchable,o=void 0!==c&&c,l=X(X(X({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});o&&(l[k4]="");var f=X({},s.styles);o7(i)&&(f.transform=function KZ(e){var t=e.transform,r=e.width,i=e.height,a=void 0===i?16:i,s=e.startCentered,c=void 0!==s&&s,o="";return o+=c&&YM?"translate(".concat(t.x/16-(void 0===r?16:r)/2,"em, ").concat(t.y/16-a/2,"em) "):c?"translate(calc(-50% + ".concat(t.x/16,"em), calc(-50% + ").concat(t.y/16,"em)) "):"translate(".concat(t.x/16,"em, ").concat(t.y/16,"em) "),(o+="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:r,height:n}),f["-webkit-transform"]=f.transform);var d=Vo(f);d.length>0&&(l.style=d);var m=[];return m.push({tag:"span",attributes:l,children:[t]}),a&&m.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),m}var C7=Rt.styles;function M7(e){var t=e[0],r=e[1],a=X5(e.slice(4),1)[0];return{found:!0,width:t,height:r,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(ne.cssPrefix,"-").concat(P4.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(P4.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(P4.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var CQ={found:!1,width:512,height:512};function y7(e,t){var r=t;return"fa"===t&&null!==ne.styleDefault&&(t=t4()),new Promise(function(n,i){if(xn("missingIconAbstract"),"fa"===r){var s=my(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&C7[t]&&C7[t][e])return n(M7(C7[t][e]));(function MQ(e,t){!XM&&!ne.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))})(e,t),n(X(X({},CQ),{},{icon:ne.showMissingIcons&&e&&xn("missingIconAbstract")||{}}))})}var My=function(){},b7=ne.measurePerformance&&Co&&Co.mark&&Co.measure?Co:{mark:My,measure:My},ma='FA "6.4.2"',yy=function(t){b7.mark("".concat(ma," ").concat(t," ends")),b7.measure("".concat(ma," ").concat(t),"".concat(ma," ").concat(t," begins"),"".concat(ma," ").concat(t," ends"))},H7={begin:function(t){return b7.mark("".concat(ma," ").concat(t," begins")),function(){return yy(t)}},end:yy},Eo=function(){};function by(e){return"string"==typeof(e.getAttribute?e.getAttribute(k4):null)}function VQ(e){return l1.createElementNS("http://www.w3.org/2000/svg",e)}function zQ(e){return l1.createElement(e)}function Hy(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===r?"svg"===e.tag?VQ:zQ:r;if("string"==typeof e)return l1.createTextNode(e);var i=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])}),(e.children||[]).forEach(function(s){i.appendChild(Hy(s,{ceFn:n}))}),i}var To={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(Hy(i),r)}),null===r.getAttribute(k4)&&ne.keepOriginalSource){var n=l1.createComment(function SQ(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~c7(r).indexOf(ne.replacementClass))return To.replace(t);var i=new RegExp("".concat(ne.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(c,o){return o===ne.replacementClass||o.match(i)?c.toSvg.push(o):c.toNode.push(o),c},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?r.removeAttribute("class"):r.setAttribute("class",a.toNode.join(" "))}var s=n.map(function(c){return pa(c)}).join("\n");r.setAttribute(k4,""),r.innerHTML=s}};function wy(e){e()}function Vy(e,t){var r="function"==typeof t?t:Eo;if(0===e.length)r();else{var n=wy;ne.mutateApproach===NZ&&(n=Xn.requestAnimationFrame||wy),n(function(){var i=function wQ(){return!0===ne.autoReplaceSvg?To.replace:To[ne.autoReplaceSvg]||To.replace}(),a=H7.begin("mutate");e.map(i),a(),r()})}}var w7=!1;function zy(){w7=!0}function V7(){w7=!1}var Io=null;function Sy(e){if(KM&&ne.observeMutations){var t=e.treeCallback,r=void 0===t?Eo:t,n=e.nodeCallback,i=void 0===n?Eo:n,a=e.pseudoElementsCallback,s=void 0===a?Eo:a,c=e.observeMutationsRoot,o=void 0===c?l1:c;Io=new KM(function(l){if(!w7){var f=t4();mr(l).forEach(function(d){if("childList"===d.type&&d.addedNodes.length>0&&!by(d.addedNodes[0])&&(ne.searchPseudoElements&&s(d.target),r(d.target)),"attributes"===d.type&&d.target.parentNode&&ne.searchPseudoElements&&s(d.target.parentNode),"attributes"===d.type&&by(d.target)&&~kZ.indexOf(d.attributeName))if("class"===d.attributeName&&function bQ(e){var t=e.getAttribute?e.getAttribute(i7):null,r=e.getAttribute?e.getAttribute(a7):null;return t&&r}(d.target)){var m=No(c7(d.target)),w=m.iconName;d.target.setAttribute(i7,m.prefix||f),w&&d.target.setAttribute(a7,w)}else(function HQ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ne.replacementClass)})(d.target)&&i(d.target)})}}),Sn&&Io.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Dy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},r=function xQ(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"",i=No(c7(e));return i.prefix||(i.prefix=t4()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=function cQ(e,t){return(fy[e]||{})[t]}(i.prefix,e.innerText)||p7(i.prefix,u7(e.innerText))),!i.iconName&&ne.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}(e),n=r.iconName,i=r.prefix,a=r.rest,s=function NQ(e){var t=mr(e.attributes).reduce(function(i,a){return"class"!==i.name&&"style"!==i.name&&(i[a.name]=a.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return ne.autoA11y&&(r?t["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(n||ha()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),c=g7("parseNodeAttributes",{},e),o=t.styleParser?function LQ(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),s=a[0],c=a.slice(1);return s&&c.length>0&&(n[s]=c.join(":").trim()),n},{})),r}(e):[];return X({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:an,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:o,attributes:s}},c)}var EQ=Rt.styles;function Ly(e){var t="nest"===ne.autoReplaceSvg?Dy(e,{styleParser:!1}):Dy(e);return~t.extra.classes.indexOf(ey)?xn("generateLayersText",e,t):xn("generateSvgReplacementMutation",e,t)}var n4=new Set;function xy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Sn)return Promise.resolve();var r=l1.documentElement.classList,n=function(d){return r.add("".concat(JM,"-").concat(d))},i=function(d){return r.remove("".concat(JM,"-").concat(d))},a=ne.autoFetchSvg?n4:s7.map(function(f){return"fa-".concat(f)}).concat(Object.keys(EQ));a.includes("fa")||a.push("fa");var s=[".".concat(ey,":not([").concat(k4,"])")].concat(a.map(function(f){return".".concat(f,":not([").concat(k4,"])")})).join(", ");if(0===s.length)return Promise.resolve();var c=[];try{c=mr(e.querySelectorAll(s))}catch{}if(!(c.length>0))return Promise.resolve();n("pending"),i("complete");var o=H7.begin("onTree"),l=c.reduce(function(f,d){try{var m=Ly(d);m&&f.push(m)}catch(g){XM||"MissingIcon"===g.name&&console.error(g)}return f},[]);return new Promise(function(f,d){Promise.all(l).then(function(m){Vy(m,function(){n("active"),n("complete"),i("pending"),"function"==typeof t&&t(),o(),f()})}).catch(function(m){o(),d(m)})})}function TQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ly(e).then(function(r){r&&Vy([r],t)})}s7.map(function(e){n4.add("fa-".concat(e))}),Object.keys(ca[f1]).map(n4.add.bind(n4)),Object.keys(ca[A1]).map(n4.add.bind(n4)),n4=aa(n4);var OQ=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.transform,i=void 0===n?an:n,a=r.symbol,s=void 0!==a&&a,c=r.mask,o=void 0===c?null:c,l=r.maskId,f=void 0===l?null:l,d=r.title,m=void 0===d?null:d,g=r.titleId,w=void 0===g?null:g,z=r.classes,L=void 0===z?[]:z,T=r.attributes,D=void 0===T?{}:T,U=r.styles,j=void 0===U?{}:U;if(t){var q=t.prefix,ie=t.iconName,_e=t.icon;return Ao(X({type:"icon"},t),function(){return B4("beforeDOMElementCreation",{iconDefinition:t,params:r}),ne.autoA11y&&(m?D["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(w||ha()):(D["aria-hidden"]="true",D.focusable="false")),_7({icons:{main:M7(_e),mask:o?M7(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:q,iconName:ie,transform:X(X({},an),i),symbol:s,title:m,maskId:f,titleId:w,extra:{attributes:D,styles:j,classes:L}})})}},RQ={mixout:function(){return{icon:(e=OQ,function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:v7(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:v7(i||{})),e(n,X(X({},r),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=xy,r.nodeCallback=TQ,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,a=r.callback;return xy(void 0===n?l1:n,void 0===a?function(){}:a)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,s=n.titleId,c=n.prefix,o=n.transform,l=n.symbol,f=n.mask,d=n.maskId,m=n.extra;return new Promise(function(g,w){Promise.all([y7(i,c),f.iconName?y7(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(z){var L=X5(z,2);g([r,_7({icons:{main:L[0],mask:L[1]},prefix:c,iconName:i,transform:o,symbol:l,maskId:d,title:a,titleId:s,extra:m,watchable:!0})])}).catch(w)})},t.generateAbstractIcon=function(r){var l,n=r.children,i=r.attributes,a=r.main,s=r.transform,o=Vo(r.styles);return o.length>0&&(i.style=o),o7(s)&&(l=xn("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:i}}}},kQ={mixout:function(){return{layer:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.classes,a=void 0===i?[]:i;return Ao({type:"layer"},function(){B4("beforeDOMElementCreation",{assembler:r,params:n});var s=[];return r(function(c){Array.isArray(c)?c.map(function(o){s=s.concat(o.abstract)}):s=s.concat(c.abstract)}),[{tag:"span",attributes:{class:["".concat(ne.cssPrefix,"-layers")].concat(aa(a)).join(" ")},children:s}]})}}}},PQ={mixout:function(){return{counter:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.title,a=void 0===i?null:i,s=n.classes,c=void 0===s?[]:s,o=n.attributes,l=void 0===o?{}:o,f=n.styles,d=void 0===f?{}:f;return Ao({type:"counter",content:r},function(){return B4("beforeDOMElementCreation",{content:r,params:n}),function _Q(e){var t=e.content,r=e.title,n=e.extra,i=X(X(X({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=Vo(n.styles);a.length>0&&(i.style=a);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),r&&s.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),s}({content:r.toString(),title:a,extra:{attributes:l,styles:d,classes:["".concat(ne.cssPrefix,"-layers-counter")].concat(aa(c))}})})}}}},FQ={mixout:function(){return{text:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.transform,a=void 0===i?an:i,s=n.title,c=void 0===s?null:s,o=n.classes,l=void 0===o?[]:o,f=n.attributes,d=void 0===f?{}:f,m=n.styles,g=void 0===m?{}:m;return Ao({type:"text",content:r},function(){return B4("beforeDOMElementCreation",{content:r,params:n}),Cy({content:r,transform:X(X({},an),a),title:c,extra:{attributes:d,styles:g,classes:["".concat(ne.cssPrefix,"-layers-text")].concat(aa(l))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,s=n.extra,c=null,o=null;if(YM){var l=parseInt(getComputedStyle(r).fontSize,10),f=r.getBoundingClientRect();c=f.width/l,o=f.height/l}return ne.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([r,Cy({content:r.innerHTML,width:c,height:o,transform:a,title:i,extra:s,watchable:!0})])}}},BQ=new RegExp('"',"ug"),Ny=[1105920,1112319];function Ay(e,t){var r="".concat(xZ).concat(t.replace(":","-"));return new Promise(function(n,i){if(null!==e.getAttribute(r))return n();var s=mr(e.children).filter(function(_e){return _e.getAttribute(r7)===t})[0],c=Xn.getComputedStyle(e,t),o=c.getPropertyValue("font-family").match(IZ),l=c.getPropertyValue("font-weight"),f=c.getPropertyValue("content");if(s&&!o)return e.removeChild(s),n();if(o&&"none"!==f&&""!==f){var d=c.getPropertyValue("content"),m=~["Sharp"].indexOf(o[2])?A1:f1,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(o[2])?oa[m][o[2].toLowerCase()]:OZ[m][l],w=function UQ(e){var t=e.replace(BQ,""),r=function tQ(e,t){var i,r=e.length,n=e.charCodeAt(t);return n>=55296&&n<=56319&&r>t+1&&(i=e.charCodeAt(t+1))>=56320&&i<=57343?1024*(n-55296)+i-56320+65536:n}(t,0),n=r>=Ny[0]&&r<=Ny[1],i=2===t.length&&t[0]===t[1];return{value:u7(i?t[0]:t),isSecondary:n||i}}(d),z=w.value,L=w.isSecondary,T=o[0].startsWith("FontAwesome"),D=p7(g,z),U=D;if(T){var j=function oQ(e){var t=dy[e],r=p7("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}(z);j.iconName&&j.prefix&&(D=j.iconName,g=j.prefix)}if(!D||L||s&&s.getAttribute(i7)===g&&s.getAttribute(a7)===U)n();else{e.setAttribute(r,U),s&&e.removeChild(s);var q=function AQ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:an,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ie=q.extra;ie.attributes[r7]=t,y7(D,g).then(function(_e){var He=_7(X(X({},q),{},{icons:{main:_e,mask:m7()},prefix:g,iconName:U,extra:ie,watchable:!0})),ke=l1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(ke,e.firstChild):e.appendChild(ke),ke.outerHTML=He.map(function(z1){return pa(z1)}).join("\n"),e.removeAttribute(r),n()}).catch(i)}}else n()})}function jQ(e){return Promise.all([Ay(e,"::before"),Ay(e,"::after")])}function GQ(e){return!(e.parentNode===document.head||~AZ.indexOf(e.tagName.toUpperCase())||e.getAttribute(r7)||e.parentNode&&"svg"===e.parentNode.tagName)}function Ey(e){if(Sn)return new Promise(function(t,r){var n=mr(e.querySelectorAll("*")).filter(GQ).map(jQ),i=H7.begin("searchPseudoElements");zy(),Promise.all(n).then(function(){i(),V7(),t()}).catch(function(){i(),V7(),r()})})}var Ty=!1,Iy=function(t){return t.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),s=a[0],c=a.slice(1).join("-");if(s&&"h"===c)return n.flipX=!0,n;if(s&&"v"===c)return n.flipY=!0,n;if(c=parseFloat(c),isNaN(c))return n;switch(s){case"grow":n.size=n.size+c;break;case"shrink":n.size=n.size-c;break;case"left":n.x=n.x-c;break;case"right":n.x=n.x+c;break;case"up":n.y=n.y-c;break;case"down":n.y=n.y+c;break;case"rotate":n.rotate=n.rotate+c}return n},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},z7={x:0,y:0,width:"100%",height:"100%"};function Oy(e){return e.attributes&&(e.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.attributes.fill="black"),e}!function uQ(e,t){var r=t.mixoutsTo;vy=e,vr={},Object.keys(_r).forEach(function(n){-1===fQ.indexOf(n)&&delete _r[n]}),vy.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(s){"function"==typeof i[s]&&(r[s]=i[s]),"object"===vo(i[s])&&Object.keys(i[s]).forEach(function(c){r[s]||(r[s]={}),r[s][c]=i[s][c]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(s){vr[s]||(vr[s]=[]),vr[s].push(a[s])})}n.provides&&n.provides(_r)})}([ZZ,RQ,kQ,PQ,FQ,{hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=Ey,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node;ne.searchPseudoElements&&Ey(void 0===n?l1:n)}}},{mixout:function(){return{dom:{unwatch:function(){zy(),Ty=!0}}}},hooks:function(){return{bootstrap:function(){Sy(g7("mutationObserverCallbacks",{}))},noAuto:function(){!function DQ(){Io&&Io.disconnect()}()},watch:function(r){var n=r.observeMutationsRoot;Ty?V7():Sy(g7("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},{mixout:function(){return{parse:{transform:function(r){return Iy(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=Iy(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,s=r.iconWidth,c={transform:"translate(".concat(r.containerWidth/2," 256)")},o="translate(".concat(32*i.x,", ").concat(32*i.y,") "),l="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),g={outer:c,inner:{transform:"".concat(o," ").concat(l," ").concat(f)},path:{transform:"translate(".concat(s/2*-1," -256)")}};return{tag:"g",attributes:X({},g.outer),children:[{tag:"g",attributes:X({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:X(X({},n.icon.attributes),g.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?No(i.split(" ").map(function(s){return s.trim()})):m7();return a.prefix||(a.prefix=t4()),r.mask=a,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var e,n=r.children,i=r.attributes,a=r.main,s=r.mask,c=r.maskId,f=a.icon,m=s.icon,g=function qZ(e){var t=e.transform,n=e.iconWidth,i={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(a," ").concat(s," ").concat(c)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:r.transform,containerWidth:s.width,iconWidth:a.width}),w={tag:"rect",attributes:X(X({},z7),{},{fill:"white"})},z=f.children?{children:f.children.map(Oy)}:{},L={tag:"g",attributes:X({},g.inner),children:[Oy(X({tag:f.tag,attributes:X(X({},f.attributes),g.path)},z))]},T={tag:"g",attributes:X({},g.outer),children:[L]},D="mask-".concat(c||ha()),U="clip-".concat(c||ha()),j={tag:"mask",attributes:X(X({},z7),{},{id:D,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,T]},q={tag:"defs",children:[{tag:"clipPath",attributes:{id:U},children:(e=m,"g"===e.tag?e.children:[e])},j]};return n.push(q,{tag:"rect",attributes:X({fill:"currentColor","clip-path":"url(#".concat(U,")"),mask:"url(#".concat(D,")")},z7)}),{children:n,attributes:i}}}},{provides:function(t){var r=!1;Xn.matchMedia&&(r=Xn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:X(X({},i),{},{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 s=X(X({},a),{},{attributeName:"opacity"}),c={tag:"circle",attributes:X(X({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||c.children.push({tag:"animate",attributes:X(X({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:X(X({},s),{},{values:"1;0;1;1;0;1;"})}),n.push(c),n.push({tag:"path",attributes:X(X({},i),{},{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:r?[]:[{tag:"animate",attributes:X(X({},s),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:X(X({},i),{},{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:X(X({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},{hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-symbol");return r.symbol=null!==i&&(""===i||i),r}}}}],{mixoutsTo:at});var XQ=at.parse,eJ=at.icon;const tJ=["*"],iJ=e=>{const t={[`fa-${e.animation}`]:null!=e.animation&&!e.animation.startsWith("spin"),"fa-spin":"spin"===e.animation||"spin-reverse"===e.animation,"fa-spin-pulse":"spin-pulse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-spin-reverse":"spin-reverse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-pulse":"spin-pulse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(t).map(r=>t[r]?r:null).filter(r=>r)};let cJ=(()=>{var e;class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),oJ=(()=>{var e;class t{constructor(){this.definitions={}}addIcons(...n){for(const i of n){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(...n){for(const i of n){const a=Object.keys(i).map(s=>i[s]);this.addIcons(...a)}}getIconDefinition(n,i){return n in this.definitions&&i in this.definitions[n]?this.definitions[n][i]:null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),lJ=(()=>{var e;class t{constructor(){this.stackItemSize="1x"}ngOnChanges(n){if("size"in n)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(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=W({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[M1]}),t})(),fJ=(()=>{var e;class t{constructor(n,i){this.renderer=n,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(n){"size"in n&&(null!=n.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${n.size.currentValue}`),null!=n.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${n.size.previousValue}`))}}return(e=t).\u0275fac=function(n){return new(n||e)(H(l2),H(Ne))},e.\u0275cmp=se({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[M1],ngContentSelectors:tJ,decls:1,vars:0,template:function(n,i){1&n&&(q3(),K3(0))},encapsulation:2}),t})(),S7=(()=>{var e;class t{set spin(n){this.animation=n?"spin":void 0}set pulse(n){this.animation=n?"spin-pulse":void 0}constructor(n,i,a,s,c){this.sanitizer=n,this.config=i,this.iconLibrary=a,this.stackItem=s,this.classes=[],null!=c&&null==s&&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(n){if(null!=this.icon||null!=this.config.fallbackIcon){if(n){const a=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=a){const s=this.buildParams();this.renderIcon(a,s)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(n){const i=((e,t)=>(e=>void 0!==e.prefix&&void 0!==e.iconName)(e)?e:"string"==typeof e?{prefix:t,iconName:e}:{prefix:e[0],iconName:e[1]})(n,this.config.defaultPrefix);return"icon"in i?i:this.iconLibrary.getIconDefinition(i.prefix,i.iconName)??((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(i),null)}buildParams(){const n={flip:this.flip,animation:this.animation,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?XQ.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...iJ(n),...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(n,i){const a=eJ(n,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return(e=t).\u0275fac=function(n){return new(n||e)(H(e_),H(cJ),H(oJ),H(lJ,8),H(fJ,8))},e.\u0275cmp=se({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,i){2&n&&(w2("innerHTML",i.renderedIconHTML,Bd),B("title",i.title))},inputs:{icon:"icon",title:"title",animation:"animation",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:[M1],decls:0,vars:0,template:function(n,i){},encapsulation:2}),t})(),uJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function D7(...e){const t=Er(e),r=Za(e),{args:n,keys:i}=r_(e);if(0===n.length)return Q1([],t);const a=new We(function hJ(e,t,r=Ht){return n=>{Ry(t,()=>{const{length:i}=e,a=new Array(i);let s=i,c=i;for(let o=0;o<i;o++)Ry(t,()=>{const l=Q1(e[o],t);let f=!1;l.subscribe(qe(n,d=>{a[o]=d,f||(f=!0,c--),c||n.next(r(a.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,t,i?s=>i_(i,s):Ht));return r?a.pipe(t5(r)):a}function Ry(e,t,r){e?ln(r,e,t):t()}const Oo=d2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ky(e){return new We(t=>{j1(e()).subscribe(t)})}function ga(e,t){const r=Q(e)?e:()=>e,n=i=>i.error(r());return new We(t?i=>t.schedule(n,0,i):n)}function L7(){return d1((e,t)=>{let r=null;e._refCount++;const n=qe(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(r=null);const i=e._connection,a=r;r=null,i&&(!a||i===a)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(r=e.connect())})}class Py extends We{constructor(t,r){super(),this.source=t,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Nr(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Se;const r=this.getSubject();t.add(this.source.subscribe(qe(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Se.EMPTY)}return t}refCount(){return L7()(this)}}function Ro(e){return d1((t,r)=>{let n=!1;t.subscribe(qe(r,i=>{n=!0,r.next(i)},()=>{n||r.next(e),r.complete()}))})}function Fy(e=pJ){return d1((t,r)=>{let n=!1;t.subscribe(qe(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(e())))})}function pJ(){return new Oo}function U4(e,t){const r=arguments.length>=2;return n=>n.pipe(e?N1((i,a)=>e(i,a,n)):Ht,t2(1),r?Ro(t):Fy(()=>new Oo))}function va(e,t){return Q(t)?F1(e,t,1):F1(e,1)}function j4(e){return d1((t,r)=>{let a,n=null,i=!1;n=t.subscribe(qe(r,void 0,void 0,s=>{a=j1(e(s,j4(e)(t))),n?(n.unsubscribe(),n=null,a.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,a.subscribe(r))})}function x7(e){return e<=0?()=>lt:d1((t,r)=>{let n=[];t.subscribe(qe(r,i=>{n.push(i),e<n.length&&n.shift()},()=>{for(const i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function N7(e){return d1((t,r)=>{try{t.subscribe(r)}finally{r.add(e)}})}const Ce="primary",_a=Symbol("RouteTitle");class _J{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const r=this.params[t];return Array.isArray(r)?r[0]:r}return null}getAll(t){if(this.has(t)){const r=this.params[t];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}}function Cr(e){return new _J(e)}function CJ(e,t,r){const n=r.path.split("/");if(n.length>e.length||"full"===r.pathMatch&&(t.hasChildren()||n.length<e.length))return null;const i={};for(let a=0;a<n.length;a++){const s=n[a],c=e[a];if(s.startsWith(":"))i[s.substring(1)]=c;else if(s!==c.path)return null}return{consumed:e.slice(0,n.length),posParams:i}}function sn(e,t){const r=e?Object.keys(e):void 0,n=t?Object.keys(t):void 0;if(!r||!n||r.length!=n.length)return!1;let i;for(let a=0;a<r.length;a++)if(i=r[a],!By(e[i],t[i]))return!1;return!0}function By(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const r=[...e].sort(),n=[...t].sort();return r.every((i,a)=>n[a]===i)}return e===t}function Uy(e){return e.length>0?e[e.length-1]:null}function r4(e){return function dJ(e){return!!e&&(e instanceof We||Q(e.lift)&&Q(e.subscribe))}(e)?e:Mi(e)?Q1(Promise.resolve(e)):ae(e)}const yJ={exact:function $y(e,t,r){if(!G4(e.segments,t.segments)||!ko(e.segments,t.segments,r)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!e.children[n]||!$y(e.children[n],t.children[n],r))return!1;return!0},subset:Wy},jy={exact:function bJ(e,t){return sn(e,t)},subset:function HJ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>By(e[r],t[r]))},ignored:()=>!0};function Gy(e,t,r){return yJ[r.paths](e.root,t.root,r.matrixParams)&&jy[r.queryParams](e.queryParams,t.queryParams)&&!("exact"===r.fragment&&e.fragment!==t.fragment)}function Wy(e,t,r){return qy(e,t,t.segments,r)}function qy(e,t,r,n){if(e.segments.length>r.length){const i=e.segments.slice(0,r.length);return!(!G4(i,r)||t.hasChildren()||!ko(i,r,n))}if(e.segments.length===r.length){if(!G4(e.segments,r)||!ko(e.segments,r,n))return!1;for(const i in t.children)if(!e.children[i]||!Wy(e.children[i],t.children[i],n))return!1;return!0}{const i=r.slice(0,e.segments.length),a=r.slice(e.segments.length);return!!(G4(e.segments,i)&&ko(e.segments,i,n)&&e.children[Ce])&&qy(e.children[Ce],t,a,n)}}function ko(e,t,r){return t.every((n,i)=>jy[r](e[i].parameters,n.parameters))}class Mr{constructor(t=new $e([],{}),r={},n=null){this.root=t,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Cr(this.queryParams)),this._queryParamMap}toString(){return zJ.serialize(this)}}class $e{constructor(t,r){this.segments=t,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Po(this)}}class Ca{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap||(this._parameterMap=Cr(this.parameters)),this._parameterMap}toString(){return Zy(this)}}function G4(e,t){return e.length===t.length&&e.every((r,n)=>r.path===t[n].path)}let Ma=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return new A7},providedIn:"root"}),t})();class A7{parse(t){const r=new RJ(t);return new Mr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){const r=`/${ya(t.root,!0)}`,n=function LJ(e){const t=Object.keys(e).map(r=>{const n=e[r];return Array.isArray(n)?n.map(i=>`${Fo(r)}=${Fo(i)}`).join("&"):`${Fo(r)}=${Fo(n)}`}).filter(r=>!!r);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${r}${n}${"string"==typeof t.fragment?`#${function SJ(e){return encodeURI(e)}(t.fragment)}`:""}`}}const zJ=new A7;function Po(e){return e.segments.map(t=>Zy(t)).join("/")}function ya(e,t){if(!e.hasChildren())return Po(e);if(t){const r=e.children[Ce]?ya(e.children[Ce],!1):"",n=[];return Object.entries(e.children).forEach(([i,a])=>{i!==Ce&&n.push(`${i}:${ya(a,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}{const r=function VJ(e,t){let r=[];return Object.entries(e.children).forEach(([n,i])=>{n===Ce&&(r=r.concat(t(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==Ce&&(r=r.concat(t(i,n)))}),r}(e,(n,i)=>i===Ce?[ya(e.children[Ce],!1)]:[`${i}:${ya(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ce]?`${Po(e)}/${r[0]}`:`${Po(e)}/(${r.join("//")})`}}function Ky(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fo(e){return Ky(e).replace(/%3B/gi,";")}function E7(e){return Ky(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bo(e){return decodeURIComponent(e)}function Yy(e){return Bo(e.replace(/\+/g,"%20"))}function Zy(e){return`${E7(e.path)}${function DJ(e){return Object.keys(e).map(t=>`;${E7(t)}=${E7(e[t])}`).join("")}(e.parameters)}`}const xJ=/^[^\/()?;#]+/;function T7(e){const t=e.match(xJ);return t?t[0]:""}const NJ=/^[^\/()?;=#]+/,EJ=/^[^=?&#]+/,IJ=/^[^&#]+/;class RJ{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(r).length>0)&&(n[Ce]=new $e(t,r)),n}parseSegment(){const t=T7(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new F(4009,!1);return this.capture(t),new Ca(Bo(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const r=function AJ(e){const t=e.match(NJ);return t?t[0]:""}(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){const i=T7(this.remaining);i&&(n=i,this.capture(n))}t[Bo(r)]=Bo(n)}parseQueryParam(t){const r=function TJ(e){const t=e.match(EJ);return t?t[0]:""}(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){const s=function OJ(e){const t=e.match(IJ);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const i=Yy(r),a=Yy(n);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(a)}else t[i]=a}parseParens(t){const r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=T7(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new F(4010,!1);let a;n.indexOf(":")>-1?(a=n.slice(0,n.indexOf(":")),this.capture(a),this.capture(":")):t&&(a=Ce);const s=this.parseChildren();r[a]=1===Object.keys(s).length?s[Ce]:new $e([],s),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new F(4011,!1)}}function Qy(e){return e.segments.length>0?new $e([],{[Ce]:e}):e}function Jy(e){const t={};for(const n of Object.keys(e.children)){const a=Jy(e.children[n]);if(n===Ce&&0===a.segments.length&&a.hasChildren())for(const[s,c]of Object.entries(a.children))t[s]=c;else(a.segments.length>0||a.hasChildren())&&(t[n]=a)}return function kJ(e){if(1===e.numberOfChildren&&e.children[Ce]){const t=e.children[Ce];return new $e(e.segments.concat(t.segments),t.children)}return e}(new $e(e.segments,t))}function $4(e){return e instanceof Mr}function Xy(e){let t;const i=Qy(function r(a){const s={};for(const o of a.children){const l=r(o);s[o.outlet]=l}const c=new $e(a.url,s);return a===e&&(t=c),c}(e.root));return t??i}function eb(e,t,r,n){let i=e;for(;i.parent;)i=i.parent;if(0===t.length)return I7(i,i,i,r,n);const a=function FJ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new nb(!0,0,e);let t=0,r=!1;const n=e.reduce((i,a,s)=>{if("object"==typeof a&&null!=a){if(a.outlets){const c={};return Object.entries(a.outlets).forEach(([o,l])=>{c[o]="string"==typeof l?l.split("/"):l}),[...i,{outlets:c}]}if(a.segmentPath)return[...i,a.segmentPath]}return"string"!=typeof a?[...i,a]:0===s?(a.split("/").forEach((c,o)=>{0==o&&"."===c||(0==o&&""===c?r=!0:".."===c?t++:""!=c&&i.push(c))}),i):[...i,a]},[]);return new nb(r,t,n)}(t);if(a.toRoot())return I7(i,i,new $e([],{}),r,n);const s=function BJ(e,t,r){if(e.isAbsolute)return new jo(t,!0,0);if(!r)return new jo(t,!1,NaN);if(null===r.parent)return new jo(r,!0,0);const n=Uo(e.commands[0])?0:1;return function UJ(e,t,r){let n=e,i=t,a=r;for(;a>i;){if(a-=i,n=n.parent,!n)throw new F(4005,!1);i=n.segments.length}return new jo(n,!1,i-a)}(r,r.segments.length-1+n,e.numberOfDoubleDots)}(a,i,e),c=s.processChildren?Ha(s.segmentGroup,s.index,a.commands):rb(s.segmentGroup,s.index,a.commands);return I7(i,s.segmentGroup,c,r,n)}function Uo(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ba(e){return"object"==typeof e&&null!=e&&e.outlets}function I7(e,t,r,n,i){let s,a={};n&&Object.entries(n).forEach(([o,l])=>{a[o]=Array.isArray(l)?l.map(f=>`${f}`):`${l}`}),s=e===t?r:tb(e,t,r);const c=Qy(Jy(s));return new Mr(c,a,i)}function tb(e,t,r){const n={};return Object.entries(e.children).forEach(([i,a])=>{n[i]=a===t?r:tb(a,t,r)}),new $e(e.segments,n)}class nb{constructor(t,r,n){if(this.isAbsolute=t,this.numberOfDoubleDots=r,this.commands=n,t&&n.length>0&&Uo(n[0]))throw new F(4003,!1);const i=n.find(ba);if(i&&i!==Uy(n))throw new F(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class jo{constructor(t,r,n){this.segmentGroup=t,this.processChildren=r,this.index=n}}function rb(e,t,r){if(e||(e=new $e([],{})),0===e.segments.length&&e.hasChildren())return Ha(e,t,r);const n=function GJ(e,t,r){let n=0,i=t;const a={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=r.length)return a;const s=e.segments[i],c=r[n];if(ba(c))break;const o=`${c}`,l=n<r.length-1?r[n+1]:null;if(i>0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!ab(o,l,s))return a;n+=2}else{if(!ab(o,{},s))return a;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(e,t,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){const a=new $e(e.segments.slice(0,n.pathIndex),{});return a.children[Ce]=new $e(e.segments.slice(n.pathIndex),e.children),Ha(a,0,i)}return n.match&&0===i.length?new $e(e.segments,{}):n.match&&!e.hasChildren()?O7(e,t,r):n.match?Ha(e,0,i):O7(e,t,r)}function Ha(e,t,r){if(0===r.length)return new $e(e.segments,{});{const n=function jJ(e){return ba(e[0])?e[0].outlets:{[Ce]:e}}(r),i={};if(Object.keys(n).some(a=>a!==Ce)&&e.children[Ce]&&1===e.numberOfChildren&&0===e.children[Ce].segments.length){const a=Ha(e.children[Ce],t,r);return new $e(e.segments,a.children)}return Object.entries(n).forEach(([a,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[a]=rb(e.children[a],t,s))}),Object.entries(e.children).forEach(([a,s])=>{void 0===n[a]&&(i[a]=s)}),new $e(e.segments,i)}}function O7(e,t,r){const n=e.segments.slice(0,t);let i=0;for(;i<r.length;){const a=r[i];if(ba(a)){const o=$J(a.outlets);return new $e(n,o)}if(0===i&&Uo(r[0])){n.push(new Ca(e.segments[t].path,ib(r[0]))),i++;continue}const s=ba(a)?a.outlets[Ce]:`${a}`,c=i<r.length-1?r[i+1]:null;s&&c&&Uo(c)?(n.push(new Ca(s,ib(c))),i+=2):(n.push(new Ca(s,{})),i++)}return new $e(n,{})}function $J(e){const t={};return Object.entries(e).forEach(([r,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=O7(new $e([],{}),0,n))}),t}function ib(e){const t={};return Object.entries(e).forEach(([r,n])=>t[r]=`${n}`),t}function ab(e,t,r){return e==r.path&&sn(t,r.parameters)}const wa="imperative";class cn{constructor(t,r){this.id=t,this.url=r}}class Va extends cn{constructor(t,r,n="imperative",i=null){super(t,r),this.type=0,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class i4 extends cn{constructor(t,r,n){super(t,r),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class za extends cn{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class yr extends cn{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=16}}class Go extends cn{constructor(t,r,n,i){super(t,r),this.error=n,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class sb extends cn{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WJ extends cn{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qJ extends cn{constructor(t,r,n,i,a){super(t,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=a,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class KJ extends cn{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class YJ extends cn{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZJ{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class QJ{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class JJ{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XJ{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eX{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tX{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cb{constructor(t,r,n){this.routerEvent=t,this.position=r,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class R7{}class k7{constructor(t){this.url=t}}class nX{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Sa,this.attachRef=null}}let Sa=(()=>{var e;class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){const a=this.getOrCreateContext(n);a.outlet=i,this.contexts.set(n,a)}onChildOutletDestroyed(n){const i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new nX,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class ob{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const r=this.pathFromRoot(t);return r.length>1?r[r.length-2]:null}children(t){const r=P7(t,this._root);return r?r.children.map(n=>n.value):[]}firstChild(t){const r=P7(t,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(t){const r=F7(t,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return F7(t,this._root).map(r=>r.value)}}function P7(e,t){if(e===t.value)return t;for(const r of t.children){const n=P7(e,r);if(n)return n}return null}function F7(e,t){if(e===t.value)return[t];for(const r of t.children){const n=F7(e,r);if(n.length)return n.unshift(t),n}return[]}class Nn{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}}function br(e){const t={};return e&&e.children.forEach(r=>t[r.value.outlet]=r),t}class lb extends ob{constructor(t,r){super(t),this.snapshot=r,B7(this,t)}toString(){return this.snapshot.toString()}}function fb(e,t){const r=function rX(e,t){const s=new $o([],{},{},"",{},Ce,t,null,{});return new db("",new Nn(s,[]))}(0,t),n=new ft([new Ca("",{})]),i=new ft({}),a=new ft({}),s=new ft({}),c=new ft(""),o=new An(n,i,s,c,a,Ce,t,r.root);return o.snapshot=r.root,new lb(new Nn(o,[]),r)}class An{constructor(t,r,n,i,a,s,c,o){this.urlSubject=t,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=a,this.outlet=s,this.component=c,this._futureSnapshot=o,this.title=this.dataSubject?.pipe(we(l=>l[_a]))??ae(void 0),this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(we(t=>Cr(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(we(t=>Cr(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ub(e,t="emptyOnly"){const r=e.pathFromRoot;let n=0;if("always"!==t)for(n=r.length-1;n>=1;){const i=r[n],a=r[n-1];if(i.routeConfig&&""===i.routeConfig.path)n--;else{if(a.component)break;n--}}return function iX(e){return e.reduce((t,r)=>({params:{...t.params,...r.params},data:{...t.data,...r.data},resolve:{...r.data,...t.resolve,...r.routeConfig?.data,...r._resolvedData}}),{params:{},data:{},resolve:{}})}(r.slice(n))}class $o{get title(){return this.data?.[_a]}constructor(t,r,n,i,a,s,c,o,l){this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=s,this.component=c,this.routeConfig=o,this._resolve=l}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=Cr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Cr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class db extends ob{constructor(t,r){super(r),this.url=t,B7(this,r)}toString(){return hb(this._root)}}function B7(e,t){t.value._routerState=e,t.children.forEach(r=>B7(e,r))}function hb(e){const t=e.children.length>0?` { ${e.children.map(hb).join(", ")} } `:"";return`${e.value}${t}`}function U7(e){if(e.snapshot){const t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,sn(t.queryParams,r.queryParams)||e.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&e.fragmentSubject.next(r.fragment),sn(t.params,r.params)||e.paramsSubject.next(r.params),function MJ(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!sn(e[r],t[r]))return!1;return!0}(t.url,r.url)||e.urlSubject.next(r.url),sn(t.data,r.data)||e.dataSubject.next(r.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function j7(e,t){const r=sn(e.params,t.params)&&function wJ(e,t){return G4(e,t)&&e.every((r,n)=>sn(r.parameters,t[n].parameters))}(e.url,t.url);return r&&!(!e.parent!=!t.parent)&&(!e.parent||j7(e.parent,t.parent))}let G7=(()=>{var e;class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ce,this.activateEvents=new ee,this.deactivateEvents=new ee,this.attachEvents=new ee,this.detachEvents=new ee,this.parentContexts=J(Sa),this.location=J(j2),this.changeDetector=J(et),this.environmentInjector=J(k2),this.inputBinder=J(Wo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:i,previousValue:a}=n.name;if(i)return;this.isTrackedInParentContexts(a)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(a)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new F(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new F(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new F(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new F(4013,!1);this._activatedRoute=n;const a=this.location,c=n.snapshot.component,o=this.parentContexts.getOrCreateContext(this.name).children,l=new aX(n,o,a.injector);this.activated=a.createComponent(c,{index:a.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=W({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[M1]}),t})();class aX{constructor(t,r,n){this.route=t,this.childContexts=r,this.parent=n}get(t,r){return t===An?this.route:t===Sa?this.childContexts:this.parent.get(t,r)}}const Wo=new te("");let pb=(()=>{var e;class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:i}=n,a=D7([i.queryParams,i.params,i.data]).pipe(wt(([s,c,o],l)=>(o={...s,...c,...o},0===l?ae(o):Promise.resolve(o)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(n);const c=function fU(e){const t=Le(e);if(!t)return null;const r=new pi(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(i.component);if(c)for(const{templateName:o}of c.inputs)n.activatedComponentRef.setInput(o,s[o]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,a)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();function Da(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){const n=r.value;n._futureSnapshot=t.value;const i=function cX(e,t,r){return t.children.map(n=>{for(const i of r.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Da(e,n,i);return Da(e,n)})}(e,t,r);return new Nn(n,i)}{if(e.shouldAttach(t.value)){const a=e.retrieve(t.value);if(null!==a){const s=a.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(c=>Da(e,c)),s}}const n=function oX(e){return new An(new ft(e.url),new ft(e.params),new ft(e.queryParams),new ft(e.fragment),new ft(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(a=>Da(e,a));return new Nn(n,i)}}const $7="ngNavigationCancelingError";function mb(e,t){const{redirectTo:r,navigationBehaviorOptions:n}=$4(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=gb(!1,0,t);return i.url=r,i.navigationBehaviorOptions=n,i}function gb(e,t,r){const n=new Error("NavigationCancelingError: "+(e||""));return n[$7]=!0,n.cancellationCode=t,r&&(n.url=r),n}function vb(e){return e&&e[$7]}let _b=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["ng-component"]],standalone:!0,features:[z2],decls:1,vars:0,template:function(n,i){1&n&&R(0,"router-outlet")},dependencies:[G7],encapsulation:2}),t})();function W7(e){const t=e.children&&e.children.map(W7),r=t?{...e,children:t}:{...e};return!r.component&&!r.loadComponent&&(t||r.loadChildren)&&r.outlet&&r.outlet!==Ce&&(r.component=_b),r}function kt(e){return e.outlet||Ce}function La(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const r=t.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}class gX{constructor(t,r,n,i,a){this.routeReuseStrategy=t,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=a}activate(t){const r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,t),U7(this.futureState.root),this.activateChildRoutes(r,n,t)}deactivateChildRoutes(t,r,n){const i=br(r);t.children.forEach(a=>{const s=a.value.outlet;this.deactivateRoutes(a,i[s],n),delete i[s]}),Object.values(i).forEach(a=>{this.deactivateRouteAndItsChildren(a,n)})}deactivateRoutes(t,r,n){const i=t.value,a=r?r.value:null;if(i===a)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,r,s.children)}else this.deactivateChildRoutes(t,r,n);else a&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(t,r){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,r):this.deactivateRouteAndOutlet(t,r)}detachAndStoreRouteSubtree(t,r){const n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,a=br(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],i);if(n&&n.outlet){const s=n.outlet.detach(),c=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:c})}}deactivateRouteAndOutlet(t,r){const n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,a=br(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,r,n){const i=br(r);t.children.forEach(a=>{this.activateRoutes(a,i[a.value.outlet],n),this.forwardEvent(new tX(a.value.snapshot))}),t.children.length&&this.forwardEvent(new XJ(t.value.snapshot))}activateRoutes(t,r,n){const i=t.value,a=r?r.value:null;if(U7(i),i===a)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,r,s.children)}else this.activateChildRoutes(t,r,n);else if(i.component){const s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),U7(c.route.value),this.activateChildRoutes(t,null,s.children)}else{const c=La(i.snapshot);s.attachRef=null,s.route=i,s.injector=c,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}}class Cb{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class qo{constructor(t,r){this.component=t,this.route=r}}function vX(e,t,r){const n=e._root;return xa(n,t?t._root:null,r,[n.value])}function Hr(e,t){const r=Symbol(),n=t.get(e,r);return n===r?"function"!=typeof e||function DA(e){return null!==Xa(e)}(e)?t.get(e):e:n}function xa(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const a=br(t);return e.children.forEach(s=>{(function CX(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,s=t?t.value:null,c=r?r.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){const o=function MX(e,t,r){if("function"==typeof r)return r(e,t);switch(r){case"pathParamsChange":return!G4(e.url,t.url);case"pathParamsOrQueryParamsChange":return!G4(e.url,t.url)||!sn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!j7(e,t)||!sn(e.queryParams,t.queryParams);default:return!j7(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);o?i.canActivateChecks.push(new Cb(n)):(a.data=s.data,a._resolvedData=s._resolvedData),xa(e,t,a.component?c?c.children:null:r,n,i),o&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new qo(c.outlet.component,s))}else s&&Na(t,c,i),i.canActivateChecks.push(new Cb(n)),xa(e,null,a.component?c?c.children:null:r,n,i)})(s,a[s.value.outlet],r,n.concat([s.value]),i),delete a[s.value.outlet]}),Object.entries(a).forEach(([s,c])=>Na(c,r.getContext(s),i)),i}function Na(e,t,r){const n=br(e),i=e.value;Object.entries(n).forEach(([a,s])=>{Na(s,i.component?t?t.children.getContext(a):null:t,r)}),r.canDeactivateChecks.push(new qo(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Aa(e){return"function"==typeof e}function Mb(e){return e instanceof Oo||"EmptyError"===e?.name}const Ko=Symbol("INITIAL_VALUE");function wr(){return wt(e=>D7(e.map(t=>t.pipe(t2(1),function dC(...e){const t=Er(e);return d1((r,n)=>{(t?$i(e,r,t):$i(e,r)).subscribe(n)})}(Ko)))).pipe(we(t=>{for(const r of t)if(!0!==r){if(r===Ko)return Ko;if(!1===r||r instanceof Mr)return r}return!0}),N1(t=>t!==Ko),t2(1)))}function yb(e){return function Ua(...e){return xr(e)}(q1(t=>{if($4(t))throw mb(0,t)}),we(t=>!0===t))}class Yo{constructor(t){this.segmentGroup=t||null}}class bb{constructor(t){this.urlTree=t}}function Vr(e){return ga(new Yo(e))}function Hb(e){return ga(new bb(e))}class FX{constructor(t,r){this.urlSerializer=t,this.urlTree=r}noMatchError(t){return new F(4002,!1)}lineralizeSegments(t,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return ae(n);if(i.numberOfChildren>1||!i.children[Ce])return ga(new F(4e3,!1));i=i.children[Ce]}}applyRedirectCommands(t,r,n){return this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),t,n)}applyRedirectCreateUrlTree(t,r,n,i){const a=this.createSegmentGroup(t,r.root,n,i);return new Mr(a,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(t,r){const n={};return Object.entries(t).forEach(([i,a])=>{if("string"==typeof a&&a.startsWith(":")){const c=a.substring(1);n[i]=r[c]}else n[i]=a}),n}createSegmentGroup(t,r,n,i){const a=this.createSegments(t,r.segments,n,i);let s={};return Object.entries(r.children).forEach(([c,o])=>{s[c]=this.createSegmentGroup(t,o,n,i)}),new $e(a,s)}createSegments(t,r,n,i){return r.map(a=>a.path.startsWith(":")?this.findPosParam(t,a,i):this.findOrReturn(a,n))}findPosParam(t,r,n){const i=n[r.path.substring(1)];if(!i)throw new F(4001,!1);return i}findOrReturn(t,r){let n=0;for(const i of r){if(i.path===t.path)return r.splice(n),i;n++}return t}}const q7={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function BX(e,t,r,n,i){const a=K7(e,t,r);return a.matched?(n=function fX(e,t){return e.providers&&!e._injector&&(e._injector=Y8(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function RX(e,t,r,n){const i=t.canMatch;return i&&0!==i.length?ae(i.map(s=>{const c=Hr(s,e);return r4(function zX(e){return e&&Aa(e.canMatch)}(c)?c.canMatch(t,r):e.runInContext(()=>c(t,r)))})).pipe(wr(),yb()):ae(!0)}(n,t,r).pipe(we(s=>!0===s?a:{...q7}))):ae(a)}function K7(e,t,r){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||r.length>0)?{...q7}:{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};const i=(t.matcher||CJ)(r,e,t);if(!i)return{...q7};const a={};Object.entries(i.posParams??{}).forEach(([c,o])=>{a[c]=o.path});const s=i.consumed.length>0?{...a,...i.consumed[i.consumed.length-1].parameters}:a;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function wb(e,t,r,n){return r.length>0&&function GX(e,t,r){return r.some(n=>Zo(e,t,n)&&kt(n)!==Ce)}(e,r,n)?{segmentGroup:new $e(t,jX(n,new $e(r,e.children))),slicedSegments:[]}:0===r.length&&function $X(e,t,r){return r.some(n=>Zo(e,t,n))}(e,r,n)?{segmentGroup:new $e(e.segments,UX(e,0,r,n,e.children)),slicedSegments:r}:{segmentGroup:new $e(e.segments,e.children),slicedSegments:r}}function UX(e,t,r,n,i){const a={};for(const s of n)if(Zo(e,r,s)&&!i[kt(s)]){const c=new $e([],{});a[kt(s)]=c}return{...i,...a}}function jX(e,t){const r={};r[Ce]=t;for(const n of e)if(""===n.path&&kt(n)!==Ce){const i=new $e([],{});r[kt(n)]=i}return r}function Zo(e,t,r){return(!(e.hasChildren()||t.length>0)||"full"!==r.pathMatch)&&""===r.path}class YX{constructor(t,r,n,i,a,s,c){this.injector=t,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=a,this.paramsInheritanceStrategy=s,this.urlSerializer=c,this.allowRedirects=!0,this.applyRedirects=new FX(this.urlSerializer,this.urlTree)}noMatchError(t){return new F(4002,!1)}recognize(){const t=wb(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ce).pipe(j4(r=>{if(r instanceof bb)return this.allowRedirects=!1,this.urlTree=r.urlTree,this.match(r.urlTree);throw r instanceof Yo?this.noMatchError(r):r}),we(r=>{const n=new $o([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ce,this.rootComponentType,null,{}),i=new Nn(n,r),a=new db("",i),s=function PJ(e,t,r=null,n=null){return eb(Xy(e),t,r,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,a.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(a._root),{state:a,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,Ce).pipe(j4(n=>{throw n instanceof Yo?this.noMatchError(n):n}))}inheritParamsAndData(t){const r=t.value,n=ub(r,this.paramsInheritanceStrategy);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,r,n,i){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,r,n):this.processSegment(t,r,n,n.segments,i,!0)}processChildren(t,r,n){const i=[];for(const a of Object.keys(n.children))"primary"===a?i.unshift(a):i.push(a);return Q1(i).pipe(va(a=>{const s=n.children[a],c=function pX(e,t){const r=e.filter(n=>kt(n)===t);return r.push(...e.filter(n=>kt(n)!==t)),r}(r,a);return this.processSegmentGroup(t,c,s,a)}),function gJ(e,t){return d1(function mJ(e,t,r,n,i){return(a,s)=>{let c=r,o=t,l=0;a.subscribe(qe(s,f=>{const d=l++;o=c?e(o,f,d):(c=!0,f),n&&s.next(o)},i&&(()=>{c&&s.next(o),s.complete()})))}}(e,t,arguments.length>=2,!0))}((a,s)=>(a.push(...s),a)),Ro(null),function vJ(e,t){const r=arguments.length>=2;return n=>n.pipe(e?N1((i,a)=>e(i,a,n)):Ht,x7(1),r?Ro(t):Fy(()=>new Oo))}(),F1(a=>{if(null===a)return Vr(n);const s=Vb(a);return function ZX(e){e.sort((t,r)=>t.value.outlet===Ce?-1:r.value.outlet===Ce?1:t.value.outlet.localeCompare(r.value.outlet))}(s),ae(s)}))}processSegment(t,r,n,i,a,s){return Q1(r).pipe(va(c=>this.processSegmentAgainstRoute(c._injector??t,r,c,n,i,a,s).pipe(j4(o=>{if(o instanceof Yo)return ae(null);throw o}))),U4(c=>!!c),j4(c=>{if(Mb(c))return function qX(e,t,r){return 0===t.length&&!e.children[r]}(n,i,a)?ae([]):Vr(n);throw c}))}processSegmentAgainstRoute(t,r,n,i,a,s,c){return function WX(e,t,r,n){return!!(kt(e)===n||n!==Ce&&Zo(t,r,e))&&("**"===e.path||K7(t,e,r).matched)}(n,i,a,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,i,n,a,s,c):c&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,i,r,n,a,s):Vr(i):Vr(i)}expandSegmentAgainstRouteUsingRedirect(t,r,n,i,a,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,r,n,i,a,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i){const a=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Hb(a):this.applyRedirects.lineralizeSegments(n,a).pipe(F1(s=>{const c=new $e(s,{});return this.processSegment(t,r,c,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,r,n,i,a,s){const{matched:c,consumedSegments:o,remainingSegments:l,positionalParamSegments:f}=K7(r,i,a);if(!c)return Vr(r);const d=this.applyRedirects.applyRedirectCommands(o,i.redirectTo,f);return i.redirectTo.startsWith("/")?Hb(d):this.applyRedirects.lineralizeSegments(i,d).pipe(F1(m=>this.processSegment(t,n,r,m.concat(l),s,!1)))}matchSegmentAgainstRoute(t,r,n,i,a,s){let c;if("**"===n.path){const o=i.length>0?Uy(i).parameters:{};c=ae({snapshot:new $o(i,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zb(n),kt(n),n.component??n._loadedComponent??null,n,Sb(n)),consumedSegments:[],remainingSegments:[]}),r.children={}}else c=BX(r,n,i,t).pipe(we(({matched:o,consumedSegments:l,remainingSegments:f,parameters:d})=>o?{snapshot:new $o(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zb(n),kt(n),n.component??n._loadedComponent??null,n,Sb(n)),consumedSegments:l,remainingSegments:f}:null));return c.pipe(wt(o=>null===o?Vr(r):this.getChildConfig(t=n._injector??t,n,i).pipe(wt(({routes:l})=>{const f=n._loadedInjector??t,{snapshot:d,consumedSegments:m,remainingSegments:g}=o,{segmentGroup:w,slicedSegments:z}=wb(r,m,g,l);if(0===z.length&&w.hasChildren())return this.processChildren(f,l,w).pipe(we(T=>null===T?null:[new Nn(d,T)]));if(0===l.length&&0===z.length)return ae([new Nn(d,[])]);const L=kt(n)===a;return this.processSegment(f,l,w,z,L?Ce:a,!0).pipe(we(T=>[new Nn(d,T)]))}))))}getChildConfig(t,r,n){return r.children?ae({routes:r.children,injector:t}):r.loadChildren?void 0!==r._loadedRoutes?ae({routes:r._loadedRoutes,injector:r._loadedInjector}):function OX(e,t,r,n){const i=t.canLoad;return void 0===i||0===i.length?ae(!0):ae(i.map(s=>{const c=Hr(s,e);return r4(function bX(e){return e&&Aa(e.canLoad)}(c)?c.canLoad(t,r):e.runInContext(()=>c(t,r)))})).pipe(wr(),yb())}(t,r,n).pipe(F1(i=>i?this.configLoader.loadChildren(t,r).pipe(q1(a=>{r._loadedRoutes=a.routes,r._loadedInjector=a.injector})):function PX(e){return ga(gb(!1,3))}())):ae({routes:[],injector:t})}}function QX(e){const t=e.value.routeConfig;return t&&""===t.path}function Vb(e){const t=[],r=new Set;for(const n of e){if(!QX(n)){t.push(n);continue}const i=t.find(a=>n.value.routeConfig===a.value.routeConfig);void 0!==i?(i.children.push(...n.children),r.add(i)):t.push(n)}for(const n of r){const i=Vb(n.children);t.push(new Nn(n.value,i))}return t.filter(n=>!r.has(n))}function zb(e){return e.data||{}}function Sb(e){return e.resolve||{}}function Db(e){return"string"==typeof e.title||null===e.title}function Y7(e){return wt(t=>{const r=e(t);return r?Q1(r).pipe(we(()=>t)):ae(t)})}const zr=new te("ROUTES");let Z7=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=J(xg)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return ae(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const i=r4(n.loadComponent()).pipe(we(Lb),q1(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),N7(()=>{this.componentLoaders.delete(n)})),a=new Py(i,()=>new ue).pipe(L7());return this.componentLoaders.set(n,a),a}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ae({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const s=function iee(e,t,r,n){return r4(e.loadChildren()).pipe(we(Lb),F1(i=>i instanceof Pm||Array.isArray(i)?ae(i):Q1(t.compileModuleAsync(i))),we(i=>{n&&n(e);let a,s,c=!1;return Array.isArray(i)?(s=i,!0):(a=i.create(r).injector,s=a.get(zr,[],{optional:!0,self:!0}).flat()),{routes:s.map(W7),injector:a}}))}(i,this.compiler,n,this.onLoadEndListener).pipe(N7(()=>{this.childrenLoaders.delete(i)})),c=new Py(s,()=>new ue).pipe(L7());return this.childrenLoaders.set(i,c),c}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Lb(e){return function aee(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Qo=(()=>{var e;class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ue,this.transitionAbortSubject=new ue,this.configLoader=J(Z7),this.environmentInjector=J(k2),this.urlSerializer=J(Ma),this.rootContexts=J(Sa),this.inputBindingEnabled=null!==J(Wo,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ae(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=a=>this.events.next(new QJ(a)),this.configLoader.onLoadStartListener=a=>this.events.next(new ZJ(a))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:i})}setupNavigations(n,i,a){return this.transitions=new ft({id:0,currentUrlTree:i,currentRawUrl:i,currentBrowserUrl:i,extractedUrl:n.urlHandlingStrategy.extract(i),urlAfterRedirects:n.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:wa,restoredState:null,currentSnapshot:a.snapshot,targetSnapshot:null,currentRouterState:a,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(N1(s=>0!==s.id),we(s=>({...s,extractedUrl:n.urlHandlingStrategy.extract(s.rawUrl)})),wt(s=>{this.currentTransition=s;let c=!1,o=!1;return ae(s).pipe(q1(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),wt(l=>{const f=l.currentBrowserUrl.toString(),d=!n.navigated||l.extractedUrl.toString()!==f||f!==l.currentUrlTree.toString();if(!d&&"reload"!==(l.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const g="";return this.events.next(new yr(l.id,this.urlSerializer.serialize(l.rawUrl),g,0)),l.resolve(null),lt}if(n.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ae(l).pipe(wt(g=>{const w=this.transitions?.getValue();return this.events.next(new Va(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),w!==this.transitions?.getValue()?lt:Promise.resolve(g)}),function JX(e,t,r,n,i,a){return F1(s=>function KX(e,t,r,n,i,a,s="emptyOnly"){return new YX(e,t,r,n,i,s,a).recognize()}(e,t,r,n,s.extractedUrl,i,a).pipe(we(({state:c,tree:o})=>({...s,targetSnapshot:c,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),q1(g=>{s.targetSnapshot=g.targetSnapshot,s.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:g.urlAfterRedirects};const w=new sb(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(w)}));if(d&&n.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:g,extractedUrl:w,source:z,restoredState:L,extras:T}=l,D=new Va(g,this.urlSerializer.serialize(w),z,L);this.events.next(D);const U=fb(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:U,urlAfterRedirects:w,extras:{...T,skipLocationChange:!1,replaceUrl:!1}},ae(s)}{const g="";return this.events.next(new yr(l.id,this.urlSerializer.serialize(l.extractedUrl),g,1)),l.resolve(null),lt}}),q1(l=>{const f=new WJ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(f)}),we(l=>(this.currentTransition=s={...l,guards:vX(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function DX(e,t){return F1(r=>{const{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:a,canDeactivateChecks:s}}=r;return 0===s.length&&0===a.length?ae({...r,guardsResult:!0}):function LX(e,t,r,n){return Q1(e).pipe(F1(i=>function IX(e,t,r,n,i){const a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?ae(a.map(c=>{const o=La(t)??i,l=Hr(c,o);return r4(function VX(e){return e&&Aa(e.canDeactivate)}(l)?l.canDeactivate(e,t,r,n):o.runInContext(()=>l(e,t,r,n))).pipe(U4())})).pipe(wr()):ae(!0)}(i.component,i.route,r,t,n)),U4(i=>!0!==i,!0))}(s,n,i,e).pipe(F1(c=>c&&function yX(e){return"boolean"==typeof e}(c)?function xX(e,t,r,n){return Q1(t).pipe(va(i=>$i(function AX(e,t){return null!==e&&t&&t(new JJ(e)),ae(!0)}(i.route.parent,n),function NX(e,t){return null!==e&&t&&t(new eX(e)),ae(!0)}(i.route,n),function TX(e,t,r){const n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map(s=>function _X(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>ky(()=>ae(s.guards.map(o=>{const l=La(s.node)??r,f=Hr(o,l);return r4(function wX(e){return e&&Aa(e.canActivateChild)}(f)?f.canActivateChild(n,e):l.runInContext(()=>f(n,e))).pipe(U4())})).pipe(wr())));return ae(a).pipe(wr())}(e,i.path,r),function EX(e,t,r){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return ae(!0);const i=n.map(a=>ky(()=>{const s=La(t)??r,c=Hr(a,s);return r4(function HX(e){return e&&Aa(e.canActivate)}(c)?c.canActivate(t,e):s.runInContext(()=>c(t,e))).pipe(U4())}));return ae(i).pipe(wr())}(e,i.route,r))),U4(i=>!0!==i,!0))}(n,a,e,t):ae(c)),we(c=>({...r,guardsResult:c})))})}(this.environmentInjector,l=>this.events.next(l)),q1(l=>{if(s.guardsResult=l.guardsResult,$4(l.guardsResult))throw mb(0,l.guardsResult);const f=new qJ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(f)}),N1(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),Y7(l=>{if(l.guards.canActivateChecks.length)return ae(l).pipe(q1(f=>{const d=new KJ(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(d)}),wt(f=>{let d=!1;return ae(f).pipe(function XX(e,t){return F1(r=>{const{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return ae(r);let a=0;return Q1(i).pipe(va(s=>function eee(e,t,r,n){const i=e.routeConfig,a=e._resolve;return void 0!==i?.title&&!Db(i)&&(a[_a]=i.title),function tee(e,t,r,n){const i=function nee(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return ae({});const a={};return Q1(i).pipe(F1(s=>function ree(e,t,r,n){const i=La(t)??n,a=Hr(e,i);return r4(a.resolve?a.resolve(t,r):i.runInContext(()=>a(t,r)))}(e[s],t,r,n).pipe(U4(),q1(c=>{a[s]=c}))),x7(1),lC(a),j4(s=>Mb(s)?lt:ga(s)))}(a,e,t,n).pipe(we(s=>(e._resolvedData=s,e.data=ub(e,r).resolve,i&&Db(i)&&(e.data[_a]=i.title),null)))}(s.route,n,e,t)),q1(()=>a++),x7(1),F1(s=>a===i.length?ae(r):lt))})}(n.paramsInheritanceStrategy,this.environmentInjector),q1({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(f,"",2)}}))}),q1(f=>{const d=new YJ(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(d)}))}),Y7(l=>{const f=d=>{const m=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&m.push(this.configLoader.loadComponent(d.routeConfig).pipe(q1(g=>{d.component=g}),we(()=>{})));for(const g of d.children)m.push(...f(g));return m};return D7(f(l.targetSnapshot.root)).pipe(Ro(),t2(1))}),Y7(()=>this.afterPreactivation()),we(l=>{const f=function sX(e,t,r){const n=Da(e,t._root,r?r._root:void 0);return new lb(n,t)}(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:f},s}),q1(()=>{this.events.next(new R7)}),((e,t,r,n)=>we(i=>(new gX(t,i.targetRouterState,i.currentRouterState,r,n).activate(e),i)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),t2(1),q1({next:l=>{c=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new i4(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),n.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{c=!0}}),R1(this.transitionAbortSubject.pipe(q1(l=>{throw l}))),N7(()=>{c||o||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),j4(l=>{if(o=!0,vb(l))this.events.next(new za(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function lX(e){return vb(e)&&$4(e.url)}(l)?this.events.next(new k7(l.url)):s.resolve(!1);else{this.events.next(new Go(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(l))}catch(f){s.reject(f)}}return lt}))}))}cancelNavigationTransition(n,i,a){const s=new za(n.id,this.urlSerializer.serialize(n.extractedUrl),i,a);this.events.next(s),n.resolve(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function xb(e){return e!==wa}let Nb=(()=>{var e;class t{buildTitle(n){let i,a=n.root;for(;void 0!==a;)i=this.getResolvedTitleForRoute(a)??i,a=a.children.find(s=>s.outlet===Ce);return i}getResolvedTitleForRoute(n){return n.data[_a]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(see)},providedIn:"root"}),t})(),see=(()=>{var e;class t extends Nb{constructor(n){super(),this.title=n}updateTitle(n){const i=this.buildTitle(n);void 0!==i&&this.title.setTitle(i)}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Qv))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),cee=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(lee)},providedIn:"root"}),t})();class oee{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}}let lee=(()=>{var e;class t extends oee{}return(e=t).\u0275fac=function(){let r;return function(i){return(r||(r=I1(e)))(i||e)}}(),e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Jo=new te("",{providedIn:"root",factory:()=>({})});let fee=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:function(){return J(uee)},providedIn:"root"}),t})(),uee=(()=>{var e;class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();var Ea=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Ea||{});function Ab(e,t){e.events.pipe(N1(r=>r instanceof i4||r instanceof za||r instanceof Go||r instanceof yr),we(r=>r instanceof i4||r instanceof yr?Ea.COMPLETE:r instanceof za&&(0===r.code||1===r.code)?Ea.REDIRECTING:Ea.FAILED),N1(r=>r!==Ea.REDIRECTING),t2(1)).subscribe(()=>{t()})}function dee(e){throw e}function hee(e,t,r){return t.parse("/")}const pee={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mee={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let _2=(()=>{var e;class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=J(Dg),this.isNgZoneEnabled=!1,this._events=new ue,this.options=J(Jo,{optional:!0})||{},this.pendingTasks=J(Lg),this.errorHandler=this.options.errorHandler||dee,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||hee,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=J(fee),this.routeReuseStrategy=J(cee),this.titleStrategy=J(Nb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=J(zr,{optional:!0})?.flat()??[],this.navigationTransitions=J(Qo),this.urlSerializer=J(Ma),this.location=J(Ll),this.componentInputBindingEnabled=!!J(Wo,{optional:!0}),this.eventsSubscription=new Se,this.isNgZoneEnabled=J(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Mr,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=fb(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(i=>{try{const{currentTransition:a}=this.navigationTransitions;if(null===a)return void(Eb(i)&&this._events.next(i));if(i instanceof Va)xb(a.source)&&(this.browserUrlTree=a.extractedUrl);else if(i instanceof yr)this.rawUrlTree=a.rawUrl;else if(i instanceof sb){if("eager"===this.urlUpdateStrategy){if(!a.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl);this.setBrowserUrl(s,a)}this.browserUrlTree=a.urlAfterRedirects}}else if(i instanceof R7)this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects);else if(i instanceof za)0!==i.code&&1!==i.code&&(this.navigated=!0),(3===i.code||2===i.code)&&this.restoreHistory(a);else if(i instanceof k7){const s=this.urlHandlingStrategy.merge(i.url,a.currentRawUrl),c={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||xb(a.source)};this.scheduleNavigation(s,wa,null,c,{resolve:a.resolve,reject:a.reject,promise:a.promise})}i instanceof Go&&this.restoreHistory(a,!0),i instanceof i4&&(this.navigated=!0),Eb(i)&&this._events.next(i)}catch(a){this.navigationTransitions.transitionAbortSubject.next(a)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),wa,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const i="popstate"===n.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,i,n.state)},0)}))}navigateToSyncWithBrowser(n,i,a){const s={replaceUrl:!0},c=a?.navigationId?a:null;if(a){const l={...a};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const o=this.parseUrl(n);this.scheduleNavigation(o,i,c,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(W7),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){const{relativeTo:a,queryParams:s,fragment:c,queryParamsHandling:o,preserveFragment:l}=i,f=l?this.currentUrlTree.fragment:c;let m,d=null;switch(o){case"merge":d={...this.currentUrlTree.queryParams,...s};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}null!==d&&(d=this.removeEmptyProps(d));try{m=Xy(a?a.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),m=this.currentUrlTree.root}return eb(m,n,d,f??null)}navigateByUrl(n,i={skipLocationChange:!1}){const a=$4(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,wa,null,i)}navigate(n,i={skipLocationChange:!1}){return function gee(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new F(4008,!1)}(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let i;try{i=this.urlSerializer.parse(n)}catch(a){i=this.malformedUriErrorHandler(a,this.urlSerializer,n)}return i}isActive(n,i){let a;if(a=!0===i?{...pee}:!1===i?{...mee}:i,$4(n))return Gy(this.currentUrlTree,n,a);const s=this.parseUrl(n);return Gy(this.currentUrlTree,s,a)}removeEmptyProps(n){return Object.keys(n).reduce((i,a)=>{const s=n[a];return null!=s&&(i[a]=s),i},{})}scheduleNavigation(n,i,a,s,c){if(this.disposed)return Promise.resolve(!1);let o,l,f;c?(o=c.resolve,l=c.reject,f=c.promise):f=new Promise((m,g)=>{o=m,l=g});const d=this.pendingTasks.add();return Ab(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:n,extras:s,resolve:o,reject:l,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(m=>Promise.reject(m))}setBrowserUrl(n,i){const a=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(a)||i.extras.replaceUrl){const c={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(a,"",c)}else{const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(a,"",s)}}restoreHistory(n,i=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Eb(e){return!(e instanceof R7||e instanceof k7)}let Pt=(()=>{var e;class t{constructor(n,i,a,s,c,o){this.router=n,this.route=i,this.tabIndexAttribute=a,this.renderer=s,this.el=c,this.locationStrategy=o,this.href=null,this.commands=null,this.onChanges=new ue,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=c.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(f=>{f instanceof i4&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,a,s,c){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||i||a||s||c||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function jd(e,t,r){return function TI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Ud:L3}(t,r)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,i){const a=this.renderer,s=this.el.nativeElement;null!==i?a.setAttribute(s,n,i):a.removeAttribute(s,n)}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:this.preserveFragment})}}return(e=t).\u0275fac=function(n){return new(n||e)(H(_2),H(An),function h4(e){return function JE(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const n=r.length;let i=0;for(;i<n;){const a=r[i];if(Iu(a))break;if(0===a)i+=2;else if("number"==typeof a)for(i++;i<n&&"string"==typeof r[i];)i++;else{if(a===t)return r[i+1];i+=2}}}return null}(o2(),e)}("tabindex"),H(l2),H(Ne),H(qn))},e.\u0275dir=W({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){1&n&&O("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&n&&B("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",nr],skipLocationChange:["skipLocationChange","skipLocationChange",nr],replaceUrl:["replaceUrl","replaceUrl",nr],routerLink:"routerLink"},standalone:!0,features:[np,M1]}),t})();class Tb{}let Cee=(()=>{var e;class t{constructor(n,i,a,s,c){this.router=n,this.injector=a,this.preloadingStrategy=s,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe(N1(n=>n instanceof i4),va(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){const a=[];for(const s of i){s.providers&&!s._injector&&(s._injector=Y8(s.providers,n,`Route: ${s.path}`));const c=s._injector??n,o=s._loadedInjector??c;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&a.push(this.preloadConfig(c,s)),(s.children||s._loadedRoutes)&&a.push(this.processRoutes(o,s.children??s._loadedRoutes))}return Q1(a).pipe(n3())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let a;a=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(n,i):ae(null);const s=a.pipe(F1(c=>null===c?ae(void 0):(i._loadedRoutes=c.routes,i._loadedInjector=c.injector,this.processRoutes(c.injector??n,c.routes))));return i.loadComponent&&!i._loadedComponent?Q1([s,this.loader.loadComponent(i)]).pipe(n3()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(_2),Y(xg),Y(k2),Y(Tb),Y(Z7))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Q7=new te("");let Ib=(()=>{var e;class t{constructor(n,i,a,s,c={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=a,this.zone=s,this.options=c,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},c.scrollPositionRestoration=c.scrollPositionRestoration||"disabled",c.anchorScrolling=c.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Va?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof i4?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof yr&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof cb&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new cb(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){!function Lh(){throw new Error("invalid")}()},e.\u0275prov=K({token:e,factory:e.\u0275fac}),t})();function En(e,t){return{\u0275kind:e,\u0275providers:t}}function Rb(){const e=J(B1);return t=>{const r=e.get(tn);if(t!==r.components[0])return;const n=e.get(_2),i=e.get(kb);1===e.get(J7)&&n.initialNavigation(),e.get(Pb,null,Ve.Optional)?.setUpPreloading(),e.get(Q7,null,Ve.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const kb=new te("",{factory:()=>new ue}),J7=new te("",{providedIn:"root",factory:()=>1}),Pb=new te("");function Hee(e){return En(0,[{provide:Pb,useExisting:Cee},{provide:Tb,useExisting:e}])}const Fb=new te("ROUTER_FORROOT_GUARD"),Vee=[Ll,{provide:Ma,useClass:A7},_2,Sa,{provide:An,useFactory:function Ob(e){return e.routerState.root},deps:[_2]},Z7,[]];function zee(){return new Rg("Router",_2)}let Bb=(()=>{var e;class t{constructor(n){}static forRoot(n,i){return{ngModule:t,providers:[Vee,[],{provide:zr,multi:!0,useValue:n},{provide:Fb,useFactory:xee,deps:[[_2,new bs,new Hs]]},{provide:Jo,useValue:i||{}},i?.useHash?{provide:qn,useClass:pv}:{provide:qn,useClass:hv},{provide:Q7,useFactory:()=>{const e=J(Ej),t=J(ye),r=J(Jo),n=J(Qo),i=J(Ma);return r.scrollOffset&&e.setOffset(r.scrollOffset),new Ib(i,n,e,t,r)}},i?.preloadingStrategy?Hee(i.preloadingStrategy).\u0275providers:[],{provide:Rg,multi:!0,useFactory:zee},i?.initialNavigation?Nee(i):[],i?.bindToComponentInputs?En(8,[pb,{provide:Wo,useExisting:pb}]).\u0275providers:[],[{provide:Ub,useFactory:Rb},{provide:_l,multi:!0,useExisting:Ub}]]}}static forChild(n){return{ngModule:t,providers:[{provide:zr,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(Y(Fb,8))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Ie({}),t})();function xee(e){return"guarded"}function Nee(e){return["disabled"===e.initialNavigation?En(3,[{provide:fl,multi:!0,useFactory:()=>{const t=J(_2);return()=>{t.setUpLocationChangeListener()}}},{provide:J7,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?En(2,[{provide:J7,useValue:0},{provide:fl,multi:!0,deps:[B1],useFactory:t=>{const r=t.get(hU,Promise.resolve());return()=>r.then(()=>new Promise(n=>{const i=t.get(_2),a=t.get(kb);Ab(i,()=>{n(!0)}),t.get(Qo).afterPreactivation=()=>(n(!0),a.closed?ae(void 0):a),i.initialNavigation()}))}}]).\u0275providers:[]]}const Ub=new te("");let Eee=(()=>{var e;class t{constructor(){V(this,"title","config-ui"),V(this,"logoSrc","assets/images/homebridge-eufy-security.png")}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",se({type:e,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(n,i){1&n&&(p(0,"div",0)(1,"div",1),R(2,"img",2),v(),p(3,"h3",3),M(4," Welcome to"),R(5,"br"),p(6,"b",4),M(7,"Eufy Security Plugin"),v()(),p(8,"h6",3),M(9,"Homebridge plugin for Eufy Security Devices"),v(),R(10,"hr"),p(11,"div",5),R(12,"router-outlet"),v(),R(13,"hr"),p(14,"div",6),M(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. "),v()()),2&n&&(C(2),y("src",i.logoSrc,L3))},dependencies:[G7],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 jb(e,t,r,n,i,a,s){try{var c=e[a](s),o=c.value}catch(l){return void r(l)}c.done?t(o):Promise.resolve(o).then(n,i)}function ve(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(o){jb(a,n,i,s,c,"next",o)}function c(o){jb(a,n,i,s,c,"throw",o)}s(void 0)})}}var Xb={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},lw={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},_f={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},bz={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]},Pf={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},LL={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344V280H168c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H280v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},N=function(e){return e[e.STATION=0]="STATION",e[e.CAMERA=1]="CAMERA",e[e.SENSOR=2]="SENSOR",e[e.FLOODLIGHT=3]="FLOODLIGHT",e[e.CAMERA_E=4]="CAMERA_E",e[e.DOORBELL=5]="DOORBELL",e[e.BATTERY_DOORBELL=7]="BATTERY_DOORBELL",e[e.CAMERA2C=8]="CAMERA2C",e[e.CAMERA2=9]="CAMERA2",e[e.MOTION_SENSOR=10]="MOTION_SENSOR",e[e.KEYPAD=11]="KEYPAD",e[e.CAMERA2_PRO=14]="CAMERA2_PRO",e[e.CAMERA2C_PRO=15]="CAMERA2C_PRO",e[e.BATTERY_DOORBELL_2=16]="BATTERY_DOORBELL_2",e[e.HB3=18]="HB3",e[e.CAMERA3=19]="CAMERA3",e[e.CAMERA3C=23]="CAMERA3C",e[e.INDOOR_CAMERA=30]="INDOOR_CAMERA",e[e.INDOOR_PT_CAMERA=31]="INDOOR_PT_CAMERA",e[e.SOLO_CAMERA=32]="SOLO_CAMERA",e[e.SOLO_CAMERA_PRO=33]="SOLO_CAMERA_PRO",e[e.INDOOR_CAMERA_1080=34]="INDOOR_CAMERA_1080",e[e.INDOOR_PT_CAMERA_1080=35]="INDOOR_PT_CAMERA_1080",e[e.FLOODLIGHT_CAMERA_8422=37]="FLOODLIGHT_CAMERA_8422",e[e.FLOODLIGHT_CAMERA_8423=38]="FLOODLIGHT_CAMERA_8423",e[e.FLOODLIGHT_CAMERA_8424=39]="FLOODLIGHT_CAMERA_8424",e[e.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT=44]="INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT",e[e.INDOOR_OUTDOOR_CAMERA_2K=45]="INDOOR_OUTDOOR_CAMERA_2K",e[e.INDOOR_OUTDOOR_CAMERA_1080P=46]="INDOOR_OUTDOOR_CAMERA_1080P",e[e.LOCK_BLE=50]="LOCK_BLE",e[e.LOCK_WIFI=51]="LOCK_WIFI",e[e.LOCK_BLE_NO_FINGER=52]="LOCK_BLE_NO_FINGER",e[e.LOCK_WIFI_NO_FINGER=53]="LOCK_WIFI_NO_FINGER",e[e.LOCK_8503=54]="LOCK_8503",e[e.LOCK_8530=55]="LOCK_8530",e[e.LOCK_85A3=56]="LOCK_85A3",e[e.LOCK_8592=57]="LOCK_8592",e[e.LOCK_8504=58]="LOCK_8504",e[e.SOLO_CAMERA_SPOTLIGHT_1080=60]="SOLO_CAMERA_SPOTLIGHT_1080",e[e.SOLO_CAMERA_SPOTLIGHT_2K=61]="SOLO_CAMERA_SPOTLIGHT_2K",e[e.SOLO_CAMERA_SPOTLIGHT_SOLAR=62]="SOLO_CAMERA_SPOTLIGHT_SOLAR",e[e.SMART_DROP=90]="SMART_DROP",e[e.BATTERY_DOORBELL_PLUS=91]="BATTERY_DOORBELL_PLUS",e[e.DOORBELL_SOLO=93]="DOORBELL_SOLO",e[e.INDOOR_COST_DOWN_CAMERA=100]="INDOOR_COST_DOWN_CAMERA",e[e.CAMERA_GUN=101]="CAMERA_GUN",e[e.CAMERA_SNAIL=102]="CAMERA_SNAIL",e[e.CAMERA_FG=110]="CAMERA_FG",e[e.CAMERA_GARAGE_T8453_COMMON=131]="CAMERA_GARAGE_T8453_COMMON",e[e.CAMERA_GARAGE_T8452=132]="CAMERA_GARAGE_T8452",e[e.CAMERA_GARAGE_T8453=133]="CAMERA_GARAGE_T8453",e[e.SMART_SAFE_7400=140]="SMART_SAFE_7400",e[e.SMART_SAFE_7401=141]="SMART_SAFE_7401",e[e.SMART_SAFE_7402=142]="SMART_SAFE_7402",e[e.SMART_SAFE_7403=143]="SMART_SAFE_7403",e[e.WALL_LIGHT_CAM=151]="WALL_LIGHT_CAM",e[e.SMART_TRACK_LINK=157]="SMART_TRACK_LINK",e[e.SMART_TRACK_CARD=159]="SMART_TRACK_CARD",e[e.LOCK_8502=180]="LOCK_8502",e[e.LOCK_8506=181]="LOCK_8506",e[e.WALL_LIGHT_CAM_81A0=10005]="WALL_LIGHT_CAM_81A0",e}(N||{});class W4{static isDoorbell(t){return t===N.DOORBELL||t===N.BATTERY_DOORBELL||t===N.BATTERY_DOORBELL_2||t===N.BATTERY_DOORBELL_PLUS||t===N.DOORBELL_SOLO}static isCamera(t){return t===N.CAMERA||t===N.CAMERA2||t===N.CAMERA_E||t===N.CAMERA2C||t===N.INDOOR_CAMERA||t===N.INDOOR_PT_CAMERA||t===N.FLOODLIGHT||t===N.DOORBELL||t===N.BATTERY_DOORBELL||t===N.BATTERY_DOORBELL_2||t===N.BATTERY_DOORBELL_PLUS||t===N.DOORBELL_SOLO||t===N.CAMERA2C_PRO||t===N.CAMERA2_PRO||t===N.CAMERA3||t===N.CAMERA3C||t===N.INDOOR_CAMERA_1080||t===N.INDOOR_PT_CAMERA_1080||t===N.SOLO_CAMERA||t===N.SOLO_CAMERA_PRO||t===N.SOLO_CAMERA_SPOTLIGHT_1080||t===N.SOLO_CAMERA_SPOTLIGHT_2K||t===N.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===N.INDOOR_OUTDOOR_CAMERA_1080P||t===N.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===N.INDOOR_OUTDOOR_CAMERA_2K||t===N.INDOOR_COST_DOWN_CAMERA||t===N.FLOODLIGHT_CAMERA_8422||t===N.FLOODLIGHT_CAMERA_8423||t===N.FLOODLIGHT_CAMERA_8424||t===N.WALL_LIGHT_CAM||t===N.WALL_LIGHT_CAM_81A0||t===N.CAMERA_GARAGE_T8453_COMMON||t===N.CAMERA_GARAGE_T8453||t===N.CAMERA_GARAGE_T8452||t===N.CAMERA_FG}static isBatteryDoorbell(t){return t===N.BATTERY_DOORBELL||t===N.BATTERY_DOORBELL_2||t===N.BATTERY_DOORBELL_PLUS}static isWiredDoorbell(t){return t===N.DOORBELL}static supportsRTSP(t){return t===N.CAMERA||t===N.CAMERA2||t===N.CAMERA2C||t===N.CAMERA2C_PRO||t===N.CAMERA3||t===N.CAMERA3C||t===N.CAMERA_E||t===N.INDOOR_CAMERA||t===N.INDOOR_CAMERA_1080||t===N.INDOOR_OUTDOOR_CAMERA_1080P||t===N.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===N.INDOOR_OUTDOOR_CAMERA_2K||t===N.INDOOR_PT_CAMERA||t===N.INDOOR_PT_CAMERA_1080||t===N.INDOOR_COST_DOWN_CAMERA||t===N.FLOODLIGHT_CAMERA_8423||t===N.CAMERA_GARAGE_T8453_COMMON||t===N.CAMERA_GARAGE_T8453||t===N.CAMERA_GARAGE_T8452||t===N.CAMERA_FG}static supportsTalkback(t){return t===N.CAMERA2||t===N.CAMERA2C||t===N.CAMERA2C_PRO||t===N.CAMERA2_PRO||t===N.CAMERA3||t===N.CAMERA3C||t===N.DOORBELL||t===N.BATTERY_DOORBELL||t===N.BATTERY_DOORBELL_2||t===N.BATTERY_DOORBELL_PLUS||t===N.DOORBELL_SOLO||t===N.INDOOR_CAMERA||t===N.INDOOR_CAMERA_1080||t===N.INDOOR_OUTDOOR_CAMERA_1080P||t===N.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===N.INDOOR_OUTDOOR_CAMERA_2K||t===N.INDOOR_PT_CAMERA||t===N.INDOOR_PT_CAMERA_1080||t===N.INDOOR_COST_DOWN_CAMERA||t===N.SOLO_CAMERA||t===N.SOLO_CAMERA_PRO||t===N.SOLO_CAMERA_SPOTLIGHT_1080||t===N.SOLO_CAMERA_SPOTLIGHT_2K||t===N.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===N.FLOODLIGHT||t===N.FLOODLIGHT_CAMERA_8422||t===N.FLOODLIGHT_CAMERA_8423||t===N.FLOODLIGHT_CAMERA_8424||t===N.WALL_LIGHT_CAM||t===N.WALL_LIGHT_CAM_81A0||t===N.CAMERA_GARAGE_T8453_COMMON||t===N.CAMERA_GARAGE_T8453||t===N.CAMERA_GARAGE_T8452||t===N.CAMERA_FG}}var Yf=function(e){return e[e.CHARGING=1]="CHARGING",e[e.UNPLUGGED=2]="UNPLUGGED",e[e.PLUGGED=3]="PLUGGED",e[e.SOLAR_CHARGING=4]="SOLAR_CHARGING",e}(Yf||{});const Zf=new Map([[N.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[N.HB3,{image:"homebase3_large.jpg",padding:"0px"}],[N.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[N.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[N.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[N.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[N.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[N.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[N.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[N.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[N.CAMERA3C,{image:"eufycam3c_large.jpg",padding:"0px"}],[N.CAMERA3,{image:"eufycam3_large.jpg",padding:"0px"}],[N.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[N.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[N.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[N.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[N.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[N.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[N.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[N.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[N.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[N.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[N.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[N.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[N.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[N.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[N.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[N.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[N.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[N.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[N.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[N.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[N.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[N.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[N.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[N.SMART_DROP,{image:"smartdrop_t8790_large.jpg",padding:"20px"}],[N.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[N.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[N.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[N.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[N.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[N.CAMERA_FG,{image:"4g_lte_starlight_large.jpg",padding:"20px"}],[N.SMART_SAFE_7400,{image:"smartsafe_s10_t7400_large.jpg",padding:"20px"}],[N.SMART_SAFE_7401,{image:"smartsafe_s12_t7401_large.jpg",padding:"20px"}],[N.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[N.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}],[N.WALL_LIGHT_CAM,{image:"walllight_s100_large.jpg",padding:"20px"}],[N.SMART_TRACK_LINK,{image:"unknown.png",padding:"20px"}],[N.SMART_TRACK_CARD,{image:"unknown.png",padding:"20px"}],[N.LOCK_8502,{image:"unknown.png",padding:"20px"}],[N.LOCK_8506,{image:"unknown.png",padding:"20px"}],[N.WALL_LIGHT_CAM_81A0,{image:"walllight_s100_large",padding:"20px"}],[N.CAMERA_GARAGE_T8452,{image:"garage_camera_t8452_small.jpg",padding:"20px"}],[N.CAMERA_GARAGE_T8453,{image:"unknown.png",padding:"20px"}],[N.CAMERA_GARAGE_T8453_COMMON,{image:"unknown.png",padding:"20px"}]]);let Ke=(()=>{var e;class t extends EventTarget{constructor(){super(),V(this,"stations",[]),V(this,"devices",[]),V(this,"accessories$",e2(window.homebridge,"addAccessory")),V(this,"config",void 0),this.init()}init(){this.accessories$.subscribe(n=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(n){return this.stations.find(i=>i.uniqueId===n)}getDevice(n){return this.devices.find(i=>i.uniqueId===n)}loadStoredAccessories(){var n=this;return ve(function*(){try{const i=yield window.homebridge.request("/storedAccessories");return i.forEach(a=>{n.addAccessory(a)}),0!==i.length&&n.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==i.length)}catch(i){return Promise.reject(i)}})()}addAccessory(n){const i=n.station?this.stations:this.devices;i.find(a=>a.uniqueId===n.uniqueId)||i.push(n)}getConfig(){var n=this;return ve(function*(){return n.config?Promise.resolve(n.config):n.getPlatformConfig()})()}updateConfig(n,i){var a=this;return ve(function*(){try{yield window.homebridge.updatePluginConfig([n]),a.config=n,i&&(yield window.homebridge.savePluginConfig()),a.dispatchEvent(new Event("configChanged"))}catch(s){console.log("There was an error updating the credentials in your config: "+s)}})()}getPlatformConfig(){var n=this;return ve(function*(){try{const i=yield window.homebridge.getPluginConfig();return i.length>0?(n.config=i[0],n.config.platform="EufySecurity",Promise.resolve(i[0])):Promise.reject("Could not get Platform config")}catch(i){return Promise.reject(i)}})()}getCachedName(n){return ve(function*(){let a;return(yield window.homebridge.getCachedAccessories()).forEach(s=>{s.context&&s.context.device&&s.context.device.uniqueId===n.uniqueId&&s.context.device.station===n.station&&(a=s.context.device.displayName)}),Promise.resolve(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275prov",K({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function t_e(e,t){if(1&e){const r=b1();p(0,"div",2)(1,"h4",3),M(2,"Refresh stations and devices"),v(),p(3,"button",4),O("click",function(){return $(G(r).$implicit.dismiss("Cross click"))}),v()(),p(4,"div",5)(5,"div",6),M(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. "),R(7,"p"),p(8,"b",7),M(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),v(),R(10,"p"),M(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),p(12,"a",8),M(13,"here"),v(),M(14," for more information). "),v()(),p(15,"div",9)(16,"a",10),O("click",function(){return $(G(r).$implicit.close("Login"))}),M(17,"Login with eufy"),v()()}}function n_e(e,t){1&e&&(p(0,"div",11)(1,"div",12),R(2,"div",13),p(3,"div",14)(4,"div",15)(5,"div",16),M(6," Loading Accessories... "),p(7,"div",17),R(8,"div",18),v()()()(),R(9,"div",13),v()())}function r_e(e,t){if(1&e&&(p(0,"span",42),R(1,"fa-icon",43),v()),2&e){const r=x(3);C(1),y("icon",r.ignoreIcon)}}function i_e(e,t){if(1&e&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),R(5,"img",36),p(6,"span",37),R(7,"fa-icon",38),v(),I(8,r_e,2,1,"span",39),v()()()(),p(9,"span",40),M(10),v(),p(11,"span",41),M(12),v()()),2&e){const r=t.$implicit,n=x(2);let i;C(3),Y3("routerLink","/stationConfig/",r.uniqueId,""),C(2),y("src","assets/devices/"+(n.DeviceImage.get(r.type)?null==(i=n.DeviceImage.get(r.type))?null:i.image:"unknown.png"),L3),B("style",n.getDevicePanelStyle(r),R2),C(2),y("icon",n.settingsIcon),C(1),y("ngIf",r.ignored),C(2),F2(r.cachedName?r.cachedName:r.displayName),C(2),B2("(",r.uniqueId,")")}}function a_e(e,t){if(1&e&&(p(0,"span",42),R(1,"fa-icon",43),v()),2&e){const r=x(3);C(1),y("icon",r.ignoreIcon)}}function s_e(e,t){if(1&e&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),R(5,"img",36),p(6,"span",37),R(7,"fa-icon",38),v(),I(8,a_e,2,1,"span",39),v()()()(),p(9,"span",40),M(10),v(),p(11,"span",41),M(12),v()()),2&e){const r=t.$implicit,n=x(2);let i;C(3),Y3("routerLink","/cameraConfig/",r.uniqueId,""),C(2),y("src","assets/devices/"+(n.DeviceImage.get(r.type)?null==(i=n.DeviceImage.get(r.type))?null:i.image:"unknown.png"),L3),B("style",n.getDevicePanelStyle(r),R2),C(2),y("icon",n.settingsIcon),C(1),y("ngIf",r.ignored),C(2),F2(r.cachedName?r.cachedName:r.displayName),C(2),B2("(",r.uniqueId,")")}}function c_e(e,t){if(1&e){const r=b1();p(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),O("click",function(){G(r);const i=x(),a=P2(1);return $(i.openReloadModal(a))}),R(4,"fa-icon",22),v()(),p(5,"div",23)(6,"a",24),M(7,"Plugin Settings"),v()()(),R(8,"p"),p(9,"span"),M(10,"Click on any device below to access its settings."),v(),R(11,"p"),p(12,"div",25)(13,"div",26),M(14," Stations "),v(),p(15,"div",27)(16,"div",19),I(17,i_e,13,7,"div",28),v()()(),R(18,"p"),p(19,"div",25)(20,"div",26),M(21," Devices "),v(),p(22,"div",29)(23,"div",19),I(24,s_e,13,7,"div",28),v()()(),R(25,"p"),p(26,"span")(27,"i"),M(28,"The images used above are 'best effort' for now, since we do not own every eufy device. If you experience that your device is depicted with a wrong image please feel free to let us know in an issue on our "),p(29,"a",30),M(30,"Github page."),v()()()()}if(2&e){const r=x();C(4),y("icon",r.reloadIcon),C(13),y("ngForOf",r.stations),C(7),y("ngForOf",r.devices)}}let o_e=(()=>{var e;class t{constructor(n,i,a,s){V(this,"modalService",void 0),V(this,"pluginService",void 0),V(this,"route",void 0),V(this,"routerService",void 0),V(this,"stations",[]),V(this,"devices",[]),V(this,"waitForAccessories",void 0),V(this,"settingsIcon",_f),V(this,"ignoreIcon",lw),V(this,"reloadIcon",Pf),V(this,"DeviceImage",Zf),V(this,"closeResult",""),this.modalService=n,this.pluginService=i,this.route=a,this.routerService=s}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(n=>{n||this.routerService.navigateByUrl("/login")}).catch(n=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var n=this;return ve(function*(){const i=yield n.pluginService.getConfig();Array.isArray(i.ignoreStations)&&n.stations.forEach(a=>{a.ignored=void 0!==i.ignoreStations.find(s=>s===a.uniqueId)}),Array.isArray(i.ignoreDevices)&&n.devices.forEach(a=>{a.ignored=void 0!==i.ignoreDevices.find(s=>s===a.uniqueId)}),n.stations.forEach(a=>{n.pluginService.getCachedName(a).then(s=>a.cachedName=s)}),n.devices.forEach(a=>{n.pluginService.getCachedName(a).then(s=>a.cachedName=s)})})()}openReloadModal(n){this.modalService.open(n,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(n){return n===na.ESC?"by pressing ESC":n===na.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${n}`}getDevicePanelStyle(n){let i="";return n.ignored&&(i+="opacity: 0.2;"),Zf.get(n.type)?i+="padding:"+Zf.get(n.type)?.padding:i+="padding:20px",i}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(pM),H(Ke),H(An),H(_2))}),V(t,"\u0275cmp",se({type:e,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(n,i){1&n&&(I(0,t_e,18,0,"ng-template",null,0,S2),I(2,n_e,10,0,"div",1),I(3,c_e,31,3,"div",1)),2&n&&(C(2),y("ngIf",0===i.stations.length&&0===i.devices.length),C(1),y("ngIf",0!==i.stations.length||0!==i.devices.length))},dependencies:[_t,V1,Pt,S7],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})();const on={enableDetailedLogging:!1,CameraMaxLivestreamDuration:30,pollingIntervalMinutes:10,hkHome:1,hkAway:0,hkNight:3,hkOff:63,ignoreStations:[],ignoreDevices:[],country:"US",cameras:[],cleanCache:!0,unbridge:!0,ignoreMultipleDevicesWarning:!1,syncStationModes:!1};class _1{constructor(t){V(this,"pluginService",void 0),V(this,"config",void 0),this.pluginService=t,this.config=on,this.pluginService.getConfig().then(r=>{this.config={...this.config,...r}}).catch(r=>console.log("Could not get config in config interpreter: "+r))}getCameraConfig(t){var r=this;return ve(function*(){const n=yield r.pluginService.getConfig();if(Array.isArray(n.cameras))return n.cameras.find(i=>i.serialNumber===t)||void 0})()}getStationConfig(t){var r=this;return ve(function*(){const n=yield r.pluginService.getConfig();if(Array.isArray(n.stations))return n.stations.find(i=>i.serialNumber===t)||void 0})()}updateConfig(t,r){var n=this;return ve(function*(){let i=yield n.pluginService.getConfig();if(r||(i={...on,...i,...t}),r&&!1===r.station){Array.isArray(i.cameras)||(i.cameras=[]);const a=i.cameras.findIndex(s=>s.serialNumber===r.uniqueId);a>=0?i.cameras[a]={...i.cameras[a],...t}:i.cameras.push({serialNumber:r.uniqueId,...t})}else if(r&&!0===r.station){Array.isArray(i.stations)||(i.stations=[]);const a=i.stations.findIndex(s=>s.serialNumber===r.uniqueId);a>=0?i.stations[a]={...i.stations[a],...t}:i.stations.push({serialNumber:r.uniqueId,...t})}n.pluginService.updateConfig(i)})()}}let l_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(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 e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-detailed-logging"]],features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Debug Mode"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.model=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),v()()()),2&n&&(C(5),y("ngModel",i.model))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),f_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"value",10),V(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 e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-polling-interval-minutes"]],features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Polling Interval"),v(),p(4,"div",2)(5,"div",3)(6,"input",4),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v(),p(7,"div",5)(8,"span",6),M(9,"minutes"),v()()()()(),p(10,"small")(11,"i"),M(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),v()()()),2&n&&(C(6),y("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Hn,V4,g1,o1],encapsulation:2})),t})(),u_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"value",30),V(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 e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-livestream-duration-seconds"]],features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Maximum Livestream Duration"),v(),p(4,"div",2)(5,"div",3)(6,"input",4),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v(),p(7,"div",5)(8,"span",6),M(9,"seconds"),v()()()()(),p(10,"small")(11,"i"),M(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),v()()()),2&n&&(C(6),y("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Hn,V4,g1,o1],encapsulation:2})),t})(),d_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",se({type:e,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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Change username, password and country"),v(),p(4,"a",3),M(5,"New Login"),v()()())},dependencies:[Pt],encapsulation:2})),t})(),h_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(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 e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-clean-cache"]],features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Clean cache automatically"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.model=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),v()()()),2&n&&(C(5),y("ngModel",i.model))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),p_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){const n=Object.prototype.hasOwnProperty.call(this.config,"unbridge")?this.config.unbridge:on.unbridge;this.model=n}update(){this.updateConfig({unbridge:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-unbridge-accessory"]],features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Unbridge Camera"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.model=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),p(9,"a",4),M(10,"here"),v(),M(11," for mor details. "),v()()()),2&n&&(C(5),y("ngModel",i.model))},dependencies:[X1,g1,o1],encapsulation:2})),t})();function m_e(e,t){1&e&&(p(0,"span"),M(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),v())}function g_e(e,t){1&e&&(p(0,"option",6),M(1,"Use global setting"),v()),2&e&&y("ngValue",void 0)}function v_e(e,t){1&e&&(p(0,"option",6),M(1,"Use global setting"),v()),2&e&&y("ngValue",void 0)}function __e(e,t){1&e&&(p(0,"option",6),M(1,"Use global setting"),v()),2&e&&y("ngValue",void 0)}function C_e(e,t){1&e&&(p(0,"option",6),M(1,"Use global setting"),v()),2&e&&y("ngValue",void 0)}let _x=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"hkHome",void 0),V(this,"hkAway",void 0),V(this,"hkNight",void 0),V(this,"hkOff",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();i&&Object.prototype.hasOwnProperty.call(i,"hkHome")?n.hkHome=i.hkHome:n.accessory||(n.hkHome=on.hkHome),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?n.hkAway=i.hkAway:n.accessory||(n.hkAway=on.hkAway),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?n.hkNight=i.hkNight:n.accessory||(n.hkNight=on.hkNight),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?n.hkOff=i.hkOff:n.accessory||(n.hkOff=on.hkOff)})()}update(){var n=this;return ve(function*(){let i=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();void 0===i&&(i={}),void 0===n.hkHome&&Object.prototype.hasOwnProperty.call(i,"hkHome")?delete i.hkHome:i.hkHome=n.hkHome,void 0===n.hkAway&&Object.prototype.hasOwnProperty.call(i,"hkAway")?delete i.hkAway:i.hkAway=n.hkAway,void 0===n.hkNight&&Object.prototype.hasOwnProperty.call(i,"hkNight")?delete i.hkNight:i.hkNight=n.hkNight,void 0===n.hkOff&&Object.prototype.hasOwnProperty.call(i,"hkOff")?delete i.hkOff:i.hkOff=n.hkOff;let a=yield n.pluginService.getConfig();if(n.accessory){Array.isArray(a.stations)||(a.stations=[]);let s=-1;a.stations.forEach((c,o)=>{c.serialNumber===n.accessory?.uniqueId&&(s=o)}),s>=0?a.stations[s]=i:(i.serialNumber=n.accessory.uniqueId,a.stations.push(i))}else a=i;n.pluginService.updateConfig(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"span"),M(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),v(),R(3,"p"),I(4,m_e,2,0,"span",1),R(5,"p"),p(6,"div",2)(7,"label",3),M(8,"HomeKit Home"),v(),p(9,"select",4),O("ngModelChange",function(s){return i.hkHome=s})("change",function(){return i.update()}),I(10,g_e,2,1,"option",5),p(11,"option",6),M(12,"Eufy Home"),v(),p(13,"option",6),M(14,"Eufy Away"),v(),p(15,"option",6),M(16,"Eufy Schedule"),v(),p(17,"option",6),M(18,"Eufy Custom 1 (Night)"),v(),p(19,"option",6),M(20,"Eufy Custom 2"),v(),p(21,"option",6),M(22,"Eufy Custom 3"),v(),p(23,"option",6),M(24,"Eufy Geofencing"),v(),p(25,"option",6),M(26,"Eufy Disarmed"),v()()(),p(27,"div",2)(28,"label",7),M(29,"HomeKit Away"),v(),p(30,"select",8),O("ngModelChange",function(s){return i.hkAway=s})("change",function(){return i.update()}),I(31,v_e,2,1,"option",5),p(32,"option",6),M(33,"Eufy Home"),v(),p(34,"option",6),M(35,"Eufy Away"),v(),p(36,"option",6),M(37,"Eufy Schedule"),v(),p(38,"option",6),M(39,"Eufy Custom 1 (Night)"),v(),p(40,"option",6),M(41,"Eufy Custom 2"),v(),p(42,"option",6),M(43,"Eufy Custom 3"),v(),p(44,"option",6),M(45,"Eufy Geofencing"),v(),p(46,"option",6),M(47,"Eufy Disarmed"),v()()(),p(48,"div",2)(49,"label",9),M(50,"HomeKit Night"),v(),p(51,"select",10),O("ngModelChange",function(s){return i.hkNight=s})("change",function(){return i.update()}),I(52,__e,2,1,"option",5),p(53,"option",6),M(54,"Eufy Home"),v(),p(55,"option",6),M(56,"Eufy Away"),v(),p(57,"option",6),M(58,"Eufy Schedule"),v(),p(59,"option",6),M(60,"Eufy Custom 1 (Night)"),v(),p(61,"option",6),M(62,"Eufy Custom 2"),v(),p(63,"option",6),M(64,"Eufy Custom 3"),v(),p(65,"option",6),M(66,"Eufy Geofencing"),v(),p(67,"option",6),M(68,"Eufy Disarmed"),v()()(),p(69,"div",2)(70,"label",11),M(71,"HomeKit Off"),v(),p(72,"select",12),O("ngModelChange",function(s){return i.hkOff=s})("change",function(){return i.update()}),I(73,C_e,2,1,"option",5),p(74,"option",6),M(75,"Eufy Home"),v(),p(76,"option",6),M(77,"Eufy Away"),v(),p(78,"option",6),M(79,"Eufy Schedule"),v(),p(80,"option",6),M(81,"Eufy Custom 1 (Night)"),v(),p(82,"option",6),M(83,"Eufy Custom 2"),v(),p(84,"option",6),M(85,"Eufy Custom 3"),v(),p(86,"option",6),M(87,"Eufy Geofencing"),v(),p(88,"option",6),M(89,"Eufy Disarmed"),v()()()()),2&n&&(C(4),y("ngIf",i.accessory),C(5),y("ngModel",i.hkHome),C(1),y("ngIf",i.accessory),C(1),y("ngValue",1),C(2),y("ngValue",0),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngValue",4),C(2),y("ngValue",5),C(2),y("ngValue",47),C(2),y("ngValue",63),C(5),y("ngModel",i.hkAway),C(1),y("ngIf",i.accessory),C(1),y("ngValue",1),C(2),y("ngValue",0),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngValue",4),C(2),y("ngValue",5),C(2),y("ngValue",47),C(2),y("ngValue",63),C(5),y("ngModel",i.hkNight),C(1),y("ngIf",i.accessory),C(1),y("ngValue",1),C(2),y("ngValue",0),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngValue",4),C(2),y("ngValue",5),C(2),y("ngValue",47),C(2),y("ngValue",63),C(5),y("ngModel",i.hkOff),C(1),y("ngIf",i.accessory),C(1),y("ngValue",1),C(2),y("ngValue",0),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngValue",4),C(2),y("ngValue",5),C(2),y("ngValue",47),C(2),y("ngValue",63))},dependencies:[V1,z4,S4,wn,g1,o1],encapsulation:2})),t})(),M_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",se({type:e,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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Reset Plugin"),v(),p(4,"a",3),M(5,"Remove everything"),v()(),p(6,"small")(7,"i"),M(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. "),v()()())},dependencies:[Pt],encapsulation:2})),t})(),y_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(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 e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-omit-log-files"]],features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Don't store log files"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(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. "),v()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})();var b_e=u1(7);function H_e(e,t){if(1&e&&(p(0,"div",7),M(1),v()),2&e){const r=x();C(1),B2(" ",r.failureMessage," ")}}function w_e(e,t){1&e&&R(0,"span",10)}function V_e(e,t){1&e&&(p(0,"span"),M(1,"Download Logs"),v())}function z_e(e,t){1&e&&(p(0,"span"),M(1," Generating Log File..."),v())}function S_e(e,t){if(1&e){const r=b1();p(0,"button",8),O("click",function(){return G(r),$(x().downloadLogs())}),I(1,w_e,1,0,"span",9),I(2,V_e,2,0,"span",6),I(3,z_e,2,0,"span",6),v()}if(2&e){const r=x();B("disabled",!!r.isDownloading||null),C(1),y("ngIf",r.isDownloading),C(1),y("ngIf",!r.isDownloading),C(1),y("ngIf",r.isDownloading)}}function D_e(e,t){if(1&e){const r=b1();p(0,"a",11),O("click",function(){return G(r),$(x().openLink())}),p(1,"span"),M(2,"Download Logs"),v()()}}function L_e(e,t){if(1&e&&(p(0,"small")(1,"i"),M(2),v()()),2&e){const r=x();C(2),B2(" ",r.downloadMessage," ")}}function x_e(e,t){1&e&&(p(0,"small")(1,"i"),M(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),R(3,"br"),p(4,"b"),M(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),p(6,"a",12),M(7,"site"),v(),M(8," can help."),v()()())}let N_e=(()=>{var e;class t{constructor(n,i){V(this,"router",void 0),V(this,"zone",void 0),V(this,"routeSub",void 0),V(this,"failed",!1),V(this,"isDownloading",!1),V(this,"hasDownloaded",!1),V(this,"downloadMessage",void 0),V(this,"failureMessage",""),V(this,"logFileLocation",""),this.router=n,this.zone=i}ngOnInit(){this.routeSub=this.router.events.subscribe(n=>{n instanceof Va&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",n=>{this.updateDownloadMessage(`Compressing ${n.data.numberOfFiles} log files...`)})}downloadLogs(){var n=this;return ve(function*(){try{n.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),a=b_e.lW.from(i.data),s=new File([a],"logs.zip",{type:"application/zip"}),c=window.URL.createObjectURL(s);n.logFileLocation=c,window.open(n.logFileLocation),n.updateDownloadMessage(void 0),n.hasDownloaded=!0}catch(i){console.log(i);const a=i;n.failed=!0,n.updateDownloadMessage(void 0),n.failureMessage=`Generating of compressed logs.zip file did not complete: ${a.message}`}finally{n.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(n){this.zone.run(()=>{this.downloadMessage=n})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(_2),H(ye))}),V(t,"\u0275cmp",se({type:e,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(n,i){1&n&&(p(0,"div",0),I(1,H_e,2,1,"div",1),p(2,"div",2)(3,"span",3),M(4,"Download Logs"),v(),I(5,S_e,4,4,"button",4),I(6,D_e,3,0,"a",5),v(),I(7,L_e,3,1,"small",6),I(8,x_e,9,0,"small",6),v()),2&n&&(C(1),y("ngIf",i.failed),C(4),y("ngIf",!i.hasDownloaded),C(1),y("ngIf",i.hasDownloaded),C(1),y("ngIf",i.downloadMessage),C(1),y("ngIf",i.hasDownloaded))},dependencies:[V1],encapsulation:2})),t})(),A_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"value",on.ignoreMultipleDevicesWarning)}ngOnInit(){this.readValue()}readValue(){this.config&&void 0!==this.config.ignoreMultipleDevicesWarning&&(this.value=this.config.ignoreMultipleDevicesWarning)}update(){this.updateConfig({ignoreMultipleDevicesWarning:this.value})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-ignore-multiple-devices-warning"]],features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable snapshot and HKSV settings for multiple devices on one station."),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(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. "),v()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),E_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",se({type:e,selectors:[["app-advanced-config-options"]],decls:27,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"]],template:function(n,i){1&n&&(p(0,"a",0),M(1,"Back to Devices List"),v(),p(2,"div",1)(3,"div",2),M(4," Advanced Settings "),v(),p(5,"div",3),R(6,"app-edit-credentials")(7,"hr")(8,"app-polling-interval-minutes")(9,"hr")(10,"app-livestream-duration-seconds")(11,"hr")(12,"app-enable-detailed-logging")(13,"hr")(14,"app-ignore-multiple-devices-warning")(15,"hr")(16,"app-omit-log-files")(17,"hr")(18,"app-clean-cache")(19,"hr")(20,"app-unbridge-accessory")(21,"hr")(22,"app-guard-modes-mapping")(23,"hr")(24,"app-download-logs")(25,"hr")(26,"app-reset-plugin"),v()())},dependencies:[Pt,l_e,f_e,u_e,d_e,h_e,p_e,_x,M_e,y_e,N_e,A_e],encapsulation:2})),t})(),Cx=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){if(n.config=yield n.pluginService.getConfig(),n.accessory){const i=n.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(n.config[i])&&(n.value=void 0!==n.config[i].find(a=>a===n.accessory.uniqueId))}})()}update(){var n=this;return ve(function*(){if(!n.accessory)return;const i=n.accessory.station?"ignoreStations":"ignoreDevices";n.config=yield n.pluginService.getConfig(),n.value?Array.isArray(n.config[i])&&!n.config[i].find(a=>a===n.accessory.uniqueId)?n.config[i].push(n.accessory.uniqueId):Array.isArray(n.config[i])||(n.config[i]=[n.accessory.uniqueId]):Array.isArray(n.config[i])&&void 0!==n.config[i].find(a=>a===n.accessory.uniqueId)&&(n.config[i]=n.config[i].filter(a=>a!==n.accessory.uniqueId)),n.pluginService.updateConfig(n.config)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()()()),2&n&&(C(3),B2("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),C(2),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})();function T_e(e,t){1&e&&(p(0,"small")(1,"i"),M(2," This option is disabled since doorbells are handled always as cameras. "),v()())}function I_e(e,t){1&e&&(p(0,"small")(1,"i"),M(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),v()())}let O_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value","true"),V(this,"disabled",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){n.accessory&&W4.isDoorbell(n.accessory.type)&&(n.value="true",n.disabled=!0,n.update());const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"enableCamera")&&(n.value=i.enableCamera)})()}update(){this.updateConfig({enableCamera:JSON.parse(this.value)},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Operation Mode"),v(),p(4,"div",2)(5,"select",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),p(6,"option",4),M(7,"Motion Sensor"),v(),p(8,"option",5),M(9,"Camera"),v()()()(),I(10,T_e,3,0,"small",6),I(11,I_e,3,0,"small",6),v()),2&n&&(C(5),y("ngModel",i.value),B("disabled",!!i.disabled||null),C(5),y("ngIf",i.disabled),C(1),y("ngIf",!i.disabled))},dependencies:[V1,z4,S4,wn,g1,o1],encapsulation:2})),t})();function R_e(e,t){if(1&e){const r=b1();p(0,"div",1)(1,"span"),M(2,"Display HomeKit button to turn indoor chime on/off"),v(),p(3,"div",2)(4,"input",3),O("ngModelChange",function(i){return G(r),$(x().indoorChimeButton=i)})("change",function(){return G(r),$(x().update())}),v()()()}if(2&e){const r=x();C(4),y("ngModel",r.indoorChimeButton)}}let k_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"enableCameraButton",!0),V(this,"enableMotionButton",!0),V(this,"showIndoorChimeButtonSetting",!1),V(this,"indoorChimeButton",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId??"");n.accessory&&void 0!==n.accessory.type&&(n.showIndoorChimeButtonSetting=W4.isBatteryDoorbell(n.accessory.type)||W4.isWiredDoorbell(n.accessory.type)),"enableButton"in i&&(n.enableCameraButton=i.enableButton),"motionButton"in i&&(n.enableMotionButton=i.motionButton),"indoorChimeButton"in i&&(n.indoorChimeButton=i.indoorChimeButton)})()}update(){const n={enableButton:this.enableCameraButton,motionButton:this.enableMotionButton};this.showIndoorChimeButtonSetting&&(n.indoorChimeButton=this.indoorChimeButton),this.updateConfig(n,this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Display HomeKit switch to switch camera on/off"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.enableCameraButton=s})("change",function(){return i.update()}),v()()(),p(6,"div",1)(7,"span"),M(8,"Display HomeKit switch to switch motion detection on/off"),v(),p(9,"div",2)(10,"input",3),O("ngModelChange",function(s){return i.enableMotionButton=s})("change",function(){return i.update()}),v()()(),I(11,R_e,5,1,"div",4),p(12,"small")(13,"i"),M(14," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),p(15,"a",5),M(16,"here"),v(),M(17," for more details. "),v()()()),2&n&&(C(5),y("ngModel",i.enableCameraButton),C(5),y("ngModel",i.enableMotionButton),C(1),y("ngIf",i.showIndoorChimeButtonSetting))},dependencies:[V1,X1,g1,o1],encapsulation:2})),t})(),P_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"useCachedLocalLivestream")&&(n.value=i.useCachedLocalLivestream)})()}update(){this.updateConfig({useCachedLocalLivestream:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use Local Livestream Caching"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i")(8,"b"),M(9,"This setting seems only useful if you are able to set the video codec / video compression for the camera in the eufy app to 'low' (aka. H264 codec). If you can, we recommened to do so, since there can be a significant performance boost (aka. startup of livestreams)."),v(),R(10,"p"),M(11," If enabled local livestreams will be kept alive for a short time after the user stops streaming or a snapshot is refreshed (see 'Force Refresh Snapshot' also). This allows subsequent streams to start up much faster, but also may increase power consumption for battery powered devices. Additionally a livestream will be started (cached) immediately after an event (motion, person, doorbell) occurs, so that start up times are decreased. "),v()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})();function F_e(e,t){1&e&&(p(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let B_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"talkbackIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"rtsp")&&(n.value=i.rtsp),i&&Object.prototype.hasOwnProperty.call(i,"talkback")&&(n.talkbackIsEnabled=i.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use RTSP streaming"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),I(6,F_e,2,0,"div",4),p(7,"small")(8,"i"),M(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!"),R(10,"br"),v()()()),2&n&&(C(5),y("ngModel",i.value),C(1),y("ngIf",i.talkbackIsEnabled&&i.value))},dependencies:[V1,X1,g1,o1],encapsulation:2})),t})(),U_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"samplerate",0)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");if(i&&i.videoConfig&&Object.prototype.hasOwnProperty.call(i.videoConfig,"audio")&&(n.value=i.videoConfig.audio),i&&i.videoConfig&&Object.prototype.hasOwnProperty.call(i.videoConfig,"audioSampleRate")){const a=i.videoConfig.audioSampleRate;(8===a||16===a||24===a)&&(n.samplerate=a)}})()}update(){var n=this;return ve(function*(){if(!n.accessory)return;let i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i||(i={serialNumber:n.accessory?.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(i,"videoConfig")||(i.videoConfig={}),i.videoConfig.audio=n.value,i.videoConfig.audioSampleRate=n.samplerate,n.updateConfig(i,n.accessory)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[re],decls:25,vars:7,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"],[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","Samplerate",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Audio"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," Try to enable audio streaming for this device."),R(9,"br"),M(10," If you encounter problems try to disable this setting. "),v()(),R(11,"p"),p(12,"div",4)(13,"span"),M(14,"Force Audio Sample Rate"),v(),p(15,"div",5)(16,"select",6),O("ngModelChange",function(s){return i.samplerate=s})("change",function(){return i.update()}),p(17,"option",7),M(18,"Default Sample Rate"),v(),p(19,"option",7),M(20,"8 kHz"),v(),p(21,"option",7),M(22,"16 kHz"),v(),p(23,"option",7),M(24,"24 kHz"),v()()()()()),2&n&&(C(5),y("ngModel",i.value),C(11),y("ngModel",i.samplerate),B("disabled",!i.value||null),C(1),y("ngValue",0),C(2),y("ngValue",8),C(2),y("ngValue",16),C(2),y("ngValue",24))},dependencies:[z4,S4,X1,wn,g1,o1],encapsulation:2})),t})(),j_e=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"forcerefreshsnap")&&(n.value=i.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Force Refresh Snapshot (Deprecated)"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(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)."),R(9,"br"),M(10," This option is only used if you have disabled enhanced snapshot handling. "),v()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),Mx=(()=>{var e;class t{getChargingStatus(n){return ve(function*(){return window.homebridge.request("/getChargingStatus",n)})()}setExperimentalRTSPStatus(n,i){return ve(function*(){return window.homebridge.request("/setExperimentalRTSP",{sn:n,value:i})})()}getExperimentalRTSPStatus(n){return ve(function*(){return window.homebridge.request("/getExperimentalRTSPStatus",n)})()}getStationsCamerasMapping(){return ve(function*(){return window.homebridge.request("/getStationDeviceMapping")})()}getCamerasOnSameStation(n,i=[]){var a=this;return ve(function*(){try{const s=yield a.getStationsCamerasMapping();for(const c of Object.values(s))if(Array.isArray(c)&&c.indexOf(n)>-1){const o=[n];for(const l of c)l!==n&&-1===i.indexOf(l)&&o.push(l);return Promise.resolve(o)}throw new Error("no valid station - devices mapping was found")}catch(s){return Promise.reject(s)}})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275prov",K({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function G_e(e,t){1&e&&(p(0,"div"),M(1," You can enable this setting nevertheless in "),p(2,"a",10),M(3,"Plugin Settings"),v(),R(4,"p"),v())}function $_e(e,t){if(1&e&&(p(0,"li"),M(1),v()),2&e){const r=t.$implicit;C(1),F2(r)}}function W_e(e,t){if(1&e&&(p(0,"div",8),M(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."),R(2,"p"),I(3,G_e,5,0,"div",7),M(4," Cameras on the same station: "),p(5,"ul"),I(6,$_e,2,1,"li",9),v()()),2&e){const r=x();C(3),y("ngIf",!r.ignoreMultipleDevicesWarning),C(3),y("ngForOf",r.camerasOnSameStation)}}function q_e(e,t){1&e&&(p(0,"div",8)(1,"b"),M(2,"Caution!"),v(),M(3," While Force Refresh Snapshots will deliver most up-to-date snapshots, this can have negative effects on HomeKit behaviour. For example starting a livestream might be delayed as a side effect by this option. See "),p(4,"a",11),M(5,"here"),v(),M(6," for more informtaion. "),v())}function K_e(e,t){1&e&&(p(0,"div",8),M(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. "),v())}function Y_e(e,t){1&e&&(p(0,"div",12),M(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. "),v())}function Z_e(e,t){if(1&e&&(p(0,"small")(1,"i")(2,"b"),M(3,"Description:"),v(),M(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."),R(5,"br"),M(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. "),R(7,"p")(8,"fa-icon",13),M(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",13),M(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",14),M(15," Performance"),R(16,"br")(17,"fa-icon",14),M(18," Battery life"),R(19,"br"),v()()),2&e){const r=x();C(8),y("icon",r.plusIcon),C(3),y("icon",r.plusIcon),C(3),y("icon",r.minusIcon),C(3),y("icon",r.minusIcon)}}function Q_e(e,t){if(1&e&&(p(0,"small")(1,"i")(2,"b"),M(3,"Description:"),v(),M(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),R(5,"br"),M(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. "),R(7,"p")(8,"fa-icon",13),M(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",15),M(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",13),M(15," Performance"),R(16,"br")(17,"fa-icon",14),M(18," Battery life"),R(19,"br"),v()()),2&e){const r=x();C(8),y("icon",r.plusIcon),C(3),y("icon",r.mediumIcon),C(3),y("icon",r.plusIcon),C(3),y("icon",r.minusIcon)}}function J_e(e,t){if(1&e&&(p(0,"small")(1,"i")(2,"b"),M(3,"Description:"),v(),M(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),R(5,"br"),M(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). "),R(7,"p")(8,"fa-icon",13),M(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",14),M(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",13),M(15," Performance"),R(16,"br")(17,"fa-icon",13),M(18," Battery life"),R(19,"br"),v()()),2&e){const r=x();C(8),y("icon",r.plusIcon),C(3),y("icon",r.minusIcon),C(3),y("icon",r.plusIcon),C(3),y("icon",r.plusIcon)}}let X_e=(()=>{var e;class t extends _1{constructor(n,i){super(n),V(this,"accessoryService",void 0),V(this,"plusIcon",LL),V(this,"minusIcon",Xb),V(this,"mediumIcon",bz),V(this,"accessory",void 0),V(this,"value",3),V(this,"chargingStatus",Yf.PLUGGED),V(this,"camerasOnSameStation",[]),V(this,"ignoreMultipleDevicesWarning",on.ignoreMultipleDevicesWarning),this.accessoryService=i}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&("snapshotHandlingMethod"in i?n.value=i.snapshotHandlingMethod:"forcerefreshsnap"in i&&(n.value=i.forcerefreshsnap?1:3)),n.accessory&&(n.accessoryService.getChargingStatus(n.accessory.uniqueId).then(s=>n.chargingStatus=s),i&&"ignoreMultipleDevicesWarning"in i&&(n.ignoreMultipleDevicesWarning=i.ignoreMultipleDevicesWarning),n.accessoryService.getCamerasOnSameStation(n.accessory.uniqueId,i&&"ignoreDevices"in i?i.ignoreDevices:[]).then(s=>{n.camerasOnSameStation=s,n.camerasOnSameStation.length>1&&!n.ignoreMultipleDevicesWarning&&(n.value=3,n.update())}))})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke),H(Mx))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Snapshot Handling Method"),v(),p(4,"div",2)(5,"select",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),p(6,"option",4),M(7,"Force Refresh Snapshots"),v(),p(8,"option",4),M(9,"Balanced"),v(),p(10,"option",4),M(11,"Cloud Snapshots"),v()()()(),I(12,W_e,7,2,"div",5),I(13,q_e,7,0,"div",5),I(14,K_e,2,0,"div",5),I(15,Y_e,2,0,"div",6),I(16,Z_e,20,4,"small",7),I(17,Q_e,20,4,"small",7),I(18,J_e,20,4,"small",7),v()),2&n&&(C(5),y("ngModel",i.value),B("disabled",i.camerasOnSameStation.length>1&&!i.ignoreMultipleDevicesWarning||null),C(1),y("ngValue",1),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngIf",i.camerasOnSameStation.length>1),C(1),y("ngIf",1===i.value),C(1),y("ngIf",2===i.chargingStatus&&1===i.value),C(1),y("ngIf",4===i.chargingStatus&&1===i.value),C(1),y("ngIf",1===i.value),C(1),y("ngIf",2===i.value),C(1),y("ngIf",3===i.value))},dependencies:[_t,V1,z4,S4,wn,g1,o1,Pt,S7],encapsulation:2})),t})(),eCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"immediateRingNotificationWithoutSnapshot")&&(n.value=i.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Immediate Notification on ring events"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(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."),R(9,"br"),p(10,"b"),M(11,"This option however delivers most likely an empty (black) snapshot on those events!"),v()()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),tCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"delayCameraSnapshot")&&(n.value=i.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Night-Vision Improvement for camera snapshots"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),p(6,"small")(7,"i"),M(8," Force night vision on dark snapshots to improve the image."),R(9,"br"),p(10,"b"),M(11,"The snapshot request will be delayed by half a second if you enable this setting."),v()()()()),2&n&&(C(5),y("ngModel",i.value))},dependencies:[X1,g1,o1],encapsulation:2})),t})(),nCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",0),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"refreshSnapshotIntervalMinutes")&&(n.value=i.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 e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[re],decls:25,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,"change"],[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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Periodic Snapshot Refresh"),v(),p(4,"div",2)(5,"input",3),O("change",function(){return i.switchSetting()}),v()()(),p(6,"div",4)(7,"span"),M(8,"Refresh Interval"),v(),p(9,"div",5)(10,"div",6)(11,"input",7),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v(),p(12,"div",8)(13,"span",9),M(14,"minutes"),v()()()()(),p(15,"small")(16,"i"),M(17," 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."),R(18,"br"),M(19," Best used with 'Cloud Snapshots' handling method."),R(20,"br"),M(21," Every setting below 5 minutes will be discarded due to performance reasons."),R(22,"br"),p(23,"b"),M(24,"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."),v()()()()),2&n&&(C(5),B("checked",i.value>0||null),C(6),y("ngModel",i.value),B("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Hn,V4,g1,o1],encapsulation:2})),t})();function rCe(e,t){1&e&&(p(0,"span")(1,"b"),M(2,"Advanced Video Config"),v()())}function iCe(e,t){1&e&&(p(0,"button",4)(1,"span")(2,"b"),M(3,"Advanced Video Config"),v()()())}function aCe(e,t){if(1&e&&(p(0,"div"),M(1),v()),2&e){const r=x(2);C(1),B2(" ",r.presetDescription," ")}}function sCe(e,t){if(1&e){const r=b1();M(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. "),R(1,"p"),M(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),R(3,"p"),p(4,"div",5)(5,"div",6)(6,"select",7),O("ngModelChange",function(i){return G(r),$(x().preset=i)})("change",function(){return G(r),$(x().loadPreset())}),p(7,"option",8),M(8,"No Preset (default)"),v(),p(9,"option",8),M(10,"Copy"),v(),p(11,"option",8),M(12,"Performance"),v(),p(13,"option",8),M(14,"Custom"),v()()()(),I(15,aCe,2,1,"div",9),R(16,"p"),p(17,"div",10)(18,"div",11)(19,"input",12),O("ngModelChange",function(i){return G(r),$(x().debug=i)})("change",function(){return G(r),$(x().update())}),v()(),p(20,"span",13),M(21,"ffmpeg debug"),v()(),p(22,"div",10)(23,"div",11)(24,"input",12),O("ngModelChange",function(i){return G(r),$(x().useSeparateProcesses=i)})("change",function(){return G(r),$(x().update())}),v()(),p(25,"span",13),M(26,"use separate processes for video and audio"),v()(),p(27,"div",10)(28,"div",11)(29,"input",12),O("ngModelChange",function(i){return G(r),$(x().readRate=i)})("change",function(){return G(r),$(x().update())}),v()(),p(30,"span",13),M(31,"readRate"),v()(),p(32,"div",10)(33,"div",11)(34,"input",14),O("change",function(){G(r);const i=x();return i.vcodec=void 0===i.vcodec?"":void 0,$(i.update())}),v()(),p(35,"span",13),M(36,"vcodec"),v(),p(37,"input",15),O("ngModelChange",function(i){return G(r),$(x().vcodec=i)})("change",function(){return G(r),$(x().update())}),v()(),p(38,"div",10)(39,"div",11)(40,"input",14),O("change",function(){G(r);const i=x();return i.acodec=void 0===i.acodec?"":void 0,$(i.update())}),v()(),p(41,"span",13),M(42,"acodec"),v(),p(43,"input",16),O("ngModelChange",function(i){return G(r),$(x().acodec=i)})("change",function(){return G(r),$(x().update())}),v()(),p(44,"div",10)(45,"div",11)(46,"input",14),O("change",function(){G(r);const i=x();return i.videoFilter=void 0===i.videoFilter?"":void 0,$(i.update())}),v()(),p(47,"span",13),M(48,"videoFilter"),v(),p(49,"input",17),O("ngModelChange",function(i){return G(r),$(x().videoFilter=i)})("change",function(){return G(r),$(x().update())}),v()(),p(50,"div",10)(51,"div",11)(52,"input",14),O("change",function(){G(r);const i=x();return i.encoderOptions=void 0===i.encoderOptions?"":void 0,$(i.update())}),v()(),p(53,"span",13),M(54,"encoderOptions"),v(),p(55,"input",18),O("ngModelChange",function(i){return G(r),$(x().encoderOptions=i)})("change",function(){return G(r),$(x().update())}),v()(),p(56,"div",10)(57,"div",11)(58,"input",14),O("change",function(){G(r);const i=x();return i.probeSize=void 0===i.probeSize?0:void 0,$(i.update())}),v()(),p(59,"span",13),M(60,"probeSize"),v(),p(61,"input",19),O("ngModelChange",function(i){return G(r),$(x().probeSize=i)})("change",function(){return G(r),$(x().update())}),v()(),p(62,"div",10)(63,"div",11)(64,"input",14),O("change",function(){G(r);const i=x();return i.analyzeDuration=void 0===i.analyzeDuration?0:void 0,$(i.update())}),v()(),p(65,"span",13),M(66,"analyzeDuration"),v(),p(67,"input",19),O("ngModelChange",function(i){return G(r),$(x().analyzeDuration=i)})("change",function(){return G(r),$(x().update())}),v()(),p(68,"div",10)(69,"div",11)(70,"input",14),O("change",function(){G(r);const i=x();return i.maxStreams=void 0===i.maxStreams?0:void 0,$(i.update())}),v()(),p(71,"span",13),M(72,"maxStreams"),v(),p(73,"input",19),O("ngModelChange",function(i){return G(r),$(x().maxStreams=i)})("change",function(){return G(r),$(x().update())}),v()(),p(74,"div",10)(75,"div",11)(76,"input",14),O("change",function(){G(r);const i=x();return i.maxWidth=void 0===i.maxWidth?0:void 0,$(i.update())}),v()(),p(77,"span",13),M(78,"maxWidth"),v(),p(79,"input",19),O("ngModelChange",function(i){return G(r),$(x().maxWidth=i)})("change",function(){return G(r),$(x().update())}),v()(),p(80,"div",10)(81,"div",11)(82,"input",14),O("change",function(){G(r);const i=x();return i.maxHeight=void 0===i.maxHeight?0:void 0,$(i.update())}),v()(),p(83,"span",13),M(84,"maxHeight"),v(),p(85,"input",19),O("ngModelChange",function(i){return G(r),$(x().maxHeight=i)})("change",function(){return G(r),$(x().update())}),v()(),p(86,"div",10)(87,"div",11)(88,"input",14),O("change",function(){G(r);const i=x();return i.maxFPS=void 0===i.maxFPS?0:void 0,$(i.update())}),v()(),p(89,"span",13),M(90,"fps"),v(),p(91,"input",19),O("ngModelChange",function(i){return G(r),$(x().maxFPS=i)})("change",function(){return G(r),$(x().update())}),v()(),p(92,"div",10)(93,"div",11)(94,"input",14),O("change",function(){G(r);const i=x();return i.maxBitrate=void 0===i.maxBitrate?0:void 0,$(i.update())}),v()(),p(95,"span",13),M(96,"bitrate"),v(),p(97,"input",19),O("ngModelChange",function(i){return G(r),$(x().maxBitrate=i)})("change",function(){return G(r),$(x().update())}),v()()}if(2&e){const r=x();C(6),y("ngModel",r.preset),C(1),y("ngValue",0),C(2),y("ngValue",1),C(2),y("ngValue",2),C(2),y("ngValue",3),C(2),y("ngIf",r.presetDescription),C(4),y("ngModel",r.debug),C(5),y("ngModel",r.useSeparateProcesses),C(5),y("ngModel",r.readRate),C(5),y("checked",void 0!==r.vcodec||null),C(3),y("ngModel",r.vcodec),B("disabled",void 0===r.vcodec||null),C(3),y("checked",void 0!==r.acodec||null),C(3),y("ngModel",r.acodec),B("disabled",void 0===r.acodec||null),C(3),y("checked",void 0!==r.videoFilter||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("ngModel",r.videoFilter),B("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.encoderOptions||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("ngModel",r.encoderOptions),B("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.probeSize||null),C(3),y("ngModel",r.probeSize),B("disabled",void 0===r.probeSize||null),C(3),y("checked",void 0!==r.analyzeDuration||null),C(3),y("ngModel",r.analyzeDuration),B("disabled",void 0===r.analyzeDuration||null),C(3),y("checked",void 0!==r.maxStreams||null),C(3),y("ngModel",r.maxStreams),B("disabled",void 0===r.maxStreams||null),C(3),y("checked",void 0!==r.maxWidth||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("ngModel",r.maxWidth),B("disabled",void 0===r.maxWidth||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.maxHeight||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("ngModel",r.maxHeight),B("disabled",void 0===r.maxHeight||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.maxFPS||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("ngModel",r.maxFPS),B("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),C(3),y("checked",void 0!==r.maxBitrate||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("ngModel",r.maxBitrate),B("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null)}}let cCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"debug",void 0),V(this,"readRate",void 0),V(this,"vcodec",void 0),V(this,"acodec",void 0),V(this,"videoFilter",void 0),V(this,"encoderOptions",void 0),V(this,"probeSize",void 0),V(this,"analyzeDuration",void 0),V(this,"maxStreams",void 0),V(this,"maxWidth",void 0),V(this,"maxHeight",void 0),V(this,"maxFPS",void 0),V(this,"maxBitrate",void 0),V(this,"useSeparateProcesses",void 0),V(this,"preset",0),V(this,"presetDescription",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"videoConfig")&&Object.entries(i.videoConfig).forEach(([a,s])=>{n[a]=s}),n.updatePreset()})()}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.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.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.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 n=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&&(n=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&&(n=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&&(n=2),n!==this.preset&&(this.preset=n)}update(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||""),a=i&&Object.prototype.hasOwnProperty.call(i,"videoConfig")?i.videoConfig:{},s={};Object.prototype.hasOwnProperty.call(a,"audio")&&(s.audio=a.audio),n.debug&&(s.debug=n.debug),n.readRate&&(s.readRate=n.readRate),n.vcodec&&""!==n.vcodec&&(s.vcodec=n.vcodec),n.acodec&&""!==n.acodec&&(s.acodec=n.acodec),n.videoFilter&&""!==n.videoFilter&&(s.videoFilter=n.videoFilter),n.encoderOptions&&""!==n.encoderOptions&&(s.encoderOptions=n.encoderOptions),void 0!==n.probeSize&&(s.probeSize=n.probeSize),void 0!==n.analyzeDuration&&(s.analyzeDuration=n.analyzeDuration),void 0!==n.maxStreams&&(s.maxStreams=n.maxStreams),void 0!==n.maxWidth&&(s.maxWidth=n.maxWidth),void 0!==n.maxHeight&&(s.maxHeight=n.maxHeight),void 0!==n.maxFPS&&(s.maxFPS=n.maxFPS),void 0!==n.maxBitrate&&(s.maxBitrate=n.maxBitrate),n.useSeparateProcesses&&(s.useSeparateProcesses=n.useSeparateProcesses),n.updateConfig({videoConfig:s},n.accessory),n.updatePreset()})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[re],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,"input-group","mb-1"],[1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModel","ngModelChange","change"],["id","inputGroup-sizing-default",1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"checked","change"],["type","text","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","libfdk_aac",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","-preset ultrafast -tune zerolatency",1,"form-control",3,"ngModel","ngModelChange","change"],["type","number","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"]],template:function(n,i){1&n&&(p(0,"ngb-accordion",null,0)(2,"ngb-panel"),I(3,rCe,3,0,"ng-template",1),I(4,iCe,4,0,"ng-template",2),I(5,sCe,98,54,"ng-template",3),v()())},dependencies:[V1,z4,S4,Hn,V4,X1,wn,g1,o1,F5,to,R5,k5,eo,P5],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\")}.form-check-input[_ngcontent-%COMP%]{margin-left:-.5rem}.input-group-text[_ngcontent-%COMP%]{padding:.375rem 1rem}"]})),t})();function oCe(e,t){1&e&&(p(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let lCe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"rtspIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"talkback")&&(n.value=i.talkback),i&&Object.prototype.hasOwnProperty.call(i,"rtsp")&&(n.rtspIsEnabled=i.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[re],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Talkback (Two way communication)"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),I(6,oCe,2,0,"div",4),p(7,"small")(8,"i"),M(9," Enables you to talk with someone infront of the camera while streaming. "),R(10,"p"),M(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."),R(12,"br"),v()()()),2&n&&(C(5),y("ngModel",i.value),C(1),y("ngIf",i.rtspIsEnabled&&i.value))},dependencies:[V1,X1,g1,o1],encapsulation:2})),t})();var mN={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]};function _be(e,t){1&e&&(p(0,"div"),M(1," You can enable this setting nevertheless in "),p(2,"a",9),M(3,"Plugin Settings"),v(),R(4,"p"),v())}function Cbe(e,t){if(1&e&&(p(0,"li"),M(1),v()),2&e){const r=t.$implicit;C(1),F2(r)}}function Mbe(e,t){if(1&e&&(p(0,"div",7),M(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."),R(2,"p"),I(3,_be,5,0,"div",6),M(4," Cameras on the same station: "),p(5,"ul"),I(6,Cbe,2,1,"li",8),v()()),2&e){const r=x();C(3),y("ngIf",!r.ignoreMultipleDevicesWarning),C(3),y("ngForOf",r.camerasOnSameStation)}}function ybe(e,t){1&e&&(p(0,"div",7),M(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. "),v())}function bbe(e,t){1&e&&(p(0,"div",10),M(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. "),v())}function Hbe(e,t){if(1&e){const r=b1();p(0,"div")(1,"button",11),O("click",function(){G(r);const i=x();return $(i.showAdvancedSettings=!i.showAdvancedSettings)}),M(2),v(),p(3,"div",12,13),O("ngbCollapseChange",function(i){return G(r),$(!(x().showAdvancedSettings=i))}),p(5,"div",14),M(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. "),v(),p(7,"div",15)(8,"div",16),M(9," Video Settings "),v(),p(10,"ul",17)(11,"li",18)(12,"label",19)(13,"span"),M(14,"Maximum Recording Duration "),R(15,"fa-icon",20),v()(),p(16,"input",21),O("ngModelChange",function(i){return G(r),$(x().recordingDuration=i)})("change",function(){return G(r),$(x().update())}),v()(),p(17,"li",18)(18,"label",22)(19,"div",23)(20,"input",24),O("change",function(){G(r);const i=x();return i.vcodec=void 0===i.vcodec?"":void 0,$(i.update())}),v(),p(21,"label",25),M(22," vcodec "),R(23,"fa-icon",26),v()()(),p(24,"input",27),O("ngModelChange",function(i){return G(r),$(x().vcodec=i)})("change",function(){return G(r),$(x().update())}),v()(),p(25,"li",18)(26,"label",28)(27,"div",23)(28,"input",29),O("change",function(){G(r);const i=x();return i.videoFilter=void 0===i.videoFilter?"":void 0,$(i.update())}),v(),p(29,"label",30),M(30," videoFilter "),R(31,"fa-icon",31),v()()(),p(32,"input",32),O("ngModelChange",function(i){return G(r),$(x().videoFilter=i)})("change",function(){return G(r),$(x().update())}),v()(),p(33,"li",18)(34,"label",33)(35,"div",23)(36,"input",34),O("change",function(){G(r);const i=x();return i.encoderOptions=void 0===i.encoderOptions?"":void 0,$(i.update())}),v(),p(37,"label",35),M(38," encoderOptions "),R(39,"fa-icon",36),v()()(),p(40,"input",37),O("ngModelChange",function(i){return G(r),$(x().encoderOptions=i)})("change",function(){return G(r),$(x().update())}),v()(),p(41,"li",18)(42,"div",23)(43,"input",38),O("ngModelChange",function(i){return G(r),$(x().crop=i)})("change",function(){return G(r),$(x().update())}),v(),p(44,"label",39),M(45," force crop image to requested/defined resolution "),R(46,"fa-icon",40),v()()(),p(47,"li",18)(48,"label",41)(49,"div",23)(50,"input",42),O("change",function(){G(r);const i=x();return i.maxFPS=void 0===i.maxFPS?0:void 0,$(i.update())}),v(),p(51,"label",43),M(52," fps "),R(53,"fa-icon",44),v()()(),p(54,"input",45),O("ngModelChange",function(i){return G(r),$(x().maxFPS=i)})("change",function(){return G(r),$(x().update())}),v()(),p(55,"li",18)(56,"label",46)(57,"div",23)(58,"input",47),O("change",function(){G(r);const i=x();return i.maxBitrate=void 0===i.maxBitrate?0:void 0,$(i.update())}),v(),p(59,"label",48),M(60," bitrate "),R(61,"fa-icon",49),v()()(),p(62,"input",50),O("ngModelChange",function(i){return G(r),$(x().maxBitrate=i)})("change",function(){return G(r),$(x().update())}),v()()()(),p(63,"div",15)(64,"div",16),M(65," Audio Settings "),v(),p(66,"ul",17)(67,"li",18)(68,"div",23)(69,"input",51),O("ngModelChange",function(i){return G(r),$(x().audio=i)})("change",function(){return G(r),$(x().update())}),v(),p(70,"label",52),M(71," Enable Audio "),R(72,"fa-icon",53),v()()()()()()()}if(2&e){const r=x();C(2),B2("",r.showAdvancedSettings?"Hide":"Show"," advanced HKSV settings"),C(1),y("ngbCollapse",!r.showAdvancedSettings),C(12),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.recordingDuration),C(4),y("checked",void 0!==r.vcodec||null),C(3),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.vcodec),B("disabled",void 0===r.vcodec||null),C(4),y("checked",void 0!==r.videoFilter||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.videoFilter),B("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),C(4),y("checked",void 0!==r.encoderOptions||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.encoderOptions),B("placeholder",void 0!==r.encoderOptions?"":r.vcodecOptionsPlaceholder)("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),C(3),y("ngModel",r.crop),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("icon",r.faQuestionCircle),C(4),y("checked",void 0!==r.maxFPS||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.maxFPS),B("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),C(4),y("checked",void 0!==r.maxBitrate||null),B("disabled","copy"===r.vcodec||null),C(1),B("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,R2),C(2),y("icon",r.faQuestionCircle),C(1),y("ngModel",r.maxBitrate),B("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null),C(7),y("ngModel",r.audio),C(3),y("icon",r.faQuestionCircle)}}let wbe=(()=>{var e;class t extends _1{constructor(n,i){super(n),V(this,"accessoryService",void 0),V(this,"faQuestionCircle",mN),V(this,"accessory",void 0),V(this,"value",true),V(this,"showAdvancedSettings",!1),V(this,"vcodec",void 0),V(this,"videoFilter",void 0),V(this,"encoderOptions",void 0),V(this,"maxFPS",void 0),V(this,"maxBitrate",void 0),V(this,"crop",!0),V(this,"audio",!0),V(this,"recordingDuration",90),V(this,"vcodecOptionsPlaceholder","-preset ultrafast -tune zerolatency"),V(this,"chargingStatus",Yf.PLUGGED),V(this,"camerasOnSameStation",[]),V(this,"ignoreMultipleDevicesWarning",on.ignoreMultipleDevicesWarning),this.accessoryService=i}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||"");if(i&&Object.prototype.hasOwnProperty.call(i,"hsv")&&(n.value=i.hsv),i&&Object.prototype.hasOwnProperty.call(i,"hsvRecordingDuration")&&(n.recordingDuration=i.hsvRecordingDuration),i&&Object.prototype.hasOwnProperty.call(i,"hsvConfig")&&Object.entries(i.hsvConfig).forEach(([a,s])=>{n[a]=s}),n.accessory){n.accessoryService.getChargingStatus(n.accessory.uniqueId).then(s=>n.chargingStatus=s),Object.prototype.hasOwnProperty.call(n.config,"ignoreMultipleDevicesWarning")&&(n.ignoreMultipleDevicesWarning=n.config.ignoreMultipleDevicesWarning);const a=i&&Object.prototype.hasOwnProperty.call(i,"ignoreDevices")?i.ignoreDevices:[];n.accessoryService.getCamerasOnSameStation(n.accessory.uniqueId,a).then(s=>{n.camerasOnSameStation=s,n.camerasOnSameStation.length>1&&!n.ignoreMultipleDevicesWarning&&(n.value=!1,n.update())})}n.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 n=this;return ve(function*(){const i=yield n.getCameraConfig(n.accessory?.uniqueId||""),s=(i&&Object.prototype.hasOwnProperty.call(i,"videoConfig"),{});n.audio||(s.audio=n.audio),n.crop||(s.crop=n.crop),n.vcodec&&""!==n.vcodec&&(s.vcodec=n.vcodec),n.videoFilter&&""!==n.videoFilter&&(s.videoFilter=n.videoFilter),void 0!==n.encoderOptions&&(s.encoderOptions=n.encoderOptions),void 0!==n.maxFPS&&(s.maxFPS=n.maxFPS),void 0!==n.maxBitrate&&(s.maxBitrate=n.maxBitrate),n.updateConfig({hsv:n.value,hsvRecordingDuration:n.recordingDuration,hsvConfig:s},n.accessory),n.placeholderUpdate()})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke),H(Mx))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-enable-hsv"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use HomeKit Secure Video"),v(),p(4,"div",2)(5,"input",3),O("ngModelChange",function(s){return i.value=s})("change",function(){return i.update()}),v()()(),I(6,Mbe,7,2,"div",4),I(7,ybe,2,0,"div",4),I(8,bbe,2,0,"div",5),p(9,"small")(10,"i"),M(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. "),R(12,"p"),p(13,"ul")(14,"li"),M(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."),v(),p(16,"li"),M(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."),v(),p(18,"li"),M(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."),v()()()(),I(20,Hbe,73,39,"div",6),v()),2&n&&(C(5),y("ngModel",i.value),B("disabled",i.camerasOnSameStation.length>1&&!i.ignoreMultipleDevicesWarning||null),C(1),y("ngIf",i.camerasOnSameStation.length>1),C(1),y("ngIf",2===i.chargingStatus&&i.value),C(1),y("ngIf",4===i.chargingStatus&&i.value),C(12),y("ngIf",i.value))},dependencies:[_t,V1,Hn,V4,X1,g1,M5,C5,o1,B5,IM,Pt,S7],encapsulation:2})),t})();function Vbe(e,t){1&e&&R(0,"hr")}function zbe(e,t){1&e&&R(0,"app-rtsp-streaming",6),2&e&&y("accessory",x(3).accessory)}function Sbe(e,t){1&e&&R(0,"hr")}function Dbe(e,t){1&e&&R(0,"app-talkback",6),2&e&&y("accessory",x(3).accessory)}function Lbe(e,t){if(1&e&&(p(0,"div"),R(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),I(5,Vbe,1,0,"hr",2),I(6,zbe,1,1,"app-rtsp-streaming",7),R(7,"hr")(8,"app-enable-audio",6),I(9,Sbe,1,0,"hr",2),I(10,Dbe,1,1,"app-talkback",7),v()),2&e){const r=x(2);C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory),C(1),y("ngIf",r.supportsRTSP),C(1),y("ngIf",r.supportsRTSP),C(2),y("accessory",r.accessory),C(1),y("ngIf",r.supportsTalkback),C(1),y("ngIf",r.supportsTalkback)}}function xbe(e,t){if(1&e&&(p(0,"div",3)(1,"div",4)(2,"b"),M(3,"Camera Settings"),v(),M(4," for "),p(5,"i"),M(6),v()(),p(7,"div",5),R(8,"app-ignore-accessory",6),I(9,Lbe,11,7,"div",2),v()()),2&e){const r=x();C(6),Q3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),y("accessory",r.accessory),C(1),y("ngIf",r.isCamera)}}function Nbe(e,t){if(1&e&&(p(0,"div",3)(1,"div",4)(2,"b"),M(3,"HomeKit Behaviour"),v(),M(4," for "),p(5,"i"),M(6),v()(),p(7,"div",5),R(8,"app-camera-buttons",6)(9,"hr")(10,"app-enable-hsv",6),v()()),2&e){const r=x(2);C(6),Q3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory)}}function Abe(e,t){1&e&&R(0,"hr")}function Ebe(e,t){1&e&&R(0,"app-immediate-notification-on-ring",6),2&e&&y("accessory",x(3).accessory)}function Tbe(e,t){if(1&e&&(p(0,"div"),R(1,"app-force-refreshsnap",6),v()),2&e){const r=x(3);C(1),y("accessory",r.accessory)}}function Ibe(e,t){if(1&e&&(p(0,"div",3)(1,"div",4)(2,"b"),M(3,"Snapshot Behaviour"),v(),M(4," for "),p(5,"i"),M(6),v()(),p(7,"div",5),R(8,"app-snapshot-handling-method",6),I(9,Abe,1,0,"hr",2),I(10,Ebe,1,1,"app-immediate-notification-on-ring",7),R(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),I(15,Tbe,2,1,"div",2),v()()),2&e){const r=x(2);C(6),Q3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),y("accessory",r.accessory),C(1),y("ngIf",r.isDoorbell),C(1),y("ngIf",r.isDoorbell),C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory),C(1),y("ngIf",!r.showEnhancedSnapshotBehaviour)}}function Obe(e,t){if(1&e&&(p(0,"div"),R(1,"p"),I(2,Nbe,11,4,"div",1),R(3,"p"),I(4,Ibe,16,8,"div",1),R(5,"p")(6,"app-advanced-videoconfig",6),v()),2&e){const r=x();C(2),y("ngIf",r.accessory),C(2),y("ngIf",r.accessory),C(2),y("accessory",r.accessory)}}let Rbe=(()=>{var e;class t extends _1{constructor(n,i){super(n),V(this,"route",void 0),V(this,"accessory",void 0),V(this,"showEnhancedSnapshotBehaviour",!0),V(this,"isDoorbell",!1),V(this,"isCamera",!1),V(this,"supportsRTSP",!1),V(this,"supportsTalkback",!1),this.route=i}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(n),this.accessory&&(this.isDoorbell=W4.isDoorbell(this.accessory.type),this.isCamera=W4.isCamera(this.accessory.type),this.supportsRTSP=W4.supportsRTSP(this.accessory.type),this.supportsTalkback=W4.supportsTalkback(this.accessory.type),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(n){this.showEnhancedSnapshotBehaviour=n}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke),H(An))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-camera-config-options"]],features:[re],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(n,i){1&n&&(p(0,"a",0),M(1,"Back to Devices List"),v(),I(2,xbe,10,4,"div",1),I(3,Obe,7,3,"div",2)),2&n&&(C(2),y("ngIf",i.accessory),C(1),y("ngIf",i.isCamera))},dependencies:[V1,Pt,Cx,O_e,k_e,P_e,B_e,U_e,j_e,X_e,eCe,tCe,nCe,cCe,lCe,wbe],encapsulation:2})),t})();var ru=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(ru||{});const kbe={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 Pbe=(()=>{var e;class t{constructor(n){V(this,"pluginService",void 0),this.pluginService=n}getCredentials(){var n=this;return ve(function*(){try{const i=yield n.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{return Promise.reject("no config")}})()}login(n){return ve(function*(){try{const i=yield window.homebridge.request("/login",n);return Promise.resolve(i)}catch(i){return Promise.reject(i)}})()}updateConfigCredentials(n){var i=this;return ve(function*(){let a={};try{a=yield i.pluginService.getConfig()}catch(s){console.log("Could not get credentials from config: "+s)}a.username=n.username,a.password=n.password,a.country=n.country,a.deviceName=n.deviceName,yield i.pluginService.updateConfig(a,!0)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(Y(Ke))}),V(t,"\u0275prov",K({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function Fbe(e,t){1&e&&(p3(),M(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),m3(),R(1,"p"),p(2,"i"),M(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."),v())}function Bbe(e,t){if(1&e){const r=b1();p(0,"p",10)(1,"ngb-alert",11),O("closed",function(){return G(r),$(x().resetLoginFailed())}),p3(),p(2,"svg",12),R(3,"use",13),v(),m3(),p(4,"strong"),M(5,"Login was not successful!"),v()()()}2&e&&(C(1),y("dismissible",!0))}function Ube(e,t){if(1&e&&(p(0,"div",32),p3(),p(1,"svg",33),R(2,"use",34),v(),m3(),p(3,"div"),M(4," Please make sure to restart plugin after you're done. "),p(5,"u",35),M(6," Tell me why... "),v()()()),2&e){x(2);const r=P2(6);C(5),y("autoClose","outside")("ngbPopover",r)}}function jbe(e,t){1&e&&(M(0,"You can leave this field blank."),R(1,"p"),M(2,"This will set the an option in the api calls to the eufy cloud, so that the servers think this plugin uses the official eufy app on the given device. If left blank the plugin will use a random device identifier. See "),p(3,"a",36),M(4,"this disussion"),v(),M(5," to learn more."))}function Gbe(e,t){if(1&e&&(p(0,"option"),M(1),v()),2&e){const r=t.$implicit,n=x(2);B("value",r.short)("selected",n.credentials.country===r.short||null),C(1),B2("",r.long," ")}}function $be(e,t){1&e&&R(0,"span",37)}function Wbe(e,t){1&e&&(p(0,"span"),M(1,"..."),v())}function qbe(e,t){if(1&e){const r=b1();p(0,"div"),I(1,Ube,7,2,"div",14),p(2,"div",15)(3,"input",16),O("ngModelChange",function(i){return G(r),$(x().credentials.username=i)}),v(),p(4,"label",17),M(5,"Email address"),v()(),R(6,"p"),p(7,"div",15)(8,"input",18),O("ngModelChange",function(i){return G(r),$(x().credentials.password=i)}),v(),p(9,"label",19),M(10,"Password"),v()(),R(11,"p"),p(12,"div",15),I(13,jbe,6,0,"ng-template",null,20,S2),p(15,"input",21),O("ngModelChange",function(i){return G(r),$(x().credentials.deviceName=i)}),v(),p(16,"label",22),M(17,"Device Name"),v()(),p(18,"div",23)(19,"div",24)(20,"select",25),O("ngModelChange",function(i){return G(r),$(x().credentials.country=i)}),I(21,Gbe,2,3,"option",26),v(),p(22,"small")(23,"i"),M(24," Make sure to use the same country that you use to login with the eufy app. "),v()()(),R(25,"span",27),p(26,"div",28)(27,"button",29),O("click",function(){return G(r),$(x().login())}),I(28,$be,1,0,"span",30),M(29," Login "),I(30,Wbe,2,0,"span",9),v(),p(31,"button",31),O("click",function(){return G(r),$(x().cancelLogin())}),M(32," Cancel "),v()()()()}if(2&e){const r=P2(14),n=x();C(1),y("ngIf",!n.firstLoginAssumed),C(2),y("ngModel",n.credentials.username),B("class",n.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),y("ngModel",n.credentials.password),B("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(7),y("ngModel",n.credentials.deviceName)("ngbTooltip",r)("closeDelay",2500),B("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),y("ngModel",n.credentials.country),B("disabled",!!n.loginInProgress||null),C(1),y("ngForOf",n.countries),C(6),B("disabled",!!n.loginInProgress||null),C(1),y("ngIf",n.loginInProgress),C(2),y("ngIf",n.loginInProgress),C(1),B("disabled",!!n.loginInProgress||null)}}function Kbe(e,t){1&e&&R(0,"span",37)}function Ybe(e,t){1&e&&(p(0,"span"),M(1,"..."),v())}function Zbe(e,t){if(1&e){const r=b1();p(0,"div")(1,"div",38),M(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),v(),p(3,"div",6)(4,"div",39)(5,"input",40),O("ngModelChange",function(i){return G(r),$(x().otp=i)}),v(),p(6,"label",41),M(7,"2FA Code"),v()()(),p(8,"div",42)(9,"div",43)(10,"button",44),O("click",function(){return G(r),$(x().login())}),I(11,Kbe,1,0,"span",30),M(12," Verify "),I(13,Ybe,2,0,"span",9),v()()(),p(14,"div",6)(15,"div",43)(16,"button",31),O("click",function(){return G(r),$(x().cancelLogin())}),M(17," Cancel "),v()()()()}if(2&e){const r=x();C(5),y("ngModel",r.otp),B("class",r.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!r.loginInProgress||null),C(5),B("disabled",!!r.loginInProgress||null),C(1),y("ngIf",r.loginInProgress),C(2),y("ngIf",r.loginInProgress),C(3),B("disabled",!!r.loginInProgress||null)}}function Qbe(e,t){1&e&&R(0,"span",37)}function Jbe(e,t){1&e&&(p(0,"span"),M(1,"..."),v())}function Xbe(e,t){if(1&e){const r=b1();p(0,"div")(1,"div",38),M(2,"Please enter the captcha below."),v(),p(3,"div",42),R(4,"img",45),v(),p(5,"div",6)(6,"div",39)(7,"input",40),O("ngModelChange",function(i){return G(r),$(x().captcha=i)}),v(),p(8,"label",41),M(9,"Captcha"),v()()(),p(10,"div",42)(11,"div",43)(12,"button",44),O("click",function(){return G(r),$(x().login())}),I(13,Qbe,1,0,"span",30),M(14," Verify "),I(15,Jbe,2,0,"span",9),v()()(),p(16,"div",6)(17,"div",43)(18,"button",31),O("click",function(){return G(r),$(x().cancelLogin())}),M(19," Cancel "),v()()()()}if(2&e){const r=x();C(4),y("src",r.captchaImageData,L3),C(3),y("ngModel",r.captcha),B("class",r.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!r.loginInProgress||null),C(5),B("disabled",!!r.loginInProgress||null),C(1),y("ngIf",r.loginInProgress),C(2),y("ngIf",r.loginInProgress),C(3),B("disabled",!!r.loginInProgress||null)}}var yt=function(e){return e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(yt||{});let eHe=(()=>{var e;class t{constructor(n,i){V(this,"loginService",void 0),V(this,"routerService",void 0),V(this,"countries",[]),V(this,"credentials",{username:"",password:"",country:"US",deviceName:""}),V(this,"otp",""),V(this,"captcha",""),V(this,"captchaImageData",""),V(this,"captchaId",""),V(this,"loginInProgress",!1),V(this,"loginFailed",!1),V(this,"loginStep",yt.LOGIN),V(this,"firstLoginAssumed",!1),V(this,"emailIsValid",!0),V(this,"passwordIsValid",!0),V(this,"otpIsValid",!0),V(this,"captchaIsValid",!0),this.loginService=n,this.routerService=i}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(n=>this.credentials=n).catch(n=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+n)})}fillCountryArray(){Object.entries(kbe).forEach(([n,i])=>{this.countries.push({short:n,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===yt.LOGIN&&this.loginWithCredentials(),this.loginStep===yt.TFA&&this.loginWithTFA(),this.loginStep===yt.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var n=this;return ve(function*(){let i;try{i=yield n.loginService.login(n.credentials)}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(i)})()}loginWithTFA(){var n=this;return ve(function*(){let i;try{i=yield n.loginService.login({verifyCode:n.otp})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(i)})()}loginWithCaptcha(){var n=this;return ve(function*(){let i;try{i=yield n.loginService.login({captcha:{captchaCode:n.captcha,captchaId:n.captchaId}})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(i)})()}evaluateLoginResult(n){if(this.loginInProgress=!1,n&&n.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(n&&n.failReason&&n.failReason===ru.TFA)return void(this.loginStep=yt.TFA);if(n&&n.failReason&&n.failReason===ru.CAPTCHA&&n.data&&n.data.id&&n.data.captcha)return this.loginStep=yt.CAPTCHA,this.captchaId=n.data.id,void(this.captchaImageData=n.data.captcha);this.loginStep=yt.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let n=!1;return this.loginStep===yt.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,n=!0),this.loginStep===yt.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,n=!0),this.loginStep===yt.TFA&&this.otp.length<6&&(this.otpIsValid=!1,n=!0),this.loginStep===yt.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,n=!0),n}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Pbe),H(_2))}),V(t,"\u0275cmp",se({type:e,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"],["deviceNameExplanation",""],["type","text","id","floatingDevice","placeholder","Device Name","placement","top",3,"ngModel","ngbTooltip","closeDelay","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"],["href","https://github.com/homebridge-eufy-security/plugin/issues/201","target","_blank","rel","noopener noreferrer",2,"color","white"],["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(n,i){1&n&&(p3(),p(0,"svg",0)(1,"symbol",1),R(2,"path",2),v(),p(3,"symbol",3),R(4,"path",4),v()(),I(5,Fbe,4,0,"ng-template",null,5,S2),m3(),p(7,"div",6),I(8,Bbe,6,1,"p",7),p(9,"div",8),I(10,qbe,33,19,"div",9),I(11,Zbe,18,7,"div",9),I(12,Xbe,20,8,"div",9),v()()),2&n&&(C(8),y("ngIf",i.loginFailed),C(2),y("ngIf",1===i.loginStep),C(1),y("ngIf",2===i.loginStep),C(1),y("ngIf",3===i.loginStep))},dependencies:[_t,V1,z4,S4,Hn,wn,g1,b5,o1,PC,oZ,IM],encapsulation:2})),t})(),tHe=(()=>{var e;class t extends _1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",[])}ngOnInit(){this.readValue()}readValue(){var n=this;return ve(function*(){const i=yield n.getStationConfig(n.accessory?.uniqueId||"");i&&Array.isArray(i.manualTriggerModes)&&(n.value=i.manualTriggerModes)})()}toggle(n){-1!==this.value.indexOf(n)?this.value=this.value.filter(i=>i!==n):this.value.push(n)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke))}),V(t,"\u0275cmp",se({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[re],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(n,i){1&n&&(p(0,"div",0)(1,"span",1),M(2,"Manual Alarm Trigger Modes"),v(),p(3,"div",2)(4,"span"),M(5,"HomeKit Home"),v(),p(6,"div",3)(7,"input",4),O("change",function(){return i.toggle(0),i.update()}),v()()(),p(8,"div",2)(9,"span"),M(10,"HomeKit Away"),v(),p(11,"div",3)(12,"input",4),O("change",function(){return i.toggle(1),i.update()}),v()()(),p(13,"div",2)(14,"span"),M(15,"HomeKit Night"),v(),p(16,"div",3)(17,"input",4),O("change",function(){return i.toggle(2),i.update()}),v()()(),p(18,"div",2)(19,"span"),M(20,"HomeKit Off/Disarmed"),v(),p(21,"div",3)(22,"input",4),O("change",function(){return i.toggle(3),i.update()}),v()()(),p(23,"small")(24,"i"),M(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."),R(26,"p"),M(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),R(28,"p"),M(29," Please be aware that this setting can only be set on a per station basis and not per automation."),R(30,"br"),M(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),R(32,"p"),M(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."),R(34,"br"),M(35," The native alarm delay setting is currently not supported. "),v()()()),2&n&&(C(7),B("checked",-1!==i.value.indexOf(0)||null),C(5),B("checked",-1!==i.value.indexOf(1)||null),C(5),B("checked",-1!==i.value.indexOf(2)||null),C(5),B("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2})),t})();function nHe(e,t){if(1&e&&(p(0,"div",2)(1,"div",3)(2,"b"),M(3,"Station Settings"),v(),M(4," for "),p(5,"i"),M(6),v()(),p(7,"div",4),R(8,"app-ignore-accessory",5)(9,"hr")(10,"app-guard-modes-mapping",5)(11,"hr")(12,"app-manual-alarm-modes",5),v()()),2&e){const r=x();C(6),Q3("",r.accessory.displayName," (",r.accessory.uniqueId,")"),C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory),C(2),y("accessory",r.accessory)}}function iHe(e,t){if(1&e){const r=b1();p(0,"p",7)(1,"ngb-alert",8),O("closed",function(){return G(r),$(x().failed=!1)}),p3(),p(2,"svg",9),R(3,"use",10),v(),m3(),p(4,"strong"),M(5,"Reset was not successful!"),v()()()}2&e&&(C(1),y("dismissible",!0))}const aHe=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:o_e},{path:"advancedConfig",component:E_e},{path:"cameraConfig/:uniqueId",component:Rbe},{path:"stationConfig/:uniqueId",component:(()=>{var e;class t{constructor(n,i){V(this,"pluginService",void 0),V(this,"route",void 0),V(this,"accessory",void 0),this.pluginService=n,this.route=i}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(n)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(Ke),H(An))}),V(t,"\u0275cmp",se({type:e,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(n,i){1&n&&(p(0,"a",0),M(1,"Back to Devices List"),v(),I(2,nHe,13,5,"div",1)),2&n&&(C(2),y("ngIf",i.accessory))},dependencies:[V1,Pt,Cx,_x,tHe],encapsulation:2})),t})()},{path:"login",component:eHe},{path:"reset",component:(()=>{var e;class t{constructor(n,i){V(this,"routerService",void 0),V(this,"pluginService",void 0),V(this,"disabled",!1),V(this,"failed",!1),this.routerService=n,this.pluginService=i}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var n=this;return ve(function*(){n.disabled=!0;try{const i=yield window.homebridge.request("/reset");n.failed=1!==i.result}catch{n.failed=!0}n.disabled=!1,n.failed||(yield n.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(H(_2),H(Ke))}),V(t,"\u0275cmp",se({type:e,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(n,i){1&n&&(p(0,"div",0),I(1,iHe,6,1,"p",1),p(2,"div",2)(3,"h3",3),M(4,"Are you sure that you want to erase everything?"),v(),p(5,"div",4)(6,"button",5),O("click",function(){return i.cancel()}),M(7,"No"),v(),p(8,"button",6),O("click",function(){return i.resetEverything()}),M(9,"Do it!"),v()()()()),2&n&&(C(1),y("ngIf",i.failed),C(5),B("disabled",!!i.disabled||null),C(2),B("disabled",!!i.disabled||null))},dependencies:[V1,PC],encapsulation:2})),t})()},{path:"**",redirectTo:"/accessories"}];let sHe=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e})),V(t,"\u0275inj",Ie({imports:[Bb.forRoot(aHe,{scrollPositionRestoration:"enabled"}),Bb]})),t})(),cHe=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e,bootstrap:[Eee]})),V(t,"\u0275inj",Ie({providers:[{provide:qn,useClass:pv}],imports:[SG,P$,CZ,sHe,uJ]})),t})();VG().bootstrapModule(cHe).catch(e=>console.error(e))},919:(J4,q2)=>{"use strict";q2.byteLength=function a1(le){var be=Ee(le),C1=be[1];return 3*(be[0]+C1)/4-C1},q2.toByteArray=function k1(le){var be,p2,Ye=Ee(le),C1=Ye[0],D1=Ye[1],Xe=new d2(function E(le,be,Ye){return 3*(be+Ye)/4-Ye}(0,C1,D1)),h2=0,ct=D1>0?C1-4:C1;for(p2=0;p2<ct;p2+=4)be=Q[le.charCodeAt(p2)]<<18|Q[le.charCodeAt(p2+1)]<<12|Q[le.charCodeAt(p2+2)]<<6|Q[le.charCodeAt(p2+3)],Xe[h2++]=be>>16&255,Xe[h2++]=be>>8&255,Xe[h2++]=255&be;return 2===D1&&(be=Q[le.charCodeAt(p2)]<<2|Q[le.charCodeAt(p2+1)]>>4,Xe[h2++]=255&be),1===D1&&(be=Q[le.charCodeAt(p2)]<<10|Q[le.charCodeAt(p2+1)]<<4|Q[le.charCodeAt(p2+2)]>>2,Xe[h2++]=be>>8&255,Xe[h2++]=255&be),Xe},q2.fromByteArray=function Z1(le){for(var be,Ye=le.length,C1=Ye%3,D1=[],h2=0,ct=Ye-C1;h2<ct;h2+=16383)D1.push(P1(le,h2,h2+16383>ct?ct:h2+16383));return 1===C1?D1.push(u1[(be=le[Ye-1])>>2]+u1[be<<4&63]+"=="):2===C1&&D1.push(u1[(be=(le[Ye-2]<<8)+le[Ye-1])>>10]+u1[be>>4&63]+u1[be<<2&63]+"="),D1.join("")};for(var u1=[],Q=[],d2=typeof Uint8Array<"u"?Uint8Array:Array,S1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=0;Je<64;++Je)u1[Je]=S1[Je],Q[S1.charCodeAt(Je)]=Je;function Ee(le){var be=le.length;if(be%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ye=le.indexOf("=");return-1===Ye&&(Ye=be),[Ye,Ye===be?0:4-Ye%4]}function s1(le){return u1[le>>18&63]+u1[le>>12&63]+u1[le>>6&63]+u1[63&le]}function P1(le,be,Ye){for(var D1=[],Xe=be;Xe<Ye;Xe+=3)D1.push(s1((le[Xe]<<16&16711680)+(le[Xe+1]<<8&65280)+(255&le[Xe+2])));return D1.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63},7:(J4,q2,u1)=>{"use strict";const d2=u1(919),S1=u1(601),Je="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;q2.lW=E,q2.h2=50;const Se=2147483647;function a1(_){if(_>Se)throw new RangeError('The value "'+_+'" is invalid for option "size"');const u=new Uint8Array(_);return Object.setPrototypeOf(u,E.prototype),u}function E(_,u,h){if("number"==typeof _){if("string"==typeof u)throw new TypeError('The "string" argument must be of type string. Received type number');return Z1(_)}return k1(_,u,h)}function k1(_,u,h){if("string"==typeof _)return function le(_,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!E.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const h=0|ct(_,u);let b=a1(h);const S=b.write(_,u);return S!==h&&(b=b.slice(0,S)),b}(_,u);if(ArrayBuffer.isView(_))return function Ye(_){if(ot(_,Uint8Array)){const u=new Uint8Array(_);return C1(u.buffer,u.byteOffset,u.byteLength)}return be(_)}(_);if(null==_)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(ot(_,ArrayBuffer)||_&&ot(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ot(_,SharedArrayBuffer)||_&&ot(_.buffer,SharedArrayBuffer)))return C1(_,u,h);if("number"==typeof _)throw new TypeError('The "value" argument must not be of type number. Received type number');const b=_.valueOf&&_.valueOf();if(null!=b&&b!==_)return E.from(b,u,h);const S=function D1(_){if(E.isBuffer(_)){const u=0|Xe(_.length),h=a1(u);return 0===h.length||_.copy(h,0,0,u),h}return void 0!==_.length?"number"!=typeof _.length||c4(_.length)?a1(0):be(_):"Buffer"===_.type&&Array.isArray(_.data)?be(_.data):void 0}(_);if(S)return S;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof _[Symbol.toPrimitive])return E.from(_[Symbol.toPrimitive]("string"),u,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}function s1(_){if("number"!=typeof _)throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function Z1(_){return s1(_),a1(_<0?0:0|Xe(_))}function be(_){const u=_.length<0?0:0|Xe(_.length),h=a1(u);for(let b=0;b<u;b+=1)h[b]=255&_[b];return h}function C1(_,u,h){if(u<0||_.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<u+(h||0))throw new RangeError('"length" is outside of buffer bounds');let b;return b=void 0===u&&void 0===h?new Uint8Array(_):void 0===h?new Uint8Array(_,u):new Uint8Array(_,u,h),Object.setPrototypeOf(b,E.prototype),b}function Xe(_){if(_>=Se)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Se.toString(16)+" bytes");return 0|_}function ct(_,u){if(E.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||ot(_,ArrayBuffer))return _.byteLength;if("string"!=typeof _)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);const h=_.length,b=arguments.length>2&&!0===arguments[2];if(!b&&0===h)return 0;let S=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Wa(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return Ka(_).length;default:if(S)return b?-1:Wa(_).length;u=(""+u).toLowerCase(),S=!0}}function p2(_,u,h){let b=!1;if((void 0===u||u<0)&&(u=0),u>this.length||((void 0===h||h>this.length)&&(h=this.length),h<=0)||(h>>>=0)<=(u>>>=0))return"";for(_||(_="utf8");;)switch(_){case"hex":return w6(this,u,h);case"utf8":case"utf-8":return Ua(this,u,h);case"ascii":return ja(this,u,h);case"latin1":case"binary":return H6(this,u,h);case"base64":return Ht(this,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V6(this,u,h);default:if(b)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),b=!0}}function bt(_,u,h){const b=_[u];_[u]=_[h],_[h]=b}function Ba(_,u,h,b,S){if(0===_.length)return-1;if("string"==typeof h?(b=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),c4(h=+h)&&(h=S?0:_.length-1),h<0&&(h=_.length+h),h>=_.length){if(S)return-1;h=_.length-1}else if(h<0){if(!S)return-1;h=0}if("string"==typeof u&&(u=E.from(u,b)),E.isBuffer(u))return 0===u.length?-1:Tn(_,u,h,b,S);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?S?Uint8Array.prototype.indexOf.call(_,u,h):Uint8Array.prototype.lastIndexOf.call(_,u,h):Tn(_,[u],h,b,S);throw new TypeError("val must be string, number or Buffer")}function Tn(_,u,h,b,S){let e1,A=1,k=_.length,Me=u.length;if(void 0!==b&&("ucs2"===(b=String(b).toLowerCase())||"ucs-2"===b||"utf16le"===b||"utf-16le"===b)){if(_.length<2||u.length<2)return-1;A=2,k/=2,Me/=2,h/=2}function h1(p1,Be){return 1===A?p1[Be]:p1.readUInt16BE(Be*A)}if(S){let p1=-1;for(e1=h;e1<k;e1++)if(h1(_,e1)===h1(u,-1===p1?0:e1-p1)){if(-1===p1&&(p1=e1),e1-p1+1===Me)return p1*A}else-1!==p1&&(e1-=e1-p1),p1=-1}else for(h+Me>k&&(h=k-Me),e1=h;e1>=0;e1--){let p1=!0;for(let Be=0;Be<Me;Be++)if(h1(_,e1+Be)!==h1(u,Be)){p1=!1;break}if(p1)return e1}return-1}function X4(_,u,h,b){h=Number(h)||0;const S=_.length-h;b?(b=Number(b))>S&&(b=S):b=S;const A=u.length;let k;for(b>A/2&&(b=A/2),k=0;k<b;++k){const Me=parseInt(u.substr(2*k,2),16);if(c4(Me))return k;_[h+k]=Me}return k}function y6(_,u,h,b){return On(Wa(u,_.length-h),_,h,b)}function Dr(_,u,h,b){return On(function S6(_){const u=[];for(let h=0;h<_.length;++h)u.push(255&_.charCodeAt(h));return u}(u),_,h,b)}function b6(_,u,h,b){return On(Ka(u),_,h,b)}function Lr(_,u,h,b){return On(function qa(_,u){let h,b,S;const A=[];for(let k=0;k<_.length&&!((u-=2)<0);++k)h=_.charCodeAt(k),b=h>>8,S=h%256,A.push(S),A.push(b);return A}(u,_.length-h),_,h,b)}function Ht(_,u,h){return d2.fromByteArray(0===u&&h===_.length?_:_.slice(u,h))}function Ua(_,u,h){h=Math.min(_.length,h);const b=[];let S=u;for(;S<h;){const A=_[S];let k=null,Me=A>239?4:A>223?3:A>191?2:1;if(S+Me<=h){let h1,e1,p1,Be;switch(Me){case 1:A<128&&(k=A);break;case 2:h1=_[S+1],128==(192&h1)&&(Be=(31&A)<<6|63&h1,Be>127&&(k=Be));break;case 3:h1=_[S+1],e1=_[S+2],128==(192&h1)&&128==(192&e1)&&(Be=(15&A)<<12|(63&h1)<<6|63&e1,Be>2047&&(Be<55296||Be>57343)&&(k=Be));break;case 4:h1=_[S+1],e1=_[S+2],p1=_[S+3],128==(192&h1)&&128==(192&e1)&&128==(192&p1)&&(Be=(15&A)<<18|(63&h1)<<12|(63&e1)<<6|63&p1,Be>65535&&Be<1114112&&(k=Be))}}null===k?(k=65533,Me=1):k>65535&&(k-=65536,b.push(k>>>10&1023|55296),k=56320|1023&k),b.push(k),S+=Me}return function We(_){const u=_.length;if(u<=xr)return String.fromCharCode.apply(String,_);let h="",b=0;for(;b<u;)h+=String.fromCharCode.apply(String,_.slice(b,b+=xr));return h}(b)}!(E.TYPED_ARRAY_SUPPORT=function Ee(){try{const _=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(_,u),42===_.foo()}catch{return!1}}())&&typeof console<"u"&&"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(E.prototype,"parent",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.buffer}}),Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.byteOffset}}),E.poolSize=8192,E.from=function(_,u,h){return k1(_,u,h)},Object.setPrototypeOf(E.prototype,Uint8Array.prototype),Object.setPrototypeOf(E,Uint8Array),E.alloc=function(_,u,h){return function P1(_,u,h){return s1(_),_<=0?a1(_):void 0!==u?"string"==typeof h?a1(_).fill(u,h):a1(_).fill(u):a1(_)}(_,u,h)},E.allocUnsafe=function(_){return Z1(_)},E.allocUnsafeSlow=function(_){return Z1(_)},E.isBuffer=function(u){return null!=u&&!0===u._isBuffer&&u!==E.prototype},E.compare=function(u,h){if(ot(u,Uint8Array)&&(u=E.from(u,u.offset,u.byteLength)),ot(h,Uint8Array)&&(h=E.from(h,h.offset,h.byteLength)),!E.isBuffer(u)||!E.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===h)return 0;let b=u.length,S=h.length;for(let A=0,k=Math.min(b,S);A<k;++A)if(u[A]!==h[A]){b=u[A],S=h[A];break}return b<S?-1:S<b?1:0},E.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}},E.concat=function(u,h){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(0===u.length)return E.alloc(0);let b;if(void 0===h)for(h=0,b=0;b<u.length;++b)h+=u[b].length;const S=E.allocUnsafe(h);let A=0;for(b=0;b<u.length;++b){let k=u[b];if(ot(k,Uint8Array))A+k.length>S.length?(E.isBuffer(k)||(k=E.from(k)),k.copy(S,A)):Uint8Array.prototype.set.call(S,k,A);else{if(!E.isBuffer(k))throw new TypeError('"list" argument must be an Array of Buffers');k.copy(S,A)}A+=k.length}return S},E.byteLength=ct,E.prototype._isBuffer=!0,E.prototype.swap16=function(){const u=this.length;if(u%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;h<u;h+=2)bt(this,h,h+1);return this},E.prototype.swap32=function(){const u=this.length;if(u%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let h=0;h<u;h+=4)bt(this,h,h+3),bt(this,h+1,h+2);return this},E.prototype.swap64=function(){const u=this.length;if(u%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let h=0;h<u;h+=8)bt(this,h,h+7),bt(this,h+1,h+6),bt(this,h+2,h+5),bt(this,h+3,h+4);return this},E.prototype.toLocaleString=E.prototype.toString=function(){const u=this.length;return 0===u?"":0===arguments.length?Ua(this,0,u):p2.apply(this,arguments)},E.prototype.equals=function(u){if(!E.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u||0===E.compare(this,u)},E.prototype.inspect=function(){let u="";const h=q2.h2;return u=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(u+=" ... "),"<Buffer "+u+">"},Je&&(E.prototype[Je]=E.prototype.inspect),E.prototype.compare=function(u,h,b,S,A){if(ot(u,Uint8Array)&&(u=E.from(u,u.offset,u.byteLength)),!E.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(void 0===h&&(h=0),void 0===b&&(b=u?u.length:0),void 0===S&&(S=0),void 0===A&&(A=this.length),h<0||b>u.length||S<0||A>this.length)throw new RangeError("out of range index");if(S>=A&&h>=b)return 0;if(S>=A)return-1;if(h>=b)return 1;if(this===u)return 0;let k=(A>>>=0)-(S>>>=0),Me=(b>>>=0)-(h>>>=0);const h1=Math.min(k,Me),e1=this.slice(S,A),p1=u.slice(h,b);for(let Be=0;Be<h1;++Be)if(e1[Be]!==p1[Be]){k=e1[Be],Me=p1[Be];break}return k<Me?-1:Me<k?1:0},E.prototype.includes=function(u,h,b){return-1!==this.indexOf(u,h,b)},E.prototype.indexOf=function(u,h,b){return Ba(this,u,h,b,!0)},E.prototype.lastIndexOf=function(u,h,b){return Ba(this,u,h,b,!1)},E.prototype.write=function(u,h,b,S){if(void 0===h)S="utf8",b=this.length,h=0;else if(void 0===b&&"string"==typeof h)S=h,b=this.length,h=0;else{if(!isFinite(h))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");h>>>=0,isFinite(b)?(b>>>=0,void 0===S&&(S="utf8")):(S=b,b=void 0)}const A=this.length-h;if((void 0===b||b>A)&&(b=A),u.length>0&&(b<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");S||(S="utf8");let k=!1;for(;;)switch(S){case"hex":return X4(this,u,h,b);case"utf8":case"utf-8":return y6(this,u,h,b);case"ascii":case"latin1":case"binary":return Dr(this,u,h,b);case"base64":return b6(this,u,h,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lr(this,u,h,b);default:if(k)throw new TypeError("Unknown encoding: "+S);S=(""+S).toLowerCase(),k=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const xr=4096;function ja(_,u,h){let b="";h=Math.min(_.length,h);for(let S=u;S<h;++S)b+=String.fromCharCode(127&_[S]);return b}function H6(_,u,h){let b="";h=Math.min(_.length,h);for(let S=u;S<h;++S)b+=String.fromCharCode(_[S]);return b}function w6(_,u,h){const b=_.length;(!u||u<0)&&(u=0),(!h||h<0||h>b)&&(h=b);let S="";for(let A=u;A<h;++A)S+=Ya[_[A]];return S}function V6(_,u,h){const b=_.slice(u,h);let S="";for(let A=0;A<b.length-1;A+=2)S+=String.fromCharCode(b[A]+256*b[A+1]);return S}function ue(_,u,h){if(_%1!=0||_<0)throw new RangeError("offset is not uint");if(_+u>h)throw new RangeError("Trying to access beyond buffer length")}function r2(_,u,h,b,S,A){if(!E.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>S||u<A)throw new RangeError('"value" argument is out of bounds');if(h+b>_.length)throw new RangeError("Index out of range")}function Nr(_,u,h,b,S){$a(u,b,S,_,h,7);let A=Number(u&BigInt(4294967295));_[h++]=A,A>>=8,_[h++]=A,A>>=8,_[h++]=A,A>>=8,_[h++]=A;let k=Number(u>>BigInt(32)&BigInt(4294967295));return _[h++]=k,k>>=8,_[h++]=k,k>>=8,_[h++]=k,k>>=8,_[h++]=k,h}function d1(_,u,h,b,S){$a(u,b,S,_,h,7);let A=Number(u&BigInt(4294967295));_[h+7]=A,A>>=8,_[h+6]=A,A>>=8,_[h+5]=A,A>>=8,_[h+4]=A;let k=Number(u>>BigInt(32)&BigInt(4294967295));return _[h+3]=k,k>>=8,_[h+2]=k,k>>=8,_[h+1]=k,k>>=8,_[h]=k,h+8}function qe(_,u,h,b,S,A){if(h+b>_.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function Ga(_,u,h,b,S){return u=+u,h>>>=0,S||qe(_,0,h,4),S1.write(_,u,h,b,23,4),h+4}function we(_,u,h,b,S){return u=+u,h>>>=0,S||qe(_,0,h,8),S1.write(_,u,h,b,52,8),h+8}E.prototype.slice=function(u,h){const b=this.length;(u=~~u)<0?(u+=b)<0&&(u=0):u>b&&(u=b),(h=void 0===h?b:~~h)<0?(h+=b)<0&&(h=0):h>b&&(h=b),h<u&&(h=u);const S=this.subarray(u,h);return Object.setPrototypeOf(S,E.prototype),S},E.prototype.readUintLE=E.prototype.readUIntLE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let S=this[u],A=1,k=0;for(;++k<h&&(A*=256);)S+=this[u+k]*A;return S},E.prototype.readUintBE=E.prototype.readUIntBE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let S=this[u+--h],A=1;for(;h>0&&(A*=256);)S+=this[u+--h]*A;return S},E.prototype.readUint8=E.prototype.readUInt8=function(u,h){return u>>>=0,h||ue(u,1,this.length),this[u]},E.prototype.readUint16LE=E.prototype.readUInt16LE=function(u,h){return u>>>=0,h||ue(u,2,this.length),this[u]|this[u+1]<<8},E.prototype.readUint16BE=E.prototype.readUInt16BE=function(u,h){return u>>>=0,h||ue(u,2,this.length),this[u]<<8|this[u+1]},E.prototype.readUint32LE=E.prototype.readUInt32LE=function(u,h){return u>>>=0,h||ue(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},E.prototype.readUint32BE=E.prototype.readUInt32BE=function(u,h){return u>>>=0,h||ue(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},E.prototype.readBigUInt64LE=jt(function(u){In(u>>>=0,"offset");const h=this[u],b=this[u+7];(void 0===h||void 0===b)&&t3(u,this.length-8);const S=h+256*this[++u]+65536*this[++u]+this[++u]*2**24,A=this[++u]+256*this[++u]+65536*this[++u]+b*2**24;return BigInt(S)+(BigInt(A)<<BigInt(32))}),E.prototype.readBigUInt64BE=jt(function(u){In(u>>>=0,"offset");const h=this[u],b=this[u+7];(void 0===h||void 0===b)&&t3(u,this.length-8);const S=h*2**24+65536*this[++u]+256*this[++u]+this[++u],A=this[++u]*2**24+65536*this[++u]+256*this[++u]+b;return(BigInt(S)<<BigInt(32))+BigInt(A)}),E.prototype.readIntLE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let S=this[u],A=1,k=0;for(;++k<h&&(A*=256);)S+=this[u+k]*A;return A*=128,S>=A&&(S-=Math.pow(2,8*h)),S},E.prototype.readIntBE=function(u,h,b){u>>>=0,h>>>=0,b||ue(u,h,this.length);let S=h,A=1,k=this[u+--S];for(;S>0&&(A*=256);)k+=this[u+--S]*A;return A*=128,k>=A&&(k-=Math.pow(2,8*h)),k},E.prototype.readInt8=function(u,h){return u>>>=0,h||ue(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},E.prototype.readInt16LE=function(u,h){u>>>=0,h||ue(u,2,this.length);const b=this[u]|this[u+1]<<8;return 32768&b?4294901760|b:b},E.prototype.readInt16BE=function(u,h){u>>>=0,h||ue(u,2,this.length);const b=this[u+1]|this[u]<<8;return 32768&b?4294901760|b:b},E.prototype.readInt32LE=function(u,h){return u>>>=0,h||ue(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},E.prototype.readInt32BE=function(u,h){return u>>>=0,h||ue(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},E.prototype.readBigInt64LE=jt(function(u){In(u>>>=0,"offset");const h=this[u],b=this[u+7];return(void 0===h||void 0===b)&&t3(u,this.length-8),(BigInt(this[u+4]+256*this[u+5]+65536*this[u+6]+(b<<24))<<BigInt(32))+BigInt(h+256*this[++u]+65536*this[++u]+this[++u]*2**24)}),E.prototype.readBigInt64BE=jt(function(u){In(u>>>=0,"offset");const h=this[u],b=this[u+7];(void 0===h||void 0===b)&&t3(u,this.length-8);const S=(h<<24)+65536*this[++u]+256*this[++u]+this[++u];return(BigInt(S)<<BigInt(32))+BigInt(this[++u]*2**24+65536*this[++u]+256*this[++u]+b)}),E.prototype.readFloatLE=function(u,h){return u>>>=0,h||ue(u,4,this.length),S1.read(this,u,!0,23,4)},E.prototype.readFloatBE=function(u,h){return u>>>=0,h||ue(u,4,this.length),S1.read(this,u,!1,23,4)},E.prototype.readDoubleLE=function(u,h){return u>>>=0,h||ue(u,8,this.length),S1.read(this,u,!0,52,8)},E.prototype.readDoubleBE=function(u,h){return u>>>=0,h||ue(u,8,this.length),S1.read(this,u,!1,52,8)},E.prototype.writeUintLE=E.prototype.writeUIntLE=function(u,h,b,S){u=+u,h>>>=0,b>>>=0,S||r2(this,u,h,b,Math.pow(2,8*b)-1,0);let A=1,k=0;for(this[h]=255&u;++k<b&&(A*=256);)this[h+k]=u/A&255;return h+b},E.prototype.writeUintBE=E.prototype.writeUIntBE=function(u,h,b,S){u=+u,h>>>=0,b>>>=0,S||r2(this,u,h,b,Math.pow(2,8*b)-1,0);let A=b-1,k=1;for(this[h+A]=255&u;--A>=0&&(k*=256);)this[h+A]=u/k&255;return h+b},E.prototype.writeUint8=E.prototype.writeUInt8=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,1,255,0),this[h]=255&u,h+1},E.prototype.writeUint16LE=E.prototype.writeUInt16LE=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,2,65535,0),this[h]=255&u,this[h+1]=u>>>8,h+2},E.prototype.writeUint16BE=E.prototype.writeUInt16BE=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,2,65535,0),this[h]=u>>>8,this[h+1]=255&u,h+2},E.prototype.writeUint32LE=E.prototype.writeUInt32LE=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,4,4294967295,0),this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=255&u,h+4},E.prototype.writeUint32BE=E.prototype.writeUInt32BE=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,4,4294967295,0),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=255&u,h+4},E.prototype.writeBigUInt64LE=jt(function(u,h=0){return Nr(this,u,h,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeBigUInt64BE=jt(function(u,h=0){return d1(this,u,h,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeIntLE=function(u,h,b,S){if(u=+u,h>>>=0,!S){const h1=Math.pow(2,8*b-1);r2(this,u,h,b,h1-1,-h1)}let A=0,k=1,Me=0;for(this[h]=255&u;++A<b&&(k*=256);)u<0&&0===Me&&0!==this[h+A-1]&&(Me=1),this[h+A]=(u/k>>0)-Me&255;return h+b},E.prototype.writeIntBE=function(u,h,b,S){if(u=+u,h>>>=0,!S){const h1=Math.pow(2,8*b-1);r2(this,u,h,b,h1-1,-h1)}let A=b-1,k=1,Me=0;for(this[h+A]=255&u;--A>=0&&(k*=256);)u<0&&0===Me&&0!==this[h+A+1]&&(Me=1),this[h+A]=(u/k>>0)-Me&255;return h+b},E.prototype.writeInt8=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,1,127,-128),u<0&&(u=255+u+1),this[h]=255&u,h+1},E.prototype.writeInt16LE=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,2,32767,-32768),this[h]=255&u,this[h+1]=u>>>8,h+2},E.prototype.writeInt16BE=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,2,32767,-32768),this[h]=u>>>8,this[h+1]=255&u,h+2},E.prototype.writeInt32LE=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,4,2147483647,-2147483648),this[h]=255&u,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24,h+4},E.prototype.writeInt32BE=function(u,h,b){return u=+u,h>>>=0,b||r2(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=255&u,h+4},E.prototype.writeBigInt64LE=jt(function(u,h=0){return Nr(this,u,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),E.prototype.writeBigInt64BE=jt(function(u,h=0){return d1(this,u,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),E.prototype.writeFloatLE=function(u,h,b){return Ga(this,u,h,!0,b)},E.prototype.writeFloatBE=function(u,h,b){return Ga(this,u,h,!1,b)},E.prototype.writeDoubleLE=function(u,h,b){return we(this,u,h,!0,b)},E.prototype.writeDoubleBE=function(u,h,b){return we(this,u,h,!1,b)},E.prototype.copy=function(u,h,b,S){if(!E.isBuffer(u))throw new TypeError("argument should be a Buffer");if(b||(b=0),!S&&0!==S&&(S=this.length),h>=u.length&&(h=u.length),h||(h=0),S>0&&S<b&&(S=b),S===b||0===u.length||0===this.length)return 0;if(h<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-h<S-b&&(S=u.length-h+b);const A=S-b;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,b,S):Uint8Array.prototype.set.call(u,this.subarray(b,S),h),A},E.prototype.fill=function(u,h,b,S){if("string"==typeof u){if("string"==typeof h?(S=h,h=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&&!E.isEncoding(S))throw new TypeError("Unknown encoding: "+S);if(1===u.length){const k=u.charCodeAt(0);("utf8"===S&&k<128||"latin1"===S)&&(u=k)}}else"number"==typeof u?u&=255:"boolean"==typeof u&&(u=Number(u));if(h<0||this.length<h||this.length<b)throw new RangeError("Out of range index");if(b<=h)return this;let A;if(h>>>=0,b=void 0===b?this.length:b>>>0,u||(u=0),"number"==typeof u)for(A=h;A<b;++A)this[A]=u;else{const k=E.isBuffer(u)?u:E.from(u,S),Me=k.length;if(0===Me)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(A=0;A<b-h;++A)this[A+h]=k[A%Me]}return this};const Ut={};function Ar(_,u,h){Ut[_]=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${_}]`,delete this.name}get code(){return _}set code(S){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:S,writable:!0})}toString(){return`${this.name} [${_}]: ${this.message}`}}}function e3(_){let u="",h=_.length;const b="-"===_[0]?1:0;for(;h>=b+4;h-=3)u=`_${_.slice(h-3,h)}${u}`;return`${_.slice(0,h)}${u}`}function $a(_,u,h,b,S,A){if(_>h||_<u){const k="bigint"==typeof u?"n":"";let Me;throw Me=A>3?0===u||u===BigInt(0)?`>= 0${k} and < 2${k} ** ${8*(A+1)}${k}`:`>= -(2${k} ** ${8*(A+1)-1}${k}) and < 2 ** ${8*(A+1)-1}${k}`:`>= ${u}${k} and <= ${h}${k}`,new Ut.ERR_OUT_OF_RANGE("value",Me,_)}!function z6(_,u,h){In(u,"offset"),(void 0===_[u]||void 0===_[u+h])&&t3(u,_.length-(h+1))}(b,S,A)}function In(_,u){if("number"!=typeof _)throw new Ut.ERR_INVALID_ARG_TYPE(u,"number",_)}function t3(_,u,h){throw Math.floor(_)!==_?(In(_,h),new Ut.ERR_OUT_OF_RANGE(h||"offset","an integer",_)):u<0?new Ut.ERR_BUFFER_OUT_OF_BOUNDS:new Ut.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${u}`,_)}Ar("ERR_BUFFER_OUT_OF_BOUNDS",function(_){return _?`${_} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ar("ERR_INVALID_ARG_TYPE",function(_,u){return`The "${_}" argument must be of type number. Received type ${typeof u}`},TypeError),Ar("ERR_OUT_OF_RANGE",function(_,u,h){let b=`The value of "${_}" is out of range.`,S=h;return Number.isInteger(h)&&Math.abs(h)>2**32?S=e3(String(h)):"bigint"==typeof h&&(S=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(S=e3(S)),S+="n"),b+=` It must be ${u}. Received ${S}`,b},RangeError);const ou=/[^+/0-9A-Za-z-_]/g;function Wa(_,u){let h;u=u||1/0;const b=_.length;let S=null;const A=[];for(let k=0;k<b;++k){if(h=_.charCodeAt(k),h>55295&&h<57344){if(!S){if(h>56319){(u-=3)>-1&&A.push(239,191,189);continue}if(k+1===b){(u-=3)>-1&&A.push(239,191,189);continue}S=h;continue}if(h<56320){(u-=3)>-1&&A.push(239,191,189),S=h;continue}h=65536+(S-55296<<10|h-56320)}else S&&(u-=3)>-1&&A.push(239,191,189);if(S=null,h<128){if((u-=1)<0)break;A.push(h)}else if(h<2048){if((u-=2)<0)break;A.push(h>>6|192,63&h|128)}else if(h<65536){if((u-=3)<0)break;A.push(h>>12|224,h>>6&63|128,63&h|128)}else{if(!(h<1114112))throw new Error("Invalid code point");if((u-=4)<0)break;A.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return A}function Ka(_){return d2.toByteArray(function lu(_){if((_=(_=_.split("=")[0]).trim().replace(ou,"")).length<2)return"";for(;_.length%4!=0;)_+="=";return _}(_))}function On(_,u,h,b){let S;for(S=0;S<b&&!(S+h>=u.length||S>=_.length);++S)u[S+h]=_[S];return S}function ot(_,u){return _ instanceof u||null!=_&&null!=_.constructor&&null!=_.constructor.name&&_.constructor.name===u.name}function c4(_){return _!=_}const Ya=function(){const _="0123456789abcdef",u=new Array(256);for(let h=0;h<16;++h){const b=16*h;for(let S=0;S<16;++S)u[b+S]=_[h]+_[S]}return u}();function jt(_){return typeof BigInt>"u"?D6:_}function D6(){throw new Error("BigInt not supported")}},601:(J4,q2)=>{q2.read=function(u1,Q,d2,S1,Je){var Se,Ee,a1=8*Je-S1-1,E=(1<<a1)-1,k1=E>>1,s1=-7,P1=d2?Je-1:0,Z1=d2?-1:1,le=u1[Q+P1];for(P1+=Z1,Se=le&(1<<-s1)-1,le>>=-s1,s1+=a1;s1>0;Se=256*Se+u1[Q+P1],P1+=Z1,s1-=8);for(Ee=Se&(1<<-s1)-1,Se>>=-s1,s1+=S1;s1>0;Ee=256*Ee+u1[Q+P1],P1+=Z1,s1-=8);if(0===Se)Se=1-k1;else{if(Se===E)return Ee?NaN:1/0*(le?-1:1);Ee+=Math.pow(2,S1),Se-=k1}return(le?-1:1)*Ee*Math.pow(2,Se-S1)},q2.write=function(u1,Q,d2,S1,Je,Se){var Ee,a1,E,k1=8*Se-Je-1,s1=(1<<k1)-1,P1=s1>>1,Z1=23===Je?Math.pow(2,-24)-Math.pow(2,-77):0,le=S1?0:Se-1,be=S1?1:-1,Ye=Q<0||0===Q&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(a1=isNaN(Q)?1:0,Ee=s1):(Ee=Math.floor(Math.log(Q)/Math.LN2),Q*(E=Math.pow(2,-Ee))<1&&(Ee--,E*=2),(Q+=Ee+P1>=1?Z1/E:Z1*Math.pow(2,1-P1))*E>=2&&(Ee++,E/=2),Ee+P1>=s1?(a1=0,Ee=s1):Ee+P1>=1?(a1=(Q*E-1)*Math.pow(2,Je),Ee+=P1):(a1=Q*Math.pow(2,P1-1)*Math.pow(2,Je),Ee=0));Je>=8;u1[d2+le]=255&a1,le+=be,a1/=256,Je-=8);for(Ee=Ee<<Je|a1,k1+=Je;k1>0;u1[d2+le]=255&Ee,le+=be,Ee/=256,k1-=8);u1[d2+le-be]|=128*Ye}}},J4=>{J4(J4.s=378)}]);