Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mobx

Package Overview
Dependencies
Maintainers
6
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx - npm Package Compare versions

Comparing version 6.13.0 to 6.13.1

13

dist/core/atom.d.ts

@@ -9,6 +9,7 @@ import { IDerivationState_, IObservable, IDerivation, Lambda } from "../internal";

name_: string;
isPendingUnobservation: boolean;
isBeingObserved: boolean;
private static readonly isBeingObservedMask_;
private static readonly isPendingUnobservationMask_;
private static readonly diffValueMask_;
private flags_;
observers_: Set<IDerivation>;
diffValue_: number;
lastAccessedBy_: number;

@@ -21,2 +22,8 @@ lowestObserverState_: IDerivationState_;

constructor(name_?: string);
get isBeingObserved(): boolean;
set isBeingObserved(newValue: boolean);
get isPendingUnobservation(): boolean;
set isPendingUnobservation(newValue: boolean);
get diffValue(): 0 | 1;
set diffValue(newValue: 0 | 1);
onBOL: Set<Lambda> | undefined;

@@ -23,0 +30,0 @@ onBUOL: Set<Lambda> | undefined;

@@ -47,3 +47,2 @@ import { CaughtException, IDerivation, IDerivationState_, IEqualsComparer, IObservable, Lambda, TraceMode } from "../internal";

observers_: Set<IDerivation>;
diffValue_: number;
runId_: number;

@@ -60,2 +59,3 @@ lastAccessedBy_: number;

private static readonly isPendingUnobservationMask_;
private static readonly diffValueMask_;
private flags_;

@@ -95,2 +95,4 @@ derivation: () => T;

set isPendingUnobservation(newValue: boolean);
get diffValue(): 0 | 1;
set diffValue(newValue: 0 | 1);
/**

@@ -97,0 +99,0 @@ * Returns the current value of this computed value.

@@ -7,3 +7,3 @@ import { Lambda, IDerivation, IDerivationState_ } from "../internal";

export interface IObservable extends IDepTreeNode {
diffValue_: number;
diffValue: number;
/**

@@ -10,0 +10,0 @@ * Id of the derivation *run* that last accessed this observable.

@@ -36,14 +36,24 @@ import { $mobx, IDerivation, IDerivationState_, IObservable, Lambda, TraceMode, GenericAbortSignal } from "../internal";

dependenciesState_: IDerivationState_;
diffValue_: number;
runId_: number;
unboundDepsCount_: number;
isDisposed_: boolean;
isScheduled_: boolean;
isTrackPending_: boolean;
isRunning_: boolean;
private static readonly isDisposedMask_;
private static readonly isScheduledMask_;
private static readonly isTrackPendingMask_;
private static readonly isRunningMask_;
private static readonly diffValueMask_;
private flags_;
isTracing_: TraceMode;
constructor(name_: string, onInvalidate_: () => void, errorHandler_?: ((error: any, derivation: IDerivation) => void) | undefined, requiresObservable_?: any);
get isDisposed(): boolean;
set isDisposed(newValue: boolean);
get isScheduled(): boolean;
set isScheduled(newValue: boolean);
get isTrackPending(): boolean;
set isTrackPending(newValue: boolean);
get isRunning(): boolean;
set isRunning(newValue: boolean);
get diffValue(): 0 | 1;
set diffValue(newValue: 0 | 1);
onBecomeStale_(): void;
schedule_(): void;
isScheduled(): boolean;
/**

@@ -50,0 +60,0 @@ * internal, use schedule() if you intend to kick off a reaction

@@ -1,2 +0,2 @@

function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:Nn}function i(){In||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function u(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function o(t){return null!==t&&"object"==typeof t}function s(t){if(!o(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===Kn}function f(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function c(t,n,i){kn(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function a(t,n,i){kn(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return o(t)&&!0===t[i]}}function v(t){return null!=t&&"[object Map]"===Object.prototype.toString.call(t)}function l(t){return null!=t&&"[object Set]"===Object.prototype.toString.call(t)}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return Tn.hasOwnProperty.call(t,n)}function p(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=Array(n);i<n;i++)r[i]=t[i];return r}function y(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x(r.key),r)}}function m(t,n,i){return n&&y(t.prototype,n),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return p(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(null,arguments)}function O(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,function(t,n){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}(t,n)}function x(t){var n=function(t){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof n?n:n+""}function g(t){return Object.assign((function(n,i){if(A(i))return t.t(n,i);_(n,i,t)}),t)}function _(t,n,i){b(t,qn)||c(t,qn,j({},t[qn])),function(t){return"override"===t.i}(i)||(t[qn][n]=i)}function A(t){return"object"==typeof t&&"string"==typeof t.kind}function S(t,n,i){void 0===n&&(n=Pn),void 0===i&&(i=Pn);var r=new Hn(t);return n!==Pn&&Lt(r,n),i!==Pn&&Ct(r,i),r}function M(t,n,i){return Ut(t)?t:Array.isArray(t)?ri.array(t,{name:i}):s(t)?ri.object(t,void 0,{name:i}):v(t)?ri.map(t,{name:i}):l(t)?ri.set(t,{name:i}):"function"!=typeof t||Rt(t)||qt(t)?t:f(t)?Ii(t):Ri(i,t)}function E(t){return t}function N(t,n){return{i:t,u:n,o:V,s:R,t:k}}function V(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Rt(i.value))return 1;var u=T(t,this,n,i,!1);return kn(r,n,u),2}function R(t,n,i,r){var e=T(t,this,n,i);return t.v(n,e,r)}function k(n,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,f,c,a,h,v;if("method"==r)return Rt(n)||(f=n,n=tt(null!=(c=null==(a=o.u)?void 0:a.name)?c:e.toString(),f,null!=(h=null==(v=o.u)?void 0:v.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),n;t("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){_(this,e,o)}))}function T(t,n,i,r,e){var u,o,s,f,c,a,h;void 0===e&&(e=xi.safeDescriptors);var v,l=r.value;return null!=(u=n.u)&&u.bound&&(l=l.bind(null!=(v=t.l)?v:t.h)),{value:tt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),l,null!=(f=null==(c=n.u)?void 0:c.autoAction)&&f,null!=(a=n.u)&&a.bound?null!=(h=t.l)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function L(t,n){return{i:t,u:n,o:C,s:I,t:K}}function C(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!b(t.h,n)||!qt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(qt(i.value))return 1;var u=P(t,0,0,i,!1,!1);return kn(r,n,u),2}function I(t,n,i,r){var e,u=P(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.v(n,u,r)}function K(t,n){var i,r=n.name,e=n.addInitializer;return qt(t)||(t=Ii(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function P(t,n,i,r,e,u){void 0===u&&(u=xi.safeDescriptors);var o,s=r.value;return qt(s)||(s=Ii(s)),e&&((s=s.bind(null!=(o=t.l)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function B(t,n){return{i:t,u:n,o:D,s:W,t:q}}function D(t,n,i){return null===this.s(t,n,i,!1)?0:1}function W(t,n,i,r){return t.m(n,j({},this.u,{get:i.get,set:i.set}),r)}function q(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=ln(this)[Gn],e=j({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.j.set(r,new li(e))})),function(){return this[Gn].O(r)}}function G(t,n){return{i:t,u:n,o:H,s:U,t:X}}function H(t,n,i){return null===this.s(t,n,i,!1)?0:1}function U(t,n,i,r){var e,u;return t.g(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:M,r)}function X(t,n){function i(t,n){var i,e,s=ln(t)[Gn],f=new hi(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:M,"ObservableObject."+u.toString(),!1);s.j.set(u,f),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[Gn].O(u)},set:function(t){return o.has(this)||i(this,t),this[Gn]._(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function F(t){return{i:"true",u:t,o:z,s:$,t:J}}function z(t,n,i,r){var e,u,o,s;if(i.get)return oi.o(t,n,i,r);if(i.set){var c=tt(n.toString(),i.set);return r===t.h?null===t.v(n,{configurable:!xi.safeDescriptors||t.p,set:c})?0:2:(kn(r,n,{configurable:!0,set:c}),2)}if(r!==t.h&&"function"==typeof i.value)return f(i.value)?(null!=(s=this.u)&&s.autoBind?Ii.bound:Ii).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?Ri.bound:Ri).o(t,n,i,r);var a,h=!1===(null==(e=this.u)?void 0:e.deep)?ri.ref:ri;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(a=t.l)?a:t.h)),h.o(t,n,i,r)}function $(t,n,i,r){var e,u,o;return i.get?oi.s(t,n,i,r):i.set?t.v(n,{configurable:!xi.safeDescriptors||t.p,set:tt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.l)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?ri.ref:ri).s(t,n,i,r))}function J(){t("'"+this.i+"' cannot be used as a decorator")}function Y(t){return t||$n}function Q(t){return!0===t.deep?M:!1===t.deep?E:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:M;var n,i,r}function Z(t,n,i){return A(n)?Jn.t(t,n):u(n)?void _(t,n,Jn):Ut(t)?t:s(t)?ri.object(t,n,i):Array.isArray(t)?ri.array(t,n):v(t)?ri.map(t,n):l(t)?ri.set(t,n):"object"==typeof t&&null!==t?t:ri.box(t,n)}function tt(t,n,i,r){function e(){return nt(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},ci&&(ai.value=t,kn(e,"name",ai)),e}function nt(t,n,i,r,e){var u=it(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{rt(u)}}function it(t,n){var i=xi.trackingDerivation,r=!n||!i;xt();var e=xi.allowStateChanges;r&&(dt(),e=ut(!0));var u={S:r,M:i,N:e,V:pt(!0),R:!1,k:0,T:fi++,L:si};return si=u.T,u}function rt(n){si!==n.T&&t(30),si=n.L,void 0!==n.A&&(xi.suppressReactionErrors=!0),ot(n.N),yt(n.V),gt(),n.S&&bt(n.M),xi.suppressReactionErrors=!1}function et(t,n){var i=ut(t);try{return n()}finally{ot(i)}}function ut(t){var n=xi.allowStateChanges;return xi.allowStateChanges=t,n}function ot(t){xi.allowStateChanges=t}function st(t,n){return!!(t&n)}function ft(t,n,i){return i?t|=n:t&=~n,t}function ct(t){return t instanceof yi}function at(t){switch(t.C){case di.I:return!1;case di.K:case di.P:return!0;case di.B:for(var n=pt(!0),i=dt(),r=t.D,e=r.length,u=0;u<e;u++){var o=r[u];if(pi(o)){if(xi.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return bt(i),yt(n),!0}if(t.C===di.P)return bt(i),yt(n),!0}}return mt(t),bt(i),yt(n),!1}}function ht(t,n,i){var r=pt(!0);mt(t),t.W=new Array(0===t.q?100:t.D.length),t.G=0,t.q=++xi.runId;var e,u=xi.trackingDerivation;if(xi.trackingDerivation=t,xi.inBatch++,!0===xi.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new yi(t)}return xi.inBatch--,xi.trackingDerivation=u,function(t){for(var n=t.D,i=t.D=t.W,r=di.I,e=0,u=t.G,o=0;o<u;o++){var s=i[o];0===s.H&&(s.H=1,e!==o&&(i[e]=s),e++),s.C>r&&(r=s.C)}for(i.length=e,t.W=null,u=n.length;u--;){var f=n[u];0===f.H&&jt(f,t),f.H=0}for(;e--;){var c=i[e];1===c.H&&(c.H=0,wt(c,t))}r!==di.I&&(t.C=r,t.U())}(t),yt(r),e}function vt(t){var n=t.D;t.D=[];for(var i=n.length;i--;)jt(n[i],t);t.C=di.K}function lt(t){var n=dt();try{return t()}finally{bt(n)}}function dt(){var t=xi.trackingDerivation;return xi.trackingDerivation=null,t}function bt(t){xi.trackingDerivation=t}function pt(t){var n=xi.allowStateReads;return xi.allowStateReads=t,n}function yt(t){xi.allowStateReads=t}function mt(t){if(t.C!==di.I){t.C=di.I;for(var n=t.D,i=n.length;i--;)n[i].X=di.I}}function wt(t,n){t.F.add(n),t.X>n.C&&(t.X=n.C)}function jt(t,n){t.F.delete(n),0===t.F.size&&Ot(t)}function Ot(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,xi.pendingUnobservations.push(t))}function xt(){xi.inBatch++}function gt(){if(0==--xi.inBatch){St();for(var t=xi.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.isPendingUnobservation=!1,0===i.F.size&&(i.isBeingObserved&&(i.isBeingObserved=!1,i.onBUO()),i instanceof li&&i.$())}xi.pendingUnobservations=[]}}function _t(t){var n=xi.trackingDerivation;return null!==n?(n.q!==t.J&&(t.J=n.q,n.W[n.G++]=t,!t.isBeingObserved&&xi.trackingContext&&(t.isBeingObserved=!0,t.onBO())),t.isBeingObserved):(0===t.F.size&&xi.inBatch>0&&Ot(t),!1)}function At(t){t.X!==di.P&&(t.X=di.P,t.F.forEach((function(t){t.C===di.I&&t.U(),t.C=di.P})))}function St(){xi.inBatch>0||xi.isRunningReactions||_i(Mt)}function Mt(){xi.isRunningReactions=!0;for(var t=xi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].Y()}xi.isRunningReactions=!1}function Et(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Nt(t){return function(n,i){return e(n)?tt(n.name||"<unnamed action>",n,t):e(i)?tt(n,i,t):A(i)?(t?Ei:Si).t(n,i):u(i)?_(n,i,t?Ei:Si):u(n)?g(N(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Vt(t){return nt(0,!1,t,this,void 0)}function Rt(t){return e(t)&&!0===t.isMobxAction}function kt(t,n){function i(){t(s)}var r,e,u,o;void 0===n&&(n=Cn);var s,f=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var c=Tt(n),a=!1;s=new gi(f,(function(){a||(a=!0,c((function(){a=!1,s.Z||s.track(i)})))}),n.onError,n.requiresObservable)}else s=new gi(f,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(u=u.signal)&&u.aborted||s.tt(),s.nt(null==(o=n)?void 0:o.signal)}function Tt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:ki}function Lt(t,n,i){return It("onBO",t,n,i)}function Ct(t,n,i){return It("onBUO",t,n,i)}function It(t,n,i,r){var u="function"==typeof r?On(n,i):On(n),o=e(r)?r:i,s=t+"L";return u[s]?u[s].add(o):u[s]=new Set([o]),function(){var t=u[s];t&&(t.delete(o),0===t.size&&delete u[s])}}function Kt(t,n,i,r){var e=Wn(n);return _n((function(){var n=ln(t,r)[Gn];Dn(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Pt(t){var n,i={name:t.it};return t.D&&t.D.length>0&&(i.dependencies=(n=t.D,Array.from(new Set(n))).map(Pt)),i}function Bt(t){var n={name:t.it};return function(t){return t.F&&t.F.size>0}(t)&&(n.observers=Array.from(function(t){return t.F}(t)).map(Bt)),n}function Dt(){this.message="FLOW_CANCELLED"}function Wt(t){e(t.cancel)&&t.cancel()}function qt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Gt(t,n){if(void 0===n)return pi(t);if(!1===bn(t))return!1;if(!t[Gn].j.has(n))return!1;var i=On(t,n);return pi(i)}function Ht(t,n){return!!t&&(void 0!==n?!!bn(t)&&t[Gn].j.has(n):bn(t)||!!t[Gn]||Un(t)||Ai(t)||pi(t))}function Ut(t){return Ht(t)}function Xt(n){return bn(n)?n[Gn].rt():$i(n)||Qi(n)?Array.from(n.keys()):vn(n)?n.map((function(t,n){return n})):void t(5)}function Ft(n,i){return bn(n)?n[Gn].et(i):$i(n)||Qi(n)?n.has(i):vn(n)?i>=0&&i<n.length:void t(10)}function zt(n){if(bn(n))return n[Gn].ut();t(38)}function $t(t,n,i){return t.set(n,i),i}function Jt(t,n){void 0===n&&(n=void 0),xt();try{return t.apply(n)}finally{gt()}}function Yt(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[Gn].Z){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=tt("When-effect",n),o=kt((function(n){et(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function Qt(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=Yt(t,i,j({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function Zt(t){return t[Gn]}function tn(t){return void 0!==t.ot&&t.ot.length>0}function nn(t,n){var i=t.ot||(t.ot=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function rn(n,i){var r=dt();try{for(var e=[].concat(n.ot||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&t(14),i);u++);return i}finally{bt(r)}}function en(t){return void 0!==t.st&&t.st.length>0}function un(t,n){var i=t.st||(t.st=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function on(t,n){var i=dt(),r=t.st;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);bt(i)}}function sn(t,n,r,e){return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i(),_n((function(){var i=new Wi(r,n,e,!1);a(i.j,Gn,i);var u=new Proxy(i.j,Di);return i.l=u,t&&t.length&&i.ft(0,0,t),u}))}function fn(t,n){"function"==typeof Array.prototype[t]&&(qi[t]=n(t))}function cn(t){return function(){var n=this[Gn];n.ct.reportObserved();var i=n.ht(n.j);return i[t].apply(i,arguments)}}function an(t){return function(n,i){var r=this,e=this[Gn];return e.ct.reportObserved(),e.ht(e.j)[t]((function(t,e){return n.call(i,t,e,r)}))}}function hn(t){return function(){var n=this,i=this[Gn];i.ct.reportObserved();var r=i.ht(i.j),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function vn(t){return o(t)&&Ui(t[Gn])}function ln(t,n){var i;if(b(t,Gn))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new tr(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:F(t):void 0}(n));return c(t,Gn,e),t}function dn(t){return Zi[t]||(Zi[t]={get:function(){return this[Gn].O(t)},set:function(n){return this[Gn]._(t,n)}})}function bn(t){return!!o(t)&&nr(t[Gn])}function pn(t,n,i){var r;null==(r=t.h[qn])||delete r[i]}function yn(t){return{enumerable:!1,configurable:!0,get:function(){return this[Gn].vt(t)},set:function(n){this[Gn].lt(t,n)}}}function mn(t){kn(or.prototype,""+t,yn(t))}function wn(t){if(t>er){for(var n=er;n<t+100;n++)mn(n);er=t}}function jn(t,n,i){return new or(t,n,i)}function On(n,i){if("object"==typeof n&&null!==n){if(vn(n))return void 0!==i&&t(23),n[Gn].ct;if(Qi(n))return n.ct;if($i(n)){if(void 0===i)return n.dt;var r=n.bt.get(i)||n.pt.get(i);return r||t(25,i,gn(n)),r}if(bn(n)){if(!i)return t(26);var u=n[Gn].j.get(i);return u||t(27,i,gn(n)),u}if(Un(n)||pi(n)||Ai(n))return n}else if(e(n)&&Ai(n[Gn]))return n[Gn];t(28)}function xn(n,i){return n||t(29),void 0!==i?xn(On(n,i)):Un(n)||pi(n)||Ai(n)||$i(n)||Qi(n)?n:n[Gn]?n[Gn]:void t(24,n)}function gn(t,n){var i;if(void 0!==n)i=On(t,n);else{if(Rt(t))return t.name;i=bn(t)||$i(t)||Qi(t)?xn(t):On(t)}return i.it}function _n(t){var n=dt(),i=ut(!0);xt();try{return t()}finally{gt(),ot(i),bt(n)}}function An(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,u,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var f=sr.call(n);if(f!==sr.call(i))return!1;switch(f){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Sn(n),i=Sn(i);var c="[object Array]"===f;if(!c){if("object"!=typeof n||"object"!=typeof i)return!1;var a=n.constructor,h=i.constructor;if(a!==h&&!(e(a)&&a instanceof a&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var v=(u=u||[]).length;v--;)if(u[v]===n)return o[v]===i;if(u.push(n),o.push(i),c){if((v=n.length)!==i.length)return!1;for(;v--;)if(!t(n[v],i[v],r-1,u,o))return!1}else{var l,d=Object.keys(n);if(v=d.length,Object.keys(i).length!==v)return!1;for(;v--;)if(!b(i,l=d[v])||!t(n[l],i[l],r-1,u,o))return!1}return u.pop(),o.pop(),!0}(t,n,i)}function Sn(t){return vn(t)?t.slice():v(t)||$i(t)||l(t)||Qi(t)?Array.from(t.entries()):t}function Mn(t){return t[Symbol.iterator]=En,t}function En(){return this}Object.defineProperty(exports,"__esModule",{value:!0});var Nn={},Vn=Object.assign,Rn=Object.getOwnPropertyDescriptor,kn=Object.defineProperty,Tn=Object.prototype,Ln=[];Object.freeze(Ln);var Cn={};Object.freeze(Cn);var In="undefined"!=typeof Proxy,Kn=Object.toString(),Pn=function(){},Bn=void 0!==Object.getOwnPropertySymbols,Dn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Bn?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Wn=Object.getOwnPropertyDescriptors||function(t){var n={};return Dn(t).forEach((function(i){n[i]=Rn(t,i)})),n},qn=Symbol("mobx-stored-annotations"),Gn=Symbol("mobx administration"),Hn=function(){function t(t){void 0===t&&(t="Atom"),this.it=void 0,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.F=new Set,this.H=0,this.J=0,this.X=di.K,this.onBOL=void 0,this.onBUOL=void 0,this.it=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return _t(this)},n.reportChanged=function(){xt(),At(this),gt()},n.toString=function(){return this.it},t}(),Un=h("Atom",Hn),Xn={identity:function(t,n){return t===n},structural:function(t,n){return An(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return An(t,n,1)}},Fn=g({i:"override",o:function(){return 0},s:function(){t("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),zn=F(),$n={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze($n);var Jn=G("observable"),Yn=G("observable.ref",{enhancer:E}),Qn=G("observable.shallow",{enhancer:function(t,n,i){return null==t||bn(t)||vn(t)||$i(t)||Qi(t)?t:Array.isArray(t)?ri.array(t,{name:i,deep:!1}):s(t)?ri.object(t,void 0,{name:i,deep:!1}):v(t)?ri.map(t,{name:i,deep:!1}):l(t)?ri.set(t,{name:i,deep:!1}):void 0}}),Zn=G("observable.struct",{enhancer:function(t,n){return An(t,n)?n:t}}),ti=g(Jn);Vn(Z,ti);var ni,ii,ri=Vn(Z,{box:function(t,n){var i=Y(n);return new hi(t,Q(i),i.name,!0,i.equals)},array:function(t,n){var i=Y(n);return(!1===xi.useProxies||!1===i.proxy?jn:sn)(t,Q(i),i.name)},map:function(t,n){var i=Y(n);return new zi(t,Q(i),i.name)},set:function(t,n){var i=Y(n);return new Yi(t,Q(i),i.name)},object:function(t,n,r){return _n((function(){return Kt(!1===xi.useProxies||!1===(null==r?void 0:r.proxy)?ln({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=ln(t,n))[Gn]).l)?e:r.l=new Proxy(t,Ki)}({},r),t,n)}))},ref:g(Yn),shallow:g(Qn),deep:ti,struct:g(Zn)}),ei=B("computed"),ui=B("computed.struct",{equals:Xn.structural}),oi=function(t,n){if(A(n))return ei.t(t,n);if(u(n))return _(t,n,ei);if(s(t))return g(B("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new li(i)};Object.assign(oi,ei),oi.struct=g(ui);var si=0,fi=1,ci=null!=(ni=null==(ii=Rn((function(){}),"name"))?void 0:ii.configurable)&&ni,ai={value:"action",configurable:!0,writable:!1,enumerable:!1},hi=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=Xn.default),(o=t.call(this,r)||this).enhancer=void 0,o.it=void 0,o.equals=void 0,o.yt=!1,o.ot=void 0,o.st=void 0,o.wt=void 0,o.dehancer=void 0,o.enhancer=i,o.it=r,o.equals=u,o.wt=i(n,void 0,r),o}O(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.jt(t))!==xi.UNCHANGED&&this.Ot(t)},i.jt=function(t){if(tn(this)){var n=rn(this,{object:this,type:Bi,newValue:t});if(!n)return xi.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.wt,this.it),this.equals(this.wt,t)?xi.UNCHANGED:t},i.Ot=function(t){var n=this.wt;this.wt=t,this.reportChanged(),en(this)&&on(this,{type:Bi,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.wt)},i.xt=function(t){return nn(this,t)},i.gt=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.it,object:this,type:Bi,newValue:this.wt,oldValue:void 0}),un(this,t)},i.raw=function(){return this.wt},i.toJSON=function(){return this.get()},i.toString=function(){return this.it+"["+this.wt+"]"},i.valueOf=function(){return d(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},n}(Hn),vi=h("ObservableValue",hi),li=function(){function n(n){this.C=di.K,this.D=[],this.W=null,this.F=new Set,this.H=0,this.q=0,this.J=0,this.X=di.I,this.G=0,this.wt=new yi(null),this.it=void 0,this._t=void 0,this.At=0,this.derivation=void 0,this.St=void 0,this.Mt=bi.NONE,this.Et=void 0,this.Nt=void 0,this.Vt=void 0,this.Rt=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.it=n.name||"ComputedValue",n.set&&(this.St=tt("ComputedValue-setter",n.set)),this.Nt=n.equals||(n.compareStructural||n.struct?Xn.structural:Xn.default),this.Et=n.context,this.Vt=n.requiresReaction,this.Rt=!!n.keepAlive}var i=n.prototype;return i.U=function(){!function(t){t.X===di.I&&(t.X=di.B,t.F.forEach((function(t){t.C===di.I&&(t.C=di.B,t.U())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.isComputing&&t(32,this.it,this.derivation),0!==xi.inBatch||0!==this.F.size||this.Rt){if(_t(this),at(this)){var n=xi.trackingContext;this.Rt&&!n&&(xi.trackingContext=this),this.trackAndCompute()&&function(t){t.X!==di.P&&(t.X=di.P,t.F.forEach((function(n){n.C===di.B?n.C=di.P:n.C===di.I&&(t.X=di.I)})))}(this),xi.trackingContext=n}}else at(this)&&(this.kt(),xt(),this.wt=this.Tt(!1),gt());var i=this.wt;if(ct(i))throw i.cause;return i},i.set=function(n){if(this.St){this.isRunningSetter&&t(33,this.it),this.isRunningSetter=!0;try{this.St.call(this.Et,n)}finally{this.isRunningSetter=!1}}else t(34,this.it)},i.trackAndCompute=function(){var t=this.wt,n=this.C===di.K,i=this.Tt(!0),r=n||ct(t)||ct(i)||!this.Nt(t,i);return r&&(this.wt=i),r},i.Tt=function(t){this.isComputing=!0;var n,i=ut(!1);if(t)n=ht(this,this.derivation,this.Et);else if(!0===xi.disableErrorBoundaries)n=this.derivation.call(this.Et);else try{n=this.derivation.call(this.Et)}catch(t){n=new yi(t)}return ot(i),this.isComputing=!1,n},i.$=function(){this.Rt||(vt(this),this.wt=void 0)},i.gt=function(t,n){var i=this,r=!0,e=void 0;return kt((function(){var u=i.get();if(!r||n){var o=dt();t({observableKind:"computed",debugObjectName:i.it,type:Bi,object:i,newValue:u,oldValue:e}),bt(o)}r=!1,e=u}))},i.kt=function(){},i.toString=function(){return this.it+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},m(n,[{key:"isComputing",get:function(){return st(this.At,n.Lt)},set:function(t){this.At=ft(this.At,n.Lt,t)}},{key:"isRunningSetter",get:function(){return st(this.At,n.Ct)},set:function(t){this.At=ft(this.At,n.Ct,t)}},{key:"isBeingObserved",get:function(){return st(this.At,n.It)},set:function(t){this.At=ft(this.At,n.It,t)}},{key:"isPendingUnobservation",get:function(){return st(this.At,n.Kt)},set:function(t){this.At=ft(this.At,n.Kt,t)}}])}();li.Lt=1,li.Ct=2,li.It=4,li.Kt=8;var di,bi,pi=h("ComputedValue",li);!function(t){t[t.K=-1]="NOT_TRACKING_",t[t.I=0]="UP_TO_DATE_",t[t.B=1]="POSSIBLY_STALE_",t[t.P=2]="STALE_"}(di||(di={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(bi||(bi={}));var yi=function(t){this.cause=void 0,this.cause=t},mi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],wi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ji=!0,Oi=!1,xi=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(ji=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new wi).version&&(ji=!1),ji?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new wi):(setTimeout((function(){Oi||t(35)}),1),new wi)}(),gi=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.it=void 0,this.Pt=void 0,this.Bt=void 0,this.Dt=void 0,this.D=[],this.W=[],this.C=di.K,this.H=0,this.q=0,this.G=0,this.Z=!1,this.Wt=!1,this.qt=!1,this.Gt=!1,this.Mt=bi.NONE,this.it=t,this.Pt=n,this.Bt=i,this.Dt=r}var n=t.prototype;return n.U=function(){this.tt()},n.tt=function(){this.Wt||(this.Wt=!0,xi.pendingReactions.push(this),St())},n.isScheduled=function(){return this.Wt},n.Y=function(){if(!this.Z){xt(),this.Wt=!1;var t=xi.trackingContext;if(xi.trackingContext=this,at(this)){this.qt=!0;try{this.Pt()}catch(t){this.Ht(t)}}xi.trackingContext=t,gt()}},n.track=function(t){if(!this.Z){xt(),this.Gt=!0;var n=xi.trackingContext;xi.trackingContext=this;var i=ht(this,t,void 0);xi.trackingContext=n,this.Gt=!1,this.qt=!1,this.Z&&vt(this),ct(i)&&this.Ht(i.cause),gt()}},n.Ht=function(t){var n=this;if(this.Bt)this.Bt(t,this);else{if(xi.disableErrorBoundaries)throw t;xi.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),xi.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.Z||(this.Z=!0,this.Gt||(xt(),vt(this),gt()))},n.nt=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[Gn]=this,i},n.toString=function(){return"Reaction["+this.it+"]"},n.trace=function(){},t}(),_i=function(t){return t()},Ai=h("Reaction",gi),Si=N("action"),Mi=N("action.bound",{bound:!0}),Ei=N("autoAction",{autoAction:!0}),Ni=N("autoAction.bound",{autoAction:!0,bound:!0}),Vi=Nt(!1);Object.assign(Vi,Si);var Ri=Nt(!0);Object.assign(Ri,Ei),Vi.bound=g(Mi),Ri.bound=g(Ni);var ki=function(t){return t()},Ti=0;Dt.prototype=Object.create(Error.prototype);var Li=L("flow"),Ci=L("flow.bound",{bound:!0}),Ii=Object.assign((function(t,n){if(A(n))return Li.t(t,n);if(u(n))return _(t,n,Li);var i=t,r=i.name||"<unnamed flow>",o=function(){var t,n=this,u=arguments,o=++Ti,s=Vi(r+" - runid: "+o+" - init",i).apply(n,u),f=void 0,c=new Promise((function(n,i){function u(t){var n;f=void 0;try{n=Vi(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}a(n)}function c(t){var n;f=void 0;try{n=Vi(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}a(n)}function a(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(u,c);t.then(a,i)}var h=0;t=i,u(void 0)}));return c.cancel=Vi(r+" - runid: "+o+" - cancel",(function(){try{f&&Wt(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(Pn,Pn),Wt(i),t(new Dt)}catch(n){t(n)}})),c};return o.isMobXFlow=!0,o}),Li);Ii.bound=g(Ci);var Ki={has:function(t,n){return Zt(t).et(n)},get:function(t,n){return Zt(t).vt(n)},set:function(t,n,i){var r;return!!u(n)&&(null==(r=Zt(t).lt(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!u(n)&&(null==(i=Zt(t).Ut(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=Zt(t).v(n,i))||r},ownKeys:function(t){return Zt(t).ut()},preventExtensions:function(){t(13)}},Pi=Symbol("mobx-keys"),Bi="update",Di={get:function(t,n){var i=t[Gn];return n===Gn?i:"length"===n?i.Xt():"string"!=typeof n||isNaN(n)?b(qi,n)?qi[n]:t[n]:i.vt(parseInt(n))},set:function(t,n,i){var r=t[Gn];return"length"===n&&r.Ft(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.lt(parseInt(n),i),!0},preventExtensions:function(){t(15)}},Wi=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.zt=void 0,this.$t=void 0,this.ct=void 0,this.j=[],this.ot=void 0,this.st=void 0,this.Jt=void 0,this.dehancer=void 0,this.l=void 0,this.Yt=0,this.zt=i,this.$t=r,this.ct=new Hn(t),this.Jt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.ht=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.xt=function(t){return nn(this,t)},i.gt=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.l,debugObjectName:this.ct.it,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),un(this,t)},i.Xt=function(){return this.ct.reportObserved(),this.j.length},i.Ft=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.j.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.ft(i,0,r)}else this.ft(n,i-n)},i.Zt=function(n,i){n!==this.Yt&&t(16),this.Yt+=i,this.$t&&i>0&&wn(n+i+1)},i.ft=function(t,n,i){var r=this,e=this.j.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=Ln),tn(this)){var u=rn(this,{object:this.l,type:"splice",index:t,removedCount:n,added:i});if(!u)return Ln;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.Jt(t,void 0)})),this.$t){var o=i.length-n;this.Zt(e,o)}var s=this.tn(t,n,i);return 0===n&&0===i.length||this.nn(t,i,s),this.ht(s)},i.tn=function(t,n,i){var r;if(i.length<1e4)return(r=this.j).splice.apply(r,[t,n].concat(i));var e=this.j.slice(t,t+n),u=this.j.slice(t+n);this.j.length+=i.length-n;for(var o=0;o<i.length;o++)this.j[t+o]=i[o];for(var s=0;s<u.length;s++)this.j[t+i.length+s]=u[s];return e},i.in=function(t,n,i){var r=!this.zt&&!1,e=en(this),u=e||r?{observableKind:"array",object:this.l,type:Bi,debugObjectName:this.ct.it,index:t,newValue:n,oldValue:i}:null;this.ct.reportChanged(),e&&on(this,u)},i.nn=function(t,n,i){var r=!this.zt&&!1,e=en(this),u=e||r?{observableKind:"array",object:this.l,debugObjectName:this.ct.it,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.ct.reportChanged(),e&&on(this,u)},i.vt=function(t){if(!(this.$t&&t>=this.j.length))return this.ct.reportObserved(),this.Qt(this.j[t]);console.warn("[mobx] Out of bounds read: "+t)},i.lt=function(n,i){var r=this.j;if(this.$t&&n>r.length&&t(17,n,r.length),n<r.length){var e=r[n];if(tn(this)){var u=rn(this,{type:Bi,object:this.l,index:n,newValue:i});if(!u)return;i=u.newValue}(i=this.Jt(i,e))!==e&&(r[n]=i,this.in(n,i,e))}else{for(var o=new Array(n+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.ft(r.length,0,o)}},n}(),qi={clear:function(){return this.splice(0)},replace:function(t){var n=this[Gn];return n.ft(0,n.j.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[Gn];switch(arguments.length){case 0:return[];case 1:return u.ft(t);case 2:return u.ft(t,n)}return u.ft(t,n,r)},spliceWithArray:function(t,n,i){return this[Gn].ft(t,n,i)},push:function(){for(var t=this[Gn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ft(t.j.length,0,i),t.j.length},pop:function(){return this.splice(Math.max(this[Gn].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Gn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ft(0,0,i),t.j.length},reverse:function(){return xi.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){xi.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[Gn],i=n.ht(n.j).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};fn("at",cn),fn("concat",cn),fn("flat",cn),fn("includes",cn),fn("indexOf",cn),fn("join",cn),fn("lastIndexOf",cn),fn("slice",cn),fn("toString",cn),fn("toLocaleString",cn),fn("toSorted",cn),fn("toSpliced",cn),fn("with",cn),fn("every",an),fn("filter",an),fn("find",an),fn("findIndex",an),fn("findLast",an),fn("findLastIndex",an),fn("flatMap",an),fn("forEach",an),fn("map",an),fn("some",an),fn("toReversed",an),fn("reduce",hn),fn("reduceRight",hn);var Gi,Hi,Ui=h("ObservableArrayAdministration",Wi),Xi={},Fi="add",zi=function(){function n(n,i,r){var u=this;void 0===i&&(i=M),void 0===r&&(r="ObservableMap"),this.Jt=void 0,this.it=void 0,this[Gn]=Xi,this.bt=void 0,this.pt=void 0,this.dt=void 0,this.ot=void 0,this.st=void 0,this.dehancer=void 0,this.Jt=i,this.it=r,e(Map)||t(18),_n((function(){u.dt=S("ObservableMap.keys()"),u.bt=new Map,u.pt=new Map,n&&u.merge(n)}))}var i=n.prototype;return i.et=function(t){return this.bt.has(t)},i.has=function(t){var n=this;if(!xi.trackingDerivation)return this.et(t);var i=this.pt.get(t);if(!i){var r=i=new hi(this.et(t),E,"ObservableMap.key?",!1);this.pt.set(t,r),Ct(r,(function(){return n.pt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.et(t);if(tn(this)){var r=rn(this,{type:i?Bi:Fi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.rn(t,n):this.en(t,n),this},i.delete=function(t){var n=this;if(tn(this)&&!rn(this,{type:"delete",object:this,name:t}))return!1;if(this.et(t)){var i=en(this),r=i?{observableKind:"map",debugObjectName:this.it,type:"delete",object:this,oldValue:this.bt.get(t).wt,name:t}:null;return Jt((function(){var i;n.dt.reportChanged(),null==(i=n.pt.get(t))||i.Ot(!1),n.bt.get(t).Ot(void 0),n.bt.delete(t)})),i&&on(this,r),!0}return!1},i.rn=function(t,n){var i=this.bt.get(t);if((n=i.jt(n))!==xi.UNCHANGED){var r=en(this),e=r?{observableKind:"map",debugObjectName:this.it,type:Bi,object:this,oldValue:i.wt,name:t,newValue:n}:null;i.Ot(n),r&&on(this,e)}},i.en=function(t,n){var i=this;Jt((function(){var r,e=new hi(n,i.Jt,"ObservableMap.key",!1);i.bt.set(t,e),n=e.wt,null==(r=i.pt.get(t))||r.Ot(!0),i.dt.reportChanged()}));var r=en(this);r&&on(this,r?{observableKind:"map",debugObjectName:this.it,type:Fi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Qt(this.bt.get(t).get()):this.Qt(void 0)},i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.dt.reportObserved(),this.bt.keys()},i.values=function(){var t=this,n=this.keys();return Mn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return Mn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Symbol.iterator]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=w(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return $i(n)&&(n=new Map(n)),Jt((function(){var r,e;s(n)?function(t){var n=Object.keys(t);if(!Bn)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Tn.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):v(n)?(r=Object.getPrototypeOf(n),e=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(e)&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;Jt((function(){lt((function(){for(var n,i=w(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return Jt((function(){for(var r,e=function(n){if(v(n)||$i(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),u=new Map,o=!1,f=w(i.bt.keys());!(r=f()).done;){var c=r.value;if(!e.has(c))if(i.delete(c))o=!0;else{var a=i.bt.get(c);u.set(c,a)}}for(var h,l=w(e.entries());!(h=l()).done;){var d=h.value,b=d[0],p=d[1],y=i.bt.has(b);if(i.set(b,p),i.bt.has(b)){var m=i.bt.get(b);u.set(b,m),y||(o=!0)}}if(!o)if(i.bt.size!==u.size)i.dt.reportChanged();else for(var j=i.bt.keys(),O=u.keys(),x=j.next(),g=O.next();!x.done;){if(x.value!==g.value){i.dt.reportChanged();break}x=j.next(),g=O.next()}i.bt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.gt=function(t){return un(this,t)},i.xt=function(t){return nn(this,t)},m(n,[{key:"size",get:function(){return this.dt.reportObserved(),this.bt.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),$i=h("ObservableMap",zi),Ji={},Yi=function(){function n(n,i,r){var u=this;void 0===i&&(i=M),void 0===r&&(r="ObservableSet"),this.it=void 0,this[Gn]=Ji,this.bt=new Set,this.ct=void 0,this.st=void 0,this.ot=void 0,this.dehancer=void 0,this.Jt=void 0,this.it=r,e(Set)||t(22),this.Jt=function(t,n){return i(t,n,r)},_n((function(){u.ct=S(u.it),n&&u.replace(n)}))}var i=n.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;Jt((function(){lt((function(){for(var n,i=w(t.bt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=w(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(tn(this)&&!rn(this,{type:Fi,object:this,newValue:t}))return this;if(!this.has(t)){Jt((function(){n.bt.add(n.Jt(t,void 0)),n.ct.reportChanged()}));var i=en(this);i&&on(this,i?{observableKind:"set",debugObjectName:this.it,type:Fi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(tn(this)&&!rn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=en(this),r=i?{observableKind:"set",debugObjectName:this.it,type:"delete",object:this,oldValue:t}:null;return Jt((function(){n.ct.reportChanged(),n.bt.delete(t)})),i&&on(this,r),!0}return!1},i.has=function(t){return this.ct.reportObserved(),this.bt.has(this.Qt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return Mn({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.ct.reportObserved();var t=this,n=0,i=Array.from(this.bt.values());return Mn({next:function(){return n<i.length?{value:t.Qt(i[n++]),done:!1}:{done:!0}}})},i.intersection=function(t){return l(t)?t.intersection(this):new Set(this).intersection(t)},i.union=function(t){return l(t)?t.union(this):new Set(this).union(t)},i.difference=function(t){return new Set(this).difference(t)},i.symmetricDifference=function(t){return l(t)?t.symmetricDifference(this):new Set(this).symmetricDifference(t)},i.isSubsetOf=function(t){return new Set(this).isSubsetOf(t)},i.isSupersetOf=function(t){return new Set(this).isSupersetOf(t)},i.isDisjointFrom=function(t){return l(t)?t.isDisjointFrom(this):new Set(this).isDisjointFrom(t)},i.replace=function(n){var i=this;return Qi(n)&&(n=new Set(n)),Jt((function(){Array.isArray(n)||l(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.gt=function(t){return un(this,t)},i.xt=function(t){return nn(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Symbol.iterator]=function(){return this.values()},m(n,[{key:"size",get:function(){return this.ct.reportObserved(),this.bt.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Qi=h("ObservableSet",Yi),Zi=Object.create(null),tr=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=zn),this.h=void 0,this.j=void 0,this.it=void 0,this.un=void 0,this.dt=void 0,this.st=void 0,this.ot=void 0,this.l=void 0,this.p=void 0,this.on=void 0,this.sn=void 0,this.h=t,this.j=n,this.it=i,this.un=r,this.dt=new Hn("ObservableObject.keys"),this.p=s(this.h)}var i=n.prototype;return i.O=function(t){return this.j.get(t).get()},i._=function(t,n){var i=this.j.get(t);if(i instanceof li)return i.set(n),!0;if(tn(this)){var r=rn(this,{type:Bi,object:this.l||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.jt(n))!==xi.UNCHANGED){var e=en(this),u=e?{type:Bi,observableKind:"object",debugObjectName:this.it,object:this.l||this.h,oldValue:i.wt,name:t,newValue:n}:null;i.Ot(n),e&&on(this,u)}return!0},i.vt=function(t){return xi.trackingDerivation&&!b(this.h,t)&&this.et(t),this.h[t]},i.lt=function(t,n,i){return void 0===i&&(i=!1),b(this.h,t)?this.j.has(t)?this._(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.un,i)},i.et=function(t){if(!xi.trackingDerivation)return t in this.h;this.sn||(this.sn=new Map);var n=this.sn.get(t);return n||(n=new hi(t in this.h,E,"ObservableObject.key?",!1),this.sn.set(t,n)),n.get()},i.o=function(n,i){if(!0===i&&(i=this.un),!1!==i){if(!(n in this.h)){var r;if(null!=(r=this.h[qn])&&r[n])return;t(1,i.i,this.it+"."+n.toString())}for(var e=this.h;e&&e!==Tn;){var u=Rn(e,n);if(u){var o=i.o(this,n,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}pn(this,0,n)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.un),!1===i)return this.v(t,n,r);var e=i.s(this,t,n,r);return e&&pn(this,0,t),e},i.v=function(t,n,i){void 0===i&&(i=!1);try{xt();var r=this.Ut(t);if(!r)return r;if(tn(this)){var e=rn(this,{object:this.l||this.h,name:t,type:Fi,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=j({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else kn(this.h,t,n);this.fn(t,n.value)}finally{gt()}return!0},i.g=function(t,n,i,r){void 0===r&&(r=!1);try{xt();var e=this.Ut(t);if(!e)return e;if(tn(this)){var u=rn(this,{object:this.l||this.h,name:t,type:Fi,newValue:n});if(!u)return null;n=u.newValue}var o=dn(t),s={configurable:!xi.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else kn(this.h,t,s);var f=new hi(n,i,"ObservableObject.key",!1);this.j.set(t,f),this.fn(t,f.wt)}finally{gt()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{xt();var r=this.Ut(t);if(!r)return r;if(tn(this)&&!rn(this,{object:this.l||this.h,name:t,type:Fi,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.l||this.h;var e=dn(t),u={configurable:!xi.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else kn(this.h,t,u);this.j.set(t,new li(n)),this.fn(t,void 0)}finally{gt()}return!0},i.Ut=function(t,n){if(void 0===n&&(n=!1),!b(this.h,t))return!0;if(tn(this)&&!rn(this,{object:this.l||this.h,name:t,type:"remove"}))return null;try{var i;xt();var r,e=en(this),u=this.j.get(t),o=void 0;if(!u&&e&&(o=null==(r=Rn(this.h,t))?void 0:r.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];u&&(this.j.delete(t),u instanceof hi&&(o=u.wt),At(u)),this.dt.reportChanged(),null==(i=this.sn)||null==(i=i.get(t))||i.set(t in this.h),e&&e&&on(this,{type:"remove",observableKind:"object",object:this.l||this.h,debugObjectName:this.it,oldValue:o,name:t})}finally{gt()}return!0},i.gt=function(t){return un(this,t)},i.xt=function(t){return nn(this,t)},i.fn=function(t,n){var i,r=en(this);r&&r&&on(this,r?{type:Fi,observableKind:"object",debugObjectName:this.it,object:this.l||this.h,name:t,newValue:n}:null),null==(i=this.sn)||null==(i=i.get(t))||i.set(!0),this.dt.reportChanged()},i.ut=function(){return this.dt.reportObserved(),Dn(this.h)},i.rt=function(){return this.dt.reportObserved(),Object.keys(this.h)},n}(),nr=h("ObservableObjectAdministration",tr),ir=yn(0),rr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),er=0,ur=function(){};Gi=ur,Hi=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Gi.prototype,Hi):void 0!==Gi.prototype.__proto__?Gi.prototype.__proto__=Hi:Gi.prototype=Hi;var or=function(t){function n(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,_n((function(){var t=new Wi(r,i,e,!0);t.l=u,a(u,Gn,t),n&&n.length&&u.spliceWithArray(0,0,n),rr&&Object.defineProperty(u,"0",ir)})),u}O(n,t);var i=n.prototype;return i.concat=function(){this[Gn].ct.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return vn(t)?t.slice():t})))},i[Symbol.iterator]=function(){var t=this,n=0;return Mn({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},m(n,[{key:"length",get:function(){return this[Gn].Xt()},set:function(t){this[Gn].Ft(t)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ur);Object.entries(qi).forEach((function(t){var n=t[0];"concat"!==n&&c(or.prototype,n,t[1])})),wn(1e3);var sr=Tn.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Et,extras:{getDebugName:gn},$mobx:Gn}),exports.$mobx=Gn,exports.FlowCancellationError=Dt,exports.ObservableMap=zi,exports.ObservableSet=Yi,exports.Reaction=gi,exports._allowStateChanges=et,exports._allowStateChangesInsideComputed=Vt,exports._allowStateReadsEnd=yt,exports._allowStateReadsStart=pt,exports._autoAction=Ri,exports._endAction=rt,exports._getAdministration=xn,exports._getGlobalState=function(){return xi},exports._interceptReads=function(t,n,i){var r;return $i(t)||vn(t)||vi(t)?r=xn(t):bn(t)&&(r=xn(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}},exports._isComputingDerivation=function(){return null!==xi.trackingDerivation},exports._resetGlobalState=function(){var t=new wi;for(var n in t)-1===mi.indexOf(n)&&(xi[n]=t[n]);xi.allowStateChanges=!xi.enforceActions},exports._startAction=it,exports.action=Vi,exports.autorun=kt,exports.comparer=Xn,exports.computed=oi,exports.configure=function(i){!0===i.isolateGlobalState&&function(){if((xi.pendingReactions.length||xi.inBatch||xi.isRunningReactions)&&t(36),Oi=!0,ji){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),xi=new wi}}();var r,e,u=i.useProxies,o=i.enforceActions;if(void 0!==u&&(xi.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&(xi.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;xi.enforceActions=s,xi.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&(xi[t]=!!i[t])})),xi.allowStateReads=!xi.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=_i,_i=function(t){return r((function(){return e(t)}))})},exports.createAtom=S,exports.defineProperty=function(n,i,r){if(bn(n))return n[Gn].v(i,r);t(39)},exports.entries=function(n){return bn(n)?Xt(n).map((function(t){return[t,n[t]]})):$i(n)?Xt(n).map((function(t){return[t,n.get(t)]})):Qi(n)?Array.from(n.entries()):vn(n)?n.map((function(t,n){return[n,t]})):void t(7)},exports.extendObservable=Kt,exports.flow=Ii,exports.flowResult=function(t){return t},exports.get=function(n,i){if(Ft(n,i))return bn(n)?n[Gn].vt(i):$i(n)?n.get(i):vn(n)?n[i]:void t(11)},exports.getAtom=On,exports.getDebugName=gn,exports.getDependencyTree=function(t,n){return Pt(On(t,n))},exports.getObserverTree=function(t,n){return Bt(On(t,n))},exports.has=Ft,exports.intercept=function(t,n,i){return e(i)?function(t,n,i){return xn(t,n).xt(i)}(t,n,i):function(t,n){return xn(t).xt(n)}(t,n)},exports.isAction=Rt,exports.isBoxedObservable=vi,exports.isComputed=function(t){return Gt(t)},exports.isComputedProp=function(t,n){return Gt(t,n)},exports.isFlow=qt,exports.isFlowCancellationError=function(t){return t instanceof Dt},exports.isObservable=Ut,exports.isObservableArray=vn,exports.isObservableMap=$i,exports.isObservableObject=bn,exports.isObservableProp=function(t,n){return Ht(t,n)},exports.isObservableSet=Qi,exports.keys=Xt,exports.makeAutoObservable=function(t,n,i){return s(t)?Kt(t,t,n,i):(_n((function(){var r=ln(t,i)[Gn];if(!t[Pi]){var e=Object.getPrototypeOf(t),u=new Set([].concat(Dn(t),Dn(e)));u.delete("constructor"),u.delete(Gn),c(e,Pi,u)}t[Pi].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)},exports.makeObservable=function(t,n,i){return _n((function(){var r=ln(t,i)[Gn];null!=n||(n=function(t){return b(t,qn)||c(t,qn,j({},t[qn])),t[qn]}(t)),Dn(n).forEach((function(t){return r.o(t,n[t])}))})),t},exports.observable=ri,exports.observe=function(t,n,i,r){return e(i)?function(t,n,i,r){return xn(t,n).gt(i,r)}(t,n,i,r):function(t,n,i){return xn(t).gt(n,i)}(t,n,i)},exports.onBecomeObserved=Lt,exports.onBecomeUnobserved=Ct,exports.onReactionError=function(t){return xi.globalReactionErrorHandlers.push(t),function(){var n=xi.globalReactionErrorHandlers.indexOf(t);n>=0&&xi.globalReactionErrorHandlers.splice(n,1)}},exports.override=Fn,exports.ownKeys=zt,exports.reaction=function(t,n,i){function r(){if(b=!1,!y.Z){var n=!1,r=c;y.track((function(){var i=et(!1,(function(){return t(y)}));n=d||!p(c,i),c=i})),(d&&i.fireImmediately||!d&&n)&&h(c,r,y),d=!1}}var e,u,o;void 0===i&&(i=Cn);var s,f,c,a=null!=(e=i.name)?e:"Reaction",h=Vi(a,i.onError?(s=i.onError,f=n,function(){try{return f.apply(this,arguments)}catch(t){s.call(this,t)}}):n),v=!i.scheduler&&!i.delay,l=Tt(i),d=!0,b=!1,p=i.compareStructural?Xn.structural:i.equals||Xn.default,y=new gi(a,(function(){d||v?r():b||(b=!0,l(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(u=u.signal)&&u.aborted||y.tt(),y.nt(null==(o=i)?void 0:o.signal)},exports.remove=function(n,i){bn(n)?n[Gn].Ut(i):$i(n)||Qi(n)?n.delete(i):vn(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)},exports.runInAction=Vt,exports.set=function n(i,r,e){if(2!==arguments.length||Qi(i))bn(i)?i[Gn].lt(r,e):$i(i)?i.set(r,e):Qi(i)?i.add(r):vn(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&t("Invalid index: '"+r+"'"),xt(),r>=i.length&&(i.length=r+1),i[r]=e,gt()):t(8);else{xt();var u=r;try{for(var o in u)n(i,o,u[o])}finally{gt()}}},exports.spy=Et,exports.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Ut(n))return n;if(vi(n)||pi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(vn(n)){var r=$t(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Qi(n)){var e=$t(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if($i(n)){var u=$t(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=$t(i,n,{});return zt(n).forEach((function(r){Tn.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)},exports.trace=function(){},exports.transaction=Jt,exports.untracked=lt,exports.values=function(n){return bn(n)?Xt(n).map((function(t){return n[t]})):$i(n)?Xt(n).map((function(t){return n.get(t)})):Qi(n)?Array.from(n.values()):vn(n)?n.slice():void t(6)},exports.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Qt(t,n):Yt(t,n,i||{})};
function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:Mn}function i(){Pn||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function u(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function o(t){return null!==t&&"object"==typeof t}function s(t){if(!o(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===In}function f(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function c(t,n,i){Rn(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function a(t,n,i){Rn(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return o(t)&&!0===t[i]}}function v(t){return null!=t&&"[object Map]"===Object.prototype.toString.call(t)}function l(t){return null!=t&&"[object Set]"===Object.prototype.toString.call(t)}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return Tn.hasOwnProperty.call(t,n)}function p(t,n){return!!(t&n)}function y(t,n,i){return i?t|=n:t&=~n,t}function m(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=Array(n);i<n;i++)r[i]=t[i];return r}function w(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_(r.key),r)}}function j(t,n,i){return n&&w(t.prototype,n),i&&w(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function O(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return m(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?m(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(){return(x=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(null,arguments)}function g(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,function(t,n){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}(t,n)}function _(t){var n=function(t){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof n?n:n+""}function A(t){return Object.assign((function(n,i){if(k(i))return t.t(n,i);S(n,i,t)}),t)}function S(t,n,i){b(t,qn)||c(t,qn,x({},t[qn])),function(t){return"override"===t.i}(i)||(t[qn][n]=i)}function k(t){return"object"==typeof t&&"string"==typeof t.kind}function V(t,n,i){void 0===n&&(n=Kn),void 0===i&&(i=Kn);var r=new Hn(t);return n!==Kn&&Lt(r,n),i!==Kn&&Ct(r,i),r}function M(t,n,i){return Ut(t)?t:Array.isArray(t)?ri.array(t,{name:i}):s(t)?ri.object(t,void 0,{name:i}):v(t)?ri.map(t,{name:i}):l(t)?ri.set(t,{name:i}):"function"!=typeof t||Nt(t)||qt(t)?t:f(t)?Pi(t):Ni(i,t)}function E(t){return t}function N(t,n){return{i:t,u:n,o:R,s:T,t:L}}function R(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Nt(i.value))return 1;var u=C(t,this,n,i,!1);return Rn(r,n,u),2}function T(t,n,i,r){var e=C(t,this,n,i);return t.v(n,e,r)}function L(n,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,f,c,a,h,v;if("method"==r)return Nt(n)||(f=n,n=it(null!=(c=null==(a=o.u)?void 0:a.name)?c:e.toString(),f,null!=(h=null==(v=o.u)?void 0:v.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),n;t("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){S(this,e,o)}))}function C(t,n,i,r,e){var u,o,s,f,c,a,h;void 0===e&&(e=xi.safeDescriptors);var v,l=r.value;return null!=(u=n.u)&&u.bound&&(l=l.bind(null!=(v=t.l)?v:t.h)),{value:it(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),l,null!=(f=null==(c=n.u)?void 0:c.autoAction)&&f,null!=(a=n.u)&&a.bound?null!=(h=t.l)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function P(t,n){return{i:t,u:n,o:I,s:K,t:B}}function I(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!b(t.h,n)||!qt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(qt(i.value))return 1;var u=D(t,0,0,i,!1,!1);return Rn(r,n,u),2}function K(t,n,i,r){var e,u=D(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.v(n,u,r)}function B(t,n){var i,r=n.name,e=n.addInitializer;return qt(t)||(t=Pi(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function D(t,n,i,r,e,u){void 0===u&&(u=xi.safeDescriptors);var o,s=r.value;return qt(s)||(s=Pi(s)),e&&((s=s.bind(null!=(o=t.l)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function W(t,n){return{i:t,u:n,o:q,s:G,t:H}}function q(t,n,i){return null===this.s(t,n,i,!1)?0:1}function G(t,n,i,r){return t.m(n,x({},this.u,{get:i.get,set:i.set}),r)}function H(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=ln(this)[Gn],e=x({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.j.set(r,new li(e))})),function(){return this[Gn].O(r)}}function U(t,n){return{i:t,u:n,o:X,s:F,t:z}}function X(t,n,i){return null===this.s(t,n,i,!1)?0:1}function F(t,n,i,r){var e,u;return t.g(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:M,r)}function z(t,n){function i(t,n){var i,e,s=ln(t)[Gn],f=new hi(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:M,"ObservableObject."+u.toString(),!1);s.j.set(u,f),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[Gn].O(u)},set:function(t){return o.has(this)||i(this,t),this[Gn]._(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function $(t){return{i:"true",u:t,o:J,s:Y,t:Q}}function J(t,n,i,r){var e,u,o,s;if(i.get)return oi.o(t,n,i,r);if(i.set){var c=it(n.toString(),i.set);return r===t.h?null===t.v(n,{configurable:!xi.safeDescriptors||t.p,set:c})?0:2:(Rn(r,n,{configurable:!0,set:c}),2)}if(r!==t.h&&"function"==typeof i.value)return f(i.value)?(null!=(s=this.u)&&s.autoBind?Pi.bound:Pi).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?Ni.bound:Ni).o(t,n,i,r);var a,h=!1===(null==(e=this.u)?void 0:e.deep)?ri.ref:ri;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(a=t.l)?a:t.h)),h.o(t,n,i,r)}function Y(t,n,i,r){var e,u,o;return i.get?oi.s(t,n,i,r):i.set?t.v(n,{configurable:!xi.safeDescriptors||t.p,set:it(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.l)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?ri.ref:ri).s(t,n,i,r))}function Q(){t("'"+this.i+"' cannot be used as a decorator")}function Z(t){return t||$n}function tt(t){return!0===t.deep?M:!1===t.deep?E:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:M;var n,i,r}function nt(t,n,i){return k(n)?Jn.t(t,n):u(n)?void S(t,n,Jn):Ut(t)?t:s(t)?ri.object(t,n,i):Array.isArray(t)?ri.array(t,n):v(t)?ri.map(t,n):l(t)?ri.set(t,n):"object"==typeof t&&null!==t?t:ri.box(t,n)}function it(t,n,i,r){function e(){return rt(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},ci&&(ai.value=t,Rn(e,"name",ai)),e}function rt(t,n,i,r,e){var u=et(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{ut(u)}}function et(t,n){var i=xi.trackingDerivation,r=!n||!i;xt();var e=xi.allowStateChanges;r&&(dt(),e=st(!0));var u={S:r,k:i,V:e,M:pt(!0),N:!1,R:0,T:fi++,L:si};return si=u.T,u}function ut(n){si!==n.T&&t(30),si=n.L,void 0!==n.A&&(xi.suppressReactionErrors=!0),ft(n.V),yt(n.M),gt(),n.S&&bt(n.k),xi.suppressReactionErrors=!1}function ot(t,n){var i=st(t);try{return n()}finally{ft(i)}}function st(t){var n=xi.allowStateChanges;return xi.allowStateChanges=t,n}function ft(t){xi.allowStateChanges=t}function ct(t){return t instanceof yi}function at(t){switch(t.C){case di.P:return!1;case di.I:case di.K:return!0;case di.B:for(var n=pt(!0),i=dt(),r=t.D,e=r.length,u=0;u<e;u++){var o=r[u];if(pi(o)){if(xi.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return bt(i),yt(n),!0}if(t.C===di.K)return bt(i),yt(n),!0}}return mt(t),bt(i),yt(n),!1}}function ht(t,n,i){var r=pt(!0);mt(t),t.W=new Array(0===t.q?100:t.D.length),t.G=0,t.q=++xi.runId;var e,u=xi.trackingDerivation;if(xi.trackingDerivation=t,xi.inBatch++,!0===xi.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new yi(t)}return xi.inBatch--,xi.trackingDerivation=u,function(t){for(var n=t.D,i=t.D=t.W,r=di.P,e=0,u=t.G,o=0;o<u;o++){var s=i[o];0===s.diffValue&&(s.diffValue=1,e!==o&&(i[e]=s),e++),s.C>r&&(r=s.C)}for(i.length=e,t.W=null,u=n.length;u--;){var f=n[u];0===f.diffValue&&jt(f,t),f.diffValue=0}for(;e--;){var c=i[e];1===c.diffValue&&(c.diffValue=0,wt(c,t))}r!==di.P&&(t.C=r,t.H())}(t),yt(r),e}function vt(t){var n=t.D;t.D=[];for(var i=n.length;i--;)jt(n[i],t);t.C=di.I}function lt(t){var n=dt();try{return t()}finally{bt(n)}}function dt(){var t=xi.trackingDerivation;return xi.trackingDerivation=null,t}function bt(t){xi.trackingDerivation=t}function pt(t){var n=xi.allowStateReads;return xi.allowStateReads=t,n}function yt(t){xi.allowStateReads=t}function mt(t){if(t.C!==di.P){t.C=di.P;for(var n=t.D,i=n.length;i--;)n[i].U=di.P}}function wt(t,n){t.X.add(n),t.U>n.C&&(t.U=n.C)}function jt(t,n){t.X.delete(n),0===t.X.size&&Ot(t)}function Ot(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,xi.pendingUnobservations.push(t))}function xt(){xi.inBatch++}function gt(){if(0==--xi.inBatch){St();for(var t=xi.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.isPendingUnobservation=!1,0===i.X.size&&(i.isBeingObserved&&(i.isBeingObserved=!1,i.onBUO()),i instanceof li&&i.F())}xi.pendingUnobservations=[]}}function _t(t){var n=xi.trackingDerivation;return null!==n?(n.q!==t.$&&(t.$=n.q,n.W[n.G++]=t,!t.isBeingObserved&&xi.trackingContext&&(t.isBeingObserved=!0,t.onBO())),t.isBeingObserved):(0===t.X.size&&xi.inBatch>0&&Ot(t),!1)}function At(t){t.U!==di.K&&(t.U=di.K,t.X.forEach((function(t){t.C===di.P&&t.H(),t.C=di.K})))}function St(){xi.inBatch>0||xi.isRunningReactions||_i(kt)}function kt(){xi.isRunningReactions=!0;for(var t=xi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].J()}xi.isRunningReactions=!1}function Vt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Mt(t){return function(n,i){return e(n)?it(n.name||"<unnamed action>",n,t):e(i)?it(n,i,t):k(i)?(t?Vi:Si).t(n,i):u(i)?S(n,i,t?Vi:Si):u(n)?A(N(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Et(t){return rt(0,!1,t,this,void 0)}function Nt(t){return e(t)&&!0===t.isMobxAction}function Rt(t,n){function i(){t(s)}var r,e,u,o;void 0===n&&(n=Cn);var s,f=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var c=Tt(n),a=!1;s=new gi(f,(function(){a||(a=!0,c((function(){a=!1,s.isDisposed||s.track(i)})))}),n.onError,n.requiresObservable)}else s=new gi(f,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(u=u.signal)&&u.aborted||s.Y(),s.Z(null==(o=n)?void 0:o.signal)}function Tt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:Ri}function Lt(t,n,i){return Pt("onBO",t,n,i)}function Ct(t,n,i){return Pt("onBUO",t,n,i)}function Pt(t,n,i,r){var u="function"==typeof r?On(n,i):On(n),o=e(r)?r:i,s=t+"L";return u[s]?u[s].add(o):u[s]=new Set([o]),function(){var t=u[s];t&&(t.delete(o),0===t.size&&delete u[s])}}function It(t,n,i,r){var e=Wn(n);return _n((function(){var n=ln(t,r)[Gn];Dn(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Kt(t){var n,i={name:t.tt};return t.D&&t.D.length>0&&(i.dependencies=(n=t.D,Array.from(new Set(n))).map(Kt)),i}function Bt(t){var n={name:t.tt};return function(t){return t.X&&t.X.size>0}(t)&&(n.observers=Array.from(function(t){return t.X}(t)).map(Bt)),n}function Dt(){this.message="FLOW_CANCELLED"}function Wt(t){e(t.cancel)&&t.cancel()}function qt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Gt(t,n){if(void 0===n)return pi(t);if(!1===bn(t))return!1;if(!t[Gn].j.has(n))return!1;var i=On(t,n);return pi(i)}function Ht(t,n){return!!t&&(void 0!==n?!!bn(t)&&t[Gn].j.has(n):bn(t)||!!t[Gn]||Un(t)||Ai(t)||pi(t))}function Ut(t){return Ht(t)}function Xt(n){return bn(n)?n[Gn].nt():$i(n)||Qi(n)?Array.from(n.keys()):vn(n)?n.map((function(t,n){return n})):void t(5)}function Ft(n,i){return bn(n)?n[Gn].it(i):$i(n)||Qi(n)?n.has(i):vn(n)?i>=0&&i<n.length:void t(10)}function zt(n){if(bn(n))return n[Gn].rt();t(38)}function $t(t,n,i){return t.set(n,i),i}function Jt(t,n){void 0===n&&(n=void 0),xt();try{return t.apply(n)}finally{gt()}}function Yt(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[Gn].isDisposed){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=it("When-effect",n),o=Rt((function(n){ot(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function Qt(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=Yt(t,i,x({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function Zt(t){return t[Gn]}function tn(t){return void 0!==t.et&&t.et.length>0}function nn(t,n){var i=t.et||(t.et=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function rn(n,i){var r=dt();try{for(var e=[].concat(n.et||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&t(14),i);u++);return i}finally{bt(r)}}function en(t){return void 0!==t.ut&&t.ut.length>0}function un(t,n){var i=t.ut||(t.ut=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function on(t,n){var i=dt(),r=t.ut;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);bt(i)}}function sn(t,n,r,e){return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i(),_n((function(){var i=new Wi(r,n,e,!1);a(i.j,Gn,i);var u=new Proxy(i.j,Di);return i.l=u,t&&t.length&&i.ot(0,0,t),u}))}function fn(t,n){"function"==typeof Array.prototype[t]&&(qi[t]=n(t))}function cn(t){return function(){var n=this[Gn];n.st.reportObserved();var i=n.ft(n.j);return i[t].apply(i,arguments)}}function an(t){return function(n,i){var r=this,e=this[Gn];return e.st.reportObserved(),e.ft(e.j)[t]((function(t,e){return n.call(i,t,e,r)}))}}function hn(t){return function(){var n=this,i=this[Gn];i.st.reportObserved();var r=i.ft(i.j),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function vn(t){return o(t)&&Ui(t[Gn])}function ln(t,n){var i;if(b(t,Gn))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new tr(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:$(t):void 0}(n));return c(t,Gn,e),t}function dn(t){return Zi[t]||(Zi[t]={get:function(){return this[Gn].O(t)},set:function(n){return this[Gn]._(t,n)}})}function bn(t){return!!o(t)&&nr(t[Gn])}function pn(t,n,i){var r;null==(r=t.h[qn])||delete r[i]}function yn(t){return{enumerable:!1,configurable:!0,get:function(){return this[Gn].ct(t)},set:function(n){this[Gn].ht(t,n)}}}function mn(t){Rn(or.prototype,""+t,yn(t))}function wn(t){if(t>er){for(var n=er;n<t+100;n++)mn(n);er=t}}function jn(t,n,i){return new or(t,n,i)}function On(n,i){if("object"==typeof n&&null!==n){if(vn(n))return void 0!==i&&t(23),n[Gn].st;if(Qi(n))return n.st;if($i(n)){if(void 0===i)return n.vt;var r=n.lt.get(i)||n.dt.get(i);return r||t(25,i,gn(n)),r}if(bn(n)){if(!i)return t(26);var u=n[Gn].j.get(i);return u||t(27,i,gn(n)),u}if(Un(n)||pi(n)||Ai(n))return n}else if(e(n)&&Ai(n[Gn]))return n[Gn];t(28)}function xn(n,i){return n||t(29),void 0!==i?xn(On(n,i)):Un(n)||pi(n)||Ai(n)||$i(n)||Qi(n)?n:n[Gn]?n[Gn]:void t(24,n)}function gn(t,n){var i;if(void 0!==n)i=On(t,n);else{if(Nt(t))return t.name;i=bn(t)||$i(t)||Qi(t)?xn(t):On(t)}return i.tt}function _n(t){var n=dt(),i=st(!0);xt();try{return t()}finally{gt(),ft(i),bt(n)}}function An(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,u,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var f=sr.call(n);if(f!==sr.call(i))return!1;switch(f){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Sn(n),i=Sn(i);var c="[object Array]"===f;if(!c){if("object"!=typeof n||"object"!=typeof i)return!1;var a=n.constructor,h=i.constructor;if(a!==h&&!(e(a)&&a instanceof a&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var v=(u=u||[]).length;v--;)if(u[v]===n)return o[v]===i;if(u.push(n),o.push(i),c){if((v=n.length)!==i.length)return!1;for(;v--;)if(!t(n[v],i[v],r-1,u,o))return!1}else{var l,d=Object.keys(n);if(v=d.length,Object.keys(i).length!==v)return!1;for(;v--;)if(!b(i,l=d[v])||!t(n[l],i[l],r-1,u,o))return!1}return u.pop(),o.pop(),!0}(t,n,i)}function Sn(t){return vn(t)?t.slice():v(t)||$i(t)||l(t)||Qi(t)?Array.from(t.entries()):t}function kn(t){return t[Symbol.iterator]=Vn,t}function Vn(){return this}Object.defineProperty(exports,"__esModule",{value:!0});var Mn={},En=Object.assign,Nn=Object.getOwnPropertyDescriptor,Rn=Object.defineProperty,Tn=Object.prototype,Ln=[];Object.freeze(Ln);var Cn={};Object.freeze(Cn);var Pn="undefined"!=typeof Proxy,In=Object.toString(),Kn=function(){},Bn=void 0!==Object.getOwnPropertySymbols,Dn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Bn?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Wn=Object.getOwnPropertyDescriptors||function(t){var n={};return Dn(t).forEach((function(i){n[i]=Nn(t,i)})),n},qn=Symbol("mobx-stored-annotations"),Gn=Symbol("mobx administration"),Hn=function(){function t(t){void 0===t&&(t="Atom"),this.tt=void 0,this.bt=0,this.X=new Set,this.$=0,this.U=di.I,this.onBOL=void 0,this.onBUOL=void 0,this.tt=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return _t(this)},n.reportChanged=function(){xt(),At(this),gt()},n.toString=function(){return this.tt},j(t,[{key:"isBeingObserved",get:function(){return p(this.bt,t.pt)},set:function(n){this.bt=y(this.bt,t.pt,n)}},{key:"isPendingUnobservation",get:function(){return p(this.bt,t.yt)},set:function(n){this.bt=y(this.bt,t.yt,n)}},{key:"diffValue",get:function(){return p(this.bt,t.wt)?1:0},set:function(n){this.bt=y(this.bt,t.wt,1===n)}}])}();Hn.pt=1,Hn.yt=2,Hn.wt=4;var Un=h("Atom",Hn),Xn={identity:function(t,n){return t===n},structural:function(t,n){return An(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return An(t,n,1)}},Fn=A({i:"override",o:function(){return 0},s:function(){t("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),zn=$(),$n={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze($n);var Jn=U("observable"),Yn=U("observable.ref",{enhancer:E}),Qn=U("observable.shallow",{enhancer:function(t,n,i){return null==t||bn(t)||vn(t)||$i(t)||Qi(t)?t:Array.isArray(t)?ri.array(t,{name:i,deep:!1}):s(t)?ri.object(t,void 0,{name:i,deep:!1}):v(t)?ri.map(t,{name:i,deep:!1}):l(t)?ri.set(t,{name:i,deep:!1}):void 0}}),Zn=U("observable.struct",{enhancer:function(t,n){return An(t,n)?n:t}}),ti=A(Jn);En(nt,ti);var ni,ii,ri=En(nt,{box:function(t,n){var i=Z(n);return new hi(t,tt(i),i.name,!0,i.equals)},array:function(t,n){var i=Z(n);return(!1===xi.useProxies||!1===i.proxy?jn:sn)(t,tt(i),i.name)},map:function(t,n){var i=Z(n);return new zi(t,tt(i),i.name)},set:function(t,n){var i=Z(n);return new Yi(t,tt(i),i.name)},object:function(t,n,r){return _n((function(){return It(!1===xi.useProxies||!1===(null==r?void 0:r.proxy)?ln({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=ln(t,n))[Gn]).l)?e:r.l=new Proxy(t,Ii)}({},r),t,n)}))},ref:A(Yn),shallow:A(Qn),deep:ti,struct:A(Zn)}),ei=W("computed"),ui=W("computed.struct",{equals:Xn.structural}),oi=function(t,n){if(k(n))return ei.t(t,n);if(u(n))return S(t,n,ei);if(s(t))return A(W("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new li(i)};Object.assign(oi,ei),oi.struct=A(ui);var si=0,fi=1,ci=null!=(ni=null==(ii=Nn((function(){}),"name"))?void 0:ii.configurable)&&ni,ai={value:"action",configurable:!0,writable:!1,enumerable:!1},hi=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=Xn.default),(o=t.call(this,r)||this).enhancer=void 0,o.tt=void 0,o.equals=void 0,o.jt=!1,o.et=void 0,o.ut=void 0,o.Ot=void 0,o.dehancer=void 0,o.enhancer=i,o.tt=r,o.equals=u,o.Ot=i(n,void 0,r),o}g(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.xt(t))!==xi.UNCHANGED&&this.gt(t)},i.xt=function(t){if(tn(this)){var n=rn(this,{object:this,type:Bi,newValue:t});if(!n)return xi.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.Ot,this.tt),this.equals(this.Ot,t)?xi.UNCHANGED:t},i.gt=function(t){var n=this.Ot;this.Ot=t,this.reportChanged(),en(this)&&on(this,{type:Bi,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.Ot)},i._t=function(t){return nn(this,t)},i.At=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.tt,object:this,type:Bi,newValue:this.Ot,oldValue:void 0}),un(this,t)},i.raw=function(){return this.Ot},i.toJSON=function(){return this.get()},i.toString=function(){return this.tt+"["+this.Ot+"]"},i.valueOf=function(){return d(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},n}(Hn),vi=h("ObservableValue",hi),li=function(){function n(n){this.C=di.I,this.D=[],this.W=null,this.X=new Set,this.q=0,this.$=0,this.U=di.P,this.G=0,this.Ot=new yi(null),this.tt=void 0,this.St=void 0,this.bt=0,this.derivation=void 0,this.kt=void 0,this.Vt=bi.NONE,this.Mt=void 0,this.Et=void 0,this.Nt=void 0,this.Rt=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.tt=n.name||"ComputedValue",n.set&&(this.kt=it("ComputedValue-setter",n.set)),this.Et=n.equals||(n.compareStructural||n.struct?Xn.structural:Xn.default),this.Mt=n.context,this.Nt=n.requiresReaction,this.Rt=!!n.keepAlive}var i=n.prototype;return i.H=function(){!function(t){t.U===di.P&&(t.U=di.B,t.X.forEach((function(t){t.C===di.P&&(t.C=di.B,t.H())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.isComputing&&t(32,this.tt,this.derivation),0!==xi.inBatch||0!==this.X.size||this.Rt){if(_t(this),at(this)){var n=xi.trackingContext;this.Rt&&!n&&(xi.trackingContext=this),this.trackAndCompute()&&function(t){t.U!==di.K&&(t.U=di.K,t.X.forEach((function(n){n.C===di.B?n.C=di.K:n.C===di.P&&(t.U=di.P)})))}(this),xi.trackingContext=n}}else at(this)&&(this.Tt(),xt(),this.Ot=this.Lt(!1),gt());var i=this.Ot;if(ct(i))throw i.cause;return i},i.set=function(n){if(this.kt){this.isRunningSetter&&t(33,this.tt),this.isRunningSetter=!0;try{this.kt.call(this.Mt,n)}finally{this.isRunningSetter=!1}}else t(34,this.tt)},i.trackAndCompute=function(){var t=this.Ot,n=this.C===di.I,i=this.Lt(!0),r=n||ct(t)||ct(i)||!this.Et(t,i);return r&&(this.Ot=i),r},i.Lt=function(t){this.isComputing=!0;var n,i=st(!1);if(t)n=ht(this,this.derivation,this.Mt);else if(!0===xi.disableErrorBoundaries)n=this.derivation.call(this.Mt);else try{n=this.derivation.call(this.Mt)}catch(t){n=new yi(t)}return ft(i),this.isComputing=!1,n},i.F=function(){this.Rt||(vt(this),this.Ot=void 0)},i.At=function(t,n){var i=this,r=!0,e=void 0;return Rt((function(){var u=i.get();if(!r||n){var o=dt();t({observableKind:"computed",debugObjectName:i.tt,type:Bi,object:i,newValue:u,oldValue:e}),bt(o)}r=!1,e=u}))},i.Tt=function(){},i.toString=function(){return this.tt+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},j(n,[{key:"isComputing",get:function(){return p(this.bt,n.Ct)},set:function(t){this.bt=y(this.bt,n.Ct,t)}},{key:"isRunningSetter",get:function(){return p(this.bt,n.Pt)},set:function(t){this.bt=y(this.bt,n.Pt,t)}},{key:"isBeingObserved",get:function(){return p(this.bt,n.pt)},set:function(t){this.bt=y(this.bt,n.pt,t)}},{key:"isPendingUnobservation",get:function(){return p(this.bt,n.yt)},set:function(t){this.bt=y(this.bt,n.yt,t)}},{key:"diffValue",get:function(){return p(this.bt,n.wt)?1:0},set:function(t){this.bt=y(this.bt,n.wt,1===t)}}])}();li.Ct=1,li.Pt=2,li.pt=4,li.yt=8,li.wt=16;var di,bi,pi=h("ComputedValue",li);!function(t){t[t.I=-1]="NOT_TRACKING_",t[t.P=0]="UP_TO_DATE_",t[t.B=1]="POSSIBLY_STALE_",t[t.K=2]="STALE_"}(di||(di={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(bi||(bi={}));var yi=function(t){this.cause=void 0,this.cause=t},mi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],wi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ji=!0,Oi=!1,xi=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(ji=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new wi).version&&(ji=!1),ji?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new wi):(setTimeout((function(){Oi||t(35)}),1),new wi)}(),gi=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.tt=void 0,this.It=void 0,this.Kt=void 0,this.Bt=void 0,this.D=[],this.W=[],this.C=di.I,this.q=0,this.G=0,this.bt=0,this.Vt=bi.NONE,this.tt=t,this.It=n,this.Kt=i,this.Bt=r}var n=t.prototype;return n.H=function(){this.Y()},n.Y=function(){this.isScheduled||(this.isScheduled=!0,xi.pendingReactions.push(this),St())},n.J=function(){if(!this.isDisposed){xt(),this.isScheduled=!1;var t=xi.trackingContext;if(xi.trackingContext=this,at(this)){this.isTrackPending=!0;try{this.It()}catch(t){this.Dt(t)}}xi.trackingContext=t,gt()}},n.track=function(t){if(!this.isDisposed){xt(),this.isRunning=!0;var n=xi.trackingContext;xi.trackingContext=this;var i=ht(this,t,void 0);xi.trackingContext=n,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&vt(this),ct(i)&&this.Dt(i.cause),gt()}},n.Dt=function(t){var n=this;if(this.Kt)this.Kt(t,this);else{if(xi.disableErrorBoundaries)throw t;xi.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),xi.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(xt(),vt(this),gt()))},n.Z=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[Gn]=this,i},n.toString=function(){return"Reaction["+this.tt+"]"},n.trace=function(){},j(t,[{key:"isDisposed",get:function(){return p(this.bt,t.Wt)},set:function(n){this.bt=y(this.bt,t.Wt,n)}},{key:"isScheduled",get:function(){return p(this.bt,t.qt)},set:function(n){this.bt=y(this.bt,t.qt,n)}},{key:"isTrackPending",get:function(){return p(this.bt,t.Gt)},set:function(n){this.bt=y(this.bt,t.Gt,n)}},{key:"isRunning",get:function(){return p(this.bt,t.Ht)},set:function(n){this.bt=y(this.bt,t.Ht,n)}},{key:"diffValue",get:function(){return p(this.bt,t.wt)?1:0},set:function(n){this.bt=y(this.bt,t.wt,1===n)}}])}();gi.Wt=1,gi.qt=2,gi.Gt=4,gi.Ht=8,gi.wt=16;var _i=function(t){return t()},Ai=h("Reaction",gi),Si=N("action"),ki=N("action.bound",{bound:!0}),Vi=N("autoAction",{autoAction:!0}),Mi=N("autoAction.bound",{autoAction:!0,bound:!0}),Ei=Mt(!1);Object.assign(Ei,Si);var Ni=Mt(!0);Object.assign(Ni,Vi),Ei.bound=A(ki),Ni.bound=A(Mi);var Ri=function(t){return t()},Ti=0;Dt.prototype=Object.create(Error.prototype);var Li=P("flow"),Ci=P("flow.bound",{bound:!0}),Pi=Object.assign((function(t,n){if(k(n))return Li.t(t,n);if(u(n))return S(t,n,Li);var i=t,r=i.name||"<unnamed flow>",o=function(){var t,n=this,u=arguments,o=++Ti,s=Ei(r+" - runid: "+o+" - init",i).apply(n,u),f=void 0,c=new Promise((function(n,i){function u(t){var n;f=void 0;try{n=Ei(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}a(n)}function c(t){var n;f=void 0;try{n=Ei(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}a(n)}function a(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(u,c);t.then(a,i)}var h=0;t=i,u(void 0)}));return c.cancel=Ei(r+" - runid: "+o+" - cancel",(function(){try{f&&Wt(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(Kn,Kn),Wt(i),t(new Dt)}catch(n){t(n)}})),c};return o.isMobXFlow=!0,o}),Li);Pi.bound=A(Ci);var Ii={has:function(t,n){return Zt(t).it(n)},get:function(t,n){return Zt(t).ct(n)},set:function(t,n,i){var r;return!!u(n)&&(null==(r=Zt(t).ht(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!u(n)&&(null==(i=Zt(t).Ut(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=Zt(t).v(n,i))||r},ownKeys:function(t){return Zt(t).rt()},preventExtensions:function(){t(13)}},Ki=Symbol("mobx-keys"),Bi="update",Di={get:function(t,n){var i=t[Gn];return n===Gn?i:"length"===n?i.Xt():"string"!=typeof n||isNaN(n)?b(qi,n)?qi[n]:t[n]:i.ct(parseInt(n))},set:function(t,n,i){var r=t[Gn];return"length"===n&&r.Ft(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.ht(parseInt(n),i),!0},preventExtensions:function(){t(15)}},Wi=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.zt=void 0,this.$t=void 0,this.st=void 0,this.j=[],this.et=void 0,this.ut=void 0,this.Jt=void 0,this.dehancer=void 0,this.l=void 0,this.Yt=0,this.zt=i,this.$t=r,this.st=new Hn(t),this.Jt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.ft=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i._t=function(t){return nn(this,t)},i.At=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.l,debugObjectName:this.st.tt,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),un(this,t)},i.Xt=function(){return this.st.reportObserved(),this.j.length},i.Ft=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.j.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.ot(i,0,r)}else this.ot(n,i-n)},i.Zt=function(n,i){n!==this.Yt&&t(16),this.Yt+=i,this.$t&&i>0&&wn(n+i+1)},i.ot=function(t,n,i){var r=this,e=this.j.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=Ln),tn(this)){var u=rn(this,{object:this.l,type:"splice",index:t,removedCount:n,added:i});if(!u)return Ln;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.Jt(t,void 0)})),this.$t){var o=i.length-n;this.Zt(e,o)}var s=this.tn(t,n,i);return 0===n&&0===i.length||this.nn(t,i,s),this.ft(s)},i.tn=function(t,n,i){var r;if(i.length<1e4)return(r=this.j).splice.apply(r,[t,n].concat(i));var e=this.j.slice(t,t+n),u=this.j.slice(t+n);this.j.length+=i.length-n;for(var o=0;o<i.length;o++)this.j[t+o]=i[o];for(var s=0;s<u.length;s++)this.j[t+i.length+s]=u[s];return e},i.in=function(t,n,i){var r=!this.zt&&!1,e=en(this),u=e||r?{observableKind:"array",object:this.l,type:Bi,debugObjectName:this.st.tt,index:t,newValue:n,oldValue:i}:null;this.st.reportChanged(),e&&on(this,u)},i.nn=function(t,n,i){var r=!this.zt&&!1,e=en(this),u=e||r?{observableKind:"array",object:this.l,debugObjectName:this.st.tt,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.st.reportChanged(),e&&on(this,u)},i.ct=function(t){if(!(this.$t&&t>=this.j.length))return this.st.reportObserved(),this.Qt(this.j[t]);console.warn("[mobx] Out of bounds read: "+t)},i.ht=function(n,i){var r=this.j;if(this.$t&&n>r.length&&t(17,n,r.length),n<r.length){var e=r[n];if(tn(this)){var u=rn(this,{type:Bi,object:this.l,index:n,newValue:i});if(!u)return;i=u.newValue}(i=this.Jt(i,e))!==e&&(r[n]=i,this.in(n,i,e))}else{for(var o=new Array(n+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.ot(r.length,0,o)}},n}(),qi={clear:function(){return this.splice(0)},replace:function(t){var n=this[Gn];return n.ot(0,n.j.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[Gn];switch(arguments.length){case 0:return[];case 1:return u.ot(t);case 2:return u.ot(t,n)}return u.ot(t,n,r)},spliceWithArray:function(t,n,i){return this[Gn].ot(t,n,i)},push:function(){for(var t=this[Gn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ot(t.j.length,0,i),t.j.length},pop:function(){return this.splice(Math.max(this[Gn].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Gn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ot(0,0,i),t.j.length},reverse:function(){return xi.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){xi.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[Gn],i=n.ft(n.j).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};fn("at",cn),fn("concat",cn),fn("flat",cn),fn("includes",cn),fn("indexOf",cn),fn("join",cn),fn("lastIndexOf",cn),fn("slice",cn),fn("toString",cn),fn("toLocaleString",cn),fn("toSorted",cn),fn("toSpliced",cn),fn("with",cn),fn("every",an),fn("filter",an),fn("find",an),fn("findIndex",an),fn("findLast",an),fn("findLastIndex",an),fn("flatMap",an),fn("forEach",an),fn("map",an),fn("some",an),fn("toReversed",an),fn("reduce",hn),fn("reduceRight",hn);var Gi,Hi,Ui=h("ObservableArrayAdministration",Wi),Xi={},Fi="add",zi=function(){function n(n,i,r){var u=this;void 0===i&&(i=M),void 0===r&&(r="ObservableMap"),this.Jt=void 0,this.tt=void 0,this[Gn]=Xi,this.lt=void 0,this.dt=void 0,this.vt=void 0,this.et=void 0,this.ut=void 0,this.dehancer=void 0,this.Jt=i,this.tt=r,e(Map)||t(18),_n((function(){u.vt=V("ObservableMap.keys()"),u.lt=new Map,u.dt=new Map,n&&u.merge(n)}))}var i=n.prototype;return i.it=function(t){return this.lt.has(t)},i.has=function(t){var n=this;if(!xi.trackingDerivation)return this.it(t);var i=this.dt.get(t);if(!i){var r=i=new hi(this.it(t),E,"ObservableMap.key?",!1);this.dt.set(t,r),Ct(r,(function(){return n.dt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.it(t);if(tn(this)){var r=rn(this,{type:i?Bi:Fi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.rn(t,n):this.en(t,n),this},i.delete=function(t){var n=this;if(tn(this)&&!rn(this,{type:"delete",object:this,name:t}))return!1;if(this.it(t)){var i=en(this),r=i?{observableKind:"map",debugObjectName:this.tt,type:"delete",object:this,oldValue:this.lt.get(t).Ot,name:t}:null;return Jt((function(){var i;n.vt.reportChanged(),null==(i=n.dt.get(t))||i.gt(!1),n.lt.get(t).gt(void 0),n.lt.delete(t)})),i&&on(this,r),!0}return!1},i.rn=function(t,n){var i=this.lt.get(t);if((n=i.xt(n))!==xi.UNCHANGED){var r=en(this),e=r?{observableKind:"map",debugObjectName:this.tt,type:Bi,object:this,oldValue:i.Ot,name:t,newValue:n}:null;i.gt(n),r&&on(this,e)}},i.en=function(t,n){var i=this;Jt((function(){var r,e=new hi(n,i.Jt,"ObservableMap.key",!1);i.lt.set(t,e),n=e.Ot,null==(r=i.dt.get(t))||r.gt(!0),i.vt.reportChanged()}));var r=en(this);r&&on(this,r?{observableKind:"map",debugObjectName:this.tt,type:Fi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Qt(this.lt.get(t).get()):this.Qt(void 0)},i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.vt.reportObserved(),this.lt.keys()},i.values=function(){var t=this,n=this.keys();return kn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return kn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Symbol.iterator]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=O(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return $i(n)&&(n=new Map(n)),Jt((function(){var r,e;s(n)?function(t){var n=Object.keys(t);if(!Bn)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Tn.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):v(n)?(r=Object.getPrototypeOf(n),e=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(e)&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;Jt((function(){lt((function(){for(var n,i=O(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return Jt((function(){for(var r,e=function(n){if(v(n)||$i(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),u=new Map,o=!1,f=O(i.lt.keys());!(r=f()).done;){var c=r.value;if(!e.has(c))if(i.delete(c))o=!0;else{var a=i.lt.get(c);u.set(c,a)}}for(var h,l=O(e.entries());!(h=l()).done;){var d=h.value,b=d[0],p=d[1],y=i.lt.has(b);if(i.set(b,p),i.lt.has(b)){var m=i.lt.get(b);u.set(b,m),y||(o=!0)}}if(!o)if(i.lt.size!==u.size)i.vt.reportChanged();else for(var w=i.lt.keys(),j=u.keys(),x=w.next(),g=j.next();!x.done;){if(x.value!==g.value){i.vt.reportChanged();break}x=w.next(),g=j.next()}i.lt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.At=function(t){return un(this,t)},i._t=function(t){return nn(this,t)},j(n,[{key:"size",get:function(){return this.vt.reportObserved(),this.lt.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),$i=h("ObservableMap",zi),Ji={},Yi=function(){function n(n,i,r){var u=this;void 0===i&&(i=M),void 0===r&&(r="ObservableSet"),this.tt=void 0,this[Gn]=Ji,this.lt=new Set,this.st=void 0,this.ut=void 0,this.et=void 0,this.dehancer=void 0,this.Jt=void 0,this.tt=r,e(Set)||t(22),this.Jt=function(t,n){return i(t,n,r)},_n((function(){u.st=V(u.tt),n&&u.replace(n)}))}var i=n.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;Jt((function(){lt((function(){for(var n,i=O(t.lt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=O(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(tn(this)&&!rn(this,{type:Fi,object:this,newValue:t}))return this;if(!this.has(t)){Jt((function(){n.lt.add(n.Jt(t,void 0)),n.st.reportChanged()}));var i=en(this);i&&on(this,i?{observableKind:"set",debugObjectName:this.tt,type:Fi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(tn(this)&&!rn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=en(this),r=i?{observableKind:"set",debugObjectName:this.tt,type:"delete",object:this,oldValue:t}:null;return Jt((function(){n.st.reportChanged(),n.lt.delete(t)})),i&&on(this,r),!0}return!1},i.has=function(t){return this.st.reportObserved(),this.lt.has(this.Qt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return kn({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.st.reportObserved();var t=this,n=0,i=Array.from(this.lt.values());return kn({next:function(){return n<i.length?{value:t.Qt(i[n++]),done:!1}:{done:!0}}})},i.intersection=function(t){return l(t)?t.intersection(this):new Set(this).intersection(t)},i.union=function(t){return l(t)?t.union(this):new Set(this).union(t)},i.difference=function(t){return new Set(this).difference(t)},i.symmetricDifference=function(t){return l(t)?t.symmetricDifference(this):new Set(this).symmetricDifference(t)},i.isSubsetOf=function(t){return new Set(this).isSubsetOf(t)},i.isSupersetOf=function(t){return new Set(this).isSupersetOf(t)},i.isDisjointFrom=function(t){return l(t)?t.isDisjointFrom(this):new Set(this).isDisjointFrom(t)},i.replace=function(n){var i=this;return Qi(n)&&(n=new Set(n)),Jt((function(){Array.isArray(n)||l(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.At=function(t){return un(this,t)},i._t=function(t){return nn(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Symbol.iterator]=function(){return this.values()},j(n,[{key:"size",get:function(){return this.st.reportObserved(),this.lt.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Qi=h("ObservableSet",Yi),Zi=Object.create(null),tr=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=zn),this.h=void 0,this.j=void 0,this.tt=void 0,this.un=void 0,this.vt=void 0,this.ut=void 0,this.et=void 0,this.l=void 0,this.p=void 0,this.on=void 0,this.sn=void 0,this.h=t,this.j=n,this.tt=i,this.un=r,this.vt=new Hn("ObservableObject.keys"),this.p=s(this.h)}var i=n.prototype;return i.O=function(t){return this.j.get(t).get()},i._=function(t,n){var i=this.j.get(t);if(i instanceof li)return i.set(n),!0;if(tn(this)){var r=rn(this,{type:Bi,object:this.l||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.xt(n))!==xi.UNCHANGED){var e=en(this),u=e?{type:Bi,observableKind:"object",debugObjectName:this.tt,object:this.l||this.h,oldValue:i.Ot,name:t,newValue:n}:null;i.gt(n),e&&on(this,u)}return!0},i.ct=function(t){return xi.trackingDerivation&&!b(this.h,t)&&this.it(t),this.h[t]},i.ht=function(t,n,i){return void 0===i&&(i=!1),b(this.h,t)?this.j.has(t)?this._(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.un,i)},i.it=function(t){if(!xi.trackingDerivation)return t in this.h;this.sn||(this.sn=new Map);var n=this.sn.get(t);return n||(n=new hi(t in this.h,E,"ObservableObject.key?",!1),this.sn.set(t,n)),n.get()},i.o=function(n,i){if(!0===i&&(i=this.un),!1!==i){if(!(n in this.h)){var r;if(null!=(r=this.h[qn])&&r[n])return;t(1,i.i,this.tt+"."+n.toString())}for(var e=this.h;e&&e!==Tn;){var u=Nn(e,n);if(u){var o=i.o(this,n,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}pn(this,0,n)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.un),!1===i)return this.v(t,n,r);var e=i.s(this,t,n,r);return e&&pn(this,0,t),e},i.v=function(t,n,i){void 0===i&&(i=!1);try{xt();var r=this.Ut(t);if(!r)return r;if(tn(this)){var e=rn(this,{object:this.l||this.h,name:t,type:Fi,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=x({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else Rn(this.h,t,n);this.fn(t,n.value)}finally{gt()}return!0},i.g=function(t,n,i,r){void 0===r&&(r=!1);try{xt();var e=this.Ut(t);if(!e)return e;if(tn(this)){var u=rn(this,{object:this.l||this.h,name:t,type:Fi,newValue:n});if(!u)return null;n=u.newValue}var o=dn(t),s={configurable:!xi.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else Rn(this.h,t,s);var f=new hi(n,i,"ObservableObject.key",!1);this.j.set(t,f),this.fn(t,f.Ot)}finally{gt()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{xt();var r=this.Ut(t);if(!r)return r;if(tn(this)&&!rn(this,{object:this.l||this.h,name:t,type:Fi,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.l||this.h;var e=dn(t),u={configurable:!xi.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else Rn(this.h,t,u);this.j.set(t,new li(n)),this.fn(t,void 0)}finally{gt()}return!0},i.Ut=function(t,n){if(void 0===n&&(n=!1),!b(this.h,t))return!0;if(tn(this)&&!rn(this,{object:this.l||this.h,name:t,type:"remove"}))return null;try{var i;xt();var r,e=en(this),u=this.j.get(t),o=void 0;if(!u&&e&&(o=null==(r=Nn(this.h,t))?void 0:r.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];u&&(this.j.delete(t),u instanceof hi&&(o=u.Ot),At(u)),this.vt.reportChanged(),null==(i=this.sn)||null==(i=i.get(t))||i.set(t in this.h),e&&e&&on(this,{type:"remove",observableKind:"object",object:this.l||this.h,debugObjectName:this.tt,oldValue:o,name:t})}finally{gt()}return!0},i.At=function(t){return un(this,t)},i._t=function(t){return nn(this,t)},i.fn=function(t,n){var i,r=en(this);r&&r&&on(this,r?{type:Fi,observableKind:"object",debugObjectName:this.tt,object:this.l||this.h,name:t,newValue:n}:null),null==(i=this.sn)||null==(i=i.get(t))||i.set(!0),this.vt.reportChanged()},i.rt=function(){return this.vt.reportObserved(),Dn(this.h)},i.nt=function(){return this.vt.reportObserved(),Object.keys(this.h)},n}(),nr=h("ObservableObjectAdministration",tr),ir=yn(0),rr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),er=0,ur=function(){};Gi=ur,Hi=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Gi.prototype,Hi):void 0!==Gi.prototype.__proto__?Gi.prototype.__proto__=Hi:Gi.prototype=Hi;var or=function(t){function n(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,_n((function(){var t=new Wi(r,i,e,!0);t.l=u,a(u,Gn,t),n&&n.length&&u.spliceWithArray(0,0,n),rr&&Object.defineProperty(u,"0",ir)})),u}g(n,t);var i=n.prototype;return i.concat=function(){this[Gn].st.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return vn(t)?t.slice():t})))},i[Symbol.iterator]=function(){var t=this,n=0;return kn({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},j(n,[{key:"length",get:function(){return this[Gn].Xt()},set:function(t){this[Gn].Ft(t)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ur);Object.entries(qi).forEach((function(t){var n=t[0];"concat"!==n&&c(or.prototype,n,t[1])})),wn(1e3);var sr=Tn.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Vt,extras:{getDebugName:gn},$mobx:Gn}),exports.$mobx=Gn,exports.FlowCancellationError=Dt,exports.ObservableMap=zi,exports.ObservableSet=Yi,exports.Reaction=gi,exports._allowStateChanges=ot,exports._allowStateChangesInsideComputed=Et,exports._allowStateReadsEnd=yt,exports._allowStateReadsStart=pt,exports._autoAction=Ni,exports._endAction=ut,exports._getAdministration=xn,exports._getGlobalState=function(){return xi},exports._interceptReads=function(t,n,i){var r;return $i(t)||vn(t)||vi(t)?r=xn(t):bn(t)&&(r=xn(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}},exports._isComputingDerivation=function(){return null!==xi.trackingDerivation},exports._resetGlobalState=function(){var t=new wi;for(var n in t)-1===mi.indexOf(n)&&(xi[n]=t[n]);xi.allowStateChanges=!xi.enforceActions},exports._startAction=et,exports.action=Ei,exports.autorun=Rt,exports.comparer=Xn,exports.computed=oi,exports.configure=function(i){!0===i.isolateGlobalState&&function(){if((xi.pendingReactions.length||xi.inBatch||xi.isRunningReactions)&&t(36),Oi=!0,ji){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),xi=new wi}}();var r,e,u=i.useProxies,o=i.enforceActions;if(void 0!==u&&(xi.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&(xi.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;xi.enforceActions=s,xi.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&(xi[t]=!!i[t])})),xi.allowStateReads=!xi.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=_i,_i=function(t){return r((function(){return e(t)}))})},exports.createAtom=V,exports.defineProperty=function(n,i,r){if(bn(n))return n[Gn].v(i,r);t(39)},exports.entries=function(n){return bn(n)?Xt(n).map((function(t){return[t,n[t]]})):$i(n)?Xt(n).map((function(t){return[t,n.get(t)]})):Qi(n)?Array.from(n.entries()):vn(n)?n.map((function(t,n){return[n,t]})):void t(7)},exports.extendObservable=It,exports.flow=Pi,exports.flowResult=function(t){return t},exports.get=function(n,i){if(Ft(n,i))return bn(n)?n[Gn].ct(i):$i(n)?n.get(i):vn(n)?n[i]:void t(11)},exports.getAtom=On,exports.getDebugName=gn,exports.getDependencyTree=function(t,n){return Kt(On(t,n))},exports.getObserverTree=function(t,n){return Bt(On(t,n))},exports.has=Ft,exports.intercept=function(t,n,i){return e(i)?function(t,n,i){return xn(t,n)._t(i)}(t,n,i):function(t,n){return xn(t)._t(n)}(t,n)},exports.isAction=Nt,exports.isBoxedObservable=vi,exports.isComputed=function(t){return Gt(t)},exports.isComputedProp=function(t,n){return Gt(t,n)},exports.isFlow=qt,exports.isFlowCancellationError=function(t){return t instanceof Dt},exports.isObservable=Ut,exports.isObservableArray=vn,exports.isObservableMap=$i,exports.isObservableObject=bn,exports.isObservableProp=function(t,n){return Ht(t,n)},exports.isObservableSet=Qi,exports.keys=Xt,exports.makeAutoObservable=function(t,n,i){return s(t)?It(t,t,n,i):(_n((function(){var r=ln(t,i)[Gn];if(!t[Ki]){var e=Object.getPrototypeOf(t),u=new Set([].concat(Dn(t),Dn(e)));u.delete("constructor"),u.delete(Gn),c(e,Ki,u)}t[Ki].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)},exports.makeObservable=function(t,n,i){return _n((function(){var r=ln(t,i)[Gn];null!=n||(n=function(t){return b(t,qn)||c(t,qn,x({},t[qn])),t[qn]}(t)),Dn(n).forEach((function(t){return r.o(t,n[t])}))})),t},exports.observable=ri,exports.observe=function(t,n,i,r){return e(i)?function(t,n,i,r){return xn(t,n).At(i,r)}(t,n,i,r):function(t,n,i){return xn(t).At(n,i)}(t,n,i)},exports.onBecomeObserved=Lt,exports.onBecomeUnobserved=Ct,exports.onReactionError=function(t){return xi.globalReactionErrorHandlers.push(t),function(){var n=xi.globalReactionErrorHandlers.indexOf(t);n>=0&&xi.globalReactionErrorHandlers.splice(n,1)}},exports.override=Fn,exports.ownKeys=zt,exports.reaction=function(t,n,i){function r(){if(b=!1,!y.isDisposed){var n=!1,r=c;y.track((function(){var i=ot(!1,(function(){return t(y)}));n=d||!p(c,i),c=i})),(d&&i.fireImmediately||!d&&n)&&h(c,r,y),d=!1}}var e,u,o;void 0===i&&(i=Cn);var s,f,c,a=null!=(e=i.name)?e:"Reaction",h=Ei(a,i.onError?(s=i.onError,f=n,function(){try{return f.apply(this,arguments)}catch(t){s.call(this,t)}}):n),v=!i.scheduler&&!i.delay,l=Tt(i),d=!0,b=!1,p=i.compareStructural?Xn.structural:i.equals||Xn.default,y=new gi(a,(function(){d||v?r():b||(b=!0,l(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(u=u.signal)&&u.aborted||y.Y(),y.Z(null==(o=i)?void 0:o.signal)},exports.remove=function(n,i){bn(n)?n[Gn].Ut(i):$i(n)||Qi(n)?n.delete(i):vn(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)},exports.runInAction=Et,exports.set=function n(i,r,e){if(2!==arguments.length||Qi(i))bn(i)?i[Gn].ht(r,e):$i(i)?i.set(r,e):Qi(i)?i.add(r):vn(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&t("Invalid index: '"+r+"'"),xt(),r>=i.length&&(i.length=r+1),i[r]=e,gt()):t(8);else{xt();var u=r;try{for(var o in u)n(i,o,u[o])}finally{gt()}}},exports.spy=Vt,exports.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Ut(n))return n;if(vi(n)||pi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(vn(n)){var r=$t(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Qi(n)){var e=$t(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if($i(n)){var u=$t(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=$t(i,n,{});return zt(n).forEach((function(r){Tn.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)},exports.trace=function(){},exports.transaction=Jt,exports.untracked=lt,exports.values=function(n){return bn(n)?Xt(n).map((function(t){return n[t]})):$i(n)?Xt(n).map((function(t){return n.get(t)})):Qi(n)?Array.from(n.values()):vn(n)?n.slice():void t(6)},exports.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Qt(t,n):Yt(t,n,i||{})};
//# sourceMappingURL=mobx.cjs.production.min.js.map

@@ -1,2 +0,2 @@

function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:ii}function i(){fi||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function u(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function o(t){return null!==t&&"object"==typeof t}function s(t){if(!o(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===ci}function a(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function f(t,n,i){ui(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function c(t,n,i){ui(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return o(t)&&!0===t[i]}}function l(t){return null!=t&&"[object Map]"===Object.prototype.toString.call(t)}function v(t){return null!=t&&"[object Set]"===Object.prototype.toString.call(t)}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return oi.hasOwnProperty.call(t,n)}function y(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=Array(n);i<n;i++)r[i]=t[i];return r}function p(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function m(t,n,i){return n&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return y(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?y(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(){return(O=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(null,arguments)}function j(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,function(t,n){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}(t,n)}function g(t){var n=function(t){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof n?n:n+""}function _(t){return Object.assign((function(n,i){if(S(i))return t.t(n,i);A(n,i,t)}),t)}function A(t,n,i){b(t,bi)||f(t,bi,O({},t[bi])),function(t){return"override"===t.i}(i)||(t[bi][n]=i)}function S(t){return"object"==typeof t&&"string"==typeof t.kind}function x(t,n,i){void 0===n&&(n=hi),void 0===i&&(i=hi);var r=new pi(t);return n!==hi&&Bt(r,n),i!==hi&&Dt(r,i),r}function E(t,n,i){return on(t)?t:Array.isArray(t)?Ni.array(t,{name:i}):s(t)?Ni.object(t,void 0,{name:i}):l(t)?Ni.map(t,{name:i}):v(t)?Ni.set(t,{name:i}):"function"!=typeof t||It(t)||Qt(t)?t:a(t)?fr(t):er(i,t)}function R(t){return t}function M(t,n){return{i:t,u:n,o:N,s:k,t:V}}function N(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(It(i.value))return 1;var u=T(t,this,n,i,!1);return ui(r,n,u),2}function k(t,n,i,r){var e=T(t,this,n,i);return t.l(n,e,r)}function V(n,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,a,f,c,h,l;if("method"==r)return It(n)||(a=n,n=tt(null!=(f=null==(c=o.u)?void 0:c.name)?f:e.toString(),a,null!=(h=null==(l=o.u)?void 0:l.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),n;t("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){A(this,e,o)}))}function T(t,n,i,r,e){var u,o,s,a,f,c,h;void 0===e&&(e=$i.safeDescriptors);var l,v=r.value;return null!=(u=n.u)&&u.bound&&(v=v.bind(null!=(l=t.v)?l:t.h)),{value:tt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),v,null!=(a=null==(f=n.u)?void 0:f.autoAction)&&a,null!=(c=n.u)&&c.bound?null!=(h=t.v)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function C(t,n){return{i:t,u:n,o:I,s:L,t:P}}function I(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!b(t.h,n)||!Qt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Qt(i.value))return 1;var u=K(t,0,0,i,!1,!1);return ui(r,n,u),2}function L(t,n,i,r){var e,u=K(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.l(n,u,r)}function P(t,n){var i,r=n.name,e=n.addInitializer;return Qt(t)||(t=fr(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function K(t,n,i,r,e,u){void 0===u&&(u=$i.safeDescriptors);var o,s=r.value;return Qt(s)||(s=fr(s)),e&&((s=s.bind(null!=(o=t.v)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function B(t,n){return{i:t,u:n,o:D,s:G,t:W}}function D(t,n,i){return null===this.s(t,n,i,!1)?0:1}function G(t,n,i,r){return t.m(n,O({},this.u,{get:i.get,set:i.set}),r)}function W(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=Dn(this)[yi],e=O({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.O.set(r,new Di(e))})),function(){return this[yi].j(r)}}function q(t,n){return{i:t,u:n,o:F,s:H,t:U}}function F(t,n,i){return null===this.s(t,n,i,!1)?0:1}function H(t,n,i,r){var e,u;return t.g(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:E,r)}function U(t,n){function i(t,n){var i,e,s=Dn(t)[yi],a=new Ki(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:E,"ObservableObject."+u.toString(),!1);s.O.set(u,a),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[yi].j(u)},set:function(t){return o.has(this)||i(this,t),this[yi]._(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function X(t){return{i:"true",u:t,o:z,s:$,t:J}}function z(t,n,i,r){var e,u,o,s;if(i.get)return Ti.o(t,n,i,r);if(i.set){var f=tt(n.toString(),i.set);return r===t.h?null===t.l(n,{configurable:!$i.safeDescriptors||t.p,set:f})?0:2:(ui(r,n,{configurable:!0,set:f}),2)}if(r!==t.h&&"function"==typeof i.value)return a(i.value)?(null!=(s=this.u)&&s.autoBind?fr.bound:fr).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?er.bound:er).o(t,n,i,r);var c,h=!1===(null==(e=this.u)?void 0:e.deep)?Ni.ref:Ni;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(c=t.v)?c:t.h)),h.o(t,n,i,r)}function $(t,n,i,r){var e,u,o;return i.get?Ti.s(t,n,i,r):i.set?t.l(n,{configurable:!$i.safeDescriptors||t.p,set:tt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.v)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?Ni.ref:Ni).s(t,n,i,r))}function J(){t("'"+this.i+"' cannot be used as a decorator")}function Y(t){return t||gi}function Q(t){return!0===t.deep?E:!1===t.deep?R:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:E;var n,i,r}function Z(t,n,i){return S(n)?_i.t(t,n):u(n)?void A(t,n,_i):on(t)?t:s(t)?Ni.object(t,n,i):Array.isArray(t)?Ni.array(t,n):l(t)?Ni.map(t,n):v(t)?Ni.set(t,n):"object"==typeof t&&null!==t?t:Ni.box(t,n)}function tt(t,n,i,r){function e(){return nt(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},Li&&(Pi.value=t,ui(e,"name",Pi)),e}function nt(t,n,i,r,e){var u=it(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{rt(u)}}function it(t,n){var i=$i.trackingDerivation,r=!n||!i;St();var e=$i.allowStateChanges;r&&(bt(),e=ut(!0));var u={S:r,R:i,M:e,N:pt(!0),k:!1,V:0,T:Ii++,C:Ci};return Ci=u.T,u}function rt(n){Ci!==n.T&&t(30),Ci=n.C,void 0!==n.A&&($i.suppressReactionErrors=!0),ot(n.M),mt(n.N),xt(),n.S&&yt(n.R),$i.suppressReactionErrors=!1}function et(t,n){var i=ut(t);try{return n()}finally{ot(i)}}function ut(t){var n=$i.allowStateChanges;return $i.allowStateChanges=t,n}function ot(t){$i.allowStateChanges=t}function st(t,n){return!!(t&n)}function at(t,n,i){return i?t|=n:t&=~n,t}function ft(t){return t instanceof Fi}function ct(t){switch(t.I){case Gi.L:return!1;case Gi.P:case Gi.K:return!0;case Gi.B:for(var n=pt(!0),i=bt(),r=t.D,e=r.length,u=0;u<e;u++){var o=r[u];if(qi(o)){if($i.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return yt(i),mt(n),!0}if(t.I===Gi.K)return yt(i),mt(n),!0}}return wt(t),yt(i),mt(n),!1}}function ht(){return null!==$i.trackingDerivation}function lt(t,n,i){var r=pt(!0);wt(t),t.G=new Array(0===t.W?100:t.D.length),t.q=0,t.W=++$i.runId;var e,u=$i.trackingDerivation;if($i.trackingDerivation=t,$i.inBatch++,!0===$i.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new Fi(t)}return $i.inBatch--,$i.trackingDerivation=u,function(t){for(var n=t.D,i=t.D=t.G,r=Gi.L,e=0,u=t.q,o=0;o<u;o++){var s=i[o];0===s.F&&(s.F=1,e!==o&&(i[e]=s),e++),s.I>r&&(r=s.I)}for(i.length=e,t.G=null,u=n.length;u--;){var a=n[u];0===a.F&&_t(a,t),a.F=0}for(;e--;){var f=i[e];1===f.F&&(f.F=0,gt(f,t))}r!==Gi.L&&(t.I=r,t.H())}(t),mt(r),e}function vt(t){var n=t.D;t.D=[];for(var i=n.length;i--;)_t(n[i],t);t.I=Gi.P}function dt(t){var n=bt();try{return t()}finally{yt(n)}}function bt(){var t=$i.trackingDerivation;return $i.trackingDerivation=null,t}function yt(t){$i.trackingDerivation=t}function pt(t){var n=$i.allowStateReads;return $i.allowStateReads=t,n}function mt(t){$i.allowStateReads=t}function wt(t){if(t.I!==Gi.L){t.I=Gi.L;for(var n=t.D,i=n.length;i--;)n[i].U=Gi.L}}function Ot(){return $i}function jt(){var t=new Ui;for(var n in t)-1===Hi.indexOf(n)&&($i[n]=t[n]);$i.allowStateChanges=!$i.enforceActions}function gt(t,n){t.X.add(n),t.U>n.I&&(t.U=n.I)}function _t(t,n){t.X.delete(n),0===t.X.size&&At(t)}function At(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,$i.pendingUnobservations.push(t))}function St(){$i.inBatch++}function xt(){if(0==--$i.inBatch){Nt();for(var t=$i.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.isPendingUnobservation=!1,0===i.X.size&&(i.isBeingObserved&&(i.isBeingObserved=!1,i.onBUO()),i instanceof Di&&i.$())}$i.pendingUnobservations=[]}}function Et(t){var n=$i.trackingDerivation;return null!==n?(n.W!==t.J&&(t.J=n.W,n.G[n.q++]=t,!t.isBeingObserved&&$i.trackingContext&&(t.isBeingObserved=!0,t.onBO())),t.isBeingObserved):(0===t.X.size&&$i.inBatch>0&&At(t),!1)}function Rt(t){t.U!==Gi.K&&(t.U=Gi.K,t.X.forEach((function(t){t.I===Gi.L&&t.H(),t.I=Gi.K})))}function Mt(t){return $i.globalReactionErrorHandlers.push(t),function(){var n=$i.globalReactionErrorHandlers.indexOf(t);n>=0&&$i.globalReactionErrorHandlers.splice(n,1)}}function Nt(){$i.inBatch>0||$i.isRunningReactions||Yi(kt)}function kt(){$i.isRunningReactions=!0;for(var t=$i.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].Y()}$i.isRunningReactions=!1}function Vt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Tt(t){return function(n,i){return e(n)?tt(n.name||"<unnamed action>",n,t):e(i)?tt(n,i,t):S(i)?(t?nr:Zi).t(n,i):u(i)?A(n,i,t?nr:Zi):u(n)?_(M(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Ct(t){return nt(0,!1,t,this,void 0)}function It(t){return e(t)&&!0===t.isMobxAction}function Lt(t,n){function i(){t(s)}var r,e,u,o;void 0===n&&(n=ai);var s,a=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var f=Pt(n),c=!1;s=new Ji(a,(function(){c||(c=!0,f((function(){c=!1,s.Z||s.track(i)})))}),n.onError,n.requiresObservable)}else s=new Ji(a,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(u=u.signal)&&u.aborted||s.tt(),s.nt(null==(o=n)?void 0:o.signal)}function Pt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:ur}function Kt(t,n,i){function r(){if(b=!1,!p.Z){var n=!1,r=f;p.track((function(){var i=et(!1,(function(){return t(p)}));n=d||!y(f,i),f=i})),(d&&i.fireImmediately||!d&&n)&&h(f,r,p),d=!1}}var e,u,o;void 0===i&&(i=ai);var s,a,f,c=null!=(e=i.name)?e:"Reaction",h=rr(c,i.onError?(s=i.onError,a=n,function(){try{return a.apply(this,arguments)}catch(t){s.call(this,t)}}):n),l=!i.scheduler&&!i.delay,v=Pt(i),d=!0,b=!1,y=i.compareStructural?wi.structural:i.equals||wi.default,p=new Ji(c,(function(){d||l?r():b||(b=!0,v(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(u=u.signal)&&u.aborted||p.tt(),p.nt(null==(o=i)?void 0:o.signal)}function Bt(t,n,i){return Gt("onBO",t,n,i)}function Dt(t,n,i){return Gt("onBUO",t,n,i)}function Gt(t,n,i,r){var u="function"==typeof r?zn(n,i):zn(n),o=e(r)?r:i,s=t+"L";return u[s]?u[s].add(o):u[s]=new Set([o]),function(){var t=u[s];t&&(t.delete(o),0===t.size&&delete u[s])}}function Wt(i){!0===i.isolateGlobalState&&function(){if(($i.pendingReactions.length||$i.inBatch||$i.isRunningReactions)&&t(36),zi=!0,Xi){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),$i=new Ui}}();var r,e,u=i.useProxies,o=i.enforceActions;if(void 0!==u&&($i.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&($i.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;$i.enforceActions=s,$i.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&($i[t]=!!i[t])})),$i.allowStateReads=!$i.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=Yi,Yi=function(t){return r((function(){return e(t)}))})}function qt(t,n,i,r){var e=di(n);return Yn((function(){var n=Dn(t,r)[yi];vi(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Ft(t,n){return Ht(zn(t,n))}function Ht(t){var n,i={name:t.it};return t.D&&t.D.length>0&&(i.dependencies=(n=t.D,Array.from(new Set(n))).map(Ht)),i}function Ut(t,n){return Xt(zn(t,n))}function Xt(t){var n={name:t.it};return function(t){return t.X&&t.X.size>0}(t)&&(n.observers=Array.from(function(t){return t.X}(t)).map(Xt)),n}function zt(){this.message="FLOW_CANCELLED"}function $t(t){return t instanceof zt}function Jt(t){e(t.cancel)&&t.cancel()}function Yt(t){return t}function Qt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Zt(t,n,i){var r;return gr(t)||Bn(t)||Bi(t)?r=$n(t):Wn(t)&&(r=$n(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}}function tn(t,n,i){return e(i)?function(t,n,i){return $n(t,n).rt(i)}(t,n,i):function(t,n){return $n(t).rt(n)}(t,n)}function nn(t,n){if(void 0===n)return qi(t);if(!1===Wn(t))return!1;if(!t[yi].O.has(n))return!1;var i=zn(t,n);return qi(i)}function rn(t){return nn(t)}function en(t,n){return nn(t,n)}function un(t,n){return!!t&&(void 0!==n?!!Wn(t)&&t[yi].O.has(n):Wn(t)||!!t[yi]||mi(t)||Qi(t)||qi(t))}function on(t){return un(t)}function sn(t,n){return un(t,n)}function an(n){return Wn(n)?n[yi].et():gr(n)||Sr(n)?Array.from(n.keys()):Bn(n)?n.map((function(t,n){return n})):void t(5)}function fn(n){return Wn(n)?an(n).map((function(t){return n[t]})):gr(n)?an(n).map((function(t){return n.get(t)})):Sr(n)?Array.from(n.values()):Bn(n)?n.slice():void t(6)}function cn(n){return Wn(n)?an(n).map((function(t){return[t,n[t]]})):gr(n)?an(n).map((function(t){return[t,n.get(t)]})):Sr(n)?Array.from(n.entries()):Bn(n)?n.map((function(t,n){return[n,t]})):void t(7)}function hn(n,i,r){if(2!==arguments.length||Sr(n))Wn(n)?n[yi].ut(i,r):gr(n)?n.set(i,r):Sr(n)?n.add(i):Bn(n)?("number"!=typeof i&&(i=parseInt(i,10)),i<0&&t("Invalid index: '"+i+"'"),St(),i>=n.length&&(n.length=i+1),n[i]=r,xt()):t(8);else{St();var e=i;try{for(var u in e)hn(n,u,e[u])}finally{xt()}}}function ln(n,i){Wn(n)?n[yi].ot(i):gr(n)||Sr(n)?n.delete(i):Bn(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)}function vn(n,i){return Wn(n)?n[yi].st(i):gr(n)||Sr(n)?n.has(i):Bn(n)?i>=0&&i<n.length:void t(10)}function dn(n,i){if(vn(n,i))return Wn(n)?n[yi].ft(i):gr(n)?n.get(i):Bn(n)?n[i]:void t(11)}function bn(n,i,r){if(Wn(n))return n[yi].l(i,r);t(39)}function yn(n){if(Wn(n))return n[yi].ct();t(38)}function pn(t,n,i,r){return e(i)?function(t,n,i,r){return $n(t,n).ht(i,r)}(t,n,i,r):function(t,n,i){return $n(t).ht(n,i)}(t,n,i)}function mn(t,n,i){return t.set(n,i),i}function wn(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!on(n))return n;if(Bi(n)||qi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(Bn(n)){var r=mn(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Sr(n)){var e=mn(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(gr(n)){var u=mn(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=mn(i,n,{});return yn(n).forEach((function(r){oi.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)}function On(){}function jn(t,n){void 0===n&&(n=void 0),St();try{return t.apply(n)}finally{xt()}}function gn(t,n,i){return 1===arguments.length||n&&"object"==typeof n?An(t,n):_n(t,n,i||{})}function _n(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[yi].Z){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=tt("When-effect",n),o=Lt((function(n){et(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function An(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=_n(t,i,O({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function Sn(t){return t[yi]}function xn(t){return void 0!==t.lt&&t.lt.length>0}function En(t,n){var i=t.lt||(t.lt=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function Rn(n,i){var r=bt();try{for(var e=[].concat(n.lt||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&t(14),i);u++);return i}finally{yt(r)}}function Mn(t){return void 0!==t.vt&&t.vt.length>0}function Nn(t,n){var i=t.vt||(t.vt=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function kn(t,n){var i=bt(),r=t.vt;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);yt(i)}}function Vn(t,n,i){return Yn((function(){var r=Dn(t,i)[yi];null!=n||(n=function(t){return b(t,bi)||f(t,bi,O({},t[bi])),t[bi]}(t)),vi(n).forEach((function(t){return r.o(t,n[t])}))})),t}function Tn(t,n,i){return s(t)?qt(t,t,n,i):(Yn((function(){var r=Dn(t,i)[yi];if(!t[hr]){var e=Object.getPrototypeOf(t),u=new Set([].concat(vi(t),vi(e)));u.delete("constructor"),u.delete(yi),f(e,hr,u)}t[hr].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)}function Cn(t,n,r,e){return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i(),Yn((function(){var i=new dr(r,n,e,!1);c(i.O,yi,i);var u=new Proxy(i.O,vr);return i.v=u,t&&t.length&&i.dt(0,0,t),u}))}function In(t,n){"function"==typeof Array.prototype[t]&&(br[t]=n(t))}function Ln(t){return function(){var n=this[yi];n.bt.reportObserved();var i=n.yt(n.O);return i[t].apply(i,arguments)}}function Pn(t){return function(n,i){var r=this,e=this[yi];return e.bt.reportObserved(),e.yt(e.O)[t]((function(t,e){return n.call(i,t,e,r)}))}}function Kn(t){return function(){var n=this,i=this[yi];i.bt.reportObserved();var r=i.yt(i.O),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function Bn(t){return o(t)&&mr(t[yi])}function Dn(t,n){var i;if(b(t,yi))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new Er(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:X(t):void 0}(n));return f(t,yi,e),t}function Gn(t){return xr[t]||(xr[t]={get:function(){return this[yi].j(t)},set:function(n){return this[yi]._(t,n)}})}function Wn(t){return!!o(t)&&Rr(t[yi])}function qn(t,n,i){var r;null==(r=t.h[bi])||delete r[i]}function Fn(t){return{enumerable:!1,configurable:!0,get:function(){return this[yi].ft(t)},set:function(n){this[yi].ut(t,n)}}}function Hn(t){ui(Tr.prototype,""+t,Fn(t))}function Un(t){if(t>kr){for(var n=kr;n<t+100;n++)Hn(n);kr=t}}function Xn(t,n,i){return new Tr(t,n,i)}function zn(n,i){if("object"==typeof n&&null!==n){if(Bn(n))return void 0!==i&&t(23),n[yi].bt;if(Sr(n))return n.bt;if(gr(n)){if(void 0===i)return n.pt;var r=n.wt.get(i)||n.Ot.get(i);return r||t(25,i,Jn(n)),r}if(Wn(n)){if(!i)return t(26);var u=n[yi].O.get(i);return u||t(27,i,Jn(n)),u}if(mi(n)||qi(n)||Qi(n))return n}else if(e(n)&&Qi(n[yi]))return n[yi];t(28)}function $n(n,i){return n||t(29),void 0!==i?$n(zn(n,i)):mi(n)||qi(n)||Qi(n)||gr(n)||Sr(n)?n:n[yi]?n[yi]:void t(24,n)}function Jn(t,n){var i;if(void 0!==n)i=zn(t,n);else{if(It(t))return t.name;i=Wn(t)||gr(t)||Sr(t)?$n(t):zn(t)}return i.it}function Yn(t){var n=bt(),i=ut(!0);St();try{return t()}finally{xt(),ot(i),yt(n)}}function Qn(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,u,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var a=Cr.call(n);if(a!==Cr.call(i))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Zn(n),i=Zn(i);var f="[object Array]"===a;if(!f){if("object"!=typeof n||"object"!=typeof i)return!1;var c=n.constructor,h=i.constructor;if(c!==h&&!(e(c)&&c instanceof c&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var l=(u=u||[]).length;l--;)if(u[l]===n)return o[l]===i;if(u.push(n),o.push(i),f){if((l=n.length)!==i.length)return!1;for(;l--;)if(!t(n[l],i[l],r-1,u,o))return!1}else{var v,d=Object.keys(n);if(l=d.length,Object.keys(i).length!==l)return!1;for(;l--;)if(!b(i,v=d[l])||!t(n[v],i[v],r-1,u,o))return!1}return u.pop(),o.pop(),!0}(t,n,i)}function Zn(t){return Bn(t)?t.slice():l(t)||gr(t)||v(t)||Sr(t)?Array.from(t.entries()):t}function ti(t){return t[Symbol.iterator]=ni,t}function ni(){return this}var ii={},ri=Object.assign,ei=Object.getOwnPropertyDescriptor,ui=Object.defineProperty,oi=Object.prototype,si=[];Object.freeze(si);var ai={};Object.freeze(ai);var fi="undefined"!=typeof Proxy,ci=Object.toString(),hi=function(){},li=void 0!==Object.getOwnPropertySymbols,vi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:li?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,di=Object.getOwnPropertyDescriptors||function(t){var n={};return vi(t).forEach((function(i){n[i]=ei(t,i)})),n},bi=Symbol("mobx-stored-annotations"),yi=Symbol("mobx administration"),pi=function(){function t(t){void 0===t&&(t="Atom"),this.it=void 0,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.X=new Set,this.F=0,this.J=0,this.U=Gi.P,this.onBOL=void 0,this.onBUOL=void 0,this.it=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return Et(this)},n.reportChanged=function(){St(),Rt(this),xt()},n.toString=function(){return this.it},t}(),mi=h("Atom",pi),wi={identity:function(t,n){return t===n},structural:function(t,n){return Qn(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return Qn(t,n,1)}},Oi=_({i:"override",o:function(){return 0},s:function(){t("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),ji=X(),gi={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(gi);var _i=q("observable"),Ai=q("observable.ref",{enhancer:R}),Si=q("observable.shallow",{enhancer:function(t,n,i){return null==t||Wn(t)||Bn(t)||gr(t)||Sr(t)?t:Array.isArray(t)?Ni.array(t,{name:i,deep:!1}):s(t)?Ni.object(t,void 0,{name:i,deep:!1}):l(t)?Ni.map(t,{name:i,deep:!1}):v(t)?Ni.set(t,{name:i,deep:!1}):void 0}}),xi=q("observable.struct",{enhancer:function(t,n){return Qn(t,n)?n:t}}),Ei=_(_i);ri(Z,Ei);var Ri,Mi,Ni=ri(Z,{box:function(t,n){var i=Y(n);return new Ki(t,Q(i),i.name,!0,i.equals)},array:function(t,n){var i=Y(n);return(!1===$i.useProxies||!1===i.proxy?Xn:Cn)(t,Q(i),i.name)},map:function(t,n){var i=Y(n);return new jr(t,Q(i),i.name)},set:function(t,n){var i=Y(n);return new Ar(t,Q(i),i.name)},object:function(t,n,r){return Yn((function(){return qt(!1===$i.useProxies||!1===(null==r?void 0:r.proxy)?Dn({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=Dn(t,n))[yi]).v)?e:r.v=new Proxy(t,cr)}({},r),t,n)}))},ref:_(Ai),shallow:_(Si),deep:Ei,struct:_(xi)}),ki=B("computed"),Vi=B("computed.struct",{equals:wi.structural}),Ti=function(t,n){if(S(n))return ki.t(t,n);if(u(n))return A(t,n,ki);if(s(t))return _(B("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new Di(i)};Object.assign(Ti,ki),Ti.struct=_(Vi);var Ci=0,Ii=1,Li=null!=(Ri=null==(Mi=ei((function(){}),"name"))?void 0:Mi.configurable)&&Ri,Pi={value:"action",configurable:!0,writable:!1,enumerable:!1},Ki=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=wi.default),(o=t.call(this,r)||this).enhancer=void 0,o.it=void 0,o.equals=void 0,o.jt=!1,o.lt=void 0,o.vt=void 0,o.gt=void 0,o.dehancer=void 0,o.enhancer=i,o.it=r,o.equals=u,o.gt=i(n,void 0,r),o}j(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this._t(t))!==$i.UNCHANGED&&this.At(t)},i._t=function(t){if(xn(this)){var n=Rn(this,{object:this,type:lr,newValue:t});if(!n)return $i.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.gt,this.it),this.equals(this.gt,t)?$i.UNCHANGED:t},i.At=function(t){var n=this.gt;this.gt=t,this.reportChanged(),Mn(this)&&kn(this,{type:lr,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.gt)},i.rt=function(t){return En(this,t)},i.ht=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.it,object:this,type:lr,newValue:this.gt,oldValue:void 0}),Nn(this,t)},i.raw=function(){return this.gt},i.toJSON=function(){return this.get()},i.toString=function(){return this.it+"["+this.gt+"]"},i.valueOf=function(){return d(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},n}(pi),Bi=h("ObservableValue",Ki),Di=function(){function n(n){this.I=Gi.P,this.D=[],this.G=null,this.X=new Set,this.F=0,this.W=0,this.J=0,this.U=Gi.L,this.q=0,this.gt=new Fi(null),this.it=void 0,this.St=void 0,this.xt=0,this.derivation=void 0,this.Et=void 0,this.Rt=Wi.NONE,this.Mt=void 0,this.Nt=void 0,this.kt=void 0,this.Vt=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.it=n.name||"ComputedValue",n.set&&(this.Et=tt("ComputedValue-setter",n.set)),this.Nt=n.equals||(n.compareStructural||n.struct?wi.structural:wi.default),this.Mt=n.context,this.kt=n.requiresReaction,this.Vt=!!n.keepAlive}var i=n.prototype;return i.H=function(){!function(t){t.U===Gi.L&&(t.U=Gi.B,t.X.forEach((function(t){t.I===Gi.L&&(t.I=Gi.B,t.H())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.isComputing&&t(32,this.it,this.derivation),0!==$i.inBatch||0!==this.X.size||this.Vt){if(Et(this),ct(this)){var n=$i.trackingContext;this.Vt&&!n&&($i.trackingContext=this),this.trackAndCompute()&&function(t){t.U!==Gi.K&&(t.U=Gi.K,t.X.forEach((function(n){n.I===Gi.B?n.I=Gi.K:n.I===Gi.L&&(t.U=Gi.L)})))}(this),$i.trackingContext=n}}else ct(this)&&(this.Tt(),St(),this.gt=this.Ct(!1),xt());var i=this.gt;if(ft(i))throw i.cause;return i},i.set=function(n){if(this.Et){this.isRunningSetter&&t(33,this.it),this.isRunningSetter=!0;try{this.Et.call(this.Mt,n)}finally{this.isRunningSetter=!1}}else t(34,this.it)},i.trackAndCompute=function(){var t=this.gt,n=this.I===Gi.P,i=this.Ct(!0),r=n||ft(t)||ft(i)||!this.Nt(t,i);return r&&(this.gt=i),r},i.Ct=function(t){this.isComputing=!0;var n,i=ut(!1);if(t)n=lt(this,this.derivation,this.Mt);else if(!0===$i.disableErrorBoundaries)n=this.derivation.call(this.Mt);else try{n=this.derivation.call(this.Mt)}catch(t){n=new Fi(t)}return ot(i),this.isComputing=!1,n},i.$=function(){this.Vt||(vt(this),this.gt=void 0)},i.ht=function(t,n){var i=this,r=!0,e=void 0;return Lt((function(){var u=i.get();if(!r||n){var o=bt();t({observableKind:"computed",debugObjectName:i.it,type:lr,object:i,newValue:u,oldValue:e}),yt(o)}r=!1,e=u}))},i.Tt=function(){},i.toString=function(){return this.it+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},m(n,[{key:"isComputing",get:function(){return st(this.xt,n.It)},set:function(t){this.xt=at(this.xt,n.It,t)}},{key:"isRunningSetter",get:function(){return st(this.xt,n.Lt)},set:function(t){this.xt=at(this.xt,n.Lt,t)}},{key:"isBeingObserved",get:function(){return st(this.xt,n.Pt)},set:function(t){this.xt=at(this.xt,n.Pt,t)}},{key:"isPendingUnobservation",get:function(){return st(this.xt,n.Kt)},set:function(t){this.xt=at(this.xt,n.Kt,t)}}])}();Di.It=1,Di.Lt=2,Di.Pt=4,Di.Kt=8;var Gi,Wi,qi=h("ComputedValue",Di);!function(t){t[t.P=-1]="NOT_TRACKING_",t[t.L=0]="UP_TO_DATE_",t[t.B=1]="POSSIBLY_STALE_",t[t.K=2]="STALE_"}(Gi||(Gi={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(Wi||(Wi={}));var Fi=function(t){this.cause=void 0,this.cause=t},Hi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],Ui=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Xi=!0,zi=!1,$i=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(Xi=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new Ui).version&&(Xi=!1),Xi?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new Ui):(setTimeout((function(){zi||t(35)}),1),new Ui)}(),Ji=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.it=void 0,this.Bt=void 0,this.Dt=void 0,this.Gt=void 0,this.D=[],this.G=[],this.I=Gi.P,this.F=0,this.W=0,this.q=0,this.Z=!1,this.Wt=!1,this.qt=!1,this.Ft=!1,this.Rt=Wi.NONE,this.it=t,this.Bt=n,this.Dt=i,this.Gt=r}var n=t.prototype;return n.H=function(){this.tt()},n.tt=function(){this.Wt||(this.Wt=!0,$i.pendingReactions.push(this),Nt())},n.isScheduled=function(){return this.Wt},n.Y=function(){if(!this.Z){St(),this.Wt=!1;var t=$i.trackingContext;if($i.trackingContext=this,ct(this)){this.qt=!0;try{this.Bt()}catch(t){this.Ht(t)}}$i.trackingContext=t,xt()}},n.track=function(t){if(!this.Z){St(),this.Ft=!0;var n=$i.trackingContext;$i.trackingContext=this;var i=lt(this,t,void 0);$i.trackingContext=n,this.Ft=!1,this.qt=!1,this.Z&&vt(this),ft(i)&&this.Ht(i.cause),xt()}},n.Ht=function(t){var n=this;if(this.Dt)this.Dt(t,this);else{if($i.disableErrorBoundaries)throw t;$i.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),$i.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.Z||(this.Z=!0,this.Ft||(St(),vt(this),xt()))},n.nt=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[yi]=this,i},n.toString=function(){return"Reaction["+this.it+"]"},n.trace=function(){},t}(),Yi=function(t){return t()},Qi=h("Reaction",Ji),Zi=M("action"),tr=M("action.bound",{bound:!0}),nr=M("autoAction",{autoAction:!0}),ir=M("autoAction.bound",{autoAction:!0,bound:!0}),rr=Tt(!1);Object.assign(rr,Zi);var er=Tt(!0);Object.assign(er,nr),rr.bound=_(tr),er.bound=_(ir);var ur=function(t){return t()},or=0;zt.prototype=Object.create(Error.prototype);var sr=C("flow"),ar=C("flow.bound",{bound:!0}),fr=Object.assign((function(t,n){if(S(n))return sr.t(t,n);if(u(n))return A(t,n,sr);var i=t,r=i.name||"<unnamed flow>",o=function(){var t,n=this,u=arguments,o=++or,s=rr(r+" - runid: "+o+" - init",i).apply(n,u),a=void 0,f=new Promise((function(n,i){function u(t){var n;a=void 0;try{n=rr(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}c(n)}function f(t){var n;a=void 0;try{n=rr(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}c(n)}function c(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(a=Promise.resolve(t.value)).then(u,f);t.then(c,i)}var h=0;t=i,u(void 0)}));return f.cancel=rr(r+" - runid: "+o+" - cancel",(function(){try{a&&Jt(a);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(hi,hi),Jt(i),t(new zt)}catch(n){t(n)}})),f};return o.isMobXFlow=!0,o}),sr);fr.bound=_(ar);var cr={has:function(t,n){return Sn(t).st(n)},get:function(t,n){return Sn(t).ft(n)},set:function(t,n,i){var r;return!!u(n)&&(null==(r=Sn(t).ut(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!u(n)&&(null==(i=Sn(t).ot(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=Sn(t).l(n,i))||r},ownKeys:function(t){return Sn(t).ct()},preventExtensions:function(){t(13)}},hr=Symbol("mobx-keys"),lr="update",vr={get:function(t,n){var i=t[yi];return n===yi?i:"length"===n?i.Ut():"string"!=typeof n||isNaN(n)?b(br,n)?br[n]:t[n]:i.ft(parseInt(n))},set:function(t,n,i){var r=t[yi];return"length"===n&&r.Xt(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.ut(parseInt(n),i),!0},preventExtensions:function(){t(15)}},dr=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.zt=void 0,this.$t=void 0,this.bt=void 0,this.O=[],this.lt=void 0,this.vt=void 0,this.Jt=void 0,this.dehancer=void 0,this.v=void 0,this.Yt=0,this.zt=i,this.$t=r,this.bt=new pi(t),this.Jt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.yt=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.rt=function(t){return En(this,t)},i.ht=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.v,debugObjectName:this.bt.it,type:"splice",index:0,added:this.O.slice(),addedCount:this.O.length,removed:[],removedCount:0}),Nn(this,t)},i.Ut=function(){return this.bt.reportObserved(),this.O.length},i.Xt=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.O.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.dt(i,0,r)}else this.dt(n,i-n)},i.Zt=function(n,i){n!==this.Yt&&t(16),this.Yt+=i,this.$t&&i>0&&Un(n+i+1)},i.dt=function(t,n,i){var r=this,e=this.O.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=si),xn(this)){var u=Rn(this,{object:this.v,type:"splice",index:t,removedCount:n,added:i});if(!u)return si;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.Jt(t,void 0)})),this.$t){var o=i.length-n;this.Zt(e,o)}var s=this.tn(t,n,i);return 0===n&&0===i.length||this.nn(t,i,s),this.yt(s)},i.tn=function(t,n,i){var r;if(i.length<1e4)return(r=this.O).splice.apply(r,[t,n].concat(i));var e=this.O.slice(t,t+n),u=this.O.slice(t+n);this.O.length+=i.length-n;for(var o=0;o<i.length;o++)this.O[t+o]=i[o];for(var s=0;s<u.length;s++)this.O[t+i.length+s]=u[s];return e},i.in=function(t,n,i){var r=!this.zt&&!1,e=Mn(this),u=e||r?{observableKind:"array",object:this.v,type:lr,debugObjectName:this.bt.it,index:t,newValue:n,oldValue:i}:null;this.bt.reportChanged(),e&&kn(this,u)},i.nn=function(t,n,i){var r=!this.zt&&!1,e=Mn(this),u=e||r?{observableKind:"array",object:this.v,debugObjectName:this.bt.it,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.bt.reportChanged(),e&&kn(this,u)},i.ft=function(t){if(!(this.$t&&t>=this.O.length))return this.bt.reportObserved(),this.Qt(this.O[t]);console.warn("[mobx] Out of bounds read: "+t)},i.ut=function(n,i){var r=this.O;if(this.$t&&n>r.length&&t(17,n,r.length),n<r.length){var e=r[n];if(xn(this)){var u=Rn(this,{type:lr,object:this.v,index:n,newValue:i});if(!u)return;i=u.newValue}(i=this.Jt(i,e))!==e&&(r[n]=i,this.in(n,i,e))}else{for(var o=new Array(n+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.dt(r.length,0,o)}},n}(),br={clear:function(){return this.splice(0)},replace:function(t){var n=this[yi];return n.dt(0,n.O.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[yi];switch(arguments.length){case 0:return[];case 1:return u.dt(t);case 2:return u.dt(t,n)}return u.dt(t,n,r)},spliceWithArray:function(t,n,i){return this[yi].dt(t,n,i)},push:function(){for(var t=this[yi],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.dt(t.O.length,0,i),t.O.length},pop:function(){return this.splice(Math.max(this[yi].O.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[yi],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.dt(0,0,i),t.O.length},reverse:function(){return $i.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){$i.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[yi],i=n.yt(n.O).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};In("at",Ln),In("concat",Ln),In("flat",Ln),In("includes",Ln),In("indexOf",Ln),In("join",Ln),In("lastIndexOf",Ln),In("slice",Ln),In("toString",Ln),In("toLocaleString",Ln),In("toSorted",Ln),In("toSpliced",Ln),In("with",Ln),In("every",Pn),In("filter",Pn),In("find",Pn),In("findIndex",Pn),In("findLast",Pn),In("findLastIndex",Pn),In("flatMap",Pn),In("forEach",Pn),In("map",Pn),In("some",Pn),In("toReversed",Pn),In("reduce",Kn),In("reduceRight",Kn);var yr,pr,mr=h("ObservableArrayAdministration",dr),wr={},Or="add",jr=function(){function n(n,i,r){var u=this;void 0===i&&(i=E),void 0===r&&(r="ObservableMap"),this.Jt=void 0,this.it=void 0,this[yi]=wr,this.wt=void 0,this.Ot=void 0,this.pt=void 0,this.lt=void 0,this.vt=void 0,this.dehancer=void 0,this.Jt=i,this.it=r,e(Map)||t(18),Yn((function(){u.pt=x("ObservableMap.keys()"),u.wt=new Map,u.Ot=new Map,n&&u.merge(n)}))}var i=n.prototype;return i.st=function(t){return this.wt.has(t)},i.has=function(t){var n=this;if(!$i.trackingDerivation)return this.st(t);var i=this.Ot.get(t);if(!i){var r=i=new Ki(this.st(t),R,"ObservableMap.key?",!1);this.Ot.set(t,r),Dt(r,(function(){return n.Ot.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.st(t);if(xn(this)){var r=Rn(this,{type:i?lr:Or,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.rn(t,n):this.en(t,n),this},i.delete=function(t){var n=this;if(xn(this)&&!Rn(this,{type:"delete",object:this,name:t}))return!1;if(this.st(t)){var i=Mn(this),r=i?{observableKind:"map",debugObjectName:this.it,type:"delete",object:this,oldValue:this.wt.get(t).gt,name:t}:null;return jn((function(){var i;n.pt.reportChanged(),null==(i=n.Ot.get(t))||i.At(!1),n.wt.get(t).At(void 0),n.wt.delete(t)})),i&&kn(this,r),!0}return!1},i.rn=function(t,n){var i=this.wt.get(t);if((n=i._t(n))!==$i.UNCHANGED){var r=Mn(this),e=r?{observableKind:"map",debugObjectName:this.it,type:lr,object:this,oldValue:i.gt,name:t,newValue:n}:null;i.At(n),r&&kn(this,e)}},i.en=function(t,n){var i=this;jn((function(){var r,e=new Ki(n,i.Jt,"ObservableMap.key",!1);i.wt.set(t,e),n=e.gt,null==(r=i.Ot.get(t))||r.At(!0),i.pt.reportChanged()}));var r=Mn(this);r&&kn(this,r?{observableKind:"map",debugObjectName:this.it,type:Or,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Qt(this.wt.get(t).get()):this.Qt(void 0)},i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.pt.reportObserved(),this.wt.keys()},i.values=function(){var t=this,n=this.keys();return ti({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return ti({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Symbol.iterator]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=w(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return gr(n)&&(n=new Map(n)),jn((function(){var r,e;s(n)?function(t){var n=Object.keys(t);if(!li)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return oi.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):l(n)?(r=Object.getPrototypeOf(n),e=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(e)&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;jn((function(){dt((function(){for(var n,i=w(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return jn((function(){for(var r,e=function(n){if(l(n)||gr(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),u=new Map,o=!1,a=w(i.wt.keys());!(r=a()).done;){var f=r.value;if(!e.has(f))if(i.delete(f))o=!0;else{var c=i.wt.get(f);u.set(f,c)}}for(var h,v=w(e.entries());!(h=v()).done;){var d=h.value,b=d[0],y=d[1],p=i.wt.has(b);if(i.set(b,y),i.wt.has(b)){var m=i.wt.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.wt.size!==u.size)i.pt.reportChanged();else for(var O=i.wt.keys(),j=u.keys(),g=O.next(),_=j.next();!g.done;){if(g.value!==_.value){i.pt.reportChanged();break}g=O.next(),_=j.next()}i.wt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.ht=function(t){return Nn(this,t)},i.rt=function(t){return En(this,t)},m(n,[{key:"size",get:function(){return this.pt.reportObserved(),this.wt.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),gr=h("ObservableMap",jr),_r={},Ar=function(){function n(n,i,r){var u=this;void 0===i&&(i=E),void 0===r&&(r="ObservableSet"),this.it=void 0,this[yi]=_r,this.wt=new Set,this.bt=void 0,this.vt=void 0,this.lt=void 0,this.dehancer=void 0,this.Jt=void 0,this.it=r,e(Set)||t(22),this.Jt=function(t,n){return i(t,n,r)},Yn((function(){u.bt=x(u.it),n&&u.replace(n)}))}var i=n.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;jn((function(){dt((function(){for(var n,i=w(t.wt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=w(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(xn(this)&&!Rn(this,{type:Or,object:this,newValue:t}))return this;if(!this.has(t)){jn((function(){n.wt.add(n.Jt(t,void 0)),n.bt.reportChanged()}));var i=Mn(this);i&&kn(this,i?{observableKind:"set",debugObjectName:this.it,type:Or,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(xn(this)&&!Rn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=Mn(this),r=i?{observableKind:"set",debugObjectName:this.it,type:"delete",object:this,oldValue:t}:null;return jn((function(){n.bt.reportChanged(),n.wt.delete(t)})),i&&kn(this,r),!0}return!1},i.has=function(t){return this.bt.reportObserved(),this.wt.has(this.Qt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return ti({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.bt.reportObserved();var t=this,n=0,i=Array.from(this.wt.values());return ti({next:function(){return n<i.length?{value:t.Qt(i[n++]),done:!1}:{done:!0}}})},i.intersection=function(t){return v(t)?t.intersection(this):new Set(this).intersection(t)},i.union=function(t){return v(t)?t.union(this):new Set(this).union(t)},i.difference=function(t){return new Set(this).difference(t)},i.symmetricDifference=function(t){return v(t)?t.symmetricDifference(this):new Set(this).symmetricDifference(t)},i.isSubsetOf=function(t){return new Set(this).isSubsetOf(t)},i.isSupersetOf=function(t){return new Set(this).isSupersetOf(t)},i.isDisjointFrom=function(t){return v(t)?t.isDisjointFrom(this):new Set(this).isDisjointFrom(t)},i.replace=function(n){var i=this;return Sr(n)&&(n=new Set(n)),jn((function(){Array.isArray(n)||v(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.ht=function(t){return Nn(this,t)},i.rt=function(t){return En(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Symbol.iterator]=function(){return this.values()},m(n,[{key:"size",get:function(){return this.bt.reportObserved(),this.wt.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Sr=h("ObservableSet",Ar),xr=Object.create(null),Er=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=ji),this.h=void 0,this.O=void 0,this.it=void 0,this.un=void 0,this.pt=void 0,this.vt=void 0,this.lt=void 0,this.v=void 0,this.p=void 0,this.on=void 0,this.sn=void 0,this.h=t,this.O=n,this.it=i,this.un=r,this.pt=new pi("ObservableObject.keys"),this.p=s(this.h)}var i=n.prototype;return i.j=function(t){return this.O.get(t).get()},i._=function(t,n){var i=this.O.get(t);if(i instanceof Di)return i.set(n),!0;if(xn(this)){var r=Rn(this,{type:lr,object:this.v||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i._t(n))!==$i.UNCHANGED){var e=Mn(this),u=e?{type:lr,observableKind:"object",debugObjectName:this.it,object:this.v||this.h,oldValue:i.gt,name:t,newValue:n}:null;i.At(n),e&&kn(this,u)}return!0},i.ft=function(t){return $i.trackingDerivation&&!b(this.h,t)&&this.st(t),this.h[t]},i.ut=function(t,n,i){return void 0===i&&(i=!1),b(this.h,t)?this.O.has(t)?this._(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.un,i)},i.st=function(t){if(!$i.trackingDerivation)return t in this.h;this.sn||(this.sn=new Map);var n=this.sn.get(t);return n||(n=new Ki(t in this.h,R,"ObservableObject.key?",!1),this.sn.set(t,n)),n.get()},i.o=function(n,i){if(!0===i&&(i=this.un),!1!==i){if(!(n in this.h)){var r;if(null!=(r=this.h[bi])&&r[n])return;t(1,i.i,this.it+"."+n.toString())}for(var e=this.h;e&&e!==oi;){var u=ei(e,n);if(u){var o=i.o(this,n,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}qn(this,0,n)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.un),!1===i)return this.l(t,n,r);var e=i.s(this,t,n,r);return e&&qn(this,0,t),e},i.l=function(t,n,i){void 0===i&&(i=!1);try{St();var r=this.ot(t);if(!r)return r;if(xn(this)){var e=Rn(this,{object:this.v||this.h,name:t,type:Or,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=O({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else ui(this.h,t,n);this.an(t,n.value)}finally{xt()}return!0},i.g=function(t,n,i,r){void 0===r&&(r=!1);try{St();var e=this.ot(t);if(!e)return e;if(xn(this)){var u=Rn(this,{object:this.v||this.h,name:t,type:Or,newValue:n});if(!u)return null;n=u.newValue}var o=Gn(t),s={configurable:!$i.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else ui(this.h,t,s);var a=new Ki(n,i,"ObservableObject.key",!1);this.O.set(t,a),this.an(t,a.gt)}finally{xt()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{St();var r=this.ot(t);if(!r)return r;if(xn(this)&&!Rn(this,{object:this.v||this.h,name:t,type:Or,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.v||this.h;var e=Gn(t),u={configurable:!$i.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else ui(this.h,t,u);this.O.set(t,new Di(n)),this.an(t,void 0)}finally{xt()}return!0},i.ot=function(t,n){if(void 0===n&&(n=!1),!b(this.h,t))return!0;if(xn(this)&&!Rn(this,{object:this.v||this.h,name:t,type:"remove"}))return null;try{var i;St();var r,e=Mn(this),u=this.O.get(t),o=void 0;if(!u&&e&&(o=null==(r=ei(this.h,t))?void 0:r.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];u&&(this.O.delete(t),u instanceof Ki&&(o=u.gt),Rt(u)),this.pt.reportChanged(),null==(i=this.sn)||null==(i=i.get(t))||i.set(t in this.h),e&&e&&kn(this,{type:"remove",observableKind:"object",object:this.v||this.h,debugObjectName:this.it,oldValue:o,name:t})}finally{xt()}return!0},i.ht=function(t){return Nn(this,t)},i.rt=function(t){return En(this,t)},i.an=function(t,n){var i,r=Mn(this);r&&r&&kn(this,r?{type:Or,observableKind:"object",debugObjectName:this.it,object:this.v||this.h,name:t,newValue:n}:null),null==(i=this.sn)||null==(i=i.get(t))||i.set(!0),this.pt.reportChanged()},i.ct=function(){return this.pt.reportObserved(),vi(this.h)},i.et=function(){return this.pt.reportObserved(),Object.keys(this.h)},n}(),Rr=h("ObservableObjectAdministration",Er),Mr=Fn(0),Nr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),kr=0,Vr=function(){};yr=Vr,pr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(yr.prototype,pr):void 0!==yr.prototype.__proto__?yr.prototype.__proto__=pr:yr.prototype=pr;var Tr=function(t){function n(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,Yn((function(){var t=new dr(r,i,e,!0);t.v=u,c(u,yi,t),n&&n.length&&u.spliceWithArray(0,0,n),Nr&&Object.defineProperty(u,"0",Mr)})),u}j(n,t);var i=n.prototype;return i.concat=function(){this[yi].bt.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return Bn(t)?t.slice():t})))},i[Symbol.iterator]=function(){var t=this,n=0;return ti({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},m(n,[{key:"length",get:function(){return this[yi].Ut()},set:function(t){this[yi].Xt(t)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Vr);Object.entries(br).forEach((function(t){var n=t[0];"concat"!==n&&f(Tr.prototype,n,t[1])})),Un(1e3);var Cr=oi.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Vt,extras:{getDebugName:Jn},$mobx:yi});export{yi as $mobx,zt as FlowCancellationError,jr as ObservableMap,Ar as ObservableSet,Ji as Reaction,et as _allowStateChanges,Ct as _allowStateChangesInsideComputed,mt as _allowStateReadsEnd,pt as _allowStateReadsStart,er as _autoAction,rt as _endAction,$n as _getAdministration,Ot as _getGlobalState,Zt as _interceptReads,ht as _isComputingDerivation,jt as _resetGlobalState,it as _startAction,rr as action,Lt as autorun,wi as comparer,Ti as computed,Wt as configure,x as createAtom,bn as defineProperty,cn as entries,qt as extendObservable,fr as flow,Yt as flowResult,dn as get,zn as getAtom,Jn as getDebugName,Ft as getDependencyTree,Ut as getObserverTree,vn as has,tn as intercept,It as isAction,Bi as isBoxedObservable,rn as isComputed,en as isComputedProp,Qt as isFlow,$t as isFlowCancellationError,on as isObservable,Bn as isObservableArray,gr as isObservableMap,Wn as isObservableObject,sn as isObservableProp,Sr as isObservableSet,an as keys,Tn as makeAutoObservable,Vn as makeObservable,Ni as observable,pn as observe,Bt as onBecomeObserved,Dt as onBecomeUnobserved,Mt as onReactionError,Oi as override,yn as ownKeys,Kt as reaction,ln as remove,Ct as runInAction,hn as set,Vt as spy,wn as toJS,On as trace,jn as transaction,dt as untracked,fn as values,gn as when};
function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:ii}function i(){fi||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function u(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function o(t){return null!==t&&"object"==typeof t}function s(t){if(!o(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===ci}function a(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function f(t,n,i){ui(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function c(t,n,i){ui(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return o(t)&&!0===t[i]}}function l(t){return null!=t&&"[object Map]"===Object.prototype.toString.call(t)}function v(t){return null!=t&&"[object Set]"===Object.prototype.toString.call(t)}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return oi.hasOwnProperty.call(t,n)}function y(t,n){return!!(t&n)}function p(t,n,i){return i?t|=n:t&=~n,t}function m(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=Array(n);i<n;i++)r[i]=t[i];return r}function w(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,A(r.key),r)}}function O(t,n,i){return n&&w(t.prototype,n),i&&w(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function j(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return m(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?m(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(){return(g=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(null,arguments)}function _(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,function(t,n){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}(t,n)}function A(t){var n=function(t){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof n?n:n+""}function S(t){return Object.assign((function(n,i){if(k(i))return t.t(n,i);x(n,i,t)}),t)}function x(t,n,i){b(t,bi)||f(t,bi,g({},t[bi])),function(t){return"override"===t.i}(i)||(t[bi][n]=i)}function k(t){return"object"==typeof t&&"string"==typeof t.kind}function R(t,n,i){void 0===n&&(n=hi),void 0===i&&(i=hi);var r=new pi(t);return n!==hi&&Bt(r,n),i!==hi&&Dt(r,i),r}function E(t,n,i){return on(t)?t:Array.isArray(t)?Mi.array(t,{name:i}):s(t)?Mi.object(t,void 0,{name:i}):l(t)?Mi.map(t,{name:i}):v(t)?Mi.set(t,{name:i}):"function"!=typeof t||Pt(t)||Qt(t)?t:a(t)?fr(t):er(i,t)}function M(t){return t}function V(t,n){return{i:t,u:n,o:N,s:T,t:C}}function N(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Pt(i.value))return 1;var u=P(t,this,n,i,!1);return ui(r,n,u),2}function T(t,n,i,r){var e=P(t,this,n,i);return t.l(n,e,r)}function C(n,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,a,f,c,h,l;if("method"==r)return Pt(n)||(a=n,n=it(null!=(f=null==(c=o.u)?void 0:c.name)?f:e.toString(),a,null!=(h=null==(l=o.u)?void 0:l.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),n;t("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){x(this,e,o)}))}function P(t,n,i,r,e){var u,o,s,a,f,c,h;void 0===e&&(e=$i.safeDescriptors);var l,v=r.value;return null!=(u=n.u)&&u.bound&&(v=v.bind(null!=(l=t.v)?l:t.h)),{value:it(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),v,null!=(a=null==(f=n.u)?void 0:f.autoAction)&&a,null!=(c=n.u)&&c.bound?null!=(h=t.v)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function I(t,n){return{i:t,u:n,o:L,s:K,t:B}}function L(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!b(t.h,n)||!Qt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Qt(i.value))return 1;var u=D(t,0,0,i,!1,!1);return ui(r,n,u),2}function K(t,n,i,r){var e,u=D(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.l(n,u,r)}function B(t,n){var i,r=n.name,e=n.addInitializer;return Qt(t)||(t=fr(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function D(t,n,i,r,e,u){void 0===u&&(u=$i.safeDescriptors);var o,s=r.value;return Qt(s)||(s=fr(s)),e&&((s=s.bind(null!=(o=t.v)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function G(t,n){return{i:t,u:n,o:W,s:q,t:U}}function W(t,n,i){return null===this.s(t,n,i,!1)?0:1}function q(t,n,i,r){return t.m(n,g({},this.u,{get:i.get,set:i.set}),r)}function U(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=Dn(this)[yi],e=g({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.O.set(r,new Di(e))})),function(){return this[yi].j(r)}}function F(t,n){return{i:t,u:n,o:H,s:X,t:z}}function H(t,n,i){return null===this.s(t,n,i,!1)?0:1}function X(t,n,i,r){var e,u;return t.g(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:E,r)}function z(t,n){function i(t,n){var i,e,s=Dn(t)[yi],a=new Ki(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:E,"ObservableObject."+u.toString(),!1);s.O.set(u,a),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[yi].j(u)},set:function(t){return o.has(this)||i(this,t),this[yi]._(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function $(t){return{i:"true",u:t,o:J,s:Y,t:Q}}function J(t,n,i,r){var e,u,o,s;if(i.get)return Ti.o(t,n,i,r);if(i.set){var f=it(n.toString(),i.set);return r===t.h?null===t.l(n,{configurable:!$i.safeDescriptors||t.p,set:f})?0:2:(ui(r,n,{configurable:!0,set:f}),2)}if(r!==t.h&&"function"==typeof i.value)return a(i.value)?(null!=(s=this.u)&&s.autoBind?fr.bound:fr).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?er.bound:er).o(t,n,i,r);var c,h=!1===(null==(e=this.u)?void 0:e.deep)?Mi.ref:Mi;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(c=t.v)?c:t.h)),h.o(t,n,i,r)}function Y(t,n,i,r){var e,u,o;return i.get?Ti.s(t,n,i,r):i.set?t.l(n,{configurable:!$i.safeDescriptors||t.p,set:it(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.v)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?Mi.ref:Mi).s(t,n,i,r))}function Q(){t("'"+this.i+"' cannot be used as a decorator")}function Z(t){return t||gi}function tt(t){return!0===t.deep?E:!1===t.deep?M:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:E;var n,i,r}function nt(t,n,i){return k(n)?_i.t(t,n):u(n)?void x(t,n,_i):on(t)?t:s(t)?Mi.object(t,n,i):Array.isArray(t)?Mi.array(t,n):l(t)?Mi.map(t,n):v(t)?Mi.set(t,n):"object"==typeof t&&null!==t?t:Mi.box(t,n)}function it(t,n,i,r){function e(){return rt(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},Ii&&(Li.value=t,ui(e,"name",Li)),e}function rt(t,n,i,r,e){var u=et(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{ut(u)}}function et(t,n){var i=$i.trackingDerivation,r=!n||!i;St();var e=$i.allowStateChanges;r&&(bt(),e=st(!0));var u={S:r,k:i,R:e,M:pt(!0),V:!1,N:0,T:Pi++,C:Ci};return Ci=u.T,u}function ut(n){Ci!==n.T&&t(30),Ci=n.C,void 0!==n.A&&($i.suppressReactionErrors=!0),at(n.R),mt(n.M),xt(),n.S&&yt(n.k),$i.suppressReactionErrors=!1}function ot(t,n){var i=st(t);try{return n()}finally{at(i)}}function st(t){var n=$i.allowStateChanges;return $i.allowStateChanges=t,n}function at(t){$i.allowStateChanges=t}function ft(t){return t instanceof Ui}function ct(t){switch(t.P){case Gi.I:return!1;case Gi.L:case Gi.K:return!0;case Gi.B:for(var n=pt(!0),i=bt(),r=t.D,e=r.length,u=0;u<e;u++){var o=r[u];if(qi(o)){if($i.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return yt(i),mt(n),!0}if(t.P===Gi.K)return yt(i),mt(n),!0}}return wt(t),yt(i),mt(n),!1}}function ht(){return null!==$i.trackingDerivation}function lt(t,n,i){var r=pt(!0);wt(t),t.G=new Array(0===t.W?100:t.D.length),t.q=0,t.W=++$i.runId;var e,u=$i.trackingDerivation;if($i.trackingDerivation=t,$i.inBatch++,!0===$i.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new Ui(t)}return $i.inBatch--,$i.trackingDerivation=u,function(t){for(var n=t.D,i=t.D=t.G,r=Gi.I,e=0,u=t.q,o=0;o<u;o++){var s=i[o];0===s.diffValue&&(s.diffValue=1,e!==o&&(i[e]=s),e++),s.P>r&&(r=s.P)}for(i.length=e,t.G=null,u=n.length;u--;){var a=n[u];0===a.diffValue&&_t(a,t),a.diffValue=0}for(;e--;){var f=i[e];1===f.diffValue&&(f.diffValue=0,gt(f,t))}r!==Gi.I&&(t.P=r,t.U())}(t),mt(r),e}function vt(t){var n=t.D;t.D=[];for(var i=n.length;i--;)_t(n[i],t);t.P=Gi.L}function dt(t){var n=bt();try{return t()}finally{yt(n)}}function bt(){var t=$i.trackingDerivation;return $i.trackingDerivation=null,t}function yt(t){$i.trackingDerivation=t}function pt(t){var n=$i.allowStateReads;return $i.allowStateReads=t,n}function mt(t){$i.allowStateReads=t}function wt(t){if(t.P!==Gi.I){t.P=Gi.I;for(var n=t.D,i=n.length;i--;)n[i].F=Gi.I}}function Ot(){return $i}function jt(){var t=new Hi;for(var n in t)-1===Fi.indexOf(n)&&($i[n]=t[n]);$i.allowStateChanges=!$i.enforceActions}function gt(t,n){t.H.add(n),t.F>n.P&&(t.F=n.P)}function _t(t,n){t.H.delete(n),0===t.H.size&&At(t)}function At(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,$i.pendingUnobservations.push(t))}function St(){$i.inBatch++}function xt(){if(0==--$i.inBatch){Mt();for(var t=$i.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.isPendingUnobservation=!1,0===i.H.size&&(i.isBeingObserved&&(i.isBeingObserved=!1,i.onBUO()),i instanceof Di&&i.X())}$i.pendingUnobservations=[]}}function kt(t){var n=$i.trackingDerivation;return null!==n?(n.W!==t.$&&(t.$=n.W,n.G[n.q++]=t,!t.isBeingObserved&&$i.trackingContext&&(t.isBeingObserved=!0,t.onBO())),t.isBeingObserved):(0===t.H.size&&$i.inBatch>0&&At(t),!1)}function Rt(t){t.F!==Gi.K&&(t.F=Gi.K,t.H.forEach((function(t){t.P===Gi.I&&t.U(),t.P=Gi.K})))}function Et(t){return $i.globalReactionErrorHandlers.push(t),function(){var n=$i.globalReactionErrorHandlers.indexOf(t);n>=0&&$i.globalReactionErrorHandlers.splice(n,1)}}function Mt(){$i.inBatch>0||$i.isRunningReactions||Yi(Vt)}function Vt(){$i.isRunningReactions=!0;for(var t=$i.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].J()}$i.isRunningReactions=!1}function Nt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Tt(t){return function(n,i){return e(n)?it(n.name||"<unnamed action>",n,t):e(i)?it(n,i,t):k(i)?(t?nr:Zi).t(n,i):u(i)?x(n,i,t?nr:Zi):u(n)?S(V(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Ct(t){return rt(0,!1,t,this,void 0)}function Pt(t){return e(t)&&!0===t.isMobxAction}function It(t,n){function i(){t(s)}var r,e,u,o;void 0===n&&(n=ai);var s,a=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var f=Lt(n),c=!1;s=new Ji(a,(function(){c||(c=!0,f((function(){c=!1,s.isDisposed||s.track(i)})))}),n.onError,n.requiresObservable)}else s=new Ji(a,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(u=u.signal)&&u.aborted||s.Y(),s.Z(null==(o=n)?void 0:o.signal)}function Lt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:ur}function Kt(t,n,i){function r(){if(b=!1,!p.isDisposed){var n=!1,r=f;p.track((function(){var i=ot(!1,(function(){return t(p)}));n=d||!y(f,i),f=i})),(d&&i.fireImmediately||!d&&n)&&h(f,r,p),d=!1}}var e,u,o;void 0===i&&(i=ai);var s,a,f,c=null!=(e=i.name)?e:"Reaction",h=rr(c,i.onError?(s=i.onError,a=n,function(){try{return a.apply(this,arguments)}catch(t){s.call(this,t)}}):n),l=!i.scheduler&&!i.delay,v=Lt(i),d=!0,b=!1,y=i.compareStructural?wi.structural:i.equals||wi.default,p=new Ji(c,(function(){d||l?r():b||(b=!0,v(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(u=u.signal)&&u.aborted||p.Y(),p.Z(null==(o=i)?void 0:o.signal)}function Bt(t,n,i){return Gt("onBO",t,n,i)}function Dt(t,n,i){return Gt("onBUO",t,n,i)}function Gt(t,n,i,r){var u="function"==typeof r?zn(n,i):zn(n),o=e(r)?r:i,s=t+"L";return u[s]?u[s].add(o):u[s]=new Set([o]),function(){var t=u[s];t&&(t.delete(o),0===t.size&&delete u[s])}}function Wt(i){!0===i.isolateGlobalState&&function(){if(($i.pendingReactions.length||$i.inBatch||$i.isRunningReactions)&&t(36),zi=!0,Xi){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),$i=new Hi}}();var r,e,u=i.useProxies,o=i.enforceActions;if(void 0!==u&&($i.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&($i.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;$i.enforceActions=s,$i.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&($i[t]=!!i[t])})),$i.allowStateReads=!$i.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=Yi,Yi=function(t){return r((function(){return e(t)}))})}function qt(t,n,i,r){var e=di(n);return Yn((function(){var n=Dn(t,r)[yi];vi(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Ut(t,n){return Ft(zn(t,n))}function Ft(t){var n,i={name:t.tt};return t.D&&t.D.length>0&&(i.dependencies=(n=t.D,Array.from(new Set(n))).map(Ft)),i}function Ht(t,n){return Xt(zn(t,n))}function Xt(t){var n={name:t.tt};return function(t){return t.H&&t.H.size>0}(t)&&(n.observers=Array.from(function(t){return t.H}(t)).map(Xt)),n}function zt(){this.message="FLOW_CANCELLED"}function $t(t){return t instanceof zt}function Jt(t){e(t.cancel)&&t.cancel()}function Yt(t){return t}function Qt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Zt(t,n,i){var r;return gr(t)||Bn(t)||Bi(t)?r=$n(t):Wn(t)&&(r=$n(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}}function tn(t,n,i){return e(i)?function(t,n,i){return $n(t,n).nt(i)}(t,n,i):function(t,n){return $n(t).nt(n)}(t,n)}function nn(t,n){if(void 0===n)return qi(t);if(!1===Wn(t))return!1;if(!t[yi].O.has(n))return!1;var i=zn(t,n);return qi(i)}function rn(t){return nn(t)}function en(t,n){return nn(t,n)}function un(t,n){return!!t&&(void 0!==n?!!Wn(t)&&t[yi].O.has(n):Wn(t)||!!t[yi]||mi(t)||Qi(t)||qi(t))}function on(t){return un(t)}function sn(t,n){return un(t,n)}function an(n){return Wn(n)?n[yi].it():gr(n)||Sr(n)?Array.from(n.keys()):Bn(n)?n.map((function(t,n){return n})):void t(5)}function fn(n){return Wn(n)?an(n).map((function(t){return n[t]})):gr(n)?an(n).map((function(t){return n.get(t)})):Sr(n)?Array.from(n.values()):Bn(n)?n.slice():void t(6)}function cn(n){return Wn(n)?an(n).map((function(t){return[t,n[t]]})):gr(n)?an(n).map((function(t){return[t,n.get(t)]})):Sr(n)?Array.from(n.entries()):Bn(n)?n.map((function(t,n){return[n,t]})):void t(7)}function hn(n,i,r){if(2!==arguments.length||Sr(n))Wn(n)?n[yi].rt(i,r):gr(n)?n.set(i,r):Sr(n)?n.add(i):Bn(n)?("number"!=typeof i&&(i=parseInt(i,10)),i<0&&t("Invalid index: '"+i+"'"),St(),i>=n.length&&(n.length=i+1),n[i]=r,xt()):t(8);else{St();var e=i;try{for(var u in e)hn(n,u,e[u])}finally{xt()}}}function ln(n,i){Wn(n)?n[yi].et(i):gr(n)||Sr(n)?n.delete(i):Bn(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)}function vn(n,i){return Wn(n)?n[yi].ut(i):gr(n)||Sr(n)?n.has(i):Bn(n)?i>=0&&i<n.length:void t(10)}function dn(n,i){if(vn(n,i))return Wn(n)?n[yi].ot(i):gr(n)?n.get(i):Bn(n)?n[i]:void t(11)}function bn(n,i,r){if(Wn(n))return n[yi].l(i,r);t(39)}function yn(n){if(Wn(n))return n[yi].st();t(38)}function pn(t,n,i,r){return e(i)?function(t,n,i,r){return $n(t,n).ft(i,r)}(t,n,i,r):function(t,n,i){return $n(t).ft(n,i)}(t,n,i)}function mn(t,n,i){return t.set(n,i),i}function wn(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!on(n))return n;if(Bi(n)||qi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(Bn(n)){var r=mn(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Sr(n)){var e=mn(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(gr(n)){var u=mn(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=mn(i,n,{});return yn(n).forEach((function(r){oi.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)}function On(){}function jn(t,n){void 0===n&&(n=void 0),St();try{return t.apply(n)}finally{xt()}}function gn(t,n,i){return 1===arguments.length||n&&"object"==typeof n?An(t,n):_n(t,n,i||{})}function _n(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[yi].isDisposed){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=it("When-effect",n),o=It((function(n){ot(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function An(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=_n(t,i,g({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function Sn(t){return t[yi]}function xn(t){return void 0!==t.ct&&t.ct.length>0}function kn(t,n){var i=t.ct||(t.ct=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function Rn(n,i){var r=bt();try{for(var e=[].concat(n.ct||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&t(14),i);u++);return i}finally{yt(r)}}function En(t){return void 0!==t.ht&&t.ht.length>0}function Mn(t,n){var i=t.ht||(t.ht=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function Vn(t,n){var i=bt(),r=t.ht;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);yt(i)}}function Nn(t,n,i){return Yn((function(){var r=Dn(t,i)[yi];null!=n||(n=function(t){return b(t,bi)||f(t,bi,g({},t[bi])),t[bi]}(t)),vi(n).forEach((function(t){return r.o(t,n[t])}))})),t}function Tn(t,n,i){return s(t)?qt(t,t,n,i):(Yn((function(){var r=Dn(t,i)[yi];if(!t[hr]){var e=Object.getPrototypeOf(t),u=new Set([].concat(vi(t),vi(e)));u.delete("constructor"),u.delete(yi),f(e,hr,u)}t[hr].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)}function Cn(t,n,r,e){return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i(),Yn((function(){var i=new dr(r,n,e,!1);c(i.O,yi,i);var u=new Proxy(i.O,vr);return i.v=u,t&&t.length&&i.lt(0,0,t),u}))}function Pn(t,n){"function"==typeof Array.prototype[t]&&(br[t]=n(t))}function In(t){return function(){var n=this[yi];n.vt.reportObserved();var i=n.dt(n.O);return i[t].apply(i,arguments)}}function Ln(t){return function(n,i){var r=this,e=this[yi];return e.vt.reportObserved(),e.dt(e.O)[t]((function(t,e){return n.call(i,t,e,r)}))}}function Kn(t){return function(){var n=this,i=this[yi];i.vt.reportObserved();var r=i.dt(i.O),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function Bn(t){return o(t)&&mr(t[yi])}function Dn(t,n){var i;if(b(t,yi))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new kr(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:$(t):void 0}(n));return f(t,yi,e),t}function Gn(t){return xr[t]||(xr[t]={get:function(){return this[yi].j(t)},set:function(n){return this[yi]._(t,n)}})}function Wn(t){return!!o(t)&&Rr(t[yi])}function qn(t,n,i){var r;null==(r=t.h[bi])||delete r[i]}function Un(t){return{enumerable:!1,configurable:!0,get:function(){return this[yi].ot(t)},set:function(n){this[yi].rt(t,n)}}}function Fn(t){ui(Tr.prototype,""+t,Un(t))}function Hn(t){if(t>Vr){for(var n=Vr;n<t+100;n++)Fn(n);Vr=t}}function Xn(t,n,i){return new Tr(t,n,i)}function zn(n,i){if("object"==typeof n&&null!==n){if(Bn(n))return void 0!==i&&t(23),n[yi].vt;if(Sr(n))return n.vt;if(gr(n)){if(void 0===i)return n.bt;var r=n.yt.get(i)||n.pt.get(i);return r||t(25,i,Jn(n)),r}if(Wn(n)){if(!i)return t(26);var u=n[yi].O.get(i);return u||t(27,i,Jn(n)),u}if(mi(n)||qi(n)||Qi(n))return n}else if(e(n)&&Qi(n[yi]))return n[yi];t(28)}function $n(n,i){return n||t(29),void 0!==i?$n(zn(n,i)):mi(n)||qi(n)||Qi(n)||gr(n)||Sr(n)?n:n[yi]?n[yi]:void t(24,n)}function Jn(t,n){var i;if(void 0!==n)i=zn(t,n);else{if(Pt(t))return t.name;i=Wn(t)||gr(t)||Sr(t)?$n(t):zn(t)}return i.tt}function Yn(t){var n=bt(),i=st(!0);St();try{return t()}finally{xt(),at(i),yt(n)}}function Qn(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,u,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var a=Cr.call(n);if(a!==Cr.call(i))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Zn(n),i=Zn(i);var f="[object Array]"===a;if(!f){if("object"!=typeof n||"object"!=typeof i)return!1;var c=n.constructor,h=i.constructor;if(c!==h&&!(e(c)&&c instanceof c&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var l=(u=u||[]).length;l--;)if(u[l]===n)return o[l]===i;if(u.push(n),o.push(i),f){if((l=n.length)!==i.length)return!1;for(;l--;)if(!t(n[l],i[l],r-1,u,o))return!1}else{var v,d=Object.keys(n);if(l=d.length,Object.keys(i).length!==l)return!1;for(;l--;)if(!b(i,v=d[l])||!t(n[v],i[v],r-1,u,o))return!1}return u.pop(),o.pop(),!0}(t,n,i)}function Zn(t){return Bn(t)?t.slice():l(t)||gr(t)||v(t)||Sr(t)?Array.from(t.entries()):t}function ti(t){return t[Symbol.iterator]=ni,t}function ni(){return this}var ii={},ri=Object.assign,ei=Object.getOwnPropertyDescriptor,ui=Object.defineProperty,oi=Object.prototype,si=[];Object.freeze(si);var ai={};Object.freeze(ai);var fi="undefined"!=typeof Proxy,ci=Object.toString(),hi=function(){},li=void 0!==Object.getOwnPropertySymbols,vi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:li?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,di=Object.getOwnPropertyDescriptors||function(t){var n={};return vi(t).forEach((function(i){n[i]=ei(t,i)})),n},bi=Symbol("mobx-stored-annotations"),yi=Symbol("mobx administration"),pi=function(){function t(t){void 0===t&&(t="Atom"),this.tt=void 0,this.wt=0,this.H=new Set,this.$=0,this.F=Gi.L,this.onBOL=void 0,this.onBUOL=void 0,this.tt=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return kt(this)},n.reportChanged=function(){St(),Rt(this),xt()},n.toString=function(){return this.tt},O(t,[{key:"isBeingObserved",get:function(){return y(this.wt,t.Ot)},set:function(n){this.wt=p(this.wt,t.Ot,n)}},{key:"isPendingUnobservation",get:function(){return y(this.wt,t.jt)},set:function(n){this.wt=p(this.wt,t.jt,n)}},{key:"diffValue",get:function(){return y(this.wt,t.gt)?1:0},set:function(n){this.wt=p(this.wt,t.gt,1===n)}}])}();pi.Ot=1,pi.jt=2,pi.gt=4;var mi=h("Atom",pi),wi={identity:function(t,n){return t===n},structural:function(t,n){return Qn(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return Qn(t,n,1)}},Oi=S({i:"override",o:function(){return 0},s:function(){t("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),ji=$(),gi={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(gi);var _i=F("observable"),Ai=F("observable.ref",{enhancer:M}),Si=F("observable.shallow",{enhancer:function(t,n,i){return null==t||Wn(t)||Bn(t)||gr(t)||Sr(t)?t:Array.isArray(t)?Mi.array(t,{name:i,deep:!1}):s(t)?Mi.object(t,void 0,{name:i,deep:!1}):l(t)?Mi.map(t,{name:i,deep:!1}):v(t)?Mi.set(t,{name:i,deep:!1}):void 0}}),xi=F("observable.struct",{enhancer:function(t,n){return Qn(t,n)?n:t}}),ki=S(_i);ri(nt,ki);var Ri,Ei,Mi=ri(nt,{box:function(t,n){var i=Z(n);return new Ki(t,tt(i),i.name,!0,i.equals)},array:function(t,n){var i=Z(n);return(!1===$i.useProxies||!1===i.proxy?Xn:Cn)(t,tt(i),i.name)},map:function(t,n){var i=Z(n);return new jr(t,tt(i),i.name)},set:function(t,n){var i=Z(n);return new Ar(t,tt(i),i.name)},object:function(t,n,r){return Yn((function(){return qt(!1===$i.useProxies||!1===(null==r?void 0:r.proxy)?Dn({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=Dn(t,n))[yi]).v)?e:r.v=new Proxy(t,cr)}({},r),t,n)}))},ref:S(Ai),shallow:S(Si),deep:ki,struct:S(xi)}),Vi=G("computed"),Ni=G("computed.struct",{equals:wi.structural}),Ti=function(t,n){if(k(n))return Vi.t(t,n);if(u(n))return x(t,n,Vi);if(s(t))return S(G("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new Di(i)};Object.assign(Ti,Vi),Ti.struct=S(Ni);var Ci=0,Pi=1,Ii=null!=(Ri=null==(Ei=ei((function(){}),"name"))?void 0:Ei.configurable)&&Ri,Li={value:"action",configurable:!0,writable:!1,enumerable:!1},Ki=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=wi.default),(o=t.call(this,r)||this).enhancer=void 0,o.tt=void 0,o.equals=void 0,o._t=!1,o.ct=void 0,o.ht=void 0,o.At=void 0,o.dehancer=void 0,o.enhancer=i,o.tt=r,o.equals=u,o.At=i(n,void 0,r),o}_(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.St(t))!==$i.UNCHANGED&&this.xt(t)},i.St=function(t){if(xn(this)){var n=Rn(this,{object:this,type:lr,newValue:t});if(!n)return $i.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.At,this.tt),this.equals(this.At,t)?$i.UNCHANGED:t},i.xt=function(t){var n=this.At;this.At=t,this.reportChanged(),En(this)&&Vn(this,{type:lr,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.At)},i.nt=function(t){return kn(this,t)},i.ft=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.tt,object:this,type:lr,newValue:this.At,oldValue:void 0}),Mn(this,t)},i.raw=function(){return this.At},i.toJSON=function(){return this.get()},i.toString=function(){return this.tt+"["+this.At+"]"},i.valueOf=function(){return d(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},n}(pi),Bi=h("ObservableValue",Ki),Di=function(){function n(n){this.P=Gi.L,this.D=[],this.G=null,this.H=new Set,this.W=0,this.$=0,this.F=Gi.I,this.q=0,this.At=new Ui(null),this.tt=void 0,this.kt=void 0,this.wt=0,this.derivation=void 0,this.Rt=void 0,this.Et=Wi.NONE,this.Mt=void 0,this.Vt=void 0,this.Nt=void 0,this.Tt=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.tt=n.name||"ComputedValue",n.set&&(this.Rt=it("ComputedValue-setter",n.set)),this.Vt=n.equals||(n.compareStructural||n.struct?wi.structural:wi.default),this.Mt=n.context,this.Nt=n.requiresReaction,this.Tt=!!n.keepAlive}var i=n.prototype;return i.U=function(){!function(t){t.F===Gi.I&&(t.F=Gi.B,t.H.forEach((function(t){t.P===Gi.I&&(t.P=Gi.B,t.U())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.isComputing&&t(32,this.tt,this.derivation),0!==$i.inBatch||0!==this.H.size||this.Tt){if(kt(this),ct(this)){var n=$i.trackingContext;this.Tt&&!n&&($i.trackingContext=this),this.trackAndCompute()&&function(t){t.F!==Gi.K&&(t.F=Gi.K,t.H.forEach((function(n){n.P===Gi.B?n.P=Gi.K:n.P===Gi.I&&(t.F=Gi.I)})))}(this),$i.trackingContext=n}}else ct(this)&&(this.Ct(),St(),this.At=this.Pt(!1),xt());var i=this.At;if(ft(i))throw i.cause;return i},i.set=function(n){if(this.Rt){this.isRunningSetter&&t(33,this.tt),this.isRunningSetter=!0;try{this.Rt.call(this.Mt,n)}finally{this.isRunningSetter=!1}}else t(34,this.tt)},i.trackAndCompute=function(){var t=this.At,n=this.P===Gi.L,i=this.Pt(!0),r=n||ft(t)||ft(i)||!this.Vt(t,i);return r&&(this.At=i),r},i.Pt=function(t){this.isComputing=!0;var n,i=st(!1);if(t)n=lt(this,this.derivation,this.Mt);else if(!0===$i.disableErrorBoundaries)n=this.derivation.call(this.Mt);else try{n=this.derivation.call(this.Mt)}catch(t){n=new Ui(t)}return at(i),this.isComputing=!1,n},i.X=function(){this.Tt||(vt(this),this.At=void 0)},i.ft=function(t,n){var i=this,r=!0,e=void 0;return It((function(){var u=i.get();if(!r||n){var o=bt();t({observableKind:"computed",debugObjectName:i.tt,type:lr,object:i,newValue:u,oldValue:e}),yt(o)}r=!1,e=u}))},i.Ct=function(){},i.toString=function(){return this.tt+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},O(n,[{key:"isComputing",get:function(){return y(this.wt,n.It)},set:function(t){this.wt=p(this.wt,n.It,t)}},{key:"isRunningSetter",get:function(){return y(this.wt,n.Lt)},set:function(t){this.wt=p(this.wt,n.Lt,t)}},{key:"isBeingObserved",get:function(){return y(this.wt,n.Ot)},set:function(t){this.wt=p(this.wt,n.Ot,t)}},{key:"isPendingUnobservation",get:function(){return y(this.wt,n.jt)},set:function(t){this.wt=p(this.wt,n.jt,t)}},{key:"diffValue",get:function(){return y(this.wt,n.gt)?1:0},set:function(t){this.wt=p(this.wt,n.gt,1===t)}}])}();Di.It=1,Di.Lt=2,Di.Ot=4,Di.jt=8,Di.gt=16;var Gi,Wi,qi=h("ComputedValue",Di);!function(t){t[t.L=-1]="NOT_TRACKING_",t[t.I=0]="UP_TO_DATE_",t[t.B=1]="POSSIBLY_STALE_",t[t.K=2]="STALE_"}(Gi||(Gi={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(Wi||(Wi={}));var Ui=function(t){this.cause=void 0,this.cause=t},Fi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],Hi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Xi=!0,zi=!1,$i=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(Xi=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new Hi).version&&(Xi=!1),Xi?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new Hi):(setTimeout((function(){zi||t(35)}),1),new Hi)}(),Ji=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.tt=void 0,this.Kt=void 0,this.Bt=void 0,this.Dt=void 0,this.D=[],this.G=[],this.P=Gi.L,this.W=0,this.q=0,this.wt=0,this.Et=Wi.NONE,this.tt=t,this.Kt=n,this.Bt=i,this.Dt=r}var n=t.prototype;return n.U=function(){this.Y()},n.Y=function(){this.isScheduled||(this.isScheduled=!0,$i.pendingReactions.push(this),Mt())},n.J=function(){if(!this.isDisposed){St(),this.isScheduled=!1;var t=$i.trackingContext;if($i.trackingContext=this,ct(this)){this.isTrackPending=!0;try{this.Kt()}catch(t){this.Gt(t)}}$i.trackingContext=t,xt()}},n.track=function(t){if(!this.isDisposed){St(),this.isRunning=!0;var n=$i.trackingContext;$i.trackingContext=this;var i=lt(this,t,void 0);$i.trackingContext=n,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&vt(this),ft(i)&&this.Gt(i.cause),xt()}},n.Gt=function(t){var n=this;if(this.Bt)this.Bt(t,this);else{if($i.disableErrorBoundaries)throw t;$i.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),$i.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(St(),vt(this),xt()))},n.Z=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[yi]=this,i},n.toString=function(){return"Reaction["+this.tt+"]"},n.trace=function(){},O(t,[{key:"isDisposed",get:function(){return y(this.wt,t.Wt)},set:function(n){this.wt=p(this.wt,t.Wt,n)}},{key:"isScheduled",get:function(){return y(this.wt,t.qt)},set:function(n){this.wt=p(this.wt,t.qt,n)}},{key:"isTrackPending",get:function(){return y(this.wt,t.Ut)},set:function(n){this.wt=p(this.wt,t.Ut,n)}},{key:"isRunning",get:function(){return y(this.wt,t.Ft)},set:function(n){this.wt=p(this.wt,t.Ft,n)}},{key:"diffValue",get:function(){return y(this.wt,t.gt)?1:0},set:function(n){this.wt=p(this.wt,t.gt,1===n)}}])}();Ji.Wt=1,Ji.qt=2,Ji.Ut=4,Ji.Ft=8,Ji.gt=16;var Yi=function(t){return t()},Qi=h("Reaction",Ji),Zi=V("action"),tr=V("action.bound",{bound:!0}),nr=V("autoAction",{autoAction:!0}),ir=V("autoAction.bound",{autoAction:!0,bound:!0}),rr=Tt(!1);Object.assign(rr,Zi);var er=Tt(!0);Object.assign(er,nr),rr.bound=S(tr),er.bound=S(ir);var ur=function(t){return t()},or=0;zt.prototype=Object.create(Error.prototype);var sr=I("flow"),ar=I("flow.bound",{bound:!0}),fr=Object.assign((function(t,n){if(k(n))return sr.t(t,n);if(u(n))return x(t,n,sr);var i=t,r=i.name||"<unnamed flow>",o=function(){var t,n=this,u=arguments,o=++or,s=rr(r+" - runid: "+o+" - init",i).apply(n,u),a=void 0,f=new Promise((function(n,i){function u(t){var n;a=void 0;try{n=rr(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}c(n)}function f(t){var n;a=void 0;try{n=rr(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}c(n)}function c(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(a=Promise.resolve(t.value)).then(u,f);t.then(c,i)}var h=0;t=i,u(void 0)}));return f.cancel=rr(r+" - runid: "+o+" - cancel",(function(){try{a&&Jt(a);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(hi,hi),Jt(i),t(new zt)}catch(n){t(n)}})),f};return o.isMobXFlow=!0,o}),sr);fr.bound=S(ar);var cr={has:function(t,n){return Sn(t).ut(n)},get:function(t,n){return Sn(t).ot(n)},set:function(t,n,i){var r;return!!u(n)&&(null==(r=Sn(t).rt(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!u(n)&&(null==(i=Sn(t).et(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=Sn(t).l(n,i))||r},ownKeys:function(t){return Sn(t).st()},preventExtensions:function(){t(13)}},hr=Symbol("mobx-keys"),lr="update",vr={get:function(t,n){var i=t[yi];return n===yi?i:"length"===n?i.Ht():"string"!=typeof n||isNaN(n)?b(br,n)?br[n]:t[n]:i.ot(parseInt(n))},set:function(t,n,i){var r=t[yi];return"length"===n&&r.Xt(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.rt(parseInt(n),i),!0},preventExtensions:function(){t(15)}},dr=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.zt=void 0,this.$t=void 0,this.vt=void 0,this.O=[],this.ct=void 0,this.ht=void 0,this.Jt=void 0,this.dehancer=void 0,this.v=void 0,this.Yt=0,this.zt=i,this.$t=r,this.vt=new pi(t),this.Jt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.dt=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.nt=function(t){return kn(this,t)},i.ft=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.v,debugObjectName:this.vt.tt,type:"splice",index:0,added:this.O.slice(),addedCount:this.O.length,removed:[],removedCount:0}),Mn(this,t)},i.Ht=function(){return this.vt.reportObserved(),this.O.length},i.Xt=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.O.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.lt(i,0,r)}else this.lt(n,i-n)},i.Zt=function(n,i){n!==this.Yt&&t(16),this.Yt+=i,this.$t&&i>0&&Hn(n+i+1)},i.lt=function(t,n,i){var r=this,e=this.O.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=si),xn(this)){var u=Rn(this,{object:this.v,type:"splice",index:t,removedCount:n,added:i});if(!u)return si;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.Jt(t,void 0)})),this.$t){var o=i.length-n;this.Zt(e,o)}var s=this.tn(t,n,i);return 0===n&&0===i.length||this.nn(t,i,s),this.dt(s)},i.tn=function(t,n,i){var r;if(i.length<1e4)return(r=this.O).splice.apply(r,[t,n].concat(i));var e=this.O.slice(t,t+n),u=this.O.slice(t+n);this.O.length+=i.length-n;for(var o=0;o<i.length;o++)this.O[t+o]=i[o];for(var s=0;s<u.length;s++)this.O[t+i.length+s]=u[s];return e},i.in=function(t,n,i){var r=!this.zt&&!1,e=En(this),u=e||r?{observableKind:"array",object:this.v,type:lr,debugObjectName:this.vt.tt,index:t,newValue:n,oldValue:i}:null;this.vt.reportChanged(),e&&Vn(this,u)},i.nn=function(t,n,i){var r=!this.zt&&!1,e=En(this),u=e||r?{observableKind:"array",object:this.v,debugObjectName:this.vt.tt,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.vt.reportChanged(),e&&Vn(this,u)},i.ot=function(t){if(!(this.$t&&t>=this.O.length))return this.vt.reportObserved(),this.Qt(this.O[t]);console.warn("[mobx] Out of bounds read: "+t)},i.rt=function(n,i){var r=this.O;if(this.$t&&n>r.length&&t(17,n,r.length),n<r.length){var e=r[n];if(xn(this)){var u=Rn(this,{type:lr,object:this.v,index:n,newValue:i});if(!u)return;i=u.newValue}(i=this.Jt(i,e))!==e&&(r[n]=i,this.in(n,i,e))}else{for(var o=new Array(n+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.lt(r.length,0,o)}},n}(),br={clear:function(){return this.splice(0)},replace:function(t){var n=this[yi];return n.lt(0,n.O.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[yi];switch(arguments.length){case 0:return[];case 1:return u.lt(t);case 2:return u.lt(t,n)}return u.lt(t,n,r)},spliceWithArray:function(t,n,i){return this[yi].lt(t,n,i)},push:function(){for(var t=this[yi],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.lt(t.O.length,0,i),t.O.length},pop:function(){return this.splice(Math.max(this[yi].O.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[yi],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.lt(0,0,i),t.O.length},reverse:function(){return $i.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){$i.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[yi],i=n.dt(n.O).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};Pn("at",In),Pn("concat",In),Pn("flat",In),Pn("includes",In),Pn("indexOf",In),Pn("join",In),Pn("lastIndexOf",In),Pn("slice",In),Pn("toString",In),Pn("toLocaleString",In),Pn("toSorted",In),Pn("toSpliced",In),Pn("with",In),Pn("every",Ln),Pn("filter",Ln),Pn("find",Ln),Pn("findIndex",Ln),Pn("findLast",Ln),Pn("findLastIndex",Ln),Pn("flatMap",Ln),Pn("forEach",Ln),Pn("map",Ln),Pn("some",Ln),Pn("toReversed",Ln),Pn("reduce",Kn),Pn("reduceRight",Kn);var yr,pr,mr=h("ObservableArrayAdministration",dr),wr={},Or="add",jr=function(){function n(n,i,r){var u=this;void 0===i&&(i=E),void 0===r&&(r="ObservableMap"),this.Jt=void 0,this.tt=void 0,this[yi]=wr,this.yt=void 0,this.pt=void 0,this.bt=void 0,this.ct=void 0,this.ht=void 0,this.dehancer=void 0,this.Jt=i,this.tt=r,e(Map)||t(18),Yn((function(){u.bt=R("ObservableMap.keys()"),u.yt=new Map,u.pt=new Map,n&&u.merge(n)}))}var i=n.prototype;return i.ut=function(t){return this.yt.has(t)},i.has=function(t){var n=this;if(!$i.trackingDerivation)return this.ut(t);var i=this.pt.get(t);if(!i){var r=i=new Ki(this.ut(t),M,"ObservableMap.key?",!1);this.pt.set(t,r),Dt(r,(function(){return n.pt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.ut(t);if(xn(this)){var r=Rn(this,{type:i?lr:Or,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.rn(t,n):this.en(t,n),this},i.delete=function(t){var n=this;if(xn(this)&&!Rn(this,{type:"delete",object:this,name:t}))return!1;if(this.ut(t)){var i=En(this),r=i?{observableKind:"map",debugObjectName:this.tt,type:"delete",object:this,oldValue:this.yt.get(t).At,name:t}:null;return jn((function(){var i;n.bt.reportChanged(),null==(i=n.pt.get(t))||i.xt(!1),n.yt.get(t).xt(void 0),n.yt.delete(t)})),i&&Vn(this,r),!0}return!1},i.rn=function(t,n){var i=this.yt.get(t);if((n=i.St(n))!==$i.UNCHANGED){var r=En(this),e=r?{observableKind:"map",debugObjectName:this.tt,type:lr,object:this,oldValue:i.At,name:t,newValue:n}:null;i.xt(n),r&&Vn(this,e)}},i.en=function(t,n){var i=this;jn((function(){var r,e=new Ki(n,i.Jt,"ObservableMap.key",!1);i.yt.set(t,e),n=e.At,null==(r=i.pt.get(t))||r.xt(!0),i.bt.reportChanged()}));var r=En(this);r&&Vn(this,r?{observableKind:"map",debugObjectName:this.tt,type:Or,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Qt(this.yt.get(t).get()):this.Qt(void 0)},i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.bt.reportObserved(),this.yt.keys()},i.values=function(){var t=this,n=this.keys();return ti({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return ti({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Symbol.iterator]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=j(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return gr(n)&&(n=new Map(n)),jn((function(){var r,e;s(n)?function(t){var n=Object.keys(t);if(!li)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return oi.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):l(n)?(r=Object.getPrototypeOf(n),e=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(e)&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;jn((function(){dt((function(){for(var n,i=j(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return jn((function(){for(var r,e=function(n){if(l(n)||gr(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),u=new Map,o=!1,a=j(i.yt.keys());!(r=a()).done;){var f=r.value;if(!e.has(f))if(i.delete(f))o=!0;else{var c=i.yt.get(f);u.set(f,c)}}for(var h,v=j(e.entries());!(h=v()).done;){var d=h.value,b=d[0],y=d[1],p=i.yt.has(b);if(i.set(b,y),i.yt.has(b)){var m=i.yt.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.yt.size!==u.size)i.bt.reportChanged();else for(var w=i.yt.keys(),O=u.keys(),g=w.next(),_=O.next();!g.done;){if(g.value!==_.value){i.bt.reportChanged();break}g=w.next(),_=O.next()}i.yt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.ft=function(t){return Mn(this,t)},i.nt=function(t){return kn(this,t)},O(n,[{key:"size",get:function(){return this.bt.reportObserved(),this.yt.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),gr=h("ObservableMap",jr),_r={},Ar=function(){function n(n,i,r){var u=this;void 0===i&&(i=E),void 0===r&&(r="ObservableSet"),this.tt=void 0,this[yi]=_r,this.yt=new Set,this.vt=void 0,this.ht=void 0,this.ct=void 0,this.dehancer=void 0,this.Jt=void 0,this.tt=r,e(Set)||t(22),this.Jt=function(t,n){return i(t,n,r)},Yn((function(){u.vt=R(u.tt),n&&u.replace(n)}))}var i=n.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;jn((function(){dt((function(){for(var n,i=j(t.yt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=j(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(xn(this)&&!Rn(this,{type:Or,object:this,newValue:t}))return this;if(!this.has(t)){jn((function(){n.yt.add(n.Jt(t,void 0)),n.vt.reportChanged()}));var i=En(this);i&&Vn(this,i?{observableKind:"set",debugObjectName:this.tt,type:Or,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(xn(this)&&!Rn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=En(this),r=i?{observableKind:"set",debugObjectName:this.tt,type:"delete",object:this,oldValue:t}:null;return jn((function(){n.vt.reportChanged(),n.yt.delete(t)})),i&&Vn(this,r),!0}return!1},i.has=function(t){return this.vt.reportObserved(),this.yt.has(this.Qt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return ti({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.vt.reportObserved();var t=this,n=0,i=Array.from(this.yt.values());return ti({next:function(){return n<i.length?{value:t.Qt(i[n++]),done:!1}:{done:!0}}})},i.intersection=function(t){return v(t)?t.intersection(this):new Set(this).intersection(t)},i.union=function(t){return v(t)?t.union(this):new Set(this).union(t)},i.difference=function(t){return new Set(this).difference(t)},i.symmetricDifference=function(t){return v(t)?t.symmetricDifference(this):new Set(this).symmetricDifference(t)},i.isSubsetOf=function(t){return new Set(this).isSubsetOf(t)},i.isSupersetOf=function(t){return new Set(this).isSupersetOf(t)},i.isDisjointFrom=function(t){return v(t)?t.isDisjointFrom(this):new Set(this).isDisjointFrom(t)},i.replace=function(n){var i=this;return Sr(n)&&(n=new Set(n)),jn((function(){Array.isArray(n)||v(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.ft=function(t){return Mn(this,t)},i.nt=function(t){return kn(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Symbol.iterator]=function(){return this.values()},O(n,[{key:"size",get:function(){return this.vt.reportObserved(),this.yt.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Sr=h("ObservableSet",Ar),xr=Object.create(null),kr=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=ji),this.h=void 0,this.O=void 0,this.tt=void 0,this.un=void 0,this.bt=void 0,this.ht=void 0,this.ct=void 0,this.v=void 0,this.p=void 0,this.on=void 0,this.sn=void 0,this.h=t,this.O=n,this.tt=i,this.un=r,this.bt=new pi("ObservableObject.keys"),this.p=s(this.h)}var i=n.prototype;return i.j=function(t){return this.O.get(t).get()},i._=function(t,n){var i=this.O.get(t);if(i instanceof Di)return i.set(n),!0;if(xn(this)){var r=Rn(this,{type:lr,object:this.v||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.St(n))!==$i.UNCHANGED){var e=En(this),u=e?{type:lr,observableKind:"object",debugObjectName:this.tt,object:this.v||this.h,oldValue:i.At,name:t,newValue:n}:null;i.xt(n),e&&Vn(this,u)}return!0},i.ot=function(t){return $i.trackingDerivation&&!b(this.h,t)&&this.ut(t),this.h[t]},i.rt=function(t,n,i){return void 0===i&&(i=!1),b(this.h,t)?this.O.has(t)?this._(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.un,i)},i.ut=function(t){if(!$i.trackingDerivation)return t in this.h;this.sn||(this.sn=new Map);var n=this.sn.get(t);return n||(n=new Ki(t in this.h,M,"ObservableObject.key?",!1),this.sn.set(t,n)),n.get()},i.o=function(n,i){if(!0===i&&(i=this.un),!1!==i){if(!(n in this.h)){var r;if(null!=(r=this.h[bi])&&r[n])return;t(1,i.i,this.tt+"."+n.toString())}for(var e=this.h;e&&e!==oi;){var u=ei(e,n);if(u){var o=i.o(this,n,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}qn(this,0,n)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.un),!1===i)return this.l(t,n,r);var e=i.s(this,t,n,r);return e&&qn(this,0,t),e},i.l=function(t,n,i){void 0===i&&(i=!1);try{St();var r=this.et(t);if(!r)return r;if(xn(this)){var e=Rn(this,{object:this.v||this.h,name:t,type:Or,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=g({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else ui(this.h,t,n);this.an(t,n.value)}finally{xt()}return!0},i.g=function(t,n,i,r){void 0===r&&(r=!1);try{St();var e=this.et(t);if(!e)return e;if(xn(this)){var u=Rn(this,{object:this.v||this.h,name:t,type:Or,newValue:n});if(!u)return null;n=u.newValue}var o=Gn(t),s={configurable:!$i.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else ui(this.h,t,s);var a=new Ki(n,i,"ObservableObject.key",!1);this.O.set(t,a),this.an(t,a.At)}finally{xt()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{St();var r=this.et(t);if(!r)return r;if(xn(this)&&!Rn(this,{object:this.v||this.h,name:t,type:Or,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.v||this.h;var e=Gn(t),u={configurable:!$i.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else ui(this.h,t,u);this.O.set(t,new Di(n)),this.an(t,void 0)}finally{xt()}return!0},i.et=function(t,n){if(void 0===n&&(n=!1),!b(this.h,t))return!0;if(xn(this)&&!Rn(this,{object:this.v||this.h,name:t,type:"remove"}))return null;try{var i;St();var r,e=En(this),u=this.O.get(t),o=void 0;if(!u&&e&&(o=null==(r=ei(this.h,t))?void 0:r.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];u&&(this.O.delete(t),u instanceof Ki&&(o=u.At),Rt(u)),this.bt.reportChanged(),null==(i=this.sn)||null==(i=i.get(t))||i.set(t in this.h),e&&e&&Vn(this,{type:"remove",observableKind:"object",object:this.v||this.h,debugObjectName:this.tt,oldValue:o,name:t})}finally{xt()}return!0},i.ft=function(t){return Mn(this,t)},i.nt=function(t){return kn(this,t)},i.an=function(t,n){var i,r=En(this);r&&r&&Vn(this,r?{type:Or,observableKind:"object",debugObjectName:this.tt,object:this.v||this.h,name:t,newValue:n}:null),null==(i=this.sn)||null==(i=i.get(t))||i.set(!0),this.bt.reportChanged()},i.st=function(){return this.bt.reportObserved(),vi(this.h)},i.it=function(){return this.bt.reportObserved(),Object.keys(this.h)},n}(),Rr=h("ObservableObjectAdministration",kr),Er=Un(0),Mr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),Vr=0,Nr=function(){};yr=Nr,pr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(yr.prototype,pr):void 0!==yr.prototype.__proto__?yr.prototype.__proto__=pr:yr.prototype=pr;var Tr=function(t){function n(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,Yn((function(){var t=new dr(r,i,e,!0);t.v=u,c(u,yi,t),n&&n.length&&u.spliceWithArray(0,0,n),Mr&&Object.defineProperty(u,"0",Er)})),u}_(n,t);var i=n.prototype;return i.concat=function(){this[yi].vt.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return Bn(t)?t.slice():t})))},i[Symbol.iterator]=function(){var t=this,n=0;return ti({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},O(n,[{key:"length",get:function(){return this[yi].Ht()},set:function(t){this[yi].Xt(t)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Nr);Object.entries(br).forEach((function(t){var n=t[0];"concat"!==n&&f(Tr.prototype,n,t[1])})),Hn(1e3);var Cr=oi.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Nt,extras:{getDebugName:Jn},$mobx:yi});export{yi as $mobx,zt as FlowCancellationError,jr as ObservableMap,Ar as ObservableSet,Ji as Reaction,ot as _allowStateChanges,Ct as _allowStateChangesInsideComputed,mt as _allowStateReadsEnd,pt as _allowStateReadsStart,er as _autoAction,ut as _endAction,$n as _getAdministration,Ot as _getGlobalState,Zt as _interceptReads,ht as _isComputingDerivation,jt as _resetGlobalState,et as _startAction,rr as action,It as autorun,wi as comparer,Ti as computed,Wt as configure,R as createAtom,bn as defineProperty,cn as entries,qt as extendObservable,fr as flow,Yt as flowResult,dn as get,zn as getAtom,Jn as getDebugName,Ut as getDependencyTree,Ht as getObserverTree,vn as has,tn as intercept,Pt as isAction,Bi as isBoxedObservable,rn as isComputed,en as isComputedProp,Qt as isFlow,$t as isFlowCancellationError,on as isObservable,Bn as isObservableArray,gr as isObservableMap,Wn as isObservableObject,sn as isObservableProp,Sr as isObservableSet,an as keys,Tn as makeAutoObservable,Nn as makeObservable,Mi as observable,pn as observe,Bt as onBecomeObserved,Dt as onBecomeUnobserved,Et as onReactionError,Oi as override,yn as ownKeys,Kt as reaction,ln as remove,Ct as runInAction,hn as set,Nt as spy,wn as toJS,On as trace,jn as transaction,dt as untracked,fn as values,gn as when};
//# sourceMappingURL=mobx.esm.production.min.js.map

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).mobx={})}(this,(function(t){function n(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function i(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:Vn}function r(){Kn||n("Proxy not available")}function e(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function u(t){return"function"==typeof t}function o(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function s(t){return null!==t&&"object"==typeof t}function f(t){if(!s(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===Pn}function c(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function a(t,n,i){Tn(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function h(t,n,i){Tn(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function l(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return s(t)&&!0===t[i]}}function v(t){return null!=t&&"[object Map]"===Object.prototype.toString.call(t)}function d(t){return null!=t&&"[object Set]"===Object.prototype.toString.call(t)}function b(t){return null===t?null:"object"==typeof t?""+t:t}function y(t,n){return Ln.hasOwnProperty.call(t,n)}function p(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=Array(n);i<n;i++)r[i]=t[i];return r}function m(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_(r.key),r)}}function j(t,n,i){return n&&m(t.prototype,n),i&&m(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return p(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(){return(O=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(null,arguments)}function g(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,function(t,n){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}(t,n)}function _(t){var n=function(t){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof n?n:n+""}function A(t){return Object.assign((function(n,i){if(x(i))return t.t(n,i);S(n,i,t)}),t)}function S(t,n,i){y(t,Gn)||a(t,Gn,O({},t[Gn])),function(t){return"override"===t.i}(i)||(t[Gn][n]=i)}function x(t){return"object"==typeof t&&"string"==typeof t.kind}function M(t,n,i){void 0===n&&(n=Bn),void 0===i&&(i=Bn);var r=new Un(t);return n!==Bn&&Ct(r,n),i!==Bn&&It(r,i),r}function E(t,n,i){return Xt(t)?t:Array.isArray(t)?ei.array(t,{name:i}):f(t)?ei.object(t,void 0,{name:i}):v(t)?ei.map(t,{name:i}):d(t)?ei.set(t,{name:i}):"function"!=typeof t||kt(t)||Gt(t)?t:c(t)?Ki(t):ki(i,t)}function N(t){return t}function V(t,n){return{i:t,u:n,o:R,s:k,t:T}}function R(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(kt(i.value))return 1;var u=L(t,this,n,i,!1);return Tn(r,n,u),2}function k(t,n,i,r){var e=L(t,this,n,i);return t.l(n,e,r)}function T(t,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,f,c,a,h,l;if("method"==r)return kt(t)||(f=t,t=nt(null!=(c=null==(a=o.u)?void 0:a.name)?c:e.toString(),f,null!=(h=null==(l=o.u)?void 0:l.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),t;n("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){S(this,e,o)}))}function L(t,n,i,r,e){var u,o,s,f,c,a,h;void 0===e&&(e=_i.safeDescriptors);var l,v=r.value;return null!=(u=n.u)&&u.bound&&(v=v.bind(null!=(l=t.v)?l:t.h)),{value:nt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),v,null!=(f=null==(c=n.u)?void 0:c.autoAction)&&f,null!=(a=n.u)&&a.bound?null!=(h=t.v)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function C(t,n){return{i:t,u:n,o:I,s:K,t:P}}function I(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!y(t.h,n)||!Gt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Gt(i.value))return 1;var u=B(t,0,0,i,!1,!1);return Tn(r,n,u),2}function K(t,n,i,r){var e,u=B(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.l(n,u,r)}function P(t,n){var i,r=n.name,e=n.addInitializer;return Gt(t)||(t=Ki(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function B(t,n,i,r,e,u){void 0===u&&(u=_i.safeDescriptors);var o,s=r.value;return Gt(s)||(s=Ki(s)),e&&((s=s.bind(null!=(o=t.v)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function D(t,n){return{i:t,u:n,o:W,s:q,t:G}}function W(t,n,i){return null===this.s(t,n,i,!1)?0:1}function q(t,n,i,r){return t.m(n,O({},this.u,{get:i.get,set:i.set}),r)}function G(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=dn(this)[Hn],e=O({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.j.set(r,new di(e))})),function(){return this[Hn].O(r)}}function H(t,n){return{i:t,u:n,o:U,s:X,t:F}}function U(t,n,i){return null===this.s(t,n,i,!1)?0:1}function X(t,n,i,r){var e,u;return t.g(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:E,r)}function F(t,n){function i(t,n){var i,e,s=dn(t)[Hn],f=new li(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:E,"ObservableObject."+u.toString(),!1);s.j.set(u,f),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[Hn].O(u)},set:function(t){return o.has(this)||i(this,t),this[Hn]._(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function z(t){return{i:"true",u:t,o:$,s:J,t:Y}}function $(t,n,i,r){var e,u,o,s;if(i.get)return si.o(t,n,i,r);if(i.set){var f=nt(n.toString(),i.set);return r===t.h?null===t.l(n,{configurable:!_i.safeDescriptors||t.p,set:f})?0:2:(Tn(r,n,{configurable:!0,set:f}),2)}if(r!==t.h&&"function"==typeof i.value)return c(i.value)?(null!=(s=this.u)&&s.autoBind?Ki.bound:Ki).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?ki.bound:ki).o(t,n,i,r);var a,h=!1===(null==(e=this.u)?void 0:e.deep)?ei.ref:ei;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(a=t.v)?a:t.h)),h.o(t,n,i,r)}function J(t,n,i,r){var e,u,o;return i.get?si.s(t,n,i,r):i.set?t.l(n,{configurable:!_i.safeDescriptors||t.p,set:nt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.v)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?ei.ref:ei).s(t,n,i,r))}function Y(){n("'"+this.i+"' cannot be used as a decorator")}function Q(t){return t||Jn}function Z(t){return!0===t.deep?E:!1===t.deep?N:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:E;var n,i,r}function tt(t,n,i){return x(n)?Yn.t(t,n):o(n)?void S(t,n,Yn):Xt(t)?t:f(t)?ei.object(t,n,i):Array.isArray(t)?ei.array(t,n):v(t)?ei.map(t,n):d(t)?ei.set(t,n):"object"==typeof t&&null!==t?t:ei.box(t,n)}function nt(t,n,i,r){function e(){return it(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},ai&&(hi.value=t,Tn(e,"name",hi)),e}function it(t,n,i,r,e){var u=rt(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{et(u)}}function rt(t,n){var i=_i.trackingDerivation,r=!n||!i;_t();var e=_i.allowStateChanges;r&&(bt(),e=ot(!0));var u={S:r,M:i,N:e,V:pt(!0),R:!1,k:0,T:ci++,L:fi};return fi=u.T,u}function et(t){fi!==t.T&&n(30),fi=t.L,void 0!==t.A&&(_i.suppressReactionErrors=!0),st(t.N),mt(t.V),At(),t.S&&yt(t.M),_i.suppressReactionErrors=!1}function ut(t,n){var i=ot(t);try{return n()}finally{st(i)}}function ot(t){var n=_i.allowStateChanges;return _i.allowStateChanges=t,n}function st(t){_i.allowStateChanges=t}function ft(t,n){return!!(t&n)}function ct(t,n,i){return i?t|=n:t&=~n,t}function at(t){return t instanceof mi}function ht(t){switch(t.C){case bi.I:return!1;case bi.K:case bi.P:return!0;case bi.B:for(var n=pt(!0),i=bt(),r=t.D,e=r.length,u=0;u<e;u++){var o=r[u];if(pi(o)){if(_i.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return yt(i),mt(n),!0}if(t.C===bi.P)return yt(i),mt(n),!0}}return jt(t),yt(i),mt(n),!1}}function lt(t,n,i){var r=pt(!0);jt(t),t.W=new Array(0===t.q?100:t.D.length),t.G=0,t.q=++_i.runId;var e,u=_i.trackingDerivation;if(_i.trackingDerivation=t,_i.inBatch++,!0===_i.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new mi(t)}return _i.inBatch--,_i.trackingDerivation=u,function(t){for(var n=t.D,i=t.D=t.W,r=bi.I,e=0,u=t.G,o=0;o<u;o++){var s=i[o];0===s.H&&(s.H=1,e!==o&&(i[e]=s),e++),s.C>r&&(r=s.C)}for(i.length=e,t.W=null,u=n.length;u--;){var f=n[u];0===f.H&&Ot(f,t),f.H=0}for(;e--;){var c=i[e];1===c.H&&(c.H=0,wt(c,t))}r!==bi.I&&(t.C=r,t.U())}(t),mt(r),e}function vt(t){var n=t.D;t.D=[];for(var i=n.length;i--;)Ot(n[i],t);t.C=bi.K}function dt(t){var n=bt();try{return t()}finally{yt(n)}}function bt(){var t=_i.trackingDerivation;return _i.trackingDerivation=null,t}function yt(t){_i.trackingDerivation=t}function pt(t){var n=_i.allowStateReads;return _i.allowStateReads=t,n}function mt(t){_i.allowStateReads=t}function jt(t){if(t.C!==bi.I){t.C=bi.I;for(var n=t.D,i=n.length;i--;)n[i].X=bi.I}}function wt(t,n){t.F.add(n),t.X>n.C&&(t.X=n.C)}function Ot(t,n){t.F.delete(n),0===t.F.size&&gt(t)}function gt(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,_i.pendingUnobservations.push(t))}function _t(){_i.inBatch++}function At(){if(0==--_i.inBatch){Mt();for(var t=_i.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.isPendingUnobservation=!1,0===i.F.size&&(i.isBeingObserved&&(i.isBeingObserved=!1,i.onBUO()),i instanceof di&&i.$())}_i.pendingUnobservations=[]}}function St(t){var n=_i.trackingDerivation;return null!==n?(n.q!==t.J&&(t.J=n.q,n.W[n.G++]=t,!t.isBeingObserved&&_i.trackingContext&&(t.isBeingObserved=!0,t.onBO())),t.isBeingObserved):(0===t.F.size&&_i.inBatch>0&&gt(t),!1)}function xt(t){t.X!==bi.P&&(t.X=bi.P,t.F.forEach((function(t){t.C===bi.I&&t.U(),t.C=bi.P})))}function Mt(){_i.inBatch>0||_i.isRunningReactions||Si(Et)}function Et(){_i.isRunningReactions=!0;for(var t=_i.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].Y()}_i.isRunningReactions=!1}function Nt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Vt(t){return function(n,i){return u(n)?nt(n.name||"<unnamed action>",n,t):u(i)?nt(n,i,t):x(i)?(t?Ni:Mi).t(n,i):o(i)?S(n,i,t?Ni:Mi):o(n)?A(V(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Rt(t){return it(0,!1,t,this,void 0)}function kt(t){return u(t)&&!0===t.isMobxAction}function Tt(t,n){function i(){t(s)}var r,e,u,o;void 0===n&&(n=In);var s,f=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var c=Lt(n),a=!1;s=new Ai(f,(function(){a||(a=!0,c((function(){a=!1,s.Z||s.track(i)})))}),n.onError,n.requiresObservable)}else s=new Ai(f,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(u=u.signal)&&u.aborted||s.tt(),s.nt(null==(o=n)?void 0:o.signal)}function Lt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:Ti}function Ct(t,n,i){return Kt("onBO",t,n,i)}function It(t,n,i){return Kt("onBUO",t,n,i)}function Kt(t,n,i,r){var e="function"==typeof r?gn(n,i):gn(n),o=u(r)?r:i,s=t+"L";return e[s]?e[s].add(o):e[s]=new Set([o]),function(){var t=e[s];t&&(t.delete(o),0===t.size&&delete e[s])}}function Pt(t,n,i,r){var e=qn(n);return Sn((function(){var n=dn(t,r)[Hn];Wn(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Bt(t){var n,i={name:t.it};return t.D&&t.D.length>0&&(i.dependencies=(n=t.D,Array.from(new Set(n))).map(Bt)),i}function Dt(t){var n={name:t.it};return function(t){return t.F&&t.F.size>0}(t)&&(n.observers=Array.from(function(t){return t.F}(t)).map(Dt)),n}function Wt(){this.message="FLOW_CANCELLED"}function qt(t){u(t.cancel)&&t.cancel()}function Gt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Ht(t,n){if(void 0===n)return pi(t);if(!1===yn(t))return!1;if(!t[Hn].j.has(n))return!1;var i=gn(t,n);return pi(i)}function Ut(t,n){return!!t&&(void 0!==n?!!yn(t)&&t[Hn].j.has(n):yn(t)||!!t[Hn]||Xn(t)||xi(t)||pi(t))}function Xt(t){return Ut(t)}function Ft(t){return yn(t)?t[Hn].rt():Ji(t)||Zi(t)?Array.from(t.keys()):vn(t)?t.map((function(t,n){return n})):void n(5)}function zt(t,i){return yn(t)?t[Hn].et(i):Ji(t)||Zi(t)?t.has(i):vn(t)?i>=0&&i<t.length:void n(10)}function $t(t){if(yn(t))return t[Hn].ut();n(38)}function Jt(t,n,i){return t.set(n,i),i}function Yt(t,n){void 0===n&&(n=void 0),_t();try{return t.apply(n)}finally{At()}}function Qt(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[Hn].Z){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=nt("When-effect",n),o=Tt((function(n){ut(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function Zt(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=Qt(t,i,O({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function tn(t){return t[Hn]}function nn(t){return void 0!==t.ot&&t.ot.length>0}function rn(t,n){var i=t.ot||(t.ot=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function en(t,i){var r=bt();try{for(var e=[].concat(t.ot||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&n(14),i);u++);return i}finally{yt(r)}}function un(t){return void 0!==t.st&&t.st.length>0}function on(t,n){var i=t.st||(t.st=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function sn(t,n){var i=bt(),r=t.st;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);yt(i)}}function fn(t,n,i,e){return void 0===i&&(i="ObservableArray"),void 0===e&&(e=!1),r(),Sn((function(){var r=new qi(i,n,e,!1);h(r.j,Hn,r);var u=new Proxy(r.j,Wi);return r.v=u,t&&t.length&&r.ft(0,0,t),u}))}function cn(t,n){"function"==typeof Array.prototype[t]&&(Gi[t]=n(t))}function an(t){return function(){var n=this[Hn];n.ct.reportObserved();var i=n.ht(n.j);return i[t].apply(i,arguments)}}function hn(t){return function(n,i){var r=this,e=this[Hn];return e.ct.reportObserved(),e.ht(e.j)[t]((function(t,e){return n.call(i,t,e,r)}))}}function ln(t){return function(){var n=this,i=this[Hn];i.ct.reportObserved();var r=i.ht(i.j),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function vn(t){return s(t)&&Xi(t[Hn])}function dn(t,n){var i;if(y(t,Hn))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new nr(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:z(t):void 0}(n));return a(t,Hn,e),t}function bn(t){return tr[t]||(tr[t]={get:function(){return this[Hn].O(t)},set:function(n){return this[Hn]._(t,n)}})}function yn(t){return!!s(t)&&ir(t[Hn])}function pn(t,n,i){var r;null==(r=t.h[Gn])||delete r[i]}function mn(t){return{enumerable:!1,configurable:!0,get:function(){return this[Hn].lt(t)},set:function(n){this[Hn].vt(t,n)}}}function jn(t){Tn(sr.prototype,""+t,mn(t))}function wn(t){if(t>ur){for(var n=ur;n<t+100;n++)jn(n);ur=t}}function On(t,n,i){return new sr(t,n,i)}function gn(t,i){if("object"==typeof t&&null!==t){if(vn(t))return void 0!==i&&n(23),t[Hn].ct;if(Zi(t))return t.ct;if(Ji(t)){if(void 0===i)return t.dt;var r=t.bt.get(i)||t.yt.get(i);return r||n(25,i,An(t)),r}if(yn(t)){if(!i)return n(26);var e=t[Hn].j.get(i);return e||n(27,i,An(t)),e}if(Xn(t)||pi(t)||xi(t))return t}else if(u(t)&&xi(t[Hn]))return t[Hn];n(28)}function _n(t,i){return t||n(29),void 0!==i?_n(gn(t,i)):Xn(t)||pi(t)||xi(t)||Ji(t)||Zi(t)?t:t[Hn]?t[Hn]:void n(24,t)}function An(t,n){var i;if(void 0!==n)i=gn(t,n);else{if(kt(t))return t.name;i=yn(t)||Ji(t)||Zi(t)?_n(t):gn(t)}return i.it}function Sn(t){var n=bt(),i=ot(!0);_t();try{return t()}finally{At(),st(i),yt(n)}}function xn(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,e,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var f=fr.call(n);if(f!==fr.call(i))return!1;switch(f){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Mn(n),i=Mn(i);var c="[object Array]"===f;if(!c){if("object"!=typeof n||"object"!=typeof i)return!1;var a=n.constructor,h=i.constructor;if(a!==h&&!(u(a)&&a instanceof a&&u(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var l=(e=e||[]).length;l--;)if(e[l]===n)return o[l]===i;if(e.push(n),o.push(i),c){if((l=n.length)!==i.length)return!1;for(;l--;)if(!t(n[l],i[l],r-1,e,o))return!1}else{var v,d=Object.keys(n);if(l=d.length,Object.keys(i).length!==l)return!1;for(;l--;)if(!y(i,v=d[l])||!t(n[v],i[v],r-1,e,o))return!1}return e.pop(),o.pop(),!0}(t,n,i)}function Mn(t){return vn(t)?t.slice():v(t)||Ji(t)||d(t)||Zi(t)?Array.from(t.entries()):t}function En(t){return t[Symbol.iterator]=Nn,t}function Nn(){return this}var Vn={},Rn=Object.assign,kn=Object.getOwnPropertyDescriptor,Tn=Object.defineProperty,Ln=Object.prototype,Cn=[];Object.freeze(Cn);var In={};Object.freeze(In);var Kn="undefined"!=typeof Proxy,Pn=Object.toString(),Bn=function(){},Dn=void 0!==Object.getOwnPropertySymbols,Wn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Dn?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qn=Object.getOwnPropertyDescriptors||function(t){var n={};return Wn(t).forEach((function(i){n[i]=kn(t,i)})),n},Gn=Symbol("mobx-stored-annotations"),Hn=Symbol("mobx administration"),Un=function(){function t(t){void 0===t&&(t="Atom"),this.it=void 0,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.F=new Set,this.H=0,this.J=0,this.X=bi.K,this.onBOL=void 0,this.onBUOL=void 0,this.it=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return St(this)},n.reportChanged=function(){_t(),xt(this),At()},n.toString=function(){return this.it},t}(),Xn=l("Atom",Un),Fn={identity:function(t,n){return t===n},structural:function(t,n){return xn(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return xn(t,n,1)}},zn=A({i:"override",o:function(){return 0},s:function(){n("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),$n=z(),Jn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Jn);var Yn=H("observable"),Qn=H("observable.ref",{enhancer:N}),Zn=H("observable.shallow",{enhancer:function(t,n,i){return null==t||yn(t)||vn(t)||Ji(t)||Zi(t)?t:Array.isArray(t)?ei.array(t,{name:i,deep:!1}):f(t)?ei.object(t,void 0,{name:i,deep:!1}):v(t)?ei.map(t,{name:i,deep:!1}):d(t)?ei.set(t,{name:i,deep:!1}):void 0}}),ti=H("observable.struct",{enhancer:function(t,n){return xn(t,n)?n:t}}),ni=A(Yn);Rn(tt,ni);var ii,ri,ei=Rn(tt,{box:function(t,n){var i=Q(n);return new li(t,Z(i),i.name,!0,i.equals)},array:function(t,n){var i=Q(n);return(!1===_i.useProxies||!1===i.proxy?On:fn)(t,Z(i),i.name)},map:function(t,n){var i=Q(n);return new $i(t,Z(i),i.name)},set:function(t,n){var i=Q(n);return new Qi(t,Z(i),i.name)},object:function(t,n,i){return Sn((function(){return Pt(!1===_i.useProxies||!1===(null==i?void 0:i.proxy)?dn({},i):function(t,n){var i,e;return r(),null!=(e=(i=(t=dn(t,n))[Hn]).v)?e:i.v=new Proxy(t,Pi)}({},i),t,n)}))},ref:A(Qn),shallow:A(Zn),deep:ni,struct:A(ti)}),ui=D("computed"),oi=D("computed.struct",{equals:Fn.structural}),si=function(t,n){if(x(n))return ui.t(t,n);if(o(n))return S(t,n,ui);if(f(t))return A(D("computed",t));var i=f(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new di(i)};Object.assign(si,ui),si.struct=A(oi);var fi=0,ci=1,ai=null!=(ii=null==(ri=kn((function(){}),"name"))?void 0:ri.configurable)&&ii,hi={value:"action",configurable:!0,writable:!1,enumerable:!1},li=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=Fn.default),(o=t.call(this,r)||this).enhancer=void 0,o.it=void 0,o.equals=void 0,o.pt=!1,o.ot=void 0,o.st=void 0,o.jt=void 0,o.dehancer=void 0,o.enhancer=i,o.it=r,o.equals=u,o.jt=i(n,void 0,r),o}g(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.wt(t))!==_i.UNCHANGED&&this.Ot(t)},i.wt=function(t){if(nn(this)){var n=en(this,{object:this,type:Di,newValue:t});if(!n)return _i.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.jt,this.it),this.equals(this.jt,t)?_i.UNCHANGED:t},i.Ot=function(t){var n=this.jt;this.jt=t,this.reportChanged(),un(this)&&sn(this,{type:Di,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.jt)},i.gt=function(t){return rn(this,t)},i._t=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.it,object:this,type:Di,newValue:this.jt,oldValue:void 0}),on(this,t)},i.raw=function(){return this.jt},i.toJSON=function(){return this.get()},i.toString=function(){return this.it+"["+this.jt+"]"},i.valueOf=function(){return b(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},n}(Un),vi=l("ObservableValue",li),di=function(){function t(t){this.C=bi.K,this.D=[],this.W=null,this.F=new Set,this.H=0,this.q=0,this.J=0,this.X=bi.I,this.G=0,this.jt=new mi(null),this.it=void 0,this.At=void 0,this.St=0,this.derivation=void 0,this.xt=void 0,this.Mt=yi.NONE,this.Et=void 0,this.Nt=void 0,this.Vt=void 0,this.Rt=void 0,this.onBOL=void 0,this.onBUOL=void 0,t.get||n(31),this.derivation=t.get,this.it=t.name||"ComputedValue",t.set&&(this.xt=nt("ComputedValue-setter",t.set)),this.Nt=t.equals||(t.compareStructural||t.struct?Fn.structural:Fn.default),this.Et=t.context,this.Vt=t.requiresReaction,this.Rt=!!t.keepAlive}var i=t.prototype;return i.U=function(){!function(t){t.X===bi.I&&(t.X=bi.B,t.F.forEach((function(t){t.C===bi.I&&(t.C=bi.B,t.U())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.isComputing&&n(32,this.it,this.derivation),0!==_i.inBatch||0!==this.F.size||this.Rt){if(St(this),ht(this)){var t=_i.trackingContext;this.Rt&&!t&&(_i.trackingContext=this),this.trackAndCompute()&&function(t){t.X!==bi.P&&(t.X=bi.P,t.F.forEach((function(n){n.C===bi.B?n.C=bi.P:n.C===bi.I&&(t.X=bi.I)})))}(this),_i.trackingContext=t}}else ht(this)&&(this.kt(),_t(),this.jt=this.Tt(!1),At());var i=this.jt;if(at(i))throw i.cause;return i},i.set=function(t){if(this.xt){this.isRunningSetter&&n(33,this.it),this.isRunningSetter=!0;try{this.xt.call(this.Et,t)}finally{this.isRunningSetter=!1}}else n(34,this.it)},i.trackAndCompute=function(){var t=this.jt,n=this.C===bi.K,i=this.Tt(!0),r=n||at(t)||at(i)||!this.Nt(t,i);return r&&(this.jt=i),r},i.Tt=function(t){this.isComputing=!0;var n,i=ot(!1);if(t)n=lt(this,this.derivation,this.Et);else if(!0===_i.disableErrorBoundaries)n=this.derivation.call(this.Et);else try{n=this.derivation.call(this.Et)}catch(t){n=new mi(t)}return st(i),this.isComputing=!1,n},i.$=function(){this.Rt||(vt(this),this.jt=void 0)},i._t=function(t,n){var i=this,r=!0,e=void 0;return Tt((function(){var u=i.get();if(!r||n){var o=bt();t({observableKind:"computed",debugObjectName:i.it,type:Di,object:i,newValue:u,oldValue:e}),yt(o)}r=!1,e=u}))},i.kt=function(){},i.toString=function(){return this.it+"["+this.derivation.toString()+"]"},i.valueOf=function(){return b(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},j(t,[{key:"isComputing",get:function(){return ft(this.St,t.Lt)},set:function(n){this.St=ct(this.St,t.Lt,n)}},{key:"isRunningSetter",get:function(){return ft(this.St,t.Ct)},set:function(n){this.St=ct(this.St,t.Ct,n)}},{key:"isBeingObserved",get:function(){return ft(this.St,t.It)},set:function(n){this.St=ct(this.St,t.It,n)}},{key:"isPendingUnobservation",get:function(){return ft(this.St,t.Kt)},set:function(n){this.St=ct(this.St,t.Kt,n)}}])}();di.Lt=1,di.Ct=2,di.It=4,di.Kt=8;var bi,yi,pi=l("ComputedValue",di);!function(t){t[t.K=-1]="NOT_TRACKING_",t[t.I=0]="UP_TO_DATE_",t[t.B=1]="POSSIBLY_STALE_",t[t.P=2]="STALE_"}(bi||(bi={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(yi||(yi={}));var mi=function(t){this.cause=void 0,this.cause=t},ji=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],wi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Oi=!0,gi=!1,_i=function(){var t=i();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Oi=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new wi).version&&(Oi=!1),Oi?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new wi):(setTimeout((function(){gi||n(35)}),1),new wi)}(),Ai=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.it=void 0,this.Pt=void 0,this.Bt=void 0,this.Dt=void 0,this.D=[],this.W=[],this.C=bi.K,this.H=0,this.q=0,this.G=0,this.Z=!1,this.Wt=!1,this.qt=!1,this.Gt=!1,this.Mt=yi.NONE,this.it=t,this.Pt=n,this.Bt=i,this.Dt=r}var n=t.prototype;return n.U=function(){this.tt()},n.tt=function(){this.Wt||(this.Wt=!0,_i.pendingReactions.push(this),Mt())},n.isScheduled=function(){return this.Wt},n.Y=function(){if(!this.Z){_t(),this.Wt=!1;var t=_i.trackingContext;if(_i.trackingContext=this,ht(this)){this.qt=!0;try{this.Pt()}catch(t){this.Ht(t)}}_i.trackingContext=t,At()}},n.track=function(t){if(!this.Z){_t(),this.Gt=!0;var n=_i.trackingContext;_i.trackingContext=this;var i=lt(this,t,void 0);_i.trackingContext=n,this.Gt=!1,this.qt=!1,this.Z&&vt(this),at(i)&&this.Ht(i.cause),At()}},n.Ht=function(t){var n=this;if(this.Bt)this.Bt(t,this);else{if(_i.disableErrorBoundaries)throw t;_i.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),_i.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.Z||(this.Z=!0,this.Gt||(_t(),vt(this),At()))},n.nt=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[Hn]=this,i},n.toString=function(){return"Reaction["+this.it+"]"},n.trace=function(){},t}(),Si=function(t){return t()},xi=l("Reaction",Ai),Mi=V("action"),Ei=V("action.bound",{bound:!0}),Ni=V("autoAction",{autoAction:!0}),Vi=V("autoAction.bound",{autoAction:!0,bound:!0}),Ri=Vt(!1);Object.assign(Ri,Mi);var ki=Vt(!0);Object.assign(ki,Ni),Ri.bound=A(Ei),ki.bound=A(Vi);var Ti=function(t){return t()},Li=0;Wt.prototype=Object.create(Error.prototype);var Ci=C("flow"),Ii=C("flow.bound",{bound:!0}),Ki=Object.assign((function(t,n){if(x(n))return Ci.t(t,n);if(o(n))return S(t,n,Ci);var i=t,r=i.name||"<unnamed flow>",e=function(){var t,n=this,e=arguments,o=++Li,s=Ri(r+" - runid: "+o+" - init",i).apply(n,e),f=void 0,c=new Promise((function(n,i){function e(t){var n;f=void 0;try{n=Ri(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}a(n)}function c(t){var n;f=void 0;try{n=Ri(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}a(n)}function a(t){if(!u(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(e,c);t.then(a,i)}var h=0;t=i,e(void 0)}));return c.cancel=Ri(r+" - runid: "+o+" - cancel",(function(){try{f&&qt(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(Bn,Bn),qt(i),t(new Wt)}catch(n){t(n)}})),c};return e.isMobXFlow=!0,e}),Ci);Ki.bound=A(Ii);var Pi={has:function(t,n){return tn(t).et(n)},get:function(t,n){return tn(t).lt(n)},set:function(t,n,i){var r;return!!o(n)&&(null==(r=tn(t).vt(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!o(n)&&(null==(i=tn(t).Ut(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=tn(t).l(n,i))||r},ownKeys:function(t){return tn(t).ut()},preventExtensions:function(){n(13)}},Bi=Symbol("mobx-keys"),Di="update",Wi={get:function(t,n){var i=t[Hn];return n===Hn?i:"length"===n?i.Xt():"string"!=typeof n||isNaN(n)?y(Gi,n)?Gi[n]:t[n]:i.lt(parseInt(n))},set:function(t,n,i){var r=t[Hn];return"length"===n&&r.Ft(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.vt(parseInt(n),i),!0},preventExtensions:function(){n(15)}},qi=function(){function t(t,n,i,r){void 0===t&&(t="ObservableArray"),this.zt=void 0,this.$t=void 0,this.ct=void 0,this.j=[],this.ot=void 0,this.st=void 0,this.Jt=void 0,this.dehancer=void 0,this.v=void 0,this.Yt=0,this.zt=i,this.$t=r,this.ct=new Un(t),this.Jt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=t.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.ht=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.gt=function(t){return rn(this,t)},i._t=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.v,debugObjectName:this.ct.it,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),on(this,t)},i.Xt=function(){return this.ct.reportObserved(),this.j.length},i.Ft=function(t){("number"!=typeof t||isNaN(t)||t<0)&&n("Out of range: "+t);var i=this.j.length;if(t!==i)if(t>i){for(var r=new Array(t-i),e=0;e<t-i;e++)r[e]=void 0;this.ft(i,0,r)}else this.ft(t,i-t)},i.Zt=function(t,i){t!==this.Yt&&n(16),this.Yt+=i,this.$t&&i>0&&wn(t+i+1)},i.ft=function(t,n,i){var r=this,e=this.j.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=Cn),nn(this)){var u=en(this,{object:this.v,type:"splice",index:t,removedCount:n,added:i});if(!u)return Cn;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.Jt(t,void 0)})),this.$t){var o=i.length-n;this.Zt(e,o)}var s=this.tn(t,n,i);return 0===n&&0===i.length||this.nn(t,i,s),this.ht(s)},i.tn=function(t,n,i){var r;if(i.length<1e4)return(r=this.j).splice.apply(r,[t,n].concat(i));var e=this.j.slice(t,t+n),u=this.j.slice(t+n);this.j.length+=i.length-n;for(var o=0;o<i.length;o++)this.j[t+o]=i[o];for(var s=0;s<u.length;s++)this.j[t+i.length+s]=u[s];return e},i.in=function(t,n,i){var r=!this.zt&&!1,e=un(this),u=e||r?{observableKind:"array",object:this.v,type:Di,debugObjectName:this.ct.it,index:t,newValue:n,oldValue:i}:null;this.ct.reportChanged(),e&&sn(this,u)},i.nn=function(t,n,i){var r=!this.zt&&!1,e=un(this),u=e||r?{observableKind:"array",object:this.v,debugObjectName:this.ct.it,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.ct.reportChanged(),e&&sn(this,u)},i.lt=function(t){if(!(this.$t&&t>=this.j.length))return this.ct.reportObserved(),this.Qt(this.j[t]);console.warn("[mobx] Out of bounds read: "+t)},i.vt=function(t,i){var r=this.j;if(this.$t&&t>r.length&&n(17,t,r.length),t<r.length){var e=r[t];if(nn(this)){var u=en(this,{type:Di,object:this.v,index:t,newValue:i});if(!u)return;i=u.newValue}(i=this.Jt(i,e))!==e&&(r[t]=i,this.in(t,i,e))}else{for(var o=new Array(t+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.ft(r.length,0,o)}},t}(),Gi={clear:function(){return this.splice(0)},replace:function(t){var n=this[Hn];return n.ft(0,n.j.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[Hn];switch(arguments.length){case 0:return[];case 1:return u.ft(t);case 2:return u.ft(t,n)}return u.ft(t,n,r)},spliceWithArray:function(t,n,i){return this[Hn].ft(t,n,i)},push:function(){for(var t=this[Hn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ft(t.j.length,0,i),t.j.length},pop:function(){return this.splice(Math.max(this[Hn].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Hn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ft(0,0,i),t.j.length},reverse:function(){return _i.trackingDerivation&&n(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){_i.trackingDerivation&&n(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[Hn],i=n.ht(n.j).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};cn("at",an),cn("concat",an),cn("flat",an),cn("includes",an),cn("indexOf",an),cn("join",an),cn("lastIndexOf",an),cn("slice",an),cn("toString",an),cn("toLocaleString",an),cn("toSorted",an),cn("toSpliced",an),cn("with",an),cn("every",hn),cn("filter",hn),cn("find",hn),cn("findIndex",hn),cn("findLast",hn),cn("findLastIndex",hn),cn("flatMap",hn),cn("forEach",hn),cn("map",hn),cn("some",hn),cn("toReversed",hn),cn("reduce",ln),cn("reduceRight",ln);var Hi,Ui,Xi=l("ObservableArrayAdministration",qi),Fi={},zi="add",$i=function(){function t(t,i,r){var e=this;void 0===i&&(i=E),void 0===r&&(r="ObservableMap"),this.Jt=void 0,this.it=void 0,this[Hn]=Fi,this.bt=void 0,this.yt=void 0,this.dt=void 0,this.ot=void 0,this.st=void 0,this.dehancer=void 0,this.Jt=i,this.it=r,u(Map)||n(18),Sn((function(){e.dt=M("ObservableMap.keys()"),e.bt=new Map,e.yt=new Map,t&&e.merge(t)}))}var i=t.prototype;return i.et=function(t){return this.bt.has(t)},i.has=function(t){var n=this;if(!_i.trackingDerivation)return this.et(t);var i=this.yt.get(t);if(!i){var r=i=new li(this.et(t),N,"ObservableMap.key?",!1);this.yt.set(t,r),It(r,(function(){return n.yt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.et(t);if(nn(this)){var r=en(this,{type:i?Di:zi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.rn(t,n):this.en(t,n),this},i.delete=function(t){var n=this;if(nn(this)&&!en(this,{type:"delete",object:this,name:t}))return!1;if(this.et(t)){var i=un(this),r=i?{observableKind:"map",debugObjectName:this.it,type:"delete",object:this,oldValue:this.bt.get(t).jt,name:t}:null;return Yt((function(){var i;n.dt.reportChanged(),null==(i=n.yt.get(t))||i.Ot(!1),n.bt.get(t).Ot(void 0),n.bt.delete(t)})),i&&sn(this,r),!0}return!1},i.rn=function(t,n){var i=this.bt.get(t);if((n=i.wt(n))!==_i.UNCHANGED){var r=un(this),e=r?{observableKind:"map",debugObjectName:this.it,type:Di,object:this,oldValue:i.jt,name:t,newValue:n}:null;i.Ot(n),r&&sn(this,e)}},i.en=function(t,n){var i=this;Yt((function(){var r,e=new li(n,i.Jt,"ObservableMap.key",!1);i.bt.set(t,e),n=e.jt,null==(r=i.yt.get(t))||r.Ot(!0),i.dt.reportChanged()}));var r=un(this);r&&sn(this,r?{observableKind:"map",debugObjectName:this.it,type:zi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Qt(this.bt.get(t).get()):this.Qt(void 0)},i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.dt.reportObserved(),this.bt.keys()},i.values=function(){var t=this,n=this.keys();return En({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return En({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Symbol.iterator]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=w(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(t){var i=this;return Ji(t)&&(t=new Map(t)),Yt((function(){var r,e;f(t)?function(t){var n=Object.keys(t);if(!Dn)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Ln.propertyIsEnumerable.call(t,n)}))):n}(t).forEach((function(n){return i.set(n,t[n])})):Array.isArray(t)?t.forEach((function(t){return i.set(t[0],t[1])})):v(t)?(r=Object.getPrototypeOf(t),e=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(e)&&n(19,t),t.forEach((function(t,n){return i.set(n,t)}))):null!=t&&n(20,t)})),this},i.clear=function(){var t=this;Yt((function(){dt((function(){for(var n,i=w(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(t){var i=this;return Yt((function(){for(var r,e=function(t){if(v(t)||Ji(t))return t;if(Array.isArray(t))return new Map(t);if(f(t)){var i=new Map;for(var r in t)i.set(r,t[r]);return i}return n(21,t)}(t),u=new Map,o=!1,s=w(i.bt.keys());!(r=s()).done;){var c=r.value;if(!e.has(c))if(i.delete(c))o=!0;else{var a=i.bt.get(c);u.set(c,a)}}for(var h,l=w(e.entries());!(h=l()).done;){var d=h.value,b=d[0],y=d[1],p=i.bt.has(b);if(i.set(b,y),i.bt.has(b)){var m=i.bt.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.bt.size!==u.size)i.dt.reportChanged();else for(var j=i.bt.keys(),O=u.keys(),g=j.next(),_=O.next();!g.done;){if(g.value!==_.value){i.dt.reportChanged();break}g=j.next(),_=O.next()}i.bt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i._t=function(t){return on(this,t)},i.gt=function(t){return rn(this,t)},j(t,[{key:"size",get:function(){return this.dt.reportObserved(),this.bt.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Ji=l("ObservableMap",$i),Yi={},Qi=function(){function t(t,i,r){var e=this;void 0===i&&(i=E),void 0===r&&(r="ObservableSet"),this.it=void 0,this[Hn]=Yi,this.bt=new Set,this.ct=void 0,this.st=void 0,this.ot=void 0,this.dehancer=void 0,this.Jt=void 0,this.it=r,u(Set)||n(22),this.Jt=function(t,n){return i(t,n,r)},Sn((function(){e.ct=M(e.it),t&&e.replace(t)}))}var i=t.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;Yt((function(){dt((function(){for(var n,i=w(t.bt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=w(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(nn(this)&&!en(this,{type:zi,object:this,newValue:t}))return this;if(!this.has(t)){Yt((function(){n.bt.add(n.Jt(t,void 0)),n.ct.reportChanged()}));var i=un(this);i&&sn(this,i?{observableKind:"set",debugObjectName:this.it,type:zi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(nn(this)&&!en(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=un(this),r=i?{observableKind:"set",debugObjectName:this.it,type:"delete",object:this,oldValue:t}:null;return Yt((function(){n.ct.reportChanged(),n.bt.delete(t)})),i&&sn(this,r),!0}return!1},i.has=function(t){return this.ct.reportObserved(),this.bt.has(this.Qt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return En({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.ct.reportObserved();var t=this,n=0,i=Array.from(this.bt.values());return En({next:function(){return n<i.length?{value:t.Qt(i[n++]),done:!1}:{done:!0}}})},i.intersection=function(t){return d(t)?t.intersection(this):new Set(this).intersection(t)},i.union=function(t){return d(t)?t.union(this):new Set(this).union(t)},i.difference=function(t){return new Set(this).difference(t)},i.symmetricDifference=function(t){return d(t)?t.symmetricDifference(this):new Set(this).symmetricDifference(t)},i.isSubsetOf=function(t){return new Set(this).isSubsetOf(t)},i.isSupersetOf=function(t){return new Set(this).isSupersetOf(t)},i.isDisjointFrom=function(t){return d(t)?t.isDisjointFrom(this):new Set(this).isDisjointFrom(t)},i.replace=function(t){var i=this;return Zi(t)&&(t=new Set(t)),Yt((function(){Array.isArray(t)||d(t)?(i.clear(),t.forEach((function(t){return i.add(t)}))):null!=t&&n("Cannot initialize set from "+t)})),this},i._t=function(t){return on(this,t)},i.gt=function(t){return rn(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Symbol.iterator]=function(){return this.values()},j(t,[{key:"size",get:function(){return this.ct.reportObserved(),this.bt.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Zi=l("ObservableSet",Qi),tr=Object.create(null),nr=function(){function t(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=$n),this.h=void 0,this.j=void 0,this.it=void 0,this.un=void 0,this.dt=void 0,this.st=void 0,this.ot=void 0,this.v=void 0,this.p=void 0,this.on=void 0,this.sn=void 0,this.h=t,this.j=n,this.it=i,this.un=r,this.dt=new Un("ObservableObject.keys"),this.p=f(this.h)}var i=t.prototype;return i.O=function(t){return this.j.get(t).get()},i._=function(t,n){var i=this.j.get(t);if(i instanceof di)return i.set(n),!0;if(nn(this)){var r=en(this,{type:Di,object:this.v||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.wt(n))!==_i.UNCHANGED){var e=un(this),u=e?{type:Di,observableKind:"object",debugObjectName:this.it,object:this.v||this.h,oldValue:i.jt,name:t,newValue:n}:null;i.Ot(n),e&&sn(this,u)}return!0},i.lt=function(t){return _i.trackingDerivation&&!y(this.h,t)&&this.et(t),this.h[t]},i.vt=function(t,n,i){return void 0===i&&(i=!1),y(this.h,t)?this.j.has(t)?this._(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.un,i)},i.et=function(t){if(!_i.trackingDerivation)return t in this.h;this.sn||(this.sn=new Map);var n=this.sn.get(t);return n||(n=new li(t in this.h,N,"ObservableObject.key?",!1),this.sn.set(t,n)),n.get()},i.o=function(t,i){if(!0===i&&(i=this.un),!1!==i){if(!(t in this.h)){var r;if(null!=(r=this.h[Gn])&&r[t])return;n(1,i.i,this.it+"."+t.toString())}for(var e=this.h;e&&e!==Ln;){var u=kn(e,t);if(u){var o=i.o(this,t,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}pn(this,0,t)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.un),!1===i)return this.l(t,n,r);var e=i.s(this,t,n,r);return e&&pn(this,0,t),e},i.l=function(t,n,i){void 0===i&&(i=!1);try{_t();var r=this.Ut(t);if(!r)return r;if(nn(this)){var e=en(this,{object:this.v||this.h,name:t,type:zi,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=O({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else Tn(this.h,t,n);this.fn(t,n.value)}finally{At()}return!0},i.g=function(t,n,i,r){void 0===r&&(r=!1);try{_t();var e=this.Ut(t);if(!e)return e;if(nn(this)){var u=en(this,{object:this.v||this.h,name:t,type:zi,newValue:n});if(!u)return null;n=u.newValue}var o=bn(t),s={configurable:!_i.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else Tn(this.h,t,s);var f=new li(n,i,"ObservableObject.key",!1);this.j.set(t,f),this.fn(t,f.jt)}finally{At()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{_t();var r=this.Ut(t);if(!r)return r;if(nn(this)&&!en(this,{object:this.v||this.h,name:t,type:zi,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.v||this.h;var e=bn(t),u={configurable:!_i.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else Tn(this.h,t,u);this.j.set(t,new di(n)),this.fn(t,void 0)}finally{At()}return!0},i.Ut=function(t,n){if(void 0===n&&(n=!1),!y(this.h,t))return!0;if(nn(this)&&!en(this,{object:this.v||this.h,name:t,type:"remove"}))return null;try{var i;_t();var r,e=un(this),u=this.j.get(t),o=void 0;if(!u&&e&&(o=null==(r=kn(this.h,t))?void 0:r.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];u&&(this.j.delete(t),u instanceof li&&(o=u.jt),xt(u)),this.dt.reportChanged(),null==(i=this.sn)||null==(i=i.get(t))||i.set(t in this.h),e&&e&&sn(this,{type:"remove",observableKind:"object",object:this.v||this.h,debugObjectName:this.it,oldValue:o,name:t})}finally{At()}return!0},i._t=function(t){return on(this,t)},i.gt=function(t){return rn(this,t)},i.fn=function(t,n){var i,r=un(this);r&&r&&sn(this,r?{type:zi,observableKind:"object",debugObjectName:this.it,object:this.v||this.h,name:t,newValue:n}:null),null==(i=this.sn)||null==(i=i.get(t))||i.set(!0),this.dt.reportChanged()},i.ut=function(){return this.dt.reportObserved(),Wn(this.h)},i.rt=function(){return this.dt.reportObserved(),Object.keys(this.h)},t}(),ir=l("ObservableObjectAdministration",nr),rr=mn(0),er=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),ur=0,or=function(){};Hi=or,Ui=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Hi.prototype,Ui):void 0!==Hi.prototype.__proto__?Hi.prototype.__proto__=Ui:Hi.prototype=Ui;var sr=function(t){function n(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,Sn((function(){var t=new qi(r,i,e,!0);t.v=u,h(u,Hn,t),n&&n.length&&u.spliceWithArray(0,0,n),er&&Object.defineProperty(u,"0",rr)})),u}g(n,t);var i=n.prototype;return i.concat=function(){this[Hn].ct.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return vn(t)?t.slice():t})))},i[Symbol.iterator]=function(){var t=this,n=0;return En({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},j(n,[{key:"length",get:function(){return this[Hn].Xt()},set:function(t){this[Hn].Ft(t)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(or);Object.entries(Gi).forEach((function(t){var n=t[0];"concat"!==n&&a(sr.prototype,n,t[1])})),wn(1e3);var fr=Ln.toString;["Symbol","Map","Set"].forEach((function(t){void 0===i()[t]&&n("MobX requires global '"+t+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Nt,extras:{getDebugName:An},$mobx:Hn}),t.$mobx=Hn,t.FlowCancellationError=Wt,t.ObservableMap=$i,t.ObservableSet=Qi,t.Reaction=Ai,t._allowStateChanges=ut,t._allowStateChangesInsideComputed=Rt,t._allowStateReadsEnd=mt,t._allowStateReadsStart=pt,t._autoAction=ki,t._endAction=et,t._getAdministration=_n,t._getGlobalState=function(){return _i},t._interceptReads=function(t,n,i){var r;return Ji(t)||vn(t)||vi(t)?r=_n(t):yn(t)&&(r=_n(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}},t._isComputingDerivation=function(){return null!==_i.trackingDerivation},t._resetGlobalState=function(){var t=new wi;for(var n in t)-1===ji.indexOf(n)&&(_i[n]=t[n]);_i.allowStateChanges=!_i.enforceActions},t._startAction=rt,t.action=Ri,t.autorun=Tt,t.comparer=Fn,t.computed=si,t.configure=function(t){!0===t.isolateGlobalState&&function(){if((_i.pendingReactions.length||_i.inBatch||_i.isRunningReactions)&&n(36),gi=!0,Oi){var t=i();0==--t.__mobxInstanceCount&&(t.__mobxGlobals=void 0),_i=new wi}}();var r,e,u=t.useProxies,o=t.enforceActions;if(void 0!==u&&(_i.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&(_i.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;_i.enforceActions=s,_i.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(n){n in t&&(_i[n]=!!t[n])})),_i.allowStateReads=!_i.observableRequiresReaction,t.reactionScheduler&&(r=t.reactionScheduler,e=Si,Si=function(t){return r((function(){return e(t)}))})},t.createAtom=M,t.defineProperty=function(t,i,r){if(yn(t))return t[Hn].l(i,r);n(39)},t.entries=function(t){return yn(t)?Ft(t).map((function(n){return[n,t[n]]})):Ji(t)?Ft(t).map((function(n){return[n,t.get(n)]})):Zi(t)?Array.from(t.entries()):vn(t)?t.map((function(t,n){return[n,t]})):void n(7)},t.extendObservable=Pt,t.flow=Ki,t.flowResult=function(t){return t},t.get=function(t,i){if(zt(t,i))return yn(t)?t[Hn].lt(i):Ji(t)?t.get(i):vn(t)?t[i]:void n(11)},t.getAtom=gn,t.getDebugName=An,t.getDependencyTree=function(t,n){return Bt(gn(t,n))},t.getObserverTree=function(t,n){return Dt(gn(t,n))},t.has=zt,t.intercept=function(t,n,i){return u(i)?function(t,n,i){return _n(t,n).gt(i)}(t,n,i):function(t,n){return _n(t).gt(n)}(t,n)},t.isAction=kt,t.isBoxedObservable=vi,t.isComputed=function(t){return Ht(t)},t.isComputedProp=function(t,n){return Ht(t,n)},t.isFlow=Gt,t.isFlowCancellationError=function(t){return t instanceof Wt},t.isObservable=Xt,t.isObservableArray=vn,t.isObservableMap=Ji,t.isObservableObject=yn,t.isObservableProp=function(t,n){return Ut(t,n)},t.isObservableSet=Zi,t.keys=Ft,t.makeAutoObservable=function(t,n,i){return f(t)?Pt(t,t,n,i):(Sn((function(){var r=dn(t,i)[Hn];if(!t[Bi]){var e=Object.getPrototypeOf(t),u=new Set([].concat(Wn(t),Wn(e)));u.delete("constructor"),u.delete(Hn),a(e,Bi,u)}t[Bi].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)},t.makeObservable=function(t,n,i){return Sn((function(){var r=dn(t,i)[Hn];null!=n||(n=function(t){return y(t,Gn)||a(t,Gn,O({},t[Gn])),t[Gn]}(t)),Wn(n).forEach((function(t){return r.o(t,n[t])}))})),t},t.observable=ei,t.observe=function(t,n,i,r){return u(i)?function(t,n,i,r){return _n(t,n)._t(i,r)}(t,n,i,r):function(t,n,i){return _n(t)._t(n,i)}(t,n,i)},t.onBecomeObserved=Ct,t.onBecomeUnobserved=It,t.onReactionError=function(t){return _i.globalReactionErrorHandlers.push(t),function(){var n=_i.globalReactionErrorHandlers.indexOf(t);n>=0&&_i.globalReactionErrorHandlers.splice(n,1)}},t.override=zn,t.ownKeys=$t,t.reaction=function(t,n,i){function r(){if(b=!1,!p.Z){var n=!1,r=c;p.track((function(){var i=ut(!1,(function(){return t(p)}));n=d||!y(c,i),c=i})),(d&&i.fireImmediately||!d&&n)&&h(c,r,p),d=!1}}var e,u,o;void 0===i&&(i=In);var s,f,c,a=null!=(e=i.name)?e:"Reaction",h=Ri(a,i.onError?(s=i.onError,f=n,function(){try{return f.apply(this,arguments)}catch(t){s.call(this,t)}}):n),l=!i.scheduler&&!i.delay,v=Lt(i),d=!0,b=!1,y=i.compareStructural?Fn.structural:i.equals||Fn.default,p=new Ai(a,(function(){d||l?r():b||(b=!0,v(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(u=u.signal)&&u.aborted||p.tt(),p.nt(null==(o=i)?void 0:o.signal)},t.remove=function(t,i){yn(t)?t[Hn].Ut(i):Ji(t)||Zi(t)?t.delete(i):vn(t)?("number"!=typeof i&&(i=parseInt(i,10)),t.splice(i,1)):n(9)},t.runInAction=Rt,t.set=function t(i,r,e){if(2!==arguments.length||Zi(i))yn(i)?i[Hn].vt(r,e):Ji(i)?i.set(r,e):Zi(i)?i.add(r):vn(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&n("Invalid index: '"+r+"'"),_t(),r>=i.length&&(i.length=r+1),i[r]=e,At()):n(8);else{_t();var u=r;try{for(var o in u)t(i,o,u[o])}finally{At()}}},t.spy=Nt,t.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Xt(n))return n;if(vi(n)||pi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(vn(n)){var r=Jt(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Zi(n)){var e=Jt(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Ji(n)){var u=Jt(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=Jt(i,n,{});return $t(n).forEach((function(r){Ln.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)},t.trace=function(){},t.transaction=Yt,t.untracked=dt,t.values=function(t){return yn(t)?Ft(t).map((function(n){return t[n]})):Ji(t)?Ft(t).map((function(n){return t.get(n)})):Zi(t)?Array.from(t.values()):vn(t)?t.slice():void n(6)},t.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Zt(t,n):Qt(t,n,i||{})},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).mobx={})}(this,(function(t){function n(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function i(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:En}function r(){In||n("Proxy not available")}function e(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function u(t){return"function"==typeof t}function o(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function s(t){return null!==t&&"object"==typeof t}function f(t){if(!s(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===Kn}function c(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function a(t,n,i){Tn(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function h(t,n,i){Tn(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function l(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return s(t)&&!0===t[i]}}function v(t){return null!=t&&"[object Map]"===Object.prototype.toString.call(t)}function d(t){return null!=t&&"[object Set]"===Object.prototype.toString.call(t)}function b(t){return null===t?null:"object"==typeof t?""+t:t}function y(t,n){return Ln.hasOwnProperty.call(t,n)}function p(t,n){return!!(t&n)}function m(t,n,i){return i?t|=n:t&=~n,t}function j(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=Array(n);i<n;i++)r[i]=t[i];return r}function w(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,S(r.key),r)}}function O(t,n,i){return n&&w(t.prototype,n),i&&w(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return j(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?j(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(){return(_=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(null,arguments)}function A(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,function(t,n){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}(t,n)}function S(t){var n=function(t){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof n?n:n+""}function x(t){return Object.assign((function(n,i){if(V(i))return t.t(n,i);k(n,i,t)}),t)}function k(t,n,i){y(t,Gn)||a(t,Gn,_({},t[Gn])),function(t){return"override"===t.i}(i)||(t[Gn][n]=i)}function V(t){return"object"==typeof t&&"string"==typeof t.kind}function M(t,n,i){void 0===n&&(n=Bn),void 0===i&&(i=Bn);var r=new Un(t);return n!==Bn&&Ct(r,n),i!==Bn&&Pt(r,i),r}function E(t,n,i){return Xt(t)?t:Array.isArray(t)?ei.array(t,{name:i}):f(t)?ei.object(t,void 0,{name:i}):v(t)?ei.map(t,{name:i}):d(t)?ei.set(t,{name:i}):"function"!=typeof t||Rt(t)||Gt(t)?t:c(t)?Ii(t):Ri(i,t)}function N(t){return t}function R(t,n){return{i:t,u:n,o:T,s:L,t:C}}function T(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Rt(i.value))return 1;var u=P(t,this,n,i,!1);return Tn(r,n,u),2}function L(t,n,i,r){var e=P(t,this,n,i);return t.l(n,e,r)}function C(t,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,f,c,a,h,l;if("method"==r)return Rt(t)||(f=t,t=rt(null!=(c=null==(a=o.u)?void 0:a.name)?c:e.toString(),f,null!=(h=null==(l=o.u)?void 0:l.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),t;n("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){k(this,e,o)}))}function P(t,n,i,r,e){var u,o,s,f,c,a,h;void 0===e&&(e=_i.safeDescriptors);var l,v=r.value;return null!=(u=n.u)&&u.bound&&(v=v.bind(null!=(l=t.v)?l:t.h)),{value:rt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),v,null!=(f=null==(c=n.u)?void 0:c.autoAction)&&f,null!=(a=n.u)&&a.bound?null!=(h=t.v)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function I(t,n){return{i:t,u:n,o:K,s:B,t:D}}function K(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!y(t.h,n)||!Gt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Gt(i.value))return 1;var u=W(t,0,0,i,!1,!1);return Tn(r,n,u),2}function B(t,n,i,r){var e,u=W(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.l(n,u,r)}function D(t,n){var i,r=n.name,e=n.addInitializer;return Gt(t)||(t=Ii(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function W(t,n,i,r,e,u){void 0===u&&(u=_i.safeDescriptors);var o,s=r.value;return Gt(s)||(s=Ii(s)),e&&((s=s.bind(null!=(o=t.v)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function q(t,n){return{i:t,u:n,o:G,s:H,t:U}}function G(t,n,i){return null===this.s(t,n,i,!1)?0:1}function H(t,n,i,r){return t.m(n,_({},this.u,{get:i.get,set:i.set}),r)}function U(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=dn(this)[Hn],e=_({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.j.set(r,new di(e))})),function(){return this[Hn].O(r)}}function X(t,n){return{i:t,u:n,o:F,s:z,t:$}}function F(t,n,i){return null===this.s(t,n,i,!1)?0:1}function z(t,n,i,r){var e,u;return t.g(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:E,r)}function $(t,n){function i(t,n){var i,e,s=dn(t)[Hn],f=new li(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:E,"ObservableObject."+u.toString(),!1);s.j.set(u,f),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[Hn].O(u)},set:function(t){return o.has(this)||i(this,t),this[Hn]._(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function J(t){return{i:"true",u:t,o:Y,s:Q,t:Z}}function Y(t,n,i,r){var e,u,o,s;if(i.get)return si.o(t,n,i,r);if(i.set){var f=rt(n.toString(),i.set);return r===t.h?null===t.l(n,{configurable:!_i.safeDescriptors||t.p,set:f})?0:2:(Tn(r,n,{configurable:!0,set:f}),2)}if(r!==t.h&&"function"==typeof i.value)return c(i.value)?(null!=(s=this.u)&&s.autoBind?Ii.bound:Ii).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?Ri.bound:Ri).o(t,n,i,r);var a,h=!1===(null==(e=this.u)?void 0:e.deep)?ei.ref:ei;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(a=t.v)?a:t.h)),h.o(t,n,i,r)}function Q(t,n,i,r){var e,u,o;return i.get?si.s(t,n,i,r):i.set?t.l(n,{configurable:!_i.safeDescriptors||t.p,set:rt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.v)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?ei.ref:ei).s(t,n,i,r))}function Z(){n("'"+this.i+"' cannot be used as a decorator")}function tt(t){return t||Jn}function nt(t){return!0===t.deep?E:!1===t.deep?N:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:E;var n,i,r}function it(t,n,i){return V(n)?Yn.t(t,n):o(n)?void k(t,n,Yn):Xt(t)?t:f(t)?ei.object(t,n,i):Array.isArray(t)?ei.array(t,n):v(t)?ei.map(t,n):d(t)?ei.set(t,n):"object"==typeof t&&null!==t?t:ei.box(t,n)}function rt(t,n,i,r){function e(){return et(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},ai&&(hi.value=t,Tn(e,"name",hi)),e}function et(t,n,i,r,e){var u=ut(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{ot(u)}}function ut(t,n){var i=_i.trackingDerivation,r=!n||!i;_t();var e=_i.allowStateChanges;r&&(bt(),e=ft(!0));var u={S:r,k:i,V:e,M:pt(!0),N:!1,R:0,T:ci++,L:fi};return fi=u.T,u}function ot(t){fi!==t.T&&n(30),fi=t.L,void 0!==t.A&&(_i.suppressReactionErrors=!0),ct(t.V),mt(t.M),At(),t.S&&yt(t.k),_i.suppressReactionErrors=!1}function st(t,n){var i=ft(t);try{return n()}finally{ct(i)}}function ft(t){var n=_i.allowStateChanges;return _i.allowStateChanges=t,n}function ct(t){_i.allowStateChanges=t}function at(t){return t instanceof mi}function ht(t){switch(t.C){case bi.P:return!1;case bi.I:case bi.K:return!0;case bi.B:for(var n=pt(!0),i=bt(),r=t.D,e=r.length,u=0;u<e;u++){var o=r[u];if(pi(o)){if(_i.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return yt(i),mt(n),!0}if(t.C===bi.K)return yt(i),mt(n),!0}}return jt(t),yt(i),mt(n),!1}}function lt(t,n,i){var r=pt(!0);jt(t),t.W=new Array(0===t.q?100:t.D.length),t.G=0,t.q=++_i.runId;var e,u=_i.trackingDerivation;if(_i.trackingDerivation=t,_i.inBatch++,!0===_i.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new mi(t)}return _i.inBatch--,_i.trackingDerivation=u,function(t){for(var n=t.D,i=t.D=t.W,r=bi.P,e=0,u=t.G,o=0;o<u;o++){var s=i[o];0===s.diffValue&&(s.diffValue=1,e!==o&&(i[e]=s),e++),s.C>r&&(r=s.C)}for(i.length=e,t.W=null,u=n.length;u--;){var f=n[u];0===f.diffValue&&Ot(f,t),f.diffValue=0}for(;e--;){var c=i[e];1===c.diffValue&&(c.diffValue=0,wt(c,t))}r!==bi.P&&(t.C=r,t.H())}(t),mt(r),e}function vt(t){var n=t.D;t.D=[];for(var i=n.length;i--;)Ot(n[i],t);t.C=bi.I}function dt(t){var n=bt();try{return t()}finally{yt(n)}}function bt(){var t=_i.trackingDerivation;return _i.trackingDerivation=null,t}function yt(t){_i.trackingDerivation=t}function pt(t){var n=_i.allowStateReads;return _i.allowStateReads=t,n}function mt(t){_i.allowStateReads=t}function jt(t){if(t.C!==bi.P){t.C=bi.P;for(var n=t.D,i=n.length;i--;)n[i].U=bi.P}}function wt(t,n){t.X.add(n),t.U>n.C&&(t.U=n.C)}function Ot(t,n){t.X.delete(n),0===t.X.size&&gt(t)}function gt(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,_i.pendingUnobservations.push(t))}function _t(){_i.inBatch++}function At(){if(0==--_i.inBatch){kt();for(var t=_i.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.isPendingUnobservation=!1,0===i.X.size&&(i.isBeingObserved&&(i.isBeingObserved=!1,i.onBUO()),i instanceof di&&i.F())}_i.pendingUnobservations=[]}}function St(t){var n=_i.trackingDerivation;return null!==n?(n.q!==t.$&&(t.$=n.q,n.W[n.G++]=t,!t.isBeingObserved&&_i.trackingContext&&(t.isBeingObserved=!0,t.onBO())),t.isBeingObserved):(0===t.X.size&&_i.inBatch>0&&gt(t),!1)}function xt(t){t.U!==bi.K&&(t.U=bi.K,t.X.forEach((function(t){t.C===bi.P&&t.H(),t.C=bi.K})))}function kt(){_i.inBatch>0||_i.isRunningReactions||Si(Vt)}function Vt(){_i.isRunningReactions=!0;for(var t=_i.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].J()}_i.isRunningReactions=!1}function Mt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Et(t){return function(n,i){return u(n)?rt(n.name||"<unnamed action>",n,t):u(i)?rt(n,i,t):V(i)?(t?Mi:ki).t(n,i):o(i)?k(n,i,t?Mi:ki):o(n)?x(R(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Nt(t){return et(0,!1,t,this,void 0)}function Rt(t){return u(t)&&!0===t.isMobxAction}function Tt(t,n){function i(){t(s)}var r,e,u,o;void 0===n&&(n=Pn);var s,f=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var c=Lt(n),a=!1;s=new Ai(f,(function(){a||(a=!0,c((function(){a=!1,s.isDisposed||s.track(i)})))}),n.onError,n.requiresObservable)}else s=new Ai(f,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(u=u.signal)&&u.aborted||s.Y(),s.Z(null==(o=n)?void 0:o.signal)}function Lt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:Ti}function Ct(t,n,i){return It("onBO",t,n,i)}function Pt(t,n,i){return It("onBUO",t,n,i)}function It(t,n,i,r){var e="function"==typeof r?gn(n,i):gn(n),o=u(r)?r:i,s=t+"L";return e[s]?e[s].add(o):e[s]=new Set([o]),function(){var t=e[s];t&&(t.delete(o),0===t.size&&delete e[s])}}function Kt(t,n,i,r){var e=qn(n);return Sn((function(){var n=dn(t,r)[Hn];Wn(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Bt(t){var n,i={name:t.tt};return t.D&&t.D.length>0&&(i.dependencies=(n=t.D,Array.from(new Set(n))).map(Bt)),i}function Dt(t){var n={name:t.tt};return function(t){return t.X&&t.X.size>0}(t)&&(n.observers=Array.from(function(t){return t.X}(t)).map(Dt)),n}function Wt(){this.message="FLOW_CANCELLED"}function qt(t){u(t.cancel)&&t.cancel()}function Gt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Ht(t,n){if(void 0===n)return pi(t);if(!1===yn(t))return!1;if(!t[Hn].j.has(n))return!1;var i=gn(t,n);return pi(i)}function Ut(t,n){return!!t&&(void 0!==n?!!yn(t)&&t[Hn].j.has(n):yn(t)||!!t[Hn]||Xn(t)||xi(t)||pi(t))}function Xt(t){return Ut(t)}function Ft(t){return yn(t)?t[Hn].nt():Ji(t)||Zi(t)?Array.from(t.keys()):vn(t)?t.map((function(t,n){return n})):void n(5)}function zt(t,i){return yn(t)?t[Hn].it(i):Ji(t)||Zi(t)?t.has(i):vn(t)?i>=0&&i<t.length:void n(10)}function $t(t){if(yn(t))return t[Hn].rt();n(38)}function Jt(t,n,i){return t.set(n,i),i}function Yt(t,n){void 0===n&&(n=void 0),_t();try{return t.apply(n)}finally{At()}}function Qt(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[Hn].isDisposed){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=rt("When-effect",n),o=Tt((function(n){st(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function Zt(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=Qt(t,i,_({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function tn(t){return t[Hn]}function nn(t){return void 0!==t.et&&t.et.length>0}function rn(t,n){var i=t.et||(t.et=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function en(t,i){var r=bt();try{for(var e=[].concat(t.et||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&n(14),i);u++);return i}finally{yt(r)}}function un(t){return void 0!==t.ut&&t.ut.length>0}function on(t,n){var i=t.ut||(t.ut=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function sn(t,n){var i=bt(),r=t.ut;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);yt(i)}}function fn(t,n,i,e){return void 0===i&&(i="ObservableArray"),void 0===e&&(e=!1),r(),Sn((function(){var r=new qi(i,n,e,!1);h(r.j,Hn,r);var u=new Proxy(r.j,Wi);return r.v=u,t&&t.length&&r.ot(0,0,t),u}))}function cn(t,n){"function"==typeof Array.prototype[t]&&(Gi[t]=n(t))}function an(t){return function(){var n=this[Hn];n.st.reportObserved();var i=n.ft(n.j);return i[t].apply(i,arguments)}}function hn(t){return function(n,i){var r=this,e=this[Hn];return e.st.reportObserved(),e.ft(e.j)[t]((function(t,e){return n.call(i,t,e,r)}))}}function ln(t){return function(){var n=this,i=this[Hn];i.st.reportObserved();var r=i.ft(i.j),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function vn(t){return s(t)&&Xi(t[Hn])}function dn(t,n){var i;if(y(t,Hn))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new nr(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:J(t):void 0}(n));return a(t,Hn,e),t}function bn(t){return tr[t]||(tr[t]={get:function(){return this[Hn].O(t)},set:function(n){return this[Hn]._(t,n)}})}function yn(t){return!!s(t)&&ir(t[Hn])}function pn(t,n,i){var r;null==(r=t.h[Gn])||delete r[i]}function mn(t){return{enumerable:!1,configurable:!0,get:function(){return this[Hn].ct(t)},set:function(n){this[Hn].ht(t,n)}}}function jn(t){Tn(sr.prototype,""+t,mn(t))}function wn(t){if(t>ur){for(var n=ur;n<t+100;n++)jn(n);ur=t}}function On(t,n,i){return new sr(t,n,i)}function gn(t,i){if("object"==typeof t&&null!==t){if(vn(t))return void 0!==i&&n(23),t[Hn].st;if(Zi(t))return t.st;if(Ji(t)){if(void 0===i)return t.lt;var r=t.vt.get(i)||t.dt.get(i);return r||n(25,i,An(t)),r}if(yn(t)){if(!i)return n(26);var e=t[Hn].j.get(i);return e||n(27,i,An(t)),e}if(Xn(t)||pi(t)||xi(t))return t}else if(u(t)&&xi(t[Hn]))return t[Hn];n(28)}function _n(t,i){return t||n(29),void 0!==i?_n(gn(t,i)):Xn(t)||pi(t)||xi(t)||Ji(t)||Zi(t)?t:t[Hn]?t[Hn]:void n(24,t)}function An(t,n){var i;if(void 0!==n)i=gn(t,n);else{if(Rt(t))return t.name;i=yn(t)||Ji(t)||Zi(t)?_n(t):gn(t)}return i.tt}function Sn(t){var n=bt(),i=ft(!0);_t();try{return t()}finally{At(),ct(i),yt(n)}}function xn(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,e,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var f=fr.call(n);if(f!==fr.call(i))return!1;switch(f){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=kn(n),i=kn(i);var c="[object Array]"===f;if(!c){if("object"!=typeof n||"object"!=typeof i)return!1;var a=n.constructor,h=i.constructor;if(a!==h&&!(u(a)&&a instanceof a&&u(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var l=(e=e||[]).length;l--;)if(e[l]===n)return o[l]===i;if(e.push(n),o.push(i),c){if((l=n.length)!==i.length)return!1;for(;l--;)if(!t(n[l],i[l],r-1,e,o))return!1}else{var v,d=Object.keys(n);if(l=d.length,Object.keys(i).length!==l)return!1;for(;l--;)if(!y(i,v=d[l])||!t(n[v],i[v],r-1,e,o))return!1}return e.pop(),o.pop(),!0}(t,n,i)}function kn(t){return vn(t)?t.slice():v(t)||Ji(t)||d(t)||Zi(t)?Array.from(t.entries()):t}function Vn(t){return t[Symbol.iterator]=Mn,t}function Mn(){return this}var En={},Nn=Object.assign,Rn=Object.getOwnPropertyDescriptor,Tn=Object.defineProperty,Ln=Object.prototype,Cn=[];Object.freeze(Cn);var Pn={};Object.freeze(Pn);var In="undefined"!=typeof Proxy,Kn=Object.toString(),Bn=function(){},Dn=void 0!==Object.getOwnPropertySymbols,Wn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Dn?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qn=Object.getOwnPropertyDescriptors||function(t){var n={};return Wn(t).forEach((function(i){n[i]=Rn(t,i)})),n},Gn=Symbol("mobx-stored-annotations"),Hn=Symbol("mobx administration"),Un=function(){function t(t){void 0===t&&(t="Atom"),this.tt=void 0,this.bt=0,this.X=new Set,this.$=0,this.U=bi.I,this.onBOL=void 0,this.onBUOL=void 0,this.tt=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return St(this)},n.reportChanged=function(){_t(),xt(this),At()},n.toString=function(){return this.tt},O(t,[{key:"isBeingObserved",get:function(){return p(this.bt,t.yt)},set:function(n){this.bt=m(this.bt,t.yt,n)}},{key:"isPendingUnobservation",get:function(){return p(this.bt,t.pt)},set:function(n){this.bt=m(this.bt,t.pt,n)}},{key:"diffValue",get:function(){return p(this.bt,t.jt)?1:0},set:function(n){this.bt=m(this.bt,t.jt,1===n)}}])}();Un.yt=1,Un.pt=2,Un.jt=4;var Xn=l("Atom",Un),Fn={identity:function(t,n){return t===n},structural:function(t,n){return xn(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return xn(t,n,1)}},zn=x({i:"override",o:function(){return 0},s:function(){n("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),$n=J(),Jn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Jn);var Yn=X("observable"),Qn=X("observable.ref",{enhancer:N}),Zn=X("observable.shallow",{enhancer:function(t,n,i){return null==t||yn(t)||vn(t)||Ji(t)||Zi(t)?t:Array.isArray(t)?ei.array(t,{name:i,deep:!1}):f(t)?ei.object(t,void 0,{name:i,deep:!1}):v(t)?ei.map(t,{name:i,deep:!1}):d(t)?ei.set(t,{name:i,deep:!1}):void 0}}),ti=X("observable.struct",{enhancer:function(t,n){return xn(t,n)?n:t}}),ni=x(Yn);Nn(it,ni);var ii,ri,ei=Nn(it,{box:function(t,n){var i=tt(n);return new li(t,nt(i),i.name,!0,i.equals)},array:function(t,n){var i=tt(n);return(!1===_i.useProxies||!1===i.proxy?On:fn)(t,nt(i),i.name)},map:function(t,n){var i=tt(n);return new $i(t,nt(i),i.name)},set:function(t,n){var i=tt(n);return new Qi(t,nt(i),i.name)},object:function(t,n,i){return Sn((function(){return Kt(!1===_i.useProxies||!1===(null==i?void 0:i.proxy)?dn({},i):function(t,n){var i,e;return r(),null!=(e=(i=(t=dn(t,n))[Hn]).v)?e:i.v=new Proxy(t,Ki)}({},i),t,n)}))},ref:x(Qn),shallow:x(Zn),deep:ni,struct:x(ti)}),ui=q("computed"),oi=q("computed.struct",{equals:Fn.structural}),si=function(t,n){if(V(n))return ui.t(t,n);if(o(n))return k(t,n,ui);if(f(t))return x(q("computed",t));var i=f(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new di(i)};Object.assign(si,ui),si.struct=x(oi);var fi=0,ci=1,ai=null!=(ii=null==(ri=Rn((function(){}),"name"))?void 0:ri.configurable)&&ii,hi={value:"action",configurable:!0,writable:!1,enumerable:!1},li=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=Fn.default),(o=t.call(this,r)||this).enhancer=void 0,o.tt=void 0,o.equals=void 0,o.wt=!1,o.et=void 0,o.ut=void 0,o.Ot=void 0,o.dehancer=void 0,o.enhancer=i,o.tt=r,o.equals=u,o.Ot=i(n,void 0,r),o}A(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.gt(t))!==_i.UNCHANGED&&this._t(t)},i.gt=function(t){if(nn(this)){var n=en(this,{object:this,type:Di,newValue:t});if(!n)return _i.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.Ot,this.tt),this.equals(this.Ot,t)?_i.UNCHANGED:t},i._t=function(t){var n=this.Ot;this.Ot=t,this.reportChanged(),un(this)&&sn(this,{type:Di,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.Ot)},i.At=function(t){return rn(this,t)},i.St=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.tt,object:this,type:Di,newValue:this.Ot,oldValue:void 0}),on(this,t)},i.raw=function(){return this.Ot},i.toJSON=function(){return this.get()},i.toString=function(){return this.tt+"["+this.Ot+"]"},i.valueOf=function(){return b(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},n}(Un),vi=l("ObservableValue",li),di=function(){function t(t){this.C=bi.I,this.D=[],this.W=null,this.X=new Set,this.q=0,this.$=0,this.U=bi.P,this.G=0,this.Ot=new mi(null),this.tt=void 0,this.xt=void 0,this.bt=0,this.derivation=void 0,this.kt=void 0,this.Vt=yi.NONE,this.Mt=void 0,this.Et=void 0,this.Nt=void 0,this.Rt=void 0,this.onBOL=void 0,this.onBUOL=void 0,t.get||n(31),this.derivation=t.get,this.tt=t.name||"ComputedValue",t.set&&(this.kt=rt("ComputedValue-setter",t.set)),this.Et=t.equals||(t.compareStructural||t.struct?Fn.structural:Fn.default),this.Mt=t.context,this.Nt=t.requiresReaction,this.Rt=!!t.keepAlive}var i=t.prototype;return i.H=function(){!function(t){t.U===bi.P&&(t.U=bi.B,t.X.forEach((function(t){t.C===bi.P&&(t.C=bi.B,t.H())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.isComputing&&n(32,this.tt,this.derivation),0!==_i.inBatch||0!==this.X.size||this.Rt){if(St(this),ht(this)){var t=_i.trackingContext;this.Rt&&!t&&(_i.trackingContext=this),this.trackAndCompute()&&function(t){t.U!==bi.K&&(t.U=bi.K,t.X.forEach((function(n){n.C===bi.B?n.C=bi.K:n.C===bi.P&&(t.U=bi.P)})))}(this),_i.trackingContext=t}}else ht(this)&&(this.Tt(),_t(),this.Ot=this.Lt(!1),At());var i=this.Ot;if(at(i))throw i.cause;return i},i.set=function(t){if(this.kt){this.isRunningSetter&&n(33,this.tt),this.isRunningSetter=!0;try{this.kt.call(this.Mt,t)}finally{this.isRunningSetter=!1}}else n(34,this.tt)},i.trackAndCompute=function(){var t=this.Ot,n=this.C===bi.I,i=this.Lt(!0),r=n||at(t)||at(i)||!this.Et(t,i);return r&&(this.Ot=i),r},i.Lt=function(t){this.isComputing=!0;var n,i=ft(!1);if(t)n=lt(this,this.derivation,this.Mt);else if(!0===_i.disableErrorBoundaries)n=this.derivation.call(this.Mt);else try{n=this.derivation.call(this.Mt)}catch(t){n=new mi(t)}return ct(i),this.isComputing=!1,n},i.F=function(){this.Rt||(vt(this),this.Ot=void 0)},i.St=function(t,n){var i=this,r=!0,e=void 0;return Tt((function(){var u=i.get();if(!r||n){var o=bt();t({observableKind:"computed",debugObjectName:i.tt,type:Di,object:i,newValue:u,oldValue:e}),yt(o)}r=!1,e=u}))},i.Tt=function(){},i.toString=function(){return this.tt+"["+this.derivation.toString()+"]"},i.valueOf=function(){return b(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},O(t,[{key:"isComputing",get:function(){return p(this.bt,t.Ct)},set:function(n){this.bt=m(this.bt,t.Ct,n)}},{key:"isRunningSetter",get:function(){return p(this.bt,t.Pt)},set:function(n){this.bt=m(this.bt,t.Pt,n)}},{key:"isBeingObserved",get:function(){return p(this.bt,t.yt)},set:function(n){this.bt=m(this.bt,t.yt,n)}},{key:"isPendingUnobservation",get:function(){return p(this.bt,t.pt)},set:function(n){this.bt=m(this.bt,t.pt,n)}},{key:"diffValue",get:function(){return p(this.bt,t.jt)?1:0},set:function(n){this.bt=m(this.bt,t.jt,1===n)}}])}();di.Ct=1,di.Pt=2,di.yt=4,di.pt=8,di.jt=16;var bi,yi,pi=l("ComputedValue",di);!function(t){t[t.I=-1]="NOT_TRACKING_",t[t.P=0]="UP_TO_DATE_",t[t.B=1]="POSSIBLY_STALE_",t[t.K=2]="STALE_"}(bi||(bi={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(yi||(yi={}));var mi=function(t){this.cause=void 0,this.cause=t},ji=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],wi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Oi=!0,gi=!1,_i=function(){var t=i();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Oi=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new wi).version&&(Oi=!1),Oi?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new wi):(setTimeout((function(){gi||n(35)}),1),new wi)}(),Ai=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.tt=void 0,this.It=void 0,this.Kt=void 0,this.Bt=void 0,this.D=[],this.W=[],this.C=bi.I,this.q=0,this.G=0,this.bt=0,this.Vt=yi.NONE,this.tt=t,this.It=n,this.Kt=i,this.Bt=r}var n=t.prototype;return n.H=function(){this.Y()},n.Y=function(){this.isScheduled||(this.isScheduled=!0,_i.pendingReactions.push(this),kt())},n.J=function(){if(!this.isDisposed){_t(),this.isScheduled=!1;var t=_i.trackingContext;if(_i.trackingContext=this,ht(this)){this.isTrackPending=!0;try{this.It()}catch(t){this.Dt(t)}}_i.trackingContext=t,At()}},n.track=function(t){if(!this.isDisposed){_t(),this.isRunning=!0;var n=_i.trackingContext;_i.trackingContext=this;var i=lt(this,t,void 0);_i.trackingContext=n,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&vt(this),at(i)&&this.Dt(i.cause),At()}},n.Dt=function(t){var n=this;if(this.Kt)this.Kt(t,this);else{if(_i.disableErrorBoundaries)throw t;_i.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),_i.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(_t(),vt(this),At()))},n.Z=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[Hn]=this,i},n.toString=function(){return"Reaction["+this.tt+"]"},n.trace=function(){},O(t,[{key:"isDisposed",get:function(){return p(this.bt,t.Wt)},set:function(n){this.bt=m(this.bt,t.Wt,n)}},{key:"isScheduled",get:function(){return p(this.bt,t.qt)},set:function(n){this.bt=m(this.bt,t.qt,n)}},{key:"isTrackPending",get:function(){return p(this.bt,t.Gt)},set:function(n){this.bt=m(this.bt,t.Gt,n)}},{key:"isRunning",get:function(){return p(this.bt,t.Ht)},set:function(n){this.bt=m(this.bt,t.Ht,n)}},{key:"diffValue",get:function(){return p(this.bt,t.jt)?1:0},set:function(n){this.bt=m(this.bt,t.jt,1===n)}}])}();Ai.Wt=1,Ai.qt=2,Ai.Gt=4,Ai.Ht=8,Ai.jt=16;var Si=function(t){return t()},xi=l("Reaction",Ai),ki=R("action"),Vi=R("action.bound",{bound:!0}),Mi=R("autoAction",{autoAction:!0}),Ei=R("autoAction.bound",{autoAction:!0,bound:!0}),Ni=Et(!1);Object.assign(Ni,ki);var Ri=Et(!0);Object.assign(Ri,Mi),Ni.bound=x(Vi),Ri.bound=x(Ei);var Ti=function(t){return t()},Li=0;Wt.prototype=Object.create(Error.prototype);var Ci=I("flow"),Pi=I("flow.bound",{bound:!0}),Ii=Object.assign((function(t,n){if(V(n))return Ci.t(t,n);if(o(n))return k(t,n,Ci);var i=t,r=i.name||"<unnamed flow>",e=function(){var t,n=this,e=arguments,o=++Li,s=Ni(r+" - runid: "+o+" - init",i).apply(n,e),f=void 0,c=new Promise((function(n,i){function e(t){var n;f=void 0;try{n=Ni(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}a(n)}function c(t){var n;f=void 0;try{n=Ni(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}a(n)}function a(t){if(!u(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(e,c);t.then(a,i)}var h=0;t=i,e(void 0)}));return c.cancel=Ni(r+" - runid: "+o+" - cancel",(function(){try{f&&qt(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(Bn,Bn),qt(i),t(new Wt)}catch(n){t(n)}})),c};return e.isMobXFlow=!0,e}),Ci);Ii.bound=x(Pi);var Ki={has:function(t,n){return tn(t).it(n)},get:function(t,n){return tn(t).ct(n)},set:function(t,n,i){var r;return!!o(n)&&(null==(r=tn(t).ht(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!o(n)&&(null==(i=tn(t).Ut(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=tn(t).l(n,i))||r},ownKeys:function(t){return tn(t).rt()},preventExtensions:function(){n(13)}},Bi=Symbol("mobx-keys"),Di="update",Wi={get:function(t,n){var i=t[Hn];return n===Hn?i:"length"===n?i.Xt():"string"!=typeof n||isNaN(n)?y(Gi,n)?Gi[n]:t[n]:i.ct(parseInt(n))},set:function(t,n,i){var r=t[Hn];return"length"===n&&r.Ft(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.ht(parseInt(n),i),!0},preventExtensions:function(){n(15)}},qi=function(){function t(t,n,i,r){void 0===t&&(t="ObservableArray"),this.zt=void 0,this.$t=void 0,this.st=void 0,this.j=[],this.et=void 0,this.ut=void 0,this.Jt=void 0,this.dehancer=void 0,this.v=void 0,this.Yt=0,this.zt=i,this.$t=r,this.st=new Un(t),this.Jt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=t.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.ft=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.At=function(t){return rn(this,t)},i.St=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.v,debugObjectName:this.st.tt,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),on(this,t)},i.Xt=function(){return this.st.reportObserved(),this.j.length},i.Ft=function(t){("number"!=typeof t||isNaN(t)||t<0)&&n("Out of range: "+t);var i=this.j.length;if(t!==i)if(t>i){for(var r=new Array(t-i),e=0;e<t-i;e++)r[e]=void 0;this.ot(i,0,r)}else this.ot(t,i-t)},i.Zt=function(t,i){t!==this.Yt&&n(16),this.Yt+=i,this.$t&&i>0&&wn(t+i+1)},i.ot=function(t,n,i){var r=this,e=this.j.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=Cn),nn(this)){var u=en(this,{object:this.v,type:"splice",index:t,removedCount:n,added:i});if(!u)return Cn;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.Jt(t,void 0)})),this.$t){var o=i.length-n;this.Zt(e,o)}var s=this.tn(t,n,i);return 0===n&&0===i.length||this.nn(t,i,s),this.ft(s)},i.tn=function(t,n,i){var r;if(i.length<1e4)return(r=this.j).splice.apply(r,[t,n].concat(i));var e=this.j.slice(t,t+n),u=this.j.slice(t+n);this.j.length+=i.length-n;for(var o=0;o<i.length;o++)this.j[t+o]=i[o];for(var s=0;s<u.length;s++)this.j[t+i.length+s]=u[s];return e},i.in=function(t,n,i){var r=!this.zt&&!1,e=un(this),u=e||r?{observableKind:"array",object:this.v,type:Di,debugObjectName:this.st.tt,index:t,newValue:n,oldValue:i}:null;this.st.reportChanged(),e&&sn(this,u)},i.nn=function(t,n,i){var r=!this.zt&&!1,e=un(this),u=e||r?{observableKind:"array",object:this.v,debugObjectName:this.st.tt,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.st.reportChanged(),e&&sn(this,u)},i.ct=function(t){if(!(this.$t&&t>=this.j.length))return this.st.reportObserved(),this.Qt(this.j[t]);console.warn("[mobx] Out of bounds read: "+t)},i.ht=function(t,i){var r=this.j;if(this.$t&&t>r.length&&n(17,t,r.length),t<r.length){var e=r[t];if(nn(this)){var u=en(this,{type:Di,object:this.v,index:t,newValue:i});if(!u)return;i=u.newValue}(i=this.Jt(i,e))!==e&&(r[t]=i,this.in(t,i,e))}else{for(var o=new Array(t+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.ot(r.length,0,o)}},t}(),Gi={clear:function(){return this.splice(0)},replace:function(t){var n=this[Hn];return n.ot(0,n.j.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[Hn];switch(arguments.length){case 0:return[];case 1:return u.ot(t);case 2:return u.ot(t,n)}return u.ot(t,n,r)},spliceWithArray:function(t,n,i){return this[Hn].ot(t,n,i)},push:function(){for(var t=this[Hn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ot(t.j.length,0,i),t.j.length},pop:function(){return this.splice(Math.max(this[Hn].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Hn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ot(0,0,i),t.j.length},reverse:function(){return _i.trackingDerivation&&n(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){_i.trackingDerivation&&n(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[Hn],i=n.ft(n.j).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};cn("at",an),cn("concat",an),cn("flat",an),cn("includes",an),cn("indexOf",an),cn("join",an),cn("lastIndexOf",an),cn("slice",an),cn("toString",an),cn("toLocaleString",an),cn("toSorted",an),cn("toSpliced",an),cn("with",an),cn("every",hn),cn("filter",hn),cn("find",hn),cn("findIndex",hn),cn("findLast",hn),cn("findLastIndex",hn),cn("flatMap",hn),cn("forEach",hn),cn("map",hn),cn("some",hn),cn("toReversed",hn),cn("reduce",ln),cn("reduceRight",ln);var Hi,Ui,Xi=l("ObservableArrayAdministration",qi),Fi={},zi="add",$i=function(){function t(t,i,r){var e=this;void 0===i&&(i=E),void 0===r&&(r="ObservableMap"),this.Jt=void 0,this.tt=void 0,this[Hn]=Fi,this.vt=void 0,this.dt=void 0,this.lt=void 0,this.et=void 0,this.ut=void 0,this.dehancer=void 0,this.Jt=i,this.tt=r,u(Map)||n(18),Sn((function(){e.lt=M("ObservableMap.keys()"),e.vt=new Map,e.dt=new Map,t&&e.merge(t)}))}var i=t.prototype;return i.it=function(t){return this.vt.has(t)},i.has=function(t){var n=this;if(!_i.trackingDerivation)return this.it(t);var i=this.dt.get(t);if(!i){var r=i=new li(this.it(t),N,"ObservableMap.key?",!1);this.dt.set(t,r),Pt(r,(function(){return n.dt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.it(t);if(nn(this)){var r=en(this,{type:i?Di:zi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.rn(t,n):this.en(t,n),this},i.delete=function(t){var n=this;if(nn(this)&&!en(this,{type:"delete",object:this,name:t}))return!1;if(this.it(t)){var i=un(this),r=i?{observableKind:"map",debugObjectName:this.tt,type:"delete",object:this,oldValue:this.vt.get(t).Ot,name:t}:null;return Yt((function(){var i;n.lt.reportChanged(),null==(i=n.dt.get(t))||i._t(!1),n.vt.get(t)._t(void 0),n.vt.delete(t)})),i&&sn(this,r),!0}return!1},i.rn=function(t,n){var i=this.vt.get(t);if((n=i.gt(n))!==_i.UNCHANGED){var r=un(this),e=r?{observableKind:"map",debugObjectName:this.tt,type:Di,object:this,oldValue:i.Ot,name:t,newValue:n}:null;i._t(n),r&&sn(this,e)}},i.en=function(t,n){var i=this;Yt((function(){var r,e=new li(n,i.Jt,"ObservableMap.key",!1);i.vt.set(t,e),n=e.Ot,null==(r=i.dt.get(t))||r._t(!0),i.lt.reportChanged()}));var r=un(this);r&&sn(this,r?{observableKind:"map",debugObjectName:this.tt,type:zi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Qt(this.vt.get(t).get()):this.Qt(void 0)},i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.lt.reportObserved(),this.vt.keys()},i.values=function(){var t=this,n=this.keys();return Vn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return Vn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Symbol.iterator]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(t){var i=this;return Ji(t)&&(t=new Map(t)),Yt((function(){var r,e;f(t)?function(t){var n=Object.keys(t);if(!Dn)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Ln.propertyIsEnumerable.call(t,n)}))):n}(t).forEach((function(n){return i.set(n,t[n])})):Array.isArray(t)?t.forEach((function(t){return i.set(t[0],t[1])})):v(t)?(r=Object.getPrototypeOf(t),e=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(e)&&n(19,t),t.forEach((function(t,n){return i.set(n,t)}))):null!=t&&n(20,t)})),this},i.clear=function(){var t=this;Yt((function(){dt((function(){for(var n,i=g(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(t){var i=this;return Yt((function(){for(var r,e=function(t){if(v(t)||Ji(t))return t;if(Array.isArray(t))return new Map(t);if(f(t)){var i=new Map;for(var r in t)i.set(r,t[r]);return i}return n(21,t)}(t),u=new Map,o=!1,s=g(i.vt.keys());!(r=s()).done;){var c=r.value;if(!e.has(c))if(i.delete(c))o=!0;else{var a=i.vt.get(c);u.set(c,a)}}for(var h,l=g(e.entries());!(h=l()).done;){var d=h.value,b=d[0],y=d[1],p=i.vt.has(b);if(i.set(b,y),i.vt.has(b)){var m=i.vt.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.vt.size!==u.size)i.lt.reportChanged();else for(var j=i.vt.keys(),w=u.keys(),O=j.next(),_=w.next();!O.done;){if(O.value!==_.value){i.lt.reportChanged();break}O=j.next(),_=w.next()}i.vt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.St=function(t){return on(this,t)},i.At=function(t){return rn(this,t)},O(t,[{key:"size",get:function(){return this.lt.reportObserved(),this.vt.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Ji=l("ObservableMap",$i),Yi={},Qi=function(){function t(t,i,r){var e=this;void 0===i&&(i=E),void 0===r&&(r="ObservableSet"),this.tt=void 0,this[Hn]=Yi,this.vt=new Set,this.st=void 0,this.ut=void 0,this.et=void 0,this.dehancer=void 0,this.Jt=void 0,this.tt=r,u(Set)||n(22),this.Jt=function(t,n){return i(t,n,r)},Sn((function(){e.st=M(e.tt),t&&e.replace(t)}))}var i=t.prototype;return i.Qt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;Yt((function(){dt((function(){for(var n,i=g(t.vt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(nn(this)&&!en(this,{type:zi,object:this,newValue:t}))return this;if(!this.has(t)){Yt((function(){n.vt.add(n.Jt(t,void 0)),n.st.reportChanged()}));var i=un(this);i&&sn(this,i?{observableKind:"set",debugObjectName:this.tt,type:zi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(nn(this)&&!en(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=un(this),r=i?{observableKind:"set",debugObjectName:this.tt,type:"delete",object:this,oldValue:t}:null;return Yt((function(){n.st.reportChanged(),n.vt.delete(t)})),i&&sn(this,r),!0}return!1},i.has=function(t){return this.st.reportObserved(),this.vt.has(this.Qt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return Vn({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.st.reportObserved();var t=this,n=0,i=Array.from(this.vt.values());return Vn({next:function(){return n<i.length?{value:t.Qt(i[n++]),done:!1}:{done:!0}}})},i.intersection=function(t){return d(t)?t.intersection(this):new Set(this).intersection(t)},i.union=function(t){return d(t)?t.union(this):new Set(this).union(t)},i.difference=function(t){return new Set(this).difference(t)},i.symmetricDifference=function(t){return d(t)?t.symmetricDifference(this):new Set(this).symmetricDifference(t)},i.isSubsetOf=function(t){return new Set(this).isSubsetOf(t)},i.isSupersetOf=function(t){return new Set(this).isSupersetOf(t)},i.isDisjointFrom=function(t){return d(t)?t.isDisjointFrom(this):new Set(this).isDisjointFrom(t)},i.replace=function(t){var i=this;return Zi(t)&&(t=new Set(t)),Yt((function(){Array.isArray(t)||d(t)?(i.clear(),t.forEach((function(t){return i.add(t)}))):null!=t&&n("Cannot initialize set from "+t)})),this},i.St=function(t){return on(this,t)},i.At=function(t){return rn(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Symbol.iterator]=function(){return this.values()},O(t,[{key:"size",get:function(){return this.st.reportObserved(),this.vt.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Zi=l("ObservableSet",Qi),tr=Object.create(null),nr=function(){function t(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=$n),this.h=void 0,this.j=void 0,this.tt=void 0,this.un=void 0,this.lt=void 0,this.ut=void 0,this.et=void 0,this.v=void 0,this.p=void 0,this.on=void 0,this.sn=void 0,this.h=t,this.j=n,this.tt=i,this.un=r,this.lt=new Un("ObservableObject.keys"),this.p=f(this.h)}var i=t.prototype;return i.O=function(t){return this.j.get(t).get()},i._=function(t,n){var i=this.j.get(t);if(i instanceof di)return i.set(n),!0;if(nn(this)){var r=en(this,{type:Di,object:this.v||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.gt(n))!==_i.UNCHANGED){var e=un(this),u=e?{type:Di,observableKind:"object",debugObjectName:this.tt,object:this.v||this.h,oldValue:i.Ot,name:t,newValue:n}:null;i._t(n),e&&sn(this,u)}return!0},i.ct=function(t){return _i.trackingDerivation&&!y(this.h,t)&&this.it(t),this.h[t]},i.ht=function(t,n,i){return void 0===i&&(i=!1),y(this.h,t)?this.j.has(t)?this._(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.un,i)},i.it=function(t){if(!_i.trackingDerivation)return t in this.h;this.sn||(this.sn=new Map);var n=this.sn.get(t);return n||(n=new li(t in this.h,N,"ObservableObject.key?",!1),this.sn.set(t,n)),n.get()},i.o=function(t,i){if(!0===i&&(i=this.un),!1!==i){if(!(t in this.h)){var r;if(null!=(r=this.h[Gn])&&r[t])return;n(1,i.i,this.tt+"."+t.toString())}for(var e=this.h;e&&e!==Ln;){var u=Rn(e,t);if(u){var o=i.o(this,t,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}pn(this,0,t)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.un),!1===i)return this.l(t,n,r);var e=i.s(this,t,n,r);return e&&pn(this,0,t),e},i.l=function(t,n,i){void 0===i&&(i=!1);try{_t();var r=this.Ut(t);if(!r)return r;if(nn(this)){var e=en(this,{object:this.v||this.h,name:t,type:zi,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=_({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else Tn(this.h,t,n);this.fn(t,n.value)}finally{At()}return!0},i.g=function(t,n,i,r){void 0===r&&(r=!1);try{_t();var e=this.Ut(t);if(!e)return e;if(nn(this)){var u=en(this,{object:this.v||this.h,name:t,type:zi,newValue:n});if(!u)return null;n=u.newValue}var o=bn(t),s={configurable:!_i.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else Tn(this.h,t,s);var f=new li(n,i,"ObservableObject.key",!1);this.j.set(t,f),this.fn(t,f.Ot)}finally{At()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{_t();var r=this.Ut(t);if(!r)return r;if(nn(this)&&!en(this,{object:this.v||this.h,name:t,type:zi,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.v||this.h;var e=bn(t),u={configurable:!_i.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else Tn(this.h,t,u);this.j.set(t,new di(n)),this.fn(t,void 0)}finally{At()}return!0},i.Ut=function(t,n){if(void 0===n&&(n=!1),!y(this.h,t))return!0;if(nn(this)&&!en(this,{object:this.v||this.h,name:t,type:"remove"}))return null;try{var i;_t();var r,e=un(this),u=this.j.get(t),o=void 0;if(!u&&e&&(o=null==(r=Rn(this.h,t))?void 0:r.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];u&&(this.j.delete(t),u instanceof li&&(o=u.Ot),xt(u)),this.lt.reportChanged(),null==(i=this.sn)||null==(i=i.get(t))||i.set(t in this.h),e&&e&&sn(this,{type:"remove",observableKind:"object",object:this.v||this.h,debugObjectName:this.tt,oldValue:o,name:t})}finally{At()}return!0},i.St=function(t){return on(this,t)},i.At=function(t){return rn(this,t)},i.fn=function(t,n){var i,r=un(this);r&&r&&sn(this,r?{type:zi,observableKind:"object",debugObjectName:this.tt,object:this.v||this.h,name:t,newValue:n}:null),null==(i=this.sn)||null==(i=i.get(t))||i.set(!0),this.lt.reportChanged()},i.rt=function(){return this.lt.reportObserved(),Wn(this.h)},i.nt=function(){return this.lt.reportObserved(),Object.keys(this.h)},t}(),ir=l("ObservableObjectAdministration",nr),rr=mn(0),er=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),ur=0,or=function(){};Hi=or,Ui=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Hi.prototype,Ui):void 0!==Hi.prototype.__proto__?Hi.prototype.__proto__=Ui:Hi.prototype=Ui;var sr=function(t){function n(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,Sn((function(){var t=new qi(r,i,e,!0);t.v=u,h(u,Hn,t),n&&n.length&&u.spliceWithArray(0,0,n),er&&Object.defineProperty(u,"0",rr)})),u}A(n,t);var i=n.prototype;return i.concat=function(){this[Hn].st.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return vn(t)?t.slice():t})))},i[Symbol.iterator]=function(){var t=this,n=0;return Vn({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},O(n,[{key:"length",get:function(){return this[Hn].Xt()},set:function(t){this[Hn].Ft(t)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(or);Object.entries(Gi).forEach((function(t){var n=t[0];"concat"!==n&&a(sr.prototype,n,t[1])})),wn(1e3);var fr=Ln.toString;["Symbol","Map","Set"].forEach((function(t){void 0===i()[t]&&n("MobX requires global '"+t+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Mt,extras:{getDebugName:An},$mobx:Hn}),t.$mobx=Hn,t.FlowCancellationError=Wt,t.ObservableMap=$i,t.ObservableSet=Qi,t.Reaction=Ai,t._allowStateChanges=st,t._allowStateChangesInsideComputed=Nt,t._allowStateReadsEnd=mt,t._allowStateReadsStart=pt,t._autoAction=Ri,t._endAction=ot,t._getAdministration=_n,t._getGlobalState=function(){return _i},t._interceptReads=function(t,n,i){var r;return Ji(t)||vn(t)||vi(t)?r=_n(t):yn(t)&&(r=_n(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}},t._isComputingDerivation=function(){return null!==_i.trackingDerivation},t._resetGlobalState=function(){var t=new wi;for(var n in t)-1===ji.indexOf(n)&&(_i[n]=t[n]);_i.allowStateChanges=!_i.enforceActions},t._startAction=ut,t.action=Ni,t.autorun=Tt,t.comparer=Fn,t.computed=si,t.configure=function(t){!0===t.isolateGlobalState&&function(){if((_i.pendingReactions.length||_i.inBatch||_i.isRunningReactions)&&n(36),gi=!0,Oi){var t=i();0==--t.__mobxInstanceCount&&(t.__mobxGlobals=void 0),_i=new wi}}();var r,e,u=t.useProxies,o=t.enforceActions;if(void 0!==u&&(_i.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&(_i.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;_i.enforceActions=s,_i.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(n){n in t&&(_i[n]=!!t[n])})),_i.allowStateReads=!_i.observableRequiresReaction,t.reactionScheduler&&(r=t.reactionScheduler,e=Si,Si=function(t){return r((function(){return e(t)}))})},t.createAtom=M,t.defineProperty=function(t,i,r){if(yn(t))return t[Hn].l(i,r);n(39)},t.entries=function(t){return yn(t)?Ft(t).map((function(n){return[n,t[n]]})):Ji(t)?Ft(t).map((function(n){return[n,t.get(n)]})):Zi(t)?Array.from(t.entries()):vn(t)?t.map((function(t,n){return[n,t]})):void n(7)},t.extendObservable=Kt,t.flow=Ii,t.flowResult=function(t){return t},t.get=function(t,i){if(zt(t,i))return yn(t)?t[Hn].ct(i):Ji(t)?t.get(i):vn(t)?t[i]:void n(11)},t.getAtom=gn,t.getDebugName=An,t.getDependencyTree=function(t,n){return Bt(gn(t,n))},t.getObserverTree=function(t,n){return Dt(gn(t,n))},t.has=zt,t.intercept=function(t,n,i){return u(i)?function(t,n,i){return _n(t,n).At(i)}(t,n,i):function(t,n){return _n(t).At(n)}(t,n)},t.isAction=Rt,t.isBoxedObservable=vi,t.isComputed=function(t){return Ht(t)},t.isComputedProp=function(t,n){return Ht(t,n)},t.isFlow=Gt,t.isFlowCancellationError=function(t){return t instanceof Wt},t.isObservable=Xt,t.isObservableArray=vn,t.isObservableMap=Ji,t.isObservableObject=yn,t.isObservableProp=function(t,n){return Ut(t,n)},t.isObservableSet=Zi,t.keys=Ft,t.makeAutoObservable=function(t,n,i){return f(t)?Kt(t,t,n,i):(Sn((function(){var r=dn(t,i)[Hn];if(!t[Bi]){var e=Object.getPrototypeOf(t),u=new Set([].concat(Wn(t),Wn(e)));u.delete("constructor"),u.delete(Hn),a(e,Bi,u)}t[Bi].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)},t.makeObservable=function(t,n,i){return Sn((function(){var r=dn(t,i)[Hn];null!=n||(n=function(t){return y(t,Gn)||a(t,Gn,_({},t[Gn])),t[Gn]}(t)),Wn(n).forEach((function(t){return r.o(t,n[t])}))})),t},t.observable=ei,t.observe=function(t,n,i,r){return u(i)?function(t,n,i,r){return _n(t,n).St(i,r)}(t,n,i,r):function(t,n,i){return _n(t).St(n,i)}(t,n,i)},t.onBecomeObserved=Ct,t.onBecomeUnobserved=Pt,t.onReactionError=function(t){return _i.globalReactionErrorHandlers.push(t),function(){var n=_i.globalReactionErrorHandlers.indexOf(t);n>=0&&_i.globalReactionErrorHandlers.splice(n,1)}},t.override=zn,t.ownKeys=$t,t.reaction=function(t,n,i){function r(){if(b=!1,!p.isDisposed){var n=!1,r=c;p.track((function(){var i=st(!1,(function(){return t(p)}));n=d||!y(c,i),c=i})),(d&&i.fireImmediately||!d&&n)&&h(c,r,p),d=!1}}var e,u,o;void 0===i&&(i=Pn);var s,f,c,a=null!=(e=i.name)?e:"Reaction",h=Ni(a,i.onError?(s=i.onError,f=n,function(){try{return f.apply(this,arguments)}catch(t){s.call(this,t)}}):n),l=!i.scheduler&&!i.delay,v=Lt(i),d=!0,b=!1,y=i.compareStructural?Fn.structural:i.equals||Fn.default,p=new Ai(a,(function(){d||l?r():b||(b=!0,v(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(u=u.signal)&&u.aborted||p.Y(),p.Z(null==(o=i)?void 0:o.signal)},t.remove=function(t,i){yn(t)?t[Hn].Ut(i):Ji(t)||Zi(t)?t.delete(i):vn(t)?("number"!=typeof i&&(i=parseInt(i,10)),t.splice(i,1)):n(9)},t.runInAction=Nt,t.set=function t(i,r,e){if(2!==arguments.length||Zi(i))yn(i)?i[Hn].ht(r,e):Ji(i)?i.set(r,e):Zi(i)?i.add(r):vn(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&n("Invalid index: '"+r+"'"),_t(),r>=i.length&&(i.length=r+1),i[r]=e,At()):n(8);else{_t();var u=r;try{for(var o in u)t(i,o,u[o])}finally{At()}}},t.spy=Mt,t.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Xt(n))return n;if(vi(n)||pi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(vn(n)){var r=Jt(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Zi(n)){var e=Jt(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Ji(n)){var u=Jt(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=Jt(i,n,{});return $t(n).forEach((function(r){Ln.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)},t.trace=function(){},t.transaction=Yt,t.untracked=dt,t.values=function(t){return yn(t)?Ft(t).map((function(n){return t[n]})):Ji(t)?Ft(t).map((function(n){return t.get(n)})):Zi(t)?Array.from(t.values()):vn(t)?t.slice():void n(6)},t.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Zt(t,n):Qt(t,n,i||{})},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=mobx.umd.production.min.js.map

@@ -47,1 +47,3 @@ export declare const assign: {

};
export declare function getFlag(flags: number, mask: number): boolean;
export declare function setFlag(flags: number, mask: number, newValue: boolean): number;
{
"name": "mobx",
"version": "6.13.0",
"version": "6.13.1",
"description": "Simple, scalable state management.",

@@ -5,0 +5,0 @@ "source": "src/mobx.ts",

@@ -78,3 +78,3 @@ import {

isScheduled = false
if (!reaction.isDisposed_) {
if (!reaction.isDisposed) {
reaction.track(reactionRunner)

@@ -94,3 +94,3 @@ }

if(!opts?.signal?.aborted) {
if (!opts?.signal?.aborted) {
reaction.schedule_()

@@ -165,3 +165,3 @@ }

isScheduled = false
if (r.isDisposed_) {
if (r.isDisposed) {
return

@@ -187,3 +187,3 @@ }

if(!opts?.signal?.aborted) {
if (!opts?.signal?.aborted) {
r.schedule_()

@@ -190,0 +190,0 @@ }

@@ -41,3 +41,3 @@ import {

timeoutHandle = setTimeout(() => {
if (!disposer[$mobx].isDisposed_) {
if (!disposer[$mobx].isDisposed) {
disposer()

@@ -44,0 +44,0 @@ if (opts.onError) {

@@ -17,2 +17,4 @@ import {

import { getFlag, setFlag } from "../utils/utils"
export const $mobx = Symbol("mobx administration")

@@ -26,7 +28,9 @@

export class Atom implements IAtom {
isPendingUnobservation = false // for effective unobserving. BaseAtom has true, for extra optimization, so its onBecomeUnobserved never gets called, because it's not needed
isBeingObserved = false
private static readonly isBeingObservedMask_ = 0b001
private static readonly isPendingUnobservationMask_ = 0b010
private static readonly diffValueMask_ = 0b100
private flags_ = 0b000
observers_ = new Set<IDerivation>()
diffValue_ = 0
lastAccessedBy_ = 0

@@ -40,2 +44,24 @@ lowestObserverState_ = IDerivationState_.NOT_TRACKING_

// for effective unobserving. BaseAtom has true, for extra optimization, so its onBecomeUnobserved never gets called, because it's not needed
get isBeingObserved(): boolean {
return getFlag(this.flags_, Atom.isBeingObservedMask_)
}
set isBeingObserved(newValue: boolean) {
this.flags_ = setFlag(this.flags_, Atom.isBeingObservedMask_, newValue)
}
get isPendingUnobservation(): boolean {
return getFlag(this.flags_, Atom.isPendingUnobservationMask_)
}
set isPendingUnobservation(newValue: boolean) {
this.flags_ = setFlag(this.flags_, Atom.isPendingUnobservationMask_, newValue)
}
get diffValue(): 0 | 1 {
return getFlag(this.flags_, Atom.diffValueMask_) ? 1 : 0
}
set diffValue(newValue: 0 | 1) {
this.flags_ = setFlag(this.flags_, Atom.diffValueMask_, newValue === 1 ? true : false)
}
// onBecomeObservedListeners

@@ -42,0 +68,0 @@ public onBOL: Set<Lambda> | undefined

@@ -35,2 +35,4 @@ import {

import { getFlag, setFlag } from "../utils/utils"
export interface IComputedValue<T> {

@@ -60,14 +62,2 @@ get(): T

function getFlag(flags: number, mask: number) {
return !!(flags & mask)
}
function setFlag(flags: number, mask: number, newValue: boolean): number {
if (newValue) {
flags |= mask
} else {
flags &= ~mask
}
return flags
}
/**

@@ -97,3 +87,2 @@ * A node in the state dependency root that observes other nodes, and can be observed itself.

observers_ = new Set<IDerivation>()
diffValue_ = 0
runId_ = 0

@@ -107,7 +96,8 @@ lastAccessedBy_ = 0

private static readonly isComputingMask_ = 0b0001
private static readonly isRunningSetterMask_ = 0b0010
private static readonly isBeingObservedMask_ = 0b0100
private static readonly isPendingUnobservationMask_ = 0b1000
private flags_ = 0b0000
private static readonly isComputingMask_ = 0b00001
private static readonly isRunningSetterMask_ = 0b00010
private static readonly isBeingObservedMask_ = 0b00100
private static readonly isPendingUnobservationMask_ = 0b01000
private static readonly diffValueMask_ = 0b10000
private flags_ = 0b00000

@@ -204,2 +194,13 @@ derivation: () => T // N.B: unminified as it is used by MST

get diffValue(): 0 | 1 {
return getFlag(this.flags_, ComputedValue.diffValueMask_) ? 1 : 0
}
set diffValue(newValue: 0 | 1) {
this.flags_ = setFlag(
this.flags_,
ComputedValue.diffValueMask_,
newValue === 1 ? true : false
)
}
/**

@@ -206,0 +207,0 @@ * Returns the current value of this computed value.

@@ -238,4 +238,4 @@ import {

const dep = observing[i]
if (dep.diffValue_ === 0) {
dep.diffValue_ = 1
if (dep.diffValue === 0) {
dep.diffValue = 1
if (i0 !== i) {

@@ -263,6 +263,6 @@ observing[i0] = dep

const dep = prevObserving[l]
if (dep.diffValue_ === 0) {
if (dep.diffValue === 0) {
removeObserver(dep, derivation)
}
dep.diffValue_ = 0
dep.diffValue = 0
}

@@ -275,4 +275,4 @@

const dep = observing[i0]
if (dep.diffValue_ === 1) {
dep.diffValue_ = 0
if (dep.diffValue === 1) {
dep.diffValue = 0
addObserver(dep, derivation)

@@ -279,0 +279,0 @@ }

@@ -20,3 +20,3 @@ import {

export interface IObservable extends IDepTreeNode {
diffValue_: number
diffValue: number
/**

@@ -23,0 +23,0 @@ * Id of the derivation *run* that last accessed this observable.

@@ -25,2 +25,4 @@ import {

import { getFlag, setFlag } from "../utils/utils"
/**

@@ -59,9 +61,12 @@ * Reactions are a special kind of derivations. Several things distinguishes them from normal reactive computations

dependenciesState_ = IDerivationState_.NOT_TRACKING_
diffValue_ = 0
runId_ = 0
unboundDepsCount_ = 0
isDisposed_ = false
isScheduled_ = false
isTrackPending_ = false
isRunning_ = false
private static readonly isDisposedMask_ = 0b00001
private static readonly isScheduledMask_ = 0b00010
private static readonly isTrackPendingMask_ = 0b00100
private static readonly isRunningMask_ = 0b01000
private static readonly diffValueMask_ = 0b10000
private flags_ = 0b00000
isTracing_: TraceMode = TraceMode.NONE

@@ -76,2 +81,37 @@

get isDisposed() {
return getFlag(this.flags_, Reaction.isDisposedMask_)
}
set isDisposed(newValue: boolean) {
this.flags_ = setFlag(this.flags_, Reaction.isDisposedMask_, newValue)
}
get isScheduled() {
return getFlag(this.flags_, Reaction.isScheduledMask_)
}
set isScheduled(newValue: boolean) {
this.flags_ = setFlag(this.flags_, Reaction.isScheduledMask_, newValue)
}
get isTrackPending() {
return getFlag(this.flags_, Reaction.isTrackPendingMask_)
}
set isTrackPending(newValue: boolean) {
this.flags_ = setFlag(this.flags_, Reaction.isTrackPendingMask_, newValue)
}
get isRunning() {
return getFlag(this.flags_, Reaction.isRunningMask_)
}
set isRunning(newValue: boolean) {
this.flags_ = setFlag(this.flags_, Reaction.isRunningMask_, newValue)
}
get diffValue(): 0 | 1 {
return getFlag(this.flags_, Reaction.diffValueMask_) ? 1 : 0
}
set diffValue(newValue: 0 | 1) {
this.flags_ = setFlag(this.flags_, Reaction.diffValueMask_, newValue === 1 ? true : false)
}
onBecomeStale_() {

@@ -82,4 +122,4 @@ this.schedule_()

schedule_() {
if (!this.isScheduled_) {
this.isScheduled_ = true
if (!this.isScheduled) {
this.isScheduled = true
globalState.pendingReactions.push(this)

@@ -90,6 +130,2 @@ runReactions()

isScheduled() {
return this.isScheduled_
}
/**

@@ -99,13 +135,13 @@ * internal, use schedule() if you intend to kick off a reaction

runReaction_() {
if (!this.isDisposed_) {
if (!this.isDisposed) {
startBatch()
this.isScheduled_ = false
this.isScheduled = false
const prev = globalState.trackingContext
globalState.trackingContext = this
if (shouldCompute(this)) {
this.isTrackPending_ = true
this.isTrackPending = true
try {
this.onInvalidate_()
if (__DEV__ && this.isTrackPending_ && isSpyEnabled()) {
if (__DEV__ && this.isTrackPending && isSpyEnabled()) {
// onInvalidate didn't trigger track right away..

@@ -127,3 +163,3 @@ spyReport({

track(fn: () => void) {
if (this.isDisposed_) {
if (this.isDisposed) {
return

@@ -142,3 +178,3 @@ // console.warn("Reaction already disposed") // Note: Not a warning / error in mobx 4 either

}
this.isRunning_ = true
this.isRunning = true
const prevReaction = globalState.trackingContext // reactions could create reactions...

@@ -148,5 +184,5 @@ globalState.trackingContext = this

globalState.trackingContext = prevReaction
this.isRunning_ = false
this.isTrackPending_ = false
if (this.isDisposed_) {
this.isRunning = false
this.isTrackPending = false
if (this.isDisposed) {
// disposed during last run. Clean up everything that was bound after the dispose call.

@@ -197,5 +233,5 @@ clearObserving(this)

dispose() {
if (!this.isDisposed_) {
this.isDisposed_ = true
if (!this.isRunning_) {
if (!this.isDisposed) {
this.isDisposed = true
if (!this.isRunning) {
// if disposed while running, clean up later. Maybe not optimal, but rare case

@@ -202,0 +238,0 @@ startBatch()

@@ -215,1 +215,14 @@ import { globalState, die } from "../internal"

}
export function getFlag(flags: number, mask: number) {
return !!(flags & mask)
}
export function setFlag(flags: number, mask: number, newValue: boolean): number {
if (newValue) {
flags |= mask
} else {
flags &= ~mask
}
return flags
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc