angular-t9n
Version:
A translation tool for Angular i18n
7 lines • 286 kB
JavaScript
import{a as P,b as le,d as zn}from"./chunk-4CLCTAJ7.js";function E(e){return typeof e=="function"}function nn(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 Pr=nn(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 Dt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;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(E(r))try{r()}catch(i){t=i instanceof Pr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Zl(i)}catch(s){t=t??[],s instanceof Pr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Pr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Zl(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)&&Dt(n,t)}remove(t){let{_finalizers:n}=this;n&&Dt(n,t),t instanceof e&&t._removeParent(this)}};$.EMPTY=(()=>{let e=new $;return e.closed=!0,e})();var us=$.EMPTY;function Lr(e){return e instanceof $||e&&"closed"in e&&E(e.remove)&&E(e.add)&&E(e.unsubscribe)}function Zl(e){E(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var rn={setTimeout(e,t,...n){let{delegate:r}=rn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=rn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function jr(e){rn.setTimeout(()=>{let{onUnhandledError:t}=Te;if(t)t(e);else throw e})}function bt(){}var Yl=ds("C",void 0,void 0);function Kl(e){return ds("E",void 0,e)}function Ql(e){return ds("N",e,void 0)}function ds(e,t,n){return{kind:e,value:t,error:n}}var Et=null;function on(e){if(Te.useDeprecatedSynchronousErrorHandling){let t=!Et;if(t&&(Et={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Et;if(Et=null,n)throw r}}else e()}function Xl(e){Te.useDeprecatedSynchronousErrorHandling&&Et&&(Et.errorThrown=!0,Et.error=e)}var It=class extends ${constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Lr(t)&&t.add(this)):this.destination=qm}static create(t,n,r){return new He(t,n,r)}next(t){this.isStopped?hs(Ql(t),this):this._next(t)}error(t){this.isStopped?hs(Kl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?hs(Yl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Wm=Function.prototype.bind;function fs(e,t){return Wm.call(e,t)}var ps=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Vr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Vr(r)}else Vr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Vr(n)}}},He=class extends It{constructor(t,n,r){super();let o;if(E(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Te.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&fs(t.next,i),error:t.error&&fs(t.error,i),complete:t.complete&&fs(t.complete,i)}):o=t}this.destination=new ps(o)}};function Vr(e){Te.useDeprecatedSynchronousErrorHandling?Xl(e):jr(e)}function Gm(e){throw e}function hs(e,t){let{onStoppedNotification:n}=Te;n&&rn.setTimeout(()=>n(e,t))}var qm={closed:!0,next:bt,error:Gm,complete:bt};var sn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function te(e){return e}function Zm(...e){return ms(e)}function ms(e){return e.length===0?te:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var T=(()=>{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=Km(n)?n:new He(n,r,o);return on(()=>{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=Jl(r),new r((o,i)=>{let s=new He({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)}[sn](){return this}pipe(...n){return ms(n)(this)}toPromise(n){return n=Jl(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 Jl(e){var t;return(t=e??Te.Promise)!==null&&t!==void 0?t:Promise}function Ym(e){return e&&E(e.next)&&E(e.error)&&E(e.complete)}function Km(e){return e&&e instanceof It||Ym(e)&&Lr(e)}var eu=nn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var k=(()=>{class e extends T{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Br(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new eu}next(n){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,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?us:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,Dt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new T;return n.source=this,n}}return e.create=(t,n)=>new Br(t,n),e})(),Br=class extends k{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:us}};var wt=class extends k{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 Ur(e){return e&&E(e.schedule)}function gs(e){return e[e.length-1]}function $r(e){return E(gs(e))?e.pop():void 0}function je(e){return Ur(gs(e))?e.pop():void 0}function tu(e,t){return typeof gs(e)=="number"?e.pop():t}function ru(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(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function nu(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 Ct(e){return this instanceof Ct?(this.v=e,this):new Ct(e)}function ou(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(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(o[f]=function(g){return new Promise(function(y,v){i.push([f,g,y,v])>1||c(f,g)})},m&&(o[f]=m(o[f])))}function c(f,m){try{l(r[f](m))}catch(g){h(i[0][3],g)}}function l(f){f.value instanceof Ct?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function iu(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 nu=="function"?nu(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(l){i({value:l,done:a})},s)}}var an=e=>e&&typeof e.length=="number"&&typeof e!="function";function Hr(e){return E(e?.then)}function zr(e){return E(e[sn])}function Wr(e){return Symbol.asyncIterator&&E(e?.[Symbol.asyncIterator])}function Gr(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 Qm(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qr=Qm();function Zr(e){return E(e?.[qr])}function Yr(e){return ou(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Ct(n.read());if(o)return yield Ct(void 0);yield yield Ct(r)}}finally{n.releaseLock()}})}function Kr(e){return E(e?.getReader)}function F(e){if(e instanceof T)return e;if(e!=null){if(zr(e))return Xm(e);if(an(e))return Jm(e);if(Hr(e))return eg(e);if(Wr(e))return su(e);if(Zr(e))return tg(e);if(Kr(e))return ng(e)}throw Gr(e)}function Xm(e){return new T(t=>{let n=e[sn]();if(E(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Jm(e){return new T(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function eg(e){return new T(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,jr)})}function tg(e){return new T(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function su(e){return new T(t=>{rg(e,t).catch(n=>t.error(n))})}function ng(e){return su(Yr(e))}function rg(e,t){var n,r,o,i;return ru(this,void 0,void 0,function*(){try{for(n=iu(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 pe(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ys(e){return E(e?.lift)}function I(e){return t=>{if(ys(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(e,t,n,r,o){return new vs(e,t,n,r,o)}var vs=class extends It{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 Qr(e,t=0){return I((n,r)=>{n.subscribe(b(r,o=>pe(r,e,()=>r.next(o),t),()=>pe(r,e,()=>r.complete(),t),o=>pe(r,e,()=>r.error(o),t)))})}function Xr(e,t=0){return I((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function au(e,t){return F(e).pipe(Xr(t),Qr(t))}function cu(e,t){return F(e).pipe(Xr(t),Qr(t))}function lu(e,t){return new T(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function uu(e,t){return new T(n=>{let r;return pe(n,t,()=>{r=e[qr](),pe(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,!0)}),()=>E(r?.return)&&r.return()})}function Jr(e,t){if(!e)throw new Error("Iterable cannot be null");return new T(n=>{pe(n,t,()=>{let r=e[Symbol.asyncIterator]();pe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function du(e,t){return Jr(Yr(e),t)}function fu(e,t){if(e!=null){if(zr(e))return au(e,t);if(an(e))return lu(e,t);if(Hr(e))return cu(e,t);if(Wr(e))return Jr(e,t);if(Zr(e))return uu(e,t);if(Kr(e))return du(e,t)}throw Gr(e)}function be(e,t){return t?fu(e,t):F(e)}function ze(...e){let t=je(e);return be(e,t)}function W(e,t){return I((n,r)=>{let o=0;n.subscribe(b(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:og}=Array,{getPrototypeOf:ig,prototype:sg,keys:ag}=Object;function eo(e){if(e.length===1){let t=e[0];if(og(t))return{args:t,keys:null};if(cg(t)){let n=ag(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function cg(e){return e&&typeof e=="object"&&ig(e)===sg}var{isArray:lg}=Array;function ug(e,t){return lg(t)?e(...t):e(t)}function cn(e){return W(t=>ug(e,t))}function to(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function dg(...e){let t=$r(e),{args:n,keys:r}=eo(e),o=new T(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;F(n[u]).subscribe(b(i,h=>{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?to(r,a):a),i.complete())}))}});return t?o.pipe(cn(t)):o}function ue(e,t){return I((n,r)=>{let o=0;n.subscribe(b(r,i=>e.call(t,i,o++)&&r.next(i)))})}var Mt=new T(e=>e.complete());function We(e){return e<=0?()=>Mt:I((t,n)=>{let r=0;t.subscribe(b(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ds(e={}){let{connector:t=()=>new k,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,u=d=!1},m=()=>{let g=s;f(),g?.unsubscribe()};return I((g,y)=>{l++,!d&&!u&&h();let v=c=c??t();y.add(()=>{l--,l===0&&!d&&!u&&(a=_s(m,o))}),v.subscribe(y),!s&&l>0&&(s=new He({next:S=>v.next(S),error:S=>{d=!0,h(),a=_s(f,n,S),v.error(S)},complete:()=>{u=!0,h(),a=_s(f,r),v.complete()}}),F(g).subscribe(s))})(i)}}function _s(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new He({next:()=>{r.unsubscribe(),e()}});return F(t(...n)).subscribe(r)}function no(e,t){return I((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(b(r,c=>{o?.unsubscribe();let l=0,u=i++;F(e(c,u)).subscribe(o=b(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ro(e,t,n){let r=E(e)||t||n?{next:e,error:t,complete:n}:e;return r?I((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(b(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):te}function bs(){return I((e,t)=>{let n=null;e._refCount++;let r=b(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 Wn=class extends T{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ys(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 $;let n=this.getSubject();t.add(this.source.subscribe(b(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=$.EMPTY)}return t}refCount(){return bs()(this)}};var Gn={now(){return(Gn.delegate||Date).now()},delegate:void 0};var qn=class extends k{constructor(t=1/0,n=1/0,r=Gn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,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 oo=class extends ${constructor(t,n){super()}schedule(t,n=0){return this}};var Zn={setInterval(e,t,...n){let{delegate:r}=Zn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Zn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var io=class extends oo{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}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=!0,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 Zn.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Zn.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,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=!1,Dt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var ln=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)}};ln.now=Gn.now;var so=class extends ln{constructor(t,n=ln.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Tt=new so(io),hu=Tt;function fg(e,t){let n=E(e)?e:()=>e,r=o=>o.error(n());return new T(t?o=>t.schedule(r,0,o):r)}function ao(e){return!!e&&(e instanceof T||E(e.lift)&&E(e.subscribe))}var xt=nn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function pu(e){return e instanceof Date&&!isNaN(e)}function Es(...e){let t=je(e),n=$r(e),{args:r,keys:o}=eo(e);if(r.length===0)return be([],t);let i=new T(hg(r,t,o?s=>to(o,s):te));return n?i.pipe(cn(n)):i}function hg(e,t,n=te){return r=>{mu(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)mu(t,()=>{let l=be(e[c],t),u=!1;l.subscribe(b(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function mu(e,t,n){e?pe(n,e,t):t()}function gu(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&t.complete()},f=g=>l<r?m(g):c.push(g),m=g=>{i&&t.next(g),l++;let y=!1;F(n(g,u++)).subscribe(b(t,v=>{o?.(v),i?f(v):t.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(l--;c.length&&l<r;){let v=c.shift();s?pe(t,s,()=>m(v)):m(v)}h()}catch(v){t.error(v)}}))};return e.subscribe(b(t,f,()=>{d=!0,h()})),()=>{a?.()}}function xe(e,t,n=1/0){return E(t)?xe((r,o)=>W((i,s)=>t(r,i,o,s))(F(e(r,o))),n):(typeof t=="number"&&(n=t),I((r,o)=>gu(r,o,e,n)))}function Yn(e=1/0){return xe(te,e)}function yu(){return Yn(1)}function rt(...e){return yu()(be(e,je(e)))}function pg(e){return new T(t=>{F(e()).subscribe(t)})}var mg=["addListener","removeListener"],gg=["addEventListener","removeEventListener"],yg=["on","off"];function un(e,t,n,r){if(E(n)&&(r=n,n=void 0),r)return un(e,t,n).pipe(cn(r));let[o,i]=Dg(e)?gg.map(s=>a=>e[s](t,a,n)):vg(e)?mg.map(vu(e,t)):_g(e)?yg.map(vu(e,t)):[];if(!o&&an(e))return xe(s=>un(s,t,n))(F(e));if(!o)throw new TypeError("Invalid event target");return new T(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function vu(e,t){return n=>r=>e[n](t,r)}function vg(e){return E(e.addListener)&&E(e.removeListener)}function _g(e){return E(e.on)&&E(e.off)}function Dg(e){return E(e.addEventListener)&&E(e.removeEventListener)}function dn(e=0,t,n=hu){let r=-1;return t!=null&&(Ur(t)?n=t:r=t),new T(o=>{let i=pu(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 bg(...e){let t=je(e),n=tu(e,1/0),r=e;return r.length?r.length===1?F(r[0]):Yn(n)(be(r,t)):Mt}function _u(e){return I((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(b(n,l=>{r=!0,o=l,i||F(e(l)).subscribe(i=b(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function co(e,t=Tt){return _u(()=>dn(e,t))}function Du(e){return I((t,n)=>{let r=null,o=!1,i;r=t.subscribe(b(n,void 0,void 0,s=>{i=F(e(s,Du(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function bu(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(b(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Is(e,t){return E(t)?xe(e,t,1):xe(e,1)}function St(e,t=Tt){return I((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(b(r,l=>{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Kn(e){return I((t,n)=>{let r=!1;t.subscribe(b(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Eu(){return I((e,t)=>{e.subscribe(b(t,bt))})}function ws(e){return W(()=>e)}function Cs(e,t){return t?n=>rt(t.pipe(We(1),Eu()),n.pipe(Cs(e))):xe((n,r)=>F(e(n,r)).pipe(We(1),ws(n)))}function Eg(e,t=Tt){let n=dn(e,t);return Cs(()=>n)}function lo(e,t=te){return e=e??Ig,I((n,r)=>{let o,i=!0;n.subscribe(b(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Ig(e,t){return e===t}function uo(e=wg){return I((t,n)=>{let r=!1;t.subscribe(b(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function wg(){return new xt}function fo(e){return I((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Iu(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ue((o,i)=>e(o,i,r)):te,We(1),n?Kn(t):uo(()=>new xt))}function Ms(e){return e<=0?()=>Mt:I((t,n)=>{let r=[];t.subscribe(b(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 Cg(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ue((o,i)=>e(o,i,r)):te,Ms(1),n?Kn(t):uo(()=>new xt))}function wu(){return I((e,t)=>{let n,r=!1;e.subscribe(b(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function Mg(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=!1}=t;return n<=0?te:I((i,s)=>{let a=0,c,l=()=>{let u=!1;c=i.subscribe(b(s,d=>{o&&(a=0),s.next(d)},void 0,d=>{if(a++<n){let h=()=>{c?(c.unsubscribe(),c=null,l()):u=!0};if(r!=null){let f=typeof r=="number"?dn(r):F(r(d,a)),m=b(s,()=>{m.unsubscribe(),h()},()=>{s.complete()});f.subscribe(m)}else h()}else s.error(d)})),u&&(c.unsubscribe(),c=null,l())};l()})}function Tg(e,t){return I(bu(e,t,arguments.length>=2,!0))}function Cu(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Ds({connector:()=>new qn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Qn(e){return ue((t,n)=>e<=n)}function ho(...e){let t=je(e);return I((n,r)=>{(t?rt(e,n,t):rt(e,n)).subscribe(r)})}function Nt(e){return I((t,n)=>{F(e).subscribe(b(n,()=>n.complete(),bt)),!n.closed&&t.subscribe(n)})}function xg(e,t=!1){return I((n,r)=>{let o=0;n.subscribe(b(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function As(e,t){return Object.is(e,t)}var q=null,Xn=!1,Rs=1,oe=Symbol("SIGNAL");function A(e){let t=q;return q=e,t}function Mu(){return q}function Sg(){return Xn}var At={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function mo(e){if(Xn)throw new Error("");if(q===null)return;q.consumerOnSignalRead(e);let t=q.nextProducerIndex++;if(yo(q),t<q.producerNode.length&&q.producerNode[t]!==e&&Jn(q)){let n=q.producerNode[t];go(n,q.producerIndexOfThis[t])}q.producerNode[t]!==e&&(q.producerNode[t]=e,q.producerIndexOfThis[t]=Jn(q)?Nu(e,q,t):0),q.producerLastReadVersion[t]=e.version}function Ng(){Rs++}function Os(e){if(!(Jn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Rs)){if(!e.producerMustRecompute(e)&&!tr(e)){Ss(e);return}e.producerRecomputeValue(e),Ss(e)}}function Tu(e){if(e.liveConsumerNode===void 0)return;let t=Xn;Xn=!0;try{for(let n of e.liveConsumerNode)n.dirty||Su(n)}finally{Xn=t}}function xu(){return q?.consumerAllowSignalWrites!==!1}function Su(e){e.dirty=!0,Tu(e),e.consumerMarkedDirty?.(e)}function Ss(e){e.dirty=!1,e.lastCleanEpoch=Rs}function fn(e){return e&&(e.nextProducerIndex=0),A(e)}function er(e,t){if(A(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Jn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)go(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function tr(e){yo(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Os(n),r!==n.version))return!0}return!1}function hn(e){if(yo(e),Jn(e))for(let t=0;t<e.producerNode.length;t++)go(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Nu(e,t,n){if(Au(e),e.liveConsumerNode.length===0&&Ru(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Nu(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function go(e,t){if(Au(e),e.liveConsumerNode.length===1&&Ru(e))for(let r=0;r<e.producerNode.length;r++)go(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];yo(o),o.producerIndexOfThis[r]=t}}function Jn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function yo(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Au(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ru(e){return e.producerNode!==void 0}function ks(e){let t=Object.create(Ag);t.computation=e;let n=()=>{if(Os(t),mo(t),t.value===po)throw t.error;return t.value};return n[oe]=t,n}var Ts=Symbol("UNSET"),xs=Symbol("COMPUTING"),po=Symbol("ERRORED"),Ag=le(P({},At),{value:Ts,dirty:!0,error:null,equal:As,producerMustRecompute(e){return e.value===Ts||e.value===xs},producerRecomputeValue(e){if(e.value===xs)throw new Error("Detected cycle in computations.");let t=e.value;e.value=xs;let n=fn(e),r;try{r=e.computation()}catch(o){r=po,e.error=o}finally{er(e,n)}if(t!==Ts&&t!==po&&r!==po&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Rg(){throw new Error}var Ou=Rg;function ku(){Ou()}function Fu(e){Ou=e}var Og=null;function Pu(e){let t=Object.create(Fs);t.value=e;let n=()=>(mo(t),t.value);return n[oe]=t,n}function vo(e,t){xu()||ku(),e.equal(e.value,t)||(e.value=t,kg(e))}function Lu(e,t){xu()||ku(),vo(e,t(e.value))}var Fs=le(P({},At),{equal:As,value:void 0});function kg(e){e.version++,Ng(),Tu(e),Og?.()}function ju(e,t,n){let r=Object.create(Fg);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=c=>{r.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(hn(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Ns)}let a=()=>{if(r.fn===null)return;if(Sg())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!tr(r))return;r.hasRun=!0;let c=fn(r);try{r.cleanupFn(),r.cleanupFn=Ns,r.fn(o)}finally{er(r,c)}};return r.ref={notify:()=>Su(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[oe]:r},r.ref}var Ns=()=>{},Fg=le(P({},At),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Ns});var xd="https://g.co/ng/security#xss",N=class extends Error{code;constructor(t,n){super(hc(t,n)),this.code=t}};function hc(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Sd=Symbol("InputSignalNode#UNSET"),Pg=le(P({},Fs),{transformFn:void 0,applyValueToInputSignal(e,t){vo(e,t)}});function Nd(e,t){let n=Object.create(Pg);n.value=e,n.transformFn=t?.transform;function r(){if(mo(n),n.value===Sd)throw new N(-950,!1);return n.value}return r[oe]=n,r}function mr(e){return{toString:e}.toString()}var _o="__parameters__";function Lg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Ad(e,t,n){return mr(()=>{let r=Lg(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(_o)?c[_o]:Object.defineProperty(c,_o,{value:[]})[_o];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var ko=globalThis;function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function jg(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function fe(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(fe).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(`
`);return n===-1?t:t.substring(0,n)}function Ys(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Vg=j({__forward_ref__:j});function pc(e){return e.__forward_ref__=pc,e.toString=function(){return fe(this())},e}function ne(e){return Rd(e)?e():e}function Rd(e){return typeof e=="function"&&e.hasOwnProperty(Vg)&&e.__forward_ref__===pc}function Bg(e,t,n){e!=t&&Ug(n,e,t,"==")}function Ug(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function _(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function K(e){return{providers:e.providers||[],imports:e.imports||[]}}function fi(e){return Vu(e,Od)||Vu(e,kd)}function sR(e){return fi(e)!==null}function Vu(e,t){return e.hasOwnProperty(t)?e[t]:null}function $g(e){let t=e&&(e[Od]||e[kd]);return t||null}function Bu(e){return e&&(e.hasOwnProperty(Uu)||e.hasOwnProperty(Hg))?e[Uu]:null}var Od=j({\u0275prov:j}),Uu=j({\u0275inj:j}),kd=j({ngInjectableDef:j}),Hg=j({ngInjectorDef:j}),w=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=_({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Fd(e){return e&&!!e.\u0275providers}var zg=j({\u0275cmp:j}),Wg=j({\u0275dir:j}),Gg=j({\u0275pipe:j}),qg=j({\u0275mod:j}),Fo=j({\u0275fac:j}),or=j({__NG_ELEMENT_ID__:j}),$u=j({__NG_ENV_ID__:j});function hi(e){return typeof e=="string"?e:e==null?"":String(e)}function Zg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():hi(e)}function Yg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new N(-200,e)}function mc(e,t){throw new N(-201,!1)}var R=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(R||{}),Ks;function Pd(){return Ks}function me(e){let t=Ks;return Ks=e,t}function Ld(e,t,n){let r=fi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&R.Optional)return null;if(t!==void 0)return t;mc(e,"Injector")}var Kg={},sr=Kg,Qs="__NG_DI_FLAG__",Po="ngTempTokenPath",Qg="ngTokenPath",Xg=/\n/gm,Jg="\u0275",Hu="__source",vn;function ey(){return vn}function ot(e){let t=vn;return vn=e,t}function ty(e,t=R.Default){if(vn===void 0)throw new N(-203,!1);return vn===null?Ld(e,void 0,t):vn.get(e,t&R.Optional?null:void 0,t)}function z(e,t=R.Default){return(Pd()||ty)(ne(e),t)}function p(e,t=R.Default){return z(e,pi(t))}function pi(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Xs(e){let t=[];for(let n=0;n<e.length;n++){let r=ne(e[n]);if(Array.isArray(r)){if(r.length===0)throw new N(900,!1);let o,i=R.Default;for(let s=0;s<r.length;s++){let a=r[s],c=ny(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(z(o,i))}else t.push(z(r))}return t}function jd(e,t){return e[Qs]=t,e.prototype[Qs]=t,e}function ny(e){return e[Qs]}function ry(e,t,n,r){let o=e[Po];throw t[Hu]&&o.unshift(t[Hu]),e.message=oy(`
`+e.message,o,n,r),e[Qg]=o,e[Po]=null,e}function oy(e,t,n,r=null){e=e&&e.charAt(0)===`
`&&e.charAt(1)==Jg?e.slice(2):e;let o=fe(t);if(Array.isArray(t))o=t.map(fe).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):fe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Xg,`
`)}`}var Vd=jd(Ad("Optional"),8);var iy=jd(Ad("SkipSelf"),4);function Ot(e,t){let n=e.hasOwnProperty(Fo);return n?e[Fo]:null}function sy(e,t,n){if(e.length!==t.length)return!1;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!1}return!0}function ay(e){return e.flat(Number.POSITIVE_INFINITY)}function gc(e,t){e.forEach(n=>Array.isArray(n)?gc(n,t):t(n))}function Bd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Lo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function cy(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function ly(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 mi(e,t,n){let r=gr(e,t);return r>=0?e[r|1]=n:(r=~r,ly(e,r,t,n)),r}function Ps(e,t){let n=gr(e,t);if(n>=0)return e[n|1]}function gr(e,t){return uy(e,t,1)}function uy(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 qe={},ie=[],jo=new w(""),Ud=new w("",-1),$d=new w(""),Vo=class{get(t,n=sr){if(n===sr){let r=new Error(`NullInjectorError: No provider for ${fe(t)}!`);throw r.name="NullInjectorError",r}return n}};function Hd(e,t){let n=e[qg]||null;if(!n&&t===!0)throw new Error(`Type ${fe(e)} does not have '\u0275mod' property.`);return n}function at(e){return e[zg]||null}function yc(e){return e[Wg]||null}function zd(e){return e[Gg]||null}function dy(e){let t=at(e)||yc(e)||zd(e);return t!==null?t.standalone:!1}function Wd(e){return{\u0275providers:e}}function fy(...e){return{\u0275providers:Gd(!0,e),\u0275fromNgModule:!0}}function Gd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return gc(t,s=>{let a=s;Js(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&qd(o,i),n}function qd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];vc(o,i=>{t(i,r)})}}function Js(e,t,n,r){if(e=ne(e),!e)return!1;let o=null,i=Bu(e),s=!i&&at(e);if(!i&&!s){let c=e.ngModule;if(i=Bu(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Js(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{gc(i.imports,u=>{Js(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&qd(l,t)}if(!a){let l=Ot(o)||(()=>new o);t({provide:o,useFactory:l,deps:ie},o),t({provide:$d,useValue:o,multi:!0},o),t({provide:jo,useValue:()=>z(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;vc(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function vc(e,t){for(let n of e)Fd(n)&&(n=n.\u0275providers),Array.isArray(n)?vc(n,t):t(n)}var hy=j({provide:String,useValue:j});function Zd(e){return e!==null&&typeof e=="object"&&hy in e}function py(e){return!!(e&&e.useExisting)}function my(e){return!!(e&&e.useFactory)}function Dn(e){return typeof e=="function"}function gy(e){return!!e.useClass}var Yd=new w(""),Mo={},yy={},Ls;function gi(){return Ls===void 0&&(Ls=new Vo),Ls}var Ee=class{},ar=class extends Ee{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ta(t,s=>this.processProvider(s)),this.records.set(Ud,pn(void 0,this)),o.has("environment")&&this.records.set(Ee,pn(void 0,this));let i=this.records.get(Yd);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get($d,ie,R.Self))}destroy(){nr(this),this._destroyed=!0;let t=A(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(),A(t)}}onDestroy(t){return nr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){nr(this);let n=ot(this),r=me(void 0),o;try{return t()}finally{ot(n),me(r)}}get(t,n=sr,r=R.Default){if(nr(this),t.hasOwnProperty($u))return t[$u](this);r=pi(r);let o,i=ot(this),s=me(void 0);try{if(!(r&R.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=Ey(t)&&fi(t);l&&this.injectableDefInScope(l)?c=pn(ea(t),Mo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&R.Self?gi():this.parent;return n=r&R.Optional&&n===sr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Po]=a[Po]||[]).unshift(fe(t)),i)throw a;return ry(a,t,"R3InjectorError",this.source)}else throw a}finally{me(s),ot(i)}}resolveInjectorInitializers(){let t=A(null),n=ot(this),r=me(void 0),o;try{let i=this.get(jo,ie,R.Self);for(let s of i)s()}finally{ot(n),me(r),A(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(fe(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ne(t);let n=Dn(t)?t:ne(t&&t.provide),r=_y(t);if(!Dn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=pn(void 0,Mo,!0),o.factory=()=>Xs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=A(null);try{return n.value===Mo&&(n.value=yy,n.value=n.factory()),typeof n.value=="object"&&n.value&&by(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ne(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 ea(e){let t=fi(e),n=t!==null?t.factory:Ot(e);if(n!==null)return n;if(e instanceof w)throw new N(204,!1);if(e instanceof Function)return vy(e);throw new N(204,!1)}function vy(e){if(e.length>0)throw new N(204,!1);let n=$g(e);return n!==null?()=>n.factory(e):()=>new e}function _y(e){if(Zd(e))return pn(void 0,e.useValue);{let t=Kd(e);return pn(t,Mo)}}function Kd(e,t,n){let r;if(Dn(e)){let o=ne(e);return Ot(o)||ea(o)}else if(Zd(e))r=()=>ne(e.useValue);else if(my(e))r=()=>e.useFactory(...Xs(e.deps||[]));else if(py(e))r=()=>z(ne(e.useExisting));else{let o=ne(e&&(e.useClass||e.provide));if(Dy(e))r=()=>new o(...Xs(e.deps));else return Ot(o)||ea(o)}return r}function nr(e){if(e.destroyed)throw new N(205,!1)}function pn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Dy(e){return!!e.deps}function by(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Ey(e){return typeof e=="function"||typeof e=="object"&&e instanceof w}function ta(e,t){for(let n of e)Array.isArray(n)?ta(n,t):n&&Fd(n)?ta(n.\u0275providers,t):t(n)}function yi(e,t){e instanceof ar&&nr(e);let n,r=ot(e),o=me(void 0);try{return t()}finally{ot(r),me(o)}}function Qd(){return Pd()!==void 0||ey()!=null}function vi(e){if(!Qd())throw new N(-203,!1)}function Iy(e){return typeof e=="function"}var $e=0,M=1,D=2,ce=3,Ae=4,he=5,bn=6,Bo=7,se=8,En=9,Ze=10,V=11,cr=12,zu=13,An=14,ge=15,kt=16,mn=17,Ye=18,_i=19,Xd=20,it=21,To=22,Ft=23,_e=24,Z=25,_c=1;var Pt=7,Uo=8,In=9,ae=10,$o=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}($o||{});function st(e){return Array.isArray(e)&&typeof e[_c]=="object"}function Je(e){return Array.isArray(e)&&e[_c]===!0}function Dc(e){return(e.flags&4)!==0}function Di(e){return e.componentOffset>-1}function bi(e){return(e.flags&1)===1}function Ke(e){return!!e.template}function na(e){return(e[D]&512)!==0}var ra=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Jd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Ei=(()=>{let e=()=>ef;return e.ngInherit=!0,e})();function ef(e){return e.type.prototype.ngOnChanges&&(e.setInput=Cy),wy}function wy(){let e=nf(this),t=e?.current;if(t){let n=e.previous;if(n===qe)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Cy(e,t,n,r,o){let i=this.declaredInputs[r],s=nf(e)||My(e,{previous:qe,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new ra(l&&l.currentValue,n,c===qe),Jd(e,t,o,n)}var tf="__ngSimpleChanges__";function nf(e){return e[tf]||null}function My(e,t){return e[tf]=t}var Wu=null;var Ve=function(e,t,n){Wu?.(e,t,n)},rf="svg",Ty="math";function Re(e){for(;Array.isArray(e);)e=e[$e];return e}function xy(e){for(;Array.isArray(e);){if(typeof e[_c]=="object")return e;e=e[$e]}return null}function of(e,t){return Re(t[e])}function we(e,t){return Re(t[e.index])}function bc(e,t){return e.data[t]}function sf(e,t){return e[t]}function ft(e,t){let n=t[e];return st(n)?n:n[$e]}function Sy(e){return(e[D]&4)===4}function Ec(e){return(e[D]&128)===128}function Ny(e){return Je(e[ce])}function Qe(e,t){return t==null?null:e[t]}function af(e){e[mn]=0}function Ic(e){e[D]&1024||(e[D]|=1024,Ec(e)&&yr(e))}function Ay(e,t){for(;e>0;)t=t[An],e--;return t}function Ii(e){return!!(e[D]&9216||e[_e]?.dirty)}function oa(e){e[Ze].changeDetectionScheduler?.notify(9),e[D]&64&&(e[D]|=1024),Ii(e)&&yr(e)}function yr(e){e[Ze].changeDetectionScheduler?.notify(0);let t=Lt(e);for(;t!==null&&!(t[D]&8192||(t[D]|=8192,!Ec(t)));)t=Lt(t)}function cf(e,t){if((e[D]&256)===256)throw new N(911,!1);e[it]===null&&(e[it]=[]),e[it].push(t)}function Ry(e,t){if(e[it]===null)return;let n=e[it].indexOf(t);n!==-1&&e[it].splice(n,1)}function Lt(e){let t=e[ce];return Je(t)?t[ce]:t}var x={lFrame:yf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ia=!1;function Oy(){return x.lFrame.elementDepthCount}function ky(){x.lFrame.elementDepthCount++}function Fy(){x.lFrame.elementDepthCount--}function lf(){return x.bindingsEnabled}function uf(){return x.skipHydrationRootTNode!==null}function Py(e){return x.skipHydrationRootTNode===e}function Ly(){x.skipHydrationRootTNode=null}function C(){return x.lFrame.lView}function B(){return x.lFrame.tView}function aR(e){return x.lFrame.contextLView=e,e[se]}function cR(e){return x.lFrame.contextLView=null,e}function Q(){let e=df();for(;e!==null&&e.type===64;)e=e.parent;return e}function df(){return x.lFrame.currentTNode}function lr(){let e=x.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ue(e,t){let n=x.lFrame;n.currentTNode=e,n.isParent=t}function wc(){return x.lFrame.isParent}function Cc(){x.lFrame.isParent=!1}function jy(){return x.lFrame.contextLView}function ff(){return ia}function Ho(e){let t=ia;return ia=e,t}function wi(){let e=x.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Vy(e){return x.lFrame.bindingIndex=e}function Wt(){return x.lFrame.bindingIndex++}function hf(e){let t=x.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function By(){return x.lFrame.inI18n}function pf(e){x.lFrame.inI18n=e}function Uy(e,t){let n=x.lFrame;n.bindingIndex=n.bindingRootIndex=e,sa(t)}function $y(){return x.lFrame.currentDirectiveIndex}function sa(e){x.lFrame.currentDirectiveIndex=e}function Mc(e){let t=x.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Tc(){return x.lFrame.currentQueryIndex}function Ci(e){x.lFrame.currentQueryIndex=e}function Hy(e){let t=e[M];return t.type===2?t.declTNode:t.type===1?e[he]:null}function mf(e,t,n){if(n&R.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&R.Host);)if(o=Hy(i),o===null||(i=i[An],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=x.lFrame=gf();return r.currentTNode=t,r.lView=e,!0}function xc(e){let t=gf(),n=e[M];x.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function gf(){let e=x.lFrame,t=e===null?null:e.child;return t===null?yf(e):t}function yf(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function vf(){let e=x.lFrame;return x.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var _f=vf;function Sc(){let e=vf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function zy(e){return(x.lFrame.contextLView=Ay(e,x.lFrame.contextLView))[se]}function ht(){return x.lFrame.selectedIndex}function jt(e){x.lFrame.selectedIndex=e}function vr(){let e=x.lFrame;return bc(e.tView,e.selectedIndex)}function lR(){x.lFrame.currentNamespace=rf}function uR(){Wy()}function Wy(){x.lFrame.currentNamespace=null}function Gy(){return x.lFrame.currentNamespace}var Df=!0;function _r(){return Df}function Dr(e){Df=e}function qy(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=ef(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Mi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function xo(e,t,n){bf(e,t,3,n)}function So(e,t,n,r){(e[D]&3)===n&&bf(e,t,n,r)}function js(e,t){let n=e[D];(n&3)===t&&(n&=16383,n+=1,e[D]=n)}function bf(e,t,n,r){let o=r!==void 0?e[mn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[mn]+=65536),(a<i||i==-1)&&(Zy(e,n,t,c),e[mn]=(e[mn]&4294901760)+c+2),c++}function Gu(e,t){Ve(4,e,t);let n=A(null);try{t.call(e)}finally{A