homebridge-eufy-security 2.2.4 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/accessories/BaseAccessory.d.ts +32 -0
  2. package/dist/accessories/BaseAccessory.d.ts.map +1 -0
  3. package/dist/accessories/BaseAccessory.js +128 -0
  4. package/dist/accessories/BaseAccessory.js.map +1 -0
  5. package/dist/accessories/CameraAccessory.d.ts +7 -8
  6. package/dist/accessories/CameraAccessory.d.ts.map +1 -1
  7. package/dist/accessories/CameraAccessory.js +126 -93
  8. package/dist/accessories/CameraAccessory.js.map +1 -1
  9. package/dist/accessories/Device.d.ts +14 -16
  10. package/dist/accessories/Device.d.ts.map +1 -1
  11. package/dist/accessories/Device.js +42 -67
  12. package/dist/accessories/Device.js.map +1 -1
  13. package/dist/accessories/EntrySensorAccessory.d.ts +2 -6
  14. package/dist/accessories/EntrySensorAccessory.d.ts.map +1 -1
  15. package/dist/accessories/EntrySensorAccessory.js +14 -40
  16. package/dist/accessories/EntrySensorAccessory.js.map +1 -1
  17. package/dist/accessories/LockAccessory.d.ts +16 -0
  18. package/dist/accessories/LockAccessory.d.ts.map +1 -0
  19. package/dist/accessories/LockAccessory.js +102 -0
  20. package/dist/accessories/LockAccessory.js.map +1 -0
  21. package/dist/accessories/MotionSensorAccessory.d.ts +2 -6
  22. package/dist/accessories/MotionSensorAccessory.d.ts.map +1 -1
  23. package/dist/accessories/MotionSensorAccessory.js +14 -40
  24. package/dist/accessories/MotionSensorAccessory.js.map +1 -1
  25. package/dist/accessories/StationAccessory.d.ts +18 -14
  26. package/dist/accessories/StationAccessory.d.ts.map +1 -1
  27. package/dist/accessories/StationAccessory.js +115 -111
  28. package/dist/accessories/StationAccessory.js.map +1 -1
  29. package/dist/config.d.ts +1 -0
  30. package/dist/config.d.ts.map +1 -1
  31. package/dist/controller/SnapshotManager.d.ts +1 -7
  32. package/dist/controller/SnapshotManager.d.ts.map +1 -1
  33. package/dist/controller/SnapshotManager.js +46 -128
  34. package/dist/controller/SnapshotManager.js.map +1 -1
  35. package/dist/platform.d.ts +1 -0
  36. package/dist/platform.d.ts.map +1 -1
  37. package/dist/platform.js +81 -46
  38. package/dist/platform.js.map +1 -1
  39. package/dist/utils/configTypes.d.ts +0 -1
  40. package/dist/utils/configTypes.d.ts.map +1 -1
  41. package/homebridge-ui/configui/app/util/types.js +1 -1
  42. package/homebridge-ui/configui/app/util/types.js.map +1 -1
  43. package/homebridge-ui/public/index.html +1 -1
  44. package/homebridge-ui/public/main.632736b6fba20915.js +1 -0
  45. package/homebridge-ui/server.js +41 -11
  46. package/homebridge-ui/server.js.map +1 -1
  47. package/package.json +22 -21
  48. package/dist/accessories/DoorbellCameraAccessory.d.ts +0 -17
  49. package/dist/accessories/DoorbellCameraAccessory.d.ts.map +0 -1
  50. package/dist/accessories/DoorbellCameraAccessory.js +0 -47
  51. package/dist/accessories/DoorbellCameraAccessory.js.map +0 -1
  52. package/dist/accessories/KeypadAccessory.d.ts +0 -24
  53. package/dist/accessories/KeypadAccessory.d.ts.map +0 -1
  54. package/dist/accessories/KeypadAccessory.js +0 -52
  55. package/dist/accessories/KeypadAccessory.js.map +0 -1
  56. package/dist/accessories/SmartLockAccessory.d.ts +0 -24
  57. package/dist/accessories/SmartLockAccessory.d.ts.map +0 -1
  58. package/dist/accessories/SmartLockAccessory.js +0 -99
  59. package/dist/accessories/SmartLockAccessory.js.map +0 -1
  60. package/homebridge-ui/public/main.0d25748cc9303f6b.js +0 -1
@@ -1 +0,0 @@
1
- (self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{841:(j3,$2,u1)=>{"use strict";function Q(e){return"function"==typeof e}function f2(e){const i=e(n=>{Error.call(n),n.stack=(new Error).stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}const b1=f2(e=>function(i){e(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i});function Xe(e,t){if(e){const i=e.indexOf(t);0<=i&&e.splice(i,1)}}class De{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:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(const a of i)a.remove(this);else i.remove(this);const{initialTeardown:n}=this;if(Q(n))try{n()}catch(a){t=a instanceof b1?a.errors:[a]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const a of r)try{E(a)}catch(s){t=t??[],s instanceof b1?t=[...t,...s.errors]:t.push(s)}}if(t)throw new b1(t)}}add(t){var i;if(t&&t!==this)if(this.closed)E(t);else{if(t instanceof De){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).push(t)}}_hasParent(t){const{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){const{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){const{_parentage:i}=this;i===t?this._parentage=null:Array.isArray(i)&&Xe(i,t)}remove(t){const{_finalizers:i}=this;i&&Xe(i,t),t instanceof De&&t._removeParent(this)}}De.EMPTY=(()=>{const e=new De;return e.closed=!0,e})();const Ee=De.EMPTY;function a1(e){return e instanceof De||e&&"closed"in e&&Q(e.remove)&&Q(e.add)&&Q(e.unsubscribe)}function E(e){Q(e)?e():e.unsubscribe()}const O1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},s1={setTimeout(e,t,...i){const{delegate:n}=s1;return n?.setTimeout?n.setTimeout(e,t,...i):setTimeout(e,t,...i)},clearTimeout(e){const{delegate:t}=s1;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function R1(e){s1.setTimeout(()=>{const{onUnhandledError:t}=O1;if(!t)throw e;t(e)})}function K1(){}const le=m1("C",void 0,void 0);function m1(e,t,i){return{kind:e,value:t,error:i}}let w1=null;function e1(e){if(O1.useDeprecatedSynchronousErrorHandling){const t=!w1;if(t&&(w1={errorThrown:!1,error:null}),e(),t){const{errorThrown:i,error:n}=w1;if(w1=null,i)throw n}}else e()}class st extends De{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,a1(t)&&t.add(this)):this.destination=f6}static create(t,i,n){return new xn(t,i,n)}next(t){this.isStopped?Ci(function qe(e){return m1("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ci(function ye(e){return m1("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ci(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 h2=Function.prototype.bind;function Ct(e,t){return h2.call(e,t)}class Aa{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(n){G3(n)}}error(t){const{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(n){G3(n)}else G3(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(i){G3(i)}}}class xn extends st{constructor(t,i,n){let r;if(super(),Q(t)||!t)r={next:t??void 0,error:i??void 0,complete:n??void 0};else{let a;this&&O1.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Ct(t.next,a),error:t.error&&Ct(t.error,a),complete:t.complete&&Ct(t.complete,a)}):r=t}this.destination=new Aa(r)}}function G3(e){O1.useDeprecatedSynchronousErrorHandling?function d2(e){O1.useDeprecatedSynchronousErrorHandling&&w1&&(w1.errorThrown=!0,w1.error=e)}(e):R1(e)}function Ci(e,t){const{onStoppedNotification:i}=O1;i&&s1.setTimeout(()=>i(e,t))}const f6={closed:!0,next:K1,error:function u6(e){throw e},complete:K1},yi="function"==typeof Symbol&&Symbol.observable||"@@observable";function yt(e){return e}function Mi(e){return 0===e.length?yt:1===e.length?e[0]:function(i){return e.reduce((n,r)=>r(n),i)}}let We=(()=>{class e{constructor(i){i&&(this._subscribe=i)}lift(i){const n=new e;return n.source=this,n.operator=i,n}subscribe(i,n,r){const a=function h6(e){return e&&e instanceof st||function d6(e){return e&&Q(e.next)&&Q(e.error)&&Q(e.complete)}(e)&&a1(e)}(i)?i:new xn(i,n,r);return e1(()=>{const{operator:s,source:o}=this;a.add(s?s.call(a,o):o?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return new(n=Ta(n))((r,a)=>{const s=new xn({next:o=>{try{i(o)}catch(c){a(c),s.unsubscribe()}},error:a,complete:r});this.subscribe(s)})}_subscribe(i){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(i)}[yi](){return this}pipe(...i){return Mi(i)(this)}toPromise(i){return new(i=Ta(i))((n,r)=>{let a;this.subscribe(s=>a=s,s=>r(s),()=>n(a))})}}return e.create=t=>new e(t),e})();function Ta(e){var t;return null!==(t=e??O1.Promise)&&void 0!==t?t:Promise}const p6=f2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let he=(()=>{class e extends We{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){const n=new r2(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new p6}next(i){e1(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(i)}})}error(i){e1(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;const{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){e1(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return(null===(i=this.observers)||void 0===i?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){const{hasError:n,isStopped:r,observers:a}=this;return n||r?Ee:(this.currentObservers=null,a.push(i),new De(()=>{this.currentObservers=null,Xe(a,i)}))}_checkFinalizedStatuses(i){const{hasError:n,thrownError:r,isStopped:a}=this;n?i.error(r):a&&i.complete()}asObservable(){const i=new We;return i.source=this,i}}return e.create=(t,i)=>new r2(t,i),e})();class r2 extends he{constructor(t,i){super(),this.destination=t,this.source=i}next(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.next)||void 0===n||n.call(i,t)}error(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.error)||void 0===n||n.call(i,t)}complete(){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===i||i.call(t)}_subscribe(t){var i,n;return null!==(n=null===(i=this.source)||void 0===i?void 0:i.subscribe(t))&&void 0!==n?n:Ee}}class C2 extends he{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const i=super._subscribe(t);return!i.closed&&t.next(this._value),i}getValue(){const{hasError:t,thrownError:i,_value:n}=this;if(t)throw i;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}function bi(e){return Q(e?.lift)}function f1(e){return t=>{if(bi(t))return t.lift(function(i){try{return e(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ke(e,t,i,n,r){return new m6(e,t,i,n,r)}class m6 extends st{constructor(t,i,n,r,a,s){super(t),this.onFinalize=a,this.shouldUnsubscribe=s,this._next=i?function(o){try{i(o)}catch(c){t.error(c)}}:super._next,this._error=r?function(o){try{r(o)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(o){t.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:i}=this;super.unsubscribe(),!i&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Me(e,t){return f1((i,n)=>{let r=0;i.subscribe(Ke(n,a=>{n.next(e.call(t,a,r++))}))})}function Mt(e){return this instanceof Mt?(this.v=e,this):new Mt(e)}function Tu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Ie(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.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),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(a){i[a]=e[a]&&function(s){return new Promise(function(o,c){!function r(a,s,o,c){Promise.resolve(c).then(function(l){a({value:l,done:o})},s)}(o,c,(s=e[a](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const v6=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Iu(e){return Q(e?.then)}function Ou(e){return Q(e[yi])}function Ru(e){return Symbol.asyncIterator&&Q(e?.[Symbol.asyncIterator])}function ku(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 rx(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Fu(e){return Q(e?.[Pu])}function Bu(e){return function Vi(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=i.apply(e,t||[]),a=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(p){n[p]&&(r[p]=function(m){return new Promise(function(H,D){a.push([p,m,H,D])>1||o(p,m)})})}function o(p,m){try{!function c(p){p.value instanceof Mt?Promise.resolve(p.value.v).then(l,u):f(a[0][2],p)}(n[p](m))}catch(H){f(a[0][3],H)}}function l(p){o("next",p)}function u(p){o("throw",p)}function f(p,m){p(m),a.shift(),a.length&&o(a[0][0],a[0][1])}}(this,arguments,function*(){const i=e.getReader();try{for(;;){const{value:n,done:r}=yield Mt(i.read());if(r)return yield Mt(void 0);yield yield Mt(n)}}finally{i.releaseLock()}})}function Uu(e){return Q(e?.getReader)}function U1(e){if(e instanceof We)return e;if(null!=e){if(Ou(e))return function ax(e){return new We(t=>{const i=e[yi]();if(Q(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(v6(e))return function sx(e){return new We(t=>{for(let i=0;i<e.length&&!t.closed;i++)t.next(e[i]);t.complete()})}(e);if(Iu(e))return function ox(e){return new We(t=>{e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,R1)})}(e);if(Ru(e))return ju(e);if(Fu(e))return function cx(e){return new We(t=>{for(const i of e)if(t.next(i),t.closed)return;t.complete()})}(e);if(Uu(e))return function lx(e){return ju(Bu(e))}(e)}throw ku(e)}function ju(e){return new We(t=>{(function ux(e,t){var i,n,r,a;return function L(e,t,i,n){return new(i||(i=Promise))(function(a,s){function o(u){try{l(n.next(u))}catch(f){s(f)}}function c(u){try{l(n.throw(u))}catch(f){s(f)}}function l(u){u.done?a(u.value):function r(a){return a instanceof i?a:new i(function(s){s(a)})}(u.value).then(o,c)}l((n=n.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(i=Tu(e);!(n=yield i.next()).done;)if(t.next(n.value),t.closed)return}catch(s){r={error:s}}finally{try{n&&!n.done&&(a=i.return)&&(yield a.call(i))}finally{if(r)throw r.error}}t.complete()})})(e,t).catch(i=>t.error(i))})}function an(e,t,i,n=0,r=!1){const a=t.schedule(function(){i(),r?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!r)return a}function k1(e,t,i=1/0){return Q(t)?k1((n,r)=>Me((a,s)=>t(n,a,r,s))(U1(e(n,r))),i):("number"==typeof t&&(i=t),f1((n,r)=>function fx(e,t,i,n,r,a,s,o){const c=[];let l=0,u=0,f=!1;const p=()=>{f&&!c.length&&!l&&t.complete()},m=D=>l<n?H(D):c.push(D),H=D=>{a&&t.next(D),l++;let S=!1;U1(i(D,u++)).subscribe(Ke(t,N=>{r?.(N),a?m(N):t.next(N)},()=>{S=!0},void 0,()=>{if(S)try{for(l--;c.length&&l<n;){const N=c.shift();s?an(t,s,()=>H(N)):H(N)}p()}catch(N){t.error(N)}}))};return e.subscribe(Ke(t,m,()=>{f=!0,p()})),()=>{o?.()}}(n,r,e,i)))}function K3(e=1/0){return k1(yt,e)}const ct=new We(e=>e.complete());function Gu(e){return e&&Q(e.schedule)}function _6(e){return e[e.length-1]}function Ia(e){return Q(_6(e))?e.pop():void 0}function Di(e){return Gu(_6(e))?e.pop():void 0}function $u(e,t=0){return f1((i,n)=>{i.subscribe(Ke(n,r=>an(n,e,()=>n.next(r),t),()=>an(n,e,()=>n.complete(),t),r=>an(n,e,()=>n.error(r),t)))})}function Wu(e,t=0){return f1((i,n)=>{n.add(e.schedule(()=>i.subscribe(n),t))})}function qu(e,t){if(!e)throw new Error("Iterable cannot be null");return new We(i=>{an(i,t,()=>{const n=e[Symbol.asyncIterator]();an(i,t,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function Z1(e,t){return t?function Cx(e,t){if(null!=e){if(Ou(e))return function px(e,t){return U1(e).pipe(Wu(t),$u(t))}(e,t);if(v6(e))return function gx(e,t){return new We(i=>{let n=0;return t.schedule(function(){n===e.length?i.complete():(i.next(e[n++]),i.closed||this.schedule())})})}(e,t);if(Iu(e))return function mx(e,t){return U1(e).pipe(Wu(t),$u(t))}(e,t);if(Ru(e))return qu(e,t);if(Fu(e))return function vx(e,t){return new We(i=>{let n;return an(i,t,()=>{n=e[Pu](),an(i,t,()=>{let r,a;try{({value:r,done:a}=n.next())}catch(s){return void i.error(s)}a?i.complete():i.next(r)},0,!0)}),()=>Q(n?.return)&&n.return()})}(e,t);if(Uu(e))return function _x(e,t){return qu(Bu(e),t)}(e,t)}throw ku(e)}(e,t):U1(e)}function C6(...e){const t=Di(e),i=function hx(e,t){return"number"==typeof _6(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?U1(n[0]):K3(i)(Z1(n,t)):ct}function ae(...e){return Z1(e,Di(e))}function y6(e={}){const{connector:t=(()=>new he),resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=e;return a=>{let s,o,c,l=0,u=!1,f=!1;const p=()=>{o?.unsubscribe(),o=void 0},m=()=>{p(),s=c=void 0,u=f=!1},H=()=>{const D=s;m(),D?.unsubscribe()};return f1((D,S)=>{l++,!f&&!u&&p();const N=c=c??t();S.add(()=>{l--,0===l&&!f&&!u&&(o=M6(H,r))}),N.subscribe(S),!s&&l>0&&(s=new xn({next:z=>N.next(z),error:z=>{f=!0,p(),o=M6(m,i,z),N.error(z)},complete:()=>{u=!0,p(),o=M6(m,n),N.complete()}}),U1(D).subscribe(s))})(a)}}function M6(e,t,...i){if(!0===t)return void e();if(!1===t)return;const n=new xn({next:()=>{n.unsubscribe(),e()}});return U1(t(...i)).subscribe(n)}function bt(e,t){return f1((i,n)=>{let r=null,a=0,s=!1;const o=()=>s&&!r&&n.complete();i.subscribe(Ke(n,c=>{r?.unsubscribe();let l=0;const u=a++;U1(e(c,u)).subscribe(r=Ke(n,f=>n.next(t?t(c,f,u,l++):f),()=>{r=null,o()}))},()=>{s=!0,o()}))})}function yx(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 Oa(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function j1(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(j1).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 i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function b6(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Mx=Ue({__forward_ref__:Ue});function ge(e){return e.__forward_ref__=ge,e.toString=function(){return j1(this())},e}function ue(e){return w6(e)?e():e}function w6(e){return"function"==typeof e&&e.hasOwnProperty(Mx)&&e.__forward_ref__===ge}function H6(e){return e&&!!e.\u0275providers}const Yu="https://g.co/ng/security#xss";class k extends Error{constructor(t,i){super(function Ra(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,i)),this.code=t}}function fe(e){return"string"==typeof e?e:null==e?"":String(e)}function V6(e,t){throw new k(-201,!1)}function lt(e,t){null==e&&function se(e,t,i,n){throw new Error(`ASSERTION ERROR: ${e}`+(null==n?"":` [Expected=> ${i} ${n} ${t} <=Actual]`))}(t,e,null,"!=")}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Oe(e){return{providers:e.providers||[],imports:e.imports||[]}}function ka(e){return Zu(e,Fa)||Zu(e,Qu)}function Zu(e,t){return e.hasOwnProperty(t)?e[t]:null}function Pa(e){return e&&(e.hasOwnProperty(D6)||e.hasOwnProperty(Lx))?e[D6]:null}const Fa=Ue({\u0275prov:Ue}),D6=Ue({\u0275inj:Ue}),Qu=Ue({ngInjectableDef:Ue}),Lx=Ue({ngInjectorDef:Ue});var Ce=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}(Ce||{});let z6;function A2(e){const t=z6;return z6=e,t}function Xu(e,t,i){const n=ka(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Ce.Optional?null:void 0!==t?t:void V6(j1(e))}const Ze=globalThis,zi={},A6="__NG_DI_FLAG__",Ba="ngTempTokenPath",Ax=/\n/gm,tf="__source";let Y3;function Nn(e){const t=Y3;return Y3=e,t}function Ix(e,t=Ce.Default){if(void 0===Y3)throw new k(-203,!1);return null===Y3?Xu(e,void 0,t):Y3.get(e,t&Ce.Optional?null:void 0,t)}function q(e,t=Ce.Default){return(function Ju(){return z6}()||Ix)(ue(e),t)}function J(e,t=Ce.Default){return q(e,Ua(t))}function Ua(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function E6(e){const t=[];for(let i=0;i<e.length;i++){const n=ue(e[i]);if(Array.isArray(n)){if(0===n.length)throw new k(900,!1);let r,a=Ce.Default;for(let s=0;s<n.length;s++){const o=n[s],c=Ox(o);"number"==typeof c?-1===c?r=o.token:a|=c:r=o}t.push(q(r,a))}else t.push(q(n))}return t}function Si(e,t){return e[A6]=t,e.prototype[A6]=t,e}function Ox(e){return e[A6]}function sn(e){return{toString:e}.toString()}var ja=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ja||{}),wt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(wt||{});const Pt={},Te=[],Ga=Ue({\u0275cmp:Ue}),T6=Ue({\u0275dir:Ue}),I6=Ue({\u0275pipe:Ue}),rf=Ue({\u0275mod:Ue}),on=Ue({\u0275fac:Ue}),Li=Ue({__NG_ELEMENT_ID__:Ue}),af=Ue({__NG_ENV_ID__:Ue});function sf(e,t,i){let n=e.length;for(;;){const r=e.indexOf(t,i);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const a=t.length;if(r+a===n||e.charCodeAt(r+a)<=32)return r}i=r+1}}function O6(e,t,i){let n=0;for(;n<i.length;){const r=i[n];if("number"==typeof r){if(0!==r)break;n++;const a=i[n++],s=i[n++],o=i[n++];e.setAttribute(t,s,o,a)}else{const a=r,s=i[++n];lf(a)?e.setProperty(t,a,s):e.setAttribute(t,a,s),n++}}return n}function cf(e){return 3===e||4===e||6===e}function lf(e){return 64===e.charCodeAt(0)}function xi(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let i=-1;for(let n=0;n<t.length;n++){const r=t[n];"number"==typeof r?i=r:0===i||uf(e,i,r,null,-1===i||2===i?t[++n]:null)}}return e}function uf(e,t,i,n,r){let a=0,s=e.length;if(-1===t)s=-1;else for(;a<e.length;){const o=e[a++];if("number"==typeof o){if(o===t){s=-1;break}if(o>t){s=a-1;break}}}for(;a<e.length;){const o=e[a];if("number"==typeof o)break;if(o===i){if(null===n)return void(null!==r&&(e[a+1]=r));if(n===e[a+1])return void(e[a+2]=r)}a++,null!==n&&a++,null!==r&&a++}-1!==s&&(e.splice(s,0,t),a=s+1),e.splice(a++,0,i),null!==n&&e.splice(a++,0,n),null!==r&&e.splice(a++,0,r)}const ff="ng-template";function Px(e,t,i){let n=0,r=!0;for(;n<e.length;){let a=e[n++];if("string"==typeof a&&r){const s=e[n++];if(i&&"class"===a&&-1!==sf(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&&(r=!1)}}return!1}function df(e){return 4===e.type&&e.value!==ff}function Fx(e,t,i){return t===(4!==e.type||i?e.value:ff)}function Bx(e,t,i){let n=4;const r=e.attrs||[],a=function Gx(e){for(let t=0;t<e.length;t++)if(cf(e[t]))return t;return e.length}(r);let s=!1;for(let o=0;o<t.length;o++){const c=t[o];if("number"!=typeof c){if(!s)if(4&n){if(n=2|1&n,""!==c&&!Fx(e,c,i)||""===c&&1===t.length){if(Ht(n))return!1;s=!0}}else{const l=8&n?c:t[++o];if(8&n&&null!==e.attrs){if(!Px(e.attrs,l,i)){if(Ht(n))return!1;s=!0}continue}const f=Ux(8&n?"class":c,r,df(e),i);if(-1===f){if(Ht(n))return!1;s=!0;continue}if(""!==l){let p;p=f>a?"":r[f+1].toLowerCase();const m=8&n?p:null;if(m&&-1!==sf(m,l,0)||2&n&&l!==p){if(Ht(n))return!1;s=!0}}}}else{if(!s&&!Ht(n)&&!Ht(c))return!1;if(s&&Ht(c))continue;s=!1,n=c|1&n}}return Ht(n)||s}function Ht(e){return 0==(1&e)}function Ux(e,t,i,n){if(null===t)return-1;let r=0;if(n||!i){let a=!1;for(;r<t.length;){const s=t[r];if(s===e)return r;if(3===s||6===s)a=!0;else{if(1===s||2===s){let o=t[++r];for(;"string"==typeof o;)o=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=a?1:2}return-1}return function $x(e,t){let i=e.indexOf(4);if(i>-1)for(i++;i<e.length;){const n=e[i];if("number"==typeof n)return-1;if(n===t)return i;i++}return-1}(t,e)}function hf(e,t,i=!1){for(let n=0;n<t.length;n++)if(Bx(e,t[n],i))return!0;return!1}function Wx(e,t){e:for(let i=0;i<t.length;i++){const n=t[i];if(e.length===n.length){for(let r=0;r<e.length;r++)if(e[r]!==n[r])continue e;return!0}}return!1}function pf(e,t){return e?":not("+t.trim()+")":t}function qx(e){let t=e[0],i=1,n=2,r="",a=!1;for(;i<e.length;){let s=e[i];if("string"==typeof s)if(2&n){const o=e[++i];r+="["+s+(o.length>0?'="'+o+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);else""!==r&&!Ht(s)&&(t+=pf(a,r),r=""),n=s,a=a||!Ht(n);i++}return""!==r&&(t+=pf(a,r)),t}function oe(e){return sn(()=>{const t=gf(e),i={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ja.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||wt.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""};vf(i);const n=e.dependencies;return i.directiveDefs=$a(n,!1),i.pipeDefs=$a(n,!0),i.id=function tN(e){let t=0;const i=[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 r of i)t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(i),i})}function Qx(e){return Le(e)||a2(e)}function Jx(e){return null!==e}function Be(e){return sn(()=>({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 mf(e,t){if(null==e)return Pt;const i={};for(const n in e)if(e.hasOwnProperty(n)){let r=e[n],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),i[r]=n,t&&(t[r]=a)}return i}function j(e){return sn(()=>{const t=gf(e);return vf(t),t})}function Le(e){return e[Ga]||null}function a2(e){return e[T6]||null}function y2(e){return e[I6]||null}function q2(e,t){const i=e[rf]||null;if(!i&&!0===t)throw new Error(`Type ${j1(e)} does not have '\u0275mod' property.`);return i}function gf(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||Pt,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:mf(e.inputs,t),outputs:mf(e.outputs)}}function vf(e){e.features?.forEach(t=>t(e))}function $a(e,t){if(!e)return null;const i=t?y2:Qx;return()=>("function"==typeof e?e():e).map(n=>i(n)).filter(Jx)}const L1=0,K=1,pe=2,h1=3,Vt=4,Ni=5,p2=6,Q3=7,x1=8,An=9,J3=10,de=11,Ai=12,_f=13,X3=14,N1=15,Ei=16,e4=17,Ft=18,Ti=19,Cf=20,En=21,cn=22,Wa=23,qa=24,we=25,R6=1,yf=2,Bt=7,t4=9,s2=11;function T2(e){return Array.isArray(e)&&"object"==typeof e[R6]}function I2(e){return Array.isArray(e)&&!0===e[R6]}function k6(e){return 0!=(4&e.flags)}function e3(e){return e.componentOffset>-1}function Ya(e){return 1==(1&e.flags)}function Dt(e){return!!e.template}function P6(e){return 0!=(512&e[pe])}function t3(e,t){return e.hasOwnProperty(on)?e[on]:null}let oN=Ze.WeakRef??class sN{constructor(t){this.ref=t}deref(){return this.ref}},lN=0,Ut=null,Za=!1;function Q1(e){const t=Ut;return Ut=e,t}class Vf{constructor(){this.id=lN++,this.ref=function cN(e){return new oN(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,i]of this.producers){const n=i.producerNode.deref();if(null!=n&&i.atTrackingVersion===this.trackingVersion){if(n.producerPollStatus(i.seenValueVersion))return!0}else this.producers.delete(t),n?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=Za;Za=!0;try{for(const[i,n]of this.consumers){const r=n.consumerNode.deref();null!=r&&r.trackingVersion===n.atTrackingVersion?r.onConsumerDependencyMayHaveChanged():(this.consumers.delete(i),r?.producers.delete(this.id))}}finally{Za=t}}producerAccessed(){if(Za)throw new Error("");if(null===Ut)return;let t=Ut.producers.get(this.id);void 0===t?(t={consumerNode:Ut.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Ut.trackingVersion},Ut.producers.set(this.id,t),this.consumers.set(Ut.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=Ut.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Ut?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let Df=null;const Sf=()=>{};class hN extends Vf{constructor(t,i,n){super(),this.watch=t,this.schedule=i,this.dirty=!1,this.cleanupFn=Sf,this.registerOnCleanup=r=>{this.cleanupFn=r},this.consumerAllowSignalWrites=n}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=Q1(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Sf,this.watch(this.registerOnCleanup)}finally{Q1(t)}}cleanup(){this.cleanupFn()}}class pN{constructor(t,i,n){this.previousValue=t,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}}function g1(){return Lf}function Lf(e){return e.type.prototype.ngOnChanges&&(e.setInput=gN),mN}function mN(){const e=Nf(this),t=e?.current;if(t){const i=e.previous;if(i===Pt)e.previous=t;else for(let n in t)i[n]=t[n];e.current=null,this.ngOnChanges(t)}}function gN(e,t,i,n){const r=this.declaredInputs[i],a=Nf(e)||function vN(e,t){return e[xf]=t}(e,{previous:Pt,current:null}),s=a.current||(a.current={}),o=a.previous,c=o[r];s[r]=new pN(c&&c.currentValue,t,o===Pt),e[n]=t}g1.ngInherit=!0;const xf="__ngSimpleChanges__";function Nf(e){return e[xf]||null}const jt=function(e,t,i){},Af="svg";function t1(e){for(;Array.isArray(e);)e=e[L1];return e}function Xa(e,t){return t1(t[e])}function O2(e,t){return t1(t[e.index])}function Tf(e,t){return e.data[t]}function K2(e,t){const i=t[e];return T2(i)?i:i[L1]}function Tn(e,t){return null==t?null:e[t]}function If(e){e[e4]=0}function HN(e){1024&e[pe]||(e[pe]|=1024,Rf(e,1))}function Of(e){1024&e[pe]&&(e[pe]&=-1025,Rf(e,-1))}function Rf(e,t){let i=e[h1];if(null===i)return;i[Ni]+=t;let n=i;for(i=i[h1];null!==i&&(1===t&&1===n[Ni]||-1===t&&0===n[Ni]);)i[Ni]+=t,n=i,i=i[h1]}const ce={lFrame:Kf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ff(){return ce.bindingsEnabled}function i4(){return null!==ce.skipHydrationRootTNode}function O(){return ce.lFrame.lView}function xe(){return ce.lFrame.tView}function Y(e){return ce.lFrame.contextLView=e,e[x1]}function Z(e){return ce.lFrame.contextLView=null,e}function o2(){let e=Bf();for(;null!==e&&64===e.type;)e=e.parent;return e}function Bf(){return ce.lFrame.currentTNode}function Gt(e,t){const i=ce.lFrame;i.currentTNode=e,i.isParent=t}function $6(){return ce.lFrame.isParent}function W6(){ce.lFrame.isParent=!1}function r4(){return ce.lFrame.bindingIndex++}function un(e){const t=ce.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function ON(e,t){const i=ce.lFrame;i.bindingIndex=i.bindingRootIndex=e,q6(t)}function q6(e){ce.lFrame.currentDirectiveIndex=e}function $f(){return ce.lFrame.currentQueryIndex}function Y6(e){ce.lFrame.currentQueryIndex=e}function kN(e){const t=e[K];return 2===t.type?t.declTNode:1===t.type?e[p2]:null}function Wf(e,t,i){if(i&Ce.SkipSelf){let r=t,a=e;for(;!(r=r.parent,null!==r||i&Ce.Host||(r=kN(a),null===r||(a=a[X3],10&r.type))););if(null===r)return!1;t=r,e=a}const n=ce.lFrame=qf();return n.currentTNode=t,n.lView=e,!0}function Z6(e){const t=qf(),i=e[K];ce.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function qf(){const e=ce.lFrame,t=null===e?null:e.child;return null===t?Kf(e):t}function Kf(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 Yf(){const e=ce.lFrame;return ce.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Zf=Yf;function Q6(){const e=Yf();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 ce.lFrame.selectedIndex}function n3(e){ce.lFrame.selectedIndex=e}function v1(){const e=ce.lFrame;return Tf(e.tView,e.selectedIndex)}function a4(){ce.lFrame.currentNamespace=Af}function s4(){!function UN(){ce.lFrame.currentNamespace=null}()}let Jf=!0;function es(){return Jf}function In(e){Jf=e}function ts(e,t){for(let i=t.directiveStart,n=t.directiveEnd;i<n;i++){const a=e.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:o,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=a;s&&(e.contentHooks??=[]).push(-i,s),o&&((e.contentHooks??=[]).push(i,o),(e.contentCheckHooks??=[]).push(i,o)),c&&(e.viewHooks??=[]).push(-i,c),l&&((e.viewHooks??=[]).push(i,l),(e.viewCheckHooks??=[]).push(i,l)),null!=u&&(e.destroyHooks??=[]).push(i,u)}}function ns(e,t,i){Xf(e,t,3,i)}function is(e,t,i,n){(3&e[pe])===i&&Xf(e,t,i,n)}function J6(e,t){let i=e[pe];(3&i)===t&&(i&=8191,i+=1,e[pe]=i)}function Xf(e,t,i,n){const a=n??-1,s=t.length-1;let o=0;for(let c=void 0!==n?65535&e[e4]:0;c<s;c++)if("number"==typeof t[c+1]){if(o=t[c],null!=n&&o>=n)break}else t[c]<0&&(e[e4]+=65536),(o<a||-1==a)&&(GN(e,i,t,c),e[e4]=(4294901760&e[e4])+c+2),c++}function e9(e,t){jt(4,e,t);const i=Q1(null);try{t.call(e)}finally{Q1(i),jt(5,e,t)}}function GN(e,t,i,n){const r=i[n]<0,a=i[n+1],o=e[r?-i[n]:i[n]];r?e[pe]>>13<e[e4]>>16&&(3&e[pe])===t&&(e[pe]+=8192,e9(o,a)):e9(o,a)}const o4=-1;class Ri{constructor(t,i,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}}function e0(e){return e!==o4}function ki(e){return 32767&e}function Pi(e,t){let i=function KN(e){return e>>16}(e),n=t;for(;i>0;)n=n[X3],i--;return n}let t0=!0;function rs(e){const t=t0;return t0=e,t}const t9=255,n9=5;let YN=0;const $t={};function as(e,t){const i=i9(e,t);if(-1!==i)return i;const n=t[K];n.firstCreatePass&&(e.injectorIndex=t.length,n0(n.data,e),n0(t,null),n0(n.blueprint,null));const r=ss(e,t),a=e.injectorIndex;if(e0(r)){const s=ki(r),o=Pi(r,t),c=o[K].data;for(let l=0;l<8;l++)t[a+l]=o[s+l]|c[s+l]}return t[a+8]=r,a}function n0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function i9(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ss(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,n=null,r=t;for(;null!==r;){if(n=u9(r),null===n)return o4;if(i++,r=r[X3],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return o4}function r0(e,t,i){!function ZN(e,t,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Li)&&(n=i[Li]),null==n&&(n=i[Li]=YN++);const r=n&t9;t.data[e+(r>>n9)]|=1<<r}(e,t,i)}function r9(e,t,i){if(i&Ce.Optional||void 0!==e)return e;V6()}function a9(e,t,i,n){if(i&Ce.Optional&&void 0===n&&(n=null),!(i&(Ce.Self|Ce.Host))){const r=e[An],a=A2(void 0);try{return r?r.get(t,n,i&Ce.Optional):Xu(t,n,i&Ce.Optional)}finally{A2(a)}}return r9(n,0,i)}function s9(e,t,i,n=Ce.Default,r){if(null!==e){if(2048&t[pe]&&!(n&Ce.Self)){const s=function nA(e,t,i,n,r){let a=e,s=t;for(;null!==a&&null!==s&&2048&s[pe]&&!(512&s[pe]);){const o=o9(a,s,i,n|Ce.Self,$t);if(o!==$t)return o;let c=a.parent;if(!c){const l=s[Cf];if(l){const u=l.get(i,$t,n);if(u!==$t)return u}c=u9(s),s=s[X3]}a=c}return r}(e,t,i,n,$t);if(s!==$t)return s}const a=o9(e,t,i,n,$t);if(a!==$t)return a}return a9(t,i,n,r)}function o9(e,t,i,n,r){const a=function XN(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Li)?e[Li]:void 0;return"number"==typeof t?t>=0?t&t9:tA:t}(i);if("function"==typeof a){if(!Wf(t,e,n))return n&Ce.Host?r9(r,0,n):a9(t,i,n,r);try{let s;if(s=a(n),null!=s||n&Ce.Optional)return s;V6()}finally{Zf()}}else if("number"==typeof a){let s=null,o=i9(e,t),c=o4,l=n&Ce.Host?t[N1][p2]:null;for((-1===o||n&Ce.SkipSelf)&&(c=-1===o?ss(e,t):t[o+8],c!==o4&&l9(n,!1)?(s=t[K],o=ki(c),t=Pi(c,t)):o=-1);-1!==o;){const u=t[K];if(c9(a,o,u.data)){const f=JN(o,t,i,s,n,l);if(f!==$t)return f}c=t[o+8],c!==o4&&l9(n,t[K].data[o+8]===l)&&c9(a,o,t)?(s=u,o=ki(c),t=Pi(c,t)):o=-1}}return r}function JN(e,t,i,n,r,a){const s=t[K],o=s.data[e+8],u=os(o,s,i,null==n?e3(o)&&t0:n!=s&&0!=(3&o.type),r&Ce.Host&&a===o);return null!==u?i3(t,s,u,o):$t}function os(e,t,i,n,r){const a=e.providerIndexes,s=t.data,o=1048575&a,c=e.directiveStart,u=a>>20,p=r?o+u:e.directiveEnd;for(let m=n?o:o+u;m<p;m++){const H=s[m];if(m<c&&i===H||m>=c&&H.type===i)return m}if(r){const m=s[c];if(m&&Dt(m)&&m.type===i)return c}return null}function i3(e,t,i,n){let r=e[i];const a=t.data;if(function $N(e){return e instanceof Ri}(r)){const s=r;s.resolving&&function bx(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new k(-200,`Circular dependency in DI detected for ${e}${i}`)}(function Fe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():fe(e)}(a[i]));const o=rs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?A2(s.injectImpl):null;Wf(e,n,Ce.Default);try{r=e[i]=s.factory(void 0,a,e,n),t.firstCreatePass&&i>=n.directiveStart&&function jN(e,t,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=t.type.prototype;if(n){const s=Lf(t);(i.preOrderHooks??=[]).push(e,s),(i.preOrderCheckHooks??=[]).push(e,s)}r&&(i.preOrderHooks??=[]).push(0-e,r),a&&((i.preOrderHooks??=[]).push(e,a),(i.preOrderCheckHooks??=[]).push(e,a))}(i,a[i],t)}finally{null!==l&&A2(l),rs(o),s.resolving=!1,Zf()}}return r}function c9(e,t,i){return!!(i[t+(e>>n9)]&1<<e)}function l9(e,t){return!(e&Ce.Self||e&Ce.Host&&t)}class w2{constructor(t,i){this._tNode=t,this._lView=i}get(t,i,n){return s9(this._tNode,this._lView,t,Ua(n),i)}}function tA(){return new w2(o2(),O())}function A1(e){return sn(()=>{const t=e.prototype.constructor,i=t[on]||a0(t),n=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==n;){const a=r[on]||a0(r);if(a&&a!==i)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function a0(e){return w6(e)?()=>{const t=a0(ue(e));return t&&t()}:t3(e)}function u9(e){const t=e[K],i=t.type;return 2===i?t.declTNode:1===i?e[p2]:null}const l4="__parameters__";function f4(e,t,i){return sn(()=>{const n=function s0(e){return function(...i){if(e){const n=e(...i);for(const r in n)this[r]=n[r]}}}(t);function r(...a){if(this instanceof r)return n.apply(this,a),this;const s=new r(...a);return o.annotation=s,o;function o(c,l,u){const f=c.hasOwnProperty(l4)?c[l4]:Object.defineProperty(c,l4,{value:[]})[l4];for(;f.length<=u;)f.push(null);return(f[u]=f[u]||[]).push(s),c}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function h4(e,t){e.forEach(i=>Array.isArray(i)?h4(i,t):t(i))}function d9(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function cs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ui(e,t){const i=[];for(let n=0;n<e;n++)i.push(t);return i}function Y2(e,t,i){let n=p4(e,t);return n>=0?e[1|n]=i:(n=~n,function lA(e,t,i,n){let r=e.length;if(r==t)e.push(i,n);else if(1===r)e.push(n,e[0]),e[0]=i;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=i,e[t+1]=n}}(e,n,t,i)),n}function o0(e,t){const i=p4(e,t);if(i>=0)return e[1|i]}function p4(e,t){return function h9(e,t,i){let n=0,r=e.length>>i;for(;r!==n;){const a=n+(r-n>>1),s=e[a<<i];if(t===s)return a<<i;s>t?r=a:n=a+1}return~(r<<i)}(e,t,1)}const us=Si(f4("Optional"),8),fs=Si(f4("SkipSelf"),4);function gs(e){return 128==(128&e.flags)}var On=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(On||{});const d0=new Map;let EA=0;const p0="__ngContext__";function m2(e,t){T2(t)?(e[p0]=t[Ti],function IA(e){d0.set(e[Ti],e)}(t)):e[p0]=t}let m0;function g0(e,t){return m0(e,t)}function $i(e){const t=e[h1];return I2(t)?t[h1]:t}function E9(e){return I9(e[Ai])}function T9(e){return I9(e[Vt])}function I9(e){for(;null!==e&&!I2(e);)e=e[Vt];return e}function v4(e,t,i,n,r){if(null!=n){let a,s=!1;I2(n)?a=n:T2(n)&&(s=!0,n=n[L1]);const o=t1(n);0===e&&null!==i?null==r?P9(t,i,o):a3(t,i,o,r||null,!0):1===e&&null!==i?a3(t,i,o,r||null,!0):2===e?function ws(e,t,i){const n=Ms(e,t);n&&function eE(e,t,i,n){e.removeChild(t,i,n)}(e,n,t,i)}(t,o,s):3===e&&t.destroyNode(o),null!=a&&function iE(e,t,i,n,r){const a=i[Bt];a!==t1(i)&&v4(t,e,n,a,r);for(let o=s2;o<i.length;o++){const c=i[o];qi(c[K],c,e,t,n,a)}}(t,e,a,i,r)}}function Cs(e,t,i){return e.createElement(t,i)}function R9(e,t){const i=e[t4],n=i.indexOf(t);Of(t),i.splice(n,1)}function ys(e,t){if(e.length<=s2)return;const i=s2+t,n=e[i];if(n){const r=n[Ei];null!==r&&r!==e&&R9(r,n),t>0&&(e[i-1][Vt]=n[Vt]);const a=cs(e,s2+t);!function WA(e,t){qi(e,t,t[de],2,null,null),t[L1]=null,t[p2]=null}(n[K],n);const s=a[Ft];null!==s&&s.detachView(a[K]),n[h1]=null,n[Vt]=null,n[pe]&=-129}return n}function _0(e,t){if(!(256&t[pe])){const i=t[de];t[Wa]?.destroy(),t[qa]?.destroy(),i.destroyNode&&qi(e,t,i,3,null,null),function YA(e){let t=e[Ai];if(!t)return C0(e[K],e);for(;t;){let i=null;if(T2(t))i=t[Ai];else{const n=t[s2];n&&(i=n)}if(!i){for(;t&&!t[Vt]&&t!==e;)T2(t)&&C0(t[K],t),t=t[h1];null===t&&(t=e),T2(t)&&C0(t[K],t),i=t&&t[Vt]}t=i}}(t)}}function C0(e,t){if(!(256&t[pe])){t[pe]&=-129,t[pe]|=256,function XA(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let n=0;n<i.length;n+=2){const r=t[i[n]];if(!(r instanceof Ri)){const a=i[n+1];if(Array.isArray(a))for(let s=0;s<a.length;s+=2){const o=r[a[s]],c=a[s+1];jt(4,o,c);try{c.call(o)}finally{jt(5,o,c)}}else{jt(4,r,a);try{a.call(r)}finally{jt(5,r,a)}}}}}(e,t),function JA(e,t){const i=e.cleanup,n=t[Q3];if(null!==i)for(let a=0;a<i.length-1;a+=2)if("string"==typeof i[a]){const s=i[a+3];s>=0?n[s]():n[-s].unsubscribe(),a+=2}else i[a].call(n[i[a+1]]);null!==n&&(t[Q3]=null);const r=t[En];if(null!==r){t[En]=null;for(let a=0;a<r.length;a++)(0,r[a])()}}(e,t),1===t[K].type&&t[de].destroy();const i=t[Ei];if(null!==i&&I2(t[h1])){i!==t[h1]&&R9(i,t);const n=t[Ft];null!==n&&n.detachView(e)}!function OA(e){d0.delete(e[Ti])}(t)}}function y0(e,t,i){return function k9(e,t,i){let n=t;for(;null!==n&&40&n.type;)n=(t=n).parent;if(null===n)return i[L1];{const{componentOffset:r}=n;if(r>-1){const{encapsulation:a}=e.data[n.directiveStart+r];if(a===wt.None||a===wt.Emulated)return null}return O2(n,i)}}(e,t.parent,i)}function a3(e,t,i,n,r){e.insertBefore(t,i,n,r)}function P9(e,t,i){e.appendChild(t,i)}function F9(e,t,i,n,r){null!==n?a3(e,t,i,n,r):P9(e,t,i)}function Ms(e,t){return e.parentNode(t)}function B9(e,t,i){return j9(e,t,i)}let M0,Hs,V0,Vs,j9=function U9(e,t,i){return 40&e.type?O2(e,i):null};function bs(e,t,i,n){const r=y0(e,n,t),a=t[de],o=B9(n.parent||t[p2],n,t);if(null!=r)if(Array.isArray(i))for(let c=0;c<i.length;c++)F9(a,r,i[c],o,!1);else F9(a,r,i,o,!1);void 0!==M0&&M0(a,n,t,i,r)}function Wi(e,t){if(null!==t){const i=t.type;if(3&i)return O2(t,e);if(4&i)return b0(-1,e[t.index]);if(8&i){const n=t.child;if(null!==n)return Wi(e,n);{const r=e[t.index];return I2(r)?b0(-1,r):t1(r)}}if(32&i)return g0(t,e)()||t1(e[t.index]);{const n=$9(e,t);return null!==n?Array.isArray(n)?n[0]:Wi($i(e[N1]),n):Wi(e,t.next)}}return null}function $9(e,t){return null!==t?e[N1][p2].projection[t.projection]:null}function b0(e,t){const i=s2+e+1;if(i<t.length){const n=t[i],r=n[K].firstChild;if(null!==r)return Wi(n,r)}return t[Bt]}function w0(e,t,i,n,r,a,s){for(;null!=i;){const o=n[i.index],c=i.type;if(s&&0===t&&(o&&m2(t1(o),n),i.flags|=2),32!=(32&i.flags))if(8&c)w0(e,t,i.child,n,r,a,!1),v4(t,e,r,o,a);else if(32&c){const l=g0(i,n);let u;for(;u=l();)v4(t,e,r,u,a);v4(t,e,r,o,a)}else 16&c?q9(e,t,n,i,r,a):v4(t,e,r,o,a);i=s?i.projectionNext:i.next}}function qi(e,t,i,n,r,a){w0(i,n,e.firstChild,t,r,a,!1)}function q9(e,t,i,n,r,a){const s=i[N1],c=s[p2].projection[n.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)v4(t,e,r,c[l],a);else{let l=c;const u=s[h1];gs(n)&&(l.flags|=128),w0(e,t,l,u,r,a,!0)}}function K9(e,t,i){""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function Y9(e,t,i){const{mergedAttrs:n,classes:r,styles:a}=i;null!==n&&O6(e,t,n),null!==r&&K9(e,t,r),null!==a&&function aE(e,t,i){e.setAttribute(t,"style",i)}(e,t,a)}function _4(e){return function H0(){if(void 0===Hs&&(Hs=null,Ze.trustedTypes))try{Hs=Ze.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hs}()?.createHTML(e)||e}function C4(){if(void 0!==V0)return V0;if(typeof document<"u")return document;throw new k(210,!1)}function D0(){if(void 0===Vs&&(Vs=null,Ze.trustedTypes))try{Vs=Ze.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Vs}function Z9(e){return D0()?.createHTML(e)||e}function J9(e){return D0()?.createScriptURL(e)||e}class s3{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yu})`}}class uE extends s3{getTypeName(){return"HTML"}}class fE extends s3{getTypeName(){return"Style"}}class dE extends s3{getTypeName(){return"Script"}}class hE extends s3{getTypeName(){return"URL"}}class pE extends s3{getTypeName(){return"ResourceURL"}}function Z2(e){return e instanceof s3?e.changingThisBreaksApplicationSecurity:e}function Wt(e,t){const i=function mE(e){return e instanceof s3&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${Yu})`)}return i===t}class ME{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const i=(new window.DOMParser).parseFromString(_4(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class bE{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=_4(t),i}}const HE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ds(e){return(e=String(e)).match(HE)?e:"unsafe:"+e}function fn(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function Ki(...e){const t={};for(const i of e)for(const n in i)i.hasOwnProperty(n)&&(t[n]=!0);return t}const ed=fn("area,br,col,hr,img,wbr"),td=fn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nd=fn("rp,rt"),z0=Ki(ed,Ki(td,fn("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")),Ki(nd,fn("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")),Ki(nd,td)),S0=fn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),id=Ki(S0,fn("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"),fn("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")),VE=fn("script,style,template");class DE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,n=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=this.checkClobberedElement(i,i.nextSibling);if(r){i=r;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!z0.hasOwnProperty(i))return this.sanitizedSomething=!0,!VE.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const n=t.attributes;for(let r=0;r<n.length;r++){const a=n.item(r),s=a.name,o=s.toLowerCase();if(!id.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let c=a.value;S0[o]&&(c=Ds(c)),this.buf.push(" ",s,'="',rd(c),'"')}return this.buf.push(">"),!0}endElement(t){const i=t.nodeName.toLowerCase();z0.hasOwnProperty(i)&&!ed.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(t){this.buf.push(rd(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&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 i}}const zE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,SE=/([^\#-~ |!])/g;function rd(e){return e.replace(/&/g,"&amp;").replace(zE,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(SE,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let zs;function ad(e,t){let i=null;try{zs=zs||function X9(e){const t=new bE(e);return function wE(){try{return!!(new window.DOMParser).parseFromString(_4(""),"text/html")}catch{return!1}}()?new ME(t):t}(e);let n=t?String(t):"";i=zs.getInertBodyElement(n);let r=5,a=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=a,a=i.innerHTML,i=zs.getInertBodyElement(n)}while(n!==a);return _4((new DE).sanitizeChildren(L0(i)||i))}finally{if(i){const n=L0(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function L0(e){return"content"in e&&function LE(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ft=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}(ft||{});function sd(e){const t=Yi();return t?Z9(t.sanitize(ft.HTML,e)||""):Wt(e,"HTML")?Z9(Z2(e)):ad(C4(),fe(e))}function dn(e){const t=Yi();return t?t.sanitize(ft.STYLE,e)||"":Wt(e,"Style")?Z2(e):fe(e)}function y4(e){const t=Yi();return t?t.sanitize(ft.URL,e)||"":Wt(e,"URL")?Z2(e):Ds(fe(e))}function od(e){const t=Yi();if(t)return J9(t.sanitize(ft.RESOURCE_URL,e)||"");if(Wt(e,"ResourceURL"))return J9(Z2(e));throw new k(904,!1)}function Yi(){const e=O();return e&&e[J3].sanitizer}class te{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=$({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Zi=new te("ENVIRONMENT_INITIALIZER"),ld=new te("INJECTOR",-1),ud=new te("INJECTOR_DEF_TYPES");class x0{get(t,i=zi){if(i===zi){const n=new Error(`NullInjectorError: No provider for ${j1(t)}!`);throw n.name="NullInjectorError",n}return i}}function TE(...e){return{\u0275providers:dd(0,e),\u0275fromNgModule:!0}}function dd(e,...t){const i=[],n=new Set;let r;const a=s=>{i.push(s)};return h4(t,s=>{const o=s;Ss(o,a,[],n)&&(r||=[],r.push(o))}),void 0!==r&&hd(r,a),i}function hd(e,t){for(let i=0;i<e.length;i++){const{ngModule:n,providers:r}=e[i];N0(r,a=>{t(a,n)})}}function Ss(e,t,i,n){if(!(e=ue(e)))return!1;let r=null,a=Pa(e);const s=!a&&Le(e);if(a||s){if(s&&!s.standalone)return!1;r=e}else{const c=e.ngModule;if(a=Pa(c),!a)return!1;r=c}const o=n.has(r);if(s){if(o)return!1;if(n.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Ss(l,t,i,n)}}else{if(!a)return!1;{if(null!=a.imports&&!o){let l;n.add(r);try{h4(a.imports,u=>{Ss(u,t,i,n)&&(l||=[],l.push(u))})}finally{}void 0!==l&&hd(l,t)}if(!o){const l=t3(r)||(()=>new r);t({provide:r,useFactory:l,deps:Te},r),t({provide:ud,useValue:r,multi:!0},r),t({provide:Zi,useValue:()=>q(r),multi:!0},r)}const c=a.providers;if(null!=c&&!o){const l=e;N0(c,u=>{t(u,l)})}}}return r!==e&&void 0!==e.providers}function N0(e,t){for(let i of e)H6(i)&&(i=i.\u0275providers),Array.isArray(i)?N0(i,t):t(i)}const IE=Ue({provide:String,useValue:Ue});function A0(e){return null!==e&&"object"==typeof e&&IE in e}function o3(e){return"function"==typeof e}const E0=new te("Set Injector scope."),Ls={},RE={};let T0;function xs(){return void 0===T0&&(T0=new x0),T0}class k2{}class Ns extends k2{get destroyed(){return this._destroyed}constructor(t,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,O0(t,s=>this.processProvider(s)),this.records.set(ld,M4(void 0,this)),r.has("environment")&&this.records.set(k2,M4(void 0,this));const a=this.records.get(E0);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(ud.multi,Te,Ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}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 i=Nn(this),n=A2(void 0);try{return t()}finally{Nn(i),A2(n)}}get(t,i=zi,n=Ce.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(af))return t[af](this);n=Ua(n);const a=Nn(this),s=A2(void 0);try{if(!(n&Ce.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function UE(e){return"function"==typeof e||"object"==typeof e&&e instanceof te}(t)&&ka(t);c=l&&this.injectableDefInScope(l)?M4(I0(t),Ls):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(n&Ce.Self?xs():this.parent).get(t,i=n&Ce.Optional&&i===zi?null:i)}catch(o){if("NullInjectorError"===o.name){if((o[Ba]=o[Ba]||[]).unshift(j1(t)),a)throw o;return function Rx(e,t,i,n){const r=e[Ba];throw t[tf]&&r.unshift(t[tf]),e.message=function kx(e,t,i,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=j1(t);if(Array.isArray(t))r=t.map(j1).join(" -> ");else if("object"==typeof t){let a=[];for(let s in t)if(t.hasOwnProperty(s)){let o=t[s];a.push(s+":"+("string"==typeof o?JSON.stringify(o):j1(o)))}r=`{${a.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${e.replace(Ax,"\n ")}`}("\n"+e.message,r,i,n),e.ngTokenPath=r,e[Ba]=null,e}(o,t,"R3InjectorError",this.source)}throw o}finally{A2(s),Nn(a)}}resolveInjectorInitializers(){const t=Nn(this),i=A2(void 0);try{const r=this.get(Zi.multi,Te,Ce.Self);for(const a of r)a()}finally{Nn(t),A2(i)}}toString(){const t=[],i=this.records;for(const n of i.keys())t.push(j1(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processProvider(t){let i=o3(t=ue(t))?t:ue(t&&t.provide);const n=function PE(e){return A0(e)?M4(void 0,e.useValue):M4(gd(e),Ls)}(t);if(o3(t)||!0!==t.multi)this.records.get(i);else{let r=this.records.get(i);r||(r=M4(void 0,Ls,!0),r.factory=()=>E6(r.multi),this.records.set(i,r)),i=t,r.multi.push(t)}this.records.set(i,n)}hydrate(t,i){return i.value===Ls&&(i.value=RE,i.value=i.factory()),"object"==typeof i.value&&i.value&&function BE(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=ue(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(t){const i=this._onDestroyHooks.indexOf(t);-1!==i&&this._onDestroyHooks.splice(i,1)}}function I0(e){const t=ka(e),i=null!==t?t.factory:t3(e);if(null!==i)return i;if(e instanceof te)throw new k(204,!1);if(e instanceof Function)return function kE(e){const t=e.length;if(t>0)throw Ui(t,"?"),new k(204,!1);const i=function Sx(e){return e&&(e[Fa]||e[Qu])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new k(204,!1)}function gd(e,t,i){let n;if(o3(e)){const r=ue(e);return t3(r)||I0(r)}if(A0(e))n=()=>ue(e.useValue);else if(function md(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...E6(e.deps||[]));else if(function pd(e){return!(!e||!e.useExisting)}(e))n=()=>q(ue(e.useExisting));else{const r=ue(e&&(e.useClass||e.provide));if(!function FE(e){return!!e.deps}(e))return t3(r)||I0(r);n=()=>new r(...E6(e.deps))}return n}function M4(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function O0(e,t){for(const i of e)Array.isArray(i)?O0(i,t):i&&H6(i)?O0(i.\u0275providers,t):t(i)}const As=new te("AppId",{providedIn:"root",factory:()=>jE}),jE="ng",vd=new te("Platform Initializer"),b4=new te("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_d=new te("CSP nonce",{providedIn:"root",factory:()=>C4().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let yd=(e,t,i)=>null;function j0(e,t,i=!1){return yd(e,t,i)}class XE{}class wd{}class tT{resolveComponentFactory(t){throw function eT(e){const t=Error(`No component factory found for ${j1(e)}.`);return t.ngComponent=e,t}(t)}}let ks=(()=>{class t{}return t.NULL=new tT,t})();function nT(){return H4(o2(),O())}function H4(e,t){return new Ne(O2(e,t))}let Ne=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=nT,t})();function iT(e){return e instanceof Ne?e.nativeElement:e}class W0{}let c2=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function rT(){const e=O(),i=K2(o2().index,e);return(T2(i)?i:e)[de]}(),t})(),aT=(()=>{var e;class t{}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),t})();class er{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sT=new er("16.2.1"),q0={};function Sd(e,t=null,i=null,n){const r=Ld(e,t,i,n);return r.resolveInjectorInitializers(),r}function Ld(e,t=null,i=null,n,r=new Set){const a=[i||Te,TE(e)];return n=n||("object"==typeof e?void 0:j1(e)),new Ns(a,t||xs(),n||null,r)}let P1=(()=>{var e;class t{static create(n,r){if(Array.isArray(n))return Sd({name:""},r,n,"");{const a=n.name??"";return Sd({name:a},n.parent,n.providers,a)}}}return(e=t).THROW_IF_NOT_FOUND=zi,e.NULL=new x0,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>q(ld)}),e.__NG_ELEMENT_ID__=-1,t})();function hn(e){return e instanceof Function?e():e}let Z0=(()=>{var e;class t{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new k(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const n of this.callbacks)n.invoke()}finally{this.runningCallbacks=!1;for(const n of this.deferredCallbacks)this.callbacks.add(n);this.deferredCallbacks.clear()}}register(n){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(n)}unregister(n){this.callbacks.delete(n),this.deferredCallbacks.delete(n)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new e}),t})();function tr(e){for(;e;){e[pe]|=64;const t=$i(e);if(P6(e)&&!t)return e;e=t}return null}function Q0(e){return e.ngOriginalError}class c3{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&Q0(t);for(;i&&Q0(i);)i=Q0(i);return i||null}}const Td=new te("",{providedIn:"root",factory:()=>!1});class kd extends Vf{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){tr(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,i,n){const r=Q1(this);this.trackingVersion++;try{t(i,n)}finally{Q1(r)}}destroy(){this.trackingVersion++}}let Fs=null;function Pd(){return Fs??=new kd,Fs}function Fd(e,t){return e[t]??Pd()}function Bd(e,t){const i=Pd();i.hasReadASignal&&(e[t]=Fs,i.lView=e,Fs=new kd)}const me={};function _(e){Ud(xe(),O(),b2()+e,!1)}function Ud(e,t,i,n){if(!n)if(3==(3&t[pe])){const a=e.preOrderCheckHooks;null!==a&&ns(t,a,i)}else{const a=e.preOrderHooks;null!==a&&is(t,a,0,i)}n3(i)}function b(e,t=Ce.Default){const i=O();return null===i?q(e,t):s9(o2(),i,ue(e),t)}function Bs(e,t,i,n,r,a,s,o,c,l,u){const f=t.blueprint.slice();return f[L1]=r,f[pe]=140|n,(null!==l||e&&2048&e[pe])&&(f[pe]|=2048),If(f),f[h1]=f[X3]=e,f[x1]=i,f[J3]=s||e&&e[J3],f[de]=o||e&&e[de],f[An]=c||e&&e[An]||null,f[p2]=a,f[Ti]=function TA(){return EA++}(),f[cn]=u,f[Cf]=l,f[N1]=2==t.type?e[N1]:f,f}function z4(e,t,i,n,r){let a=e.data[t];if(null===a)a=function J0(e,t,i,n,r){const a=Bf(),s=$6(),c=e.data[t]=function LT(e,t,i,n,r,a){let s=t?t.injectorIndex:-1,o=0;return i4()&&(o|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:o,providerIndexes:0,value:r,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,i,t,n,r);return null===e.firstChild&&(e.firstChild=c),null!==a&&(s?null==a.child&&null!==c.parent&&(a.child=c):null===a.next&&(a.next=c,c.prev=a)),c}(e,t,i,n,r),function IN(){return ce.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=i,a.value=n,a.attrs=r;const s=function Oi(){const e=ce.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();a.injectorIndex=null===s?-1:s.injectorIndex}return Gt(a,!0),a}function nr(e,t,i,n){if(0===i)return-1;const r=t.length;for(let a=0;a<i;a++)t.push(n),e.blueprint.push(n),e.data.push(null);return r}function Gd(e,t,i,n,r){const a=Fd(t,Wa),s=b2(),o=2&n;try{if(n3(-1),o&&t.length>we&&Ud(e,t,we,!1),jt(o?2:0,r),o)a.runInContext(i,n,r);else{const l=Q1(null);try{i(n,r)}finally{Q1(l)}}}finally{o&&null===t[Wa]&&Bd(t,Wa),n3(s),jt(o?3:1,r)}}function X0(e,t,i){if(k6(t)){const n=Q1(null);try{const a=t.directiveEnd;for(let s=t.directiveStart;s<a;s++){const o=e.data[s];o.contentQueries&&o.contentQueries(1,i[s],s)}}finally{Q1(n)}}}function el(e,t,i){Ff()&&(function OT(e,t,i,n){const r=i.directiveStart,a=i.directiveEnd;e3(i)&&function jT(e,t,i){const n=O2(t,e),r=$d(i);let s=16;i.signals?s=4096:i.onPush&&(s=64);const o=Us(e,Bs(e,r,null,s,n,t,null,e[J3].rendererFactory.createRenderer(n,i),null,null,null));e[t.index]=o}(t,i,e.data[r+i.componentOffset]),e.firstCreatePass||as(i,t),m2(n,t);const s=i.initialInputs;for(let o=r;o<a;o++){const c=e.data[o],l=i3(t,e,o,i);m2(l,t),null!==s&&GT(0,o-r,l,c,0,s),Dt(c)&&(K2(i.index,t)[x1]=i3(t,e,o,i))}}(e,t,i,O2(i,t)),64==(64&i.flags)&&Zd(e,t,i))}function tl(e,t,i=O2){const n=t.localNames;if(null!==n){let r=t.index+1;for(let a=0;a<n.length;a+=2){const s=n[a+1],o=-1===s?i(t,e):e[s];e[r++]=o}}}function $d(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=nl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function nl(e,t,i,n,r,a,s,o,c,l,u){const f=we+n,p=f+r,m=function wT(e,t){const i=[];for(let n=0;n<t;n++)i.push(n<e?null:me);return i}(f,p),H="function"==typeof l?l():l;return m[K]={type:e,blueprint:m,template:i,queries:null,viewQuery:o,declTNode:t,data:m.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,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:c,consts:H,incompleteFirstPass:!1,ssrId:u}}let Wd=e=>null;function qd(e,t,i,n){for(let r in e)if(e.hasOwnProperty(r)){i=null===i?{}:i;const a=e[r];null===n?Kd(i,t,r,a):n.hasOwnProperty(r)&&Kd(i,t,n[r],a)}return i}function Kd(e,t,i,n){e.hasOwnProperty(i)?e[i].push(t,n):e[i]=[t,n]}function Q2(e,t,i,n,r,a,s,o){const c=O2(t,i);let u,l=t.inputs;!o&&null!=l&&(u=l[n])?(ol(e,i,u,n,r),e3(t)&&function AT(e,t){const i=K2(t,e);16&i[pe]||(i[pe]|=64)}(i,t.index)):3&t.type&&(n=function NT(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(n),r=null!=s?s(r,t.value||"",n):r,a.setProperty(c,n,r))}function il(e,t,i,n){if(Ff()){const r=null===n?null:{"":-1},a=function kT(e,t){const i=e.directiveRegistry;let n=null,r=null;if(i)for(let a=0;a<i.length;a++){const s=i[a];if(hf(t,s.selectors,!1))if(n||(n=[]),Dt(s))if(null!==s.findHostDirectiveDefs){const o=[];r=r||new Map,s.findHostDirectiveDefs(s,o,r),n.unshift(...o,s),rl(e,t,o.length)}else n.unshift(s),rl(e,t,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return null===n?null:[n,r]}(e,i);let s,o;null===a?s=o=null:[s,o]=a,null!==s&&Yd(e,t,i,s,r,o),r&&function PT(e,t,i){if(t){const n=e.localNames=[];for(let r=0;r<t.length;r+=2){const a=i[t[r+1]];if(null==a)throw new k(-301,!1);n.push(t[r],a)}}}(i,n,r)}i.mergedAttrs=xi(i.mergedAttrs,i.attrs)}function Yd(e,t,i,n,r,a){for(let l=0;l<n.length;l++)r0(as(i,t),e,n[l].type);!function BT(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}(i,e.data.length,n.length);for(let l=0;l<n.length;l++){const u=n[l];u.providersResolver&&u.providersResolver(u)}let s=!1,o=!1,c=nr(e,t,n.length,null);for(let l=0;l<n.length;l++){const u=n[l];i.mergedAttrs=xi(i.mergedAttrs,u.hostAttrs),UT(e,i,t,c,u),FT(c,u,r),null!==u.contentQueries&&(i.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(i.flags|=64);const f=u.type.prototype;!s&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks??=[]).push(i.index),s=!0),!o&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(i.index),o=!0),c++}!function xT(e,t,i){const r=t.directiveEnd,a=e.data,s=t.attrs,o=[];let c=null,l=null;for(let u=t.directiveStart;u<r;u++){const f=a[u],p=i?i.get(f):null,H=p?p.outputs:null;c=qd(f.inputs,u,c,p?p.inputs:null),l=qd(f.outputs,u,l,H);const D=null===c||null===s||df(t)?null:$T(c,u,s);o.push(D)}null!==c&&(c.hasOwnProperty("class")&&(t.flags|=8),c.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=o,t.inputs=c,t.outputs=l}(e,i,a)}function Zd(e,t,i){const n=i.directiveStart,r=i.directiveEnd,a=i.index,s=function RN(){return ce.lFrame.currentDirectiveIndex}();try{n3(a);for(let o=n;o<r;o++){const c=e.data[o],l=t[o];q6(o),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&RT(c,l)}}finally{n3(-1),q6(s)}}function RT(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function rl(e,t,i){t.componentOffset=i,(e.components??=[]).push(t.index)}function FT(e,t,i){if(i){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)i[t.exportAs[n]]=e;Dt(t)&&(i[""]=e)}}function UT(e,t,i,n,r){e.data[n]=r;const a=r.factory||(r.factory=t3(r.type)),s=new Ri(a,Dt(r),b);e.blueprint[n]=s,i[n]=s,function TT(e,t,i,n,r){const a=r.hostBindings;if(a){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const o=~t.index;(function IT(e){let t=e.length;for(;t>0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(s)!=o&&s.push(o),s.push(i,n,a)}}(e,t,n,nr(e,i,r.hostVars,me),r)}function qt(e,t,i,n,r,a){const s=O2(e,t);!function al(e,t,i,n,r,a,s){if(null==a)e.removeAttribute(t,r,i);else{const o=null==s?fe(a):s(a,n||"",r);e.setAttribute(t,r,o,i)}}(t[de],s,a,e.value,i,n,r)}function GT(e,t,i,n,r,a){const s=a[t];if(null!==s)for(let o=0;o<s.length;)Qd(n,i,s[o++],s[o++],s[o++])}function Qd(e,t,i,n,r){const a=Q1(null);try{const s=e.inputTransforms;null!==s&&s.hasOwnProperty(n)&&(r=s[n].call(t,r)),null!==e.setInput?e.setInput(t,r,i,n):t[n]=r}finally{Q1(a)}}function $T(e,t,i){let n=null,r=0;for(;r<i.length;){const a=i[r];if(0!==a)if(5!==a){if("number"==typeof a)break;if(e.hasOwnProperty(a)){null===n&&(n=[]);const s=e[a];for(let o=0;o<s.length;o+=2)if(s[o]===t){n.push(a,s[o+1],i[r+1]);break}}r+=2}else r+=2;else r+=4}return n}function Jd(e,t,i,n){return[e,!0,!1,t,null,0,n,i,null,null,null]}function Xd(e,t){const i=e.contentQueries;if(null!==i)for(let n=0;n<i.length;n+=2){const a=i[n+1];if(-1!==a){const s=e.data[a];Y6(i[n]),s.contentQueries(2,t[a],a)}}}function Us(e,t){return e[Ai]?e[_f][Vt]=t:e[Ai]=t,e[_f]=t,t}function sl(e,t,i){Y6(0);const n=Q1(null);try{t(e,i)}finally{Q1(n)}}function eh(e){return e[Q3]||(e[Q3]=[])}function th(e){return e.cleanup||(e.cleanup=[])}function ih(e,t){const i=e[An],n=i?i.get(c3,null):null;n&&n.handleError(t)}function ol(e,t,i,n,r){for(let a=0;a<i.length;){const s=i[a++],o=i[a++];Qd(e.data[s],t[s],n,o,r)}}function pn(e,t,i){const n=Xa(t,e);!function O9(e,t,i){e.setValue(t,i)}(e[de],n,i)}function WT(e,t){const i=K2(t,e),n=i[K];!function qT(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])}(n,i);const r=i[L1];null!==r&&null===i[cn]&&(i[cn]=j0(r,i[An])),cl(n,i,i[x1])}function cl(e,t,i){Z6(t);try{const n=e.viewQuery;null!==n&&sl(1,n,i);const r=e.template;null!==r&&Gd(e,t,r,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Xd(e,t),e.staticViewQueries&&sl(2,e.viewQuery,i);const a=e.components;null!==a&&function KT(e,t){for(let i=0;i<t.length;i++)WT(e,t[i])}(t,a)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{t[pe]&=-5,Q6()}}let rh=(()=>{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(n,r,a){const s=typeof Zone>"u"?null:Zone.current,o=new hN(n,u=>{this.all.has(u)&&this.queue.set(u,s)},a);let c;this.all.add(o),o.notify();const l=()=>{o.cleanup(),c?.(),this.all.delete(o),this.queue.delete(o)};return c=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new e}),t})();function js(e,t,i){let n=i?e.styles:null,r=i?e.classes:null,a=0;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?a=o:1==a?r=b6(r,o):2==a&&(n=b6(n,o+": "+t[++s]+";"))}i?e.styles=n:e.stylesWithoutHost=n,i?e.classes=r:e.classesWithoutHost=r}function ir(e,t,i,n,r=!1){for(;null!==i;){const a=t[i.index];if(null!==a&&n.push(t1(a)),I2(a)){for(let o=s2;o<a.length;o++){const c=a[o],l=c[K].firstChild;null!==l&&ir(c[K],c,l,n)}a[Bt]!==a[L1]&&n.push(a[Bt])}const s=i.type;if(8&s)ir(e,t,i.child,n);else if(32&s){const o=g0(i,t);let c;for(;c=o();)n.push(c)}else if(16&s){const o=$9(t,i);if(Array.isArray(o))n.push(...o);else{const c=$i(t[N1]);ir(c[K],c,o,n,!0)}}i=r?i.projectionNext:i.next}return n}function Gs(e,t,i,n=!0){const r=t[J3],a=r.rendererFactory,s=r.afterRenderEventManager;a.begin?.(),s?.begin();try{ah(e,t,e.template,i)}catch(c){throw n&&ih(t,c),c}finally{a.end?.(),r.effectManager?.flush(),s?.end()}}function ah(e,t,i,n){const r=t[pe];if(256!=(256&r)){t[J3].effectManager?.flush(),Z6(t);try{If(t),function jf(e){return ce.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==i&&Gd(e,t,i,2,n);const s=3==(3&r);if(s){const l=e.preOrderCheckHooks;null!==l&&ns(t,l,null)}else{const l=e.preOrderHooks;null!==l&&is(t,l,0,null),J6(t,0)}if(function QT(e){for(let t=E9(e);null!==t;t=T9(t)){if(!t[yf])continue;const i=t[t4];for(let n=0;n<i.length;n++){HN(i[n])}}}(t),sh(t,2),null!==e.contentQueries&&Xd(e,t),s){const l=e.contentCheckHooks;null!==l&&ns(t,l)}else{const l=e.contentHooks;null!==l&&is(t,l,1),J6(t,1)}!function bT(e,t){const i=e.hostBindingOpCodes;if(null===i)return;const n=Fd(t,qa);try{for(let r=0;r<i.length;r++){const a=i[r];if(a<0)n3(~a);else{const s=a,o=i[++r],c=i[++r];ON(o,s),n.runInContext(c,2,t[s])}}}finally{null===t[qa]&&Bd(t,qa),n3(-1)}}(e,t);const o=e.components;null!==o&&ch(t,o,0);const c=e.viewQuery;if(null!==c&&sl(2,c,n),s){const l=e.viewCheckHooks;null!==l&&ns(t,l)}else{const l=e.viewHooks;null!==l&&is(t,l,2),J6(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[pe]&=-73,Of(t)}finally{Q6()}}}function sh(e,t){for(let i=E9(e);null!==i;i=T9(i))for(let n=s2;n<i.length;n++)oh(i[n],t)}function JT(e,t,i){oh(K2(t,e),i)}function oh(e,t){if(!function bN(e){return 128==(128&e[pe])}(e))return;const i=e[K];if(80&e[pe]&&0===t||1024&e[pe]||2===t)ah(i,e,i.template,e[x1]);else if(e[Ni]>0){sh(e,1);const r=e[K].components;null!==r&&ch(e,r,1)}}function ch(e,t,i){for(let n=0;n<t.length;n++)JT(e,t[n],i)}class rr{get rootNodes(){const t=this._lView,i=t[K];return ir(i,t,i.firstChild,[])}constructor(t,i){this._lView=t,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[x1]}set context(t){this._lView[x1]=t}get destroyed(){return 256==(256&this._lView[pe])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[h1];if(I2(t)){const i=t[8],n=i?i.indexOf(this):-1;n>-1&&(ys(t,n),cs(i,n))}this._attachedToViewContainer=!1}_0(this._lView[K],this._lView)}onDestroy(t){!function kf(e,t){if(256==(256&e[pe]))throw new k(911,!1);null===e[En]&&(e[En]=[]),e[En].push(t)}(this._lView,t)}markForCheck(){tr(this._cdRefInjectingView||this._lView)}detach(){this._lView[pe]&=-129}reattach(){this._lView[pe]|=128}detectChanges(){Gs(this._lView[K],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function KA(e,t){qi(e,t,t[de],2,null,null)}(this._lView[K],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=t}}class XT extends rr{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Gs(t[K],t,t[x1],!1)}checkNoChanges(){}get context(){return null}}class lh extends ks{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=Le(t);return new ar(i,this.ngModule)}}function uh(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class tI{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,n){n=Ua(n);const r=this.injector.get(t,q0,n);return r!==q0||i===q0?r:this.parentInjector.get(t,i,n)}}class ar extends wd{get inputs(){const t=this.componentDef,i=t.inputTransforms,n=uh(t.inputs);if(null!==i)for(const r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return uh(this.componentDef.outputs)}constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function Kx(e){return e.map(qx).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}create(t,i,n,r){let a=(r=r||this.ngModule)instanceof k2?r:r?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const s=a?new tI(t,a):t,o=s.get(W0,null);if(null===o)throw new k(407,!1);const f={rendererFactory:o,sanitizer:s.get(aT,null),effectManager:s.get(rh,null),afterRenderEventManager:s.get(Z0,null)},p=o.createRenderer(null,this.componentDef),m=this.componentDef.selectors[0][0]||"div",H=n?function HT(e,t,i,n){const a=n.get(Td,!1)||i===wt.ShadowDom,s=e.selectRootElement(t,a);return function VT(e){Wd(e)}(s),s}(p,n,this.componentDef.encapsulation,s):Cs(p,m,function eI(e){const t=e.toLowerCase();return"svg"===t?Af:"math"===t?"math":null}(m)),N=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let z=null;null!==H&&(z=j0(H,s,!0));const B=nl(0,null,null,1,0,null,null,null,null,null,null),F=Bs(null,B,null,N,null,null,f,p,s,null,z);let G,ie;Z6(F);try{const ve=this.componentDef;let be,Pe=null;ve.findHostDirectiveDefs?(be=[],Pe=new Map,ve.findHostDirectiveDefs(ve,be,Pe),be.push(ve)):be=[ve];const M1=function iI(e,t){const i=e[K],n=we;return e[n]=t,z4(i,n,2,"#host",null)}(F,H),n2=function rI(e,t,i,n,r,a,s){const o=r[K];!function aI(e,t,i,n){for(const r of e)t.mergedAttrs=xi(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(js(t,t.mergedAttrs,!0),null!==i&&Y9(n,i,t))}(n,e,t,s);let c=null;null!==t&&(c=j0(t,r[An]));const l=a.rendererFactory.createRenderer(t,i);let u=16;i.signals?u=4096:i.onPush&&(u=64);const f=Bs(r,$d(i),null,u,r[e.index],e,a,l,null,null,c);return o.firstCreatePass&&rl(o,e,n.length-1),Us(r,f),r[e.index]=f}(M1,H,ve,be,F,f,p);ie=Tf(B,we),H&&function oI(e,t,i,n){if(n)O6(e,i,["ng-version",sT.full]);else{const{attrs:r,classes:a}=function Yx(e){const t=[],i=[];let n=1,r=2;for(;n<e.length;){let a=e[n];if("string"==typeof a)2===r?""!==a&&t.push(a,e[++n]):8===r&&i.push(a);else{if(!Ht(r))break;r=a}n++}return{attrs:t,classes:i}}(t.selectors[0]);r&&O6(e,i,r),a&&a.length>0&&K9(e,i,a.join(" "))}}(p,ve,H,n),void 0!==i&&function cI(e,t,i){const n=e.projection=[];for(let r=0;r<t.length;r++){const a=i[r];n.push(null!=a?Array.from(a):null)}}(ie,this.ngContentSelectors,i),G=function sI(e,t,i,n,r,a){const s=o2(),o=r[K],c=O2(s,r);Yd(o,r,s,i,null,n);for(let u=0;u<i.length;u++)m2(i3(r,o,s.directiveStart+u,s),r);Zd(o,r,s),c&&m2(c,r);const l=i3(r,o,s.directiveStart+s.componentOffset,s);if(e[x1]=r[x1]=l,null!==a)for(const u of a)u(l,t);return X0(o,s,e),l}(n2,ve,be,Pe,F,[lI]),cl(B,F,null)}finally{Q6()}return new nI(this.componentType,G,H4(ie,F),F,ie)}}class nI extends XE{constructor(t,i,n,r,a){super(),this.location=n,this._rootLView=r,this._tNode=a,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new XT(r),this.componentType=t}setInput(t,i){const n=this._tNode.inputs;let r;if(null!==n&&(r=n[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),i))return;const a=this._rootLView;ol(a[K],a,r,t,i),this.previousInputValues.set(t,i),tr(K2(this._tNode.index,a))}}get injector(){return new w2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function lI(){const e=o2();ts(O()[K],e)}function re(e){let t=function fh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),i=!0;const n=[e];for(;t;){let r;if(Dt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new k(903,!1);r=t.\u0275dir}if(r){if(i){n.push(r);const s=e;s.inputs=$s(e.inputs),s.inputTransforms=$s(e.inputTransforms),s.declaredInputs=$s(e.declaredInputs),s.outputs=$s(e.outputs);const o=r.hostBindings;o&&hI(e,o);const c=r.viewQuery,l=r.contentQueries;if(c&&fI(e,c),l&&dI(e,l),Oa(e.inputs,r.inputs),Oa(e.declaredInputs,r.declaredInputs),Oa(e.outputs,r.outputs),null!==r.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),Oa(s.inputTransforms,r.inputTransforms)),Dt(r)&&r.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const a=r.features;if(a)for(let s=0;s<a.length;s++){const o=a[s];o&&o.ngInherit&&o(e),o===re&&(i=!1)}}t=Object.getPrototypeOf(t)}!function uI(e){let t=0,i=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.hostVars=t+=r.hostVars,r.hostAttrs=xi(r.hostAttrs,i=xi(i,r.hostAttrs))}}(n)}function $s(e){return e===Pt?{}:e===Te?[]:e}function fI(e,t){const i=e.viewQuery;e.viewQuery=i?(n,r)=>{t(n,r),i(n,r)}:t}function dI(e,t){const i=e.contentQueries;e.contentQueries=i?(n,r,a)=>{t(n,r,a),i(n,r,a)}:t}function hI(e,t){const i=e.hostBindings;e.hostBindings=i?(n,r)=>{t(n,r),i(n,r)}:t}function mh(e){const t=e.inputConfig,i={};for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];Array.isArray(r)&&r[2]&&(i[n]=r[2])}e.inputTransforms=i}function Ws(e){return!!function ll(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function g2(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function l3(e,t,i,n){const r=g2(e,t,i);return g2(e,t+1,n)||r}function W(e,t,i,n){const r=O();return g2(r,r4(),t)&&(xe(),qt(v1(),r,e,t,i,n)),W}function L4(e,t,i,n){return g2(e,r4(),i)?t+fe(i)+n:me}function x4(e,t,i,n,r,a){const o=l3(e,function ln(){return ce.lFrame.bindingIndex}(),i,r);return un(2),o?t+fe(i)+n+fe(r)+a:me}function T(e,t,i,n,r,a,s,o){const c=O(),l=xe(),u=e+we,f=l.firstCreatePass?function RI(e,t,i,n,r,a,s,o,c){const l=t.consts,u=z4(t,e,4,s||null,Tn(l,o));il(t,i,u,Tn(l,c)),ts(t,u);const f=u.tView=nl(2,u,n,r,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,u),f.queries=t.queries.embeddedTView(u)),u}(u,l,c,t,i,n,r,a,s):l.data[u];Gt(f,!1);const p=Sh(l,c,f,e);es()&&bs(l,c,p,f),m2(p,c),Us(c,c[u]=Jd(p,c,p,f)),Ya(f)&&el(l,c,f),null!=s&&tl(c,f,o)}let Sh=function Lh(e,t,i,n){return In(!0),t[de].createComment("")};function P2(e){return function n4(e,t){return e[t]}(function TN(){return ce.lFrame.contextLView}(),we+e)}function M(e,t,i){const n=O();return g2(n,r4(),t)&&Q2(xe(),v1(),n,e,t,n[de],i,!1),M}function ml(e,t,i,n,r){const s=r?"class":"style";ol(e,i,t.inputs[s],s,n)}function g(e,t,i,n){const r=O(),a=xe(),s=we+e,o=r[de],c=a.firstCreatePass?function BI(e,t,i,n,r,a){const s=t.consts,c=z4(t,e,2,n,Tn(s,r));return il(t,i,c,Tn(s,a)),null!==c.attrs&&js(c,c.attrs,!1),null!==c.mergedAttrs&&js(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,a,r,t,i,n):a.data[s],l=xh(a,r,c,o,t,e);r[s]=l;const u=Ya(c);return Gt(c,!0),Y9(o,l,c),32!=(32&c.flags)&&es()&&bs(a,r,l,c),0===function DN(){return ce.lFrame.elementDepthCount}()&&m2(l,r),function zN(){ce.lFrame.elementDepthCount++}(),u&&(el(a,r,c),X0(a,c,r)),null!==n&&tl(r,c),g}function v(){let e=o2();$6()?W6():(e=e.parent,Gt(e,!1));const t=e;(function LN(e){return ce.skipHydrationRootTNode===e})(t)&&function EN(){ce.skipHydrationRootTNode=null}(),function SN(){ce.lFrame.elementDepthCount--}();const i=xe();return i.firstCreatePass&&(ts(i,e),k6(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function WN(e){return 0!=(8&e.flags)}(t)&&ml(i,t,O(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function qN(e){return 0!=(16&e.flags)}(t)&&ml(i,t,O(),t.stylesWithoutHost,!1),v}function R(e,t,i,n){return g(e,t,i,n),v(),R}let xh=(e,t,i,n,r,a)=>(In(!0),Cs(n,r,function Qf(){return ce.lFrame.currentNamespace}()));function E1(){return O()}function fr(e){return!!e&&"function"==typeof e.then}function Eh(e){return!!e&&"function"==typeof e.subscribe}function I(e,t,i,n){const r=O(),a=xe(),s=o2();return function Ih(e,t,i,n,r,a,s){const o=Ya(n),l=e.firstCreatePass&&th(e),u=t[x1],f=eh(t);let p=!0;if(3&n.type||s){const D=O2(n,t),S=s?s(D):D,N=f.length,z=s?F=>s(t1(F[n.index])):n.index;let B=null;if(!s&&o&&(B=function qI(e,t,i,n){const r=e.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const s=r[a];if(s===i&&r[a+1]===n){const o=t[Q3],c=r[a+2];return o.length>c?o[c]:null}"string"==typeof s&&(a+=2)}return null}(e,t,r,n.index)),null!==B)(B.__ngLastListenerFn__||B).__ngNextListenerFn__=a,B.__ngLastListenerFn__=a,p=!1;else{a=Rh(n,t,u,a,!1);const F=i.listen(S,r,a);f.push(a,F),l&&l.push(r,z,N,N+1)}}else a=Rh(n,t,u,a,!1);const m=n.outputs;let H;if(p&&null!==m&&(H=m[r])){const D=H.length;if(D)for(let S=0;S<D;S+=2){const G=t[H[S]][H[S+1]].subscribe(a),ie=f.length;f.push(a,G),l&&l.push(r,n.index,ie,-(ie+1))}}}(a,r,r[de],s,e,t,n),I}function Oh(e,t,i,n){try{return jt(6,t,i),!1!==i(n)}catch(r){return ih(e,r),!1}finally{jt(7,t,i)}}function Rh(e,t,i,n,r){return function a(s){if(s===Function)return n;tr(e.componentOffset>-1?K2(e.index,t):t);let c=Oh(t,i,n,s),l=a.__ngNextListenerFn__;for(;l;)c=Oh(t,i,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function A(e=1){return function PN(e){return(ce.lFrame.contextLView=function FN(e,t){for(;e>0;)t=t[X3],e--;return t}(e,ce.lFrame.contextLView))[x1]}(e)}function KI(e,t){let i=null;const n=function jx(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(!(1&i))return t[i+1]}return null}(e);for(let r=0;r<t.length;r++){const a=t[r];if("*"!==a){if(null===n?hf(e,a,!0):Wx(n,a))return r}else i=r}return i}function R4(e){const t=O()[N1][p2];if(!t.projection){const n=t.projection=Ui(e?e.length:1,null),r=n.slice();let a=t.child;for(;null!==a;){const s=e?KI(a,e):0;null!==s&&(r[s]?r[s].projectionNext=a:n[s]=a,r[s]=a),a=a.next}}}function k4(e,t=0,i){const n=O(),r=xe(),a=z4(r,we+e,16,null,i||null);null===a.projection&&(a.projection=t),W6(),(!n[cn]||i4())&&32!=(32&a.flags)&&function nE(e,t,i){q9(t[de],0,t,i,y0(e,i,t),B9(i.parent||t[p2],i,t))}(r,n,a)}function _l(e,t,i){return P4(e,"",t,"",i),_l}function P4(e,t,i,n,r){const a=O(),s=L4(a,t,i,n);return s!==me&&Q2(xe(),v1(),a,e,s,a[de],r,!1),P4}function Qs(e,t){return e<<17|t<<2}function Rn(e){return e>>17&32767}function Cl(e){return 2|e}function u3(e){return(131068&e)>>2}function yl(e,t){return-131069&e|t<<2}function Ml(e){return 1|e}function Wh(e,t,i,n,r){const a=e[i+1],s=null===t;let o=n?Rn(a):u3(a),c=!1;for(;0!==o&&(!1===c||s);){const u=e[o+1];eO(e[o],t)&&(c=!0,e[o+1]=n?Ml(u):Cl(u)),o=n?Rn(u):u3(u)}c&&(e[i+1]=n?Cl(a):Ml(a))}function eO(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&p4(e,t)>=0}const $1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qh(e){return e.substring($1.key,$1.keyEnd)}function Kh(e,t){const i=$1.textEnd;return i===t?-1:(t=$1.keyEnd=function rO(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}(e,$1.key=t,i),F4(e,t,i))}function F4(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function Se(e,t){return function zt(e,t,i,n){const r=O(),a=xe(),s=un(2);a.firstUpdatePass&&tp(a,e,s,n),t!==me&&g2(r,s,t)&&ip(a,a.data[b2()],r,r[de],e,r[s+1]=function mO(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=j1(Z2(e)))),e}(t,i),n,s)}(e,t,null,!0),Se}function mn(e){!function St(e,t,i,n){const r=xe(),a=un(2);r.firstUpdatePass&&tp(r,null,a,n);const s=O();if(i!==me&&g2(s,a,i)){const o=r.data[b2()];if(ap(o,n)&&!ep(r,a)){let c=n?o.classesWithoutHost:o.stylesWithoutHost;null!==c&&(i=b6(c,i||"")),ml(r,o,s,i,n)}else!function pO(e,t,i,n,r,a,s,o){r===me&&(r=Te);let c=0,l=0,u=0<r.length?r[0]:null,f=0<a.length?a[0]:null;for(;null!==u||null!==f;){const p=c<r.length?r[c+1]:void 0,m=l<a.length?a[l+1]:void 0;let D,H=null;u===f?(c+=2,l+=2,p!==m&&(H=f,D=m)):null===f||null!==u&&u<f?(c+=2,H=u):(l+=2,H=f,D=m),null!==H&&ip(e,t,i,n,H,D,s,o),u=c<r.length?r[c]:null,f=l<a.length?a[l]:null}}(r,o,s,s[de],s[a+1],s[a+1]=function dO(e,t,i){if(null==i||""===i)return Te;const n=[],r=Z2(i);if(Array.isArray(r))for(let a=0;a<r.length;a++)e(n,r[a],!0);else if("object"==typeof r)for(const a in r)r.hasOwnProperty(a)&&e(n,a,r[a]);else"string"==typeof r&&t(n,r);return n}(e,t,i),n,a)}}(hO,Zt,e,!0)}function Zt(e,t){for(let i=function nO(e){return function Zh(e){$1.key=0,$1.keyEnd=0,$1.value=0,$1.valueEnd=0,$1.textEnd=e.length}(e),Kh(e,F4(e,0,$1.textEnd))}(t);i>=0;i=Kh(t,i))Y2(e,qh(t),!0)}function ep(e,t){return t>=e.expandoStartIndex}function tp(e,t,i,n){const r=e.data;if(null===r[i+1]){const a=r[b2()],s=ep(e,i);ap(a,n)&&null===t&&!s&&(t=!1),t=function cO(e,t,i,n){const r=function K6(e){const t=ce.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(i=dr(i=bl(null,e,t,i,n),t.attrs,n),a=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(i=bl(r,e,t,i,n),null===a){let c=function lO(e,t,i){const n=i?t.classBindings:t.styleBindings;if(0!==u3(n))return e[Rn(n)]}(e,t,n);void 0!==c&&Array.isArray(c)&&(c=bl(null,e,t,c[1],n),c=dr(c,t.attrs,n),function uO(e,t,i,n){e[Rn(i?t.classBindings:t.styleBindings)]=n}(e,t,n,c))}else a=function fO(e,t,i){let n;const r=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<r;a++)n=dr(n,e[a].hostAttrs,i);return dr(n,t.attrs,i)}(e,t,n)}return void 0!==a&&(n?t.residualClasses=a:t.residualStyles=a),i}(r,a,t,n),function JI(e,t,i,n,r,a){let s=a?t.classBindings:t.styleBindings,o=Rn(s),c=u3(s);e[n]=i;let u,l=!1;if(Array.isArray(i)?(u=i[1],(null===u||p4(i,u)>0)&&(l=!0)):u=i,r)if(0!==c){const p=Rn(e[o+1]);e[n+1]=Qs(p,o),0!==p&&(e[p+1]=yl(e[p+1],n)),e[o+1]=function ZI(e,t){return 131071&e|t<<17}(e[o+1],n)}else e[n+1]=Qs(o,0),0!==o&&(e[o+1]=yl(e[o+1],n)),o=n;else e[n+1]=Qs(c,0),0===o?o=n:e[c+1]=yl(e[c+1],n),c=n;l&&(e[n+1]=Cl(e[n+1])),Wh(e,u,n,!0),Wh(e,u,n,!1),function XI(e,t,i,n,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&p4(a,t)>=0&&(i[n+1]=Ml(i[n+1]))}(t,u,e,n,a),s=Qs(o,c),a?t.classBindings=s:t.styleBindings=s}(r,a,t,i,s,n)}}function bl(e,t,i,n,r){let a=null;const s=i.directiveEnd;let o=i.directiveStylingLast;for(-1===o?o=i.directiveStart:o++;o<s&&(a=t[o],n=dr(n,a.hostAttrs,r),a!==e);)o++;return null!==e&&(i.directiveStylingLast=o),n}function dr(e,t,i){const n=i?1:2;let r=-1;if(null!==t)for(let a=0;a<t.length;a++){const s=t[a];"number"==typeof s?r=s:r===n&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Y2(e,s,!!i||t[++a]))}return void 0===e?null:e}function hO(e,t,i){const n=String(t);""!==n&&!n.includes(" ")&&Y2(e,n,i)}function ip(e,t,i,n,r,a,s,o){if(!(3&t.type))return;const c=e.data,l=c[o+1],u=function QI(e){return 1==(1&e)}(l)?rp(c,t,i,r,u3(l),s):void 0;Js(u)||(Js(a)||function YI(e){return 2==(2&e)}(l)&&(a=rp(c,null,i,r,o,s)),function rE(e,t,i,n,r){if(t)r?e.addClass(i,n):e.removeClass(i,n);else{let a=-1===n.indexOf("-")?void 0:On.DashCase;null==r?e.removeStyle(i,n,a):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),a|=On.Important),e.setStyle(i,n,r,a))}}(n,s,Xa(b2(),i),r,a))}function rp(e,t,i,n,r,a){const s=null===t;let o;for(;r>0;){const c=e[r],l=Array.isArray(c),u=l?c[1]:c,f=null===u;let p=i[r+1];p===me&&(p=f?Te:void 0);let m=f?o0(p,n):u===n?p:void 0;if(l&&!Js(m)&&(m=o0(c,n)),Js(m)&&(o=m,s))return o;const H=e[r+1];r=s?Rn(H):u3(H)}if(null!==t){let c=a?t.residualClasses:t.residualStyles;null!=c&&(o=o0(c,n))}return o}function Js(e){return void 0!==e}function ap(e,t){return 0!=(e.flags&(t?8:16))}function y(e,t=""){const i=O(),n=xe(),r=e+we,a=n.firstCreatePass?z4(n,r,1,t,null):n.data[r],s=sp(n,i,a,t,e);i[r]=s,es()&&bs(n,i,s,a),Gt(a,!1)}let sp=(e,t,i,n,r)=>(In(!0),function _s(e,t){return e.createText(t)}(t[de],n));function ht(e){return J2("",e,""),ht}function J2(e,t,i){const n=O(),r=L4(n,e,t,i);return r!==me&&pn(n,b2(),r),J2}function B4(e,t,i,n,r){const a=O(),s=x4(a,e,t,i,n,r);return s!==me&&pn(a,b2(),s),B4}function H2(e,t,i){const n=O();return g2(n,r4(),t)&&Q2(xe(),v1(),n,e,t,n[de],i,!0),H2}const j4="en-US";let Dp=j4;function Vl(e,t,i,n,r){if(e=ue(e),Array.isArray(e))for(let a=0;a<e.length;a++)Vl(e[a],t,i,n,r);else{const a=xe(),s=O(),o=o2();let c=o3(e)?e:ue(e.provide);const l=gd(e),u=1048575&o.providerIndexes,f=o.directiveStart,p=o.providerIndexes>>20;if(o3(e)||!e.multi){const m=new Ri(l,r,b),H=zl(c,t,r?u:u+p,f);-1===H?(r0(as(o,s),a,c),Dl(a,e,t.length),t.push(c),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),i.push(m),s.push(m)):(i[H]=m,s[H]=m)}else{const m=zl(c,t,u+p,f),H=zl(c,t,u,u+p),S=H>=0&&i[H];if(r&&!S||!r&&!(m>=0&&i[m])){r0(as(o,s),a,c);const N=function IR(e,t,i,n,r){const a=new Ri(e,i,b);return a.multi=[],a.index=t,a.componentProviders=0,Qp(a,r,n&&!i),a}(r?TR:ER,i.length,r,n,l);!r&&S&&(i[H].providerFactory=N),Dl(a,e,t.length,0),t.push(c),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),i.push(N),s.push(N)}else Dl(a,e,m>-1?m:H,Qp(i[r?H:m],l,!r&&n));!r&&n&&S&&i[H].componentProviders++}}}function Dl(e,t,i,n){const r=o3(t),a=function OE(e){return!!e.useClass}(t);if(r||a){const c=(a?ue(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const u=l.indexOf(i);-1===u?l.push(i,[n,c]):l[u+1].push(n,c)}else l.push(i,c)}}}function Qp(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function zl(e,t,i,n){for(let r=i;r<n;r++)if(t[r]===e)return r;return-1}function ER(e,t,i,n){return Sl(this.multi,[])}function TR(e,t,i,n){const r=this.multi;let a;if(this.providerFactory){const s=this.providerFactory.componentProviders,o=i3(i,i[K],this.providerFactory.index,n);a=o.slice(0,s),Sl(r,a);for(let c=s;c<o.length;c++)a.push(o[c])}else a=[],Sl(r,a);return a}function Sl(e,t){for(let i=0;i<e.length;i++)t.push((0,e[i])());return t}function Qe(e,t=[]){return i=>{i.providersResolver=(n,r)=>function AR(e,t,i){const n=xe();if(n.firstCreatePass){const r=Dt(e);Vl(i,n.data,n.blueprint,r,!0),Vl(t,n.data,n.blueprint,r,!1)}}(n,r?r(e):e,t)}}class d3{}class Jp{}class Ll extends d3{constructor(t,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new lh(this);const r=q2(t);this._bootstrapComponents=hn(r.bootstrap),this._r3Injector=Ld(t,i,[{provide:d3,useValue:this},{provide:ks,useValue:this.componentFactoryResolver},...n],j1(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(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class xl extends Jp{constructor(t){super(),this.moduleType=t}create(t){return new Ll(this.moduleType,t,[])}}class Xp extends d3{constructor(t){super(),this.componentFactoryResolver=new lh(this),this.instance=null;const i=new Ns([...t.providers,{provide:d3,useValue:this},{provide:ks,useValue:this.componentFactoryResolver}],t.parent||xs(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Nl(e,t,i=null){return new Xp({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let kR=(()=>{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 r=dd(0,n.type),a=r.length>0?Nl([r],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=$({token:e,providedIn:"environment",factory:()=>new e(q(k2))}),t})();function D2(e){e.getStandaloneInjector=t=>t.get(kR).getOrCreateStandaloneInjector(e)}function yr(e,t,i,n,r){return function om(e,t,i,n,r,a,s){const o=t+i;return l3(e,o,r,a)?function Kt(e,t,i){return e[t]=i}(e,o+2,s?n.call(s,r,a):n(r,a)):function Mr(e,t){const i=e[t];return i===me?void 0:i}(e,o+2)}(O(),function M2(){const e=ce.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,i,n,r)}function Tl(e){return t=>{setTimeout(e,void 0,t)}}const ee=class ok extends he{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,n){let r=t,a=i||(()=>null),s=n;if(t&&"object"==typeof t){const c=t;r=c.next?.bind(c),a=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(a=Tl(a),r&&(r=Tl(r)),s&&(s=Tl(s)));const o=super.subscribe({next:r,error:a,complete:s});return t instanceof De&&t.add(o),o}};function ck(){return this._results[Symbol.iterator]()}class Il{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 i=Il.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=ck)}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,i){return this._results.reduce(t,i)}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,i){const n=this;n.dirty=!1;const r=function ut(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function oA(e,t,i){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],a=t[n];if(i&&(r=i(r),a=i(a)),a!==r)return!1}return!0}(n._results,r,i))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function uk(e,t,i,n=!0){const r=t[K];if(function ZA(e,t,i,n){const r=s2+n,a=i.length;n>0&&(i[r-1][Vt]=t),n<a-s2?(t[Vt]=i[r],d9(i,s2+n,t)):(i.push(t),t[Vt]=null),t[h1]=i;const s=t[Ei];null!==s&&i!==s&&function QA(e,t){const i=e[t4];t[N1]!==t[h1][h1][N1]&&(e[yf]=!0),null===i?e[t4]=[t]:i.push(t)}(s,t);const o=t[Ft];null!==o&&o.insertView(e),t[pe]|=128}(r,t,e,i),n){const a=b0(i,e),s=t[de],o=Ms(s,e[Bt]);null!==o&&function qA(e,t,i,n,r,a){n[L1]=r,n[p2]=t,qi(e,n,i,1,r,a)}(r,e[p2],s,t,o,a)}}let o1=(()=>{class t{}return t.__NG_ELEMENT_ID__=hk,t})();const fk=o1,dk=class extends fk{constructor(t,i,n){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,i){return this.createEmbeddedViewImpl(t,i)}createEmbeddedViewImpl(t,i,n){const r=function lk(e,t,i,n){const r=t.tView,o=Bs(e,r,i,4096&e[pe]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);o[Ei]=e[t.index];const l=e[Ft];return null!==l&&(o[Ft]=l.createEmbeddedView(r)),cl(r,o,i),o}(this._declarationLView,this._declarationTContainer,t,{injector:i,hydrationInfo:n});return new rr(r)}};function hk(){return io(o2(),O())}function io(e,t){return 4&e.type?new dk(t,e,H4(e,t)):null}let B2=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ck,t})();function Ck(){return vm(o2(),O())}const yk=B2,mm=class extends yk{constructor(t,i,n){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=n}get element(){return H4(this._hostTNode,this._hostLView)}get injector(){return new w2(this._hostTNode,this._hostLView)}get parentInjector(){const t=ss(this._hostTNode,this._hostLView);if(e0(t)){const i=Pi(t,this._hostLView),n=ki(t);return new w2(i[K].data[n+8],i)}return new w2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=gm(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-s2}createEmbeddedView(t,i,n){let r,a;"number"==typeof n?r=n:null!=n&&(r=n.index,a=n.injector);const o=t.createEmbeddedViewImpl(i||{},a,null);return this.insertImpl(o,r,false),o}createComponent(t,i,n,r,a){const s=t&&!function Bi(e){return"function"==typeof e}(t);let o;if(s)o=i;else{const D=i||{};o=D.index,n=D.injector,r=D.projectableNodes,a=D.environmentInjector||D.ngModuleRef}const c=s?t:new ar(Le(t)),l=n||this.parentInjector;if(!a&&null==c.ngModule){const S=(s?l:this.parentInjector).get(k2,null);S&&(a=S)}Le(c.componentType??{});const m=c.create(l,r,null,a);return this.insertImpl(m.hostView,o,false),m}insert(t,i){return this.insertImpl(t,i,!1)}insertImpl(t,i,n){const r=t._lView;if(function wN(e){return I2(e[h1])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const l=r[h1],u=new mm(l,l[p2],l[h1]);u.detach(u.indexOf(t))}}const s=this._adjustIndex(i),o=this._lContainer;return uk(o,r,s,!n),t.attachToViewContainerRef(),d9(Ol(o),s,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=gm(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),n=ys(this._lContainer,i);n&&(cs(Ol(this._lContainer),i),_0(n[K],n))}detach(t){const i=this._adjustIndex(t,-1),n=ys(this._lContainer,i);return n&&null!=cs(Ol(this._lContainer),i)?new rr(n):null}_adjustIndex(t,i=0){return t??this.length+i}};function gm(e){return e[8]}function Ol(e){return e[8]||(e[8]=[])}function vm(e,t){let i;const n=t[e.index];return I2(n)?i=n:(i=Jd(n,t,null,e),t[e.index]=i,Us(t,i)),_m(i,t,e,n),new mm(i,e,t)}let _m=function Cm(e,t,i,n){if(e[Bt])return;let r;r=8&i.type?t1(n):function Mk(e,t){const i=e[de],n=i.createComment(""),r=O2(t,e);return a3(i,Ms(i,r),n,function tE(e,t){return e.nextSibling(t)}(i,r),!1),n}(t,i),e[Bt]=r};class Rl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Rl(this.queryList)}setDirty(){this.queryList.setDirty()}}class kl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const n=null!==t.contentQueries?t.contentQueries[0]:i.length,r=[];for(let a=0;a<n;a++){const s=i.getByIndex(a);r.push(this.queries[s.indexInDeclarationView].clone())}return new kl(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let i=0;i<this.queries.length;i++)null!==Hm(t,i).matches&&this.queries[i].setDirty()}}class ym{constructor(t,i,n=null){this.predicate=t,this.flags=i,this.read=n}}class Pl{constructor(t=[]){this.queries=t}elementStart(t,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,i)}elementEnd(t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(t)}embeddedTView(t){let i=null;for(let n=0;n<this.length;n++){const r=null!==i?i.length:0,a=this.getByIndex(n).embeddedTView(t,r);a&&(a.indexInDeclarationView=n,null!==i?i.push(a):i=[a])}return null!==i?new Pl(i):null}template(t,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,i)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Fl{constructor(t,i=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(t,i){this.isApplyingToNode(i)&&this.matchTNode(t,i)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,i){this.elementStart(t,i)}embeddedTView(t,i){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,i),new Fl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const i=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==i;)n=n.parent;return i===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,i){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const a=n[r];this.matchTNodeWithReadOption(t,i,Hk(i,a)),this.matchTNodeWithReadOption(t,i,os(i,t,a,!1,!1))}else n===o1?4&i.type&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,os(i,t,n,!1,!1))}matchTNodeWithReadOption(t,i,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Ne||r===B2||r===o1&&4&i.type)this.addMatch(i.index,-2);else{const a=os(i,t,r,!1,!1);null!==a&&this.addMatch(i.index,a)}else this.addMatch(i.index,n)}}addMatch(t,i){null===this.matches?this.matches=[t,i]:this.matches.push(t,i)}}function Hk(e,t){const i=e.localNames;if(null!==i)for(let n=0;n<i.length;n+=2)if(i[n]===t)return i[n+1];return null}function Dk(e,t,i,n){return-1===i?function Vk(e,t){return 11&e.type?H4(e,t):4&e.type?io(e,t):null}(t,e):-2===i?function zk(e,t,i){return i===Ne?H4(t,e):i===o1?io(t,e):i===B2?vm(t,e):void 0}(e,t,n):i3(e,e[K],i,t)}function Mm(e,t,i,n){const r=t[Ft].queries[n];if(null===r.matches){const a=e.data,s=i.matches,o=[];for(let c=0;c<s.length;c+=2){const l=s[c];o.push(l<0?null:Dk(t,a[l],s[c+1],i.metadata.read))}r.matches=o}return r.matches}function Bl(e,t,i,n){const r=e.queries.getByIndex(i),a=r.matches;if(null!==a){const s=Mm(e,t,r,i);for(let o=0;o<a.length;o+=2){const c=a[o];if(c>0)n.push(s[o/2]);else{const l=a[o+1],u=t[-c];for(let f=s2;f<u.length;f++){const p=u[f];p[Ei]===p[h1]&&Bl(p[K],p,l,n)}if(null!==u[t4]){const f=u[t4];for(let p=0;p<f.length;p++){const m=f[p];Bl(m[K],m,l,n)}}}}}return n}function je(e){const t=O(),i=xe(),n=$f();Y6(n+1);const r=Hm(i,n);if(e.dirty&&function MN(e){return 4==(4&e[pe])}(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?Bl(i,t,n,[]):Mm(i,t,r,n);e.reset(a,iT),e.notifyOnChanges()}return!0}return!1}function _1(e,t,i,n){const r=xe();if(r.firstCreatePass){const a=o2();wm(r,new ym(t,i,n),a.index),function Lk(e,t){const i=e.contentQueries||(e.contentQueries=[]);t!==(i.length?i[i.length-1]:-1)&&i.push(e.queries.length-1,t)}(r,e),2==(2&i)&&(r.staticContentQueries=!0)}bm(r,O(),i)}function Ge(){return function Sk(e,t){return e[Ft].queries[t].queryList}(O(),$f())}function bm(e,t,i){const n=new Il(4==(4&i));(function ST(e,t,i,n){const r=eh(t);r.push(i),e.firstCreatePass&&th(e).push(n,r.length-1)})(e,t,n,n.destroy),null===t[Ft]&&(t[Ft]=new kl),t[Ft].queries.push(new Rl(n))}function wm(e,t,i){null===e.queries&&(e.queries=new Pl),e.queries.track(new Fl(t,i))}function Hm(e,t){return e.queries.getByIndex(t)}function z2(e,t){return io(e,t)}const ql=new te("Application Initializer");let Kl=(()=>{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=J(ql,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const a of this.appInits){const s=a();if(fr(s))n.push(s);else if(Eh(s)){const o=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});n.push(o)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(a=>{this.reject(a)}),0===n.length&&r(),this.initialized=!0}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Bm=(()=>{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=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const Lt=new te("LocaleId",{providedIn:"root",factory:()=>J(Lt,Ce.Optional|Ce.SkipSelf)||function Zk(){return typeof $localize<"u"&&$localize.locale||j4}()});let Um=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new C2(!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=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Xk{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let jm=(()=>{var e;class t{compileModuleSync(n){return new xl(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=hn(q2(n).declarations).reduce((o,c)=>{const l=Le(c);return l&&o.push(new ar(l)),o},[]);return new Xk(r,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=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function qm(...e){}class He{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!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 k(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function CP(){const e="function"==typeof Ze.requestAnimationFrame;let t=Ze[e?"requestAnimationFrame":"setTimeout"],i=Ze[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&i){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function bP(e){const t=()=>{!function MP(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ze,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Jl(e),e.isCheckStableRunning=!0,Ql(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Jl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,a,s,o)=>{try{return Km(e),i.invokeTask(r,a,s,o)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),Ym(e)}},onInvoke:(i,n,r,a,s,o,c)=>{try{return Km(e),i.invoke(r,a,s,o,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ym(e)}},onHasTask:(i,n,r,a)=>{i.hasTask(r,a),n===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,Jl(e),Ql(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,n,r,a)=>(i.handleError(r,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!He.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(He.isInAngularZone())throw new k(909,!1)}run(t,i,n){return this._inner.run(t,i,n)}runTask(t,i,n,r){const a=this._inner,s=a.scheduleEventTask("NgZoneEvent: "+r,t,yP,qm,qm);try{return a.runTask(s,i,n)}finally{a.cancelTask(s)}}runGuarded(t,i,n){return this._inner.runGuarded(t,i,n)}runOutsideAngular(t){return this._outer.run(t)}}const yP={};function Ql(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 Jl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Km(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ym(e){e._nesting--,Ql(e)}class wP{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,i,n){return t.apply(i,n)}runGuarded(t,i,n){return t.apply(i,n)}runOutsideAngular(t){return t()}runTask(t,i,n,r){return t.apply(i,n)}}const Zm=new te("",{providedIn:"root",factory:Qm});function Qm(){const e=J(He);let t=!0;return C6(new We(r=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(t),r.complete()})}),new We(r=>{let a;e.runOutsideAngular(()=>{a=e.onStable.subscribe(()=>{He.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,r.next(!0))})})});const s=e.onUnstable.subscribe(()=>{He.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{a.unsubscribe(),s.unsubscribe()}}).pipe(y6()))}const Jm=new te(""),oo=new te("");let t8,Xl=(()=>{var e;class t{constructor(n,r,a){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,t8||(function HP(e){t8=e}(a),a.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{He.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(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,a){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}whenStable(n,r,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,r,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,a){return[]}}return(e=t).\u0275fac=function(n){return new(n||e)(q(He),q(e8),q(oo))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})(),e8=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return t8?.findTestabilityInTree(this,n,r)??null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),kn=null;const Xm=new te("AllowMultipleToken"),n8=new te("PlatformDestroyListeners"),i8=new te("appBootstrapListener");class tg{constructor(t,i){this.name=t,this.token=i}}function ig(e,t,i=[]){const n=`Platform: ${t}`,r=new te(n);return(a=[])=>{let s=r8();if(!s||s.injector.get(Xm,!1)){const o=[...i,...a,{provide:r,useValue:!0}];e?e(o):function zP(e){if(kn&&!kn.get(Xm,!1))throw new k(400,!1);(function eg(){!function fN(e){Df=e}(()=>{throw new k(600,!1)})})(),kn=e;const t=e.get(ag);(function ng(e){e.get(vd,null)?.forEach(i=>i())})(e)}(function rg(e=[],t){return P1.create({name:t,providers:[{provide:E0,useValue:"platform"},{provide:n8,useValue:new Set([()=>kn=null])},...e]})}(o,n))}return function LP(e){const t=r8();if(!t)throw new k(401,!1);return t}()}}function r8(){return kn?.get(ag)??null}let ag=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function xP(e="zone.js",t){return"noop"===e?new wP:"zone.js"===e?new He(t):e}(r?.ngZone,function sg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return a.run(()=>{const s=function RR(e,t,i){return new Ll(e,t,i)}(n.moduleType,this.injector,function fg(e){return[{provide:He,useFactory:e},{provide:Zi,multi:!0,useFactory:()=>{const t=J(AP,{optional:!0});return()=>t.initialize()}},{provide:ug,useFactory:NP},{provide:Zm,useFactory:Qm}]}(()=>a)),o=s.injector.get(c3,null);return a.runOutsideAngular(()=>{const c=a.onError.subscribe({next:l=>{o.handleError(l)}});s.onDestroy(()=>{co(this._modules,s),c.unsubscribe()})}),function og(e,t,i){try{const n=i();return fr(n)?n.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(o,a,()=>{const c=s.injector.get(Kl);return c.runInitializers(),c.donePromise.then(()=>(function zp(e){lt(e,"Expected localeId to be defined"),"string"==typeof e&&(Dp=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(Lt,j4)||j4),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const a=cg({},r);return function VP(e,t,i){const n=new xl(i);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,a))}_moduleDoBootstrap(n){const r=n.injector.get(Qt);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>r.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new k(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(n8,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(n){return new(n||e)(q(P1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function cg(e,t){return Array.isArray(t)?t.reduce(cg,e):{...e,...t}}let Qt=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=J(ug),this.zoneIsStable=J(Zm),this.componentTypes=[],this.components=[],this.isStable=J(Um).hasPendingTasks.pipe(bt(n=>n?ae(!1):this.zoneIsStable),function Ku(e,t=yt){return e=e??yx,f1((i,n)=>{let r,a=!0;i.subscribe(Ke(n,s=>{const o=t(s);(a||!e(r,o))&&(a=!1,r=o,n.next(s))}))})}(),y6()),this._injector=J(k2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const a=n instanceof wd;if(!this._injector.get(Kl).done)throw!a&&function Z3(e){const t=Le(e)||a2(e)||y2(e);return null!==t&&t.standalone}(n),new k(405,!1);let o;o=a?n:this._injector.get(ks).resolveComponentFactory(n),this.componentTypes.push(o.componentType);const c=function DP(e){return e.isBoundToModule}(o)?void 0:this._injector.get(d3),u=o.create(P1.NULL,[],r||o.selector,c),f=u.location.nativeElement,p=u.injector.get(Jm,null);return p?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),co(this.components,u),p?.unregisterApplication(f)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new k(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 r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;co(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(i8,[]);r.push(...this._bootstrapListeners),r.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),()=>co(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new k(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=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function co(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const ug=new te("",{providedIn:"root",factory:()=>J(c3).handleError.bind(void 0)});function NP(){const e=J(He),t=J(c3);return i=>e.runOutsideAngular(()=>t.handleError(i))}let AP=(()=>{var e;class t{constructor(){this.zone=J(He),this.applicationRef=J(Qt)}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=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();let X2=(()=>{class t{}return t.__NG_ELEMENT_ID__=TP,t})();function TP(e){return function IP(e,t,i){if(e3(e)&&!i){const n=K2(e.index,t);return new rr(n,n)}return 47&e.type?new rr(t[N1],t):null}(o2(),O(),16==(16&e))}class mg{constructor(){}supports(t){return Ws(t)}create(t){return new BP(t)}}const FP=(e,t)=>t;class BP{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||FP}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,n=this._removalsHead,r=0,a=null;for(;i||n;){const s=!n||i&&i.currentIndex<vg(n,r,a)?i:n,o=vg(s,r,a),c=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(i=i._next,null==s.previousIndex)r++;else{a||(a=[]);const l=o-r,u=c-r;if(l!=u){for(let p=0;p<l;p++){const m=p<a.length?a[p]:a[p]=0,H=m+p;u<=H&&H<l&&(a[p]=m+1)}a[s.previousIndex]=u-l}}o!==c&&t(s,o,c)}}forEachPreviousItem(t){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)t(i)}forEachMovedItem(t){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)t(i)}forEachIdentityChange(t){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)t(i)}diff(t){if(null==t&&(t=[]),!Ws(t))throw new k(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,a,s,i=this._itHead,n=!1;if(Array.isArray(t)){this.length=t.length;for(let o=0;o<this.length;o++)a=t[o],s=this._trackByFn(o,a),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,a,s,o)),Object.is(i.item,a)||this._addIdentityChange(i,a)):(i=this._mismatch(i,a,s,o),n=!0),i=i._next}else r=0,function CI(e,t){if(Array.isArray(e))for(let i=0;i<e.length;i++)t(e[i]);else{const i=e[Symbol.iterator]();let n;for(;!(n=i.next()).done;)t(n.value)}}(t,o=>{s=this._trackByFn(r,o),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,o,s,r)),Object.is(i.item,o)||this._addIdentityChange(i,o)):(i=this._mismatch(i,o,s,r),n=!0),i=i._next,r++}),this.length=r;return this._truncate(i),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,i,n,r){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,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,a,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,a,r)):t=this._addAfter(new UP(i,n),a,r),t}_verifyReinsertion(t,i,n,r){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==a?t=this._reinsertAfter(a,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}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,i,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,a=t._nextRemoved;return null===r?this._removalsHead=a:r._nextRemoved=a,null===a?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(t,i,n),this._addToMoves(t,n),t}_moveAfter(t,i,n){return this._unlink(t),this._insertAfter(t,i,n),this._addToMoves(t,n),t}_addAfter(t,i,n){return this._insertAfter(t,i,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,n){const r=null===i?this._itHead:i._next;return t._next=r,t._prev=i,null===r?this._itTail=t:r._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new gg),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 i=t._prev,n=t._next;return null===i?this._itHead=n:i._next=n,null===n?this._itTail=i:n._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new gg),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,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class UP{constructor(t,i){this.item=t,this.trackById=i,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 jP{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,i){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===i||i<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const i=t._prevDup,n=t._nextDup;return null===i?this._head=n:i._nextDup=n,null===n?this._tail=i:n._prevDup=i,null===this._head}}class gg{constructor(){this.map=new Map}put(t){const i=t.trackById;let n=this.map.get(i);n||(n=new jP,this.map.set(i,n)),n.add(t)}get(t,i){const r=this.map.get(t);return r?r.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function vg(e,t,i){const n=e.previousIndex;if(null===n)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+t+r}function Cg(){return new fo([new mg])}let fo=(()=>{var e;class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const a=r.factories.slice();n=n.concat(a)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||Cg()),deps:[[t,new fs,new us]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(null!=r)return r;throw new k(901,!1)}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:Cg}),t})();const KP=ig(null,"core",[]);let YP=(()=>{var e;class t{constructor(n){}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Qt))},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();function W4(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function u8(e,t){const i=Le(e),n=t.elementInjector||xs();return new ar(i).create(n,t.projectableNodes,t.hostElement,t.environmentInjector)}let f8=null;function Pn(){return f8}class lF{}const C1=new te("DocumentToken");let d8=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(fF)},providedIn:"platform"}),t})();const uF=new te("Location Initialized");let fF=(()=>{var e;class t extends d8{constructor(){super(),this._doc=J(C1),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Pn().getBaseHref(this._doc)}onPopState(n){const r=Pn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Pn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.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,r,a){this._history.pushState(n,r,a)}replaceState(n,r,a){this._history.replaceState(n,r,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=$({token:e,factory:function(){return new e},providedIn:"platform"}),t})();function h8(e,t){if(0==e.length)return t;if(0==t.length)return e;let i=0;return e.endsWith("/")&&i++,t.startsWith("/")&&i++,2==i?e+t.substring(1):1==i?e+t:e+"/"+t}function Sg(e){const t=e.match(/#|\?|$/),i=t&&t.index||e.length;return e.slice(0,i-("/"===e[i-1]?1:0))+e.slice(i)}function gn(e){return e&&"?"!==e[0]?"?"+e:e}let Fn=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(xg)},providedIn:"root"}),t})();const Lg=new te("appBaseHref");let xg=(()=>{var e;class t extends Fn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??J(C1).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 h8(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+gn(this._platformLocation.search),a=this._platformLocation.hash;return a&&n?`${r}${a}`:r}pushState(n,r,a,s){const o=this.prepareExternalUrl(a+gn(s));this._platformLocation.pushState(n,r,o)}replaceState(n,r,a,s){const o=this.prepareExternalUrl(a+gn(s));this._platformLocation.replaceState(n,r,o)}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)(q(d8),q(Lg,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Ng=(()=>{var e;class t extends Fn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}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 r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=h8(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,a,s){let o=this.prepareExternalUrl(a+gn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(n,r,o)}replaceState(n,r,a,s){let o=this.prepareExternalUrl(a+gn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,o)}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)(q(d8),q(Lg,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})(),p8=(()=>{var e;class t{constructor(n){this._subject=new ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function pF(e){if(new RegExp("^(https?:)?//").test(e)){const[,i]=e.split(/\/\/[^\/]+/);return i}return e}(Sg(Ag(r))),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,r=""){return this.path()==this.normalize(n+gn(r))}normalize(n){return t.stripTrailingSlash(function hF(e,t){if(!e||!t.startsWith(e))return t;const i=t.substring(e.length);return""===i||["/",";","?","#"].includes(i[0])?i:t}(this._basePath,Ag(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",a=null){this._locationStrategy.pushState(a,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gn(r)),a)}replaceState(n,r="",a=null){this._locationStrategy.replaceState(a,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gn(r)),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(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(a=>a(n,r))}subscribe(n,r,a){return this._subject.subscribe({next:n,error:r,complete:a})}}return(e=t).normalizeQueryParams=gn,e.joinWithSlash=h8,e.stripTrailingSlash=Sg,e.\u0275fac=function(n){return new(n||e)(q(Fn))},e.\u0275prov=$({token:e,factory:function(){return function dF(){return new p8(q(Fn))}()},providedIn:"root"}),t})();function Ag(e){return e.replace(/\/index.html$/,"")}class JF{constructor(t,i,n,r){this.$implicit=t,this.ngForOf=i,this.index=n,this.count=r}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 Jt=(()=>{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,r,a){this._viewContainer=n,this._template=r,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 r=this._viewContainer;n.forEachOperation((a,s,o)=>{if(null==a.previousIndex)r.createEmbeddedView(this._template,new JF(a.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const c=r.get(s);r.move(c,o),$g(c,a)}});for(let a=0,s=r.length;a<s;a++){const c=r.get(a).context;c.index=a,c.count=s,c.ngForOf=this._ngForOf}n.forEachIdentityChange(a=>{$g(r.get(a.currentIndex),a)})}static ngTemplateContextGuard(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(b(B2),b(o1),b(fo))},e.\u0275dir=j({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function $g(e,t){e.context.$implicit=t.item}let I1=(()=>{var e;class t{constructor(n,r){this._viewContainer=n,this._context=new XF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Wg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Wg("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(b(B2),b(o1))},e.\u0275dir=j({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class XF{constructor(){this.$implicit=null,this.ngIf=null}}function Wg(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${j1(t)}'.`)}let m3=(()=>{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 r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:a,ngTemplateOutletContext:s,ngTemplateOutletInjector:o}=this;this._viewRef=r.createEmbeddedView(a,s,o?{injector:o}: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)(b(B2))},e.\u0275dir=j({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g1]}),t})(),DB=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();function Zg(e){return"server"===e}let xB=(()=>{var e;class t{}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new NB(q(C1),window)}),t})();class NB{constructor(t,i){this.document=t,this.window=i,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 i=function AB(e,t){const i=e.getElementById(t)||e.getElementsByName(t)[0];if(i)return i;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const a=r.shadowRoot;if(a){const s=a.getElementById(t)||a.querySelector(`[name="${t}"]`);if(s)return s}r=n.nextNode()}}return null}(this.document,t);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(t){this.supportsScrolling()&&(this.window.history.scrollRestoration=t)}scrollToElement(t){const i=t.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(n-a[0],r-a[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class nU extends lF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class A8 extends nU{static makeCurrent(){!function cF(e){f8||(f8=e)}(new A8)}onAndCancel(t,i,n){return t.addEventListener(i,n),()=>{t.removeEventListener(i,n)}}dispatchEvent(t,i){t.dispatchEvent(i)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,i){return(i=i||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,i){return"window"===i?window:"document"===i?t:"body"===i?t.body:null}getBaseHref(t){const i=function iU(){return Lr=Lr||document.querySelector("base"),Lr?Lr.getAttribute("href"):null}();return null==i?null:function rU(e){Do=Do||document.createElement("a"),Do.setAttribute("href",e);const t=Do.pathname;return"/"===t.charAt(0)?t:`/${t}`}(i)}resetBaseElement(){Lr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function YF(e,t){t=encodeURIComponent(t);for(const i of e.split(";")){const n=i.indexOf("="),[r,a]=-1==n?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===t)return decodeURIComponent(a)}return null}(document.cookie,t)}}let Do,Lr=null,sU=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const E8=new te("EventManagerPlugins");let tv=(()=>{var e;class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(a=>{a.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,a){return this._findPluginFor(r).addEventListener(n,r,a)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new k(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return(e=t).\u0275fac=function(n){return new(n||e)(q(E8),q(He))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();class nv{constructor(t){this._doc=t}}const T8="ng-app-id";let iv=(()=>{var e;class t{constructor(n,r,a,s={}){this.doc=n,this.appId=r,this.nonce=a,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Zg(s),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(a=>a.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${T8}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(a=>{null!=a.textContent&&r.set(a.textContent,a)}),r}return null}changeUsageCount(n,r){const a=this.styleRef;if(a.has(n)){const s=a.get(n);return s.usage+=r,s.usage}return a.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const a=this.styleNodesInDOM,s=a?.get(r);if(s?.parentNode===n)return a.delete(r),s.removeAttribute(T8),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(T8,this.appId),o}}addStyleToHost(n,r){const a=this.getStyleElement(n,r);n.appendChild(a);const s=this.styleRef,o=s.get(r)?.elements;o?o.push(a):s.set(r,{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)(q(C1),q(As),q(_d,8),q(b4))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const I8={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/"},O8=/%COMP%/g,uU=new te("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function av(e,t){return t.map(i=>i.replace(O8,e))}let sv=(()=>{var e;class t{constructor(n,r,a,s,o,c,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=a,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Zg(c),this.defaultRenderer=new R8(n,o,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===wt.ShadowDom&&(r={...r,encapsulation:wt.Emulated});const a=this.getOrCreateRenderer(n,r);return a instanceof cv?a.applyToHost(n):a instanceof k8&&a.applyStyles(),a}getOrCreateRenderer(n,r){const a=this.rendererByCompId;let s=a.get(r.id);if(!s){const o=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(r.encapsulation){case wt.Emulated:s=new cv(l,u,r,this.appId,f,o,c,p);break;case wt.ShadowDom:return new pU(l,u,n,r,o,c,this.nonce,p);default:s=new k8(l,u,r,f,o,c,p)}a.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(n){return new(n||e)(q(tv),q(iv),q(As),q(uU),q(C1),q(b4),q(He),q(_d))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();class R8{constructor(t,i,n,r){this.eventManager=t,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,i){return i?this.doc.createElementNS(I8[i]||i,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,i){(ov(t)?t.content:t).appendChild(i)}insertBefore(t,i,n){t&&(ov(t)?t.content:t).insertBefore(i,n)}removeChild(t,i){t&&t.removeChild(i)}selectRootElement(t,i){let n="string"==typeof t?this.doc.querySelector(t):t;if(!n)throw new k(-5104,!1);return i||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,i,n,r){if(r){i=r+":"+i;const a=I8[r];a?t.setAttributeNS(a,i,n):t.setAttribute(i,n)}else t.setAttribute(i,n)}removeAttribute(t,i,n){if(n){const r=I8[n];r?t.removeAttributeNS(r,i):t.removeAttribute(`${n}:${i}`)}else t.removeAttribute(i)}addClass(t,i){t.classList.add(i)}removeClass(t,i){t.classList.remove(i)}setStyle(t,i,n,r){r&(On.DashCase|On.Important)?t.style.setProperty(i,n,r&On.Important?"important":""):t.style[i]=n}removeStyle(t,i,n){n&On.DashCase?t.style.removeProperty(i):t.style[i]=""}setProperty(t,i,n){t[i]=n}setValue(t,i){t.nodeValue=i}listen(t,i,n){if("string"==typeof t&&!(t=Pn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${i}`);return this.eventManager.addEventListener(t,i,this.decoratePreventDefault(n))}decoratePreventDefault(t){return i=>{if("__ngUnwrap__"===i)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(i)):t(i))&&i.preventDefault()}}}function ov(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class pU extends R8{constructor(t,i,n,r,a,s,o,c){super(t,a,s,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=av(r.id,r.styles);for(const u of l){const f=document.createElement("style");o&&f.setAttribute("nonce",o),f.textContent=u,this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,i){return super.appendChild(this.nodeOrShadowRoot(t),i)}insertBefore(t,i,n){return super.insertBefore(this.nodeOrShadowRoot(t),i,n)}removeChild(t,i){return super.removeChild(this.nodeOrShadowRoot(t),i)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class k8 extends R8{constructor(t,i,n,r,a,s,o,c){super(t,a,s,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?av(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class cv extends k8{constructor(t,i,n,r,a,s,o,c){const l=r+"-"+n.id;super(t,i,n,a,s,o,c,l),this.contentAttr=function fU(e){return"_ngcontent-%COMP%".replace(O8,e)}(l),this.hostAttr=function dU(e){return"_nghost-%COMP%".replace(O8,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,i){const n=super.createElement(t,i);return super.setAttribute(n,this.contentAttr,""),n}}let mU=(()=>{var e;class t extends nv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,a){return n.addEventListener(r,a,!1),()=>this.removeEventListener(n,r,a)}removeEventListener(n,r,a){return n.removeEventListener(r,a)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(C1))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const lv=["alt","control","meta","shift"],gU={"\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"},vU={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let _U=(()=>{var e;class t extends nv{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,a){const s=t.parseEventName(r),o=t.eventCallback(s.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Pn().onAndCancel(n,s.domEventName,o))}static parseEventName(n){const r=n.toLowerCase().split("."),a=r.shift();if(0===r.length||"keydown"!==a&&"keyup"!==a)return null;const s=t._normalizeKey(r.pop());let o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),lv.forEach(u=>{const f=r.indexOf(u);f>-1&&(r.splice(f,1),o+=u+".")}),o+=s,0!=r.length||0===s.length)return null;const l={};return l.domEventName=a,l.fullKey=o,l}static matchEventFullKeyCode(n,r){let a=gU[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(a=n.code,s="code."),!(null==a||!a)&&(a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),lv.forEach(o=>{o!==a&&(0,vU[o])(n)&&(s+=o+".")}),s+=a,s===r)}static eventCallback(n,r,a){return s=>{t.matchEventFullKeyCode(s,n)&&a.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(C1))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const bU=ig(KP,"browser",[{provide:b4,useValue:"browser"},{provide:vd,useValue:function CU(){A8.makeCurrent()},multi:!0},{provide:C1,useFactory:function MU(){return function lE(e){V0=e}(document),document},deps:[]}]),wU=new te(""),dv=[{provide:oo,useClass:class aU{addToWindow(t){Ze.getAngularTestability=(n,r=!0)=>{const a=t.findTestabilityInTree(n,r);if(null==a)throw new k(5103,!1);return a},Ze.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ze.getAllAngularRootElements=()=>t.getAllRootElements(),Ze.frameworkStabilizers||(Ze.frameworkStabilizers=[]),Ze.frameworkStabilizers.push(n=>{const r=Ze.getAllAngularTestabilities();let a=r.length,s=!1;const o=function(c){s=s||c,a--,0==a&&n(s)};r.forEach(c=>{c.whenStable(o)})})}findTestabilityInTree(t,i,n){return null==i?null:t.getTestability(i)??(n?Pn().isShadowRoot(i)?this.findTestabilityInTree(t,i.host,!0):this.findTestabilityInTree(t,i.parentElement,!0):null)}},deps:[]},{provide:Jm,useClass:Xl,deps:[He,e8,oo]},{provide:Xl,useClass:Xl,deps:[He,e8,oo]}],hv=[{provide:E0,useValue:"root"},{provide:c3,useFactory:function yU(){return new c3},deps:[]},{provide:E8,useClass:mU,multi:!0,deps:[C1,He,b4]},{provide:E8,useClass:_U,multi:!0,deps:[C1]},sv,iv,tv,{provide:W0,useExisting:sv},{provide:class EB{},useClass:sU,deps:[]},[]];let HU=(()=>{var e;class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:As,useValue:n.appId}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(wU,12))},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({providers:[...hv,...dv],imports:[DB,YP]}),t})(),pv=(()=>{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)(q(C1))},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new n:function DU(){return new pv(q(C1))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let vv=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new(n||e):q(_v),r},providedIn:"root"}),t})(),_v=(()=>{var e;class t extends vv{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case ft.NONE:return r;case ft.HTML:return Wt(r,"HTML")?Z2(r):ad(this._doc,String(r)).toString();case ft.STYLE:return Wt(r,"Style")?Z2(r):r;case ft.SCRIPT:if(Wt(r,"Script"))return Z2(r);throw new k(5200,!1);case ft.URL:return Wt(r,"URL")?Z2(r):Ds(String(r));case ft.RESOURCE_URL:if(Wt(r,"ResourceURL"))return Z2(r);throw new k(5201,!1);default:throw new k(5202,!1)}}bypassSecurityTrustHtml(n){return function gE(e){return new uE(e)}(n)}bypassSecurityTrustStyle(n){return function vE(e){return new fE(e)}(n)}bypassSecurityTrustScript(n){return function _E(e){return new dE(e)}(n)}bypassSecurityTrustUrl(n){return function CE(e){return new hE(e)}(n)}bypassSecurityTrustResourceUrl(n){return function yE(e){return new pE(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(C1))},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new n:function xU(e){return new _v(e.get(C1))}(q(P1)),r},providedIn:"root"}),t})();function xr(e){return(xr="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,i){return(t=function AU(e){var t=function NU(e,t){if("object"!==xr(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const{isArray:EU}=Array,{getPrototypeOf:TU,prototype:IU,keys:OU}=Object;function yv(e){if(1===e.length){const t=e[0];if(EU(t))return{args:t,keys:null};if(function RU(e){return e&&"object"==typeof e&&TU(e)===IU}(t)){const i=OU(t);return{args:i.map(n=>t[n]),keys:i}}}return{args:e,keys:null}}const{isArray:kU}=Array;function F8(e){return Me(t=>function PU(e,t){return kU(t)?e(...t):e(t)}(e,t))}function Mv(e,t){return e.reduce((i,n,r)=>(i[n]=t[r],i),{})}let bv=(()=>{var e;class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}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)(b(c2),b(Ne))},e.\u0275dir=j({type:e}),t})(),g3=(()=>{var e;class t extends bv{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=A1(e)))(r||e)}}(),e.\u0275dir=j({type:e,features:[re]}),t})();const gt=new te("NgValueAccessor"),BU={provide:gt,useExisting:ge(()=>v2),multi:!0};let v2=(()=>{var e;class t extends g3{writeValue(n){this.setProperty("checked",n)}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=A1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&I("change",function(s){return r.onChange(s.target.checked)})("blur",function(){return r.onTouched()})},features:[Qe([BU]),re]}),t})();const UU={provide:gt,useExisting:ge(()=>Un),multi:!0},GU=new te("CompositionEventMode");let Un=(()=>{var e;class t extends bv{constructor(n,r,a){super(n,r),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function jU(){const e=Pn()?Pn().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)(b(c2),b(Ne),b(GU,8))},e.\u0275dir=j({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,r){1&n&&I("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Qe([UU]),re]}),t})();const l2=new te("NgValidators"),Gn=new te("NgAsyncValidators"),$U=/^(?=.{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 Sv(e){return function jn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}(e.value)||$U.test(e.value)?null:{email:!0}}function zo(e){return null}function Av(e){return null!=e}function Ev(e){return fr(e)?Z1(e):e}function Tv(e){let t={};return e.forEach(i=>{t=null!=i?{...t,...i}:t}),0===Object.keys(t).length?null:t}function Iv(e,t){return t.map(i=>i(e))}function Ov(e){return e.map(t=>function WU(e){return!e.validate}(t)?t:i=>t.validate(i))}function B8(e){return null!=e?function Rv(e){if(!e)return null;const t=e.filter(Av);return 0==t.length?null:function(i){return Tv(Iv(i,t))}}(Ov(e)):null}function U8(e){return null!=e?function kv(e){if(!e)return null;const t=e.filter(Av);return 0==t.length?null:function(i){return function FU(...e){const t=Ia(e),{args:i,keys:n}=yv(e),r=new We(a=>{const{length:s}=i;if(!s)return void a.complete();const o=new Array(s);let c=s,l=s;for(let u=0;u<s;u++){let f=!1;U1(i[u]).subscribe(Ke(a,p=>{f||(f=!0,l--),o[u]=p},()=>c--,void 0,()=>{(!c||!f)&&(l||a.next(n?Mv(n,o):o),a.complete())}))}});return t?r.pipe(F8(t)):r}(Iv(i,t).map(Ev)).pipe(Me(Tv))}}(Ov(e)):null}function Pv(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function j8(e){return e?Array.isArray(e)?e:[e]:[]}function So(e,t){return Array.isArray(e)?e.includes(t):e===t}function Uv(e,t){const i=j8(t);return j8(e).forEach(r=>{So(i,r)||i.push(r)}),i}function jv(e,t){return j8(t).filter(i=>!So(e,i))}class Gv{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=B8(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=U8(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,i){return!!this.control&&this.control.hasError(t,i)}getError(t,i){return this.control?this.control.getError(t,i):null}}class L2 extends Gv{get formDirective(){return null}get path(){return null}}class $n extends Gv{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $v{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 V1=(()=>{var e;class t extends $v{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(b($n,2))},e.\u0275dir=j({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Se("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[re]}),t})();const Nr="VALID",xo="INVALID",K4="PENDING",Ar="DISABLED";function No(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Yv{constructor(t,i){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(i)}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===Nr}get invalid(){return this.status===xo}get pending(){return this.status==K4}get disabled(){return this.status===Ar}get enabled(){return this.status!==Ar}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(Uv(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Uv(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(jv(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(jv(t,this._rawAsyncValidators))}hasValidator(t){return So(this._rawValidators,t)}hasAsyncValidator(t){return So(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(i=>{i.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(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=K4,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=Ar,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:i}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=Nr,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:i}),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===Nr||this.status===K4)&&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(i=>i._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ar:Nr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=K4,this._hasOwnPendingAsyncValidator=!0;const i=Ev(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,i={}){this.errors=t,this._updateControlsErrors(!1!==i.emitEvent)}get(t){let i=t;return null==i||(Array.isArray(i)||(i=i.split(".")),0===i.length)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(t,i){const n=i?this.get(i):this;return n&&n.errors?n.errors[t]:null}hasError(t,i){return!!this.getError(t,i)}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()?Ar:this.errors?xo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(K4)?K4:this._anyControlsHaveStatus(xo)?xo:Nr}_anyControlsHaveStatus(t){return this._anyControls(i=>i.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){No(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 QU(e){return Array.isArray(e)?B8(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function JU(e){return Array.isArray(e)?U8(e):e||null}(this._rawAsyncValidators)}}const Y4=new te("CallSetDisabledState",{providedIn:"root",factory:()=>Ao}),Ao="always";function Er(e,t,i=Ao){(function Y8(e,t){const i=function Fv(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(Pv(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const n=function Bv(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(Pv(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const r=()=>e.updateValueAndValidity();Io(t._rawValidators,r),Io(t._rawAsyncValidators,r)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===i)&&t.valueAccessor.setDisabledState?.(e.disabled),function tj(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Zv(e,t)})}(e,t),function ij(e,t){const i=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};e.registerOnChange(i),t._registerOnDestroy(()=>{e._unregisterOnChange(i)})}(e,t),function nj(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Zv(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function ej(e,t){if(t.valueAccessor.setDisabledState){const i=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}(e,t)}function Io(e,t){e.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(t)})}function Zv(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Xv(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function e_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const t_=class extends Yv{constructor(t=null,i,n){super(function W8(e){return(No(e)?e.validators:e)||null}(i),function q8(e,t){return(No(t)?t.asyncValidators:e)||null}(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),No(i)&&(i.nonNullable||i.initialValueIsDefault)&&(this.defaultValue=e_(t)?t.value:t)}setValue(t,i={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==i.emitViewToModelChange)),this.updateValueAndValidity(i)}patchValue(t,i={}){this.setValue(t,i)}reset(t=this.defaultValue,i={}){this._applyFormState(t),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Xv(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Xv(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){e_(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}},fj={provide:$n,useExisting:ge(()=>y1)},r_=(()=>Promise.resolve())();let y1=(()=>{var e;class t extends $n{constructor(n,r,a,s,o,c){super(),this._changeDetectorRef=o,this.callSetDisabledState=c,this.control=new t_,this._registered=!1,this.name="",this.update=new ee,this._parent=n,this._setValidators(r),this._setAsyncValidators(a),this.valueAccessor=function J8(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(a=>{a.constructor===Un?i=a:function sj(e){return Object.getPrototypeOf(e.constructor)===g3}(a)?n=a:r=a}),r||n||i||null}(0,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Q8(e,t){if(!e.hasOwnProperty("model"))return!1;const i=e.model;return!!i.isFirstChange()||!Object.is(t,i.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(){Er(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){r_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,a=0!==r&&W4(r);r_.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Eo(e,t){return[...t.path,e]}(n,this._parent):[n]}}return(e=t).\u0275fac=function(n){return new(n||e)(b(L2,9),b(l2,10),b(Gn,10),b(gt,10),b(X2,8),b(Y4,8))},e.\u0275dir=j({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:[Qe([fj]),re,g1]}),t})();const hj={provide:gt,useExisting:ge(()=>Z4),multi:!0};let Z4=(()=>{var e;class t extends g3{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=A1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&I("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[Qe([hj]),re]}),t})(),a_=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();const bj={provide:gt,useExisting:ge(()=>Cn),multi:!0};function d_(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Cn=(()=>{var e;class t extends g3{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=d_(this._getOptionId(n),n);this.setProperty("value",a)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function wj(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=A1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&I("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Qe([bj]),re]}),t})(),v3=(()=>{var e;class t{constructor(n,r,a){this._element=n,this._renderer=r,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(d_(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)(b(Ne),b(c2),b(Cn,9))},e.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Hj={provide:gt,useExisting:ge(()=>i5),multi:!0};function h_(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let i5=(()=>{var e;class t extends g3{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const a=n.map(s=>this._getOptionId(s));r=(s,o)=>{s._setSelected(a.indexOf(o.toString())>-1)}}else r=(a,s)=>{a._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const a=[],s=r.selectedOptions;if(void 0!==s){const o=s;for(let c=0;c<o.length;c++){const u=this._getOptionValue(o[c].value);a.push(u)}}else{const o=r.options;for(let c=0;c<o.length;c++){const l=o[c];if(l.selected){const u=this._getOptionValue(l.value);a.push(u)}}}this.value=a,n(a)}}_registerOption(n){const r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){const r=function Vj(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=A1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){1&n&&I("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Qe([Hj]),re]}),t})(),_3=(()=>{var e;class t{constructor(n,r,a){this._element=n,this._renderer=r,this._select=a,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(h_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(h_(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)(b(Ne),b(c2),b(i5,9))},e.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),C3=(()=>{var e;class t{constructor(){this._validator=zo}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):zo,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=j({type:e,features:[g1]}),t})();const xj={provide:l2,useExisting:ge(()=>a5),multi:!0};let a5=(()=>{var e;class t extends C3{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=W4,this.createValidator=n=>Sv}enabled(n){return n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=A1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Qe([xj]),re]}),t})(),Tj=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({imports:[a_]}),t})(),Oj=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:Y4,useValue:n.callSetDisabledState??Ao}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({imports:[Tj]}),t})();const Rj=["addListener","removeListener"],kj=["addEventListener","removeEventListener"],Pj=["on","off"];function X1(e,t,i,n){if(Q(i)&&(n=i,i=void 0),n)return X1(e,t,i).pipe(F8(n));const[r,a]=function Uj(e){return Q(e.addEventListener)&&Q(e.removeEventListener)}(e)?kj.map(s=>o=>e[s](t,o,i)):function Fj(e){return Q(e.addListener)&&Q(e.removeListener)}(e)?Rj.map(b_(e,t)):function Bj(e){return Q(e.on)&&Q(e.off)}(e)?Pj.map(b_(e,t)):[];if(!r&&v6(e))return k1(s=>X1(s,t,i))(U1(e));if(!r)throw new TypeError("Invalid event target");return new We(s=>{const o=(...c)=>s.next(1<c.length?c:c[0]);return r(o),()=>a(o)})}function b_(e,t){return i=>n=>e[i](t,n)}class jj extends De{constructor(t,i){super()}schedule(t,i=0){return this}}const Ro={setInterval(e,t,...i){const{delegate:n}=Ro;return n?.setInterval?n.setInterval(e,t,...i):setInterval(e,t,...i)},clearInterval(e){const{delegate:t}=Ro;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},w_={now:()=>(w_.delegate||Date).now(),delegate:void 0};class Ir{constructor(t,i=Ir.now){this.schedulerActionCtor=t,this.now=i}schedule(t,i=0,n){return new this.schedulerActionCtor(this,t).schedule(n,i)}}Ir.now=w_.now;const H_=new class $j extends Ir{constructor(t,i=Ir.now){super(t,i),this.actions=[],this._active=!1}flush(t){const{actions:i}=this;if(this._active)return void i.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=i.shift());if(this._active=!1,n){for(;t=i.shift();)t.unsubscribe();throw n}}}(class Gj extends jj{constructor(t,i){super(t,i),this.scheduler=t,this.work=i,this.pending=!1}schedule(t,i=0){var n;if(this.closed)return this;this.state=t;const r=this.id,a=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(a,r,i)),this.pending=!0,this.delay=i,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(a,this.id,i),this}requestAsyncId(t,i,n=0){return Ro.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,i,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return i;null!=i&&Ro.clearInterval(i)}execute(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,i);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,i){let r,n=!1;try{this.work(t)}catch(a){n=!0,r=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Xe(n,this),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null,super.unsubscribe()}}}),Wj=H_;function V_(e=0,t,i=Wj){let n=-1;return null!=t&&(Gu(t)?i=t:n=t),new We(r=>{let a=function qj(e){return e instanceof Date&&!isNaN(e)}(e)?+e-i.now():e;a<0&&(a=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},a)})}const{isArray:Kj}=Array;function D_(e){return 1===e.length&&Kj(e[0])?e[0]:e}function z_(...e){return 1===(e=D_(e)).length?U1(e[0]):new We(function Yj(e){return t=>{let i=[];for(let n=0;i&&!t.closed&&n<e.length;n++)i.push(U1(e[n]).subscribe(Ke(t,r=>{if(i){for(let a=0;a<i.length;a++)a!==n&&i[a].unsubscribe();i=null}t.next(r)})))}}(e))}function s5(...e){const t=Ia(e),i=D_(e);return i.length?new We(n=>{let r=i.map(()=>[]),a=i.map(()=>!1);n.add(()=>{r=a=null});for(let s=0;!n.closed&&s<i.length;s++)U1(i[s]).subscribe(Ke(n,o=>{if(r[s].push(o),r.every(c=>c.length)){const c=r.map(l=>l.shift());n.next(t?t(...c):c),r.some((l,u)=>!l.length&&a[u])&&n.complete()}},()=>{a[s]=!0,!r[s].length&&n.complete()}));return()=>{r=a=null}}):ct}function Or(...e){return function Zj(){return K3(1)}()(Z1(e,Di(e)))}function B1(e){return f1((t,i)=>{U1(e).subscribe(Ke(i,()=>i.complete(),K1)),!i.closed&&t.subscribe(i)})}function D1(e,t){return f1((i,n)=>{let r=0;i.subscribe(Ke(n,a=>e.call(t,a,r++)&&n.next(a)))})}function e2(e){return e<=0?()=>ct:f1((t,i)=>{let n=0;t.subscribe(Ke(i,r=>{++n<=e&&(i.next(r),e<=n&&i.complete())}))})}function t2(e,t,i){const n=Q(e)||t||i?{next:e,error:t,complete:i}:e;return n?f1((r,a)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let o=!0;r.subscribe(Ke(a,c=>{var l;null===(l=n.next)||void 0===l||l.call(n,c),a.next(c)},()=>{var c;o=!1,null===(c=n.complete)||void 0===c||c.call(n),a.complete()},c=>{var l;o=!1,null===(l=n.error)||void 0===l||l.call(n,c),a.error(c)},()=>{var c,l;o&&(null===(c=n.unsubscribe)||void 0===c||c.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):yt}function o5(...e){const t=Ia(e);return f1((i,n)=>{const r=e.length,a=new Array(r);let s=e.map(()=>!1),o=!1;for(let c=0;c<r;c++)U1(e[c]).subscribe(Ke(n,l=>{a[c]=l,!o&&!s[c]&&(s[c]=!0,(o=s.every(yt))&&(s=null))},K1));i.subscribe(Ke(n,c=>{if(o){const l=[c,...a];n.next(t?t(...l):l)}}))})}function S_(e){return Me(()=>e)}function L_(e,t){return t?i=>Or(t.pipe(e2(1),function Jj(){return f1((e,t)=>{e.subscribe(Ke(t,K1))})}()),i.pipe(L_(e))):k1((i,n)=>U1(e(i,n)).pipe(e2(1),S_(i)))}function x_(e,t=H_){const i=V_(e,t);return L_(()=>i)}var eG={left:"right",right:"left",bottom:"top",top:"bottom"};function ko(e){return e.replace(/left|right|bottom|top/g,function(t){return eG[t]})}function Xt(e){return e.split("-")[0]}var tG={start:"end",end:"start"};function A_(e){return e.replace(/start|end/g,function(t){return tG[t]})}var tt="top",At="bottom",Et="right",nt="left",c5="auto",Rr=[tt,At,Et,nt],Q4="start",kr="end",E_="viewport",Pr="popper",T_=Rr.reduce(function(e,t){return e.concat([t+"-"+Q4,t+"-"+kr])},[]),I_=[].concat(Rr,[c5]).reduce(function(e,t){return e.concat([t,t+"-"+Q4,t+"-"+kr])},[]),hG=["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 y3(e){return e instanceof it(e).Element||e instanceof Element}function vt(e){return e instanceof it(e).HTMLElement||e instanceof HTMLElement}function l5(e){return!(typeof ShadowRoot>"u")&&(e instanceof it(e).ShadowRoot||e instanceof ShadowRoot)}function Wn(e){return((y3(e)?e.ownerDocument:e.document)||window.document).documentElement}var M3=Math.max,Po=Math.min,J4=Math.round;function u5(){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 O_(){return!/^((?!chrome|android).)*safari/i.test(u5())}function X4(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,a=1;t&&vt(e)&&(r=e.offsetWidth>0&&J4(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&J4(n.height)/e.offsetHeight||1);var o=(y3(e)?it(e):window).visualViewport,c=!O_()&&i,l=(n.left+(c&&o?o.offsetLeft:0))/r,u=(n.top+(c&&o?o.offsetTop:0))/a,f=n.width/r,p=n.height/a;return{width:f,height:p,top:u,right:l+f,bottom:u+p,left:l,x:l,y:u}}function f5(e){var t=it(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function d5(e){return X4(Wn(e)).left+f5(e).scrollLeft}function yn(e){return it(e).getComputedStyle(e)}function en(e){return e?(e.nodeName||"").toLowerCase():null}function Fo(e){return"html"===en(e)?e:e.assignedSlot||e.parentNode||(l5(e)?e.host:null)||Wn(e)}function h5(e){var t=yn(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function R_(e){return["html","body","#document"].indexOf(en(e))>=0?e.ownerDocument.body:vt(e)&&h5(e)?e:R_(Fo(e))}function Fr(e,t){var i;void 0===t&&(t=[]);var n=R_(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),a=it(n),s=r?[a].concat(a.visualViewport||[],h5(n)?n:[]):n,o=t.concat(s);return r?o:o.concat(Fr(Fo(s)))}function gG(e){return["table","td","th"].indexOf(en(e))>=0}function k_(e){return vt(e)&&"fixed"!==yn(e).position?e.offsetParent:null}function Br(e){for(var t=it(e),i=k_(e);i&&gG(i)&&"static"===yn(i).position;)i=k_(i);return i&&("html"===en(i)||"body"===en(i)&&"static"===yn(i).position)?t:i||function vG(e){var t=/firefox/i.test(u5());if(/Trident/i.test(u5())&&vt(e)&&"fixed"===yn(e).position)return null;var r=Fo(e);for(l5(r)&&(r=r.host);vt(r)&&["html","body"].indexOf(en(r))<0;){var a=yn(r);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 r;r=r.parentNode}return null}(e)||t}function P_(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&l5(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function p5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F_(e,t,i){return t===E_?p5(function pG(e,t){var i=it(e),n=Wn(e),r=i.visualViewport,a=n.clientWidth,s=n.clientHeight,o=0,c=0;if(r){a=r.width,s=r.height;var l=O_();(l||!l&&"fixed"===t)&&(o=r.offsetLeft,c=r.offsetTop)}return{width:a,height:s,x:o+d5(e),y:c}}(e,i)):y3(t)?function _G(e,t){var i=X4(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):p5(function mG(e){var t,i=Wn(e),n=f5(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=M3(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=M3(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+d5(e),c=-n.scrollTop;return"rtl"===yn(r||i).direction&&(o+=M3(i.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:o,y:c}}(Wn(e)))}function ei(e){return e.split("-")[1]}function m5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function B_(e){var c,t=e.reference,i=e.element,n=e.placement,r=n?Xt(n):null,a=n?ei(n):null,s=t.x+t.width/2-i.width/2,o=t.y+t.height/2-i.height/2;switch(r){case tt:c={x:s,y:t.y-i.height};break;case At:c={x:s,y:t.y+t.height};break;case Et:c={x:t.x+t.width,y:o};break;case nt:c={x:t.x-i.width,y:o};break;default:c={x:t.x,y:t.y}}var l=r?m5(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case Q4:c[l]=c[l]-(t[u]/2-i[u]/2);break;case kr:c[l]=c[l]+(t[u]/2-i[u]/2)}}return c}function j_(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G_(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}function g5(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,a=t.strategy,s=void 0===a?e.strategy:a,o=t.boundary,c=void 0===o?"clippingParents":o,l=t.rootBoundary,u=void 0===l?E_:l,f=t.elementContext,p=void 0===f?Pr:f,m=t.altBoundary,H=void 0!==m&&m,D=t.padding,S=void 0===D?0:D,N=j_("number"!=typeof S?S:G_(S,Rr)),B=e.rects.popper,F=e.elements[H?p===Pr?"reference":Pr:p],G=function yG(e,t,i,n){var r="clippingParents"===t?function CG(e){var t=Fr(Fo(e)),n=["absolute","fixed"].indexOf(yn(e).position)>=0&&vt(e)?Br(e):e;return y3(n)?t.filter(function(r){return y3(r)&&P_(r,n)&&"body"!==en(r)}):[]}(e):[].concat(t),a=[].concat(r,[i]),o=a.reduce(function(c,l){var u=F_(e,l,n);return c.top=M3(u.top,c.top),c.right=Po(u.right,c.right),c.bottom=Po(u.bottom,c.bottom),c.left=M3(u.left,c.left),c},F_(e,a[0],n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(y3(F)?F:F.contextElement||Wn(e.elements.popper),c,u,s),ie=X4(e.elements.reference),ve=B_({reference:ie,element:B,strategy:"absolute",placement:r}),be=p5(Object.assign({},B,ve)),Pe=p===Pr?be:ie,M1={top:G.top-Pe.top+N.top,bottom:Pe.bottom-G.bottom+N.bottom,left:G.left-Pe.left+N.left,right:Pe.right-G.right+N.right},n2=e.modifiersData.offset;if(p===Pr&&n2){var Rt=n2[r];Object.keys(M1).forEach(function(N2){var k3=[Et,At].indexOf(N2)>=0?1:-1,P3=[tt,At].indexOf(N2)>=0?"y":"x";M1[N2]+=Rt[P3]*k3})}return M1}const HG={name:"flip",enabled:!0,phase:"main",fn:function wG(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,a=void 0===r||r,s=i.altAxis,o=void 0===s||s,c=i.fallbackPlacements,l=i.padding,u=i.boundary,f=i.rootBoundary,p=i.altBoundary,m=i.flipVariations,H=void 0===m||m,D=i.allowedAutoPlacements,S=t.options.placement,N=Xt(S),B=c||(N!==S&&H?function bG(e){if(Xt(e)===c5)return[];var t=ko(e);return[A_(e),t,A_(t)]}(S):[ko(S)]),F=[S].concat(B).reduce(function(_i,Jn){return _i.concat(Xt(Jn)===c5?function MG(e,t){void 0===t&&(t={});var r=t.boundary,a=t.rootBoundary,s=t.padding,o=t.flipVariations,c=t.allowedAutoPlacements,l=void 0===c?I_:c,u=ei(t.placement),f=u?o?T_:T_.filter(function(H){return ei(H)===u}):Rr,p=f.filter(function(H){return l.indexOf(H)>=0});0===p.length&&(p=f);var m=p.reduce(function(H,D){return H[D]=g5(e,{placement:D,boundary:r,rootBoundary:a,padding:s})[Xt(D)],H},{});return Object.keys(m).sort(function(H,D){return m[H]-m[D]})}(t,{placement:Jn,boundary:u,rootBoundary:f,padding:l,flipVariations:H,allowedAutoPlacements:D}):Jn)},[]),G=t.rects.reference,ie=t.rects.popper,ve=new Map,be=!0,Pe=F[0],M1=0;M1<F.length;M1++){var n2=F[M1],Rt=Xt(n2),N2=ei(n2)===Q4,k3=[tt,At].indexOf(Rt)>=0,P3=k3?"width":"height",at=g5(t,{placement:n2,boundary:u,rootBoundary:f,altBoundary:p,padding:l}),kt=k3?N2?Et:nt:N2?At:tt;G[P3]>ie[P3]&&(kt=ko(kt));var a6=ko(kt),F3=[];if(a&&F3.push(at[Rt]<=0),o&&F3.push(at[kt]<=0,at[a6]<=0),F3.every(function(_i){return _i})){Pe=n2,be=!1;break}ve.set(n2,F3)}if(be)for(var Lu=function(Jn){var Na=F.find(function(c6){var B3=ve.get(c6);if(B3)return B3.slice(0,Jn).every(function(xu){return xu})});if(Na)return Pe=Na,"break"},xa=H?3:1;xa>0&&"break"!==Lu(xa);xa--);t.placement!==Pe&&(t.modifiersData[n]._skip=!0,t.placement=Pe,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ur(e,t,i){return M3(e,Po(t,i))}function v5(e){var t=X4(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}const SG={name:"preventOverflow",enabled:!0,phase:"main",fn:function zG(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,a=void 0===r||r,s=i.altAxis,o=void 0!==s&&s,p=i.tether,m=void 0===p||p,H=i.tetherOffset,D=void 0===H?0:H,S=g5(t,{boundary:i.boundary,rootBoundary:i.rootBoundary,padding:i.padding,altBoundary:i.altBoundary}),N=Xt(t.placement),z=ei(t.placement),B=!z,F=m5(N),G=function VG(e){return"x"===e?"y":"x"}(F),ie=t.modifiersData.popperOffsets,ve=t.rects.reference,be=t.rects.popper,Pe="function"==typeof D?D(Object.assign({},t.rects,{placement:t.placement})):D,M1="number"==typeof Pe?{mainAxis:Pe,altAxis:Pe}:Object.assign({mainAxis:0,altAxis:0},Pe),n2=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Rt={x:0,y:0};if(ie){if(a){var N2,k3="y"===F?tt:nt,P3="y"===F?At:Et,at="y"===F?"height":"width",kt=ie[F],a6=kt+S[k3],F3=kt-S[P3],s6=m?-be[at]/2:0,Lu=z===Q4?ve[at]:be[at],xa=z===Q4?-be[at]:-ve[at],o6=t.elements.arrow,_i=m&&o6?v5(o6):{width:0,height:0},Jn=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Na=Jn[k3],c6=Jn[P3],B3=Ur(0,ve[at],_i[at]),xu=B?ve[at]/2-s6-B3-Na-M1.mainAxis:Lu-B3-Na-M1.mainAxis,Rve=B?-ve[at]/2+s6+B3+c6+M1.mainAxis:xa+B3+c6+M1.mainAxis,Nu=t.elements.arrow&&Br(t.elements.arrow),kve=Nu?"y"===F?Nu.clientTop||0:Nu.clientLeft||0:0,kL=null!=(N2=n2?.[F])?N2:0,Fve=kt+Rve-kL,PL=Ur(m?Po(a6,kt+xu-kL-kve):a6,kt,m?M3(F3,Fve):F3);ie[F]=PL,Rt[F]=PL-kt}if(o){var FL,U3=ie[G],l6="y"===G?"height":"width",BL=U3+S["x"===F?tt:nt],UL=U3-S["x"===F?At:Et],Au=-1!==[tt,nt].indexOf(N),jL=null!=(FL=n2?.[G])?FL:0,GL=Au?BL:U3-ve[l6]-be[l6]-jL+M1.altAxis,$L=Au?U3+ve[l6]+be[l6]-jL-M1.altAxis:UL,WL=m&&Au?function DG(e,t,i){var n=Ur(e,t,i);return n>i?i:n}(GL,U3,$L):Ur(m?GL:BL,U3,m?$L:UL);ie[G]=WL,Rt[G]=WL-U3}t.modifiersData[n]=Rt}},requiresIfExists:["offset"]},AG={name:"arrow",enabled:!0,phase:"main",fn:function xG(e){var t,i=e.state,n=e.name,r=e.options,a=i.elements.arrow,s=i.modifiersData.popperOffsets,o=Xt(i.placement),c=m5(o),u=[nt,Et].indexOf(o)>=0?"height":"width";if(a&&s){var f=function(t,i){return j_("number"!=typeof(t="function"==typeof t?t(Object.assign({},i.rects,{placement:i.placement})):t)?t:G_(t,Rr))}(r.padding,i),p=v5(a),m="y"===c?tt:nt,H="y"===c?At:Et,D=i.rects.reference[u]+i.rects.reference[c]-s[c]-i.rects.popper[u],S=s[c]-i.rects.reference[c],N=Br(a),z=N?"y"===c?N.clientHeight||0:N.clientWidth||0:0,ie=z/2-p[u]/2+(D/2-S/2),ve=Ur(f[m],ie,z-p[u]-f[H]);i.modifiersData[n]=((t={})[c]=ve,t.centerOffset=ve-ie,t)}},effect:function NG(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||P_(t.elements.popper,r)&&(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function OG(e,t,i){void 0===i&&(i=!1);var n=vt(t),r=vt(t)&&function IG(e){var t=e.getBoundingClientRect(),i=J4(t.width)/e.offsetWidth||1,n=J4(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=Wn(t),s=X4(e,r,i),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&(("body"!==en(t)||h5(a))&&(o=function TG(e){return e!==it(e)&&vt(e)?function EG(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):f5(e)}(t)),vt(t)?((c=X4(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=d5(a))),{x:s.left+o.scrollLeft-c.x,y:s.top+o.scrollTop-c.y,width:s.width,height:s.height}}function RG(e){var t=new Map,i=new Set,n=[];function r(a){i.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(o){if(!i.has(o)){var c=t.get(o);c&&r(c)}}),n.push(a)}return e.forEach(function(a){t.set(a.name,a)}),e.forEach(function(a){i.has(a.name)||r(a)}),n}function PG(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}var $_={placement:"bottom",modifiers:[],strategy:"absolute"};function W_(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(n){return!(n&&"function"==typeof n.getBoundingClientRect)})}function BG(e){void 0===e&&(e={});var i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,a=void 0===r?$_:r;return function(o,c,l){void 0===l&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},$_,a),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:u,setOptions:function(N){var z="function"==typeof N?N(u.options):N;D(),u.options=Object.assign({},a,u.options,z),u.scrollParents={reference:y3(o)?Fr(o):o.contextElement?Fr(o.contextElement):[],popper:Fr(c)};var B=function kG(e){var t=RG(e);return hG.reduce(function(i,n){return i.concat(t.filter(function(r){return r.phase===n}))},[])}(function FG(e){var t=e.reduce(function(i,n){var r=i[n.name];return i[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,i},{});return Object.keys(t).map(function(i){return t[i]})}([].concat(n,u.options.modifiers)));return u.orderedModifiers=B.filter(function(F){return F.enabled}),function H(){u.orderedModifiers.forEach(function(S){var z=S.options,F=S.effect;if("function"==typeof F){var G=F({state:u,name:S.name,instance:m,options:void 0===z?{}:z});f.push(G||function(){})}})}(),m.update()},forceUpdate:function(){if(!p){var N=u.elements,z=N.reference,B=N.popper;if(W_(z,B)){u.rects={reference:OG(z,Br(B),"fixed"===u.options.strategy),popper:v5(B)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M1){return u.modifiersData[M1.name]=Object.assign({},M1.data)});for(var F=0;F<u.orderedModifiers.length;F++)if(!0!==u.reset){var G=u.orderedModifiers[F],ie=G.fn,ve=G.options;"function"==typeof ie&&(u=ie({state:u,options:void 0===ve?{}:ve,name:G.name,instance:m})||u)}else u.reset=!1,F=-1}}},update:PG(function(){return new Promise(function(S){m.forceUpdate(),S(u)})}),destroy:function(){D(),p=!0}};if(!W_(o,c))return m;function D(){f.forEach(function(S){return S()}),f=[]}return m.setOptions(l).then(function(S){!p&&l.onFirstUpdate&&l.onFirstUpdate(S)}),m}}var Bo={passive:!0},WG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q_(e){var t,i=e.popper,n=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,o=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=s.x,m=void 0===p?0:p,H=s.y,D=void 0===H?0:H,S="function"==typeof u?u({x:m,y:D}):{x:m,y:D};m=S.x,D=S.y;var N=s.hasOwnProperty("x"),z=s.hasOwnProperty("y"),B=nt,F=tt,G=window;if(l){var ie=Br(i),ve="clientHeight",be="clientWidth";ie===it(i)&&"static"!==yn(ie=Wn(i)).position&&"absolute"===o&&(ve="scrollHeight",be="scrollWidth"),(r===tt||(r===nt||r===Et)&&a===kr)&&(F=At,D-=(f&&ie===G&&G.visualViewport?G.visualViewport.height:ie[ve])-n.height,D*=c?1:-1),r!==nt&&(r!==tt&&r!==At||a!==kr)||(B=Et,m-=(f&&ie===G&&G.visualViewport?G.visualViewport.width:ie[be])-n.width,m*=c?1:-1)}var N2,n2=Object.assign({position:o},l&&WG),Rt=!0===u?function qG(e,t){var n=e.y,r=t.devicePixelRatio||1;return{x:J4(e.x*r)/r||0,y:J4(n*r)/r||0}}({x:m,y:D},it(i)):{x:m,y:D};return m=Rt.x,D=Rt.y,Object.assign({},n2,c?((N2={})[F]=z?"0":"",N2[B]=N?"0":"",N2.transform=(G.devicePixelRatio||1)<=1?"translate("+m+"px, "+D+"px)":"translate3d("+m+"px, "+D+"px, 0)",N2):((t={})[F]=z?D+"px":"",t[B]=N?m+"px":"",t.transform="",t))}var XG=BG({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function UG(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,a=void 0===r||r,s=n.resize,o=void 0===s||s,c=it(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",i.update,Bo)}),o&&c.addEventListener("resize",i.update,Bo),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",i.update,Bo)}),o&&c.removeEventListener("resize",i.update,Bo)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function GG(e){var t=e.state;t.modifiersData[e.name]=B_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function KG(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=void 0===n||n,a=i.adaptive,s=void 0===a||a,o=i.roundOffsets,c=void 0===o||o,l={placement:Xt(t.placement),variation:ei(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,q_(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,q_(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function ZG(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},a=t.elements[i];!vt(a)||!en(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var o=r[s];!1===o?a.removeAttribute(s):a.setAttribute(s,!0===o?"":o)}))})},effect:function QG(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]).reduce(function(c,l){return c[l]="",c},{});!vt(r)||!en(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const n$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function t$(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,s=I_.reduce(function(u,f){return u[f]=function e$(e,t,i){var n=Xt(e),r=[nt,tt].indexOf(n)>=0?-1:1,a="function"==typeof i?i(Object.assign({},t,{placement:e})):i,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[nt,Et].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}(f,t.rects,a),u},{}),o=s[t.placement],l=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o.x,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=s}};function i$(e,t){}function r$(e,t){if(1&e&&(g(0,"button",3),y(1),T(2,i$,0,0,"ng-template",4),v()),2&e){const i=t.$implicit;M("ngbPanelToggle",i),_(1),J2(" ",i.title," "),_(1),M("ngTemplateOutlet",null==i.titleTpl?null:i.titleTpl.templateRef)}}function a$(e,t){}function s$(e,t){}function o$(e,t){if(1&e){const i=E1();g(0,"div",8),I("ngbRef",function(r){return Y(i),Z(A().$implicit.panelDiv=r)}),g(1,"div",9),T(2,s$,0,0,"ng-template",4),v()()}if(2&e){const i=A().$implicit;_l("id",i.id),W("aria-labelledby",i.id+"-header"),_(2),M("ngTemplateOutlet",(null==i.contentTpl?null:i.contentTpl.templateRef)||null)}}const c$=function(e,t){return{$implicit:e,opened:t}};function l$(e,t){if(1&e&&(g(0,"div")(1,"div",5),T(2,a$,0,0,"ng-template",6),v(),T(3,o$,3,3,"div",7),v()),2&e){const i=t.$implicit,n=A(),r=P2(1);mn("accordion-item "+(i.cardClass||"")),_(1),mn("accordion-header "+(i.type?"bg-"+i.type:n.type?"bg-"+n.type:"")),P4("id","",i.id,"-header"),_(1),M("ngTemplateOutlet",(null==i.headerTpl?null:i.headerTpl.templateRef)||r)("ngTemplateOutletContext",yr(8,c$,i,i.isOpen)),_(1),M("ngIf",!n.destroyOnHide||i.isOpen||i.transitionRunning)}}function u$(e,t){if(1&e){const i=E1();g(0,"button",1),I("click",function(){return Y(i),Z(A().close())}),v()}}const Uo=["*"],F$=["dialog"];function gW(e,t){1&e&&y(0),2&e&&ht(A(2).title)}function vW(e,t){}function _W(e,t){if(1&e&&(g(0,"h3",3),T(1,gW,1,1,"ng-template",null,4,z2),T(3,vW,0,0,"ng-template",5),v()),2&e){const i=P2(2),n=A();_(3),M("ngTemplateOutlet",n.isTitleTemplate()?n.title:i)("ngTemplateOutletContext",n.context)}}function Mn(e){return"string"==typeof e}function b3(e){return null!=e}function ti(e){return(e||document.body).getBoundingClientRect()}const X_={animation:!0,transitionTimerDelayMs:5},EW=()=>{},{transitionTimerDelayMs:TW}=X_,jr=new Map,x2=(e,t,i,n)=>{let r=n.context||{};const a=jr.get(t);if(a)switch(n.runningTransition){case"continue":return ct;case"stop":e.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),jr.delete(t)}const s=i(t,n.animation,r)||EW;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),ae(void 0).pipe(function NW(e){return t=>new We(i=>t.subscribe({next:s=>e.run(()=>i.next(s)),error:s=>e.run(()=>i.error(s)),complete:()=>e.run(()=>i.complete())}))}(e));const o=new he,c=new he,l=o.pipe(function Qj(...e){return t=>Or(t,ae(...e))}(!0));jr.set(t,{transition$:o,complete:()=>{c.next(),c.complete()},context:r});const u=function AW(e){const{transitionDelay:t,transitionDuration:i}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(i))}(t);return e.runOutsideAngular(()=>{const f=X1(t,"transitionend").pipe(B1(l),D1(({target:m})=>m===t));z_(V_(u+TW).pipe(B1(l)),f,c).pipe(B1(l)).subscribe(()=>{jr.delete(t),e.run(()=>{s(),o.next(),o.complete()})})}),o.asObservable()},C5=(e,t,i)=>{let{direction:n,maxSize:r,dimension:a}=i;const{classList:s}=e;function o(){s.add("collapse"),"show"===n?s.add("show"):s.remove("show")}if(t)return r||(r=function IW(e,t){if(typeof navigator>"u")return"0px";const{classList:i}=e,n=i.contains("show");n||i.add("show"),e.style[t]="";const r=e.getBoundingClientRect()[t]+"px";return n||i.remove("show"),r}(e,a),i.maxSize=r,e.style[a]="show"!==n?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),ti(e),s.add("collapsing")),e.style[a]="show"===n?r:"0px",()=>{o(),s.remove("collapsing"),e.style[a]=""};o()};let w3=(()=>{var e;class t{constructor(){this.animation=X_.animation}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),eC=(()=>{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)(q(w3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),OW=0,jo=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(b(o1))},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),y5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(b(o1))},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),M5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(b(o1))},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),Go=(()=>{var e;class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+OW++,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=j({type:e,selectors:[["ngb-panel"]],contentQueries:function(n,r,a){if(1&n&&(_1(a,y5,4),_1(a,jo,4),_1(a,M5,4)),2&n){let s;je(s=Ge())&&(r.titleTpls=s),je(s=Ge())&&(r.headerTpls=s),je(s=Ge())&&(r.contentTpls=s)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),RW=(()=>{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)(b(Ne))},e.\u0275dir=j({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),b5=(()=>{var e;class t{set ngbPanelToggle(n){n&&(this.panel=n)}constructor(n,r){this.accordion=n,this.panel=r}}return(e=t).\u0275fac=function(n){return new(n||e)(b(ge(()=>w5)),b(Go,9))},e.\u0275dir=j({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(n,r){1&n&&I("click",function(){return r.accordion.toggle(r.panel.id)}),2&n&&(H2("disabled",r.panel.disabled),W("aria-expanded",r.panel.isOpen)("aria-controls",r.panel.id),Se("collapsed",!r.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),w5=(()=>{var e;class t{constructor(n,r,a){this._ngZone=r,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 r=this._findPanelById(n);r&&this._changeOpenState(r,!r.isOpen)}ngAfterContentChecked(){Mn(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(e2(1)).subscribe(()=>{this.panels.forEach(n=>{const r=n.panelDiv;r?n.initClassDone||(n.initClassDone=!0,x2(this._ngZone,r,C5,{animation:!1,runningTransition:"continue",context:{direction:n.isOpen?"show":"hide",dimension:"height"}})):n.initClassDone=!1})})}_changeOpenState(n,r){if(null!=n&&!n.disabled&&n.isOpen!==r){let a=!1;this.panelChange.emit({panelId:n.id,nextState:r,preventDefault:()=>{a=!0}}),a||(n.isOpen=r,n.transitionRunning=!0,r&&this.closeOtherPanels&&this._closeOthers(n.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(n,r=!0){this.panels.forEach(a=>{a.id!==n&&a.isOpen&&(a.isOpen=!1,a.transitionRunning=r)})}_findPanelById(n){return this.panels.find(r=>r.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(r=>{r.transitionRunning&&x2(this._ngZone,r.panelDiv,C5,{animation:n,runningTransition:"stop",context:{direction:r.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{r.transitionRunning=!1;const{id:s}=r;r.isOpen?(r.shown.emit(),this.shown.emit(s)):(r.hidden.emit(),this.hidden.emit(s))})})}}return(e=t).\u0275fac=function(n){return new(n||e)(b(eC),b(He),b(X2))},e.\u0275cmp=oe({type:e,selectors:[["ngb-accordion"]],contentQueries:function(n,r,a){if(1&n&&_1(a,Go,4),2&n){let s;je(s=Ge())&&(r.panels=s)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(n,r){2&n&&W("aria-multiselectable",!r.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:[D2],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,r){1&n&&(T(0,r$,3,3,"ng-template",0,1,z2),T(2,l$,4,11,"ng-template",2)),2&n&&(_(2),M("ngForOf",r.panels))},dependencies:[Jt,m3,b5,RW,jo,I1],encapsulation:2}),t})(),rC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();const jW=({classList:e})=>{e.remove("show")};let GW=(()=>{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)(q(w3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),aC=(()=>{var e;class t{constructor(n,r,a,s){this._renderer=r,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,jW,{animation:this.animation,runningTransition:"continue"});return n.subscribe(()=>this.closed.emit()),n}ngOnChanges(n){const r=n.type;r&&!r.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${r.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${r.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return(e=t).\u0275fac=function(n){return new(n||e)(b(GW),b(c2),b(Ne),b(He))},e.\u0275cmp=oe({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(n,r){2&n&&Se("fade",r.animation)("alert-dismissible",r.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[g1,D2],ngContentSelectors:Uo,decls:2,vars:1,consts:function(){let i;return i=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",i,3,"click",4,"ngIf"],["type","button","aria-label",i,1,"btn-close",3,"click"]]},template:function(n,r){1&n&&(R4(),k4(0),T(1,u$,1,0,"button",0)),2&n&&(_(1),M("ngIf",r.dismissible))},dependencies:[I1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),sC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),lC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),uC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();var Je=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}(Je||{});const Zo=(e,t)=>!!t&&t.some(i=>i.contains(e)),mC=(e,t)=>!t||null!=function xW(e,t){return!t||typeof e.closest>"u"?null:e.closest(t)}(e,t),fq=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 Qo(e,t,i,n,r,a,s,o){i&&e.runOutsideAngular((e=>fq?()=>setTimeout(()=>e(),100):e)(()=>{const l=X1(t,"keydown").pipe(B1(r),D1(p=>p.which===Je.Escape),t2(p=>p.preventDefault())),u=X1(t,"mousedown").pipe(Me(p=>{const m=p.target;return 2!==p.button&&!Zo(m,s)&&("inside"===i?Zo(m,a)&&mC(m,o):"outside"===i?!Zo(m,a):mC(m,o)||!Zo(m,a))}),B1(r)),f=X1(t,"mouseup").pipe(o5(u),D1(([p,m])=>m),x_(0),B1(r));z_([l.pipe(Me(p=>0)),f.pipe(Me(p=>1))]).subscribe(p=>e.run(()=>n(p)))}))}const gC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function vC(e){const t=Array.from(e.querySelectorAll(gC)).filter(i=>-1!==i.tabIndex);return[t[0],t[t.length-1]]}let hq=(()=>{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)(q(C1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const pq=/\s+/,mq=/ +/gi,gq={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"]},_q=/^left/,Cq=/^right/,yq=/^start/,Mq=/^end/;function CC({placement:e,baseClass:t},i){let n=Array.isArray(e)?e:e.split(pq),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(u=>-1!==u.search("^"+l))&&n.splice(a++,1,l)});const s=n.map(l=>function vq(e,t){const[i,n]=gq[e];return t&&n||i}(l,i.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!t,phase:"write",fn({state:l}){const u=new RegExp(t+"(-[a-z]+)*","gi"),f=l.elements.popper,p=l.placement;let m=f.className;m=m.replace(u,""),m+=` ${function bq(e,t){let[i,n]=t.split("-");const r=i.replace(_q,"start").replace(Cq,"end");let a=[r];if(n){let s=n;("left"===i||"right"===i)&&(s=s.replace(yq,"top").replace(Mq,"bottom")),a.push(`${r}-${s}`)}return e&&(a=a.map(s=>`${e}-${s}`)),a.join(" ")}(t,p)}`,m=m.trim().replace(mq," "),f.className=m}},HG,SG,AG,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function yC(e){return e}function Jo(){const e=J(hq);let t=null;return{createPopper(i){if(!t){let r=(i.updatePopperOptions||yC)(CC(i,e));t=XG(i.hostElement,i.targetElement,r)}},update(){t&&t.update()},setOptions(i){if(t){let r=(i.updatePopperOptions||yC)(CC(i,e));t.setOptions(r)}},destroy(){t&&(t.destroy(),t=null)}}}new Date(1882,10,12),new Date(2174,10,25);let SC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),NC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();class S3{constructor(t,i,n){this.nodes=t,this.viewRef=i,this.componentRef=n}}class AC{constructor(t,i,n,r,a,s){this._componentType=t,this._injector=i,this._viewContainerRef=n,this._renderer=r,this._ngZone=a,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(t,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,i),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,a=this._ngZone.onStable.pipe(e2(1),k1(()=>x2(this._ngZone,r,({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:i})=>i.remove("show"),{animation:t,runningTransition:"stop"}).pipe(t2(()=>{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,i){if(t){if(t instanceof o1){const n=t.createEmbeddedView(i);return this._applicationRef.attachView(n),new S3([n.rootNodes],n)}return new S3([[this._renderer.createText(`${t}`)]])}return new S3([])}}let Iq=(()=>{var e;class t{constructor(n,r){this._el=n,this._zone=r}ngOnInit(){this._zone.onStable.asObservable().pipe(e2(1)).subscribe(()=>{x2(this._zone,this._el.nativeElement,(n,r)=>{r&&ti(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)(b(Ne),b(He))},e.\u0275cmp=oe({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,r){2&n&&(mn("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),Se("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[D2],decls:0,vars:0,template:function(n,r){},encapsulation:2}),t})();class EC{update(t){}close(t){}dismiss(t){}}const Oq=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Rq=["animation","backdropClass"];class kq{_applyWindowOptions(t,i){Oq.forEach(n=>{b3(i[n])&&(t[n]=i[n])})}_applyBackdropOptions(t,i){Rq.forEach(n=>{b3(i[n])&&(t[n]=i[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(B1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(B1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(t,i,n,r){this._windowCmptRef=t,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new he,this._dismissed=new he,this._hidden=new he,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 i=this._beforeDismiss();!function Y_(e){return e&&e.then}(i)?!1!==i&&this._dismiss(t):i.then(n=>{!1!==n&&this._dismiss(t)},()=>{})}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),i=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}),i.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),s5(t,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var qr=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(qr||{});let Pq=(()=>{var e;class t{constructor(n,r,a){this._document=n,this._elRef=r,this._zone=a,this._closed$=new he,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ee,this.shown=new he,this.hidden=new he}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Mn(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(e2(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:n}=this._elRef,r={animation:this.animation,runningTransition:"stop"},o=s5(x2(this._zone,n,()=>n.classList.remove("show"),r),x2(this._zone,this._dialogEl.nativeElement,()=>{},r));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const n={animation:this.animation,runningTransition:"continue"};s5(x2(this._zone,this._elRef.nativeElement,(s,o)=>{o&&ti(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(()=>{X1(n,"keydown").pipe(B1(this._closed$),D1(a=>a.which===Je.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(qr.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let r=!1;X1(this._dialogEl.nativeElement,"mousedown").pipe(B1(this._closed$),t2(()=>r=!1),bt(()=>X1(n,"mouseup").pipe(B1(this._closed$),e2(1))),D1(({target:a})=>n===a)).subscribe(()=>{r=!0}),X1(n,"click").pipe(B1(this._closed$)).subscribe(({target:a})=>{n===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!r&&this._zone.run(()=>this.dismiss(qr.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){const r=n.querySelector("[ngbAutofocus]"),a=vC(n)[0];(r||a||n).focus()}}_restoreFocus(){const n=this._document.body,r=this._elWithFocus;let a;a=r&&r.focus&&n.contains(r)?r: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)(b(C1),b(Ne),b(He))},e.\u0275cmp=oe({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,r){if(1&n&&function h3(e,t,i){const n=xe();n.firstCreatePass&&(wm(n,new ym(e,t,i),-1),2==(2&t)&&(n.staticViewQueries=!0)),bm(n,O(),t)}(F$,7),2&n){let a;je(a=Ge())&&(r._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(n,r){2&n&&(W("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),mn("modal d-block"+(r.windowClass?" "+r.windowClass:"")),Se("fade",r.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:[D2],ngContentSelectors:Uo,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(n,r){1&n&&(R4(),g(0,"div",0,1)(2,"div",2),k4(3),v()()),2&n&&mn("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),Fq=(()=>{var e;class t{constructor(n){this._document=n}hide(){const n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),r=this._document.body,a=r.style,{overflow:s,paddingRight:o}=a;if(n>0){const c=parseFloat(window.getComputedStyle(r).paddingRight);a.paddingRight=`${c+n}px`}return a.overflow="hidden",()=>{n>0&&(a.paddingRight=o),a.overflow=s}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(C1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Bq=(()=>{var e;class t{constructor(n,r,a,s,o,c,l){this._applicationRef=n,this._injector=r,this._environmentInjector=a,this._document=s,this._scrollBar=o,this._rendererFactory=c,this._ngZone=l,this._activeWindowCmptHasChanged=new he,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ee,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const u=this._windowCmpts[this._windowCmpts.length-1];((e,t,i,n=!1)=>{e.runOutsideAngular(()=>{const r=X1(t,"focusin").pipe(B1(i),Me(a=>a.target));X1(t,"keydown").pipe(B1(i),D1(a=>a.which===Je.Tab),o5(r)).subscribe(([a,s])=>{const[o,c]=vC(t);(s===o||s===t)&&a.shiftKey&&(c.focus(),a.preventDefault()),s===c&&!a.shiftKey&&(o.focus(),a.preventDefault())}),n&&X1(t,"click").pipe(B1(i),o5(r),Me(a=>a[1])).subscribe(a=>a.focus())})})(this._ngZone,u.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(u.location.nativeElement)}})}_restoreScrollBar(){const n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,r,a){const s=a.container instanceof HTMLElement?a.container:b3(a.container)?this._document.querySelector(a.container):this._document.body,o=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 c=new EC,l=(n=a.injector||n).get(k2,null)||this._environmentInjector,u=this._getContentRef(n,l,r,c,a);let f=!1!==a.backdrop?this._attachBackdrop(s):void 0,p=this._attachWindowComponent(s,u.nodes),m=new kq(p,u,f,a.beforeDismiss);return this._registerModalRef(m),this._registerWindowCmpt(p),m.hidden.pipe(e2(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(o.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),c.close=H=>{m.close(H)},c.dismiss=H=>{m.dismiss(H)},c.update=H=>{m.update(H)},m.update(a),1===this._modalRefs.length&&o.addClass(this._document.body,"modal-open"),f&&f.instance&&f.changeDetectorRef.detectChanges(),p.changeDetectorRef.detectChanges(),m}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(r=>r.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let r=u8(Iq,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_attachWindowComponent(n,r){let a=u8(Pq,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:r});return this._applicationRef.attachView(a.hostView),n.appendChild(a.location.nativeElement),a}_getContentRef(n,r,a,s,o){return a?a instanceof o1?this._createFromTemplateRef(a,s):Mn(a)?this._createFromString(a):this._createFromComponent(n,r,a,s,o):new S3([])}_createFromTemplateRef(n,r){const s=n.createEmbeddedView({$implicit:r,close(o){r.close(o)},dismiss(o){r.dismiss(o)}});return this._applicationRef.attachView(s),new S3([s.rootNodes],s)}_createFromString(n){const r=this._document.createTextNode(`${n}`);return new S3([[r]])}_createFromComponent(n,r,a,s,o){const l=u8(a,{environmentInjector:r,elementInjector:P1.create({providers:[{provide:EC,useValue:s}],parent:n})}),u=l.location.nativeElement;return o.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new S3([[u]],l.hostView,l)}_setAriaHidden(n){const r=n.parentElement;r&&n!==this._document.body&&(Array.from(r.children).forEach(a=>{a!==n&&"SCRIPT"!==a.nodeName&&(this._ariaHiddenValues.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,r)=>{n?r.setAttribute("aria-hidden",n):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){const r=()=>{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(r,r)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{const r=this._windowCmpts.indexOf(n);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Qt),q(P1),q(k2),q(C1),q(Fq),q(W0),q(He))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Uq=(()=>{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)(q(w3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),TC=(()=>{var e;class t{constructor(n,r,a){this._injector=n,this._modalStack=r,this._config=a}open(n,r={}){const a={...this._config,animation:this._config.animation,...r};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)(q(P1),q(Bq),q(Uq))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),IC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({providers:[TC]}),t})(),kC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),WC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();class Qq{constructor(t,i){this.open=t,this.close=i,i||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const Jq={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},qC=e=>e>0?x_(e):t=>t;function KC(e,t,i,n,r,a,s=0,o=0){const c=function Xq(e,t=Jq){const i=(e||"").trim();if(0===i.length)return[];const n=i.split(/\s+/).map(a=>a.split(":")).map(a=>{let s=t[a[0]]||a;return new Qq(s[0],s[1])}),r=n.filter(a=>a.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&n.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return n}(i);if(1===c.length&&c[0].isManual())return()=>{};const l=function eK(e,t,i,n){return new We(r=>{const a=[],s=()=>r.next(!0),o=()=>r.next(!1),c=()=>r.next(!n());return i.forEach(l=>{l.open===l.close?a.push(e.listen(t,l.open,c)):a.push(e.listen(t,l.open,s),e.listen(t,l.close,o))}),()=>{a.forEach(l=>l())}})}(e,t,c,n).pipe(function tK(e,t,i){return n=>{let r=null;const a=n.pipe(Me(c=>({open:c})),D1(c=>{const l=i();return l===c.open||r&&r.open!==l?(r&&r.open!==c.open&&(r=null),!1):(r=c,!0)}),y6());return C6(a.pipe(D1(c=>c.open),qC(e)),a.pipe(D1(c=>!c.open),qC(t))).pipe(D1(c=>c===r&&(r=null,c.open!==i())),Me(c=>c.open))}}(s,o,n)).subscribe(u=>u?r():a());return()=>l.unsubscribe()}let nK=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=r=>r,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)(q(w3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),iK=0,rK=(()=>{var e;class t{isTitleTemplate(){return this.title instanceof o1}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=oe({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,r){2&n&&(H2("id",r.id),mn("popover"+(r.popoverClass?" "+r.popoverClass:"")),Se("fade",r.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[D2],ngContentSelectors:Uo,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,r){1&n&&(R4(),R(0,"div",0),T(1,_W,4,2,"h3",1),g(2,"div",2),k4(3),v()),2&n&&(_(1),M("ngIf",r.title))},dependencies:[m3,I1],encapsulation:2,changeDetection:0}),t})(),aK=(()=>{var e;class t{_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}constructor(n,r,a,s,o,c,l,u,f){this._elementRef=n,this._renderer=r,this._ngZone=c,this._document=l,this._changeDetector=u,this.shown=new ee,this.hidden=new ee,this._ngbPopoverWindowId="ngb-popover-"+iK++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.popperOptions=o.popperOptions,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._positioning=Jo(),this._popupService=new AC(rK,a,s,r,this._ngZone,f)}open(n){if(!this._windowRef&&!this._isDisabled()){const{windowRef:r,transition$:a}=this._popupService.open(this.ngbPopover,n??this.popoverContext,this.animation);this._windowRef=r,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 x5(e){return t=>(t.modifiers.push(n$,{name:"offset",options:{offset:()=>e}}),t)}([0,8])(s))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),Qo(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(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=KC(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:r,disablePopover:a,popoverClass:s}){s&&this.isOpen()&&(this._windowRef.instance.popoverClass=s.currentValue),(n||r||a)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Mn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(b(Ne),b(c2),b(P1),b(B2),b(nK),b(He),b(C1),b(X2),b(Qt))},e.\u0275dir=j({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:[g1]}),t})(),YC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),ZC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),QC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),JC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),XC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),ey=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),uK=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=r=>r,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)(q(w3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),fK=0,dK=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=oe({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,r){2&n&&(H2("id",r.id),mn("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),Se("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[D2],ngContentSelectors:Uo,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,r){1&n&&(R4(),R(0,"div",0),g(1,"div",1),k4(2),v())},encapsulation:2,changeDetection:0}),t})(),hK=(()=>{var e;class t{constructor(n,r,a,s,o,c,l,u,f){this._elementRef=n,this._renderer=r,this._ngZone=c,this._document=l,this._changeDetector=u,this.shown=new ee,this.hidden=new ee,this._ngbTooltipWindowId="ngb-tooltip-"+fK++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.popperOptions=o.popperOptions,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new AC(dK,a,s,r,this._ngZone,f),this._positioning=Jo()}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:r,transition$:a}=this._popupService.open(this._ngbTooltip,n??this.tooltipContext,this.animation);this._windowRef=r,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())})}),Qo(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=KC(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(Mn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(b(Ne),b(c2),b(P1),b(B2),b(uK),b(He),b(C1),b(X2),b(Qt))},e.\u0275dir=j({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:[g1]}),t})(),ty=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();new te("live announcer delay",{providedIn:"root",factory:function pK(){return 100}});let ny=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})(),iy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();const gK=[rC,sC,lC,uC,SC,NC,IC,kC,iy,WC,YC,ZC,QC,JC,XC,ey,ty,ny];let vK=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({imports:[gK,rC,sC,lC,uC,SC,NC,IC,kC,iy,WC,YC,ZC,QC,JC,XC,ey,ty,ny]}),t})();function ry(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function X(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ry(Object(i),!0).forEach(function(n){q1(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ry(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function ac(e){return(ac="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 ay(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function q1(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function I5(e,t){return function bK(e){if(Array.isArray(e))return e}(e)||function HK(e,t){var i=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s,o,n=[],r=!0,a=!1;try{for(i=i.call(e);!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){a=!0,o=c}finally{try{!r&&null!=i.return&&i.return()}finally{if(a)throw o}}return n}}(e,t)||sy(e,t)||function DK(){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 Zr(e){return function MK(e){if(Array.isArray(e))return O5(e)}(e)||function wK(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sy(e)||function VK(){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 sy(e,t){if(e){if("string"==typeof e)return O5(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return O5(e,t)}}function O5(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var oy=function(){},R5={},cy={},ly=null,uy={mark:oy,measure:oy};try{typeof window<"u"&&(R5=window),typeof document<"u"&&(cy=document),typeof MutationObserver<"u"&&(ly=MutationObserver),typeof performance<"u"&&(uy=performance)}catch{}var cc,lc,uc,fc,dc,fy=(R5.navigator||{}).userAgent,dy=void 0===fy?"":fy,qn=R5,c1=cy,hy=ly,oc=uy,bn=!!c1.documentElement&&!!c1.head&&"function"==typeof c1.addEventListener&&"function"==typeof c1.createElement,py=~dy.indexOf("MSIE")||~dy.indexOf("Trident/"),wn="___FONT_AWESOME___",my="fa",gy="svg-inline--fa",L3="data-fa-i2svg",P5="data-fa-pseudo-element",SK="data-fa-pseudo-element-pending",F5="data-prefix",B5="data-icon",vy="fontawesome-i2svg",LK="async",xK=["HTML","HEAD","STYLE","SCRIPT"],_y=function(){try{return!0}catch{return!1}}(),l1="classic",z1="sharp",U5=[l1,z1];function Qr(e){return new Proxy(e,{get:function(i,n){return n in i?i[n]:i[l1]}})}var Jr=Qr((q1(cc={},l1,{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"}),q1(cc,z1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),cc)),Xr=Qr((q1(lc={},l1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),q1(lc,z1,{solid:"fass",regular:"fasr",light:"fasl"}),lc)),ea=Qr((q1(uc={},l1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),q1(uc,z1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),uc)),NK=Qr((q1(fc={},l1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),q1(fc,z1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),fc)),AK=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Cy="fa-layers-text",EK=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,TK=Qr((q1(dc={},l1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),q1(dc,z1,{900:"fass",400:"fasr",300:"fasl"}),dc)),yy=[1,2,3,4,5,6,7,8,9,10],IK=yy.concat([11,12,13,14,15,16,17,18,19,20]),OK=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],x3={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ta=new Set;Object.keys(Xr[l1]).map(ta.add.bind(ta)),Object.keys(Xr[z1]).map(ta.add.bind(ta));var RK=[].concat(U5,Zr(ta),["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",x3.GROUP,x3.SWAP_OPACITY,x3.PRIMARY,x3.SECONDARY]).concat(yy.map(function(e){return"".concat(e,"x")})).concat(IK.map(function(e){return"w-".concat(e)})),na=qn.FontAwesomeConfig||{};c1&&"function"==typeof c1.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=I5(e,2),n=t[1],r=function PK(e){return""===e||"false"!==e&&("true"===e||e)}(function kK(e){var t=c1.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=r&&(na[n]=r)});var My={styleDefault:"solid",familyDefault:"classic",cssPrefix:my,replacementClass:gy,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};na.familyPrefix&&(na.cssPrefix=na.familyPrefix);var ai=X(X({},My),na);ai.autoReplaceSvg||(ai.observeMutations=!1);var ne={};Object.keys(My).forEach(function(e){Object.defineProperty(ne,e,{enumerable:!0,set:function(i){ai[e]=i,ia.forEach(function(n){return n(ne)})},get:function(){return ai[e]}})}),Object.defineProperty(ne,"familyPrefix",{enumerable:!0,set:function(t){ai.cssPrefix=t,ia.forEach(function(i){return i(ne)})},get:function(){return ai.cssPrefix}}),qn.FontAwesomeConfig=ne;var ia=[],tn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},jK="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ra(){for(var e=12,t="";e-- >0;)t+=jK[62*Math.random()|0];return t}function si(e){for(var t=[],i=(e||[]).length>>>0;i--;)t[i]=e[i];return t}function j5(e){return e.classList?si(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function by(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function hc(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,": ").concat(e[i].trim(),";")},"")}function G5(e){return e.size!==tn.size||e.x!==tn.x||e.y!==tn.y||e.rotate!==tn.rotate||e.flipX||e.flipY}var qK=':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 wy(){var e=my,t=gy,i=ne.cssPrefix,n=ne.replacementClass,r=qK;if(i!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),o=new RegExp("\\.".concat(t),"g");r=r.replace(a,".".concat(i,"-")).replace(s,"--".concat(i,"-")).replace(o,".".concat(n))}return r}var Hy=!1;function $5(){ne.autoAddCss&&!Hy&&(function UK(e){if(e&&bn){var t=c1.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var i=c1.head.childNodes,n=null,r=i.length-1;r>-1;r--){var a=i[r],s=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(n=a)}c1.head.insertBefore(t,n)}}(wy()),Hy=!0)}var KK={mixout:function(){return{dom:{css:wy,insertCss:$5}}},hooks:function(){return{beforeDOMElementCreation:function(){$5()},beforeI2svg:function(){$5()}}}},Hn=qn||{};Hn[wn]||(Hn[wn]={}),Hn[wn].styles||(Hn[wn].styles={}),Hn[wn].hooks||(Hn[wn].hooks={}),Hn[wn].shims||(Hn[wn].shims=[]);var It=Hn[wn],Vy=[],pc=!1;function aa(e){var t=e.tag,i=e.attributes,n=void 0===i?{}:i,r=e.children,a=void 0===r?[]:r;return"string"==typeof e?by(e):"<".concat(t," ").concat(function GK(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,'="').concat(by(e[i]),'" ')},"").trim()}(n),">").concat(a.map(aa).join(""),"</").concat(t,">")}function Dy(e,t,i){if(e&&e[t]&&e[t][i])return{prefix:t,iconName:i,icon:e[t][i]}}bn&&((pc=(c1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c1.readyState))||c1.addEventListener("DOMContentLoaded",function e(){c1.removeEventListener("DOMContentLoaded",e),pc=1,Vy.map(function(t){return t()})}));var W5=function(t,i,n,r){var c,l,u,a=Object.keys(t),s=a.length,o=void 0!==r?function(t,i){return function(n,r,a,s){return t.call(i,n,r,a,s)}}(i,r):i;for(void 0===n?(c=1,u=t[a[0]]):(c=0,u=n);c<s;c++)u=o(u,t[l=a[c]],l,t);return u};function q5(e){var t=function JK(e){for(var t=[],i=0,n=e.length;i<n;){var r=e.charCodeAt(i++);if(r>=55296&&r<=56319&&i<n){var a=e.charCodeAt(i++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),i--)}else t.push(r)}return t}(e);return 1===t.length?t[0].toString(16):null}function zy(e){return Object.keys(e).reduce(function(t,i){var n=e[i];return n.icon?t[n.iconName]=n.icon:t[i]=n,t},{})}function K5(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,a=zy(t);"function"!=typeof It.hooks.addPack||r?It.styles[e]=X(X({},It.styles[e]||{}),a):It.hooks.addPack(e,zy(t)),"fas"===e&&K5("fa",t)}var mc,gc,vc,oi=It.styles,eY=It.shims,tY=(q1(mc={},l1,Object.values(ea[l1])),q1(mc,z1,Object.values(ea[z1])),mc),Y5=null,Sy={},Ly={},xy={},Ny={},Ay={},nY=(q1(gc={},l1,Object.keys(Jr[l1])),q1(gc,z1,Object.keys(Jr[z1])),gc);var Ey=function(){var t=function(a){return W5(oi,function(s,o,c){return s[c]=W5(o,a,{}),s},{})};Sy=t(function(r,a,s){return a[3]&&(r[a[3]]=s),a[2]&&a[2].filter(function(c){return"number"==typeof c}).forEach(function(c){r[c.toString(16)]=s}),r}),Ly=t(function(r,a,s){return r[s]=s,a[2]&&a[2].filter(function(c){return"string"==typeof c}).forEach(function(c){r[c]=s}),r}),Ay=t(function(r,a,s){var o=a[2];return r[s]=s,o.forEach(function(c){r[c]=s}),r});var i="far"in oi||ne.autoFetchSvg,n=W5(eY,function(r,a){var s=a[0],o=a[1],c=a[2];return"far"===o&&!i&&(o="fas"),"string"==typeof s&&(r.names[s]={prefix:o,iconName:c}),"number"==typeof s&&(r.unicodes[s.toString(16)]={prefix:o,iconName:c}),r},{names:{},unicodes:{}});xy=n.names,Ny=n.unicodes,Y5=_c(ne.styleDefault,{family:ne.familyDefault})};function Z5(e,t){return(Sy[e]||{})[t]}function N3(e,t){return(Ay[e]||{})[t]}function Ty(e){return xy[e]||{prefix:null,iconName:null}}function Yn(){return Y5}(function BK(e){ia.push(e)})(function(e){Y5=_c(e.styleDefault,{family:ne.familyDefault})}),Ey();var Q5=function(){return{prefix:null,iconName:null,rest:[]}};function _c(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===i?l1:i;return Xr[n][e]||Xr[n][Jr[n][e]]||(e in It.styles?e:null)||null}var Iy=(q1(vc={},l1,Object.keys(ea[l1])),q1(vc,z1,Object.keys(ea[z1])),vc);function Cc(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,a=(q1(t={},l1,"".concat(ne.cssPrefix,"-").concat(l1)),q1(t,z1,"".concat(ne.cssPrefix,"-").concat(z1)),t),s=null,o=l1;(e.includes(a[l1])||e.some(function(l){return Iy[l1].includes(l)}))&&(o=l1),(e.includes(a[z1])||e.some(function(l){return Iy[z1].includes(l)}))&&(o=z1);var c=e.reduce(function(l,u){var f=function rY(e,t){var i=t.split("-"),n=i[0],r=i.slice(1).join("-");return n!==e||""===r||function iY(e){return~RK.indexOf(e)}(r)?null:r}(ne.cssPrefix,u);if(oi[u]?(u=tY[o].includes(u)?NK[o][u]:u,s=u,l.prefix=u):nY[o].indexOf(u)>-1?(s=u,l.prefix=_c(u,{family:o})):f?l.iconName=f:u!==ne.replacementClass&&u!==a[l1]&&u!==a[z1]&&l.rest.push(u),!r&&l.prefix&&l.iconName){var p="fa"===s?Ty(l.iconName):{},m=N3(l.prefix,l.iconName);p.prefix&&(s=null),l.iconName=p.iconName||m||l.iconName,l.prefix=p.prefix||l.prefix,"far"===l.prefix&&!oi.far&&oi.fas&&!ne.autoFetchSvg&&(l.prefix="fas")}return l},Q5());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),!c.prefix&&o===z1&&(oi.fass||ne.autoFetchSvg)&&(c.prefix="fass",c.iconName=N3(c.prefix,c.iconName)||c.iconName),("fa"===c.prefix||"fa"===s)&&(c.prefix=Yn()||"fas"),c}var oY=function(){function e(){(function _K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function CK(e,t,i){t&&ay(e.prototype,t),i&&ay(e,i),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var i=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var s=r.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(o){i.definitions[o]=X(X({},i.definitions[o]||{}),s[o]),K5(o,s[o]);var c=ea[l1][o];c&&K5(c,s[o]),Ey()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(i,n){var r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(function(a){var s=r[a],o=s.prefix,c=s.iconName,l=s.icon,u=l[2];i[o]||(i[o]={}),u.length>0&&u.forEach(function(f){"string"==typeof f&&(i[o][f]=l)}),i[o][c]=l}),i}}]),e}(),Oy=[],ci={},li={},cY=Object.keys(li);function J5(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];return(ci[e]||[]).forEach(function(s){t=s.apply(null,[t].concat(n))}),t}function A3(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(ci[e]||[]).forEach(function(a){a.apply(null,i)})}function Vn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return li[e]?li[e].apply(null,t):void 0}function X5(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,i=e.prefix||Yn();if(t)return t=N3(i,t)||t,Dy(Ry.definitions,i,t)||Dy(It.styles,i,t)}var Ry=new oY,fY={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return bn?(A3("beforeI2svg",t),Vn("pseudoElements2svg",t),Vn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.autoReplaceSvgRoot;!1===ne.autoReplaceSvg&&(ne.autoReplaceSvg=!0),ne.observeMutations=!0,function ZK(e){bn&&(pc?setTimeout(e,0):Vy.push(e))}(function(){hY({autoReplaceSvgRoot:i}),A3("watch",t)})}},rt={noAuto:function(){ne.autoReplaceSvg=!1,ne.observeMutations=!1,A3("noAuto")},config:ne,dom:fY,parse:{icon:function(t){if(null===t)return null;if("object"===ac(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:N3(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var i=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=_c(t[0]);return{prefix:n,iconName:N3(n,i)||i}}if("string"==typeof t&&(t.indexOf("".concat(ne.cssPrefix,"-"))>-1||t.match(AK))){var r=Cc(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||Yn(),iconName:N3(r.prefix,r.iconName)||r.iconName}}if("string"==typeof t){var a=Yn();return{prefix:a,iconName:N3(a,t)||t}}}},library:Ry,findIconDefinition:X5,toHtml:aa},hY=function(){var i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,n=void 0===i?c1:i;(Object.keys(It.styles).length>0||ne.autoFetchSvg)&&bn&&ne.autoReplaceSvg&&rt.dom.i2svg({node:n})};function yc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return aa(n)})}}),Object.defineProperty(e,"node",{get:function(){if(bn){var n=c1.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function e7(e){var t=e.icons,i=t.main,n=t.mask,r=e.prefix,a=e.iconName,s=e.transform,o=e.symbol,c=e.title,l=e.maskId,u=e.titleId,f=e.extra,p=e.watchable,m=void 0!==p&&p,H=n.found?n:i,D=H.width,S=H.height,N="fak"===r,z=[ne.replacementClass,a?"".concat(ne.cssPrefix,"-").concat(a):""].filter(function(Pe){return-1===f.classes.indexOf(Pe)}).filter(function(Pe){return""!==Pe||!!Pe}).concat(f.classes).join(" "),B={children:[],attributes:X(X({},f.attributes),{},{"data-prefix":r,"data-icon":a,class:z,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(D," ").concat(S)})},F=N&&!~f.classes.indexOf("fa-fw")?{width:"".concat(D/S*16*.0625,"em")}:{};m&&(B.attributes[L3]=""),c&&(B.children.push({tag:"title",attributes:{id:B.attributes["aria-labelledby"]||"title-".concat(u||ra())},children:[c]}),delete B.attributes.title);var G=X(X({},B),{},{prefix:r,iconName:a,main:i,mask:n,maskId:l,transform:s,symbol:o,styles:X(X({},F),f.styles)}),ie=n.found&&i.found?Vn("generateAbstractMask",G)||{children:[],attributes:{}}:Vn("generateAbstractIcon",G)||{children:[],attributes:{}},be=ie.attributes;return G.children=ie.children,G.attributes=be,o?function mY(e){var i=e.iconName,n=e.children,r=e.attributes,a=e.symbol,s=!0===a?"".concat(e.prefix,"-").concat(ne.cssPrefix,"-").concat(i):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:X(X({},r),{},{id:s}),children:n}]}]}(G):function pY(e){var t=e.children,i=e.main,n=e.mask,r=e.attributes,a=e.styles,s=e.transform;if(G5(s)&&i.found&&!n.found){var l={x:i.width/i.height/2,y:.5};r.style=hc(X(X({},a),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(G)}function ky(e){var t=e.content,i=e.width,n=e.height,r=e.transform,a=e.title,s=e.extra,o=e.watchable,c=void 0!==o&&o,l=X(X(X({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});c&&(l[L3]="");var u=X({},s.styles);G5(r)&&(u.transform=function WK(e){var t=e.transform,i=e.width,r=e.height,a=void 0===r?16:r,s=e.startCentered,o=void 0!==s&&s,c="";return c+=o&&py?"translate(".concat(t.x/16-(void 0===i?16:i)/2,"em, ").concat(t.y/16-a/2,"em) "):o?"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) "),(c+="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:r,startCentered:!0,width:i,height:n}),u["-webkit-transform"]=u.transform);var f=hc(u);f.length>0&&(l.style=f);var p=[];return p.push({tag:"span",attributes:l,children:[t]}),a&&p.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),p}var t7=It.styles;function n7(e){var t=e[0],i=e[1],a=I5(e.slice(4),1)[0];return{found:!0,width:t,height:i,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(ne.cssPrefix,"-").concat(x3.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(x3.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(x3.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var vY={found:!1,width:512,height:512};function i7(e,t){var i=t;return"fa"===t&&null!==ne.styleDefault&&(t=Yn()),new Promise(function(n,r){if(Vn("missingIconAbstract"),"fa"===i){var s=Ty(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&t7[t]&&t7[t][e])return n(n7(t7[t][e]));(function _Y(e,t){!_y&&!ne.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))})(e,t),n(X(X({},vY),{},{icon:ne.showMissingIcons&&e&&Vn("missingIconAbstract")||{}}))})}var Py=function(){},r7=ne.measurePerformance&&oc&&oc.mark&&oc.measure?oc:{mark:Py,measure:Py},sa='FA "6.4.2"',Fy=function(t){r7.mark("".concat(sa," ").concat(t," ends")),r7.measure("".concat(sa," ").concat(t),"".concat(sa," ").concat(t," begins"),"".concat(sa," ").concat(t," ends"))},a7={begin:function(t){return r7.mark("".concat(sa," ").concat(t," begins")),function(){return Fy(t)}},end:Fy},Mc=function(){};function By(e){return"string"==typeof(e.getAttribute?e.getAttribute(L3):null)}function wY(e){return c1.createElementNS("http://www.w3.org/2000/svg",e)}function HY(e){return c1.createElement(e)}function Uy(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===i?"svg"===e.tag?wY:HY:i;if("string"==typeof e)return c1.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(s){r.setAttribute(s,e.attributes[s])}),(e.children||[]).forEach(function(s){r.appendChild(Uy(s,{ceFn:n}))}),r}var bc={replace:function(t){var i=t[0];if(i.parentNode)if(t[1].forEach(function(r){i.parentNode.insertBefore(Uy(r),i)}),null===i.getAttribute(L3)&&ne.keepOriginalSource){var n=c1.createComment(function VY(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(i));i.parentNode.replaceChild(n,i)}else i.remove()},nest:function(t){var i=t[0],n=t[1];if(~j5(i).indexOf(ne.replacementClass))return bc.replace(t);var r=new RegExp("".concat(ne.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(o,c){return c===ne.replacementClass||c.match(r)?o.toSvg.push(c):o.toNode.push(c),o},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?i.removeAttribute("class"):i.setAttribute("class",a.toNode.join(" "))}var s=n.map(function(o){return aa(o)}).join("\n");i.setAttribute(L3,""),i.innerHTML=s}};function jy(e){e()}function Gy(e,t){var i="function"==typeof t?t:Mc;if(0===e.length)i();else{var n=jy;ne.mutateApproach===LK&&(n=qn.requestAnimationFrame||jy),n(function(){var r=function bY(){return!0===ne.autoReplaceSvg?bc.replace:bc[ne.autoReplaceSvg]||bc.replace}(),a=a7.begin("mutate");e.map(r),a(),i()})}}var s7=!1;function $y(){s7=!0}function o7(){s7=!1}var wc=null;function Wy(e){if(hy&&ne.observeMutations){var t=e.treeCallback,i=void 0===t?Mc:t,n=e.nodeCallback,r=void 0===n?Mc:n,a=e.pseudoElementsCallback,s=void 0===a?Mc:a,o=e.observeMutationsRoot,c=void 0===o?c1:o;wc=new hy(function(l){if(!s7){var u=Yn();si(l).forEach(function(f){if("childList"===f.type&&f.addedNodes.length>0&&!By(f.addedNodes[0])&&(ne.searchPseudoElements&&s(f.target),i(f.target)),"attributes"===f.type&&f.target.parentNode&&ne.searchPseudoElements&&s(f.target.parentNode),"attributes"===f.type&&By(f.target)&&~OK.indexOf(f.attributeName))if("class"===f.attributeName&&function yY(e){var t=e.getAttribute?e.getAttribute(F5):null,i=e.getAttribute?e.getAttribute(B5):null;return t&&i}(f.target)){var p=Cc(j5(f.target)),H=p.iconName;f.target.setAttribute(F5,p.prefix||u),H&&f.target.setAttribute(B5,H)}else(function MY(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ne.replacementClass)})(f.target)&&r(f.target)})}}),bn&&wc.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function qy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},i=function SY(e){var t=e.getAttribute("data-prefix"),i=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"",r=Cc(j5(e));return r.prefix||(r.prefix=Yn()),t&&i&&(r.prefix=t,r.iconName=i),r.iconName&&r.prefix||(r.prefix&&n.length>0&&(r.iconName=function aY(e,t){return(Ly[e]||{})[t]}(r.prefix,e.innerText)||Z5(r.prefix,q5(e.innerText))),!r.iconName&&ne.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}(e),n=i.iconName,r=i.prefix,a=i.rest,s=function LY(e){var t=si(e.attributes).reduce(function(r,a){return"class"!==r.name&&"style"!==r.name&&(r[a.name]=a.value),r},{}),i=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return ne.autoA11y&&(i?t["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(n||ra()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),o=J5("parseNodeAttributes",{},e),c=t.styleParser?function zY(e){var t=e.getAttribute("style"),i=[];return t&&(i=t.split(";").reduce(function(n,r){var a=r.split(":"),s=a[0],o=a.slice(1);return s&&o.length>0&&(n[s]=o.join(":").trim()),n},{})),i}(e):[];return X({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:tn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:s}},o)}var NY=It.styles;function Ky(e){var t="nest"===ne.autoReplaceSvg?qy(e,{styleParser:!1}):qy(e);return~t.extra.classes.indexOf(Cy)?Vn("generateLayersText",e,t):Vn("generateSvgReplacementMutation",e,t)}var Zn=new Set;function Yy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!bn)return Promise.resolve();var i=c1.documentElement.classList,n=function(f){return i.add("".concat(vy,"-").concat(f))},r=function(f){return i.remove("".concat(vy,"-").concat(f))},a=ne.autoFetchSvg?Zn:U5.map(function(u){return"fa-".concat(u)}).concat(Object.keys(NY));a.includes("fa")||a.push("fa");var s=[".".concat(Cy,":not([").concat(L3,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(L3,"])")})).join(", ");if(0===s.length)return Promise.resolve();var o=[];try{o=si(e.querySelectorAll(s))}catch{}if(!(o.length>0))return Promise.resolve();n("pending"),r("complete");var c=a7.begin("onTree"),l=o.reduce(function(u,f){try{var p=Ky(f);p&&u.push(p)}catch(m){_y||"MissingIcon"===m.name&&console.error(m)}return u},[]);return new Promise(function(u,f){Promise.all(l).then(function(p){Gy(p,function(){n("active"),n("complete"),r("pending"),"function"==typeof t&&t(),c(),u()})}).catch(function(p){c(),f(p)})})}function AY(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ky(e).then(function(i){i&&Gy([i],t)})}U5.map(function(e){Zn.add("fa-".concat(e))}),Object.keys(Jr[l1]).map(Zn.add.bind(Zn)),Object.keys(Jr[z1]).map(Zn.add.bind(Zn)),Zn=Zr(Zn);var TY=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.transform,r=void 0===n?tn:n,a=i.symbol,s=void 0!==a&&a,o=i.mask,c=void 0===o?null:o,l=i.maskId,u=void 0===l?null:l,f=i.title,p=void 0===f?null:f,m=i.titleId,H=void 0===m?null:m,D=i.classes,S=void 0===D?[]:D,N=i.attributes,z=void 0===N?{}:N,B=i.styles,F=void 0===B?{}:B;if(t){var G=t.prefix,ie=t.iconName,ve=t.icon;return yc(X({type:"icon"},t),function(){return A3("beforeDOMElementCreation",{iconDefinition:t,params:i}),ne.autoA11y&&(p?z["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(H||ra()):(z["aria-hidden"]="true",z.focusable="false")),e7({icons:{main:n7(ve),mask:c?n7(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:G,iconName:ie,transform:X(X({},tn),r),symbol:s,title:p,maskId:u,titleId:H,extra:{attributes:z,styles:F,classes:S}})})}},IY={mixout:function(){return{icon:(e=TY,function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:X5(t||{}),r=i.mask;return r&&(r=(r||{}).icon?r:X5(r||{})),e(n,X(X({},i),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(i){return i.treeCallback=Yy,i.nodeCallback=AY,i}}},provides:function(t){t.i2svg=function(i){var n=i.node,a=i.callback;return Yy(void 0===n?c1:n,void 0===a?function(){}:a)},t.generateSvgReplacementMutation=function(i,n){var r=n.iconName,a=n.title,s=n.titleId,o=n.prefix,c=n.transform,l=n.symbol,u=n.mask,f=n.maskId,p=n.extra;return new Promise(function(m,H){Promise.all([i7(r,o),u.iconName?i7(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(D){var S=I5(D,2);m([i,e7({icons:{main:S[0],mask:S[1]},prefix:o,iconName:r,transform:c,symbol:l,maskId:f,title:a,titleId:s,extra:p,watchable:!0})])}).catch(H)})},t.generateAbstractIcon=function(i){var l,n=i.children,r=i.attributes,a=i.main,s=i.transform,c=hc(i.styles);return c.length>0&&(r.style=c),G5(s)&&(l=Vn("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:r}}}},OY={mixout:function(){return{layer:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.classes,a=void 0===r?[]:r;return yc({type:"layer"},function(){A3("beforeDOMElementCreation",{assembler:i,params:n});var s=[];return i(function(o){Array.isArray(o)?o.map(function(c){s=s.concat(c.abstract)}):s=s.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(ne.cssPrefix,"-layers")].concat(Zr(a)).join(" ")},children:s}]})}}}},RY={mixout:function(){return{counter:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.title,a=void 0===r?null:r,s=n.classes,o=void 0===s?[]:s,c=n.attributes,l=void 0===c?{}:c,u=n.styles,f=void 0===u?{}:u;return yc({type:"counter",content:i},function(){return A3("beforeDOMElementCreation",{content:i,params:n}),function gY(e){var t=e.content,i=e.title,n=e.extra,r=X(X(X({},n.attributes),i?{title:i}:{}),{},{class:n.classes.join(" ")}),a=hc(n.styles);a.length>0&&(r.style=a);var s=[];return s.push({tag:"span",attributes:r,children:[t]}),i&&s.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),s}({content:i.toString(),title:a,extra:{attributes:l,styles:f,classes:["".concat(ne.cssPrefix,"-layers-counter")].concat(Zr(o))}})})}}}},kY={mixout:function(){return{text:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.transform,a=void 0===r?tn:r,s=n.title,o=void 0===s?null:s,c=n.classes,l=void 0===c?[]:c,u=n.attributes,f=void 0===u?{}:u,p=n.styles,m=void 0===p?{}:p;return yc({type:"text",content:i},function(){return A3("beforeDOMElementCreation",{content:i,params:n}),ky({content:i,transform:X(X({},tn),a),title:o,extra:{attributes:f,styles:m,classes:["".concat(ne.cssPrefix,"-layers-text")].concat(Zr(l))}})})}}},provides:function(t){t.generateLayersText=function(i,n){var r=n.title,a=n.transform,s=n.extra,o=null,c=null;if(py){var l=parseInt(getComputedStyle(i).fontSize,10),u=i.getBoundingClientRect();o=u.width/l,c=u.height/l}return ne.autoA11y&&!r&&(s.attributes["aria-hidden"]="true"),Promise.resolve([i,ky({content:i.innerHTML,width:o,height:c,transform:a,title:r,extra:s,watchable:!0})])}}},PY=new RegExp('"',"ug"),Zy=[1105920,1112319];function Qy(e,t){var i="".concat(SK).concat(t.replace(":","-"));return new Promise(function(n,r){if(null!==e.getAttribute(i))return n();var s=si(e.children).filter(function(ve){return ve.getAttribute(P5)===t})[0],o=qn.getComputedStyle(e,t),c=o.getPropertyValue("font-family").match(EK),l=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(s&&!c)return e.removeChild(s),n();if(c&&"none"!==u&&""!==u){var f=o.getPropertyValue("content"),p=~["Sharp"].indexOf(c[2])?z1:l1,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?Xr[p][c[2].toLowerCase()]:TK[p][l],H=function FY(e){var t=e.replace(PY,""),i=function XK(e,t){var r,i=e.length,n=e.charCodeAt(t);return n>=55296&&n<=56319&&i>t+1&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}(t,0),n=i>=Zy[0]&&i<=Zy[1],r=2===t.length&&t[0]===t[1];return{value:q5(r?t[0]:t),isSecondary:n||r}}(f),D=H.value,S=H.isSecondary,N=c[0].startsWith("FontAwesome"),z=Z5(m,D),B=z;if(N){var F=function sY(e){var t=Ny[e],i=Z5("fas",e);return t||(i?{prefix:"fas",iconName:i}:null)||{prefix:null,iconName:null}}(D);F.iconName&&F.prefix&&(z=F.iconName,m=F.prefix)}if(!z||S||s&&s.getAttribute(F5)===m&&s.getAttribute(B5)===B)n();else{e.setAttribute(i,B),s&&e.removeChild(s);var G=function xY(){return{iconName:null,title:null,titleId:null,prefix:null,transform:tn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ie=G.extra;ie.attributes[P5]=t,i7(z,m).then(function(ve){var be=e7(X(X({},G),{},{icons:{main:ve,mask:Q5()},prefix:m,iconName:B,extra:ie,watchable:!0})),Pe=c1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(Pe,e.firstChild):e.appendChild(Pe),Pe.outerHTML=be.map(function(M1){return aa(M1)}).join("\n"),e.removeAttribute(i),n()}).catch(r)}}else n()})}function BY(e){return Promise.all([Qy(e,"::before"),Qy(e,"::after")])}function UY(e){return!(e.parentNode===document.head||~xK.indexOf(e.tagName.toUpperCase())||e.getAttribute(P5)||e.parentNode&&"svg"===e.parentNode.tagName)}function Jy(e){if(bn)return new Promise(function(t,i){var n=si(e.querySelectorAll("*")).filter(UY).map(BY),r=a7.begin("searchPseudoElements");$y(),Promise.all(n).then(function(){r(),o7(),t()}).catch(function(){r(),o7(),i()})})}var Xy=!1,eM=function(t){return t.toLowerCase().split(" ").reduce(function(n,r){var a=r.toLowerCase().split("-"),s=a[0],o=a.slice(1).join("-");if(s&&"h"===o)return n.flipX=!0,n;if(s&&"v"===o)return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(s){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o}return n},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},c7={x:0,y:0,width:"100%",height:"100%"};function tM(e){return e.attributes&&(e.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.attributes.fill="black"),e}!function lY(e,t){var i=t.mixoutsTo;Oy=e,ci={},Object.keys(li).forEach(function(n){-1===cY.indexOf(n)&&delete li[n]}),Oy.forEach(function(n){var r=n.mixout?n.mixout():{};if(Object.keys(r).forEach(function(s){"function"==typeof r[s]&&(i[s]=r[s]),"object"===ac(r[s])&&Object.keys(r[s]).forEach(function(o){i[s]||(i[s]={}),i[s][o]=r[s][o]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(s){ci[s]||(ci[s]=[]),ci[s].push(a[s])})}n.provides&&n.provides(li)})}([KK,IY,OY,RY,kY,{hooks:function(){return{mutationObserverCallbacks:function(i){return i.pseudoElementsCallback=Jy,i}}},provides:function(t){t.pseudoElements2svg=function(i){var n=i.node;ne.searchPseudoElements&&Jy(void 0===n?c1:n)}}},{mixout:function(){return{dom:{unwatch:function(){$y(),Xy=!0}}}},hooks:function(){return{bootstrap:function(){Wy(J5("mutationObserverCallbacks",{}))},noAuto:function(){!function DY(){wc&&wc.disconnect()}()},watch:function(i){var n=i.observeMutationsRoot;Xy?o7():Wy(J5("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},{mixout:function(){return{parse:{transform:function(i){return eM(i)}}}},hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-transform");return r&&(i.transform=eM(r)),i}}},provides:function(t){t.generateAbstractTransformGrouping=function(i){var n=i.main,r=i.transform,s=i.iconWidth,o={transform:"translate(".concat(i.containerWidth/2," 256)")},c="translate(".concat(32*r.x,", ").concat(32*r.y,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),m={outer:o,inner:{transform:"".concat(c," ").concat(l," ").concat(u)},path:{transform:"translate(".concat(s/2*-1," -256)")}};return{tag:"g",attributes:X({},m.outer),children:[{tag:"g",attributes:X({},m.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:X(X({},n.icon.attributes),m.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-mask"),a=r?Cc(r.split(" ").map(function(s){return s.trim()})):Q5();return a.prefix||(a.prefix=Yn()),i.mask=a,i.maskId=n.getAttribute("data-fa-mask-id"),i}}},provides:function(t){t.generateAbstractMask=function(i){var e,n=i.children,r=i.attributes,a=i.main,s=i.mask,o=i.maskId,u=a.icon,p=s.icon,m=function $K(e){var t=e.transform,n=e.iconWidth,r={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),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(a," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:i.transform,containerWidth:s.width,iconWidth:a.width}),H={tag:"rect",attributes:X(X({},c7),{},{fill:"white"})},D=u.children?{children:u.children.map(tM)}:{},S={tag:"g",attributes:X({},m.inner),children:[tM(X({tag:u.tag,attributes:X(X({},u.attributes),m.path)},D))]},N={tag:"g",attributes:X({},m.outer),children:[S]},z="mask-".concat(o||ra()),B="clip-".concat(o||ra()),F={tag:"mask",attributes:X(X({},c7),{},{id:z,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[H,N]},G={tag:"defs",children:[{tag:"clipPath",attributes:{id:B},children:(e=p,"g"===e.tag?e.children:[e])},F]};return n.push(G,{tag:"rect",attributes:X({fill:"currentColor","clip-path":"url(#".concat(B,")"),mask:"url(#".concat(z,")")},c7)}),{children:n,attributes:r}}}},{provides:function(t){var i=!1;qn.matchMedia&&(i=qn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],r={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:X(X({},r),{},{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"}),o={tag:"circle",attributes:X(X({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return i||o.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(o),n.push({tag:"path",attributes:X(X({},r),{},{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:i?[]:[{tag:"animate",attributes:X(X({},s),{},{values:"1;0;0;0;0;1;"})}]}),i||n.push({tag:"path",attributes:X(X({},r),{},{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(i,n){var r=n.getAttribute("data-fa-symbol");return i.symbol=null!==r&&(""===r||r),i}}}}],{mixoutsTo:rt});var QY=rt.parse,JY=rt.icon;const XY=["*"],nZ=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(i=>t[i]?i:null).filter(i=>i)};let aZ=(()=>{var e;class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),sZ=(()=>{var e;class t{constructor(){this.definitions={}}addIcons(...n){for(const r of n){r.prefix in this.definitions||(this.definitions[r.prefix]={}),this.definitions[r.prefix][r.iconName]=r;for(const a of r.icon[2])"string"==typeof a&&(this.definitions[r.prefix][a]=r)}}addIconPacks(...n){for(const r of n){const a=Object.keys(r).map(s=>r[s]);this.addIcons(...a)}}getIconDefinition(n,r){return n in this.definitions&&r in this.definitions[n]?this.definitions[n][r]:null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),oZ=(()=>{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=j({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[g1]}),t})(),cZ=(()=>{var e;class t{constructor(n,r){this.renderer=n,this.elementRef=r}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)(b(c2),b(Ne))},e.\u0275cmp=oe({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[g1],ngContentSelectors:XY,decls:1,vars:0,template:function(n,r){1&n&&(R4(),k4(0))},encapsulation:2}),t})(),nM=(()=>{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,r,a,s,o){this.sanitizer=n,this.config=r,this.iconLibrary=a,this.stackItem=s,this.classes=[],null!=o&&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 r=((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 r?r:this.iconLibrary.getIconDefinition(r.prefix,r.iconName)??((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(r),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},r="string"==typeof this.transform?QY.transform(this.transform):this.transform;return{title:this.title,transform:r,classes:[...nZ(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,r){const a=JY(n,r);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return(e=t).\u0275fac=function(n){return new(n||e)(b(vv),b(aZ),b(sZ),b(oZ,8),b(cZ,8))},e.\u0275cmp=oe({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,r){2&n&&(H2("innerHTML",r.renderedIconHTML,sd),W("title",r.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:[g1],decls:0,vars:0,template:function(n,r){},encapsulation:2}),t})(),lZ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();function l7(...e){const t=Di(e),i=Ia(e),{args:n,keys:r}=yv(e);if(0===n.length)return Z1([],t);const a=new We(function fZ(e,t,i=yt){return n=>{iM(t,()=>{const{length:r}=e,a=new Array(r);let s=r,o=r;for(let c=0;c<r;c++)iM(t,()=>{const l=Z1(e[c],t);let u=!1;l.subscribe(Ke(n,f=>{a[c]=f,u||(u=!0,o--),o||n.next(i(a.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,t,r?s=>Mv(r,s):yt));return i?a.pipe(F8(i)):a}function iM(e,t,i){e?an(i,e,t):t()}const Hc=f2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function rM(e){return new We(t=>{U1(e()).subscribe(t)})}function oa(e,t){const i=Q(e)?e:()=>e,n=r=>r.error(i());return new We(t?r=>t.schedule(n,0,r):n)}function u7(){return f1((e,t)=>{let i=null;e._refCount++;const n=Ke(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(i=null);const r=e._connection,a=i;i=null,r&&(!a||r===a)&&r.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(i=e.connect())})}class aM extends We{constructor(t,i){super(),this.source=t,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,bi(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 De;const i=this.getSubject();t.add(this.source.subscribe(Ke(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=De.EMPTY)}return t}refCount(){return u7()(this)}}function Vc(e){return f1((t,i)=>{let n=!1;t.subscribe(Ke(i,r=>{n=!0,i.next(r)},()=>{n||i.next(e),i.complete()}))})}function sM(e=dZ){return f1((t,i)=>{let n=!1;t.subscribe(Ke(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(e())))})}function dZ(){return new Hc}function E3(e,t){const i=arguments.length>=2;return n=>n.pipe(e?D1((r,a)=>e(r,a,n)):yt,e2(1),i?Vc(t):sM(()=>new Hc))}function ca(e,t){return Q(t)?k1(e,t,1):k1(e,1)}function T3(e){return f1((t,i)=>{let a,n=null,r=!1;n=t.subscribe(Ke(i,void 0,void 0,s=>{a=U1(e(s,T3(e)(t))),n?(n.unsubscribe(),n=null,a.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,a.subscribe(i))})}function f7(e){return e<=0?()=>ct:f1((t,i)=>{let n=[];t.subscribe(Ke(i,r=>{n.push(r),e<n.length&&n.shift()},()=>{for(const r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}function d7(e){return f1((t,i)=>{try{t.subscribe(i)}finally{i.add(e)}})}const _e="primary",la=Symbol("RouteTitle");class gZ{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}}function ui(e){return new gZ(e)}function vZ(e,t,i){const n=i.path.split("/");if(n.length>e.length||"full"===i.pathMatch&&(t.hasChildren()||n.length<e.length))return null;const r={};for(let a=0;a<n.length;a++){const s=n[a],o=e[a];if(s.startsWith(":"))r[s.substring(1)]=o;else if(s!==o.path)return null}return{consumed:e.slice(0,n.length),posParams:r}}function nn(e,t){const i=e?Object.keys(e):void 0,n=t?Object.keys(t):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let a=0;a<i.length;a++)if(r=i[a],!oM(e[r],t[r]))return!1;return!0}function oM(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const i=[...e].sort(),n=[...t].sort();return i.every((r,a)=>n[a]===r)}return e===t}function cM(e){return e.length>0?e[e.length-1]:null}function Qn(e){return function uZ(e){return!!e&&(e instanceof We||Q(e.lift)&&Q(e.subscribe))}(e)?e:fr(e)?Z1(Promise.resolve(e)):ae(e)}const CZ={exact:function fM(e,t,i){if(!I3(e.segments,t.segments)||!Dc(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!e.children[n]||!fM(e.children[n],t.children[n],i))return!1;return!0},subset:dM},lM={exact:function yZ(e,t){return nn(e,t)},subset:function MZ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>oM(e[i],t[i]))},ignored:()=>!0};function uM(e,t,i){return CZ[i.paths](e.root,t.root,i.matrixParams)&&lM[i.queryParams](e.queryParams,t.queryParams)&&!("exact"===i.fragment&&e.fragment!==t.fragment)}function dM(e,t,i){return hM(e,t,t.segments,i)}function hM(e,t,i,n){if(e.segments.length>i.length){const r=e.segments.slice(0,i.length);return!(!I3(r,i)||t.hasChildren()||!Dc(r,i,n))}if(e.segments.length===i.length){if(!I3(e.segments,i)||!Dc(e.segments,i,n))return!1;for(const r in t.children)if(!e.children[r]||!dM(e.children[r],t.children[r],n))return!1;return!0}{const r=i.slice(0,e.segments.length),a=i.slice(e.segments.length);return!!(I3(e.segments,r)&&Dc(e.segments,r,n)&&e.children[_e])&&hM(e.children[_e],t,a,n)}}function Dc(e,t,i){return t.every((n,r)=>lM[i](e[r].parameters,n.parameters))}class fi{constructor(t=new $e([],{}),i={},n=null){this.root=t,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ui(this.queryParams)),this._queryParamMap}toString(){return HZ.serialize(this)}}class $e{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zc(this)}}class ua{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ui(this.parameters)),this._parameterMap}toString(){return gM(this)}}function I3(e,t){return e.length===t.length&&e.every((i,n)=>i.path===t[n].path)}let fa=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return new h7},providedIn:"root"}),t})();class h7{parse(t){const i=new IZ(t);return new fi(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){const i=`/${da(t.root,!0)}`,n=function zZ(e){const t=Object.keys(e).map(i=>{const n=e[i];return Array.isArray(n)?n.map(r=>`${Sc(i)}=${Sc(r)}`).join("&"):`${Sc(i)}=${Sc(n)}`}).filter(i=>!!i);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${i}${n}${"string"==typeof t.fragment?`#${function VZ(e){return encodeURI(e)}(t.fragment)}`:""}`}}const HZ=new h7;function zc(e){return e.segments.map(t=>gM(t)).join("/")}function da(e,t){if(!e.hasChildren())return zc(e);if(t){const i=e.children[_e]?da(e.children[_e],!1):"",n=[];return Object.entries(e.children).forEach(([r,a])=>{r!==_e&&n.push(`${r}:${da(a,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=function wZ(e,t){let i=[];return Object.entries(e.children).forEach(([n,r])=>{n===_e&&(i=i.concat(t(r,n)))}),Object.entries(e.children).forEach(([n,r])=>{n!==_e&&(i=i.concat(t(r,n)))}),i}(e,(n,r)=>r===_e?[da(e.children[_e],!1)]:[`${r}:${da(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[_e]?`${zc(e)}/${i[0]}`:`${zc(e)}/(${i.join("//")})`}}function pM(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sc(e){return pM(e).replace(/%3B/gi,";")}function p7(e){return pM(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lc(e){return decodeURIComponent(e)}function mM(e){return Lc(e.replace(/\+/g,"%20"))}function gM(e){return`${p7(e.path)}${function DZ(e){return Object.keys(e).map(t=>`;${p7(t)}=${p7(e[t])}`).join("")}(e.parameters)}`}const SZ=/^[^\/()?;#]+/;function m7(e){const t=e.match(SZ);return t?t[0]:""}const LZ=/^[^\/()?;=#]+/,NZ=/^[^=?&#]+/,EZ=/^[^&#]+/;class IZ{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 i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(n[_e]=new $e(t,i)),n}parseSegment(){const t=m7(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new k(4009,!1);return this.capture(t),new ua(Lc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const i=function xZ(e){const t=e.match(LZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const r=m7(this.remaining);r&&(n=r,this.capture(n))}t[Lc(i)]=Lc(n)}parseQueryParam(t){const i=function AZ(e){const t=e.match(NZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const s=function TZ(e){const t=e.match(EZ);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=mM(i),a=mM(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(a)}else t[r]=a}parseParens(t){const i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=m7(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new k(4010,!1);let a;n.indexOf(":")>-1?(a=n.slice(0,n.indexOf(":")),this.capture(a),this.capture(":")):t&&(a=_e);const s=this.parseChildren();i[a]=1===Object.keys(s).length?s[_e]:new $e([],s),this.consumeOptional("//")}return i}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 k(4011,!1)}}function vM(e){return e.segments.length>0?new $e([],{[_e]:e}):e}function _M(e){const t={};for(const n of Object.keys(e.children)){const a=_M(e.children[n]);if(n===_e&&0===a.segments.length&&a.hasChildren())for(const[s,o]of Object.entries(a.children))t[s]=o;else(a.segments.length>0||a.hasChildren())&&(t[n]=a)}return function OZ(e){if(1===e.numberOfChildren&&e.children[_e]){const t=e.children[_e];return new $e(e.segments.concat(t.segments),t.children)}return e}(new $e(e.segments,t))}function O3(e){return e instanceof fi}function CM(e){let t;const r=vM(function i(a){const s={};for(const c of a.children){const l=i(c);s[c.outlet]=l}const o=new $e(a.url,s);return a===e&&(t=o),o}(e.root));return t??r}function yM(e,t,i,n){let r=e;for(;r.parent;)r=r.parent;if(0===t.length)return g7(r,r,r,i,n);const a=function kZ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bM(!0,0,e);let t=0,i=!1;const n=e.reduce((r,a,s)=>{if("object"==typeof a&&null!=a){if(a.outlets){const o={};return Object.entries(a.outlets).forEach(([c,l])=>{o[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:o}]}if(a.segmentPath)return[...r,a.segmentPath]}return"string"!=typeof a?[...r,a]:0===s?(a.split("/").forEach((o,c)=>{0==c&&"."===o||(0==c&&""===o?i=!0:".."===o?t++:""!=o&&r.push(o))}),r):[...r,a]},[]);return new bM(i,t,n)}(t);if(a.toRoot())return g7(r,r,new $e([],{}),i,n);const s=function PZ(e,t,i){if(e.isAbsolute)return new Nc(t,!0,0);if(!i)return new Nc(t,!1,NaN);if(null===i.parent)return new Nc(i,!0,0);const n=xc(e.commands[0])?0:1;return function FZ(e,t,i){let n=e,r=t,a=i;for(;a>r;){if(a-=r,n=n.parent,!n)throw new k(4005,!1);r=n.segments.length}return new Nc(n,!1,r-a)}(i,i.segments.length-1+n,e.numberOfDoubleDots)}(a,r,e),o=s.processChildren?pa(s.segmentGroup,s.index,a.commands):wM(s.segmentGroup,s.index,a.commands);return g7(r,s.segmentGroup,o,i,n)}function xc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ha(e){return"object"==typeof e&&null!=e&&e.outlets}function g7(e,t,i,n,r){let s,a={};n&&Object.entries(n).forEach(([c,l])=>{a[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===t?i:MM(e,t,i);const o=vM(_M(s));return new fi(o,a,r)}function MM(e,t,i){const n={};return Object.entries(e.children).forEach(([r,a])=>{n[r]=a===t?i:MM(a,t,i)}),new $e(e.segments,n)}class bM{constructor(t,i,n){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&xc(n[0]))throw new k(4003,!1);const r=n.find(ha);if(r&&r!==cM(n))throw new k(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Nc{constructor(t,i,n){this.segmentGroup=t,this.processChildren=i,this.index=n}}function wM(e,t,i){if(e||(e=new $e([],{})),0===e.segments.length&&e.hasChildren())return pa(e,t,i);const n=function UZ(e,t,i){let n=0,r=t;const a={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(n>=i.length)return a;const s=e.segments[r],o=i[n];if(ha(o))break;const c=`${o}`,l=n<i.length-1?i[n+1]:null;if(r>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!VM(c,l,s))return a;n+=2}else{if(!VM(c,{},s))return a;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(e,t,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){const a=new $e(e.segments.slice(0,n.pathIndex),{});return a.children[_e]=new $e(e.segments.slice(n.pathIndex),e.children),pa(a,0,r)}return n.match&&0===r.length?new $e(e.segments,{}):n.match&&!e.hasChildren()?v7(e,t,i):n.match?pa(e,0,r):v7(e,t,i)}function pa(e,t,i){if(0===i.length)return new $e(e.segments,{});{const n=function BZ(e){return ha(e[0])?e[0].outlets:{[_e]:e}}(i),r={};if(Object.keys(n).some(a=>a!==_e)&&e.children[_e]&&1===e.numberOfChildren&&0===e.children[_e].segments.length){const a=pa(e.children[_e],t,i);return new $e(e.segments,a.children)}return Object.entries(n).forEach(([a,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[a]=wM(e.children[a],t,s))}),Object.entries(e.children).forEach(([a,s])=>{void 0===n[a]&&(r[a]=s)}),new $e(e.segments,r)}}function v7(e,t,i){const n=e.segments.slice(0,t);let r=0;for(;r<i.length;){const a=i[r];if(ha(a)){const c=jZ(a.outlets);return new $e(n,c)}if(0===r&&xc(i[0])){n.push(new ua(e.segments[t].path,HM(i[0]))),r++;continue}const s=ha(a)?a.outlets[_e]:`${a}`,o=r<i.length-1?i[r+1]:null;s&&o&&xc(o)?(n.push(new ua(s,HM(o))),r+=2):(n.push(new ua(s,{})),r++)}return new $e(n,{})}function jZ(e){const t={};return Object.entries(e).forEach(([i,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(t[i]=v7(new $e([],{}),0,n))}),t}function HM(e){const t={};return Object.entries(e).forEach(([i,n])=>t[i]=`${n}`),t}function VM(e,t,i){return e==i.path&&nn(t,i.parameters)}const ma="imperative";class rn{constructor(t,i){this.id=t,this.url=i}}class Ac extends rn{constructor(t,i,n="imperative",r=null){super(t,i),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class R3 extends rn{constructor(t,i,n){super(t,i),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ec extends rn{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ga extends rn{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=16}}class _7 extends rn{constructor(t,i,n,r){super(t,i),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class GZ extends rn{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $Z extends rn{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WZ extends rn{constructor(t,i,n,r,a){super(t,i),this.urlAfterRedirects=n,this.state=r,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 qZ extends rn{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KZ extends rn{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class YZ{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ZZ{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class QZ{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JZ{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XZ{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eQ{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DM{constructor(t,i,n){this.routerEvent=t,this.position=i,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class tQ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new va,this.attachRef=null}}let va=(()=>{var e;class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const a=this.getOrCreateContext(n);a.outlet=r,this.contexts.set(n,a)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new tQ,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class zM{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){const i=C7(t,this._root);return i?i.children.map(n=>n.value):[]}firstChild(t){const i=C7(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){const i=y7(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return y7(t,this._root).map(i=>i.value)}}function C7(e,t){if(e===t.value)return t;for(const i of t.children){const n=C7(e,i);if(n)return n}return null}function y7(e,t){if(e===t.value)return[t];for(const i of t.children){const n=y7(e,i);if(n.length)return n.unshift(t),n}return[]}class Dn{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}}function di(e){const t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}class SM extends zM{constructor(t,i){super(t),this.snapshot=i,M7(this,t)}toString(){return this.snapshot.toString()}}function LM(e,t){const i=function nQ(e,t){const s=new Tc([],{},{},"",{},_e,t,null,{});return new NM("",new Dn(s,[]))}(0,t),n=new C2([new ua("",{})]),r=new C2({}),a=new C2({}),s=new C2({}),o=new C2(""),c=new zn(n,r,s,o,a,_e,t,i.root);return c.snapshot=i.root,new SM(new Dn(c,[]),i)}class zn{constructor(t,i,n,r,a,s,o,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=a,this.outlet=s,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(Me(l=>l[la]))??ae(void 0),this.url=t,this.params=i,this.queryParams=n,this.fragment=r,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(Me(t=>ui(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Me(t=>ui(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xM(e,t="emptyOnly"){const i=e.pathFromRoot;let n=0;if("always"!==t)for(n=i.length-1;n>=1;){const r=i[n],a=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(a.component)break;n--}}return function iQ(e){return e.reduce((t,i)=>({params:{...t.params,...i.params},data:{...t.data,...i.data},resolve:{...i.data,...t.resolve,...i.routeConfig?.data,...i._resolvedData}}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Tc{get title(){return this.data?.[la]}constructor(t,i,n,r,a,s,o,c,l){this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=a,this.outlet=s,this.component=o,this.routeConfig=c,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=ui(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ui(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class NM extends zM{constructor(t,i){super(i),this.url=t,M7(this,i)}toString(){return AM(this._root)}}function M7(e,t){t.value._routerState=e,t.children.forEach(i=>M7(e,i))}function AM(e){const t=e.children.length>0?` { ${e.children.map(AM).join(", ")} } `:"";return`${e.value}${t}`}function b7(e){if(e.snapshot){const t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,nn(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),nn(t.params,i.params)||e.paramsSubject.next(i.params),function _Z(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!nn(e[i],t[i]))return!1;return!0}(t.url,i.url)||e.urlSubject.next(i.url),nn(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function w7(e,t){const i=nn(e.params,t.params)&&function bZ(e,t){return I3(e,t)&&e.every((i,n)=>nn(i.parameters,t[n].parameters))}(e.url,t.url);return i&&!(!e.parent!=!t.parent)&&(!e.parent||w7(e.parent,t.parent))}let H7=(()=>{var e;class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=_e,this.activateEvents=new ee,this.deactivateEvents=new ee,this.attachEvents=new ee,this.detachEvents=new ee,this.parentContexts=J(va),this.location=J(B2),this.changeDetector=J(X2),this.environmentInjector=J(k2),this.inputBinder=J(Ic,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:a}=n.name;if(r)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 k(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new k(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new k(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,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,r){if(this.isActivated)throw new k(4013,!1);this._activatedRoute=n;const a=this.location,o=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new rQ(n,c,a.injector);this.activated=a.createComponent(o,{index:a.length,injector:l,environmentInjector:r??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=j({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[g1]}),t})();class rQ{constructor(t,i,n){this.route=t,this.childContexts=i,this.parent=n}get(t,i){return t===zn?this.route:t===va?this.childContexts:this.parent.get(t,i)}}const Ic=new te("");let EM=(()=>{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:r}=n,a=l7([r.queryParams,r.params,r.data]).pipe(bt(([s,o,c],l)=>(c={...s,...o,...c},0===l?ae(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const o=function oF(e){const t=Le(e);if(!t)return null;const i=new ar(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(r.component);if(o)for(const{templateName:c}of o.inputs)n.activatedComponentRef.setInput(c,s[c]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,a)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();function _a(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=t.value;const r=function sQ(e,t,i){return t.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(n.value,r.value.snapshot))return _a(e,n,r);return _a(e,n)})}(e,t,i);return new Dn(n,r)}{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(o=>_a(e,o)),s}}const n=function oQ(e){return new zn(new C2(e.url),new C2(e.params),new C2(e.queryParams),new C2(e.fragment),new C2(e.data),e.outlet,e.component,e)}(t.value),r=t.children.map(a=>_a(e,a));return new Dn(n,r)}}const V7="ngNavigationCancelingError";function TM(e,t){const{redirectTo:i,navigationBehaviorOptions:n}=O3(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=IM(!1,0,t);return r.url=i,r.navigationBehaviorOptions=n,r}function IM(e,t,i){const n=new Error("NavigationCancelingError: "+(e||""));return n[V7]=!0,n.cancellationCode=t,i&&(n.url=i),n}function OM(e){return RM(e)&&O3(e.url)}function RM(e){return e&&e[V7]}let kM=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],standalone:!0,features:[D2],decls:1,vars:0,template:function(n,r){1&n&&R(0,"router-outlet")},dependencies:[H7],encapsulation:2}),t})();function D7(e){const t=e.children&&e.children.map(D7),i=t?{...e,children:t}:{...e};return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==_e&&(i.component=kM),i}function Ot(e){return e.outlet||_e}function Ca(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}class pQ{constructor(t,i,n,r,a){this.routeReuseStrategy=t,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=a}activate(t){const i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,t),b7(this.futureState.root),this.activateChildRoutes(i,n,t)}deactivateChildRoutes(t,i,n){const r=di(i);t.children.forEach(a=>{const s=a.value.outlet;this.deactivateRoutes(a,r[s],n),delete r[s]}),Object.values(r).forEach(a=>{this.deactivateRouteAndItsChildren(a,n)})}deactivateRoutes(t,i,n){const r=t.value,a=i?i.value:null;if(r===a)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,i,s.children)}else this.deactivateChildRoutes(t,i,n);else a&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,a=di(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],r);if(n&&n.outlet){const s=n.outlet.detach(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:o})}}deactivateRouteAndOutlet(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,a=di(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,i,n){const r=di(i);t.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],n),this.forwardEvent(new eQ(a.value.snapshot))}),t.children.length&&this.forwardEvent(new JZ(t.value.snapshot))}activateRoutes(t,i,n){const r=t.value,a=i?i.value:null;if(b7(r),r===a)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,i,s.children)}else this.activateChildRoutes(t,i,n);else if(r.component){const s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),b7(o.route.value),this.activateChildRoutes(t,null,s.children)}else{const o=Ca(r.snapshot);s.attachRef=null,s.route=r,s.injector=o,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}}class PM{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Oc{constructor(t,i){this.component=t,this.route=i}}function mQ(e,t,i){const n=e._root;return ya(n,t?t._root:null,i,[n.value])}function hi(e,t){const i=Symbol(),n=t.get(e,i);return n===i?"function"!=typeof e||function zx(e){return null!==ka(e)}(e)?t.get(e):e:n}function ya(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=di(t);return e.children.forEach(s=>{(function vQ(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,s=t?t.value:null,o=i?i.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){const c=function _Q(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!I3(e.url,t.url);case"pathParamsOrQueryParamsChange":return!I3(e.url,t.url)||!nn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!w7(e,t)||!nn(e.queryParams,t.queryParams);default:return!w7(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new PM(n)):(a.data=s.data,a._resolvedData=s._resolvedData),ya(e,t,a.component?o?o.children:null:i,n,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new Oc(o.outlet.component,s))}else s&&Ma(t,o,r),r.canActivateChecks.push(new PM(n)),ya(e,null,a.component?o?o.children:null:i,n,r)})(s,a[s.value.outlet],i,n.concat([s.value]),r),delete a[s.value.outlet]}),Object.entries(a).forEach(([s,o])=>Ma(o,i.getContext(s),r)),r}function Ma(e,t,i){const n=di(e),r=e.value;Object.entries(n).forEach(([a,s])=>{Ma(s,r.component?t?t.children.getContext(a):null:t,i)}),i.canDeactivateChecks.push(new Oc(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function ba(e){return"function"==typeof e}function FM(e){return e instanceof Hc||"EmptyError"===e?.name}const Rc=Symbol("INITIAL_VALUE");function pi(){return bt(e=>l7(e.map(t=>t.pipe(e2(1),function N_(...e){const t=Di(e);return f1((i,n)=>{(t?Or(e,i,t):Or(e,i)).subscribe(n)})}(Rc)))).pipe(Me(t=>{for(const i of t)if(!0!==i){if(i===Rc)return Rc;if(!1===i||i instanceof fi)return i}return!0}),D1(t=>t!==Rc),e2(1)))}function BM(e){return function Ea(...e){return Mi(e)}(t2(t=>{if(O3(t))throw TM(0,t)}),Me(t=>!0===t))}class kc{constructor(t){this.segmentGroup=t||null}}class UM{constructor(t){this.urlTree=t}}function mi(e){return oa(new kc(e))}function jM(e){return oa(new UM(e))}class kQ{constructor(t,i){this.urlSerializer=t,this.urlTree=i}noMatchError(t){return new k(4002,!1)}lineralizeSegments(t,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return ae(n);if(r.numberOfChildren>1||!r.children[_e])return oa(new k(4e3,!1));r=r.children[_e]}}applyRedirectCommands(t,i,n){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,n)}applyRedirectCreateUrlTree(t,i,n,r){const a=this.createSegmentGroup(t,i.root,n,r);return new fi(a,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){const n={};return Object.entries(t).forEach(([r,a])=>{if("string"==typeof a&&a.startsWith(":")){const o=a.substring(1);n[r]=i[o]}else n[r]=a}),n}createSegmentGroup(t,i,n,r){const a=this.createSegments(t,i.segments,n,r);let s={};return Object.entries(i.children).forEach(([o,c])=>{s[o]=this.createSegmentGroup(t,c,n,r)}),new $e(a,s)}createSegments(t,i,n,r){return i.map(a=>a.path.startsWith(":")?this.findPosParam(t,a,r):this.findOrReturn(a,n))}findPosParam(t,i,n){const r=n[i.path.substring(1)];if(!r)throw new k(4001,!1);return r}findOrReturn(t,i){let n=0;for(const r of i){if(r.path===t.path)return i.splice(n),r;n++}return t}}const z7={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function PQ(e,t,i,n,r){const a=S7(e,t,i);return a.matched?(n=function cQ(e,t){return e.providers&&!e._injector&&(e._injector=Nl(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function IQ(e,t,i,n){const r=t.canMatch;return r&&0!==r.length?ae(r.map(s=>{const o=hi(s,e);return Qn(function HQ(e){return e&&ba(e.canMatch)}(o)?o.canMatch(t,i):e.runInContext(()=>o(t,i)))})).pipe(pi(),BM()):ae(!0)}(n,t,i).pipe(Me(s=>!0===s?a:{...z7}))):ae(a)}function S7(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{...z7}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const r=(t.matcher||vZ)(i,e,t);if(!r)return{...z7};const a={};Object.entries(r.posParams??{}).forEach(([o,c])=>{a[o]=c.path});const s=r.consumed.length>0?{...a,...r.consumed[r.consumed.length-1].parameters}:a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function GM(e,t,i,n){return i.length>0&&function UQ(e,t,i){return i.some(n=>Pc(e,t,n)&&Ot(n)!==_e)}(e,i,n)?{segmentGroup:new $e(t,BQ(n,new $e(i,e.children))),slicedSegments:[]}:0===i.length&&function jQ(e,t,i){return i.some(n=>Pc(e,t,n))}(e,i,n)?{segmentGroup:new $e(e.segments,FQ(e,0,i,n,e.children)),slicedSegments:i}:{segmentGroup:new $e(e.segments,e.children),slicedSegments:i}}function FQ(e,t,i,n,r){const a={};for(const s of n)if(Pc(e,i,s)&&!r[Ot(s)]){const o=new $e([],{});a[Ot(s)]=o}return{...r,...a}}function BQ(e,t){const i={};i[_e]=t;for(const n of e)if(""===n.path&&Ot(n)!==_e){const r=new $e([],{});i[Ot(n)]=r}return i}function Pc(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path}class qQ{constructor(t,i,n,r,a,s,o){this.injector=t,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=a,this.paramsInheritanceStrategy=s,this.urlSerializer=o,this.allowRedirects=!0,this.applyRedirects=new kQ(this.urlSerializer,this.urlTree)}noMatchError(t){return new k(4002,!1)}recognize(){const t=GM(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,_e).pipe(T3(i=>{if(i instanceof UM)return this.allowRedirects=!1,this.urlTree=i.urlTree,this.match(i.urlTree);throw i instanceof kc?this.noMatchError(i):i}),Me(i=>{const n=new Tc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},_e,this.rootComponentType,null,{}),r=new Dn(n,i),a=new NM("",r),s=function RZ(e,t,i=null,n=null){return yM(CM(e),t,i,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,_e).pipe(T3(n=>{throw n instanceof kc?this.noMatchError(n):n}))}inheritParamsAndData(t){const i=t.value,n=xM(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,i,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,i,n):this.processSegment(t,i,n,n.segments,r,!0)}processChildren(t,i,n){const r=[];for(const a of Object.keys(n.children))"primary"===a?r.unshift(a):r.push(a);return Z1(r).pipe(ca(a=>{const s=n.children[a],o=function dQ(e,t){const i=e.filter(n=>Ot(n)===t);return i.push(...e.filter(n=>Ot(n)!==t)),i}(i,a);return this.processSegmentGroup(t,o,s,a)}),function pZ(e,t){return f1(function hZ(e,t,i,n,r){return(a,s)=>{let o=i,c=t,l=0;a.subscribe(Ke(s,u=>{const f=l++;c=o?e(c,u,f):(o=!0,u),n&&s.next(c)},r&&(()=>{o&&s.next(c),s.complete()})))}}(e,t,arguments.length>=2,!0))}((a,s)=>(a.push(...s),a)),Vc(null),function mZ(e,t){const i=arguments.length>=2;return n=>n.pipe(e?D1((r,a)=>e(r,a,n)):yt,f7(1),i?Vc(t):sM(()=>new Hc))}(),k1(a=>{if(null===a)return mi(n);const s=$M(a);return function KQ(e){e.sort((t,i)=>t.value.outlet===_e?-1:i.value.outlet===_e?1:t.value.outlet.localeCompare(i.value.outlet))}(s),ae(s)}))}processSegment(t,i,n,r,a,s){return Z1(i).pipe(ca(o=>this.processSegmentAgainstRoute(o._injector??t,i,o,n,r,a,s).pipe(T3(c=>{if(c instanceof kc)return ae(null);throw c}))),E3(o=>!!o),T3(o=>{if(FM(o))return function $Q(e,t,i){return 0===t.length&&!e.children[i]}(n,r,a)?ae([]):mi(n);throw o}))}processSegmentAgainstRoute(t,i,n,r,a,s,o){return function GQ(e,t,i,n){return!!(Ot(e)===n||n!==_e&&Pc(t,i,e))&&("**"===e.path||S7(t,e,i).matched)}(n,r,a,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,r,n,a,s,o):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,r,i,n,a,s):mi(r):mi(r)}expandSegmentAgainstRouteUsingRedirect(t,i,n,r,a,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,a,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r){const a=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?jM(a):this.applyRedirects.lineralizeSegments(n,a).pipe(k1(s=>{const o=new $e(s,{});return this.processSegment(t,i,o,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,a,s){const{matched:o,consumedSegments:c,remainingSegments:l,positionalParamSegments:u}=S7(i,r,a);if(!o)return mi(i);const f=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?jM(f):this.applyRedirects.lineralizeSegments(r,f).pipe(k1(p=>this.processSegment(t,n,i,p.concat(l),s,!1)))}matchSegmentAgainstRoute(t,i,n,r,a,s){let o;if("**"===n.path){const c=r.length>0?cM(r).parameters:{};o=ae({snapshot:new Tc(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WM(n),Ot(n),n.component??n._loadedComponent??null,n,qM(n)),consumedSegments:[],remainingSegments:[]}),i.children={}}else o=PQ(i,n,r,t).pipe(Me(({matched:c,consumedSegments:l,remainingSegments:u,parameters:f})=>c?{snapshot:new Tc(l,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WM(n),Ot(n),n.component??n._loadedComponent??null,n,qM(n)),consumedSegments:l,remainingSegments:u}:null));return o.pipe(bt(c=>null===c?mi(i):this.getChildConfig(t=n._injector??t,n,r).pipe(bt(({routes:l})=>{const u=n._loadedInjector??t,{snapshot:f,consumedSegments:p,remainingSegments:m}=c,{segmentGroup:H,slicedSegments:D}=GM(i,p,m,l);if(0===D.length&&H.hasChildren())return this.processChildren(u,l,H).pipe(Me(N=>null===N?null:[new Dn(f,N)]));if(0===l.length&&0===D.length)return ae([new Dn(f,[])]);const S=Ot(n)===a;return this.processSegment(u,l,H,D,S?_e:a,!0).pipe(Me(N=>[new Dn(f,N)]))}))))}getChildConfig(t,i,n){return i.children?ae({routes:i.children,injector:t}):i.loadChildren?void 0!==i._loadedRoutes?ae({routes:i._loadedRoutes,injector:i._loadedInjector}):function TQ(e,t,i,n){const r=t.canLoad;return void 0===r||0===r.length?ae(!0):ae(r.map(s=>{const o=hi(s,e);return Qn(function yQ(e){return e&&ba(e.canLoad)}(o)?o.canLoad(t,i):e.runInContext(()=>o(t,i)))})).pipe(pi(),BM())}(t,i,n).pipe(k1(r=>r?this.configLoader.loadChildren(t,i).pipe(t2(a=>{i._loadedRoutes=a.routes,i._loadedInjector=a.injector})):function RQ(e){return oa(IM(!1,3))}())):ae({routes:[],injector:t})}}function YQ(e){const t=e.value.routeConfig;return t&&""===t.path}function $M(e){const t=[],i=new Set;for(const n of e){if(!YQ(n)){t.push(n);continue}const r=t.find(a=>n.value.routeConfig===a.value.routeConfig);void 0!==r?(r.children.push(...n.children),i.add(r)):t.push(n)}for(const n of i){const r=$M(n.children);t.push(new Dn(n.value,r))}return t.filter(n=>!i.has(n))}function WM(e){return e.data||{}}function qM(e){return e.resolve||{}}function KM(e){return"string"==typeof e.title||null===e.title}function L7(e){return bt(t=>{const i=e(t);return i?Z1(i).pipe(Me(()=>t)):ae(t)})}const gi=new te("ROUTES");let x7=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=J(jm)}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 r=Qn(n.loadComponent()).pipe(Me(YM),t2(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),d7(()=>{this.componentLoaders.delete(n)})),a=new aM(r,()=>new he).pipe(u7());return this.componentLoaders.set(n,a),a}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ae({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const s=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(Me(c=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(c)?u=c:(l=c.create(n).injector,u=l.get(gi,[],Ce.Self|Ce.Optional).flat()),{routes:u.map(D7),injector:l}}),d7(()=>{this.childrenLoaders.delete(r)})),o=new aM(s,()=>new he).pipe(u7());return this.childrenLoaders.set(r,o),o}loadModuleFactoryOrRoutes(n){return Qn(n()).pipe(Me(YM),k1(r=>r instanceof Jp||Array.isArray(r)?ae(r):Z1(this.compiler.compileModuleAsync(r))))}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function YM(e){return function nJ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Fc=(()=>{var e;class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new he,this.configLoader=J(x7),this.environmentInjector=J(k2),this.urlSerializer=J(fa),this.rootContexts=J(va),this.inputBindingEnabled=null!==J(Ic,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ae(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=a=>this.events.next(new ZZ(a)),this.configLoader.onLoadStartListener=a=>this.events.next(new YZ(a))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new C2({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ma,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(D1(r=>0!==r.id),Me(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),bt(r=>{let a=!1,s=!1;return ae(r).pipe(t2(o=>{this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),bt(o=>{const c=n.browserUrlTree.toString(),l=!n.navigated||o.extractedUrl.toString()!==c||c!==n.currentUrlTree.toString();if(!l&&"reload"!==(o.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const f="";return this.events.next(new ga(o.id,n.serializeUrl(r.rawUrl),f,0)),n.rawUrlTree=o.rawUrl,o.resolve(null),ct}if(n.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return ZM(o.source)&&(n.browserUrlTree=o.extractedUrl),ae(o).pipe(bt(f=>{const p=this.transitions?.getValue();return this.events.next(new Ac(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions?.getValue()?ct:Promise.resolve(f)}),function ZQ(e,t,i,n,r,a){return k1(s=>function WQ(e,t,i,n,r,a,s="emptyOnly"){return new qQ(e,t,i,n,r,s,a).recognize()}(e,t,i,n,s.extractedUrl,r,a).pipe(Me(({state:o,tree:c})=>({...s,targetSnapshot:o,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),t2(f=>{if(r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!f.extras.skipLocationChange){const m=n.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl);n.setBrowserUrl(m,f)}n.browserUrlTree=f.urlAfterRedirects}const p=new GZ(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(p)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:f,extractedUrl:p,source:m,restoredState:H,extras:D}=o,S=new Ac(f,this.urlSerializer.serialize(p),m,H);this.events.next(S);const N=LM(0,this.rootComponentType).snapshot;return ae(r={...o,targetSnapshot:N,urlAfterRedirects:p,extras:{...D,skipLocationChange:!1,replaceUrl:!1}})}{const f="";return this.events.next(new ga(o.id,n.serializeUrl(r.extractedUrl),f,1)),n.rawUrlTree=o.rawUrl,o.resolve(null),ct}}),t2(o=>{const c=new $Z(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(c)}),Me(o=>r={...o,guards:mQ(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),function DQ(e,t){return k1(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:s}}=i;return 0===s.length&&0===a.length?ae({...i,guardsResult:!0}):function zQ(e,t,i,n){return Z1(e).pipe(k1(r=>function EQ(e,t,i,n,r){const a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?ae(a.map(o=>{const c=Ca(t)??r,l=hi(o,c);return Qn(function wQ(e){return e&&ba(e.canDeactivate)}(l)?l.canDeactivate(e,t,i,n):c.runInContext(()=>l(e,t,i,n))).pipe(E3())})).pipe(pi()):ae(!0)}(r.component,r.route,i,t,n)),E3(r=>!0!==r,!0))}(s,n,r,e).pipe(k1(o=>o&&function CQ(e){return"boolean"==typeof e}(o)?function SQ(e,t,i,n){return Z1(t).pipe(ca(r=>Or(function xQ(e,t){return null!==e&&t&&t(new QZ(e)),ae(!0)}(r.route.parent,n),function LQ(e,t){return null!==e&&t&&t(new XZ(e)),ae(!0)}(r.route,n),function AQ(e,t,i){const n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map(s=>function gQ(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=>rM(()=>ae(s.guards.map(c=>{const l=Ca(s.node)??i,u=hi(c,l);return Qn(function bQ(e){return e&&ba(e.canActivateChild)}(u)?u.canActivateChild(n,e):l.runInContext(()=>u(n,e))).pipe(E3())})).pipe(pi())));return ae(a).pipe(pi())}(e,r.path,i),function NQ(e,t,i){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return ae(!0);const r=n.map(a=>rM(()=>{const s=Ca(t)??i,o=hi(a,s);return Qn(function MQ(e){return e&&ba(e.canActivate)}(o)?o.canActivate(t,e):s.runInContext(()=>o(t,e))).pipe(E3())}));return ae(r).pipe(pi())}(e,r.route,i))),E3(r=>!0!==r,!0))}(n,a,e,t):ae(o)),Me(o=>({...i,guardsResult:o})))})}(this.environmentInjector,o=>this.events.next(o)),t2(o=>{if(r.guardsResult=o.guardsResult,O3(o.guardsResult))throw TM(0,o.guardsResult);const c=new WZ(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(c)}),D1(o=>!!o.guardsResult||(n.restoreHistory(o),this.cancelNavigationTransition(o,"",3),!1)),L7(o=>{if(o.guards.canActivateChecks.length)return ae(o).pipe(t2(c=>{const l=new qZ(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),bt(c=>{let l=!1;return ae(c).pipe(function QQ(e,t){return k1(i=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return ae(i);let a=0;return Z1(r).pipe(ca(s=>function JQ(e,t,i,n){const r=e.routeConfig,a=e._resolve;return void 0!==r?.title&&!KM(r)&&(a[la]=r.title),function XQ(e,t,i,n){const r=function eJ(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return ae({});const a={};return Z1(r).pipe(k1(s=>function tJ(e,t,i,n){const r=Ca(t)??n,a=hi(e,r);return Qn(a.resolve?a.resolve(t,i):r.runInContext(()=>a(t,i)))}(e[s],t,i,n).pipe(E3(),t2(o=>{a[s]=o}))),f7(1),S_(a),T3(s=>FM(s)?ct:oa(s)))}(a,e,t,n).pipe(Me(s=>(e._resolvedData=s,e.data=xM(e,i).resolve,r&&KM(r)&&(e.data[la]=r.title),null)))}(s.route,n,e,t)),t2(()=>a++),f7(1),k1(s=>a===r.length?ae(i):ct))})}(n.paramsInheritanceStrategy,this.environmentInjector),t2({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(c),this.cancelNavigationTransition(c,"",2))}}))}),t2(c=>{const l=new KZ(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),L7(o=>{const c=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(t2(f=>{l.component=f}),Me(()=>{})));for(const f of l.children)u.push(...c(f));return u};return l7(c(o.targetSnapshot.root)).pipe(Vc(),e2(1))}),L7(()=>this.afterPreactivation()),Me(o=>{const c=function aQ(e,t,i){const n=_a(e,t._root,i?i._root:void 0);return new SM(n,t)}(n.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return r={...o,targetRouterState:c}}),t2(o=>{n.currentUrlTree=o.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),n.routerState=o.targetRouterState,"deferred"===n.urlUpdateStrategy&&(o.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,o),n.browserUrlTree=o.urlAfterRedirects)}),((e,t,i,n)=>Me(r=>(new pQ(t,r.targetRouterState,r.currentRouterState,i,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),e2(1),t2({next:o=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new R3(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{a=!0}}),d7(()=>{a||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),T3(o=>{if(s=!0,RM(o)){OM(o)||(n.navigated=!0,n.restoreHistory(r,!0));const c=new Ec(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode);if(this.events.next(c),OM(o)){const l=n.urlHandlingStrategy.merge(o.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||ZM(r.source)};n.scheduleNavigation(l,ma,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const c=new _7(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);this.events.next(c);try{r.resolve(n.errorHandler(o))}catch(l){r.reject(l)}}return ct}))}))}cancelNavigationTransition(n,r,a){const s=new Ec(n.id,this.urlSerializer.serialize(n.extractedUrl),r,a);this.events.next(s),n.resolve(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ZM(e){return e!==ma}let QM=(()=>{var e;class t{buildTitle(n){let r,a=n.root;for(;void 0!==a;)r=this.getResolvedTitleForRoute(a)??r,a=a.children.find(s=>s.outlet===_e);return r}getResolvedTitleForRoute(n){return n.data[la]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(iJ)},providedIn:"root"}),t})(),iJ=(()=>{var e;class t extends QM{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(pv))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),rJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(sJ)},providedIn:"root"}),t})();class aJ{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}}let sJ=(()=>{var e;class t extends aJ{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=A1(e)))(r||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Bc=new te("",{providedIn:"root",factory:()=>({})});let oJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(cJ)},providedIn:"root"}),t})(),cJ=(()=>{var e;class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();var wa=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(wa||{});function JM(e,t){e.events.pipe(D1(i=>i instanceof R3||i instanceof Ec||i instanceof _7||i instanceof ga),Me(i=>i instanceof R3||i instanceof ga?wa.COMPLETE:i instanceof Ec&&(0===i.code||1===i.code)?wa.REDIRECTING:wa.FAILED),D1(i=>i!==wa.REDIRECTING),e2(1)).subscribe(()=>{t()})}function lJ(e){throw e}function uJ(e,t,i){return t.parse("/")}const fJ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},dJ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let _2=(()=>{var e;class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=J(Bm),this.isNgZoneEnabled=!1,this.options=J(Bc,{optional:!0})||{},this.pendingTasks=J(Um),this.errorHandler=this.options.errorHandler||lJ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||uJ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=J(oJ),this.routeReuseStrategy=J(rJ),this.titleStrategy=J(QM),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(gi,{optional:!0})?.flat()??[],this.navigationTransitions=J(Fc),this.urlSerializer=J(fa),this.location=J(p8),this.componentInputBindingEnabled=!!J(Ic,{optional:!0}),this.isNgZoneEnabled=J(He)instanceof He&&He.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new fi,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=LM(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${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),ma,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,a){const s={replaceUrl:!0},o=a?.navigationId?a:null;if(a){const l={...a};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const c=this.parseUrl(n);this.scheduleNavigation(c,r,o,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(D7),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}createUrlTree(n,r={}){const{relativeTo:a,queryParams:s,fragment:o,queryParamsHandling:c,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:o;let p,f=null;switch(c){case"merge":f={...this.currentUrlTree.queryParams,...s};break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=s||null}null!==f&&(f=this.removeEmptyProps(f));try{p=CM(a?a.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),p=this.currentUrlTree.root}return yM(p,n,f,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const a=O3(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,ma,null,r)}navigate(n,r={skipLocationChange:!1}){return function hJ(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new k(4008,!1)}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(a){r=this.malformedUriErrorHandler(a,this.urlSerializer,n)}return r}isActive(n,r){let a;if(a=!0===r?{...fJ}:!1===r?{...dJ}:r,O3(n))return uM(this.currentUrlTree,n,a);const s=this.parseUrl(n);return uM(this.currentUrlTree,s,a)}removeEmptyProps(n){return Object.keys(n).reduce((r,a)=>{const s=n[a];return null!=s&&(r[a]=s),r},{})}scheduleNavigation(n,r,a,s,o){if(this.disposed)return Promise.resolve(!1);let c,l,u;o?(c=o.resolve,l=o.reject,u=o.promise):u=new Promise((p,m)=>{c=p,l=m});const f=this.pendingTasks.add();return JM(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(p=>Promise.reject(p))}setBrowserUrl(n,r){const a=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(a)||r.extras.replaceUrl){const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(a,"",o)}else{const s={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(a,"",s)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-(this.browserPageId??this.currentPageId);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&&(r&&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,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Sn=(()=>{var e;class t{constructor(n,r,a,s,o,c){this.router=n,this.route=r,this.tabIndexAttribute=a,this.renderer=s,this.el=o,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new he,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof R3&&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,r,a,s,o){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||a||s||o||"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 cd(e,t,i){return function EE(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?od:y4}(t,i)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const a=this.renderer,s=this.el.nativeElement;null!==r?a.setAttribute(s,n,r):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)(b(_2),b(zn),function r3(e){return function QN(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const n=i.length;let r=0;for(;r<n;){const a=i[r];if(cf(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<n&&"string"==typeof i[r];)r++;else{if(a===t)return i[r+1];r+=2}}}return null}(o2(),e)}("tabindex"),b(c2),b(Ne),b(Fn))},e.\u0275dir=j({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){1&n&&I("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&n&&W("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",W4],skipLocationChange:["skipLocationChange","skipLocationChange",W4],replaceUrl:["replaceUrl","replaceUrl",W4],routerLink:"routerLink"},standalone:!0,features:[mh,g1]}),t})();class XM{}let gJ=(()=>{var e;class t{constructor(n,r,a,s,o){this.router=n,this.injector=a,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(D1(n=>n instanceof R3),ca(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const a=[];for(const s of r){s.providers&&!s._injector&&(s._injector=Nl(s.providers,n,`Route: ${s.path}`));const o=s._injector??n,c=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&a.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&a.push(this.processRoutes(c,s.children??s._loadedRoutes))}return Z1(a).pipe(K3())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let a;a=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):ae(null);const s=a.pipe(k1(o=>null===o?ae(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??n,o.routes))));return r.loadComponent&&!r._loadedComponent?Z1([s,this.loader.loadComponent(r)]).pipe(K3()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(q(_2),q(jm),q(k2),q(XM),q(x7))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const N7=new te("");let eb=(()=>{var e;class t{constructor(n,r,a,s,o={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=a,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.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 Ac?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof R3?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof ga&&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 DM&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new DM(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){!function jd(){throw new Error("invalid")}()},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();function Ln(e,t){return{\u0275kind:e,\u0275providers:t}}function nb(){const e=J(P1);return t=>{const i=e.get(Qt);if(t!==i.components[0])return;const n=e.get(_2),r=e.get(ib);1===e.get(A7)&&n.initialNavigation(),e.get(rb,null,Ce.Optional)?.setUpPreloading(),e.get(N7,null,Ce.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const ib=new te("",{factory:()=>new he}),A7=new te("",{providedIn:"root",factory:()=>1}),rb=new te("");function yJ(e){return Ln(0,[{provide:rb,useExisting:gJ},{provide:XM,useExisting:e}])}const ab=new te("ROUTER_FORROOT_GUARD"),bJ=[p8,{provide:fa,useClass:h7},_2,va,{provide:zn,useFactory:function tb(e){return e.routerState.root},deps:[_2]},x7,[]];function wJ(){return new tg("Router",_2)}let sb=(()=>{var e;class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[bJ,[],{provide:gi,multi:!0,useValue:n},{provide:ab,useFactory:zJ,deps:[[_2,new us,new fs]]},{provide:Bc,useValue:r||{}},r?.useHash?{provide:Fn,useClass:Ng}:{provide:Fn,useClass:xg},{provide:N7,useFactory:()=>{const e=J(xB),t=J(He),i=J(Bc),n=J(Fc),r=J(fa);return i.scrollOffset&&e.setOffset(i.scrollOffset),new eb(r,n,e,t,i)}},r?.preloadingStrategy?yJ(r.preloadingStrategy).\u0275providers:[],{provide:tg,multi:!0,useFactory:wJ},r?.initialNavigation?SJ(r):[],r?.bindToComponentInputs?Ln(8,[EM,{provide:Ic,useExisting:EM}]).\u0275providers:[],[{provide:ob,useFactory:nb},{provide:i8,multi:!0,useExisting:ob}]]}}static forChild(n){return{ngModule:t,providers:[{provide:gi,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(ab,8))},e.\u0275mod=Be({type:e}),e.\u0275inj=Oe({}),t})();function zJ(e){return"guarded"}function SJ(e){return["disabled"===e.initialNavigation?Ln(3,[{provide:ql,multi:!0,useFactory:()=>{const t=J(_2);return()=>{t.setUpLocationChangeListener()}}},{provide:A7,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Ln(2,[{provide:A7,useValue:0},{provide:ql,multi:!0,deps:[P1],useFactory:t=>{const i=t.get(uF,Promise.resolve());return()=>i.then(()=>new Promise(n=>{const r=t.get(_2),a=t.get(ib);JM(r,()=>{n(!0)}),t.get(Fc).afterPreactivation=()=>(n(!0),a.closed?ae(void 0):a),r.initialNavigation()}))}}]).\u0275providers:[]]}const ob=new te("");let xJ=(()=>{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",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1),R(2,"img",2),v(),g(3,"h3",3),y(4," Welcome to"),R(5,"br"),g(6,"b",4),y(7,"Eufy Security Plugin"),v()(),g(8,"h6",3),y(9,"Homebridge plugin for Eufy Security Devices"),v(),R(10,"hr"),g(11,"div",5),R(12,"router-outlet"),v(),R(13,"hr"),g(14,"div",6),y(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&&(_(2),M("src",r.logoSrc,y4))},dependencies:[H7],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 cb(e,t,i,n,r,a,s){try{var o=e[a](s),c=o.value}catch(l){return void i(l)}o.done?t(c):Promise.resolve(c).then(n,r)}function Ve(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var a=e.apply(t,i);function s(c){cb(a,n,r,s,o,"next",c)}function o(c){cb(a,n,r,s,o,"throw",c)}s(void 0)})}}var _b={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"]},Sw={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"]},Z7={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"]},BV={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"]},vu={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"]},KS={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"]},x=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}(x||{});class La{static isDoorbell(t){return t===x.DOORBELL||t===x.BATTERY_DOORBELL||t===x.BATTERY_DOORBELL_2||t===x.BATTERY_DOORBELL_PLUS||t===x.DOORBELL_SOLO}static isCamera(t){return t===x.CAMERA||t===x.CAMERA2||t===x.CAMERA_E||t===x.CAMERA2C||t===x.INDOOR_CAMERA||t===x.INDOOR_PT_CAMERA||t===x.FLOODLIGHT||t===x.DOORBELL||t===x.BATTERY_DOORBELL||t===x.BATTERY_DOORBELL_2||t===x.BATTERY_DOORBELL_PLUS||t===x.DOORBELL_SOLO||t===x.CAMERA2C_PRO||t===x.CAMERA2_PRO||t===x.CAMERA3||t===x.CAMERA3C||t===x.INDOOR_CAMERA_1080||t===x.INDOOR_PT_CAMERA_1080||t===x.SOLO_CAMERA||t===x.SOLO_CAMERA_PRO||t===x.SOLO_CAMERA_SPOTLIGHT_1080||t===x.SOLO_CAMERA_SPOTLIGHT_2K||t===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===x.INDOOR_OUTDOOR_CAMERA_1080P||t===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===x.INDOOR_OUTDOOR_CAMERA_2K||t===x.INDOOR_COST_DOWN_CAMERA||t===x.FLOODLIGHT_CAMERA_8422||t===x.FLOODLIGHT_CAMERA_8423||t===x.FLOODLIGHT_CAMERA_8424||t===x.WALL_LIGHT_CAM||t===x.WALL_LIGHT_CAM_81A0||t===x.CAMERA_GARAGE_T8453_COMMON||t===x.CAMERA_GARAGE_T8453||t===x.CAMERA_GARAGE_T8452||t===x.CAMERA_FG}static supportsRTSP(t){return t===x.CAMERA||t===x.CAMERA2||t===x.CAMERA2C||t===x.CAMERA2C_PRO||t===x.CAMERA3||t===x.CAMERA3C||t===x.CAMERA_E||t===x.INDOOR_CAMERA||t===x.INDOOR_CAMERA_1080||t===x.INDOOR_OUTDOOR_CAMERA_1080P||t===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===x.INDOOR_OUTDOOR_CAMERA_2K||t===x.INDOOR_PT_CAMERA||t===x.INDOOR_PT_CAMERA_1080||t===x.INDOOR_COST_DOWN_CAMERA||t===x.FLOODLIGHT_CAMERA_8423||t===x.CAMERA_GARAGE_T8453_COMMON||t===x.CAMERA_GARAGE_T8453||t===x.CAMERA_GARAGE_T8452||t===x.CAMERA_FG}static supportsTalkback(t){return t===x.CAMERA2||t===x.CAMERA2C||t===x.CAMERA2C_PRO||t===x.CAMERA2_PRO||t===x.CAMERA3||t===x.CAMERA3C||t===x.DOORBELL||t===x.BATTERY_DOORBELL||t===x.BATTERY_DOORBELL_2||t===x.BATTERY_DOORBELL_PLUS||t===x.DOORBELL_SOLO||t===x.INDOOR_CAMERA||t===x.INDOOR_CAMERA_1080||t===x.INDOOR_OUTDOOR_CAMERA_1080P||t===x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===x.INDOOR_OUTDOOR_CAMERA_2K||t===x.INDOOR_PT_CAMERA||t===x.INDOOR_PT_CAMERA_1080||t===x.INDOOR_COST_DOWN_CAMERA||t===x.SOLO_CAMERA||t===x.SOLO_CAMERA_PRO||t===x.SOLO_CAMERA_SPOTLIGHT_1080||t===x.SOLO_CAMERA_SPOTLIGHT_2K||t===x.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===x.FLOODLIGHT||t===x.FLOODLIGHT_CAMERA_8422||t===x.FLOODLIGHT_CAMERA_8423||t===x.FLOODLIGHT_CAMERA_8424||t===x.WALL_LIGHT_CAM||t===x.WALL_LIGHT_CAM_81A0||t===x.CAMERA_GARAGE_T8453_COMMON||t===x.CAMERA_GARAGE_T8453||t===x.CAMERA_GARAGE_T8452||t===x.CAMERA_FG}}const zu=new Map([[x.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[x.HB3,{image:"homebase3_large.jpg",padding:"0px"}],[x.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[x.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[x.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[x.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[x.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[x.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[x.CAMERA3C,{image:"eufycam3c_large.jpg",padding:"0px"}],[x.CAMERA3,{image:"eufycam3_large.jpg",padding:"0px"}],[x.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[x.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[x.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[x.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[x.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[x.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[x.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[x.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[x.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[x.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[x.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[x.SMART_DROP,{image:"smartdrop_t8790_large.jpg",padding:"20px"}],[x.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[x.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[x.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[x.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[x.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[x.CAMERA_FG,{image:"4g_lte_starlight_large.jpg",padding:"20px"}],[x.SMART_SAFE_7400,{image:"smartsafe_s10_t7400_large.jpg",padding:"20px"}],[x.SMART_SAFE_7401,{image:"smartsafe_s12_t7401_large.jpg",padding:"20px"}],[x.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[x.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}],[x.WALL_LIGHT_CAM,{image:"walllight_s100_large.jpg",padding:"20px"}],[x.SMART_TRACK_LINK,{image:"unknown.png",padding:"20px"}],[x.SMART_TRACK_CARD,{image:"unknown.png",padding:"20px"}],[x.LOCK_8502,{image:"unknown.png",padding:"20px"}],[x.LOCK_8506,{image:"unknown.png",padding:"20px"}],[x.WALL_LIGHT_CAM_81A0,{image:"walllight_s100_large",padding:"20px"}],[x.CAMERA_GARAGE_T8452,{image:"garage_camera_t8452_small.jpg",padding:"20px"}],[x.CAMERA_GARAGE_T8453,{image:"unknown.png",padding:"20px"}],[x.CAMERA_GARAGE_T8453_COMMON,{image:"unknown.png",padding:"20px"}]]);let r1=(()=>{var e;class t extends EventTarget{constructor(){super(),V(this,"stations",[]),V(this,"devices",[]),V(this,"accessories$",X1(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(r=>r.uniqueId===n)}getDevice(n){return this.devices.find(r=>r.uniqueId===n)}loadStoredAccessories(){var n=this;return Ve(function*(){try{const r=yield window.homebridge.request("/storedAccessories");return r.forEach(a=>{n.addAccessory(a)}),0!==r.length&&n.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==r.length)}catch(r){return Promise.reject(r)}})()}addAccessory(n){const r=n.station?this.stations:this.devices;r.find(a=>a.uniqueId===n.uniqueId)||r.push(n)}getConfig(){var n=this;return Ve(function*(){return n.config?Promise.resolve(n.config):n.getPlatformConfig()})()}updateConfig(n,r){var a=this;return Ve(function*(){try{yield window.homebridge.updatePluginConfig([n]),a.config=n,r&&(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 r=yield window.homebridge.getPluginConfig();return r.length>0?(n.config=r[0],n.config.platform="EufySecurity",Promise.resolve(r[0])):Promise.reject("Could not get Platform config")}catch(r){return Promise.reject(r)}})()}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",$({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function Jme(e,t){if(1&e){const i=E1();g(0,"div",2)(1,"h4",3),y(2,"Refresh stations and devices"),v(),g(3,"button",4),I("click",function(){return Z(Y(i).$implicit.dismiss("Cross click"))}),v()(),g(4,"div",5)(5,"div",6),y(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"),g(8,"b",7),y(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"),y(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),g(12,"a",8),y(13,"here"),v(),y(14," for more information). "),v()(),g(15,"div",9)(16,"a",10),I("click",function(){return Z(Y(i).$implicit.close("Login"))}),y(17,"Login with eufy"),v()()}}function Xme(e,t){1&e&&(g(0,"div",11)(1,"div",12),R(2,"div",13),g(3,"div",14)(4,"div",15)(5,"div",16),y(6," Loading Accessories... "),g(7,"div",17),R(8,"div",18),v()()()(),R(9,"div",13),v()())}function ege(e,t){if(1&e&&(g(0,"span",42),R(1,"fa-icon",43),v()),2&e){const i=A(3);_(1),M("icon",i.ignoreIcon)}}function tge(e,t){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),R(5,"img",36),g(6,"span",37),R(7,"fa-icon",38),v(),T(8,ege,2,1,"span",39),v()()()(),g(9,"span",40),y(10),v(),g(11,"span",41),y(12),v()()),2&e){const i=t.$implicit,n=A(2);let r;_(3),P4("routerLink","/stationConfig/",i.uniqueId,""),_(2),M("src","assets/devices/"+(n.DeviceImage.get(i.type)?null==(r=n.DeviceImage.get(i.type))?null:r.image:"unknown.png"),y4),W("style",n.getDevicePanelStyle(i),dn),_(2),M("icon",n.settingsIcon),_(1),M("ngIf",i.ignored),_(2),ht(i.cachedName?i.cachedName:i.displayName),_(2),J2("(",i.uniqueId,")")}}function nge(e,t){if(1&e&&(g(0,"span",42),R(1,"fa-icon",43),v()),2&e){const i=A(3);_(1),M("icon",i.ignoreIcon)}}function ige(e,t){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),R(5,"img",36),g(6,"span",37),R(7,"fa-icon",38),v(),T(8,nge,2,1,"span",39),v()()()(),g(9,"span",40),y(10),v(),g(11,"span",41),y(12),v()()),2&e){const i=t.$implicit,n=A(2);let r;_(3),P4("routerLink","/cameraConfig/",i.uniqueId,""),_(2),M("src","assets/devices/"+(n.DeviceImage.get(i.type)?null==(r=n.DeviceImage.get(i.type))?null:r.image:"unknown.png"),y4),W("style",n.getDevicePanelStyle(i),dn),_(2),M("icon",n.settingsIcon),_(1),M("ngIf",i.ignored),_(2),ht(i.cachedName?i.cachedName:i.displayName),_(2),J2("(",i.uniqueId,")")}}function rge(e,t){if(1&e){const i=E1();g(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),I("click",function(){Y(i);const r=A(),a=P2(1);return Z(r.openReloadModal(a))}),R(4,"fa-icon",22),v()(),g(5,"div",23)(6,"a",24),y(7,"Plugin Settings"),v()()(),R(8,"p"),g(9,"span"),y(10,"Click on any device below to access its settings."),v(),R(11,"p"),g(12,"div",25)(13,"div",26),y(14," Stations "),v(),g(15,"div",27)(16,"div",19),T(17,tge,13,7,"div",28),v()()(),R(18,"p"),g(19,"div",25)(20,"div",26),y(21," Devices "),v(),g(22,"div",29)(23,"div",19),T(24,ige,13,7,"div",28),v()()(),R(25,"p"),g(26,"span")(27,"i"),y(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 "),g(29,"a",30),y(30,"Github page."),v()()()()}if(2&e){const i=A();_(4),M("icon",i.reloadIcon),_(13),M("ngForOf",i.stations),_(7),M("ngForOf",i.devices)}}let age=(()=>{var e;class t{constructor(n,r,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",Z7),V(this,"ignoreIcon",Sw),V(this,"reloadIcon",vu),V(this,"DeviceImage",zu),V(this,"closeResult",""),this.modalService=n,this.pluginService=r,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 r=yield n.pluginService.getConfig();Array.isArray(r.ignoreStations)&&n.stations.forEach(a=>{a.ignored=void 0!==r.ignoreStations.find(s=>s===a.uniqueId)}),Array.isArray(r.ignoreDevices)&&n.devices.forEach(a=>{a.ignored=void 0!==r.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(r=>{this.closeResult=`Closed with: ${r}`},r=>{this.closeResult=`Dismissed ${this.getDismissReason(r)}`})}getDismissReason(n){return n===qr.ESC?"by pressing ESC":n===qr.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${n}`}getDevicePanelStyle(n){let r="";return n.ignored&&(r+="opacity: 0.2;"),zu.get(n.type)?r+="padding:"+zu.get(n.type)?.padding:r+="padding:20px",r}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(TC),b(r1),b(zn),b(_2))}),V(t,"\u0275cmp",oe({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,r){1&n&&(T(0,Jme,18,0,"ng-template",null,0,z2),T(2,Xme,10,0,"div",1),T(3,rge,31,3,"div",1)),2&n&&(_(2),M("ngIf",0===r.stations.length&&0===r.devices.length),_(1),M("ngIf",0!==r.stations.length||0!==r.devices.length))},dependencies:[Jt,I1,Sn,nM],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})();class S1{constructor(t){V(this,"pluginService",void 0),V(this,"config",void 0),this.pluginService=t,this.config={},this.pluginService.getConfig().then(i=>{this.config=i}).catch(i=>console.log("Could not get config in config interpreter: "+i))}getCameraConfig(t){var i=this;return Ve(function*(){const n=yield i.pluginService.getConfig();return Array.isArray(n.cameras)?Promise.resolve(n.cameras.find(r=>r.serialNumber===t)):Promise.resolve(void 0)})()}getStationConfig(t){var i=this;return Ve(function*(){const n=yield i.pluginService.getConfig();return Array.isArray(n.stations)?Promise.resolve(n.stations.find(r=>r.serialNumber===t)):Promise.resolve(void 0)})()}updateConfig(t,i){var n=this;return Ve(function*(){let r=yield n.pluginService.getConfig();if(i||(r={...r,...t}),i&&!1===i.station){Array.isArray(r.cameras)||(r.cameras=[]);let a=-1;r.cameras.forEach((s,o)=>{s.serialNumber===i.uniqueId&&(a=o)}),a>=0?r.cameras[a]={...r.cameras[a],...t}:r.cameras.push({serialNumber:i.uniqueId,...t})}else if(i&&!0===i.station){Array.isArray(r.stations)||(r.stations=[]);let a=-1;r.stations.forEach((s,o)=>{s.serialNumber===i.uniqueId&&(a=o)}),a>=0?r.stations[a]={...r.stations[a],...t}:r.stations.push({serialNumber:i.uniqueId,...t})}n.pluginService.updateConfig(r)})()}}let sge=(()=>{var e;class t extends S1{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)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Debug Mode"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),v()()(),g(6,"small")(7,"i"),y(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),v()()()),2&n&&(_(5),M("ngModel",r.model))},dependencies:[v2,V1,y1],encapsulation:2})),t})(),oge=(()=>{var e;class t extends S1{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)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Polling Interval"),v(),g(4,"div",2)(5,"div",3)(6,"input",4),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v(),g(7,"div",5)(8,"span",6),y(9,"minutes"),v()()()()(),g(10,"small")(11,"i"),y(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),v()()()),2&n&&(_(6),M("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Un,Z4,V1,y1],encapsulation:2})),t})(),cge=(()=>{var e;class t extends S1{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)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Maximum Livestream Duration"),v(),g(4,"div",2)(5,"div",3)(6,"input",4),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v(),g(7,"div",5)(8,"span",6),y(9,"seconds"),v()()()()(),g(10,"small")(11,"i"),y(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),v()()()),2&n&&(_(6),M("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Un,Z4,V1,y1],encapsulation:2})),t})(),lge=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Change username, password and country"),v(),g(4,"a",3),y(5,"New Login"),v()()())},dependencies:[Sn],encapsulation:2})),t})(),uge=(()=>{var e;class t extends S1{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)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Clean cache automatically"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),v()()(),g(6,"small")(7,"i"),y(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),v()()()),2&n&&(_(5),M("ngModel",r.model))},dependencies:[v2,V1,y1],encapsulation:2})),t})();function fge(e,t){1&e&&(g(0,"span"),y(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),v())}function dge(e,t){1&e&&(g(0,"option",6),y(1,"Use global setting"),v()),2&e&&M("ngValue",void 0)}function hge(e,t){1&e&&(g(0,"option",6),y(1,"Use global setting"),v()),2&e&&M("ngValue",void 0)}function pge(e,t){1&e&&(g(0,"option",6),y(1,"Use global setting"),v()),2&e&&M("ngValue",void 0)}function mge(e,t){1&e&&(g(0,"option",6),y(1,"Use global setting"),v()),2&e&&M("ngValue",void 0)}let gge=(()=>{var e;class t extends S1{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 r=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();r&&Object.prototype.hasOwnProperty.call(r,"hkHome")?n.hkHome=r.hkHome:n.accessory||(n.hkHome=1),r&&Object.prototype.hasOwnProperty.call(r,"hkAway")?n.hkAway=r.hkAway:n.accessory||(n.hkAway=0),r&&Object.prototype.hasOwnProperty.call(r,"hkNight")?n.hkNight=r.hkNight:n.accessory||(n.hkNight=3),r&&Object.prototype.hasOwnProperty.call(r,"hkOff")?n.hkOff=r.hkOff:n.accessory||(n.hkOff=63)})()}update(){var n=this;return Ve(function*(){let r=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();void 0===r&&(r={}),void 0===n.hkHome&&Object.prototype.hasOwnProperty.call(r,"hkHome")?delete r.hkHome:r.hkHome=n.hkHome,void 0===n.hkAway&&Object.prototype.hasOwnProperty.call(r,"hkAway")?delete r.hkAway:r.hkAway=n.hkAway,void 0===n.hkNight&&Object.prototype.hasOwnProperty.call(r,"hkNight")?delete r.hkNight:r.hkNight=n.hkNight,void 0===n.hkOff&&Object.prototype.hasOwnProperty.call(r,"hkOff")?delete r.hkOff:r.hkOff=n.hkOff;let a=yield n.pluginService.getConfig();if(n.accessory){Array.isArray(a.stations)||(a.stations=[]);let s=-1;a.stations.forEach((o,c)=>{o.serialNumber===n.accessory?.uniqueId&&(s=c)}),s>=0?a.stations[s]=r:(r.serialNumber=n.accessory.uniqueId,a.stations.push(r))}else a=r;n.pluginService.updateConfig(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"span"),y(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),v(),R(3,"p"),T(4,fge,2,0,"span",1),R(5,"p"),g(6,"div",2)(7,"label",3),y(8,"HomeKit Home"),v(),g(9,"select",4),I("ngModelChange",function(s){return r.hkHome=s})("change",function(){return r.update()}),T(10,dge,2,1,"option",5),g(11,"option",6),y(12,"Eufy Home"),v(),g(13,"option",6),y(14,"Eufy Away"),v(),g(15,"option",6),y(16,"Eufy Schedule"),v(),g(17,"option",6),y(18,"Eufy Custom 1 (Night)"),v(),g(19,"option",6),y(20,"Eufy Custom 2"),v(),g(21,"option",6),y(22,"Eufy Custom 3"),v(),g(23,"option",6),y(24,"Eufy Geofencing"),v(),g(25,"option",6),y(26,"Eufy Disarmed"),v()()(),g(27,"div",2)(28,"label",7),y(29,"HomeKit Away"),v(),g(30,"select",8),I("ngModelChange",function(s){return r.hkAway=s})("change",function(){return r.update()}),T(31,hge,2,1,"option",5),g(32,"option",6),y(33,"Eufy Home"),v(),g(34,"option",6),y(35,"Eufy Away"),v(),g(36,"option",6),y(37,"Eufy Schedule"),v(),g(38,"option",6),y(39,"Eufy Custom 1 (Night)"),v(),g(40,"option",6),y(41,"Eufy Custom 2"),v(),g(42,"option",6),y(43,"Eufy Custom 3"),v(),g(44,"option",6),y(45,"Eufy Geofencing"),v(),g(46,"option",6),y(47,"Eufy Disarmed"),v()()(),g(48,"div",2)(49,"label",9),y(50,"HomeKit Night"),v(),g(51,"select",10),I("ngModelChange",function(s){return r.hkNight=s})("change",function(){return r.update()}),T(52,pge,2,1,"option",5),g(53,"option",6),y(54,"Eufy Home"),v(),g(55,"option",6),y(56,"Eufy Away"),v(),g(57,"option",6),y(58,"Eufy Schedule"),v(),g(59,"option",6),y(60,"Eufy Custom 1 (Night)"),v(),g(61,"option",6),y(62,"Eufy Custom 2"),v(),g(63,"option",6),y(64,"Eufy Custom 3"),v(),g(65,"option",6),y(66,"Eufy Geofencing"),v(),g(67,"option",6),y(68,"Eufy Disarmed"),v()()(),g(69,"div",2)(70,"label",11),y(71,"HomeKit Off"),v(),g(72,"select",12),I("ngModelChange",function(s){return r.hkOff=s})("change",function(){return r.update()}),T(73,mge,2,1,"option",5),g(74,"option",6),y(75,"Eufy Home"),v(),g(76,"option",6),y(77,"Eufy Away"),v(),g(78,"option",6),y(79,"Eufy Schedule"),v(),g(80,"option",6),y(81,"Eufy Custom 1 (Night)"),v(),g(82,"option",6),y(83,"Eufy Custom 2"),v(),g(84,"option",6),y(85,"Eufy Custom 3"),v(),g(86,"option",6),y(87,"Eufy Geofencing"),v(),g(88,"option",6),y(89,"Eufy Disarmed"),v()()()()),2&n&&(_(4),M("ngIf",r.accessory),_(5),M("ngModel",r.hkHome),_(1),M("ngIf",r.accessory),_(1),M("ngValue",1),_(2),M("ngValue",0),_(2),M("ngValue",2),_(2),M("ngValue",3),_(2),M("ngValue",4),_(2),M("ngValue",5),_(2),M("ngValue",47),_(2),M("ngValue",63),_(5),M("ngModel",r.hkAway),_(1),M("ngIf",r.accessory),_(1),M("ngValue",1),_(2),M("ngValue",0),_(2),M("ngValue",2),_(2),M("ngValue",3),_(2),M("ngValue",4),_(2),M("ngValue",5),_(2),M("ngValue",47),_(2),M("ngValue",63),_(5),M("ngModel",r.hkNight),_(1),M("ngIf",r.accessory),_(1),M("ngValue",1),_(2),M("ngValue",0),_(2),M("ngValue",2),_(2),M("ngValue",3),_(2),M("ngValue",4),_(2),M("ngValue",5),_(2),M("ngValue",47),_(2),M("ngValue",63),_(5),M("ngModel",r.hkOff),_(1),M("ngIf",r.accessory),_(1),M("ngValue",1),_(2),M("ngValue",0),_(2),M("ngValue",2),_(2),M("ngValue",3),_(2),M("ngValue",4),_(2),M("ngValue",5),_(2),M("ngValue",47),_(2),M("ngValue",63))},dependencies:[I1,v3,_3,Cn,V1,y1],encapsulation:2})),t})(),vge=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Reset Plugin"),v(),g(4,"a",3),y(5,"Remove everything"),v()(),g(6,"small")(7,"i"),y(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:[Sn],encapsulation:2})),t})(),_ge=(()=>{var e;class t extends S1{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)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Don't store log files"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()(),g(6,"small")(7,"i"),y(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&&(_(5),M("ngModel",r.value))},dependencies:[v2,V1,y1],encapsulation:2})),t})();var Cge=u1(7);function yge(e,t){if(1&e&&(g(0,"div",7),y(1),v()),2&e){const i=A();_(1),J2(" ",i.failureMessage," ")}}function Mge(e,t){1&e&&R(0,"span",10)}function bge(e,t){1&e&&(g(0,"span"),y(1,"Download Logs"),v())}function wge(e,t){1&e&&(g(0,"span"),y(1," Generating Log File..."),v())}function Hge(e,t){if(1&e){const i=E1();g(0,"button",8),I("click",function(){return Y(i),Z(A().downloadLogs())}),T(1,Mge,1,0,"span",9),T(2,bge,2,0,"span",6),T(3,wge,2,0,"span",6),v()}if(2&e){const i=A();W("disabled",!!i.isDownloading||null),_(1),M("ngIf",i.isDownloading),_(1),M("ngIf",!i.isDownloading),_(1),M("ngIf",i.isDownloading)}}function Vge(e,t){if(1&e){const i=E1();g(0,"a",11),I("click",function(){return Y(i),Z(A().openLink())}),g(1,"span"),y(2,"Download Logs"),v()()}}function Dge(e,t){if(1&e&&(g(0,"small")(1,"i"),y(2),v()()),2&e){const i=A();_(2),J2(" ",i.downloadMessage," ")}}function zge(e,t){1&e&&(g(0,"small")(1,"i"),y(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"),g(4,"b"),y(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),g(6,"a",12),y(7,"site"),v(),y(8," can help."),v()()())}let Sge=(()=>{var e;class t{constructor(n,r){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=r}ngOnInit(){this.routeSub=this.router.events.subscribe(n=>{n instanceof Ac&&""!==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 r=yield window.homebridge.request("/downloadLogs"),a=Cge.lW.from(r.data),s=new File([a],"logs.zip",{type:"application/zip"}),o=window.URL.createObjectURL(s);n.logFileLocation=o,window.open(n.logFileLocation),n.updateDownloadMessage(void 0),n.hasDownloaded=!0}catch(r){console.log(r);const a=r;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)(b(_2),b(He))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0),T(1,yge,2,1,"div",1),g(2,"div",2)(3,"span",3),y(4,"Download Logs"),v(),T(5,Hge,4,4,"button",4),T(6,Vge,3,0,"a",5),v(),T(7,Dge,3,1,"small",6),T(8,zge,9,0,"small",6),v()),2&n&&(_(1),M("ngIf",r.failed),_(4),M("ngIf",!r.hasDownloaded),_(1),M("ngIf",r.hasDownloaded),_(1),M("ngIf",r.downloadMessage),_(1),M("ngIf",r.hasDownloaded))},dependencies:[I1],encapsulation:2})),t})(),Lge=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-advanced-config-options"]],decls:23,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,r){1&n&&(g(0,"a",0),y(1,"Back to Devices List"),v(),g(2,"div",1)(3,"div",2),y(4," Advanced Settings "),v(),g(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-omit-log-files")(15,"hr")(16,"app-clean-cache")(17,"hr")(18,"app-guard-modes-mapping")(19,"hr")(20,"app-download-logs")(21,"hr")(22,"app-reset-plugin"),v()())},dependencies:[Sn,sge,oge,cge,lge,uge,gge,vge,_ge,Sge],encapsulation:2})),t})(),RL=(()=>{var e;class t extends S1{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 r=n.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(n.config[r])&&(n.value=void 0!==n.config[r].find(a=>a===n.accessory.uniqueId))}})()}update(){var n=this;return Ve(function*(){if(!n.accessory)return;const r=n.accessory.station?"ignoreStations":"ignoreDevices";n.config=yield n.pluginService.getConfig(),n.value?Array.isArray(n.config[r])&&!n.config[r].find(a=>a===n.accessory.uniqueId)?n.config[r].push(n.accessory.uniqueId):Array.isArray(n.config[r])||(n.config[r]=[n.accessory.uniqueId]):Array.isArray(n.config[r])&&void 0!==n.config[r].find(a=>a===n.accessory.uniqueId)&&(n.config[r]=n.config[r].filter(a=>a!==n.accessory.uniqueId)),n.pluginService.updateConfig(n.config)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()()()),2&n&&(_(3),J2("Ignore ",r.accessory&&r.accessory.station?"Station":"Device",""),_(2),M("ngModel",r.value))},dependencies:[v2,V1,y1],encapsulation:2})),t})();function xge(e,t){1&e&&(g(0,"small")(1,"i"),y(2," This option is disabled since doorbells are handled always as cameras. "),v()())}function Nge(e,t){1&e&&(g(0,"small")(1,"i"),y(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),v()())}let Age=(()=>{var e;class t extends S1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"disabled",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){n.accessory&&La.isDoorbell(n.accessory.type)&&(n.value=!0,n.disabled=!0,n.update());const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"enableCamera")&&(n.value=r.enableCamera)})()}update(){this.updateConfig({enableCamera:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Operation Mode"),v(),g(4,"div",2)(5,"select",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),g(6,"option",4),y(7,"Motion Sensor"),v(),g(8,"option",5),y(9,"Camera"),v()()()(),T(10,xge,3,0,"small",6),T(11,Nge,3,0,"small",6),v()),2&n&&(_(5),M("ngModel",r.value),W("disabled",!!r.disabled||null),_(5),M("ngIf",r.disabled),_(1),M("ngIf",!r.disabled))},dependencies:[I1,v3,_3,Cn,V1,y1],encapsulation:2})),t})(),Ege=(()=>{var e;class t extends S1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"enableCameraButton",!0),V(this,"enableMotionButton",!0)}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"enableButton")&&(n.enableCameraButton=r.enableButton),r&&Object.prototype.hasOwnProperty.call(r,"motionButton")&&(n.enableMotionButton=r.motionButton)})()}update(){this.updateConfig({enableButton:this.enableCameraButton,motionButton:this.enableMotionButton},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[re],decls:17,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Display HomeKit button to switch camera on/off"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.enableCameraButton=s})("change",function(){return r.update()}),v()()(),g(6,"div",1)(7,"span"),y(8,"Display HomeKit button to switch motion detection on/off"),v(),g(9,"div",2)(10,"input",3),I("ngModelChange",function(s){return r.enableMotionButton=s})("change",function(){return r.update()}),v()()(),g(11,"small")(12,"i"),y(13," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),g(14,"a",4),y(15,"here"),v(),y(16," for more details. "),v()()()),2&n&&(_(5),M("ngModel",r.enableCameraButton),_(5),M("ngModel",r.enableMotionButton))},dependencies:[v2,V1,y1],encapsulation:2})),t})(),Tge=(()=>{var e;class t extends S1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"unbridge")&&(n.value=r.unbridge)})()}update(){this.updateConfig({unbridge:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-unbridge-accessory"]],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"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Unbridge Camera"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()(),g(6,"small")(7,"i"),y(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),g(9,"a",4),y(10,"here"),v(),y(11," for mor details. "),v()()()),2&n&&(_(5),M("ngModel",r.value))},dependencies:[v2,V1,y1],encapsulation:2})),t})(),Ige=(()=>{var e;class t extends S1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"useCachedLocalLivestream")&&(n.value=r.useCachedLocalLivestream)})()}update(){this.updateConfig({useCachedLocalLivestream:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use Local Livestream Caching"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()(),g(6,"small")(7,"i")(8,"b"),y(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"),y(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&&(_(5),M("ngModel",r.value))},dependencies:[v2,V1,y1],encapsulation:2})),t})();function Oge(e,t){1&e&&(g(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let Rge=(()=>{var e;class t extends S1{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 r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(n.value=r.rtsp),r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(n.talkbackIsEnabled=r.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use RTSP streaming"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()(),T(6,Oge,2,0,"div",4),g(7,"small")(8,"i"),y(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&&(_(5),M("ngModel",r.value),_(1),M("ngIf",r.talkbackIsEnabled&&r.value))},dependencies:[I1,v2,V1,y1],encapsulation:2})),t})(),kge=(()=>{var e;class t extends S1{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 r=yield n.getCameraConfig(n.accessory?.uniqueId||"");if(r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audio")&&(n.value=r.videoConfig.audio),r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audioSampleRate")){const a=r.videoConfig.audioSampleRate;(8===a||16===a||24===a)&&(n.samplerate=a)}})()}update(){var n=this;return Ve(function*(){if(!n.accessory)return;let r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r||(r={serialNumber:n.accessory?.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(r,"videoConfig")||(r.videoConfig={}),r.videoConfig.audio=n.value,r.videoConfig.audioSampleRate=n.samplerate,n.updateConfig(r,n.accessory)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Audio"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()(),g(6,"small")(7,"i"),y(8," Try to enable audio streaming for this device."),R(9,"br"),y(10," If you encounter problems try to disable this setting. "),v()(),R(11,"p"),g(12,"div",4)(13,"span"),y(14,"Force Audio Sample Rate"),v(),g(15,"div",5)(16,"select",6),I("ngModelChange",function(s){return r.samplerate=s})("change",function(){return r.update()}),g(17,"option",7),y(18,"Default Sample Rate"),v(),g(19,"option",7),y(20,"8 kHz"),v(),g(21,"option",7),y(22,"16 kHz"),v(),g(23,"option",7),y(24,"24 kHz"),v()()()()()),2&n&&(_(5),M("ngModel",r.value),_(11),M("ngModel",r.samplerate),W("disabled",!r.value||null),_(1),M("ngValue",0),_(2),M("ngValue",8),_(2),M("ngValue",16),_(2),M("ngValue",24))},dependencies:[v3,_3,v2,Cn,V1,y1],encapsulation:2})),t})(),Pge=(()=>{var e;class t extends S1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(n.value=r.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Force Refresh Snapshot (Deprecated)"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()(),g(6,"small")(7,"i"),y(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"),y(10," This option is only used if you have disabled enhanced snapshot handling. "),v()()()),2&n&&(_(5),M("ngModel",r.value))},dependencies:[v2,V1,y1],encapsulation:2})),t})();function Fge(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),v(),y(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"),y(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",6),y(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",6),y(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",7),y(15," Performance"),R(16,"br")(17,"fa-icon",7),y(18," Battery life"),R(19,"br"),v()()),2&e){const i=A();_(8),M("icon",i.plusIcon),_(3),M("icon",i.plusIcon),_(3),M("icon",i.minusIcon),_(3),M("icon",i.minusIcon)}}function Bge(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),v(),y(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"),y(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",6),y(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",8),y(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",6),y(15," Performance"),R(16,"br")(17,"fa-icon",7),y(18," Battery life"),R(19,"br"),v()()),2&e){const i=A();_(8),M("icon",i.plusIcon),_(3),M("icon",i.mediumIcon),_(3),M("icon",i.plusIcon),_(3),M("icon",i.minusIcon)}}function Uge(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),y(3,"Description:"),v(),y(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),R(5,"br"),y(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",6),y(9," Up-to-date Snapshots (events)"),R(10,"br")(11,"fa-icon",7),y(12," Up-to-date Snapshots (HomeKit View)"),R(13,"br")(14,"fa-icon",6),y(15," Performance"),R(16,"br")(17,"fa-icon",6),y(18," Battery life"),R(19,"br"),v()()),2&e){const i=A();_(8),M("icon",i.plusIcon),_(3),M("icon",i.minusIcon),_(3),M("icon",i.plusIcon),_(3),M("icon",i.plusIcon)}}let jge=(()=>{var e;class t extends S1{constructor(n){super(n),V(this,"plusIcon",KS),V(this,"minusIcon",_b),V(this,"mediumIcon",BV),V(this,"accessory",void 0),V(this,"value",3)}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"snapshotHandlingMethod")?n.value=r.snapshotHandlingMethod:r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(n.value=r.forcerefreshsnap?1:3)})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[re],decls:15,vars:7,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"],[4,"ngIf"],["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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Snapshot Handling Method"),v(),g(4,"div",2)(5,"select",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),g(6,"option",4),y(7,"Force Refresh Snapshots"),v(),g(8,"option",4),y(9,"Balanced"),v(),g(10,"option",4),y(11,"Cloud Snapshots"),v()()()(),T(12,Fge,20,4,"small",5),T(13,Bge,20,4,"small",5),T(14,Uge,20,4,"small",5),v()),2&n&&(_(5),M("ngModel",r.value),_(1),M("ngValue",1),_(2),M("ngValue",2),_(2),M("ngValue",3),_(2),M("ngIf",1===r.value),_(1),M("ngIf",2===r.value),_(1),M("ngIf",3===r.value))},dependencies:[I1,v3,_3,Cn,V1,y1,nM],encapsulation:2})),t})(),Gge=(()=>{var e;class t extends S1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"immediateRingNotificationWithoutSnapshot")&&(n.value=r.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Immediate Notification on ring events"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()(),g(6,"small")(7,"i"),y(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"),g(10,"b"),y(11,"This option however delivers most likely an empty (black) snapshot on those events!"),v()()()()),2&n&&(_(5),M("ngModel",r.value))},dependencies:[v2,V1,y1],encapsulation:2})),t})(),$ge=(()=>{var e;class t extends S1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"delayCameraSnapshot")&&(n.value=r.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Night-Vision Improvement for camera snapshots"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()(),g(6,"small")(7,"i"),y(8," Force night vision on dark snapshots to improve the image."),R(9,"br"),g(10,"b"),y(11,"The snapshot request will be delayed by half a second if you enable this setting."),v()()()()),2&n&&(_(5),M("ngModel",r.value))},dependencies:[v2,V1,y1],encapsulation:2})),t})(),Wge=(()=>{var e;class t extends S1{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 r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"refreshSnapshotIntervalMinutes")&&(n.value=r.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)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Periodic Snapshot Refresh"),v(),g(4,"div",2)(5,"input",3),I("change",function(){return r.switchSetting()}),v()()(),g(6,"div",4)(7,"span"),y(8,"Refresh Interval"),v(),g(9,"div",5)(10,"div",6)(11,"input",7),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v(),g(12,"div",8)(13,"span",9),y(14,"minutes"),v()()()()(),g(15,"small")(16,"i"),y(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"),y(19," Best used with 'Cloud Snapshots' handling method."),R(20,"br"),y(21," Every setting below 5 minutes will be discarded due to performance reasons."),R(22,"br"),g(23,"b"),y(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&&(_(5),W("checked",r.value>0||null),_(6),M("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Un,Z4,V1,y1],encapsulation:2})),t})();function qge(e,t){1&e&&(g(0,"span")(1,"b"),y(2,"Advanced Video Config"),v()())}function Kge(e,t){1&e&&(g(0,"button",4)(1,"span")(2,"b"),y(3,"Advanced Video Config"),v()()())}function Yge(e,t){if(1&e&&(g(0,"div"),y(1),v()),2&e){const i=A(2);_(1),J2(" ",i.presetDescription," ")}}function Zge(e,t){if(1&e){const i=E1();y(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"),y(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"),g(4,"div",5)(5,"div",6)(6,"select",7),I("ngModelChange",function(r){return Y(i),Z(A().preset=r)})("change",function(){return Y(i),Z(A().loadPreset())}),g(7,"option",8),y(8,"No Preset (default)"),v(),g(9,"option",8),y(10,"Copy"),v(),g(11,"option",8),y(12,"Performance"),v(),g(13,"option",8),y(14,"Custom"),v()()()(),T(15,Yge,2,1,"div",9),R(16,"p"),g(17,"div",10)(18,"div",11)(19,"input",12),I("ngModelChange",function(r){return Y(i),Z(A().debug=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(20,"span",13),y(21,"ffmpeg debug"),v()(),g(22,"div",10)(23,"div",11)(24,"input",12),I("ngModelChange",function(r){return Y(i),Z(A().useSeparateProcesses=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(25,"span",13),y(26,"use separate processes for video and audio"),v()(),g(27,"div",10)(28,"div",11)(29,"input",12),I("ngModelChange",function(r){return Y(i),Z(A().readRate=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(30,"span",13),y(31,"readRate"),v()(),g(32,"div",10)(33,"div",11)(34,"input",14),I("change",function(){Y(i);const r=A();return r.vcodec=void 0===r.vcodec?"":void 0,Z(r.update())}),v()(),g(35,"span",13),y(36,"vcodec"),v(),g(37,"input",15),I("ngModelChange",function(r){return Y(i),Z(A().vcodec=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(38,"div",10)(39,"div",11)(40,"input",14),I("change",function(){Y(i);const r=A();return r.acodec=void 0===r.acodec?"":void 0,Z(r.update())}),v()(),g(41,"span",13),y(42,"acodec"),v(),g(43,"input",16),I("ngModelChange",function(r){return Y(i),Z(A().acodec=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(44,"div",10)(45,"div",11)(46,"input",14),I("change",function(){Y(i);const r=A();return r.videoFilter=void 0===r.videoFilter?"":void 0,Z(r.update())}),v()(),g(47,"span",13),y(48,"videoFilter"),v(),g(49,"input",17),I("ngModelChange",function(r){return Y(i),Z(A().videoFilter=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(50,"div",10)(51,"div",11)(52,"input",14),I("change",function(){Y(i);const r=A();return r.encoderOptions=void 0===r.encoderOptions?"":void 0,Z(r.update())}),v()(),g(53,"span",13),y(54,"encoderOptions"),v(),g(55,"input",18),I("ngModelChange",function(r){return Y(i),Z(A().encoderOptions=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(56,"div",10)(57,"div",11)(58,"input",14),I("change",function(){Y(i);const r=A();return r.probeSize=void 0===r.probeSize?0:void 0,Z(r.update())}),v()(),g(59,"span",13),y(60,"probeSize"),v(),g(61,"input",19),I("ngModelChange",function(r){return Y(i),Z(A().probeSize=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(62,"div",10)(63,"div",11)(64,"input",14),I("change",function(){Y(i);const r=A();return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,Z(r.update())}),v()(),g(65,"span",13),y(66,"analyzeDuration"),v(),g(67,"input",19),I("ngModelChange",function(r){return Y(i),Z(A().analyzeDuration=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(68,"div",10)(69,"div",11)(70,"input",14),I("change",function(){Y(i);const r=A();return r.maxStreams=void 0===r.maxStreams?0:void 0,Z(r.update())}),v()(),g(71,"span",13),y(72,"maxStreams"),v(),g(73,"input",19),I("ngModelChange",function(r){return Y(i),Z(A().maxStreams=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(74,"div",10)(75,"div",11)(76,"input",14),I("change",function(){Y(i);const r=A();return r.maxWidth=void 0===r.maxWidth?0:void 0,Z(r.update())}),v()(),g(77,"span",13),y(78,"maxWidth"),v(),g(79,"input",19),I("ngModelChange",function(r){return Y(i),Z(A().maxWidth=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(80,"div",10)(81,"div",11)(82,"input",14),I("change",function(){Y(i);const r=A();return r.maxHeight=void 0===r.maxHeight?0:void 0,Z(r.update())}),v()(),g(83,"span",13),y(84,"maxHeight"),v(),g(85,"input",19),I("ngModelChange",function(r){return Y(i),Z(A().maxHeight=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(86,"div",10)(87,"div",11)(88,"input",14),I("change",function(){Y(i);const r=A();return r.maxFPS=void 0===r.maxFPS?0:void 0,Z(r.update())}),v()(),g(89,"span",13),y(90,"fps"),v(),g(91,"input",19),I("ngModelChange",function(r){return Y(i),Z(A().maxFPS=r)})("change",function(){return Y(i),Z(A().update())}),v()(),g(92,"div",10)(93,"div",11)(94,"input",14),I("change",function(){Y(i);const r=A();return r.maxBitrate=void 0===r.maxBitrate?0:void 0,Z(r.update())}),v()(),g(95,"span",13),y(96,"bitrate"),v(),g(97,"input",19),I("ngModelChange",function(r){return Y(i),Z(A().maxBitrate=r)})("change",function(){return Y(i),Z(A().update())}),v()()}if(2&e){const i=A();_(6),M("ngModel",i.preset),_(1),M("ngValue",0),_(2),M("ngValue",1),_(2),M("ngValue",2),_(2),M("ngValue",3),_(2),M("ngIf",i.presetDescription),_(4),M("ngModel",i.debug),_(5),M("ngModel",i.useSeparateProcesses),_(5),M("ngModel",i.readRate),_(5),M("checked",void 0!==i.vcodec||null),_(3),M("ngModel",i.vcodec),W("disabled",void 0===i.vcodec||null),_(3),M("checked",void 0!==i.acodec||null),_(3),M("ngModel",i.acodec),W("disabled",void 0===i.acodec||null),_(3),M("checked",void 0!==i.videoFilter||null),W("disabled","copy"===i.vcodec||null),_(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),_(2),M("ngModel",i.videoFilter),W("disabled",void 0===i.videoFilter||"copy"===i.vcodec||null),_(3),M("checked",void 0!==i.encoderOptions||null),W("disabled","copy"===i.vcodec||null),_(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),_(2),M("ngModel",i.encoderOptions),W("disabled",void 0===i.encoderOptions||"copy"===i.vcodec||null),_(3),M("checked",void 0!==i.probeSize||null),_(3),M("ngModel",i.probeSize),W("disabled",void 0===i.probeSize||null),_(3),M("checked",void 0!==i.analyzeDuration||null),_(3),M("ngModel",i.analyzeDuration),W("disabled",void 0===i.analyzeDuration||null),_(3),M("checked",void 0!==i.maxStreams||null),_(3),M("ngModel",i.maxStreams),W("disabled",void 0===i.maxStreams||null),_(3),M("checked",void 0!==i.maxWidth||null),W("disabled","copy"===i.vcodec||null),_(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),_(2),M("ngModel",i.maxWidth),W("disabled",void 0===i.maxWidth||"copy"===i.vcodec||null),_(3),M("checked",void 0!==i.maxHeight||null),W("disabled","copy"===i.vcodec||null),_(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),_(2),M("ngModel",i.maxHeight),W("disabled",void 0===i.maxHeight||"copy"===i.vcodec||null),_(3),M("checked",void 0!==i.maxFPS||null),W("disabled","copy"===i.vcodec||null),_(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),_(2),M("ngModel",i.maxFPS),W("disabled",void 0===i.maxFPS||"copy"===i.vcodec||null),_(3),M("checked",void 0!==i.maxBitrate||null),W("disabled","copy"===i.vcodec||null),_(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),_(2),M("ngModel",i.maxBitrate),W("disabled",void 0===i.maxBitrate||"copy"===i.vcodec||null)}}let Qge=(()=>{var e;class t extends S1{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 r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")&&Object.entries(r.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 r=yield n.getCameraConfig(n.accessory?.uniqueId||""),a=r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")?r.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)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"ngb-accordion",null,0)(2,"ngb-panel"),T(3,qge,3,0,"ng-template",1),T(4,Kge,4,0,"ng-template",2),T(5,Zge,98,54,"ng-template",3),v()())},dependencies:[I1,v3,_3,Un,Z4,v2,Cn,V1,y1,w5,Go,y5,M5,jo,b5],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 Jge(e,t){1&e&&(g(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let Xge=(()=>{var e;class t extends S1{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 r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(n.value=r.talkback),r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(n.rtspIsEnabled=r.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Talkback (Two way communication)"),v(),g(4,"div",2)(5,"input",3),I("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),v()()(),T(6,Jge,2,0,"div",4),g(7,"small")(8,"i"),y(9," Enables you to talk with someone infront of the camera while streaming. "),R(10,"p"),y(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&&(_(5),M("ngModel",r.value),_(1),M("ngIf",r.rtspIsEnabled&&r.value))},dependencies:[I1,v2,V1,y1],encapsulation:2})),t})();function eve(e,t){1&e&&R(0,"hr")}function tve(e,t){1&e&&R(0,"app-rtsp-streaming",6),2&e&&M("accessory",A(3).accessory)}function nve(e,t){1&e&&R(0,"hr")}function ive(e,t){1&e&&R(0,"app-talkback",6),2&e&&M("accessory",A(3).accessory)}function rve(e,t){if(1&e&&(g(0,"div"),R(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),T(5,eve,1,0,"hr",2),T(6,tve,1,1,"app-rtsp-streaming",7),R(7,"hr")(8,"app-enable-audio",6),T(9,nve,1,0,"hr",2),T(10,ive,1,1,"app-talkback",7),v()),2&e){const i=A(2);_(2),M("accessory",i.accessory),_(2),M("accessory",i.accessory),_(1),M("ngIf",i.supportsRTSP),_(1),M("ngIf",i.supportsRTSP),_(2),M("accessory",i.accessory),_(1),M("ngIf",i.supportsTalkback),_(1),M("ngIf",i.supportsTalkback)}}function ave(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"Camera Settings"),v(),y(4," for "),g(5,"i"),y(6),v()(),g(7,"div",5),R(8,"app-ignore-accessory",6),T(9,rve,11,7,"div",2),v()()),2&e){const i=A();_(6),B4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),_(2),M("accessory",i.accessory),_(1),M("ngIf",i.isCamera)}}function sve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"HomeKit Behaviour"),v(),y(4," for "),g(5,"i"),y(6),v()(),g(7,"div",5),R(8,"app-camera-buttons",6)(9,"hr")(10,"app-unbridge-accessory",6),v()()),2&e){const i=A(2);_(6),B4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),_(2),M("accessory",i.accessory),_(2),M("accessory",i.accessory)}}function ove(e,t){1&e&&R(0,"hr")}function cve(e,t){1&e&&R(0,"app-immediate-notification-on-ring",6),2&e&&M("accessory",A(3).accessory)}function lve(e,t){if(1&e&&(g(0,"div"),R(1,"app-force-refreshsnap",6),v()),2&e){const i=A(3);_(1),M("accessory",i.accessory)}}function uve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),y(3,"Snapshot Behaviour"),v(),y(4," for "),g(5,"i"),y(6),v()(),g(7,"div",5),R(8,"app-snapshot-handling-method",6),T(9,ove,1,0,"hr",2),T(10,cve,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),T(15,lve,2,1,"div",2),v()()),2&e){const i=A(2);_(6),B4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),_(2),M("accessory",i.accessory),_(1),M("ngIf",i.isDoorbell),_(1),M("ngIf",i.isDoorbell),_(2),M("accessory",i.accessory),_(2),M("accessory",i.accessory),_(1),M("ngIf",!i.showEnhancedSnapshotBehaviour)}}function fve(e,t){if(1&e&&(g(0,"div"),R(1,"p"),T(2,sve,11,4,"div",1),R(3,"p"),T(4,uve,16,8,"div",1),R(5,"p")(6,"app-advanced-videoconfig",6),v()),2&e){const i=A();_(2),M("ngIf",i.accessory),_(2),M("ngIf",i.accessory),_(2),M("accessory",i.accessory)}}let dve=(()=>{var e;class t extends S1{constructor(n,r){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=r}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(n),this.accessory&&(this.isDoorbell=La.isDoorbell(this.accessory.type),this.isCamera=La.isCamera(this.accessory.type),this.supportsRTSP=La.supportsRTSP(this.accessory.type),this.supportsTalkback=La.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)(b(r1),b(zn))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"a",0),y(1,"Back to Devices List"),v(),T(2,ave,10,4,"div",1),T(3,fve,7,3,"div",2)),2&n&&(_(2),M("ngIf",r.accessory),_(1),M("ngIf",r.isCamera))},dependencies:[I1,Sn,RL,Age,Ege,Tge,Ige,Rge,kge,Pge,jge,Gge,$ge,Wge,Qge,Xge],encapsulation:2})),t})();var Su=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(Su||{});const hve={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 pve=(()=>{var e;class t{constructor(n){V(this,"pluginService",void 0),this.pluginService=n}getCredentials(){var n=this;return Ve(function*(){try{const r=yield n.pluginService.getConfig();return r.username&&r.password?Promise.resolve({username:r.username,password:r.password,country:r.country?r.country:"US",deviceName:r.deviceName}):Promise.reject("no full credentials in config")}catch{return Promise.reject("no config")}})()}login(n){return Ve(function*(){try{const r=yield window.homebridge.request("/login",n);return Promise.resolve(r)}catch(r){return Promise.reject(r)}})()}updateConfigCredentials(n){var r=this;return Ve(function*(){let a={};try{a=yield r.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 r.pluginService.updateConfig(a,!0)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(q(r1))}),V(t,"\u0275prov",$({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function mve(e,t){1&e&&(a4(),y(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),s4(),R(1,"p"),g(2,"i"),y(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 gve(e,t){if(1&e){const i=E1();g(0,"p",10)(1,"ngb-alert",11),I("closed",function(){return Y(i),Z(A().resetLoginFailed())}),a4(),g(2,"svg",12),R(3,"use",13),v(),s4(),g(4,"strong"),y(5,"Login was not successful!"),v()()()}2&e&&(_(1),M("dismissible",!0))}function vve(e,t){if(1&e&&(g(0,"div",32),a4(),g(1,"svg",33),R(2,"use",34),v(),s4(),g(3,"div"),y(4," Please make sure to restart plugin after you're done. "),g(5,"u",35),y(6," Tell me why... "),v()()()),2&e){A(2);const i=P2(6);_(5),M("autoClose","outside")("ngbPopover",i)}}function _ve(e,t){1&e&&(y(0,"You can leave this field blank."),R(1,"p"),y(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 "),g(3,"a",36),y(4,"this disussion"),v(),y(5," to learn more."))}function Cve(e,t){if(1&e&&(g(0,"option"),y(1),v()),2&e){const i=t.$implicit,n=A(2);W("value",i.short)("selected",n.credentials.country===i.short||null),_(1),J2("",i.long," ")}}function yve(e,t){1&e&&R(0,"span",37)}function Mve(e,t){1&e&&(g(0,"span"),y(1,"..."),v())}function bve(e,t){if(1&e){const i=E1();g(0,"div"),T(1,vve,7,2,"div",14),g(2,"div",15)(3,"input",16),I("ngModelChange",function(r){return Y(i),Z(A().credentials.username=r)}),v(),g(4,"label",17),y(5,"Email address"),v()(),R(6,"p"),g(7,"div",15)(8,"input",18),I("ngModelChange",function(r){return Y(i),Z(A().credentials.password=r)}),v(),g(9,"label",19),y(10,"Password"),v()(),R(11,"p"),g(12,"div",15),T(13,_ve,6,0,"ng-template",null,20,z2),g(15,"input",21),I("ngModelChange",function(r){return Y(i),Z(A().credentials.deviceName=r)}),v(),g(16,"label",22),y(17,"Device Name"),v()(),g(18,"div",23)(19,"div",24)(20,"select",25),I("ngModelChange",function(r){return Y(i),Z(A().credentials.country=r)}),T(21,Cve,2,3,"option",26),v(),g(22,"small")(23,"i"),y(24," Make sure to use the same country that you use to login with the eufy app. "),v()()(),R(25,"span",27),g(26,"div",28)(27,"button",29),I("click",function(){return Y(i),Z(A().login())}),T(28,yve,1,0,"span",30),y(29," Login "),T(30,Mve,2,0,"span",9),v(),g(31,"button",31),I("click",function(){return Y(i),Z(A().cancelLogin())}),y(32," Cancel "),v()()()()}if(2&e){const i=P2(14),n=A();_(1),M("ngIf",!n.firstLoginAssumed),_(2),M("ngModel",n.credentials.username),W("class",n.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),_(5),M("ngModel",n.credentials.password),W("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),_(7),M("ngModel",n.credentials.deviceName)("ngbTooltip",i)("closeDelay",2500),W("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),_(5),M("ngModel",n.credentials.country),W("disabled",!!n.loginInProgress||null),_(1),M("ngForOf",n.countries),_(6),W("disabled",!!n.loginInProgress||null),_(1),M("ngIf",n.loginInProgress),_(2),M("ngIf",n.loginInProgress),_(1),W("disabled",!!n.loginInProgress||null)}}function wve(e,t){1&e&&R(0,"span",37)}function Hve(e,t){1&e&&(g(0,"span"),y(1,"..."),v())}function Vve(e,t){if(1&e){const i=E1();g(0,"div")(1,"div",38),y(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),v(),g(3,"div",6)(4,"div",39)(5,"input",40),I("ngModelChange",function(r){return Y(i),Z(A().otp=r)}),v(),g(6,"label",41),y(7,"2FA Code"),v()()(),g(8,"div",42)(9,"div",43)(10,"button",44),I("click",function(){return Y(i),Z(A().login())}),T(11,wve,1,0,"span",30),y(12," Verify "),T(13,Hve,2,0,"span",9),v()()(),g(14,"div",6)(15,"div",43)(16,"button",31),I("click",function(){return Y(i),Z(A().cancelLogin())}),y(17," Cancel "),v()()()()}if(2&e){const i=A();_(5),M("ngModel",i.otp),W("class",i.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),_(5),W("disabled",!!i.loginInProgress||null),_(1),M("ngIf",i.loginInProgress),_(2),M("ngIf",i.loginInProgress),_(3),W("disabled",!!i.loginInProgress||null)}}function Dve(e,t){1&e&&R(0,"span",37)}function zve(e,t){1&e&&(g(0,"span"),y(1,"..."),v())}function Sve(e,t){if(1&e){const i=E1();g(0,"div")(1,"div",38),y(2,"Please enter the captcha below."),v(),g(3,"div",42),R(4,"img",45),v(),g(5,"div",6)(6,"div",39)(7,"input",40),I("ngModelChange",function(r){return Y(i),Z(A().captcha=r)}),v(),g(8,"label",41),y(9,"Captcha"),v()()(),g(10,"div",42)(11,"div",43)(12,"button",44),I("click",function(){return Y(i),Z(A().login())}),T(13,Dve,1,0,"span",30),y(14," Verify "),T(15,zve,2,0,"span",9),v()()(),g(16,"div",6)(17,"div",43)(18,"button",31),I("click",function(){return Y(i),Z(A().cancelLogin())}),y(19," Cancel "),v()()()()}if(2&e){const i=A();_(4),M("src",i.captchaImageData,y4),_(3),M("ngModel",i.captcha),W("class",i.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),_(5),W("disabled",!!i.loginInProgress||null),_(1),M("ngIf",i.loginInProgress),_(2),M("ngIf",i.loginInProgress),_(3),W("disabled",!!i.loginInProgress||null)}}var _t=function(e){return e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(_t||{});let Lve=(()=>{var e;class t{constructor(n,r){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",_t.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=r}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(hve).forEach(([n,r])=>{this.countries.push({short:n,long:r})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===_t.LOGIN&&this.loginWithCredentials(),this.loginStep===_t.TFA&&this.loginWithTFA(),this.loginStep===_t.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var n=this;return Ve(function*(){let r;try{r=yield n.loginService.login(n.credentials)}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(r)})()}loginWithTFA(){var n=this;return Ve(function*(){let r;try{r=yield n.loginService.login({verifyCode:n.otp})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(r)})()}loginWithCaptcha(){var n=this;return Ve(function*(){let r;try{r=yield n.loginService.login({captcha:{captchaCode:n.captcha,captchaId:n.captchaId}})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(r)})()}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===Su.TFA)return void(this.loginStep=_t.TFA);if(n&&n.failReason&&n.failReason===Su.CAPTCHA&&n.data&&n.data.id&&n.data.captcha)return this.loginStep=_t.CAPTCHA,this.captchaId=n.data.id,void(this.captchaImageData=n.data.captcha);this.loginStep=_t.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let n=!1;return this.loginStep===_t.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,n=!0),this.loginStep===_t.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,n=!0),this.loginStep===_t.TFA&&this.otp.length<6&&(this.otpIsValid=!1,n=!0),this.loginStep===_t.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)(b(pve),b(_2))}),V(t,"\u0275cmp",oe({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,r){1&n&&(a4(),g(0,"svg",0)(1,"symbol",1),R(2,"path",2),v(),g(3,"symbol",3),R(4,"path",4),v()(),T(5,mve,4,0,"ng-template",null,5,z2),s4(),g(7,"div",6),T(8,gve,6,1,"p",7),g(9,"div",8),T(10,bve,33,19,"div",9),T(11,Vve,18,7,"div",9),T(12,Sve,20,8,"div",9),v()()),2&n&&(_(8),M("ngIf",r.loginFailed),_(2),M("ngIf",1===r.loginStep),_(1),M("ngIf",2===r.loginStep),_(1),M("ngIf",3===r.loginStep))},dependencies:[Jt,I1,v3,_3,Un,Cn,V1,a5,y1,aC,aK,hK],encapsulation:2})),t})(),xve=(()=>{var e;class t extends S1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",[])}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){const r=yield n.getStationConfig(n.accessory?.uniqueId||"");r&&Array.isArray(r.manualTriggerModes)&&(n.value=r.manualTriggerModes)})()}toggle(n){-1!==this.value.indexOf(n)?this.value=this.value.filter(r=>r!==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)(b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0)(1,"span",1),y(2,"Manual Alarm Trigger Modes"),v(),g(3,"div",2)(4,"span"),y(5,"HomeKit Home"),v(),g(6,"div",3)(7,"input",4),I("change",function(){return r.toggle(0),r.update()}),v()()(),g(8,"div",2)(9,"span"),y(10,"HomeKit Away"),v(),g(11,"div",3)(12,"input",4),I("change",function(){return r.toggle(1),r.update()}),v()()(),g(13,"div",2)(14,"span"),y(15,"HomeKit Night"),v(),g(16,"div",3)(17,"input",4),I("change",function(){return r.toggle(2),r.update()}),v()()(),g(18,"div",2)(19,"span"),y(20,"HomeKit Off/Disarmed"),v(),g(21,"div",3)(22,"input",4),I("change",function(){return r.toggle(3),r.update()}),v()()(),g(23,"small")(24,"i"),y(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"),y(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),R(28,"p"),y(29," Please be aware that this setting can only be set on a per station basis and not per automation."),R(30,"br"),y(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),R(32,"p"),y(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"),y(35," The native alarm delay setting is currently not supported. "),v()()()),2&n&&(_(7),W("checked",-1!==r.value.indexOf(0)||null),_(5),W("checked",-1!==r.value.indexOf(1)||null),_(5),W("checked",-1!==r.value.indexOf(2)||null),_(5),W("checked",-1!==r.value.indexOf(3)||null))},encapsulation:2})),t})();function Nve(e,t){if(1&e&&(g(0,"div",2)(1,"div",3)(2,"b"),y(3,"Station Settings"),v(),y(4," for "),g(5,"i"),y(6),v()(),g(7,"div",4),R(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),v()()),2&e){const i=A();_(6),B4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),_(2),M("accessory",i.accessory),_(2),M("accessory",i.accessory)}}function Eve(e,t){if(1&e){const i=E1();g(0,"p",7)(1,"ngb-alert",8),I("closed",function(){return Y(i),Z(A().failed=!1)}),a4(),g(2,"svg",9),R(3,"use",10),v(),s4(),g(4,"strong"),y(5,"Reset was not successful!"),v()()()}2&e&&(_(1),M("dismissible",!0))}const Tve=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:age},{path:"advancedConfig",component:Lge},{path:"cameraConfig/:uniqueId",component:dve},{path:"stationConfig/:uniqueId",component:(()=>{var e;class t{constructor(n,r){V(this,"pluginService",void 0),V(this,"route",void 0),V(this,"accessory",void 0),this.pluginService=n,this.route=r}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)(b(r1),b(zn))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"a",0),y(1,"Back to Devices List"),v(),T(2,Nve,11,4,"div",1)),2&n&&(_(2),M("ngIf",r.accessory))},dependencies:[I1,Sn,RL,xve],encapsulation:2})),t})()},{path:"login",component:Lve},{path:"reset",component:(()=>{var e;class t{constructor(n,r){V(this,"routerService",void 0),V(this,"pluginService",void 0),V(this,"disabled",!1),V(this,"failed",!1),this.routerService=n,this.pluginService=r}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var n=this;return Ve(function*(){n.disabled=!0;try{const r=yield window.homebridge.request("/reset");n.failed=1!==r.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)(b(_2),b(r1))}),V(t,"\u0275cmp",oe({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,r){1&n&&(g(0,"div",0),T(1,Eve,6,1,"p",1),g(2,"div",2)(3,"h3",3),y(4,"Are you sure that you want to erase everything?"),v(),g(5,"div",4)(6,"button",5),I("click",function(){return r.cancel()}),y(7,"No"),v(),g(8,"button",6),I("click",function(){return r.resetEverything()}),y(9,"Do it!"),v()()()()),2&n&&(_(1),M("ngIf",r.failed),_(5),W("disabled",!!r.disabled||null),_(2),W("disabled",!!r.disabled||null))},dependencies:[I1,aC],encapsulation:2})),t})()},{path:"**",redirectTo:"/accessories"}];let Ive=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Be({type:e})),V(t,"\u0275inj",Oe({imports:[sb.forRoot(Tve,{scrollPositionRestoration:"enabled"}),sb]})),t})(),Ove=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Be({type:e,bootstrap:[xJ]})),V(t,"\u0275inj",Oe({providers:[{provide:Fn,useClass:Ng}],imports:[HU,Oj,vK,Ive,lZ]})),t})();bU().bootstrapModule(Ove).catch(e=>console.error(e))},919:(j3,$2)=>{"use strict";$2.byteLength=function a1(le){var ye=Ee(le),m1=ye[1];return 3*(ye[0]+m1)/4-m1},$2.toByteArray=function O1(le){var ye,h2,qe=Ee(le),m1=qe[0],w1=qe[1],e1=new f2(function E(le,ye,qe){return 3*(ye+qe)/4-qe}(0,m1,w1)),d2=0,st=w1>0?m1-4:m1;for(h2=0;h2<st;h2+=4)ye=Q[le.charCodeAt(h2)]<<18|Q[le.charCodeAt(h2+1)]<<12|Q[le.charCodeAt(h2+2)]<<6|Q[le.charCodeAt(h2+3)],e1[d2++]=ye>>16&255,e1[d2++]=ye>>8&255,e1[d2++]=255&ye;return 2===w1&&(ye=Q[le.charCodeAt(h2)]<<2|Q[le.charCodeAt(h2+1)]>>4,e1[d2++]=255&ye),1===w1&&(ye=Q[le.charCodeAt(h2)]<<10|Q[le.charCodeAt(h2+1)]<<4|Q[le.charCodeAt(h2+2)]>>2,e1[d2++]=ye>>8&255,e1[d2++]=255&ye),e1},$2.fromByteArray=function K1(le){for(var ye,qe=le.length,m1=qe%3,w1=[],d2=0,st=qe-m1;d2<st;d2+=16383)w1.push(R1(le,d2,d2+16383>st?st:d2+16383));return 1===m1?w1.push(u1[(ye=le[qe-1])>>2]+u1[ye<<4&63]+"=="):2===m1&&w1.push(u1[(ye=(le[qe-2]<<8)+le[qe-1])>>10]+u1[ye>>4&63]+u1[ye<<2&63]+"="),w1.join("")};for(var u1=[],Q=[],f2=typeof Uint8Array<"u"?Uint8Array:Array,b1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xe=0;Xe<64;++Xe)u1[Xe]=b1[Xe],Q[b1.charCodeAt(Xe)]=Xe;function Ee(le){var ye=le.length;if(ye%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var qe=le.indexOf("=");return-1===qe&&(qe=ye),[qe,qe===ye?0:4-qe%4]}function s1(le){return u1[le>>18&63]+u1[le>>12&63]+u1[le>>6&63]+u1[63&le]}function R1(le,ye,qe){for(var w1=[],e1=ye;e1<qe;e1+=3)w1.push(s1((le[e1]<<16&16711680)+(le[e1+1]<<8&65280)+(255&le[e1+2])));return w1.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63},7:(j3,$2,u1)=>{"use strict";var f2=u1(919),b1=u1(601),Xe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;$2.lW=E,$2.h2=50;var De=2147483647;function a1(C){if(C>De)throw new RangeError('The value "'+C+'" is invalid for option "size"');var d=new Uint8Array(C);return Object.setPrototypeOf(d,E.prototype),d}function E(C,d,h){if("number"==typeof C){if("string"==typeof d)throw new TypeError('The "string" argument must be of type string. Received type number');return K1(C)}return O1(C,d,h)}function O1(C,d,h){if("string"==typeof C)return function le(C,d){if(("string"!=typeof d||""===d)&&(d="utf8"),!E.isEncoding(d))throw new TypeError("Unknown encoding: "+d);var h=0|st(C,d),w=a1(h),L=w.write(C,d);return L!==h&&(w=w.slice(0,L)),w}(C,d);if(ArrayBuffer.isView(C))return function qe(C){if(ot(C,Uint8Array)){var d=new Uint8Array(C);return m1(d.buffer,d.byteOffset,d.byteLength)}return ye(C)}(C);if(null==C)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(ot(C,ArrayBuffer)||C&&ot(C.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ot(C,SharedArrayBuffer)||C&&ot(C.buffer,SharedArrayBuffer)))return m1(C,d,h);if("number"==typeof C)throw new TypeError('The "value" argument must not be of type number. Received type number');var w=C.valueOf&&C.valueOf();if(null!=w&&w!==C)return E.from(w,d,h);var L=function w1(C){if(E.isBuffer(C)){var d=0|e1(C.length),h=a1(d);return 0===h.length||C.copy(h,0,0,d),h}return void 0!==C.length?"number"!=typeof C.length||Hi(C.length)?a1(0):ye(C):"Buffer"===C.type&&Array.isArray(C.data)?ye(C.data):void 0}(C);if(L)return L;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof C[Symbol.toPrimitive])return E.from(C[Symbol.toPrimitive]("string"),d,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}function s1(C){if("number"!=typeof C)throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function K1(C){return s1(C),a1(C<0?0:0|e1(C))}function ye(C){for(var d=C.length<0?0:0|e1(C.length),h=a1(d),w=0;w<d;w+=1)h[w]=255&C[w];return h}function m1(C,d,h){if(d<0||C.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<d+(h||0))throw new RangeError('"length" is outside of buffer bounds');var w;return w=void 0===d&&void 0===h?new Uint8Array(C):void 0===h?new Uint8Array(C,d):new Uint8Array(C,d,h),Object.setPrototypeOf(w,E.prototype),w}function e1(C){if(C>=De)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De.toString(16)+" bytes");return 0|C}function st(C,d){if(E.isBuffer(C))return C.length;if(ArrayBuffer.isView(C)||ot(C,ArrayBuffer))return C.byteLength;if("string"!=typeof C)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);var h=C.length,w=arguments.length>2&&!0===arguments[2];if(!w&&0===h)return 0;for(var L=!1;;)switch(d){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Me(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return $3(C).length;default:if(L)return w?-1:Me(C).length;d=(""+d).toLowerCase(),L=!0}}function h2(C,d,h){var w=!1;if((void 0===d||d<0)&&(d=0),d>this.length||((void 0===h||h>this.length)&&(h=this.length),h<=0)||(h>>>=0)<=(d>>>=0))return"";for(C||(C="utf8");;)switch(C){case"hex":return h6(this,d,h);case"utf8":case"utf-8":return Ea(this,d,h);case"ascii":return Ta(this,d,h);case"latin1":case"binary":return d6(this,d,h);case"base64":return yt(this,d,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p6(this,d,h);default:if(w)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),w=!0}}function Ct(C,d,h){var w=C[d];C[d]=C[h],C[h]=w}function Aa(C,d,h,w,L){if(0===C.length)return-1;if("string"==typeof h?(w=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),Hi(h=+h)&&(h=L?0:C.length-1),h<0&&(h=C.length+h),h>=C.length){if(L)return-1;h=C.length-1}else if(h<0){if(!L)return-1;h=0}if("string"==typeof d&&(d=E.from(d,w)),E.isBuffer(d))return 0===d.length?-1:xn(C,d,h,w,L);if("number"==typeof d)return d&=255,"function"==typeof Uint8Array.prototype.indexOf?L?Uint8Array.prototype.indexOf.call(C,d,h):Uint8Array.prototype.lastIndexOf.call(C,d,h):xn(C,[d],h,w,L);throw new TypeError("val must be string, number or Buffer")}function xn(C,d,h,w,L){var Ye,P=1,U=C.length,ze=d.length;if(void 0!==w&&("ucs2"===(w=String(w).toLowerCase())||"ucs-2"===w||"utf16le"===w||"utf-16le"===w)){if(C.length<2||d.length<2)return-1;P=2,U/=2,ze/=2,h/=2}function Ie(Mt,Vi){return 1===P?Mt[Vi]:Mt.readUInt16BE(Vi*P)}if(L){var Y1=-1;for(Ye=h;Ye<U;Ye++)if(Ie(C,Ye)===Ie(d,-1===Y1?0:Ye-Y1)){if(-1===Y1&&(Y1=Ye),Ye-Y1+1===ze)return Y1*P}else-1!==Y1&&(Ye-=Ye-Y1),Y1=-1}else for(h+ze>U&&(h=U-ze),Ye=h;Ye>=0;Ye--){for(var d1=!0,q3=0;q3<ze;q3++)if(Ie(C,Ye+q3)!==Ie(d,q3)){d1=!1;break}if(d1)return Ye}return-1}function G3(C,d,h,w){h=Number(h)||0;var L=C.length-h;w?(w=Number(w))>L&&(w=L):w=L;var P=d.length;w>P/2&&(w=P/2);for(var U=0;U<w;++U){var ze=parseInt(d.substr(2*U,2),16);if(Hi(ze))return U;C[h+U]=ze}return U}function u6(C,d,h,w){return W3(Me(d,C.length-h),C,h,w)}function Ci(C,d,h,w){return W3(function wi(C){for(var d=[],h=0;h<C.length;++h)d.push(255&C.charCodeAt(h));return d}(d),C,h,w)}function f6(C,d,h,w){return W3($3(d),C,h,w)}function yi(C,d,h,w){return W3(function g6(C,d){for(var h,w,P=[],U=0;U<C.length&&!((d-=2)<0);++U)w=(h=C.charCodeAt(U))>>8,P.push(h%256),P.push(w);return P}(d,C.length-h),C,h,w)}function yt(C,d,h){return f2.fromByteArray(0===d&&h===C.length?C:C.slice(d,h))}function Ea(C,d,h){h=Math.min(C.length,h);for(var w=[],L=d;L<h;){var Ie,Ye,Y1,d1,P=C[L],U=null,ze=P>239?4:P>223?3:P>191?2:1;if(L+ze<=h)switch(ze){case 1:P<128&&(U=P);break;case 2:128==(192&(Ie=C[L+1]))&&(d1=(31&P)<<6|63&Ie)>127&&(U=d1);break;case 3:Ye=C[L+2],128==(192&(Ie=C[L+1]))&&128==(192&Ye)&&(d1=(15&P)<<12|(63&Ie)<<6|63&Ye)>2047&&(d1<55296||d1>57343)&&(U=d1);break;case 4:Ye=C[L+2],Y1=C[L+3],128==(192&(Ie=C[L+1]))&&128==(192&Ye)&&128==(192&Y1)&&(d1=(15&P)<<18|(63&Ie)<<12|(63&Ye)<<6|63&Y1)>65535&&d1<1114112&&(U=d1)}null===U?(U=65533,ze=1):U>65535&&(w.push((U-=65536)>>>10&1023|55296),U=56320|1023&U),w.push(U),L+=ze}return function We(C){var d=C.length;if(d<=Mi)return String.fromCharCode.apply(String,C);for(var h="",w=0;w<d;)h+=String.fromCharCode.apply(String,C.slice(w,w+=Mi));return h}(w)}!(E.TYPED_ARRAY_SUPPORT=function Ee(){try{var C=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(C,d),42===C.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(C,d,h){return O1(C,d,h)},Object.setPrototypeOf(E.prototype,Uint8Array.prototype),Object.setPrototypeOf(E,Uint8Array),E.alloc=function(C,d,h){return function R1(C,d,h){return s1(C),C<=0?a1(C):void 0!==d?"string"==typeof h?a1(C).fill(d,h):a1(C).fill(d):a1(C)}(C,d,h)},E.allocUnsafe=function(C){return K1(C)},E.allocUnsafeSlow=function(C){return K1(C)},E.isBuffer=function(d){return null!=d&&!0===d._isBuffer&&d!==E.prototype},E.compare=function(d,h){if(ot(d,Uint8Array)&&(d=E.from(d,d.offset,d.byteLength)),ot(h,Uint8Array)&&(h=E.from(h,h.offset,h.byteLength)),!E.isBuffer(d)||!E.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===h)return 0;for(var w=d.length,L=h.length,P=0,U=Math.min(w,L);P<U;++P)if(d[P]!==h[P]){w=d[P],L=h[P];break}return w<L?-1:L<w?1:0},E.isEncoding=function(d){switch(String(d).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(d,h){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(0===d.length)return E.alloc(0);var w;if(void 0===h)for(h=0,w=0;w<d.length;++w)h+=d[w].length;var L=E.allocUnsafe(h),P=0;for(w=0;w<d.length;++w){var U=d[w];if(ot(U,Uint8Array))P+U.length>L.length?E.from(U).copy(L,P):Uint8Array.prototype.set.call(L,U,P);else{if(!E.isBuffer(U))throw new TypeError('"list" argument must be an Array of Buffers');U.copy(L,P)}P+=U.length}return L},E.byteLength=st,E.prototype._isBuffer=!0,E.prototype.swap16=function(){var d=this.length;if(d%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<d;h+=2)Ct(this,h,h+1);return this},E.prototype.swap32=function(){var d=this.length;if(d%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<d;h+=4)Ct(this,h,h+3),Ct(this,h+1,h+2);return this},E.prototype.swap64=function(){var d=this.length;if(d%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<d;h+=8)Ct(this,h,h+7),Ct(this,h+1,h+6),Ct(this,h+2,h+5),Ct(this,h+3,h+4);return this},E.prototype.toLocaleString=E.prototype.toString=function(){var d=this.length;return 0===d?"":0===arguments.length?Ea(this,0,d):h2.apply(this,arguments)},E.prototype.equals=function(d){if(!E.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d||0===E.compare(this,d)},E.prototype.inspect=function(){var d="",h=$2.h2;return d=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(d+=" ... "),"<Buffer "+d+">"},Xe&&(E.prototype[Xe]=E.prototype.inspect),E.prototype.compare=function(d,h,w,L,P){if(ot(d,Uint8Array)&&(d=E.from(d,d.offset,d.byteLength)),!E.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(void 0===h&&(h=0),void 0===w&&(w=d?d.length:0),void 0===L&&(L=0),void 0===P&&(P=this.length),h<0||w>d.length||L<0||P>this.length)throw new RangeError("out of range index");if(L>=P&&h>=w)return 0;if(L>=P)return-1;if(h>=w)return 1;if(this===d)return 0;for(var U=(P>>>=0)-(L>>>=0),ze=(w>>>=0)-(h>>>=0),Ie=Math.min(U,ze),Ye=this.slice(L,P),Y1=d.slice(h,w),d1=0;d1<Ie;++d1)if(Ye[d1]!==Y1[d1]){U=Ye[d1],ze=Y1[d1];break}return U<ze?-1:ze<U?1:0},E.prototype.includes=function(d,h,w){return-1!==this.indexOf(d,h,w)},E.prototype.indexOf=function(d,h,w){return Aa(this,d,h,w,!0)},E.prototype.lastIndexOf=function(d,h,w){return Aa(this,d,h,w,!1)},E.prototype.write=function(d,h,w,L){if(void 0===h)L="utf8",w=this.length,h=0;else if(void 0===w&&"string"==typeof h)L=h,w=this.length,h=0;else{if(!isFinite(h))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");h>>>=0,isFinite(w)?(w>>>=0,void 0===L&&(L="utf8")):(L=w,w=void 0)}var P=this.length-h;if((void 0===w||w>P)&&(w=P),d.length>0&&(w<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");for(var U=!1;;)switch(L){case"hex":return G3(this,d,h,w);case"utf8":case"utf-8":return u6(this,d,h,w);case"ascii":case"latin1":case"binary":return Ci(this,d,h,w);case"base64":return f6(this,d,h,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yi(this,d,h,w);default:if(U)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),U=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Mi=4096;function Ta(C,d,h){var w="";h=Math.min(C.length,h);for(var L=d;L<h;++L)w+=String.fromCharCode(127&C[L]);return w}function d6(C,d,h){var w="";h=Math.min(C.length,h);for(var L=d;L<h;++L)w+=String.fromCharCode(C[L]);return w}function h6(C,d,h){var w=C.length;(!d||d<0)&&(d=0),(!h||h<0||h>w)&&(h=w);for(var L="",P=d;P<h;++P)L+=Eu[C[P]];return L}function p6(C,d,h){for(var w=C.slice(d,h),L="",P=0;P<w.length-1;P+=2)L+=String.fromCharCode(w[P]+256*w[P+1]);return L}function he(C,d,h){if(C%1!=0||C<0)throw new RangeError("offset is not uint");if(C+d>h)throw new RangeError("Trying to access beyond buffer length")}function r2(C,d,h,w,L,P){if(!E.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>L||d<P)throw new RangeError('"value" argument is out of bounds');if(h+w>C.length)throw new RangeError("Index out of range")}function C2(C,d,h,w,L,P){if(h+w>C.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function bi(C,d,h,w,L){return d=+d,h>>>=0,L||C2(C,0,h,4),b1.write(C,d,h,w,23,4),h+4}function f1(C,d,h,w,L){return d=+d,h>>>=0,L||C2(C,0,h,8),b1.write(C,d,h,w,52,8),h+8}E.prototype.slice=function(d,h){var w=this.length;(d=~~d)<0?(d+=w)<0&&(d=0):d>w&&(d=w),(h=void 0===h?w:~~h)<0?(h+=w)<0&&(h=0):h>w&&(h=w),h<d&&(h=d);var L=this.subarray(d,h);return Object.setPrototypeOf(L,E.prototype),L},E.prototype.readUintLE=E.prototype.readUIntLE=function(d,h,w){d>>>=0,h>>>=0,w||he(d,h,this.length);for(var L=this[d],P=1,U=0;++U<h&&(P*=256);)L+=this[d+U]*P;return L},E.prototype.readUintBE=E.prototype.readUIntBE=function(d,h,w){d>>>=0,h>>>=0,w||he(d,h,this.length);for(var L=this[d+--h],P=1;h>0&&(P*=256);)L+=this[d+--h]*P;return L},E.prototype.readUint8=E.prototype.readUInt8=function(d,h){return d>>>=0,h||he(d,1,this.length),this[d]},E.prototype.readUint16LE=E.prototype.readUInt16LE=function(d,h){return d>>>=0,h||he(d,2,this.length),this[d]|this[d+1]<<8},E.prototype.readUint16BE=E.prototype.readUInt16BE=function(d,h){return d>>>=0,h||he(d,2,this.length),this[d]<<8|this[d+1]},E.prototype.readUint32LE=E.prototype.readUInt32LE=function(d,h){return d>>>=0,h||he(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+16777216*this[d+3]},E.prototype.readUint32BE=E.prototype.readUInt32BE=function(d,h){return d>>>=0,h||he(d,4,this.length),16777216*this[d]+(this[d+1]<<16|this[d+2]<<8|this[d+3])},E.prototype.readIntLE=function(d,h,w){d>>>=0,h>>>=0,w||he(d,h,this.length);for(var L=this[d],P=1,U=0;++U<h&&(P*=256);)L+=this[d+U]*P;return L>=(P*=128)&&(L-=Math.pow(2,8*h)),L},E.prototype.readIntBE=function(d,h,w){d>>>=0,h>>>=0,w||he(d,h,this.length);for(var L=h,P=1,U=this[d+--L];L>0&&(P*=256);)U+=this[d+--L]*P;return U>=(P*=128)&&(U-=Math.pow(2,8*h)),U},E.prototype.readInt8=function(d,h){return d>>>=0,h||he(d,1,this.length),128&this[d]?-1*(255-this[d]+1):this[d]},E.prototype.readInt16LE=function(d,h){d>>>=0,h||he(d,2,this.length);var w=this[d]|this[d+1]<<8;return 32768&w?4294901760|w:w},E.prototype.readInt16BE=function(d,h){d>>>=0,h||he(d,2,this.length);var w=this[d+1]|this[d]<<8;return 32768&w?4294901760|w:w},E.prototype.readInt32LE=function(d,h){return d>>>=0,h||he(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},E.prototype.readInt32BE=function(d,h){return d>>>=0,h||he(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},E.prototype.readFloatLE=function(d,h){return d>>>=0,h||he(d,4,this.length),b1.read(this,d,!0,23,4)},E.prototype.readFloatBE=function(d,h){return d>>>=0,h||he(d,4,this.length),b1.read(this,d,!1,23,4)},E.prototype.readDoubleLE=function(d,h){return d>>>=0,h||he(d,8,this.length),b1.read(this,d,!0,52,8)},E.prototype.readDoubleBE=function(d,h){return d>>>=0,h||he(d,8,this.length),b1.read(this,d,!1,52,8)},E.prototype.writeUintLE=E.prototype.writeUIntLE=function(d,h,w,L){d=+d,h>>>=0,w>>>=0,L||r2(this,d,h,w,Math.pow(2,8*w)-1,0);var U=1,ze=0;for(this[h]=255&d;++ze<w&&(U*=256);)this[h+ze]=d/U&255;return h+w},E.prototype.writeUintBE=E.prototype.writeUIntBE=function(d,h,w,L){d=+d,h>>>=0,w>>>=0,L||r2(this,d,h,w,Math.pow(2,8*w)-1,0);var U=w-1,ze=1;for(this[h+U]=255&d;--U>=0&&(ze*=256);)this[h+U]=d/ze&255;return h+w},E.prototype.writeUint8=E.prototype.writeUInt8=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,1,255,0),this[h]=255&d,h+1},E.prototype.writeUint16LE=E.prototype.writeUInt16LE=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,2,65535,0),this[h]=255&d,this[h+1]=d>>>8,h+2},E.prototype.writeUint16BE=E.prototype.writeUInt16BE=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,2,65535,0),this[h]=d>>>8,this[h+1]=255&d,h+2},E.prototype.writeUint32LE=E.prototype.writeUInt32LE=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,4,4294967295,0),this[h+3]=d>>>24,this[h+2]=d>>>16,this[h+1]=d>>>8,this[h]=255&d,h+4},E.prototype.writeUint32BE=E.prototype.writeUInt32BE=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,4,4294967295,0),this[h]=d>>>24,this[h+1]=d>>>16,this[h+2]=d>>>8,this[h+3]=255&d,h+4},E.prototype.writeIntLE=function(d,h,w,L){if(d=+d,h>>>=0,!L){var P=Math.pow(2,8*w-1);r2(this,d,h,w,P-1,-P)}var U=0,ze=1,Ie=0;for(this[h]=255&d;++U<w&&(ze*=256);)d<0&&0===Ie&&0!==this[h+U-1]&&(Ie=1),this[h+U]=(d/ze>>0)-Ie&255;return h+w},E.prototype.writeIntBE=function(d,h,w,L){if(d=+d,h>>>=0,!L){var P=Math.pow(2,8*w-1);r2(this,d,h,w,P-1,-P)}var U=w-1,ze=1,Ie=0;for(this[h+U]=255&d;--U>=0&&(ze*=256);)d<0&&0===Ie&&0!==this[h+U+1]&&(Ie=1),this[h+U]=(d/ze>>0)-Ie&255;return h+w},E.prototype.writeInt8=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,1,127,-128),d<0&&(d=255+d+1),this[h]=255&d,h+1},E.prototype.writeInt16LE=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,2,32767,-32768),this[h]=255&d,this[h+1]=d>>>8,h+2},E.prototype.writeInt16BE=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,2,32767,-32768),this[h]=d>>>8,this[h+1]=255&d,h+2},E.prototype.writeInt32LE=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,4,2147483647,-2147483648),this[h]=255&d,this[h+1]=d>>>8,this[h+2]=d>>>16,this[h+3]=d>>>24,h+4},E.prototype.writeInt32BE=function(d,h,w){return d=+d,h>>>=0,w||r2(this,d,h,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[h]=d>>>24,this[h+1]=d>>>16,this[h+2]=d>>>8,this[h+3]=255&d,h+4},E.prototype.writeFloatLE=function(d,h,w){return bi(this,d,h,!0,w)},E.prototype.writeFloatBE=function(d,h,w){return bi(this,d,h,!1,w)},E.prototype.writeDoubleLE=function(d,h,w){return f1(this,d,h,!0,w)},E.prototype.writeDoubleBE=function(d,h,w){return f1(this,d,h,!1,w)},E.prototype.copy=function(d,h,w,L){if(!E.isBuffer(d))throw new TypeError("argument should be a Buffer");if(w||(w=0),!L&&0!==L&&(L=this.length),h>=d.length&&(h=d.length),h||(h=0),L>0&&L<w&&(L=w),L===w||0===d.length||0===this.length)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),d.length-h<L-w&&(L=d.length-h+w);var P=L-w;return this===d&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,w,L):Uint8Array.prototype.set.call(d,this.subarray(w,L),h),P},E.prototype.fill=function(d,h,w,L){if("string"==typeof d){if("string"==typeof h?(L=h,h=0,w=this.length):"string"==typeof w&&(L=w,w=this.length),void 0!==L&&"string"!=typeof L)throw new TypeError("encoding must be a string");if("string"==typeof L&&!E.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(1===d.length){var P=d.charCodeAt(0);("utf8"===L&&P<128||"latin1"===L)&&(d=P)}}else"number"==typeof d?d&=255:"boolean"==typeof d&&(d=Number(d));if(h<0||this.length<h||this.length<w)throw new RangeError("Out of range index");if(w<=h)return this;var U;if(h>>>=0,w=void 0===w?this.length:w>>>0,d||(d=0),"number"==typeof d)for(U=h;U<w;++U)this[U]=d;else{var ze=E.isBuffer(d)?d:E.from(d,L),Ie=ze.length;if(0===Ie)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(U=0;U<w-h;++U)this[U+h]=ze[U%Ie]}return this};var Ke=/[^+/0-9A-Za-z-_]/g;function Me(C,d){d=d||1/0;for(var h,w=C.length,L=null,P=[],U=0;U<w;++U){if((h=C.charCodeAt(U))>55295&&h<57344){if(!L){if(h>56319){(d-=3)>-1&&P.push(239,191,189);continue}if(U+1===w){(d-=3)>-1&&P.push(239,191,189);continue}L=h;continue}if(h<56320){(d-=3)>-1&&P.push(239,191,189),L=h;continue}h=65536+(L-55296<<10|h-56320)}else L&&(d-=3)>-1&&P.push(239,191,189);if(L=null,h<128){if((d-=1)<0)break;P.push(h)}else if(h<2048){if((d-=2)<0)break;P.push(h>>6|192,63&h|128)}else if(h<65536){if((d-=3)<0)break;P.push(h>>12|224,h>>6&63|128,63&h|128)}else{if(!(h<1114112))throw new Error("Invalid code point");if((d-=4)<0)break;P.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return P}function $3(C){return f2.toByteArray(function m6(C){if((C=(C=C.split("=")[0]).trim().replace(Ke,"")).length<2)return"";for(;C.length%4!=0;)C+="=";return C}(C))}function W3(C,d,h,w){for(var L=0;L<w&&!(L+h>=d.length||L>=C.length);++L)d[L+h]=C[L];return L}function ot(C,d){return C instanceof d||null!=C&&null!=C.constructor&&null!=C.constructor.name&&C.constructor.name===d.name}function Hi(C){return C!=C}var Eu=function(){for(var C="0123456789abcdef",d=new Array(256),h=0;h<16;++h)for(var w=16*h,L=0;L<16;++L)d[w+L]=C[h]+C[L];return d}()},601:(j3,$2)=>{$2.read=function(u1,Q,f2,b1,Xe){var De,Ee,a1=8*Xe-b1-1,E=(1<<a1)-1,O1=E>>1,s1=-7,R1=f2?Xe-1:0,K1=f2?-1:1,le=u1[Q+R1];for(R1+=K1,De=le&(1<<-s1)-1,le>>=-s1,s1+=a1;s1>0;De=256*De+u1[Q+R1],R1+=K1,s1-=8);for(Ee=De&(1<<-s1)-1,De>>=-s1,s1+=b1;s1>0;Ee=256*Ee+u1[Q+R1],R1+=K1,s1-=8);if(0===De)De=1-O1;else{if(De===E)return Ee?NaN:1/0*(le?-1:1);Ee+=Math.pow(2,b1),De-=O1}return(le?-1:1)*Ee*Math.pow(2,De-b1)},$2.write=function(u1,Q,f2,b1,Xe,De){var Ee,a1,E,O1=8*De-Xe-1,s1=(1<<O1)-1,R1=s1>>1,K1=23===Xe?Math.pow(2,-24)-Math.pow(2,-77):0,le=b1?0:De-1,ye=b1?1:-1,qe=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+R1>=1?K1/E:K1*Math.pow(2,1-R1))*E>=2&&(Ee++,E/=2),Ee+R1>=s1?(a1=0,Ee=s1):Ee+R1>=1?(a1=(Q*E-1)*Math.pow(2,Xe),Ee+=R1):(a1=Q*Math.pow(2,R1-1)*Math.pow(2,Xe),Ee=0));Xe>=8;u1[f2+le]=255&a1,le+=ye,a1/=256,Xe-=8);for(Ee=Ee<<Xe|a1,O1+=Xe;O1>0;u1[f2+le]=255&Ee,le+=ye,Ee/=256,O1-=8);u1[f2+le-ye]|=128*qe}}},j3=>{j3(j3.s=841)}]);