@rero/rero-ils-ui
Version:
User interface for RERO integrated library system (RERO ILS).
4 lines • 201 kB
JavaScript
var hm=Object.create;var Es=Object.defineProperty,gm=Object.defineProperties,mm=Object.getOwnPropertyDescriptor,ym=Object.getOwnPropertyDescriptors,vm=Object.getOwnPropertyNames,fo=Object.getOwnPropertySymbols,Em=Object.getPrototypeOf,Is=Object.prototype.hasOwnProperty,Kl=Object.prototype.propertyIsEnumerable;var Yl=(e,t,n)=>t in e?Es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t)=>{for(var n in t||={})Is.call(t,n)&&Yl(e,n,t[n]);if(fo)for(var n of fo(t))Kl.call(t,n)&&Yl(e,n,t[n]);return e},K=(e,t)=>gm(e,ym(t));var Jw=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Xw=e=>typeof e=="symbol"?e:e+"",eb=(e,t)=>{var n={};for(var r in e)Is.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fo)for(var r of fo(e))t.indexOf(r)<0&&Kl.call(e,r)&&(n[r]=e[r]);return n};var tb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Im=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vm(t))!Is.call(e,o)&&o!==n&&Es(e,o,{get:()=>t[o],enumerable:!(r=mm(t,o))||r.enumerable});return e};var nb=(e,t,n)=>(n=e!=null?hm(Em(e)):{},Im(t||!e||!e.__esModule?Es(n,"default",{value:e,enumerable:!0}):n,e));function E(e){return typeof e=="function"}function cn(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 po=cn(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 bt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var G=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 po?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Jl(i)}catch(s){t=t??[],s instanceof po?t=[...t,...s.errors]:t.push(s)}}if(t)throw new po(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Jl(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)&&bt(n,t)}remove(t){let{_finalizers:n}=this;n&&bt(n,t),t instanceof e&&t._removeParent(this)}};G.EMPTY=(()=>{let e=new G;return e.closed=!0,e})();var Ds=G.EMPTY;function ho(e){return e instanceof G||e&&"closed"in e&&E(e.remove)&&E(e.add)&&E(e.unsubscribe)}function Jl(e){E(e)?e():e.unsubscribe()}function ce(e){return e}function Dm(...e){return Cs(e)}function Cs(e){return e.length===0?ce:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ln={setTimeout(e,t,...n){let{delegate:r}=ln;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=ln;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function go(e){ln.setTimeout(()=>{let{onUnhandledError:t}=Te;if(t)t(e);else throw e})}function me(){}var Xl=Ts("C",void 0,void 0);function eu(e){return Ts("E",void 0,e)}function tu(e){return Ts("N",e,void 0)}function Ts(e,t,n){return{kind:e,value:t,error:n}}var _t=null;function un(e){if(Te.useDeprecatedSynchronousErrorHandling){let t=!_t;if(t&&(_t={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=_t;if(_t=null,n)throw r}}else e()}function nu(e){Te.useDeprecatedSynchronousErrorHandling&&_t&&(_t.errorThrown=!0,_t.error=e)}var Mt=class extends G{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ho(t)&&t.add(this)):this.destination=wm}static create(t,n,r){return new Qe(t,n,r)}next(t){this.isStopped?bs(tu(t),this):this._next(t)}error(t){this.isStopped?bs(eu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?bs(Xl,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()}}},Cm=Function.prototype.bind;function ws(e,t){return Cm.call(e,t)}var _s=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){mo(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){mo(r)}else mo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){mo(n)}}},Qe=class extends Mt{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&&ws(t.next,i),error:t.error&&ws(t.error,i),complete:t.complete&&ws(t.complete,i)}):o=t}this.destination=new _s(o)}};function mo(e){Te.useDeprecatedSynchronousErrorHandling?nu(e):go(e)}function Tm(e){throw e}function bs(e,t){let{onStoppedNotification:n}=Te;n&&ln.setTimeout(()=>n(e,t))}var wm={closed:!0,next:me,error:Tm,complete:me};var dn=typeof Symbol=="function"&&Symbol.observable||"@@observable";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=_m(n)?n:new Qe(n,r,o);return un(()=>{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=ru(r),new r((o,i)=>{let s=new Qe({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)}[dn](){return this}pipe(...n){return Cs(n)(this)}toPromise(n){return n=ru(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 ru(e){var t;return(t=e??Te.Promise)!==null&&t!==void 0?t:Promise}function bm(e){return e&&E(e.next)&&E(e.error)&&E(e.complete)}function _m(e){return e&&e instanceof Mt||bm(e)&&ho(e)}var ou=cn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var le=(()=>{class e extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new yo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ou}next(n){un(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){un(()=>{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(){un(()=>{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?Ds:(this.currentObservers=null,i.push(n),new G(()=>{this.currentObservers=null,bt(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 yo(t,n),e})(),yo=class extends le{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:Ds}};var Nt=new N(e=>e.complete());function vo(e){return e&&E(e.schedule)}function Ms(e){return e[e.length-1]}function Eo(e){return E(Ms(e))?e.pop():void 0}function ke(e){return vo(Ms(e))?e.pop():void 0}function iu(e,t){return typeof Ms(e)=="number"?e.pop():t}function au(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 su(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 St(e){return this instanceof St?(this.v=e,this):new St(e)}function cu(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(y){return new Promise(function(b,M){i.push([f,y,b,M])>1||c(f,y)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(y){p(i[0][3],y)}}function l(f){f.value instanceof St?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function lu(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 su=="function"?su(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 fn=e=>e&&typeof e.length=="number"&&typeof e!="function";function Io(e){return E(e?.then)}function Do(e){return E(e[dn])}function Co(e){return Symbol.asyncIterator&&E(e?.[Symbol.asyncIterator])}function To(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 Mm(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var wo=Mm();function bo(e){return E(e?.[wo])}function _o(e){return cu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield St(n.read());if(o)return yield St(void 0);yield yield St(r)}}finally{n.releaseLock()}})}function Mo(e){return E(e?.getReader)}function A(e){if(e instanceof N)return e;if(e!=null){if(Do(e))return Nm(e);if(fn(e))return Sm(e);if(Io(e))return xm(e);if(Co(e))return uu(e);if(bo(e))return Am(e);if(Mo(e))return Rm(e)}throw To(e)}function Nm(e){return new N(t=>{let n=e[dn]();if(E(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Sm(e){return new N(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function xm(e){return new N(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,go)})}function Am(e){return new N(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function uu(e){return new N(t=>{km(e,t).catch(n=>t.error(n))})}function Rm(e){return uu(_o(e))}function km(e,t){var n,r,o,i;return au(this,void 0,void 0,function*(){try{for(n=lu(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 ie(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 Om(e){return E(e?.lift)}function D(e){return t=>{if(Om(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 C(e,t,n,r,o){return new Ns(e,t,n,r,o)}var Ns=class extends Mt{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 No(e,t=0){return D((n,r)=>{n.subscribe(C(r,o=>ie(r,e,()=>r.next(o),t),()=>ie(r,e,()=>r.complete(),t),o=>ie(r,e,()=>r.error(o),t)))})}function So(e,t=0){return D((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function du(e,t){return A(e).pipe(So(t),No(t))}function fu(e,t){return A(e).pipe(So(t),No(t))}function pu(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 hu(e,t){return new N(n=>{let r;return ie(n,t,()=>{r=e[wo](),ie(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 xo(e,t){if(!e)throw new Error("Iterable cannot be null");return new N(n=>{ie(n,t,()=>{let r=e[Symbol.asyncIterator]();ie(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function gu(e,t){return xo(_o(e),t)}function mu(e,t){if(e!=null){if(Do(e))return du(e,t);if(fn(e))return pu(e,t);if(Io(e))return fu(e,t);if(Co(e))return xo(e,t);if(bo(e))return hu(e,t);if(Mo(e))return gu(e,t)}throw To(e)}function Oe(e,t){return t?mu(e,t):A(e)}function Pm(...e){let t=ke(e);return Oe(e,t)}function Lm(e,t){let n=E(e)?e:()=>e,r=o=>o.error(n());return new N(t?o=>t.schedule(r,0,o):r)}function Fm(e){return!!e&&(e instanceof N||E(e.lift)&&E(e.subscribe))}function Pe(e,t){return D((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:jm}=Array,{getPrototypeOf:Vm,prototype:Hm,keys:Bm}=Object;function Ao(e){if(e.length===1){let t=e[0];if(jm(t))return{args:t,keys:null};if($m(t)){let n=Bm(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function $m(e){return e&&typeof e=="object"&&Vm(e)===Hm}var{isArray:Um}=Array;function Wm(e,t){return Um(t)?e(...t):e(t)}function pn(e){return Pe(t=>Wm(e,t))}function Ro(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function qm(...e){let t=ke(e),n=Eo(e),{args:r,keys:o}=Ao(e);if(r.length===0)return Oe([],t);let i=new N(Gm(r,t,o?s=>Ro(o,s):ce));return n?i.pipe(pn(n)):i}function Gm(e,t,n=ce){return r=>{yu(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)yu(t,()=>{let l=Oe(e[c],t),u=!1;l.subscribe(C(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function yu(e,t,n){e?ie(n,e,t):t()}function zm(...e){let t=Eo(e),{args:n,keys:r}=Ao(e),o=new N(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;A(n[u]).subscribe(C(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Ro(r,a):a),i.complete())}))}});return t?o.pipe(pn(t)):o}function vu(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=y=>l<r?h(y):c.push(y),h=y=>{i&&t.next(y),l++;let b=!1;A(n(y,u++)).subscribe(C(t,M=>{o?.(M),i?f(M):t.next(M)},()=>{b=!0},void 0,()=>{if(b)try{for(l--;c.length&&l<r;){let M=c.shift();s?ie(t,s,()=>h(M)):h(M)}p()}catch(M){t.error(M)}}))};return e.subscribe(C(t,f,()=>{d=!0,p()})),()=>{a?.()}}function ye(e,t,n=1/0){return E(t)?ye((r,o)=>Pe((i,s)=>t(r,i,o,s))(A(e(r,o))),n):(typeof t=="number"&&(n=t),D((r,o)=>vu(r,o,e,n)))}function Xn(e=1/0){return ye(ce,e)}function Qm(...e){let t=ke(e),n=iu(e,1/0),r=e;return r.length?r.length===1?A(r[0]):Xn(n)(Oe(r,t)):Nt}function hn(e,t){return D((n,r)=>{let o=0;n.subscribe(C(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ss(e){return D((t,n)=>{let r=null,o=!1,i;r=t.subscribe(C(n,void 0,void 0,s=>{i=A(e(s,Ss(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}var ko=class extends G{constructor(t,n){super()}schedule(t,n=0){return this}};var er={setInterval(e,t,...n){let{delegate:r}=er;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=er;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var gn=class extends ko{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 er.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&&er.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,bt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var tr={now(){return(tr.delegate||Date).now()},delegate:void 0};var mn=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)}};mn.now=tr.now;var yn=class extends mn{constructor(t,n=mn.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 Ze=new yn(gn),Eu=Ze;function Iu(e,t=Ze){return D((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(C(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 xt(e){return e<=0?()=>Nt:D((t,n)=>{let r=0;t.subscribe(C(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Zm(e,t=ce){return e=e??Ym,D((n,r)=>{let o,i=!0;n.subscribe(C(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Ym(e,t){return e===t}function Du(e){return D((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}var nr=cn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Cu(e){return D((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Tu(e=Km){return D((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Km(){return new nr}function Jm(e,t){let n=arguments.length>=2;return r=>r.pipe(e?hn((o,i)=>e(o,i,r)):ce,xt(1),n?Cu(t):Tu(()=>new nr))}var rr=class extends le{constructor(t=1/0,n=1/0,r=tr){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)}}};function wu(e={}){let{connector:t=()=>new le,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},h=()=>{let y=s;f(),y?.unsubscribe()};return D((y,b)=>{l++,!d&&!u&&p();let M=c=c??t();b.add(()=>{l--,l===0&&!d&&!u&&(a=xs(h,o))}),M.subscribe(b),!s&&l>0&&(s=new Qe({next:H=>M.next(H),error:H=>{d=!0,p(),a=xs(f,n,H),M.error(H)},complete:()=>{u=!0,p(),a=xs(f,r),M.complete()}}),A(y).subscribe(s))})(i)}}function xs(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Qe({next:()=>{r.unsubscribe(),e()}});return A(t(...n)).subscribe(r)}function bu(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,wu({connector:()=>new rr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function _u(){return Xn(1)}function vn(...e){return _u()(Oe(e,ke(e)))}function Mu(...e){let t=ke(e);return D((n,r)=>{(t?vn(e,n,t):vn(e,n)).subscribe(r)})}function Nu(e,t){return D((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,c=>{o?.unsubscribe();let l=0,u=i++;A(e(c,u)).subscribe(o=C(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Su(e,t,n){let r=E(e)||t||n?{next:e,error:t,complete:n}:e;return r?D((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(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)}))}):ce}var En={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=En;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new G(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=En;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=En;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var or=class extends le{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Oo=class extends gn{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=En.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&&(En.cancelAnimationFrame(n),t._scheduled=void 0)}};var Po=class extends yn{flush(t){this._active=!0;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=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Xm=new Po(Oo);function xu(e){return e instanceof Date&&!isNaN(e)}function ey(e){return new N(t=>{A(e()).subscribe(t)})}var ty=["addListener","removeListener"],ny=["addEventListener","removeEventListener"],ry=["on","off"];function As(e,t,n,r){if(E(n)&&(r=n,n=void 0),r)return As(e,t,n).pipe(pn(r));let[o,i]=sy(e)?ny.map(s=>a=>e[s](t,a,n)):oy(e)?ty.map(Au(e,t)):iy(e)?ry.map(Au(e,t)):[];if(!o&&fn(e))return ye(s=>As(s,t,n))(A(e));if(!o)throw new TypeError("Invalid event target");return new N(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function Au(e,t){return n=>r=>e[n](t,r)}function oy(e){return E(e.addListener)&&E(e.removeListener)}function iy(e){return E(e.on)&&E(e.off)}function sy(e){return E(e.addEventListener)&&E(e.removeEventListener)}function At(e=0,t,n=Eu){let r=-1;return t!=null&&(vo(t)?n=t:r=t),new N(o=>{let i=xu(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 ay(e=0,t=Ze){return e<0&&(e=0),At(e,e,t)}var cy=new N(me);function Ru(e){return D((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(C(n,l=>{r=!0,o=l,i||A(e(l)).subscribe(i=C(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function ly(e,t=Ze){return Ru(()=>At(e,t))}function ku(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(C(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 Ou(e,t){return D(ku(e,t,arguments.length>=2,!1,!0))}var uy=(e,t)=>(e.push(t),e);function dy(){return D((e,t)=>{Ou(uy,[])(e).subscribe(t)})}function Pu(e,t){return E(t)?ye(e,t,1):ye(e,1)}function fy(e){return D((t,n)=>{let r=!1,o=null,i=null,s=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let a=o;o=null,n.next(a)}};t.subscribe(C(n,a=>{i?.unsubscribe(),r=!0,o=a,i=C(n,s,me),A(e(a)).subscribe(i)},()=>{s(),n.complete()},void 0,()=>{o=i=null}))})}function Lu(){return D((e,t)=>{e.subscribe(C(t,me))})}function Fu(e){return Pe(()=>e)}function Rs(e,t){return t?n=>vn(t.pipe(xt(1),Lu()),n.pipe(Rs(e))):ye((n,r)=>A(e(n,r)).pipe(xt(1),Fu(n)))}function py(e,t=Ze){let n=At(e,t);return Rs(()=>n)}function hy(e){return e<=0?()=>Nt:D((t,n)=>{let r=[];t.subscribe(C(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 gy(e){return hn((t,n)=>e<=n)}function my(e){return D((t,n)=>{A(e).subscribe(C(n,()=>n.complete(),me)),!n.closed&&t.subscribe(n)})}var X=null,Lo=!1,ks=1,yy=null,j=Symbol("SIGNAL");function v(e){let t=X;return X=e,t}function Fo(){return X}var it={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ye(e){if(Lo)throw new Error("");if(X===null)return;X.consumerOnSignalRead(e);let t=X.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=X.recomputing;if(r&&(n=t!==void 0?t.nextProducer:X.producers,n!==void 0&&n.producer===e)){X.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===X&&(!r||Ey(o,X)))return;let i=Cn(X),s={producer:e,consumer:X,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};X.producersTail=s,t!==void 0?t.nextProducer=s:X.producers=s,i&&Bu(e,s)}function ju(){ks++}function Ot(e){if(!(Cn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ks)){if(!e.producerMustRecompute(e)&&!Dn(e)){In(e);return}e.producerRecomputeValue(e),In(e)}}function Os(e){if(e.consumers===void 0)return;let t=Lo;Lo=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||vy(r)}}finally{Lo=t}}function Ps(){return X?.consumerAllowSignalWrites!==!1}function vy(e){e.dirty=!0,Os(e),e.consumerMarkedDirty?.(e)}function In(e){e.dirty=!1,e.lastCleanEpoch=ks}function Ke(e){return e&&Vu(e),v(e)}function Vu(e){e.producersTail=void 0,e.recomputing=!0}function st(e,t){v(t),e&&Hu(e)}function Hu(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Cn(e))do n=Ls(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Dn(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Ot(n),r!==n.version))return!0}return!1}function at(e){if(Cn(e)){let t=e.producers;for(;t!==void 0;)t=Ls(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Bu(e,t){let n=e.consumersTail,r=Cn(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)Bu(o.producer,o)}function Ls(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,!Cn(t)){let i=t.producers;for(;i!==void 0;)i=Ls(i)}return n}function Cn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ir(e){yy?.(e)}function Ey(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function sr(e,t){return Object.is(e,t)}function ar(e,t){let n=Object.create(Iy);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ot(n),Ye(n),n.value===Le)throw n.error;return n.value};return r[j]=n,ir(n),r}var Rt=Symbol("UNSET"),kt=Symbol("COMPUTING"),Le=Symbol("ERRORED"),Iy=K(Y({},it),{value:Rt,dirty:!0,error:null,equal:sr,kind:"computed",producerMustRecompute(e){return e.value===Rt||e.value===kt},producerRecomputeValue(e){if(e.value===kt)throw new Error("");let t=e.value;e.value=kt;let n=Ke(e),r,o=!1;try{r=e.computation(),v(null),o=t!==Rt&&t!==Le&&r!==Le&&e.equal(t,r)}catch(i){r=Le,e.error=i}finally{st(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Dy(){throw new Error}var $u=Dy;function Uu(e){$u(e)}function Fs(e){$u=e}var Cy=null;function js(e,t){let n=Object.create(cr);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Wu(n);return r[j]=n,ir(n),[r,s=>ct(n,s),s=>jo(n,s)]}function Wu(e){return Ye(e),e.value}function ct(e,t){Ps()||Uu(e),e.equal(e.value,t)||(e.value=t,Ty(e))}function jo(e,t){Ps()||Uu(e),ct(e,t(e.value))}var cr=K(Y({},it),{equal:sr,value:void 0,kind:"signal"});function Ty(e){e.version++,ju(),Os(e),Cy?.(e)}var Vs=K(Y({},it),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Hs(e){if(e.dirty=!1,e.version>0&&!Dn(e))return;e.version++;let t=Ke(e);try{e.cleanup(),e.fn()}finally{st(e,t)}}var Bs;function Vo(){return Bs}function Fe(e){let t=Bs;return Bs=e,t}var qu=Symbol("NotFound");function Tn(e){return e===qu||e?.name==="\u0275NotFound"}function $s(e,t,n){let r=Object.create(wy);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Ot(r),Ye(r),r.value===Le)throw r.error;return r.value};return i[j]=r,ir(r),i}function Gu(e,t){Ot(e),ct(e,t),In(e)}function zu(e,t){if(Ot(e),e.value===Le)throw e.error;jo(e,t),In(e)}var wy=K(Y({},it),{value:Rt,dirty:!0,error:null,equal:sr,kind:"linkedSignal",producerMustRecompute(e){return e.value===Rt||e.value===kt},producerRecomputeValue(e){if(e.value===kt)throw new Error("");let t=e.value;e.value=kt;let n=Ke(e),r,o=!1;try{let i=e.source(),s=t!==Rt&&t!==Le,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,v(null),o=s&&r!==Le&&e.equal(t,r)}catch(i){r=Le,e.error=i}finally{st(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Qu(e){let t=v(null);try{return e()}finally{v(t)}}var Bo=class{full;major;minor;patch;constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},by=new Bo("21.2.17");var zo="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",T=class extends Error{code;constructor(t,n){super(gr(t,n)),this.code=t}};function _y(e){return`NG0${Math.abs(e)}`}function gr(e,t){return`${_y(e)}${t?": "+t:""}`}var He=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("")}function Xu(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function mr(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(mr).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 Qo(e,t){return e?t?`${e} ${t}`:e:t||""}var My=L({__forward_ref__:L});function Zo(e){return e.__forward_ref__=Zo,e}function z(e){return ta(e)?e():e}function ta(e){return typeof e=="function"&&e.hasOwnProperty(My)&&e.__forward_ref__===Zo}function q(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ed(e){return{providers:e.providers||[],imports:e.imports||[]}}function yr(e){return Sy(e,Yo)}function Ny(e){return yr(e)!==null}function Sy(e,t){return e.hasOwnProperty(t)&&e[t]||null}function xy(e){let t=e?.[Yo]??null;return t||null}function Ws(e){return e&&e.hasOwnProperty($o)?e[$o]:null}var Yo=L({\u0275prov:L}),$o=L({\u0275inj:L}),S=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=q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function na(e){return e&&!!e.\u0275providers}var vr=L({\u0275cmp:L}),Er=L({\u0275dir:L}),ra=L({\u0275pipe:L}),oa=L({\u0275mod:L}),ur=L({\u0275fac:L}),Vt=L({__NG_ELEMENT_ID__:L}),Zu=L({__NG_ENV_ID__:L});function ia(e){return Ko(e,"@NgModule"),e[oa]||null}function we(e){return Ko(e,"@Component"),e[vr]||null}function Ir(e){return Ko(e,"@Directive"),e[Er]||null}function sa(e){return Ko(e,"@Pipe"),e[ra]||null}function Ko(e,t){if(e==null)throw new T(-919,!1)}function be(e){return typeof e=="string"?e:e==null?"":String(e)}var td=L({ngErrorCode:L}),Ay=L({ngErrorMessage:L}),Ry=L({ngTokenPath:L});function aa(e,t){return nd("",-200,t)}function Jo(e,t){throw new T(-201,!1)}function nd(e,t,n){let r=new T(t,e);return r[td]=t,r[Ay]=e,n&&(r[Ry]=n),r}function ky(e){return e[td]}var qs;function rd(){return qs}function te(e){let t=qs;return qs=e,t}function ca(e,t,n){let r=yr(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;Jo(e,"")}var Oy={},Pt=Oy,Py="__NG_DI_FLAG__",Gs=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Lt(n)||0;try{return this.injector.get(t,r&8?null:Pt,r)}catch(o){if(Tn(o))return o;throw o}}};function Ly(e,t=0){let n=Vo();if(n===void 0)throw new T(-203,!1);if(n===null)return ca(e,void 0,t);{let r=Fy(t),o=n.retrieve(e,r);if(Tn(o)){if(r.optional)return null;throw o}return o}}function je(e,t=0){return(rd()||Ly)(z(e),t)}function w(e,t){return je(e,Lt(t))}function Lt(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Fy(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function zs(e){let t=[];for(let n=0;n<e.length;n++){let r=z(e[n]);if(Array.isArray(r)){if(r.length===0)throw new T(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=jy(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(je(o,i))}else t.push(je(r))}return t}function jy(e){return e[Py]}function lt(e,t){let n=e.hasOwnProperty(ur);return n?e[ur]:null}function od(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 id(e){return e.flat(Number.POSITIVE_INFINITY)}function Xo(e,t){e.forEach(n=>Array.isArray(n)?Xo(n,t):t(n))}function la(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Dr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function sd(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function ad(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 Cr(e,t,n){let r=bn(e,t);return r>=0?e[r|1]=n:(r=~r,ad(e,r,t,n)),r}function ei(e,t){let n=bn(e,t);if(n>=0)return e[n|1]}function bn(e,t){return Vy(e,t,1)}function Vy(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 _e={},ee=[],Tr=new S(""),ua=new S("",-1),da=new S(""),dr=class{get(t,n=Pt){if(n===Pt){let o=nd("",-201);throw o.name="\u0275NotFound",o}return n}};function ti(e){return{\u0275providers:e}}function cd(...e){return{\u0275providers:ni(!0,e),\u0275fromNgModule:!0}}function ni(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Xo(t,s=>{let a=s;Uo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ld(o,i),n}function ld(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];fa(o,i=>{t(i,r)})}}function Uo(e,t,n,r){if(e=z(e),!e)return!1;let o=null,i=Ws(e),s=!i&&we(e);if(!i&&!s){let c=e.ngModule;if(i=Ws(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)Uo(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;Xo(i.imports,u=>{Uo(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&ld(l,t)}if(!a){let l=lt(o)||(()=>new o);t({provide:o,useFactory:l,deps:ee},o),t({provide:da,useValue:o,multi:!0},o),t({provide:Tr,useValue:()=>je(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;fa(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function fa(e,t){for(let n of e)na(n)&&(n=n.\u0275providers),Array.isArray(n)?fa(n,t):t(n)}var Hy=L({provide:String,useValue:L});function ud(e){return e!==null&&typeof e=="object"&&Hy in e}function By(e){return!!(e&&e.useExisting)}function $y(e){return!!(e&&e.useFactory)}function Ft(e){return typeof e=="function"}function dd(e){return!!e.useClass}var pa=new S(""),Ho={},Yu={},Us;function _n(){return Us===void 0&&(Us=new dr),Us}var ue=class{},jt=class extends ue{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,Zs(t,s=>this.processProvider(s)),this.records.set(ua,wn(void 0,this)),o.has("environment")&&this.records.set(ue,wn(void 0,this));let i=this.records.get(pa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(da,ee,{self:!0}))}retrieve(t,n){let r=Lt(n)||0;try{return this.get(t,Pt,r)}catch(o){if(Tn(o))return o;throw o}}destroy(){lr(this),this._destroyed=!0;let t=v(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(),v(t)}}onDestroy(t){return lr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){lr(this);let n=Fe(this),r=te(void 0),o;try{return t()}finally{Fe(n),te(r)}}get(t,n=Pt,r){if(lr(this),t.hasOwnProperty(Zu))return t[Zu](this);let o=Lt(r),i,s=Fe(this),a=te(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=zy(t)&&yr(t);u&&this.injectableDefInScope(u)?l=wn(Qs(t),Ho):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?_n():this.parent;return n=o&8&&n===Pt?null:n,c.get(t,n)}catch(c){let l=ky(c);throw l===-200||l===-201?new T(l,null):c}finally{te(a),Fe(s)}}resolveInjectorInitializers(){let t=v(null),n=Fe(this),r=te(void 0),o;try{let i=this.get(Tr,ee,{self:!0});for(let s of i)s()}finally{Fe(n),te(r),v(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=z(t);let n=Ft(t)?t:z(t&&t.provide),r=Wy(t);if(!Ft(t)&&t.multi===!0){let o=this.records.get(n);o||(o=wn(void 0,Ho,!0),o.factory=()=>zs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=v(null);try{if(n.value===Yu)throw aa("");return n.value===Ho&&(n.value=Yu,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Gy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{v(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=z(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 Qs(e){let t=yr(e),n=t!==null?t.factory:lt(e);if(n!==null)return n;if(e instanceof S)throw new T(-204,!1);if(e instanceof Function)return Uy(e);throw new T(-204,!1)}function Uy(e){if(e.length>0)throw new T(-204,!1);let n=xy(e);return n!==null?()=>n.factory(e):()=>new e}function Wy(e){if(ud(e))return wn(void 0,e.useValue);{let t=ha(e);return wn(t,Ho)}}function ha(e,t,n){let r;if(Ft(e)){let o=z(e);return lt(o)||Qs(o)}else if(ud(e))r=()=>z(e.useValue);else if($y(e))r=()=>e.useFactory(...zs(e.deps||[]));else if(By(e))r=(o,i)=>je(z(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=z(e&&(e.useClass||e.provide));if(qy(e))r=()=>new o(...zs(e.deps));else return lt(o)||Qs(o)}return r}function lr(e){if(e.destroyed)throw new T(-205,!1)}function wn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function qy(e){return!!e.deps}function Gy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function zy(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Zs(e,t){for(let n of e)Array.isArray(n)?Zs(n,t):n&&na(n)?Zs(n.\u0275providers,t):t(n)}function ri(e,t){let n;e instanceof jt?(lr(e),n=e):n=new Gs(e);let r,o=Fe(n),i=te(void 0);try{return t()}finally{Fe(o),te(i)}}function fd(){return rd()!==void 0||Vo()!=null}var Me=0,m=1,I=2,W=3,Ee=4,ne=5,Ht=6,Mn=7,B=8,$=9,Ne=10,O=11,Nn=12,ga=13,Bt=14,re=15,ft=16,$t=17,Be=18,$e=19,ma=20,Xe=21,oi=22,ut=23,fe=24,Ut=25,Ue=26,R=27,pd=1,pt=6,ht=7,wr=8,Wt=9,V=10;function tt(e){return Array.isArray(e)&&typeof e[pd]=="object"}function Se(e){return Array.isArray(e)&&e[pd]===!0}function ya(e){return(e.flags&4)!==0}function We(e){return e.componentOffset>-1}function Sn(e){return(e.flags&1)===1}function xe(e){return!!e.template}function xn(e){return(e[I]&512)!==0}function gt(e){return(e[I]&256)===256}var va="svg",hd="math";function Ie(e){for(;Array.isArray(e);)e=e[Me];return e}function Ea(e,t){return Ie(t[e])}function se(e,t){return Ie(t[e.index])}function An(e,t){return e.data[t]}function mt(e,t){return e[t]}function br(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function pe(e,t){let n=t[e];return tt(n)?n:n[Me]}function gd(e){return(e[I]&4)===4}function ii(e){return(e[I]&128)===128}function md(e){return Se(e[W])}function he(e,t){return t==null?null:e[t]}function Ia(e){e[$t]=0}function Da(e){e[I]&1024||(e[I]|=1024,ii(e)&&qt(e))}function yd(e,t){for(;e>0;)t=t[Bt],e--;return t}function _r(e){return!!(e[I]&9216||e[fe]?.dirty)}function si(e){e[Ne].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),_r(e)&&qt(e)}function qt(e){e[Ne].changeDetectionScheduler?.notify(0);let t=dt(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!ii(t)));)t=dt(t)}function ai(e,t){if(gt(e))throw new T(911,!1);e[Xe]===null&&(e[Xe]=[]),e[Xe].push(t)}function Ca(e,t){if(e[Xe]===null)return;let n=e[Xe].indexOf(t);n!==-1&&e[Xe].splice(n,1)}function dt(e){let t=e[W];return Se(t)?t[W]:t}function Ta(e){return e[Mn]??=[]}function wa(e){return e.cleanup??=[]}function vd(e,t,n,r){let o=Ta(t);o.push(n),e.firstCreatePass&&wa(e).push(r,o.length-1)}var _={lFrame:xd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ys=!1;function Ed(){return _.lFrame.elementDepthCount}function Id(){_.lFrame.elementDepthCount++}function ba(){_.lFrame.elementDepthCount--}function ci(){return _.bindingsEnabled}function _a(){return _.skipHydrationRootTNode!==null}function Ma(e){return _.skipHydrationRootTNode===e}function Na(){_.skipHydrationRootTNode=null}function g(){return _.lFrame.lView}function P(){return _.lFrame.tView}function Dd(e){return _.lFrame.contextLView=e,e[B]}function Cd(e){return _.lFrame.contextLView=null,e}function F(){let e=Sa();for(;e!==null&&e.type===64;)e=e.parent;return e}function Sa(){return _.lFrame.currentTNode}function Td(){let e=_.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Gt(e,t){let n=_.lFrame;n.currentTNode=e,n.isParent=t}function xa(){return _.lFrame.isParent}function Aa(){_.lFrame.isParent=!1}function Ra(){return _.lFrame.contextLView}function ka(){return Ys}function fr(e){let t=Ys;return Ys=e,t}function oe(){let e=_.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Oa(){return _.lFrame.bindingIndex}function wd(e){return _.lFrame.bindingIndex=e}function De(){return _.lFrame.bindingIndex++}function Mr(e){let t=_.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function bd(){return _.lFrame.inI18n}function _d(e,t){let n=_.lFrame;n.bindingIndex=n.bindingRootIndex=e,li(t)}function Md(){return _.lFrame.currentDirectiveIndex}function li(e){_.lFrame.currentDirectiveIndex=e}function Nd(e){let t=_.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ui(){return _.lFrame.currentQueryIndex}function Nr(e){_.lFrame.currentQueryIndex=e}function Qy(e){let t=e[m];return t.type===2?t.declTNode:t.type===1?e[ne]:null}function Pa(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Qy(i),o===null||(i=i[Bt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=_.lFrame=Sd();return r.currentTNode=t,r.lView=e,!0}function di(e){let t=Sd(),n=e[m];_.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Sd(){let e=_.lFrame,t=e===null?null:e.child;return t===null?xd(e):t}function xd(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 Ad(){let e=_.lFrame;return _.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var La=Ad;function fi(){let e=Ad();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 Rd(e){return(_.lFrame.contextLView=yd(e,_.lFrame.contextLView))[B]}function Ce(){return _.lFrame.selectedIndex}function yt(e){_.lFrame.selectedIndex=e}function nt(){let e=_.lFrame;return An(e.tView,e.selectedIndex)}function kd(){_.lFrame.currentNamespace=va}function Fa(){return _.lFrame.currentNamespace}var Od=!0;function pi(){return Od}function Sr(e){Od=e}function Ks(e,t=null,n=null,r){let o=ja(e,t,n,r);return o.resolveInjectorInitializers(),o}function ja(e,t=null,n=null,r,o=new Set){let i=[n||ee,cd(e)],s;return new jt(i,t||_n(),s||null,o)}var ve=class e{static THROW_IF_NOT_FOUND=Pt;static NULL=new dr;static create(t,n){if(Array.isArray(t))return Ks({name:""},n,t,"");{let r=t.name??"";return Ks({name:r},t.parent,t.providers,r)}}static \u0275prov=q({token:e,providedIn:"any",factory:()=>je(ua)});static __NG_ELEMENT_ID__=-1},Va=new S(""),qe=(()=>{class e{static __NG_ELEMENT_ID__=Zy;static __NG_ENV_ID__=n=>n}return e})(),Wo=class extends qe{_lView;constructor(t){super(),this._lView=t}get destroyed(){return gt(this._lView)}onDestroy(t){let n=this._lView;return ai(n,t),()=>Ca(n,t)}};function Zy(){return new Wo(g())}var Pd=!1,Ld=new S(""),zt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new or(!1);debugTaskTracker=w(Ld,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new N(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=q({token:e,providedIn:"root",factory:()=>new e})}return e})(),Js=class extends le{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,fd()&&(this.destroyRef=w(qe,{optional:!0})??void 0,this.pendingTasks=w(zt,{optional:!0})??void 0)}emit(t){let n=v(null);try{super.next(t)}finally{v(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof G&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Je=Js;function qo(...e){}function Ha(e){let t,n;function r(){e=qo;try{n!==void 0&&t