UNPKG

angular-t9n

Version:
4 lines 518 kB
var o=Object.defineProperty,p$1=Object.defineProperties;var q$3=Object.getOwnPropertyDescriptors;var f$1=Object.getOwnPropertySymbols;var k$1=Object.prototype.hasOwnProperty,l$1=Object.prototype.propertyIsEnumerable;var j$1=(a,c,b)=>c in a?o(a,c,{enumerable:true,configurable:true,writable:true,value:b}):a[c]=b,r=(a,c)=>{for(var b in c||={})k$1.call(c,b)&&j$1(a,b,c[b]);if(f$1)for(var b of f$1(c))l$1.call(c,b)&&j$1(a,b,c[b]);return a},s=(a,c)=>p$1(a,q$3(c));var t=(a,c)=>{var b={};for(var d in a)k$1.call(a,d)&&c.indexOf(d)<0&&(b[d]=a[d]);if(a!=null&&f$1)for(var d of f$1(a))c.indexOf(d)<0&&l$1.call(a,d)&&(b[d]=a[d]);return b};var u=(a,c,b)=>new Promise((d,i)=>{var m=e=>{try{g(b.next(e));}catch(h){i(h);}},n=e=>{try{g(b.throw(e));}catch(h){i(h);}},g=e=>e.done?d(e.value):Promise.resolve(e.value).then(m,n);g((b=b.apply(a,c)).next());});function M(e){return typeof e=="function"}function Yn$1(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 ti$1=Yn$1(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$1(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var G$3=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(M(r))try{r();}catch(i){t=i instanceof ti$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Xd(i);}catch(s){t=t??[],s instanceof ti$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new ti$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Xd(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$1(n,t);}remove(t){let{_finalizers:n}=this;n&&rn$1(n,t),t instanceof e&&t._removeParent(this);}};G$3.EMPTY=(()=>{let e=new G$3;return e.closed=true,e})();var Ma=G$3.EMPTY;function ni$1(e){return e instanceof G$3||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Xd(e){M(e)?e():e.unsubscribe();}var Le$2={Promise:void 0};var Kn$1={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function ri$1(e){Kn$1.setTimeout(()=>{throw e});}function on$1(){}function Qn$1(e){e();}var an$1=class an extends G$3{constructor(t){super(),this.isStopped=false,t?(this.destination=t,ni$1(t)&&t.add(this)):this.destination=$v;}static create(t,n,r){return new ft$1(t,n,r)}next(t){this.isStopped?xa():this._next(t);}error(t){this.isStopped?xa():(this.isStopped=true,this._error(t));}complete(){this.isStopped?xa():(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 Ra=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){oi$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){oi$1(r);}else oi$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){oi$1(n);}}},ft$1=class ft extends an$1{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new Ra(o);}};function oi$1(e){ri$1(e);}function Uv(e){throw e}function xa(e,t){}var $v={closed:true,next:on$1,error:Uv,complete:on$1};var Xn$1=typeof Symbol=="function"&&Symbol.observable||"@@observable";function fe$2(e){return e}function zv(...e){return Oa(e)}function Oa(e){return e.length===0?fe$2:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var N=(()=>{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=Wv(n)?n:new ft$1(n,r,o);return Qn$1(()=>{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=rf(r),new r((o,i)=>{let s=new ft$1({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)}[Xn$1](){return this}pipe(...n){return Oa(n)(this)}toPromise(n){return n=rf(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 rf(e){var t;return (t=e??Le$2.Promise)!==null&&t!==void 0?t:Promise}function Gv(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Wv(e){return e&&e instanceof an$1||Gv(e)&&ni$1(e)}var of=Yn$1(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var F$1=(()=>{class e extends N{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new ii$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new of}next(n){Qn$1(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Qn$1(()=>{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(){Qn$1(()=>{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?Ma:(this.currentObservers=null,i.push(n),new G$3(()=>{this.currentObservers=null,rn$1(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new N;return n.source=this,n}}return e.create=(t,n)=>new ii$1(t,n),e})(),ii$1=class ii extends F$1{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:Ma}};var cn$1=class cn extends F$1{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);}};function si$1(e){return e&&M(e.schedule)}function ka(e){return e[e.length-1]}function ai$1(e){return M(ka(e))?e.pop():void 0}function Ye$1(e){return si$1(ka(e))?e.pop():void 0}function sf(e,t){return typeof ka(e)=="number"?e.pop():t}function cf(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 af(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 un$2(e){return this instanceof un$2?(this.v=e,this):new un$2(e)}function uf(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(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(m){return new Promise(function(y,I){i.push([f,m,y,I])>1||c(f,m);})},p&&(o[f]=p(o[f])));}function c(f,p){try{u(r[f](p));}catch(m){h(i[0][3],m);}}function u(f){f.value instanceof un$2?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f);}function l(f){c("next",f);}function d(f){c("throw",f);}function h(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function lf(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 af=="function"?af(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 ci$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function ui$1(e){return M(e?.then)}function li$1(e){return M(e[Xn$1])}function di$1(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function fi$1(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 qv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var hi$1=qv();function pi$1(e){return M(e?.[hi$1])}function gi$1(e){return uf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield un$2(n.read());if(o)return yield un$2(void 0);yield yield un$2(r);}}finally{n.releaseLock();}})}function mi$1(e){return M(e?.getReader)}function j(e){if(e instanceof N)return e;if(e!=null){if(li$1(e))return Zv(e);if(ci$1(e))return Yv(e);if(ui$1(e))return Kv(e);if(di$1(e))return df(e);if(pi$1(e))return Qv(e);if(mi$1(e))return Xv(e)}throw fi$1(e)}function Zv(e){return new N(t=>{let n=e[Xn$1]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yv(e){return new N(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function Kv(e){return new N(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,ri$1);})}function Qv(e){return new N(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function df(e){return new N(t=>{Jv(e,t).catch(n=>t.error(n));})}function Xv(e){return df(gi$1(e))}function Jv(e,t){var n,r,o,i;return cf(this,void 0,void 0,function*(){try{for(n=lf(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 me$2(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 Fa(e){return M(e?.lift)}function T$2(e){return t=>{if(Fa(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 b$1(e,t,n,r,o){return new Pa(e,t,n,r,o)}var Pa=class extends an$1{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 yi$1(e,t=0){return T$2((n,r)=>{n.subscribe(b$1(r,o=>me$2(r,e,()=>r.next(o),t),()=>me$2(r,e,()=>r.complete(),t),o=>me$2(r,e,()=>r.error(o),t)));})}function vi$1(e,t=0){return T$2((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function ff(e,t){return j(e).pipe(vi$1(t),yi$1(t))}function hf(e,t){return j(e).pipe(vi$1(t),yi$1(t))}function pf(e,t){return new N(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function gf(e,t){return new N(n=>{let r;return me$2(n,t,()=>{r=e[hi$1](),me$2(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);}),()=>M(r?.return)&&r.return()})}function Di$1(e,t){if(!e)throw new Error("Iterable cannot be null");return new N(n=>{me$2(n,t,()=>{let r=e[Symbol.asyncIterator]();me$2(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function mf(e,t){return Di$1(gi$1(e),t)}function yf(e,t){if(e!=null){if(li$1(e))return ff(e,t);if(ci$1(e))return pf(e,t);if(ui$1(e))return hf(e,t);if(di$1(e))return Di$1(e,t);if(pi$1(e))return gf(e,t);if(mi$1(e))return mf(e,t)}throw fi$1(e)}function Ke(e,t){return t?yf(e,t):j(e)}function ln$1(...e){let t=Ye$1(e);return Ke(e,t)}function K$1(e,t){return T$2((n,r)=>{let o=0;n.subscribe(b$1(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:eD}=Array,{getPrototypeOf:tD,prototype:nD,keys:rD}=Object;function Ei$1(e){if(e.length===1){let t=e[0];if(eD(t))return {args:t,keys:null};if(oD(t)){let n=rD(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function oD(e){return e&&typeof e=="object"&&tD(e)===nD}var{isArray:iD}=Array;function sD(e,t){return iD(t)?e(...t):e(t)}function _i$1(e){return K$1(t=>sD(e,t))}function Ii$1(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function aD(...e){let t=ai$1(e),{args:n,keys:r}=Ei$1(e),o=new N(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;j(n[l]).subscribe(b$1(i,h=>{d||(d=true,u--),a[l]=h;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Ii$1(r,a):a),i.complete());}));}});return t?o.pipe(_i$1(t)):o}function Ee$2(e,t){return T$2((n,r)=>{let o=0;n.subscribe(b$1(r,i=>e.call(t,i,o++)&&r.next(i)));})}var dn$1=new N(e=>e.complete());function At$3(e){return e<=0?()=>dn$1:T$2((t,n)=>{let r=0;t.subscribe(b$1(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function ja(e={}){let{connector:t=()=>new F$1,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,h=()=>{a?.unsubscribe(),a=void 0;},f=()=>{h(),s=c=void 0,l=d=false;},p=()=>{let m=s;f(),m?.unsubscribe();};return T$2((m,y)=>{u++,!d&&!l&&h();let I=c=c??t();y.add(()=>{u--,u===0&&!d&&!l&&(a=La(p,o));}),I.subscribe(y),!s&&u>0&&(s=new ft$1({next:z=>I.next(z),error:z=>{d=!0,h(),a=La(f,n,z),I.error(z);},complete:()=>{l=!0,h(),a=La(f,r),I.complete();}}),j(m).subscribe(s));})(i)}}function La(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new ft$1({next:()=>{r.unsubscribe(),e();}});return j(t(...n)).subscribe(r)}function Ba(e,t){return T$2((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(b$1(r,c=>{o?.unsubscribe();let u=0,l=i++;j(e(c,l)).subscribe(o=b$1(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Va(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?T$2((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(b$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);}));}):fe$2}function vf(){return T$2((e,t)=>{let n=null;e._refCount++;let r=b$1(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe();});e.subscribe(r),r.closed||(n=e.connect());})}var Br=class extends N{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Fa(t)&&(this.lift=t.lift);}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return (!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe();}connect(){let t=this._connection;if(!t){t=this._connection=new G$3;let n=this.getSubject();t.add(this.source.subscribe(b$1(n,void 0,()=>{this._teardown(),n.complete();},r=>{this._teardown(),n.error(r);},()=>this._teardown()))),t.closed&&(this._connection=null,t=G$3.EMPTY);}return t}refCount(){return vf()(this)}};var Jn$1={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame;let o=t(i=>{n=void 0,e(i);});return new G$3(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Jn$1;return (t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){return (cancelAnimationFrame)(...e)},delegate:void 0};var Vr={now(){return (Vr.delegate||Date).now()},delegate:void 0};var Hr=class extends F$1{constructor(t=1/0,n=1/0,r=Vr){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 wi$1=class wi extends G$3{constructor(t,n){super();}schedule(t,n=0){return this}};var Ur={setInterval(e,t,...n){let{delegate:r}=Ur;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var xt$1=class xt extends wi$1{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 Ur.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&&Ur.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$1(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var cD=1,Ha,Ua={};function Df(e){return e in Ua?(delete Ua[e],true):false}var Ef={setImmediate(e){let t=cD++;return Ua[t]=true,Ha||(Ha=Promise.resolve()),Ha.then(()=>Df(t)&&e()),t},clearImmediate(e){Df(e);}};var{setImmediate:uD,clearImmediate:lD}=Ef,$r={setImmediate(...e){let{delegate:t}=$r;return (t?.setImmediate||uD)(...e)},clearImmediate(e){return (lD)(e)},delegate:void 0};var bi$1=class bi extends xt$1{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=$r.setImmediate(t.flush.bind(t,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&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&($r.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0));}};var er$1=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)}};er$1.now=Vr.now;var Rt$2=class Rt extends er$1{constructor(t,n=er$1.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 Ci$1=class Ci extends Rt$2{flush(t){this._active=true;let 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 _f=new Ci$1(bi$1);var fn$1=new Rt$2(xt$1),If=fn$1;var Ti$1=class Ti extends xt$1{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=Jn$1.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&&(Jn$1.cancelAnimationFrame(n),t._scheduled=void 0);}};var Si$1=class Si extends Rt$2{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 wf=new Si$1(Ti$1);function dD(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new N(r)}function bf(e){return !!e&&(e instanceof N||M(e.lift)&&M(e.subscribe))}var zr=Yn$1(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function Cf(e){return e instanceof Date&&!isNaN(e)}function $a(...e){let t=Ye$1(e),n=ai$1(e),{args:r,keys:o}=Ei$1(e);if(r.length===0)return Ke([],t);let i=new N(fD(r,t,o?s=>Ii$1(o,s):fe$2));return n?i.pipe(_i$1(n)):i}function fD(e,t,n=fe$2){return r=>{Tf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Tf(t,()=>{let u=Ke(e[c],t),l=false;u.subscribe(b$1(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function Tf(e,t,n){e?me$2(n,e,t):t();}function Sf(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,h=()=>{d&&!c.length&&!u&&t.complete();},f=m=>u<r?p(m):c.push(m),p=m=>{u++;let y=false;j(n(m,l++)).subscribe(b$1(t,I=>{t.next(I);},()=>{y=true;},void 0,()=>{if(y)try{for(u--;c.length&&u<r;){let I=c.shift();s?me$2(t,s,()=>p(I)):p(I);}h();}catch(I){t.error(I);}}));};return e.subscribe(b$1(t,f,()=>{d=true,h();})),()=>{}}function ht$3(e,t,n=1/0){return M(t)?ht$3((r,o)=>K$1((i,s)=>t(r,i,o,s))(j(e(r,o))),n):(typeof t=="number"&&(n=t),T$2((r,o)=>Sf(r,o,e,n)))}function Gr(e=1/0){return ht$3(fe$2,e)}function Mf(){return Gr(1)}function Ot$1(...e){return Mf()(Ke(e,Ye$1(e)))}function hD(e){return new N(t=>{j(e()).subscribe(t);})}function tr$1(e=0,t,n=If){let r=-1;return t!=null&&(si$1(t)?n=t:r=t),new N(o=>{let i=Cf(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 pD(...e){let t=Ye$1(e),n=sf(e,1/0),r=e;return r.length?r.length===1?j(r[0]):Gr(n)(Ke(r,t)):dn$1}function Nf(e){return T$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(b$1(n,u=>{r=!0,o=u,i||j(e(u)).subscribe(i=b$1(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Mi$1(e,t=fn$1){return Nf(()=>tr$1(e,t))}function Af(e){return T$2((t,n)=>{let r=null,o=!1,i;r=t.subscribe(b$1(n,void 0,void 0,s=>{i=j(e(s,Af(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}function za(e,t){return M(t)?ht$3(e,t,1):ht$3(e,1)}function hn$2(e,t=fn$1){return T$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(b$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 xf(e){return T$2((t,n)=>{let r=!1;t.subscribe(b$1(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function Rf(){return T$2((e,t)=>{e.subscribe(b$1(t,on$1));})}function Ga(e){return K$1(()=>e)}function Wa(e,t){return t?n=>Ot$1(t.pipe(At$3(1),Rf()),n.pipe(Wa(e))):ht$3((n,r)=>j(e(n,r)).pipe(At$3(1),Ga(n)))}function gD(e,t=fn$1){let n=tr$1(e,t);return Wa(()=>n)}function Ni$1(e,t=fe$2){return e=e??mD,T$2((n,r)=>{let o,i=!0;n.subscribe(b$1(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function mD(e,t){return e===t}function Of(e=yD){return T$2((t,n)=>{let r=!1;t.subscribe(b$1(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function yD(){return new zr}function qa(e){return T$2((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function vD(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ee$2((o,i)=>e(o,i,r)):fe$2,At$3(1),n?xf(t):Of(()=>new zr))}function DD(e){return e<=0?()=>dn$1:T$2((t,n)=>{let r=[];t.subscribe(b$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 kf(){return T$2((e,t)=>{let n,r=!1;e.subscribe(b$1(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0;}));})}function ED(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=false}=t;return n<=0?fe$2:T$2((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(b$1(s,d=>{o&&(a=0),s.next(d);},void 0,d=>{if(a++<n){let h=()=>{c?(c.unsubscribe(),c=null,u()):l=!0;};if(r!=null){let f=typeof r=="number"?tr$1(r):j(r(d,a)),p=b$1(s,()=>{p.unsubscribe(),h();},()=>{s.complete();});f.subscribe(p);}else h();}else s.error(d);})),l&&(c.unsubscribe(),c=null,u());};u();})}function Ff(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,ja({connector:()=>new Hr(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Wr$1(e){return Ee$2((t,n)=>e<=n)}function Ai$1(...e){let t=Ye$1(e);return T$2((n,r)=>{(t?Ot$1(e,n,t):Ot$1(e,n)).subscribe(r);})}function nr$1(e){return T$2((t,n)=>{j(e).subscribe(b$1(n,()=>n.complete(),on$1)),!n.closed&&t.subscribe(n);})}function _D(e,t=false){return T$2((n,r)=>{let o=0;n.subscribe(b$1(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var ae$2=null,xi$1=false,Za=1,Q$1=Symbol("SIGNAL");function w(e){let t=ae$2;return ae$2=e,t}function Ri$1(){return ae$2}var kt={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 Ft$2(e){if(xi$1)throw new Error("");if(ae$2===null)return;ae$2.consumerOnSignalRead(e);let t=ae$2.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ae$2.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ae$2.producers,n!==void 0&&n.producer===e)){ae$2.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ae$2&&(!r||bD(o,ae$2)))return;let i=ir$1(ae$2),s={producer:e,consumer:ae$2,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};ae$2.producersTail=s,t!==void 0?t.nextProducer=s:ae$2.producers=s,i&&Bf(e,s);}function Pf(){Za++;}function mn$1(e){if(!(ir$1(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Za)){if(!e.producerMustRecompute(e)&&!or$1(e)){rr$1(e);return}e.producerRecomputeValue(e),rr$1(e);}}function Ya(e){if(e.consumers===void 0)return;let t=xi$1;xi$1=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||wD(r);}}finally{xi$1=t;}}function Ka(){return ae$2?.consumerAllowSignalWrites!==false}function wD(e){e.dirty=true,Ya(e),e.consumerMarkedDirty?.(e);}function rr$1(e){e.dirty=false,e.lastCleanEpoch=Za;}function pt$4(e){return e&&Lf(e),w(e)}function Lf(e){e.producersTail=void 0,e.recomputing=true;}function Pt$1(e,t){w(t),e&&jf(e);}function jf(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(ir$1(e))do n=Qa(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function or$1(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(mn$1(n),r!==n.version))return true}return false}function Lt(e){if(ir$1(e)){let t=e.producers;for(;t!==void 0;)t=Qa(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Bf(e,t){let n=e.consumersTail,r=ir$1(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)Bf(o.producer,o);}function Qa(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,!ir$1(t)){let i=t.producers;for(;i!==void 0;)i=Qa(i);}return n}function ir$1(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function bD(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return true;if(r===n)break;r=r.nextProducer;}while(r!==void 0)}return false}function Zr$1(e,t){return Object.is(e,t)}function Yr$1(e,t){let n=Object.create(CD);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(mn$1(n),Ft$2(n),n.value===Qe)throw n.error;return n.value};return r[Q$1]=n,r}var pn$1=Symbol("UNSET"),gn$1=Symbol("COMPUTING"),Qe=Symbol("ERRORED"),CD=s(r({},kt),{value:pn$1,dirty:true,error:null,equal:Zr$1,kind:"computed",producerMustRecompute(e){return e.value===pn$1||e.value===gn$1},producerRecomputeValue(e){if(e.value===gn$1)throw new Error("");let t=e.value;e.value=gn$1;let n=pt$4(e),r,o=false;try{r=e.computation(),w(null),o=t!==pn$1&&t!==Qe&&r!==Qe&&e.equal(t,r);}catch(i){r=Qe,e.error=i;}finally{Pt$1(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function TD(){throw new Error}var Vf=TD;function Hf(e){Vf(e);}function Xa(e){Vf=e;}function Ja(e,t){let n=Object.create(Kr$1);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Uf(n);return r[Q$1]=n,[r,s=>yn$1(n,s),s=>Oi$1(n,s)]}function Uf(e){return Ft$2(e),e.value}function yn$1(e,t){Ka()||Hf(e),e.equal(e.value,t)||(e.value=t,MD(e));}function Oi$1(e,t){Ka()||Hf(e),yn$1(e,t(e.value));}var Kr$1=s(r({},kt),{equal:Zr$1,value:void 0,kind:"signal"});function MD(e){e.version++,Pf(),Ya(e);}var ec=s(r({},kt),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function tc(e){if(e.dirty=false,e.version>0&&!or$1(e))return;e.version++;let t=pt$4(e);try{e.cleanup(),e.fn();}finally{Pt$1(e,t);}}var nc;function ki$1(){return nc}function Xe$1(e){let t=nc;return nc=e,t}var $f=Symbol("NotFound");function sr$1(e){return e===$f||e?.name==="\u0275NotFound"}function rc(e,t,n){let r=Object.create(ND);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(mn$1(r),Ft$2(r),r.value===Qe)throw r.error;return r.value};return i[Q$1]=r,i}function zf(e,t){mn$1(e),yn$1(e,t),rr$1(e);}function Gf(e,t){if(mn$1(e),e.value===Qe)throw e.error;Oi$1(e,t),rr$1(e);}var ND=s(r({},kt),{value:pn$1,dirty:true,error:null,equal:Zr$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===pn$1||e.value===gn$1},producerRecomputeValue(e){if(e.value===gn$1)throw new Error("");let t=e.value;e.value=gn$1;let n=pt$4(e),r,o=false;try{let i=e.source(),s=t!==pn$1&&t!==Qe,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,w(null),o=s&&r!==Qe&&e.equal(t,r);}catch(i){r=Qe,e.error=i;}finally{Pt$1(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Wf(e){let t=w(null);try{return e()}finally{w(t);}}var Hi$1="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",v$2=class v extends Error{code;constructor(t,n){super(In$1(t,n)),this.code=t;}};function AD(e){return `NG0${Math.abs(e)}`}function In$1(e,t){return `${AD(e)}${t?": "+t:""}`}function H$3(e){for(let t in e)if(e[t]===H$3)return t;throw Error("")}function Qf(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function no$1(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(no$1).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 Ui$1(e,t){return e?t?`${e} ${t}`:e:t||""}var xD=H$3({__forward_ref__:H$3});function ro$1(e){return e.__forward_ref__=ro$1,e}function ee(e){return mc(e)?e():e}function mc(e){return typeof e=="function"&&e.hasOwnProperty(xD)&&e.__forward_ref__===ro$1}function Xf(e,t,n){e!=t&&Jf(n,e,t,"==");}function Jf(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(` [Expected=> ${n} ${r} ${t} <=Actual]`))}function k(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ce$2(e){return {providers:e.providers||[],imports:e.imports||[]}}function oo$1(e){return OD(e,$i$1)}function RD(e){return oo$1(e)!==null}function OD(e,t){return e.hasOwnProperty(t)&&e[t]||null}function kD(e){let t=e?.[$i$1]??null;return t||null}function ic(e){return e&&e.hasOwnProperty(Pi$1)?e[Pi$1]:null}var $i$1=H$3({\u0275prov:H$3}),Pi$1=H$3({\u0275inj:H$3}),D=class{_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=k({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function yc(e){return e&&!!e.\u0275providers}var vc=H$3({\u0275cmp:H$3}),Dc=H$3({\u0275dir:H$3}),Ec=H$3({\u0275pipe:H$3}),_c=H$3({\u0275mod:H$3}),Xr$1=H$3({\u0275fac:H$3}),wn$1=H$3({__NG_ELEMENT_ID__:H$3}),qf=H$3({__NG_ENV_ID__:H$3});function eh(e){return Gi$1(e),e[_c]||null}function Vt$1(e){return Gi$1(e),e[vc]||null}function zi$1(e){return Gi$1(e),e[Dc]||null}function th(e){return Gi$1(e),e[Ec]||null}function Gi$1(e,t){if(e==null)throw new v$2(-919,false)}function ur$1(e){return typeof e=="string"?e:e==null?"":String(e)}var nh=H$3({ngErrorCode:H$3}),FD=H$3({ngErrorMessage:H$3});H$3({ngTokenPath:H$3});function Ic(e,t){return rh("",-200)}function Wi$1(e,t){throw new v$2(-201,false)}function rh(e,t,n){let r=new v$2(t,e);return r[nh]=t,r[FD]=e,r}function LD(e){return e[nh]}var sc;function oh(){return sc}function he$2(e){let t=sc;return sc=e,t}function wc(e,t,n){let r=oo$1(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;Wi$1();}var Ht$1=globalThis;var jD={},vn$1=jD,BD="__NG_DI_FLAG__",ac=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=Dn$1(n)||0;try{return this.injector.get(t,r&8?null:vn$1,r)}catch(o){if(sr$1(o))return o;throw o}}};function VD(e,t=0){let n=ki$1();if(n===void 0)throw new v$2(-203,false);if(n===null)return wc(e,void 0,t);{let r=HD(t),o=n.retrieve(e,r);if(sr$1(o)){if(r.optional)return null;throw o}return o}}function S(e,t=0){return (oh()||VD)(ee(e),t)}function g(e,t){return S(e,Dn$1(t))}function Dn$1(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function HD(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function cc(e){let t=[];for(let n=0;n<e.length;n++){let r=ee(e[n]);if(Array.isArray(r)){if(r.length===0)throw new v$2(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=UD(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(S(o,i));}else t.push(S(r));}return t}function UD(e){return e[BD]}function jt(e,t){let n=e.hasOwnProperty(Xr$1);return n?e[Xr$1]:null}function ih(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 sh(e){return e.flat(Number.POSITIVE_INFINITY)}function qi$1(e,t){e.forEach(n=>Array.isArray(n)?qi$1(n,t):t(n));}function bc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function io$1(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ah(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function ch(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 Zi$1(e,t,n){let r=lr$1(e,t);return r>=0?e[r|1]=n:(r=~r,ch(e,r,t,n)),r}function Yi$1(e,t){let n=lr$1(e,t);if(n>=0)return e[n|1]}function lr$1(e,t){return $D(e,t,1)}function $D(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 Ut={},oe$1=[],$t$1=new D(""),so$1=new D("",-1),Cc=new D(""),cr$1=class cr{get(t,n=vn$1){if(n===vn$1){let o=rh("",-201);throw o.name="\u0275NotFound",o}return n}};function ao$1(e){return {\u0275providers:e}}function uh(...e){return {\u0275providers:Tc(true,e),\u0275fromNgModule:true}}function Tc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return qi$1(t,s=>{let a=s;Li$1(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&lh(o,i),n}function lh(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Sc(o,i=>{t(i,r);});}}function Li$1(e,t,n,r){if(e=ee(e),!e)return false;let o=null,i=ic(e),s=!i&&Vt$1(e);if(!i&&!s){let c=e.ngModule;if(i=ic(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)Li$1(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;qi$1(i.imports,l=>{Li$1(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&lh(u,t);}if(!a){let u=jt(o)||(()=>new o);t({provide:o,useFactory:u,deps:oe$1},o),t({provide:Cc,useValue:o,multi:true},o),t({provide:$t$1,useValue:()=>S(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Sc(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Sc(e,t){for(let n of e)yc(n)&&(n=n.\u0275providers),Array.isArray(n)?Sc(n,t):t(n);}var zD=H$3({provide:String,useValue:H$3});function dh(e){return e!==null&&typeof e=="object"&&zD in e}function GD(e){return !!(e&&e.useExisting)}function WD(e){return !!(e&&e.useFactory)}function En$1(e){return typeof e=="function"}function fh(e){return !!e.useClass}var co$1=new D(""),Fi$1={},Zf={},oc;function dr$1(){return oc===void 0&&(oc=new cr$1),oc}var ie$1=class ie{},_n$1=class _n extends ie$1{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,lc(t,s=>this.processProvider(s)),this.records.set(so$1,ar$1(void 0,this)),o.has("environment")&&this.records.set(ie$1,ar$1(void 0,this));let i=this.records.get(co$1);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Cc,oe$1,{self:true}));}retrieve(t,n){let r=Dn$1(n)||0;try{return this.get(t,vn$1,r)}catch(o){if(sr$1(o))return o;throw o}}destroy(){Qr$1(this),this._destroyed=true;let t=w(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(),w(t);}}onDestroy(t){return Qr$1(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Qr$1(this);let n=Xe$1(this),r=he$2(void 0);try{return t()}finally{Xe$1(n),he$2(r);}}get(t,n=vn$1,r){if(Qr$1(this),t.hasOwnProperty(qf))return t[qf](this);let o=Dn$1(r),s=Xe$1(this),a=he$2(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=QD(t)&&oo$1(t);l&&this.injectableDefInScope(l)?u=ar$1(uc(t),Fi$1):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?dr$1():this.parent;return n=o&8&&n===vn$1?null:n,c.get(t,n)}catch(c){let u=LD(c);throw u===-200||u===-201?new v$2(u,null):c}finally{he$2(a),Xe$1(s);}}resolveInjectorInitializers(){let t=w(null),n=Xe$1(this),r=he$2(void 0);try{let i=this.get($t$1,oe$1,{self:!0});for(let s of i)s();}finally{Xe$1(n),he$2(r),w(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=ee(t);let n=En$1(t)?t:ee(t&&t.provide),r=ZD(t);if(!En$1(t)&&t.multi===true){let o=this.records.get(n);o||(o=ar$1(void 0,Fi$1,true),o.factory=()=>cc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=w(null);try{if(n.value===Zf)throw Ic("");return n.value===Fi$1&&(n.value=Zf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&KD(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{w(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=ee(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 uc(e){let t=oo$1(e),n=t!==null?t.factory:jt(e);if(n!==null)return n;if(e instanceof D)throw new v$2(-204,false);if(e instanceof Function)return qD(e);throw new v$2(-204,false)}function qD(e){if(e.length>0)throw new v$2(-204,false);let n=kD(e);return n!==null?()=>n.factory(e):()=>new e}function ZD(e){if(dh(e))return ar$1(void 0,e.useValue);{let t=Mc(e);return ar$1(t,Fi$1)}}function Mc(e,t,n){let r;if(En$1(e)){let o=ee(e);return jt(o)||uc(o)}else if(dh(e))r=()=>ee(e.useValue);else if(WD(e))r=()=>e.useFactory(...cc(e.deps||[]));else if(GD(e))r=(o,i)=>S(ee(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=ee(e&&(e.useClass||e.provide));if(YD(e))r=()=>new o(...cc(e.deps));else return jt(o)||uc(o)}return r}function Qr$1(e){if(e.destroyed)throw new v$2(-205,false)}function ar$1(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function YD(e){return !!e.deps}function KD(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function QD(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function lc(e,t){for(let n of e)Array.isArray(n)?lc(n,t):n&&yc(n)?lc(n.\u0275providers,t):t(n);}function fr(e,t){let n;e instanceof _n$1?(Qr$1(e),n=e):n=new ac(e);let o=Xe$1(n),i=he$2(void 0);try{return t()}finally{Xe$1(o),he$2(i);}}function hh(){return oh()!==void 0||ki$1()!=null}var Ve$1=0,E=1,C$3=2,te=3,Ce$2=4,se$2=5,bn$1=6,hr$1=7,J$3=8,Je=9,He$2=10,B=11,pr=12,Nc=13,Cn$1=14,ue$2=15,zt$2=16,Tn$1=17,et$2=18,tt$1=19,Ac=20,gt$2=21,Ki$1=22,Bt$3=23,_e$2=24,Sn$1=25,nt$3=26,W$3=27,ph=1,xc=6,Gt$1=7,uo$1=8,Mn$1=9,q$2=10;function yt$3(e){return Array.isArray(e)&&typeof e[ph]=="object"}function Te$2(e){return Array.isArray(e)&&e[ph]===true}function Rc(e){return (e.flags&4)!==0}function rt$3(e){return e.componentOffset>-1}function gr(e){return (e.flags&1)===1}function Ue$1(e){return !!e.template}function mr(e){return (e[C$3]&512)!==0}function Nn$1(e){return (e[C$3]&256)===256}var Qi$1="svg",Oc="math";function Ie$1(e){for(;Array.isArray(e);)e=e[Ve$1];return e}function kc(e,t){return Ie$1(t[e])}function pe$2(e,t){return Ie$1(t[e.index])}function Xi$1(e,t){return e.data[t]}function Fc(e,t){return e[t]}function Pc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Se$2(e,t){let n=t[e];return yt$3(n)?n:n[Ve$1]}function gh(e){return (e[C$3]&4)===4}function Ji$1(e){return (e[C$3]&128)===128}function mh(e){return Te$2(e[te])}function ve$2(e,t){return t==null?null:e[t]}function Lc(e){e[Tn$1]=0;}function jc(e){e[C$3]&1024||(e[C$3]|=1024,Ji$1(e)&&An$1(e));}function yh(e,t){for(;e>0;)t=t[Cn$1],e--;return t}function lo$1(e){return !!(e[C$3]&9216||e[_e$2]?.dirty)}function es(e){e[He$2].changeDetectionScheduler?.notify(8),e[C$3]&64&&(e[C$3]|=1024),lo$1(e)&&An$1(e);}function An$1(e){e[He$2].changeDetectionScheduler?.notify(0);let t=mt$3(e);for(;t!==null&&!(t[C$3]&8192||(t[C$3]|=8192,!Ji$1(t)));)t=mt$3(t);}function ts(e,t){if(Nn$1(e))throw new v$2(911,false);e[gt$2]===null&&(e[gt$2]=[]),e[gt$2].push(t);}function vh(e,t){if(e[gt$2]===null)return;let n=e[gt$2].indexOf(t);n!==-1&&e[gt$2].splice(n,1);}function mt$3(e){let t=e[te];return Te$2(t)?t[te]:t}function Bc(e){return e[hr$1]??=[]}function Vc(e){return e.cleanup??=[]}function Dh(e,t,n,r){let o=Bc(t);o.push(n),e.firstCreatePass&&Vc(e).push(r,o.length-1);}var A$1={lFrame:xh(null),bindingsEnabled:true,skipHydrationRootTNode:null};var dc=false;function Eh(){return A$1.lFrame.elementDepthCount}function _h(){A$1.lFrame.elementDepthCount++;}function Hc(){A$1.lFrame.elementDepthCount--;}function ns(){return A$1.bindingsEnabled}function Uc(){return A$1.skipHydrationRootTNode!==null}function $c(e){return A$1.skipHydrationRootTNode===e}function zc(){A$1.skipHydrationRootTNode=null;}function _$2(){return A$1.lFrame.lView}function $$1(){return A$1.lFrame.tView}function Ih(e){return A$1.lFrame.contextLView=e,e[J$3]}function wh(e){return A$1.lFrame.contextLView=null,e}function ne(){let e=Gc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Gc(){return A$1.lFrame.currentTNode}function yr(){let e=A$1.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vt$2(e,t){let n=A$1.lFrame;n.currentTNode=e,n.isParent=t;}function Wc(){return A$1.lFrame.isParent}function qc(){A$1.lFrame.isParent=false;}function bh(){return A$1.lFrame.contextLView}function Zc(){return dc}function Jr$1(e){let t=dc;return dc=e,t}function fo$1(){let e=A$1.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ch(e){return A$1.lFrame.bindingIndex=e}function Wt$1(){return A$1.lFrame.bindingIndex++}function Yc(e){let t=A$1.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Th(){return A$1.lFrame.inI18n}function Kc(e){A$1.lFrame.inI18n=e;}function Sh(e,t){let n=A$1.lFrame;n.bindingIndex=n.bindingRootIndex=e,rs(t);}function Mh(){return A$1.lFrame.currentDirectiveIndex}function rs(e){A$1.lFrame.currentDirectiveIndex=e;}function Nh(e){let t=A$1.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function os(){return A$1.lFrame.currentQueryIndex}function ho$1(e){A$1.lFrame.currentQueryIndex=e;}function XD(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[se$2]:null}function Qc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=XD(i),o===null||(i=i[Cn$1],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=A$1.lFrame=Ah();return r.currentTNode=t,r.lView=e,true}function is(e){let t=Ah(),n=e[E];A$1.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Ah(){let e=A$1.lFrame,t=e===null?null:e.child;return t===null?xh(e):t}function xh(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 Rh(){let e=A$1.lFrame;return A$1.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Xc=Rh;function ss(){let e=Rh();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 Oh(e){return (A$1.lFrame.contextLView=yh(e,A$1.lFrame.contextLView))[J$3]}function ot$2(){return A$1.lFrame.selectedIndex}function qt$1(e){A$1.lFrame.selectedIndex=e;}function xn$2(){let e=A$1.lFrame;return Xi$1(e.tView,e.selectedIndex)}function kh(){A$1.lFrame.currentNamespace=Qi$1;}function Fh(){JD();}function JD(){A$1.lFrame.currentNamespace=null;}function Jc(){return A$1.lFrame.currentNamespace}var Ph=true;function po$1(){return Ph}function vr(e){Ph=e;}function fc(e,t=null,n=null,r){let o=eu(e,t,n);return o.resolveInjectorInitializers(),o}function eu(e,t=null,n=null,r,o=new Set){let i=[n||oe$1,uh(e)];return new _n$1(i,t||dr$1(),null,o)}var X$3=class e{static THROW_IF_NOT_FOUND=vn$1;static NULL=new cr$1;static create(t,n){if(Array.isArray(t))return fc({name:""},n,t);{let r=t.name??"";return fc({name:r},t.parent,t.providers)}}static \u0275prov=k({token:e,providedIn:"any",factory:()=>S(so$1)});static __NG_ELEMENT_ID__=-1},P=new D(""),$e$1=(()=>{class e{static __NG_ELEMENT_ID__=eE;static __NG_ENV_ID__=n=>n}return e})(),ji$1=class ji extends $e$1{_lView;constructor(t){super(),this._lView=t;