@rero/rero-ils-ui
Version:
User interface for RERO integrated library system (RERO ILS).
4 lines • 287 kB
JavaScript
var jD=Object.create;var nc=Object.defineProperty,BD=Object.defineProperties,$D=Object.getOwnPropertyDescriptor,VD=Object.getOwnPropertyDescriptors,HD=Object.getOwnPropertyNames,Ti=Object.getOwnPropertySymbols,UD=Object.getPrototypeOf,rc=Object.prototype.hasOwnProperty,uf=Object.prototype.propertyIsEnumerable;var lf=(e,t,n)=>t in e?nc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||={})rc.call(t,n)&&lf(e,n,t[n]);if(Ti)for(var n of Ti(t))uf.call(t,n)&&lf(e,n,t[n]);return e},G=(e,t)=>BD(e,VD(t));var DN=(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 EN=e=>typeof e=="symbol"?e:e+"",df=(e,t)=>{var n={};for(var r in e)rc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ti)for(var r of Ti(e))t.indexOf(r)<0&&uf.call(e,r)&&(n[r]=e[r]);return n};var CN=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var WD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of HD(t))!rc.call(e,o)&&o!==n&&nc(e,o,{get:()=>t[o],enumerable:!(r=$D(t,o))||r.enumerable});return e};var IN=(e,t,n)=>(n=e!=null?jD(UD(e)):{},WD(t||!e||!e.__esModule?nc(n,"default",{value:e,enumerable:!0}):n,e));function N(e){return typeof e=="function"}function Jn(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 _i=Jn(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 fn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var se=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(N(r))try{r()}catch(i){t=i instanceof _i?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ff(i)}catch(s){t=t??[],s instanceof _i?t=[...t,...s.errors]:t.push(s)}}if(t)throw new _i(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ff(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)&&fn(n,t)}remove(t){let{_finalizers:n}=this;n&&fn(n,t),t instanceof e&&t._removeParent(this)}};se.EMPTY=(()=>{let e=new se;return e.closed=!0,e})();var oc=se.EMPTY;function Ni(e){return e instanceof se||e&&"closed"in e&&N(e.remove)&&N(e.add)&&N(e.unsubscribe)}function ff(e){N(e)?e():e.unsubscribe()}var He={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xn={setTimeout(e,t,...n){let{delegate:r}=Xn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Xn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mi(e){Xn.setTimeout(()=>{let{onUnhandledError:t}=He;if(t)t(e);else throw e})}function er(){}var pf=ic("C",void 0,void 0);function hf(e){return ic("E",void 0,e)}function gf(e){return ic("N",e,void 0)}function ic(e,t,n){return{kind:e,value:t,error:n}}var pn=null;function tr(e){if(He.useDeprecatedSynchronousErrorHandling){let t=!pn;if(t&&(pn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=pn;if(pn=null,n)throw r}}else e()}function mf(e){He.useDeprecatedSynchronousErrorHandling&&pn&&(pn.errorThrown=!0,pn.error=e)}var hn=class extends se{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ni(t)&&t.add(this)):this.destination=qD}static create(t,n,r){return new It(t,n,r)}next(t){this.isStopped?ac(gf(t),this):this._next(t)}error(t){this.isStopped?ac(hf(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ac(pf,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()}}},GD=Function.prototype.bind;function sc(e,t){return GD.call(e,t)}var cc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ai(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ai(r)}else Ai(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ai(n)}}},It=class extends hn{constructor(t,n,r){super();let o;if(N(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&He.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&sc(t.next,i),error:t.error&&sc(t.error,i),complete:t.complete&&sc(t.complete,i)}):o=t}this.destination=new cc(o)}};function Ai(e){He.useDeprecatedSynchronousErrorHandling?mf(e):Mi(e)}function zD(e){throw e}function ac(e,t){let{onStoppedNotification:n}=He;n&&Xn.setTimeout(()=>n(e,t))}var qD={closed:!0,next:er,error:zD,complete:er};var nr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Te(e){return e}function ZD(...e){return lc(e)}function lc(e){return e.length===0?Te:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R=(()=>{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=KD(n)?n:new It(n,r,o);return tr(()=>{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=yf(r),new r((o,i)=>{let s=new It({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)}[nr](){return this}pipe(...n){return lc(n)(this)}toPromise(n){return n=yf(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 yf(e){var t;return(t=e??He.Promise)!==null&&t!==void 0?t:Promise}function YD(e){return e&&N(e.next)&&N(e.error)&&N(e.complete)}function KD(e){return e&&e instanceof hn||YD(e)&&Ni(e)}function QD(e){return N(e?.lift)}function A(e){return t=>{if(QD(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 O(e,t,n,r,o){return new uc(e,t,n,r,o)}var uc=class extends hn{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))}}};var vf=Jn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var H=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new xi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new vf}next(n){tr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){tr(()=>{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(){tr(()=>{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?oc:(this.currentObservers=null,i.push(n),new se(()=>{this.currentObservers=null,fn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new xi(t,n),e})(),xi=class extends H{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:oc}};var zr=class extends H{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 qr={now(){return(qr.delegate||Date).now()},delegate:void 0};var Zr=class extends H{constructor(t=1/0,n=1/0,r=qr){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 Oi=class extends se{constructor(t,n){super()}schedule(t,n=0){return this}};var Yr={setInterval(e,t,...n){let{delegate:r}=Yr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Yr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Ri=class extends Oi{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 Yr.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&&Yr.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,fn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var rr=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)}};rr.now=qr.now;var ki=class extends rr{constructor(t,n=rr.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 dc=new ki(Ri),Df=dc;var gn=new R(e=>e.complete());function Fi(e){return e&&N(e.schedule)}function fc(e){return e[e.length-1]}function Li(e){return N(fc(e))?e.pop():void 0}function ot(e){return Fi(fc(e))?e.pop():void 0}function Ef(e,t){return typeof fc(e)=="number"?e.pop():t}function If(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 Cf(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 mn(e){return this instanceof mn?(this.v=e,this):new mn(e)}function bf(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(p){return function(h){return Promise.resolve(h).then(p,d)}}function a(p,h){r[p]&&(o[p]=function(g){return new Promise(function(y,E){i.push([p,g,y,E])>1||c(p,g)})},h&&(o[p]=h(o[p])))}function c(p,h){try{l(r[p](h))}catch(g){f(i[0][3],g)}}function l(p){p.value instanceof mn?Promise.resolve(p.value.v).then(u,d):f(i[0][2],p)}function u(p){c("next",p)}function d(p){c("throw",p)}function f(p,h){p(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function wf(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 Cf=="function"?Cf(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 Pi=e=>e&&typeof e.length=="number"&&typeof e!="function";function ji(e){return N(e?.then)}function Bi(e){return N(e[nr])}function $i(e){return Symbol.asyncIterator&&N(e?.[Symbol.asyncIterator])}function Vi(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 JD(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Hi=JD();function Ui(e){return N(e?.[Hi])}function Wi(e){return bf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield mn(n.read());if(o)return yield mn(void 0);yield yield mn(r)}}finally{n.releaseLock()}})}function Gi(e){return N(e?.getReader)}function z(e){if(e instanceof R)return e;if(e!=null){if(Bi(e))return XD(e);if(Pi(e))return eE(e);if(ji(e))return tE(e);if($i(e))return Sf(e);if(Ui(e))return nE(e);if(Gi(e))return rE(e)}throw Vi(e)}function XD(e){return new R(t=>{let n=e[nr]();if(N(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function eE(e){return new R(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function tE(e){return new R(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mi)})}function nE(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Sf(e){return new R(t=>{oE(e,t).catch(n=>t.error(n))})}function rE(e){return Sf(Wi(e))}function oE(e,t){var n,r,o,i;return If(this,void 0,void 0,function*(){try{for(n=wf(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 Ce(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 zi(e,t=0){return A((n,r)=>{n.subscribe(O(r,o=>Ce(r,e,()=>r.next(o),t),()=>Ce(r,e,()=>r.complete(),t),o=>Ce(r,e,()=>r.error(o),t)))})}function qi(e,t=0){return A((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Tf(e,t){return z(e).pipe(qi(t),zi(t))}function _f(e,t){return z(e).pipe(qi(t),zi(t))}function Nf(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Mf(e,t){return new R(n=>{let r;return Ce(n,t,()=>{r=e[Hi](),Ce(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)}),()=>N(r?.return)&&r.return()})}function Zi(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{Ce(n,t,()=>{let r=e[Symbol.asyncIterator]();Ce(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Af(e,t){return Zi(Wi(e),t)}function xf(e,t){if(e!=null){if(Bi(e))return Tf(e,t);if(Pi(e))return Nf(e,t);if(ji(e))return _f(e,t);if($i(e))return Zi(e,t);if(Ui(e))return Mf(e,t);if(Gi(e))return Af(e,t)}throw Vi(e)}function it(e,t){return t?xf(e,t):z(e)}function iE(...e){let t=ot(e);return it(e,t)}function sE(e,t){let n=N(e)?e:()=>e,r=o=>o.error(n());return new R(t?o=>t.schedule(r,0,o):r)}function aE(e){return!!e&&(e instanceof R||N(e.lift)&&N(e.subscribe))}var Kr=Jn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Of(e){return e instanceof Date&&!isNaN(e)}function Pt(e,t){return A((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:cE}=Array;function lE(e,t){return cE(t)?e(...t):e(t)}function Yi(e){return Pt(t=>lE(e,t))}var{isArray:uE}=Array,{getPrototypeOf:dE,prototype:fE,keys:pE}=Object;function Ki(e){if(e.length===1){let t=e[0];if(uE(t))return{args:t,keys:null};if(hE(t)){let n=pE(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hE(e){return e&&typeof e=="object"&&dE(e)===fE}function Qi(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function gE(...e){let t=ot(e),n=Li(e),{args:r,keys:o}=Ki(e);if(r.length===0)return it([],t);let i=new R(mE(r,t,o?s=>Qi(o,s):Te));return n?i.pipe(Yi(n)):i}function mE(e,t,n=Te){return r=>{Rf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Rf(t,()=>{let l=it(e[c],t),u=!1;l.subscribe(O(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Rf(e,t,n){e?Ce(n,e,t):t()}function kf(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,f=()=>{d&&!c.length&&!l&&t.complete()},p=g=>l<r?h(g):c.push(g),h=g=>{i&&t.next(g),l++;let y=!1;z(n(g,u++)).subscribe(O(t,E=>{o?.(E),i?p(E):t.next(E)},()=>{y=!0},void 0,()=>{if(y)try{for(l--;c.length&&l<r;){let E=c.shift();s?Ce(t,s,()=>h(E)):h(E)}f()}catch(E){t.error(E)}}))};return e.subscribe(O(t,p,()=>{d=!0,f()})),()=>{a?.()}}function yn(e,t,n=1/0){return N(t)?yn((r,o)=>Pt((i,s)=>t(r,i,o,s))(z(e(r,o))),n):(typeof t=="number"&&(n=t),A((r,o)=>kf(r,o,e,n)))}function Qr(e=1/0){return yn(Te,e)}function Ff(){return Qr(1)}function Ji(...e){return Ff()(it(e,ot(e)))}function yE(e){return new R(t=>{z(e()).subscribe(t)})}function vE(...e){let t=Li(e),{args:n,keys:r}=Ki(e),o=new R(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;z(n[u]).subscribe(O(i,f=>{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Qi(r,a):a),i.complete())}))}});return t?o.pipe(Yi(t)):o}function DE(e=0,t,n=Df){let r=-1;return t!=null&&(Fi(t)?n=t:r=t),new R(o=>{let i=Of(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 EE(...e){let t=ot(e),n=Ef(e,1/0),r=e;return r.length?r.length===1?z(r[0]):Qr(n)(it(r,t)):gn}function Xi(e,t){return A((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function pc(e){return A((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=z(e(s,pc(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function CE(e,t){return N(t)?yn(e,t,1):yn(e,1)}function IE(e,t=dc){return A((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(O(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 Lf(e){return A((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function hc(e){return e<=0?()=>gn:A((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function bE(e,t=Te){return e=e??wE,A((n,r)=>{let o,i=!0;n.subscribe(O(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function wE(e,t){return e===t}function Pf(e=SE){return A((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function SE(){return new Kr}function TE(e){return A((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function _E(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Xi((o,i)=>e(o,i,r)):Te,hc(1),n?Lf(t):Pf(()=>new Kr))}function NE(e){return e<=0?()=>gn:A((t,n)=>{let r=[];t.subscribe(O(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 jf(e={}){let{connector:t=()=>new H,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=c=void 0,u=d=!1},h=()=>{let g=s;p(),g?.unsubscribe()};return A((g,y)=>{l++,!d&&!u&&f();let E=c=c??t();y.add(()=>{l--,l===0&&!d&&!u&&(a=gc(h,o))}),E.subscribe(y),!s&&l>0&&(s=new It({next:T=>E.next(T),error:T=>{d=!0,f(),a=gc(p,n,T),E.error(T)},complete:()=>{u=!0,f(),a=gc(p,r),E.complete()}}),z(g).subscribe(s))})(i)}}function gc(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new It({next:()=>{r.unsubscribe(),e()}});return z(t(...n)).subscribe(r)}function Bf(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,jf({connector:()=>new Zr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function $f(...e){let t=ot(e);return A((n,r)=>{(t?Ji(e,n,t):Ji(e,n)).subscribe(r)})}function Vf(e,t){return A((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O(r,c=>{o?.unsubscribe();let l=0,u=i++;z(e(c,u)).subscribe(o=O(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ME(e){return A((t,n)=>{z(e).subscribe(O(n,()=>n.complete(),er)),!n.closed&&t.subscribe(n)})}function Hf(e,t,n){let r=N(e)||t||n?{next:e,error:t,complete:n}:e;return r?A((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O(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}var ue=null,es=!1,mc=1,AE=null,q=Symbol("SIGNAL");function b(e){let t=ue;return ue=e,t}function ts(){return ue}var jt={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 bt(e){if(es)throw new Error("");if(ue===null)return;ue.consumerOnSignalRead(e);let t=ue.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ue.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ue.producers,n!==void 0&&n.producer===e)){ue.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ue&&(!r||OE(o,ue)))return;let i=sr(ue),s={producer:e,consumer:ue,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};ue.producersTail=s,t!==void 0?t.nextProducer=s:ue.producers=s,i&&zf(e,s)}function Uf(){mc++}function En(e){if(!(sr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===mc)){if(!e.producerMustRecompute(e)&&!ir(e)){or(e);return}e.producerRecomputeValue(e),or(e)}}function yc(e){if(e.consumers===void 0)return;let t=es;es=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||xE(r)}}finally{es=t}}function vc(){return ue?.consumerAllowSignalWrites!==!1}function xE(e){e.dirty=!0,yc(e),e.consumerMarkedDirty?.(e)}function or(e){e.dirty=!1,e.lastCleanEpoch=mc}function wt(e){return e&&Wf(e),b(e)}function Wf(e){e.producersTail=void 0,e.recomputing=!0}function Bt(e,t){b(t),e&&Gf(e)}function Gf(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(sr(e))do n=Dc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function ir(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(En(n),r!==n.version))return!0}return!1}function $t(e){if(sr(e)){let t=e.producers;for(;t!==void 0;)t=Dc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function zf(e,t){let n=e.consumersTail,r=sr(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)zf(o.producer,o)}function Dc(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,!sr(t)){let i=t.producers;for(;i!==void 0;)i=Dc(i)}return n}function sr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Jr(e){AE?.(e)}function OE(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 Xr(e,t){return Object.is(e,t)}function eo(e,t){let n=Object.create(RE);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(En(n),bt(n),n.value===st)throw n.error;return n.value};return r[q]=n,Jr(n),r}var vn=Symbol("UNSET"),Dn=Symbol("COMPUTING"),st=Symbol("ERRORED"),RE=G(D({},jt),{value:vn,dirty:!0,error:null,equal:Xr,kind:"computed",producerMustRecompute(e){return e.value===vn||e.value===Dn},producerRecomputeValue(e){if(e.value===Dn)throw new Error("");let t=e.value;e.value=Dn;let n=wt(e),r,o=!1;try{r=e.computation(),b(null),o=t!==vn&&t!==st&&r!==st&&e.equal(t,r)}catch(i){r=st,e.error=i}finally{Bt(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function kE(){throw new Error}var qf=kE;function Zf(e){qf(e)}function Ec(e){qf=e}var FE=null;function Cc(e,t){let n=Object.create(to);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Yf(n);return r[q]=n,Jr(n),[r,s=>Vt(n,s),s=>ns(n,s)]}function Yf(e){return bt(e),e.value}function Vt(e,t){vc()||Zf(e),e.equal(e.value,t)||(e.value=t,LE(e))}function ns(e,t){vc()||Zf(e),Vt(e,t(e.value))}var to=G(D({},jt),{equal:Xr,value:void 0,kind:"signal"});function LE(e){e.version++,Uf(),yc(e),FE?.(e)}var Ic=G(D({},jt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function bc(e){if(e.dirty=!1,e.version>0&&!ir(e))return;e.version++;let t=wt(e);try{e.cleanup(),e.fn()}finally{Bt(e,t)}}var wc;function rs(){return wc}function at(e){let t=wc;return wc=e,t}var Kf=Symbol("NotFound");function ar(e){return e===Kf||e?.name==="\u0275NotFound"}function Sc(e,t,n){let r=Object.create(PE);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(En(r),bt(r),r.value===st)throw r.error;return r.value};return i[q]=r,Jr(r),i}function Qf(e,t){En(e),Vt(e,t),or(e)}function Jf(e,t){if(En(e),e.value===st)throw e.error;ns(e,t),or(e)}var PE=G(D({},jt),{value:vn,dirty:!0,error:null,equal:Xr,kind:"linkedSignal",producerMustRecompute(e){return e.value===vn||e.value===Dn},producerRecomputeValue(e){if(e.value===Dn)throw new Error("");let t=e.value;e.value=Dn;let n=wt(e),r,o=!1;try{let i=e.source(),s=t!==vn&&t!==st,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,b(null),o=s&&r!==st&&e.equal(t,r)}catch(i){r=st,e.error=i}finally{Bt(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Xf(e){let t=b(null);try{return e()}finally{b(t)}}var ro=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(".")}},jE=new ro("21.2.17");var us="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",C=class extends Error{code;constructor(t,n){super(Gt(t,n)),this.code=t}};function BE(e){return`NG0${Math.abs(e)}`}function Gt(e,t){return`${BE(e)}${t?": "+t:""}`}var lt=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("")}function op(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function lo(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(lo).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 ds(e,t){return e?t?`${e} ${t}`:e:t||""}var $E=L({__forward_ref__:L});function fs(e){return e.__forward_ref__=fs,e}function oe(e){return jc(e)?e():e}function jc(e){return typeof e=="function"&&e.hasOwnProperty($E)&&e.__forward_ref__===fs}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function zt(e){return{providers:e.providers||[],imports:e.imports||[]}}function uo(e){return HE(e,ps)}function VE(e){return uo(e)!==null}function HE(e,t){return e.hasOwnProperty(t)&&e[t]||null}function UE(e){let t=e?.[ps]??null;return t||null}function _c(e){return e&&e.hasOwnProperty(is)?e[is]:null}var ps=L({\u0275prov:L}),is=L({\u0275inj:L}),_=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=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Bc(e){return e&&!!e.\u0275providers}var fo=L({\u0275cmp:L}),po=L({\u0275dir:L}),$c=L({\u0275pipe:L}),Vc=L({\u0275mod:L}),oo=L({\u0275fac:L}),Sn=L({__NG_ELEMENT_ID__:L}),ep=L({__NG_ENV_ID__:L});function Hc(e){return hs(e,"@NgModule"),e[Vc]||null}function ut(e){return hs(e,"@Component"),e[fo]||null}function ho(e){return hs(e,"@Directive"),e[po]||null}function Uc(e){return hs(e,"@Pipe"),e[$c]||null}function hs(e,t){if(e==null)throw new C(-919,!1)}function qt(e){return typeof e=="string"?e:e==null?"":String(e)}var ip=L({ngErrorCode:L}),WE=L({ngErrorMessage:L}),GE=L({ngTokenPath:L});function Wc(e,t){return sp("",-200,t)}function gs(e,t){throw new C(-201,!1)}function sp(e,t,n){let r=new C(t,e);return r[ip]=t,r[WE]=e,n&&(r[GE]=n),r}function zE(e){return e[ip]}var Nc;function ap(){return Nc}function ye(e){let t=Nc;return Nc=e,t}function Gc(e,t,n){let r=uo(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;gs(e,"")}var qE={},Cn=qE,ZE="__NG_DI_FLAG__",Mc=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=In(n)||0;try{return this.injector.get(t,r&8?null:Cn,r)}catch(o){if(ar(o))return o;throw o}}};function YE(e,t=0){let n=rs();if(n===void 0)throw new C(-203,!1);if(n===null)return Gc(e,void 0,t);{let r=KE(t),o=n.retrieve(e,r);if(ar(o)){if(r.optional)return null;throw o}return o}}function Q(e,t=0){return(ap()||YE)(oe(e),t)}function m(e,t){return Q(e,In(t))}function In(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function KE(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ac(e){let t=[];for(let n=0;n<e.length;n++){let r=oe(e[n]);if(Array.isArray(r)){if(r.length===0)throw new C(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=QE(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(Q(o,i))}else t.push(Q(r))}return t}function QE(e){return e[ZE]}function Ht(e,t){let n=e.hasOwnProperty(oo);return n?e[oo]:null}function cp(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 lp(e){return e.flat(Number.POSITIVE_INFINITY)}function ms(e,t){e.forEach(n=>Array.isArray(n)?ms(n,t):t(n))}function zc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function go(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function up(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function dp(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 mo(e,t,n){let r=lr(e,t);return r>=0?e[r|1]=n:(r=~r,dp(e,r,t,n)),r}function ys(e,t){let n=lr(e,t);if(n>=0)return e[n|1]}function lr(e,t){return JE(e,t,1)}function JE(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 Ue={},de=[],yo=new _(""),qc=new _("",-1),Zc=new _(""),io=class{get(t,n=Cn){if(n===Cn){let o=sp("",-201);throw o.name="\u0275NotFound",o}return n}};function ur(e){return{\u0275providers:e}}function fp(...e){return{\u0275providers:vs(!0,e),\u0275fromNgModule:!0}}function vs(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ms(t,s=>{let a=s;ss(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&pp(o,i),n}function pp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Yc(o,i=>{t(i,r)})}}function ss(e,t,n,r){if(e=oe(e),!e)return!1;let o=null,i=_c(e),s=!i&&ut(e);if(!i&&!s){let c=e.ngModule;if(i=_c(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)ss(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;ms(i.imports,u=>{ss(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&pp(l,t)}if(!a){let l=Ht(o)||(()=>new o);t({provide:o,useFactory:l,deps:de},o),t({provide:Zc,useValue:o,multi:!0},o),t({provide:yo,useValue:()=>Q(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Yc(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Yc(e,t){for(let n of e)Bc(n)&&(n=n.\u0275providers),Array.isArray(n)?Yc(n,t):t(n)}var XE=L({provide:String,useValue:L});function hp(e){return e!==null&&typeof e=="object"&&XE in e}function eC(e){return!!(e&&e.useExisting)}function tC(e){return!!(e&&e.useFactory)}function bn(e){return typeof e=="function"}function gp(e){return!!e.useClass}var Kc=new _(""),os={},tp={},Tc;function vo(){return Tc===void 0&&(Tc=new io),Tc}var _e=class{},wn=class extends _e{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,Oc(t,s=>this.processProvider(s)),this.records.set(qc,cr(void 0,this)),o.has("environment")&&this.records.set(_e,cr(void 0,this));let i=this.records.get(Kc);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Zc,de,{self:!0}))}retrieve(t,n){let r=In(n)||0;try{return this.get(t,Cn,r)}catch(o){if(ar(o))return o;throw o}}destroy(){no(this),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return no(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){no(this);let n=at(this),r=ye(void 0),o;try{return t()}finally{at(n),ye(r)}}get(t,n=Cn,r){if(no(this),t.hasOwnProperty(ep))return t[ep](this);let o=In(r),i,s=at(this),a=ye(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=sC(t)&&uo(t);u&&this.injectableDefInScope(u)?l=cr(xc(t),os):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?vo():this.parent;return n=o&8&&n===Cn?null:n,c.get(t,n)}catch(c){let l=zE(c);throw l===-200||l===-201?new C(l,null):c}finally{ye(a),at(s)}}resolveInjectorInitializers(){let t=b(null),n=at(this),r=ye(void 0),o;try{let i=this.get(yo,de,{self:!0});for(let s of i)s()}finally{at(n),ye(r),b(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=oe(t);let n=bn(t)?t:oe(t&&t.provide),r=rC(t);if(!bn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=cr(void 0,os,!0),o.factory=()=>Ac(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=b(null);try{if(n.value===tp)throw Wc("");return n.value===os&&(n.value=tp,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&iC(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=oe(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 xc(e){let t=uo(e),n=t!==null?t.factory:Ht(e);if(n!==null)return n;if(e instanceof _)throw new C(-204,!1);if(e instanceof Function)return nC(e);throw new C(-204,!1)}function nC(e){if(e.length>0)throw new C(-204,!1);let n=UE(e);return n!==null?()=>n.factory(e):()=>new e}function rC(e){if(hp(e))return cr(void 0,e.useValue);{let t=Qc(e);return cr(t,os)}}function Qc(e,t,n){let r;if(bn(e)){let o=oe(e);return Ht(o)||xc(o)}else if(hp(e))r=()=>oe(e.useValue);else if(tC(e))r=()=>e.useFactory(...Ac(e.deps||[]));else if(eC(e))r=(o,i)=>Q(oe(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=oe(e&&(e.useClass||e.provide));if(oC(e))r=()=>new o(...Ac(e.deps));else return Ht(o)||xc(o)}return r}function no(e){if(e.destroyed)throw new C(-205,!1)}function cr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oC(e){return!!e.deps}function iC(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function sC(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Oc(e,t){for(let n of e)Array.isArray(n)?Oc(n,t):n&&Bc(n)?Oc(n.\u0275providers,t):t(n)}function Ds(e,t){let n;e instanceof wn?(no(e),n=e):n=new Mc(e);let r,o=at(n),i=ye(void 0);try{return t()}finally{at(o),ye(i)}}function mp(){return ap()!==void 0||rs()!=null}var We=0,I=1,S=2,J=3,Pe=4,ve=5,Tn=6,dr=7,Y=8,X=9,Ge=10,P=11,fr=12,Jc=13,_n=14,De=15,Zt=16,Nn=17,dt=18,ft=19,Xc=20,Tt=21,Es=22,Ut=23,Ne=24,Mn=25,pt=26,k=27,yp=1,Yt=6,Kt=7,Do=8,An=9,Z=10;function Nt(e){return Array.isArray(e)&&typeof e[yp]=="object"}function ze(e){return Array.isArray(e)&&e[yp]===!0}function el(e){return(e.flags&4)!==0}function ht(e){return e.componentOffset>-1}function pr(e){return(e.flags&1)===1}function qe(e){return!!e.template}function hr(e){return(e[S]&512)!==0}function Qt(e){return(e[S]&256)===256}var tl="svg",vp="math";function je(e){for(;Array.isArray(e);)e=e[We];return e}function nl(e,t){return je(t[e])}function Ie(e,t){return je(t[e.index])}function gr(e,t){return e.data[t]}function Jt(e,t){return e[t]}function Eo(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Be(e,t){let n=t[e];return Nt(n)?n:n[We]}function Dp(e){return(e[S]&4)===4}function Cs(e){return(e[S]&128)===128}function Ep(e){return ze(e[J])}function Me(e,t){return t==null?null:e[t]}function rl(e){e[Nn]=0}function ol(e){e[S]&1024||(e[S]|=1024,Cs(e)&&xn(e))}function Cp(e,t){for(;e>0;)t=t[_n],e--;return t}function Co(e){return!!(e[S]&9216||e[Ne]?.dirty)}function Is(e){e[Ge].changeDetectionScheduler?.notify(8),e[S]&64&&(e[S]|=1024),Co(e)&&xn(e)}function xn(e){e[Ge].changeDetectionScheduler?.notify(0);let t=Wt(e);for(;t!==null&&!(t[S]&8192||(t[S]|=8192,!Cs(t)));)t=Wt(t)}function bs(e,t){if(Qt(e))throw new C(911,!1);e[Tt]===null&&(e[Tt]=[]),e[Tt].push(t)}function il(e,t){if(e[Tt]===null)return;let n=e[Tt].indexOf(t);n!==-1&&e[Tt].splice(n,1)}function Wt(e){let t=e[J];return ze(t)?t[J]:t}function sl(e){return e[dr]??=[]}function al(e){return e.cleanup??=[]}function Ip(e,t,n,r){let o=sl(t);o.push(n),e.firstCreatePass&&al(e).push(r,o.length-1)}var M={lFrame:Fp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Rc=!1;function bp(){return M.lFrame.elementDepthCount}function wp(){M.lFrame.elementDepthCount++}function cl(){M.lFrame.elementDepthCount--}function ws(){return M.bindingsEnabled}function ll(){return M.skipHydrationRootTNode!==null}function ul(e){return M.skipHydrationRootTNode===e}function dl(){M.skipHydrationRootTNode=null}function v(){return M.lFrame.lView}function B(){return M.lFrame.tView}function Sp(e){return M.lFrame.contextLView=e,e[Y]}function Tp(e){return M.lFrame.contextLView=null,e}function ee(){let e=fl();for(;e!==null&&e.type===64;)e=e.parent;return e}function fl(){return M.lFrame.currentTNode}function _p(){let e=M.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function On(e,t){let n=M.lFrame;n.currentTNode=e,n.isParent=t}function pl(){return M.lFrame.isParent}function hl(){M.lFrame.isParent=!1}function gl(){return M.lFrame.contextLView}function ml(){return Rc}function so(e){let t=Rc;return Rc=e,t}function Ze(){let e=M.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Np(){return M.lFrame.bindingIndex}function Mp(e){return M.lFrame.bindingIndex=e}function Ye(){return M.lFrame.bindingIndex++}function Ss(e){let t=M.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ap(){return M.lFrame.inI18n}function xp(e,t){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ts(t)}function Op(){return M.lFrame.currentDirectiveIndex}function Ts(e){M.lFrame.currentDirectiveIndex=e}function Rp(e){let t=M.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _s(){return M.lFrame.currentQueryIndex}function Io(e){M.lFrame.currentQueryIndex=e}function aC(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[ve]:null}function yl(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=aC(i),o===null||(i=i[_n],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=M.lFrame=kp();return r.currentTNode=t,r.lView=e,!0}function Ns(e){let t=kp(),n=e[I];M.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function kp(){let e=M.lFrame,t=e===null?null:e.child;return t===null?Fp(e):t}function Fp(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 Lp(){let e=M.lFrame;return M.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vl=Lp;function Ms(){let e=Lp();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 Pp(e){return(M.lFrame.contextLView=Cp(e,M.lFrame.contextLView))[Y]}function Ke(){return M.lFrame.selectedIndex}function Xt(e){M.lFrame.selectedIndex=e}function Rn(){let e=M.lFrame;return gr(e.tView,e.selectedIndex)}function jp(){M.lFrame.currentNamespace=tl}function Bp(){cC()}function cC(){M.lFrame.currentNamespace=null}function Dl(){return M.lFrame.currentNamespace}var $p=!0;function As(){return $p}function bo(e){$p=e}function kc(e,t=null,n=null,r){let o=El(e,t,n,r);return o.resolveInjectorInitializers(),o}function El(e,t=null,n=null,r,o=new Set){let i=[n||de,fp(e)],s;return new wn(i,t||vo(),s||null,o)}var fe=class e{static THROW_IF_NOT_FOUND=Cn;static NULL=new io;static create(t,n){if(Array.isArray(t))return kc({name:""},n,t,"");{let r=t.name??"";return kc({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>Q(qc)});static __NG_ELEMENT_ID__=-1},pe=new _(""),gt=(()=>{class e{static __NG_ELEMENT_ID__=lC;static __NG_ENV_ID__=n=>n}return e})(),as=class extends gt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Qt(this._lView)}onDestroy(t){let n=this._lView;return bs(n,t),()=>il(n,t)}};function lC(){return new as(v())}var Vp=!1,Hp=new _(""),kn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new zr(!1);debugTaskTracker=m(Hp,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new R(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=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),Fc=class extends H{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,mp()&&(this.destroyRef=m(gt,{optional:!0})??void 0,this.pendingTasks=m(kn,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(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 se&&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)}})}}},St=Fc;function cs(...e){}function Cl(e){let t,n;function r(){e=cs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Up(e){return queueMicrotask(()=>e()),()=>{e=cs}}var Il="isAngularZone",ao=Il+"_ID",uC=0,Le=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new St(!1);onMicrotaskEmpty=new St(!1);onStable=new St(!1);onError=new St(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Vp}=t;if(typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,pC(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Il)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,dC,cs,cs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},dC={};function bl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function fC(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Cl(()=>{e.callbackScheduled=!1,Lc(e),e.isCheckStableRunning=!0,bl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Lc(e)}function pC(e){let t=()=>{fC(e)},n=uC++;e._inner=e._inner.fork({name:"angular",properties:{[Il]:!0,[ao]:n,[ao+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(hC(c))return r.invokeTask(i,s,a,c);try{return np(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),rp(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return np(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!gC(c)&&t(),rp(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Lc(e),bl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Lc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}functi