homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge.
4 lines • 1.33 MB
JavaScript
var p=Object.create;var h$1=Object.defineProperty,q$5=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$1=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$8=Object.prototype.hasOwnProperty,m$5=Object.prototype.propertyIsEnumerable;var l=(a,b,c)=>b in a?h$1(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,w$3=(a,b)=>{for(var c in b||={})k$8.call(b,c)&&l(a,c,b[c]);if(g$1)for(var c of g$1(b))m$5.call(b,c)&&l(a,c,b[c]);return a},x$7=(a,b)=>q$5(a,s(b));var y$2=a=>b=>{var c=a[b];if(c)return c();throw new Error("Module not found in bundle: "+b)},z$5=a=>typeof a=="symbol"?a:a+"",A$3=(a,b)=>{var c={};for(var d in a)k$8.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g$1)for(var d of g$1(a))b.indexOf(d)<0&&m$5.call(a,d)&&(c[d]=a[d]);return c};var B$7=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}},C$4=(a,b)=>{for(var c in b)h$1(a,c,{get:b[c],enumerable:true});},v$5=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of t(b))!k$8.call(a,e)&&e!==c&&h$1(a,e,{get:()=>b[e],enumerable:!(d=r(b,e))||d.enumerable});return a};var D$4=(a,b,c)=>(c=a!=null?p(u(a)):{},v$5(h$1(c,"default",{value:a,enumerable:true}),a));var E$3=(a,b,c)=>new Promise((d,e)=>{var n=f=>{try{i(c.next(f));}catch(j){e(j);}},o=f=>{try{i(c.throw(f));}catch(j){e(j);}},i=f=>f.done?d(f.value):Promise.resolve(f.value).then(n,o);i((c=c.apply(a,b)).next());});function T$6(e){return typeof e=="function"}function br$3(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack;});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Qi$3=br$3(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=n;});function Rn$3(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ce$5=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(T$6(r))try{r();}catch(i){t=i instanceof Qi$3?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Rf$2(i);}catch(s){t=t??[],s instanceof Qi$3?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Qi$3(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Rf$2(t);else {if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this);}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t);}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t;}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Rn$3(n,t);}remove(t){let{_finalizers:n}=this;n&&Rn$3(n,t),t instanceof e&&t._removeParent(this);}};ce$5.EMPTY=(()=>{let e=new ce$5;return e.closed=true,e})();var Pc$2=ce$5.EMPTY;function Ji$4(e){return e instanceof ce$5||e&&"closed"in e&&T$6(e.remove)&&T$6(e.add)&&T$6(e.unsubscribe)}function Rf$2(e){T$6(e)?e():e.unsubscribe();}var ot$6={Promise:void 0};var Tr$4={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function Xi$4(e){Tr$4.setTimeout(()=>{throw e});}function Lt$5(){}function _r$3(e){e();}var kn$4=class kn extends ce$5{constructor(t){super(),this.isStopped=false,t?(this.destination=t,Ji$4(t)&&t.add(this)):this.destination=ED$1;}static create(t,n,r){return new it$4(t,n,r)}next(t){this.isStopped?Vc$1():this._next(t);}error(t){this.isStopped?Vc$1():(this.isStopped=true,this._error(t));}complete(){this.isStopped?Vc$1():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,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();}}};var Hc$1=class Hc{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){es$2(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){es$2(r);}else es$2(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){es$2(n);}}},it$4=class it extends kn$4{constructor(t,n,r){super();let o;if(T$6(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new Hc$1(o);}};function es$2(e){Xi$4(e);}function DD$1(e){throw e}function Vc$1(e,t){}var ED$1={closed:true,next:Lt$5,error:DD$1,complete:Lt$5};var Sr$4=typeof Symbol=="function"&&Symbol.observable||"@@observable";function De$4(e){return e}function ID$1(...e){return Uc$1(e)}function Uc$1(e){return e.length===0?De$4:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var x$6=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=CD$1(n)?n:new it$4(n,r,o);return _r$3(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i));}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r);}}forEach(n,r){return r=Pf$2(r),new r((o,i)=>{let s=new it$4({next:a=>{try{n(a);}catch(c){i(c),s.unsubscribe();}},error:i,complete:o});this.subscribe(s);})}_subscribe(n){var r;return (r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Sr$4](){return this}pipe(...n){return Uc$1(n)(this)}toPromise(n){return n=Pf$2(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i));})}}return e.create=t=>new e(t),e})();function Pf$2(e){var t;return (t=e??ot$6.Promise)!==null&&t!==void 0?t:Promise}function wD$1(e){return e&&T$6(e.next)&&T$6(e.error)&&T$6(e.complete)}function CD$1(e){return e&&e instanceof kn$4||wD$1(e)&&Ji$4(e)}var jf$2=br$3(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var $$5=(()=>{class e extends x$6{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new ts$2(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new jf$2}next(n){_r$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){_r$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){_r$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,this.observers=this.currentObservers=null;}get observed(){var n;return ((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Pc$2:(this.currentObservers=null,i.push(n),new ce$5(()=>{this.currentObservers=null,Rn$3(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new x$6;return n.source=this,n}}return e.create=(t,n)=>new ts$2(t,n),e})(),ts$2=class ts extends $$5{constructor(t,n){super(),this.destination=t,this.source=n;}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t);}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t);}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t);}_subscribe(t){var n,r;return (r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Pc$2}};var Pt$4=br$3(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function Fn$3(e,t){return new Promise((r,o)=>{let i=new it$4({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{o(new Pt$4);}});e.subscribe(i);})}function bD$1(e){return T$6(e?.lift)}function A$2(e){return t=>{if(bD$1(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r);}});throw new TypeError("Unable to lift unknown Observable type")}}function M$1(e,t,n,r,o){return new $c$2(e,t,n,r,o)}var $c$2=class $c extends kn$4{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function pe$2(e,t){return A$2((n,r)=>{let o=0;n.subscribe(M$1(r,i=>{r.next(e.call(t,i,o++));}));})}var ns$3=class ns extends ce$5{constructor(t,n){super();}schedule(t,n=0){return this}};var wo$3={setInterval(e,t,...n){let{delegate:r}=wo$3;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var Mr$3=class Mr extends ns$3{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return wo$3.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&wo$3.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,Rn$3(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Co$4={now(){return (Co$4.delegate||Date).now()},delegate:void 0};var Nr$4=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Nr$4.now=Co$4.now;var xr$3=class xr extends Nr$4{constructor(t,n=Nr$4.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var jt$3=new xr$3(Mr$3),Bf$1=jt$3;function rs$3(e){return e&&T$6(e.schedule)}function Vf$2(e){return e instanceof Date&&!isNaN(e)}function Ln$4(e=0,t,n=Bf$1){let r=-1;return t!=null&&(rs$3(t)?n=t:r=t),new x$6(o=>{let i=Vf$2(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function TD$1(e=0,t=jt$3){return e<0&&(e=0),Ln$4(e,e,t)}function Hf$1(e,t=jt$3){return A$2((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u);}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a();}n.subscribe(M$1(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function Uf$2(e,t=De$4){return e=e??_D$1,A$2((n,r)=>{let o,i=!0;n.subscribe(M$1(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function _D$1(e,t){return e===t}function zf$2(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l));}catch(d){s(d);}}function c(l){try{u(r.throw(l));}catch(d){s(d);}}function u(l){l.done?i(l.value):o(l.value).then(a,c);}u((r=r.apply(e,[])).next());})}function $f$1(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pn$3(e){return this instanceof Pn$3?(this.v=e,this):new Pn$3(e)}function Gf$2(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(y){return new Promise(function(v,D){i.push([f,y,v,D])>1||c(f,y);})},h&&(o[f]=h(o[f])));}function c(f,h){try{u(r[f](h));}catch(y){p(i[0][3],y);}}function u(f){f.value instanceof Pn$3?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f);}function l(f){c("next",f);}function d(f){c("throw",f);}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function Wf$1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof $f$1=="function"?$f$1(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value);})};}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a});},s);}}var Ar$4=e=>e&&typeof e.length=="number"&&typeof e!="function";function os$3(e){return T$6(e?.then)}function is$3(e){return T$6(e[Sr$4])}function ss$3(e){return Symbol.asyncIterator&&T$6(e?.[Symbol.asyncIterator])}function as$3(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function SD$1(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var cs$2=SD$1();function us$2(e){return T$6(e?.[cs$2])}function ls$3(e){return Gf$2(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Pn$3(n.read());if(o)return yield Pn$3(void 0);yield yield Pn$3(r);}}finally{n.releaseLock();}})}function ds$3(e){return T$6(e?.getReader)}function O$5(e){if(e instanceof x$6)return e;if(e!=null){if(is$3(e))return MD$1(e);if(Ar$4(e))return ND$1(e);if(os$3(e))return xD$1(e);if(ss$3(e))return qf$2(e);if(us$2(e))return AD$1(e);if(ds$3(e))return RD$1(e)}throw as$3(e)}function MD$1(e){return new x$6(t=>{let n=e[Sr$4]();if(T$6(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ND$1(e){return new x$6(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function xD$1(e){return new x$6(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,Xi$4);})}function AD$1(e){return new x$6(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function qf$2(e){return new x$6(t=>{OD$1(e,t).catch(n=>t.error(n));})}function RD$1(e){return qf$2(ls$3(e))}function OD$1(e,t){var n,r,o,i;return zf$2(this,void 0,void 0,function*(){try{for(n=Wf$1(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s};}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n));}finally{if(o)throw o.error}}t.complete();})}function Se$6(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function Zf$1(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,p=()=>{d&&!c.length&&!u&&t.complete();},f=y=>u<r?h(y):c.push(y),h=y=>{u++;let v=false;O$5(n(y,l++)).subscribe(M$1(t,D=>{t.next(D);},()=>{v=true;},void 0,()=>{if(v)try{for(u--;c.length&&u<r;){let D=c.shift();s?Se$6(t,s,()=>h(D)):h(D);}p();}catch(D){t.error(D);}}));};return e.subscribe(M$1(t,f,()=>{d=true,p();})),()=>{}}function st$5(e,t,n=1/0){return T$6(t)?st$5((r,o)=>pe$2((i,s)=>t(r,i,o,s))(O$5(e(r,o))),n):(typeof t=="number"&&(n=t),A$2((r,o)=>Zf$1(r,o,e,n)))}function bo$3(e=1/0){return st$5(De$4,e)}function Yf$1(){return bo$3(1)}function zc$1(e){return e[e.length-1]}function on$5(e){return T$6(zc$1(e))?e.pop():void 0}function It$6(e){return rs$3(zc$1(e))?e.pop():void 0}function Kf$1(e,t){return typeof zc$1(e)=="number"?e.pop():t}function fs$1(e,t=0){return A$2((n,r)=>{n.subscribe(M$1(r,o=>Se$6(r,e,()=>r.next(o),t),()=>Se$6(r,e,()=>r.complete(),t),o=>Se$6(r,e,()=>r.error(o),t)));})}function ps$1(e,t=0){return A$2((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function Qf$1(e,t){return O$5(e).pipe(ps$1(t),fs$1(t))}function Jf$2(e,t){return O$5(e).pipe(ps$1(t),fs$1(t))}function Xf$2(e,t){return new x$6(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function ep$1(e,t){return new x$6(n=>{let r;return Se$6(n,t,()=>{r=e[cs$2](),Se$6(n,t,()=>{let o,i;try{({value:o,done:i}=r.next());}catch(s){n.error(s);return}i?n.complete():n.next(o);},0,true);}),()=>T$6(r?.return)&&r.return()})}function hs$2(e,t){if(!e)throw new Error("Iterable cannot be null");return new x$6(n=>{Se$6(n,t,()=>{let r=e[Symbol.asyncIterator]();Se$6(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function tp$1(e,t){return hs$2(ls$3(e),t)}function np$2(e,t){if(e!=null){if(is$3(e))return Qf$1(e,t);if(Ar$4(e))return Xf$2(e,t);if(os$3(e))return Jf$2(e,t);if(ss$3(e))return hs$2(e,t);if(us$2(e))return ep$1(e,t);if(ds$3(e))return tp$1(e,t)}throw as$3(e)}function wt$6(e,t){return t?np$2(e,t):O$5(e)}function at$5(...e){return Yf$1()(wt$6(e,It$6(e)))}function rp$1(...e){let t=It$6(e);return A$2((n,r)=>{(t?at$5(e,n,t):at$5(e,n)).subscribe(r);})}var Rr$5={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame;let o=t(i=>{n=void 0,e(i);});return new ce$5(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Rr$5;return (t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){return (cancelAnimationFrame)(...e)},delegate:void 0};var To$4=class To extends $$5{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};var Or$2=class Or extends $$5{constructor(t=1/0,n=1/0,r=Co$4){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};var gs$1=class gs extends Mr$3{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Rr$5.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Rr$5.cancelAnimationFrame(n),t._scheduled=void 0);}};var ms$1=class ms extends xr$3{flush(t){this._active=true;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var kD$1=new ms$1(gs$1);var He$4=new x$6(e=>e.complete());function Ue$3(...e){let t=It$6(e);return wt$6(e,t)}function FD$1(e,t){let n=T$6(e)?e:()=>e,r=o=>o.error(n());return new x$6(r)}function jn$3(e){return !!e&&(e instanceof x$6||T$6(e.lift)&&T$6(e.subscribe))}function LD$1(e,t){return new Promise((r,o)=>{let i=false,s;e.subscribe({next:a=>{s=a,i=true;},error:o,complete:()=>{i?r(s):o(new Pt$4);}});})}var{isArray:PD$1}=Array;function jD$1(e,t){return PD$1(t)?e(...t):e(t)}function kr$4(e){return pe$2(t=>jD$1(e,t))}var{isArray:BD$1}=Array,{getPrototypeOf:VD$1,prototype:HD$1,keys:UD$1}=Object;function ys$1(e){if(e.length===1){let t=e[0];if(BD$1(t))return {args:t,keys:null};if($D$1(t)){let n=UD$1(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function $D$1(e){return e&&typeof e=="object"&&VD$1(e)===HD$1}function vs$1(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function zD$1(...e){let t=It$6(e),n=on$5(e),{args:r,keys:o}=ys$1(e);if(r.length===0)return wt$6([],t);let i=new x$6(GD$1(r,t,o?s=>vs$1(o,s):De$4));return n?i.pipe(kr$4(n)):i}function GD$1(e,t,n=De$4){return r=>{op$1(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)op$1(t,()=>{let u=wt$6(e[c],t),l=false;u.subscribe(M$1(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function op$1(e,t,n){e?Se$6(n,e,t):t();}function Ds$1(e){return new x$6(t=>{O$5(e()).subscribe(t);})}function Gc$1(...e){let t=on$5(e),{args:n,keys:r}=ys$1(e),o=new x$6(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=false;O$5(n[l]).subscribe(M$1(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?vs$1(r,a):a),i.complete());}));}});return t?o.pipe(kr$4(t)):o}var WD$1=["addListener","removeListener"],qD$1=["addEventListener","removeEventListener"],ZD$1=["on","off"];function Wc$1(e,t,n,r){if(T$6(n)&&(r=n,n=void 0),r)return Wc$1(e,t,n).pipe(kr$4(r));let[o,i]=QD$1(e)?qD$1.map(s=>a=>e[s](t,a,n)):YD$1(e)?WD$1.map(ip$1(e,t)):KD$1(e)?ZD$1.map(ip$1(e,t)):[];if(!o&&Ar$4(e))return st$5(s=>Wc$1(s,t,n))(O$5(e));if(!o)throw new TypeError("Invalid event target");return new x$6(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function ip$1(e,t){return n=>r=>e[n](t,r)}function YD$1(e){return T$6(e.addListener)&&T$6(e.removeListener)}function KD$1(e){return T$6(e.on)&&T$6(e.off)}function QD$1(e){return T$6(e.addEventListener)&&T$6(e.removeEventListener)}function Fr$3(...e){let t=It$6(e),n=Kf$1(e,1/0),r=e;return r.length?r.length===1?O$5(r[0]):bo$3(n)(wt$6(r,t)):He$4}var{isArray:JD$1}=Array;function Es$1(e){return e.length===1&&JD$1(e[0])?e[0]:e}function Ct$5(e,t){return A$2((n,r)=>{let o=0;n.subscribe(M$1(r,i=>e.call(t,i,o++)&&r.next(i)));})}function XD$1(...e){return e=Es$1(e),e.length===1?O$5(e[0]):new x$6(eE$1(e))}function eE$1(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r<e.length;r++)n.push(O$5(e[r]).subscribe(M$1(t,o=>{if(n){for(let i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null;}t.next(o);})));}}function tE$1(...e){let t=on$5(e),n=Es$1(e);return n.length?new x$6(r=>{let o=n.map(()=>[]),i=n.map(()=>false);r.add(()=>{o=i=null;});for(let s=0;!r.closed&&s<n.length;s++)O$5(n[s]).subscribe(M$1(r,a=>{if(o[s].push(a),o.every(c=>c.length)){let c=o.map(u=>u.shift());r.next(t?t(...c):c),o.some((u,l)=>!u.length&&i[l])&&r.complete();}},()=>{i[s]=true,!o[s].length&&r.complete();}));return ()=>{o=i=null;}}):He$4}function sp$2(e){return A$2((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(M$1(n,u=>{r=!0,o=u,i||O$5(e(u)).subscribe(i=M$1(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function nE$1(e,t=jt$3){return sp$2(()=>Ln$4(e,t))}function qc$1(e){return A$2((t,n)=>{let r=null,o=!1,i;r=t.subscribe(M$1(n,void 0,void 0,s=>{i=O$5(e(s,qc$1(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}function _o$3(e,t){return T$6(t)?st$5(e,t,1):st$5(e,1)}function ap$2(e){return A$2((t,n)=>{let r=!1;t.subscribe(M$1(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function Bt$5(e){return e<=0?()=>He$4:A$2((t,n)=>{let r=0;t.subscribe(M$1(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function cp$1(){return A$2((e,t)=>{e.subscribe(M$1(t,Lt$5));})}function up$2(e){return pe$2(()=>e)}function Zc$2(e,t){return t?n=>at$5(t.pipe(Bt$5(1),cp$1()),n.pipe(Zc$2(e))):st$5((n,r)=>O$5(e(n,r)).pipe(Bt$5(1),up$2(n)))}function rE$1(e,t=jt$3){let n=Ln$4(e,t);return Zc$2(()=>n)}function lp$2(e=oE$1){return A$2((t,n)=>{let r=!1;t.subscribe(M$1(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function oE$1(){return new Pt$4}function iE$1(...e){return t=>at$5(t,Ue$3(...e))}function Bn$2(e){return A$2((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function sE$1(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ct$5((o,i)=>e(o,i,r)):De$4,Bt$5(1),n?ap$2(t):lp$2(()=>new Pt$4))}function aE$1(e){return e<=0?()=>He$4:A$2((t,n)=>{let r=[];t.subscribe(M$1(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function dp$2(e={}){let{connector:t=()=>new $$5,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,l=d=false;},h=()=>{let y=s;f(),y?.unsubscribe();};return A$2((y,v)=>{u++,!d&&!l&&p();let D=c=c??t();v.add(()=>{u--,u===0&&!d&&!l&&(a=Yc$1(h,o));}),D.subscribe(v),!s&&u>0&&(s=new it$4({next:k=>D.next(k),error:k=>{d=!0,p(),a=Yc$1(f,n,k),D.error(k);},complete:()=>{l=!0,p(),a=Yc$1(f,r),D.complete();}}),O$5(y).subscribe(s));})(i)}}function Yc$1(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new it$4({next:()=>{r.unsubscribe(),e();}});return O$5(t(...n)).subscribe(r)}function Kc$1(e,t,n){let r,o=false;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=false,scheduler:n}=e:r=e??1/0,dp$2({connector:()=>new Or$2(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function cE$1(e){return Ct$5((t,n)=>e<=n)}function Lr$3(e,t){return A$2((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(M$1(r,c=>{o?.unsubscribe();let u=0,l=i++;O$5(e(c,l)).subscribe(o=M$1(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Is$1(e){return A$2((t,n)=>{O$5(e).subscribe(M$1(n,()=>n.complete(),Lt$5)),!n.closed&&t.subscribe(n);})}function ws$1(e,t,n){let r=T$6(e)||t||n?{next:e,error:t,complete:n}:e;return r?A$2((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(M$1(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c);},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c);},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r);}));}):De$4}function uE$1(...e){let t=on$5(e);return A$2((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)O$5(e[c]).subscribe(M$1(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(De$4))&&(s=null));},Lt$5));n.subscribe(M$1(r,c=>{if(a){let u=[c,...i];r.next(t?t(...u):u);}}));})}var Ee$4=null,Cs$1=false,Vn$4=1,ee$4=Symbol("SIGNAL");function b$3(e){let t=Ee$4;return Ee$4=e,t}function bs$1(){return Ee$4}var sn$4={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function an$4(e){if(Cs$1)throw new Error("");if(Ee$4===null)return;Ee$4.consumerOnSignalRead(e);let t=Ee$4.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Ee$4.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Ee$4.producers,n!==void 0&&n.producer===e)){Ee$4.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Vn$4;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Ee$4&&(!r||o.knownValidAtEpoch===Vn$4))return;let i=jr$4(Ee$4),s={producer:e,consumer:Ee$4,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Vn$4,lastReadVersion:e.version,nextConsumer:void 0};Ee$4.producersTail=s,t!==void 0?t.nextProducer=s:Ee$4.producers=s,i&&gp$2(e,s);}function fp$1(){Vn$4++;}function $n$3(e){if(!(jr$4(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Vn$4)){if(!e.producerMustRecompute(e)&&!So$4(e)){Pr$3(e);return}e.producerRecomputeValue(e),Pr$3(e);}}function Qc$1(e){if(e.consumers===void 0)return;let t=Cs$1;Cs$1=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||dE$1(r);}}finally{Cs$1=t;}}function Jc$1(){return Ee$4?.consumerAllowSignalWrites!==false}function dE$1(e){e.dirty=true,Qc$1(e),e.consumerMarkedDirty?.(e);}function Pr$3(e){e.dirty=false,e.lastCleanEpoch=Vn$4;}function cn$4(e){return e&&pp$2(e),b$3(e)}function pp$2(e){if(e.producersTail?.knownValidAtEpoch===Vn$4){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function zn$4(e,t){b$3(t),e&&hp$2(e);}function hp$2(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(jr$4(e))do n=Xc$1(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function So$4(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||($n$3(n),r!==n.version))return true}return false}function Gn$3(e){if(jr$4(e)){let t=e.producers;for(;t!==void 0;)t=Xc$1(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function gp$2(e,t){let n=e.consumersTail,r=jr$4(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)gp$2(o.producer,o);}function Xc$1(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!jr$4(t)){let i=t.producers;for(;i!==void 0;)i=Xc$1(i);}return n}function jr$4(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function No$3(e,t){return Object.is(e,t)}function xo$3(e,t){let n=Object.create(fE$1);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if($n$3(n),an$4(n),n.value===bt$4)throw n.error;return n.value};return r[ee$4]=n,r}var Hn$3=Symbol("UNSET"),Un$3=Symbol("COMPUTING"),bt$4=Symbol("ERRORED"),fE$1=x$7(w$3({},sn$4),{value:Hn$3,dirty:true,error:null,equal:No$3,kind:"computed",producerMustRecompute(e){return e.value===Hn$3||e.value===Un$3},producerRecomputeValue(e){if(e.value===Un$3)throw new Error("");let t=e.value;e.value=Un$3;let n=cn$4(e),r,o=false;try{r=e.computation(),b$3(null),o=t!==Hn$3&&t!==bt$4&&r!==bt$4&&e.equal(t,r);}catch(i){r=bt$4,e.error=i;}finally{zn$4(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function pE$1(){throw new Error}var mp$2=pE$1;function yp$2(e){mp$2(e);}function eu$2(e){mp$2=e;}function tu$2(e,t){let n=Object.create(_s$1);n.value=e,t!==void 0&&(n.equal=t);let r=()=>vp$1(n);return r[ee$4]=n,[r,s=>un$5(n,s),s=>Ts$1(n,s)]}function vp$1(e){return an$4(e),e.value}function un$5(e,t){Jc$1()||yp$2(e),e.equal(e.value,t)||(e.value=t,gE$1(e));}function Ts$1(e,t){Jc$1()||yp$2(e),un$5(e,t(e.value));}var _s$1=x$7(w$3({},sn$4),{equal:No$3,value:void 0,kind:"signal"});function gE$1(e){e.version++,fp$1(),Qc$1(e);}var nu$2=x$7(w$3({},sn$4),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function ru$2(e){if(e.dirty=false,e.version>0&&!So$4(e))return;e.version++;let t=cn$4(e);try{e.cleanup(),e.fn();}finally{zn$4(e,t);}}var ou$2;function Ss$1(){return ou$2}function Tt$6(e){let t=ou$2;return ou$2=e,t}var Dp$2=Symbol("NotFound");function Br$3(e){return e===Dp$2||e?.name==="\u0275NotFound"}function iu$2(e,t,n){let r=Object.create(mE$1);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if($n$3(r),an$4(r),r.value===bt$4)throw r.error;return r.value};return i[ee$4]=r,i}function Ep$1(e,t){$n$3(e),un$5(e,t),Pr$3(e);}function Ip$1(e,t){if($n$3(e),e.value===bt$4)throw e.error;Ts$1(e,t),Pr$3(e);}var mE$1=x$7(w$3({},sn$4),{value:Hn$3,dirty:true,error:null,equal:No$3,kind:"linkedSignal",producerMustRecompute(e){return e.value===Hn$3||e.value===Un$3},producerRecomputeValue(e){if(e.value===Un$3)throw new Error("");let t=e.value;e.value=Un$3;let n=cn$4(e),r,o=false;try{let i=e.source(),s=t!==Hn$3&&t!==bt$4,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,b$3(null),o=s&&r!==bt$4&&e.equal(t,r);}catch(i){r=bt$4,e.error=i;}finally{zn$4(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function wp$2(e){let t=b$3(null);try{return e()}finally{b$3(t);}}var ks$1="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m$4=class m extends Error{code;constructor(t,n){super(ct$5(t,n)),this.code=t;}};function yE$1(e){return `NG0${Math.abs(e)}`}function ct$5(e,t){return `${yE$1(e)}${t?": "+t:""}`}function P$3(e){for(let t in e)if(e[t]===P$3)return t;throw Error("")}function Sp$2(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Lo$5(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Lo$5).join(", ")}]`;if(e==null)return ""+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ""+n;let r=n.indexOf(`
`);return r>=0?n.slice(0,r):n}function Fs$1(e,t){return e?t?`${e} ${t}`:e:t||""}var vE$1=P$3({__forward_ref__:P$3});function Ls$1(e){return e.__forward_ref__=Ls$1,e}function ue$3(e){return vu$1(e)?e():e}function vu$1(e){return typeof e=="function"&&e.hasOwnProperty(vE$1)&&e.__forward_ref__===Ls$1}function C$3(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Kn$4(e){return {providers:e.providers||[],imports:e.imports||[]}}function Po$4(e){return EE$1(e,Ps$1)}function DE(e){return Po$4(e)!==null}function EE$1(e,t){return e.hasOwnProperty(t)&&e[t]||null}function IE$1(e){let t=e?.[Ps$1]??null;return t||null}function au$2(e){return e&&e.hasOwnProperty(Ns$1)?e[Ns$1]:null}var Ps$1=P$3({\u0275prov:P$3}),Ns$1=P$3({\u0275inj:P$3}),I$2=class I{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=C$3({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function Du$2(e){return e&&!!e.\u0275providers}var Eu$2=P$3({\u0275cmp:P$3}),Iu$1=P$3({\u0275dir:P$3}),wu$1=P$3({\u0275pipe:P$3}),Cu$1=P$3({\u0275mod:P$3}),Ro$4=P$3({\u0275fac:P$3}),Qn$3=P$3({__NG_ELEMENT_ID__:P$3}),Cp$1=P$3({__NG_ENV_ID__:P$3});function Mp$1(e){return Bs$1(e),e[Cu$1]||null}function fn$4(e){return Bs$1(e),e[Eu$2]||null}function js$1(e){return Bs$1(e),e[Iu$1]||null}function Np$1(e){return Bs$1(e),e[wu$1]||null}function Bs$1(e,t){if(e==null)throw new m$4(-919,false)}function de$4(e){return typeof e=="string"?e:e==null?"":String(e)}var xp$2=P$3({ngErrorCode:P$3}),wE$1=P$3({ngErrorMessage:P$3});P$3({ngTokenPath:P$3});function bu$1(e,t){return Ap$2("",-200)}function Vs$1(e,t){throw new m$4(-201,false)}function Ap$2(e,t,n){let r=new m$4(t,e);return r[xp$2]=t,r[wE$1]=e,r}function bE$1(e){return e[xp$2]}var cu$1;function Rp$1(){return cu$1}function Ie$6(e){let t=cu$1;return cu$1=e,t}function Tu$2(e,t,n){let r=Po$4(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Vs$1();}var ze$5=globalThis;var TE$1={},Wn$4=TE$1,_E$1="__NG_DI_FLAG__",uu$1=class uu{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=qn$3(n)||0;try{return this.injector.get(t,r&8?null:Wn$4,r)}catch(o){if(Br$3(o))return o;throw o}}};function SE$1(e,t=0){let n=Ss$1();if(n===void 0)throw new m$4(-203,false);if(n===null)return Tu$2(e,void 0,t);{let r=ME$1(t),o=n.retrieve(e,r);if(Br$3(o)){if(r.optional)return null;throw o}return o}}function N$3(e,t=0){return (Rp$1()||SE$1)(ue$3(e),t)}function g(e,t){return N$3(e,qn$3(t))}function qn$3(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ME$1(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function lu$2(e){let t=[];for(let n=0;n<e.length;n++){let r=ue$3(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$4(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=NE(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(N$3(o,i));}else t.push(N$3(r));}return t}function NE(e){return e[_E$1]}function ln$4(e,t){let n=e.hasOwnProperty(Ro$4);return n?e[Ro$4]:null}function Op$2(e,t,n){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return false}return true}function kp$1(e){return e.flat(Number.POSITIVE_INFINITY)}function Hs$1(e,t){e.forEach(n=>Array.isArray(n)?Hs$1(n,t):t(n));}function _u$2(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function jo$3(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Fp$2(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Lp$2(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else {for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--;}e[t]=n,e[t+1]=r;}}function Us$1(e,t,n){let r=Ur$3(e,t);return r>=0?e[r|1]=n:(r=~r,Lp$2(e,r,t,n)),r}function $s$1(e,t){let n=Ur$3(e,t);if(n>=0)return e[n|1]}function Ur$3(e,t){return xE$1(e,t,1)}function xE$1(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1;}return ~(o<<n)}var pn$4={},ge$2=[],$r$3=new I$2(""),Bo$4=new I$2("",-1),Su$1=new I$2(""),Hr$3=class Hr{get(t,n=Wn$4){if(n===Wn$4){let o=Ap$2("",-201);throw o.name="\u0275NotFound",o}return n}};function hn$4(e){return {\u0275providers:e}}function Pp$1(...e){return {\u0275providers:Mu$2(true,e),\u0275fromNgModule:true}}function Mu$2(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Hs$1(t,s=>{let a=s;xs$1(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&jp$2(o,i),n}function jp$2(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Nu$2(o,i=>{t(i,r);});}}function xs$1(e,t,n,r){if(e=ue$3(e),!e)return false;let o=null,i=au$2(e),s=!i&&fn$4(e);if(!i&&!s){let c=e.ngModule;if(i=au$2(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)xs$1(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Hs$1(i.imports,l=>{xs$1(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&jp$2(u,t);}if(!a){let u=ln$4(o)||(()=>new o);t({provide:o,useFactory:u,deps:ge$2},o),t({provide:Su$1,useValue:o,multi:true},o),t({provide:$r$3,useValue:()=>N$3(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Nu$2(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Nu$2(e,t){for(let n of e)Du$2(n)&&(n=n.\u0275providers),Array.isArray(n)?Nu$2(n,t):t(n);}var AE$1=P$3({provide:String,useValue:P$3});function Bp$1(e){return e!==null&&typeof e=="object"&&AE$1 in e}function RE$1(e){return !!(e&&e.useExisting)}function OE$1(e){return !!(e&&e.useFactory)}function Zn$4(e){return typeof e=="function"}function Vp$1(e){return !!e.useClass}var Vo$3=new I$2(""),Ms$1={},bp$1={},su$2;function zr$3(){return su$2===void 0&&(su$2=new Hr$3),su$2}var we$5=class we{},Yn$4=class Yn extends we$5{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,fu$2(t,s=>this.processProvider(s)),this.records.set(Bo$4,Vr$4(void 0,this)),o.has("environment")&&this.records.set(we$5,Vr$4(void 0,this));let i=this.records.get(Vo$3);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Su$1,ge$2,{self:true}));}retrieve(t,n){let r=qn$3(n)||0;try{return this.get(t,Wn$4,r)}catch(o){if(Br$3(o))return o;throw o}}destroy(){Ao$4(this),this._destroyed=true;let t=b$3(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b$3(t);}}onDestroy(t){return Ao$4(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Ao$4(this);let n=Tt$6(this),r=Ie$6(void 0);try{return t()}finally{Tt$6(n),Ie$6(r);}}get(t,n=Wn$4,r){if(Ao$4(this),t.hasOwnProperty(Cp$1))return t[Cp$1](this);let o=qn$3(r),s=Tt$6(this),a=Ie$6(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=jE(t)&&Po$4(t);l&&this.injectableDefInScope(l)?u=Vr$4(du$1(t),Ms$1):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?zr$3():this.parent;return n=o&8&&n===Wn$4?null:n,c.get(t,n)}catch(c){let u=bE$1(c);throw u===-200||u===-201?new m$4(u,null):c}finally{Ie$6(a),Tt$6(s);}}resolveInjectorInitializers(){let t=b$3(null),n=Tt$6(this),r=Ie$6(void 0);try{let i=this.get($r$3,ge$2,{self:!0});for(let s of i)s();}finally{Tt$6(n),Ie$6(r),b$3(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=ue$3(t);let n=Zn$4(t)?t:ue$3(t&&t.provide),r=FE$1(t);if(!Zn$4(t)&&t.multi===true){let o=this.records.get(n);o||(o=Vr$4(void 0,Ms$1,true),o.factory=()=>lu$2(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=b$3(null);try{if(n.value===bp$1)throw bu$1("");return n.value===Ms$1&&(n.value=bp$1,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&PE$1(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b$3(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=ue$3(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function du$1(e){let t=Po$4(e),n=t!==null?t.factory:ln$4(e);if(n!==null)return n;if(e instanceof I$2)throw new m$4(-204,false);if(e instanceof Function)return kE(e);throw new m$4(-204,false)}function kE(e){if(e.length>0)throw new m$4(-204,false);let n=IE$1(e);return n!==null?()=>n.factory(e):()=>new e}function FE$1(e){if(Bp$1(e))return Vr$4(void 0,e.useValue);{let t=xu$1(e);return Vr$4(t,Ms$1)}}function xu$1(e,t,n){let r;if(Zn$4(e)){let o=ue$3(e);return ln$4(o)||du$1(o)}else if(Bp$1(e))r=()=>ue$3(e.useValue);else if(OE$1(e))r=()=>e.useFactory(...lu$2(e.deps||[]));else if(RE$1(e))r=(o,i)=>N$3(ue$3(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=ue$3(e&&(e.useClass||e.provide));if(LE$1(e))r=()=>new o(...lu$2(e.deps));else return ln$4(o)||du$1(o)}return r}function Ao$4(e){if(e.destroyed)throw new m$4(-205,false)}function Vr$4(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function LE$1(e){return !!e.deps}function PE$1(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function jE(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function fu$2(e,t){for(let n of e)Array.isArray(n)?fu$2(n,t):n&&Du$2(n)?fu$2(n.\u0275providers,t):t(n);}function Gr$3(e,t){let n;e instanceof Yn$4?(Ao$4(e),n=e):n=new uu$1(e);let o=Tt$6(n),i=Ie$6(void 0);try{return t()}finally{Tt$6(o),Ie$6(i);}}function Hp$2(){return Rp$1()!==void 0||Ss$1()!=null}var ut$6=0,w$2=1,_$3=2,le$6=3,Ge$2=4,me$3=5,Jn$4=6,Wr$3=7,te$3=8,Me$5=9,lt$6=10,j$3=11,qr$3=12,Au$2=13,gn$4=14,Ce$7=15,mn$4=16,Xn$5=17,_t$5=18,St$7=19,Ru$2=20,Ht$4=21,zs$2=22,dn$5=23,je$4=24,er$3=25,dt$4=26,H$6=27,Up$1=1,Ou$2=6,yn$4=7,Ho$4=8,tr$5=9,Y$3=10;function zt$5(e){return Array.isArray(e)&&typeof e[Up$1]=="object"}function We$4(e){return Array.isArray(e)&&e[Up$1]===true}function ku$2(e){return (e.flags&4)!==0}function Gt$5(e){return e.componentOffset>-1}function Zr$3(e){return (e.flags&1)===1}function ft$4(e){return !!e.template}function Yr$3(e){return (e[_$3]&512)!==0}function nr$5(e){return (e[_$3]&256)===256}var Fu$2="svg",$p$1="math";function qe$5(e){for(;Array.isArray(e);)e=e[ut$6];return e}function Lu$2(e,t){return qe$5(t[e])}function Be$6(e,t){return qe$5(t[e.index])}function Gs$1(e,t){return e.data[t]}function Uo$3(e,t){return e[t]}function $o$4(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Ze$2(e,t){let n=t[e];return zt$5(n)?n:n[ut$6]}function zp$2(e){return (e[_$3]&4)===4}function Ws$1(e){return (e[_$3]&128)===128}function Gp$2(e){return We$4(e[le$6])}function Ye$4(e,t){return t==null?null:e[t]}function Pu$1(e){e[Xn$5]=0;}function ju$2(e){e[_$3]&1024||(e[_$3]|=1024,Ws$1(e)&&rr$5(e));}function Wp$2(e,t){for(;e>0;)t=t[gn$4],e--;return t}function zo$4(e){return !!(e[_$3]&9216||e[je$4]?.dirty)}function qs$1(e){e[lt$6].changeDetectionScheduler?.notify(8),e[_$3]&64&&(e[_$3]|=1024),zo$4(e)&&rr$5(e);}function rr$5(e){e[lt$6].changeDetectionScheduler?.notify(0);let t=Ut$6(e);for(;t!==null&&!(t[_$3]&8192||(t[_$3]|=8192,!Ws$1(t)));)t=Ut$6(t);}function Zs$1(e,t){if(nr$5(e))throw new m$4(911,false);e[Ht$4]===null&&(e[Ht$4]=[]),e[Ht$4].push(t);}function qp$2(e,t){if(e[Ht$4]===null)return;let n=e[Ht$4].indexOf(t);n!==-1&&e[Ht$4].splice(n,1);}function Ut$6(e){let t=e[le$6];return We$4(t)?t[le$6]:t}function Bu$2(e){return e[Wr$3]??=[]}function Vu$2(e){return e.cleanup??=[]}function Zp$2(e,t,n,r){let o=Bu$2(t);o.push(n),e.firstCreatePass&&Vu$2(e).push(r,o.length-1);}var R$3={lFrame:oh$2(null),bindingsEnabled:true,skipHydrationRootTNode:null};var pu$1=false;function Yp$2(){return R$3.lFrame.elementDepthCount}function Kp$2(){R$3.lFrame.elementDepthCount++;}function Hu$2(){R$3.lFrame.elementDepthCount--;}function Ys$1(){return R$3.bindingsEnabled}function Uu$2(){return R$3.skipHydrationRootTNode!==null}function $u$1(e){return R$3.skipHydrationRootTNode===e}function zu$2(){R$3.skipHydrationRootTNode=null;}function E$2(){return R$3.lFrame.lView}function V$3(){return R$3.lFrame.tView}function Go$4(e){return R$3.lFrame.contextLView=e,e[te$3]}function Wo$3(e){return R$3.lFrame.contextLView=null,e}function J$5(){let e=Gu$1();for(;e!==null&&e.type===64;)e=e.parent;return e}function Gu$1(){return R$3.lFrame.currentTNode}function Qp$2(){let e=R$3.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function or$5(e,t){let n=R$3.lFrame;n.currentTNode=e,n.isParent=t;}function Wu$2(){return R$3.lFrame.isParent}function qu$2(){R$3.lFrame.isParent=false;}function Zu$1(){return R$3.lFrame.contextLView}function Yu$1(){return pu$1}function Oo$5(e){let t=pu$1;return pu$1=e,t}function vn$4(){let e=R$3.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function qo$3(){return R$3.lFrame.bindingIndex}function Jp$2(e){return R$3.lFrame.bindingIndex=e}function Dn$3(){return R$3.lFrame.bindingIndex++}function ir$5(e){let t=R$3.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Xp$2(){return R$3.lFrame.inI18n}function eh$2(e,t){let n=R$3.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ks$1(t);}function th$3(){return R$3.lFrame.currentDirectiveIndex}function Ks$1(e){R$3.lFrame.currentDirectiveIndex=e;}function nh$2(e){let t=R$3.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Qs$1(){return R$3.lFrame.currentQueryIndex}function Zo$3(e){R$3.lFrame.currentQueryIndex=e;}function BE(e){let t=e[w$2];return t.type===2?t.declTNode:t.type===1?e[me$3]:null}function Ku$1(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=BE(i),o===null||(i=i[gn$4],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=R$3.lFrame=rh$2();return r.currentTNode=t,r.lView=e,true}function Js$1(e){let t=rh$2(),n=e[w$2];R$3.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function rh$2(){let e=R$3.lFrame,t=e===null?null:e.child;return t===null?oh$2(e):t}function oh$2(e){let t={currentTNode:null,isParent:true,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:false};return e!==null&&(e.child=t),t}function ih$2(){let e=R$3.lFrame;return R$3.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Qu$1=ih$2;function Xs$1(){let e=ih$2();e.isParent=true,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 sh$2(e){return (R$3.lFrame.contextLView=Wp$2(e,R$3.lFrame.contextLView))[te$3]}function Ne$6(){return R$3.lFrame.selectedIndex}function En$4(e){R$3.lFrame.selectedIndex=e;}function Kr$2(){let e=R$3.lFrame;return Gs$1