Socket
Socket
Sign inDemoInstall

mobx

Package Overview
Dependencies
Maintainers
2
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 2.4.3 to 2.4.4

10

CHANGELOG.md

@@ -0,1 +1,11 @@

# 2.4.4
* Fixed #503: map.delete returns boolean
* Fix return type of `runInAction`, #499 by @Strate
* Fixed enumerability of observable array methods, see #496.
* Use TypeScript typeguards, #487 by @Strate
* Added overloads to `action` for better type inference, #500 by @Strate
* Fixed #502: `extendObservable` fails on objects created with `Object.create(null)`
* Implemented #480 / #488: better typings for `asMap`, by @Strate
# 2.4.3

@@ -2,0 +12,0 @@

19

lib/mobx.d.ts

@@ -51,2 +51,10 @@ export { IAtom, Atom, BaseAtom };

};
declare function action<A1, R, T extends (a1: A1) => R>(fn: T): T;
declare function action<A1, A2, R, T extends (a1: A1, a2: A2) => R>(fn: T): T;
declare function action<A1, A2, A3, R, T extends (a1: A1, a2: A2, a3: A3) => R>(fn: T): T;
declare function action<A1, A2, A3, A4, R, T extends (a1: A1, a2: A2, a3: A3, a4: A4) => R>(fn: T): T;
declare function action<A1, R, T extends (a1: A1) => R>(name: string, fn: T): T;
declare function action<A1, A2, R, T extends (a1: A1, a2: A2) => R>(name: string, fn: T): T;
declare function action<A1, A2, A3, R, T extends (a1: A1, a2: A2, a3: A3) => R>(name: string, fn: T): T;
declare function action<A1, A2, A3, A4, R, T extends (a1: A1, a2: A2, a3: A3, a4: A4) => R>(name: string, fn: T): T;
declare function action<T extends Function>(fn: T): T;

@@ -56,4 +64,4 @@ declare function action<T extends Function>(name: string, fn: T): T;

declare function action(target: Object, propertyKey: string, descriptor?: PropertyDescriptor): void;
declare function runInAction<T>(block: () => T, scope?: any): any;
declare function runInAction<T>(name: string, block: () => T, scope?: any): any;
declare function runInAction<T>(block: () => T, scope?: any): T;
declare function runInAction<T>(name: string, block: () => T, scope?: any): T;
declare function isAction(thing: any): boolean;

@@ -214,2 +222,3 @@ declare function autorun(view: (r: IReactionPublic) => void, scope?: any): any;

declare function asFlat<T>(value: T): T;
declare function asMap(): ObservableMap<any>;
declare function asMap<T>(): ObservableMap<T>;

@@ -258,3 +267,3 @@ declare function asMap<T>(entries: IMapEntries<T>, modifierFunc?: Function): ObservableMap<T>;

declare function fastArray<V>(initialValues?: V[]): IObservableArray<V>;
declare function isObservableArray(thing: any): boolean;
declare function isObservableArray(thing: any): thing is IObservableArray<any>;
interface IKeyValueMap<V> {

@@ -291,3 +300,3 @@ [key: string]: V;

set(key: string, value: V): void;
delete(key: string): void;
delete(key: string): boolean;
private _updateHasMapEntry(key, value);

@@ -314,3 +323,3 @@ private _updateValue(name, newValue);

declare function map<V>(initialValues?: IMapEntries<V> | IKeyValueMap<V>, valueModifier?: Function): ObservableMap<V>;
declare function isObservableMap(thing: any): boolean;
declare function isObservableMap(thing: any): thing is ObservableMap<any>;
interface IObjectChange {

@@ -317,0 +326,0 @@ name: string;

/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
"use strict";function e(e,n,r,o){return 1===arguments.length&&"function"==typeof e?L(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof n?L(e,n):1===arguments.length&&"string"==typeof e?t(e):t(n).apply(null,arguments)}function t(e){return function(t,n,r){return r&&"function"==typeof r.value?(r.value=L(e,r.value),r.enumerable=!1,r.configurable=!0,r):gt(e).apply(this,arguments)}}function n(e,t,n){var r="string"==typeof e?e:e.name||"<unnamed action>",o="function"==typeof e?e:t,i="function"==typeof e?t:n;return rt("function"==typeof o,"`runInAction` expects a function"),rt(0===o.length,"`runInAction` expects a function without arguments"),rt("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),$(r,o,i,void 0)}function r(e){return"function"==typeof e&&e.isMobxAction===!0}function o(e,t,n){function r(){i(s)}var o,i,a;"string"==typeof e?(o=e,i=t,a=n):"function"==typeof e&&(o=e.name||"Autorun@"+nt(),i=e,a=t),Ie(i,"autorun methods cannot have modifiers"),rt("function"==typeof i,"autorun expects a function"),a&&(i=i.bind(a));var s=new Vt(o,function(){this.track(r)});return s.schedule(),s.getDisposer()}function i(e,t,n,r){var i,a,s,u;"string"==typeof e?(i=e,a=t,s=n,u=r):"function"==typeof e&&(i="When@"+nt(),a=e,s=t,u=n);var c=o(i,function(e){if(a.call(u)){e.dispose();var t=X();s.call(u),q(t)}});return c}function a(e,t,n){return ot("`autorunUntil` is deprecated, please use `when`."),i.apply(null,arguments)}function s(e,t,n,r){function o(){a(l)}var i,a,s,u;"string"==typeof e?(i=e,a=t,s=n,u=r):"function"==typeof e&&(i=e.name||"AutorunAsync@"+nt(),a=e,s=t,u=n),void 0===s&&(s=1),u&&(a=a.bind(u));var c=!1,l=new Vt(i,function(){c||(c=!0,setTimeout(function(){c=!1,l.isDisposed||l.track(o)},s))});return l.schedule(),l.getDisposer()}function u(t,n,r,o,i,a){function s(){if(!w.isDisposed){var e=!1;w.track(function(){var t=y(w);e=lt(b,x,t),x=t}),m&&p&&l(x,w),m||e!==!0||l(x,w),m&&(m=!1)}}var u,c,l,p,f,h;"string"==typeof t?(u=t,c=n,l=r,p=o,f=i,h=a):(u=t.name||n.name||"Reaction@"+nt(),c=t,l=n,p=r,f=o,h=i),void 0===p&&(p=!1),void 0===f&&(f=0);var d=Se(c,$t.Reference),v=d[0],y=d[1],b=v===$t.Structure;h&&(y=y.bind(h),l=e(u,l.bind(h)));var m=!0,g=!1,x=void 0,w=new Vt(u,function(){f<1?s():g||(g=!0,setTimeout(function(){g=!1,s()},f))});return w.schedule(),w.getDisposer()}function c(e,t,n,r){return arguments.length<3&&"function"==typeof e?l(e,t):(rt(!n||!n.set,"@observable properties cannot have a setter: "+t),xt.apply(null,arguments))}function l(e,t){var n=Se(e,$t.Recursive),r=n[0],o=n[1];return new St(o,t,r===$t.Structure,o.name)}function p(){throw new Error("[ComputedValue] It is not allowed to assign new values to computed properties.")}function f(e,t){rt("function"==typeof e&&1===e.length,"createTransformer expects a function that accepts one argument");var n={},r=Ct.resetId,o=function(r){function o(t,n){r.call(this,function(){return e(n)},null,!1,"Transformer-"+e.name+"-"+t),this.sourceIdentifier=t,this.sourceObject=n}return mt(o,r),o.prototype.onBecomeUnobserved=function(){var e=this.value;r.prototype.onBecomeUnobserved.call(this),delete n[this.sourceIdentifier],t&&t(e,this.sourceObject)},o}(St);return function(e){r!==Ct.resetId&&(n={},r=Ct.resetId);var t=h(e),i=n[t];return i?i.get():(i=n[t]=new o(t,e),i.get())}}function h(e){if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object, got: "+e);var t=e.$transformId;return void 0===t&&(t=nt(),ft(e,"$transformId",t)),t}function d(e,t){return F()||console.warn("[mobx.expr] 'expr' should only be used inside other reactive functions."),c(e,t).get()}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return rt(arguments.length>=2,"extendObservable expected 2 or more arguments"),rt("object"==typeof e,"extendObservable expects an object as first argument"),rt(!(e instanceof Kt),"extendObservable should not be used on maps, use map.merge instead"),t.forEach(function(t){rt("object"==typeof t,"all arguments of extendObservable should be objects"),y(e,t,$t.Recursive,null)}),e}function y(e,t,n,r){var o=Me(e,r,n);for(var i in t)if(t.hasOwnProperty(i)){if(e===t&&!dt(e,i))continue;ze(o,i,t[i])}return e}function b(e,t){return m(We(e,t))}function m(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=at(e.observing).map(m)),t}function g(e,t){return x(We(e,t))}function x(e){var t={name:e.name};return e.observers&&e.observers.length>0&&(t.observers=e.observers.asArray().map(x)),t}function w(e,t,n){return"function"==typeof n?R(e,t,n):_(e,t)}function _(e,t){return ut(e)&&!Ge(e)?(ot("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),Ke(A(e)).intercept(t)):Ke(e).intercept(t)}function R(e,t,n){return ut(e)&&!Ge(e)?(ot("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),v(e,{property:e[t]}),R(e,t,n)):Ke(e,t).intercept(n)}function k(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(e instanceof Kt||e instanceof Jt)throw new Error("[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");if(Ge(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return!!e.$mobx||e instanceof Rt||e instanceof Vt||e instanceof St}function S(e,t,n){return rt(arguments.length>=2&&arguments.length<=3,"Illegal decorator config",t),vt(e,t),rt(!n||!n.get,"@observable can not be used on getters, use @computed instead"),wt.apply(null,arguments)}function A(e,t){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return S.apply(null,arguments);if(rt(arguments.length<3,"observable expects zero, one or two arguments"),k(e))return e;var n=Se(e,$t.Recursive),r=n[0],o=n[1],i=r===$t.Reference?_t.Reference:O(o);switch(i){case _t.Array:case _t.PlainObject:return Oe(o,r);case _t.Reference:case _t.ComplexObject:return new Yt(o,r);case _t.ComplexFunction:throw new Error("[mobx.observable] To be able to make a function reactive it should not have arguments. If you need an observable reference to a function, use `observable(asReference(f))`");case _t.ViewFunction:return ot("Use `computed(expr)` instead of `observable(expr)`"),c(e,t)}rt(!1,"Illegal State")}function O(e){return null===e||void 0===e?_t.Reference:"function"==typeof e?e.length?_t.ComplexFunction:_t.ViewFunction:Array.isArray(e)||e instanceof Jt?_t.Array:"object"==typeof e?ut(e)?_t.PlainObject:_t.ComplexObject:_t.Reference}function I(e,t,n,r){return"function"==typeof n?C(e,t,n,r):j(e,t,n)}function j(e,t,n){return ut(e)&&!Ge(e)?(ot("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),Ke(A(e)).observe(t,n)):Ke(e).observe(t,n)}function C(e,t,n,r){return ut(e)&&!Ge(e)?(ot("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),v(e,{property:e[t]}),C(e,t,n,r)):Ke(e,t).observe(n,r)}function E(e,t,n){function r(r){return t&&n.push([e,r]),r}if(void 0===t&&(t=!0),void 0===n&&(n=null),e instanceof Date||e instanceof RegExp)return e;if(t&&null===n&&(n=[]),t&&null!==e&&"object"==typeof e)for(var o=0,i=n.length;o<i;o++)if(n[o][0]===e)return n[o][1];if(!e)return e;if(Array.isArray(e)||e instanceof Jt){var a=r([]),s=e.map(function(e){return E(e,t,n)});a.length=s.length;for(var o=0,i=s.length;o<i;o++)a[o]=s[o];return a}if(e instanceof Kt){var u=r({});return e.forEach(function(e,r){return u[r]=E(e,t,n)}),u}if(k(e)&&e.$mobx instanceof Yt)return E(e(),t,n);if(e instanceof Yt)return E(e.get(),t,n);if("object"==typeof e){var a=r({});for(var c in e)a[c]=E(e[c],t,n);return a}return e}function V(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=null),ot("toJSON is deprecated. Use toJS instead"),E.apply(null,arguments)}function D(e){return console.log(e),e}function T(e,t){switch(arguments.length){case 0:if(e=Ct.derivationStack[Ct.derivationStack.length-1],!e)return D("whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested it's value.");break;case 2:e=We(e,t)}return e=We(e),e instanceof St?D(e.whyRun()):e instanceof Vt?D(e.whyRun()):void rt(!1,"whyRun can only be used on reactions and computed values")}function L(e,t){rt("function"==typeof t,"`action` can only be invoked on functions"),rt("string"==typeof e&&e.length>0,"actions should have valid names, got: '"+e+"'");var n=function(){return $(e,t,this,arguments)};return n.isMobxAction=!0,n}function $(e,t,n,r){var o=Ct.derivationStack;rt(!(o[o.length-1]instanceof St),"Computed values or transformers should not invoke actions or trigger other side effects");var i,a=ae();if(a){i=Date.now();var s=r&&r.length||0,u=new Array(s);if(s>0)for(var c=0;c<s;c++)u[c]=r[c];ue({type:"action",name:e,fn:t,target:n,arguments:u})}var l=X();he(e,n,!1);var p=z(!0);try{return t.apply(n,r)}finally{N(p),de(!1),q(l),a&&ce({time:Date.now()-i})}}function P(e){return 0===arguments.length?Ct.strictMode:(rt(0===Ct.derivationStack.length,"It is not allowed to set `useStrict` when a derivation is running"),Ct.strictMode=e,Ct.allowStateChanges=!e,void 0)}function M(e,t){var n=z(e),r=t();return N(n),r}function z(e){var t=Ct.allowStateChanges;return Ct.allowStateChanges=e,t}function N(e){Ct.allowStateChanges=e}function U(e){rt(e.isDirty,"atom not dirty"),e.isDirty=!1,oe(e,!0)}function F(){return Ct.derivationStack.length>0&&Ct.isTracking}function B(){Ct.allowStateChanges||rt(!1,Ct.strictMode?"It is not allowed to create or change state outside an `action` when MobX is in strict mode. Wrap the current method in `action` if this state change is intended":"It is not allowed to change the state when a computed value or transformer is being evaluated. Use 'autorun' to create reactive functions with side-effects.")}function J(e){1===++e.dependencyStaleCount&&re(e)}function G(e,t){if(rt(e.dependencyStaleCount>0,"unexpected ready notification"),t&&(e.dependencyChangeCount+=1),0===--e.dependencyStaleCount)if(e.dependencyChangeCount>0){e.dependencyChangeCount=0;var n=e.onDependenciesReady();oe(e,n)}else oe(e,!1)}function W(e,t){var n=e.observing;e.observing=new Array(n.length+100),e.unboundDepsCount=0,e.runId=++Ct.runId,Ct.derivationStack.push(e);var r=Ct.isTracking;Ct.isTracking=!0;var o,i=!0;try{o=t.call(e),i=!1}finally{if(i){var a="[mobx] An uncaught exception occurred while calculating your computed value, autorun or transformer. Or inside the render() method of an observer based React component. These functions should never throw exceptions as MobX will not always be able to recover from them. "+("Please fix the error reported after this message or enable 'Pause on (caught) exceptions' in your debugger to find the root cause. In: '"+e.name+"'. ")+"For more details see https://github.com/mobxjs/mobx/issues/462";ae()&&se({type:"error",object:this,message:a}),console.warn(a),e.unboundDepsCount=0,e.observing=n,Z()}else Ct.isTracking=r,Ct.derivationStack.length-=1,K(e,n)}return o}function K(e,t){for(var n=t.length,r=e.observing,o=r.length=e.unboundDepsCount,i=0;i<n;i++)t[i].diffValue=-1;for(var i=0;i<o;i++){var a=r[i];++a.diffValue>0&&(a.diffValue=0,ee(a,e))}for(var i=0;i<n;i++){var a=t[i];a.diffValue<0&&(a.diffValue=0,te(a,e))}}function H(e){for(var t=e.observing,n=t.length,r=0;r<n;r++)te(t[r],e);t.length=0}function Q(e){var t=X(),n=e();return q(t),n}function X(){var e=Ct.isTracking;return Ct.isTracking=!1,e}function q(e){Ct.isTracking=e}function Y(){}function Z(){Ct.resetId++;var e=new jt;for(var t in e)It.indexOf(t)===-1&&(Ct[t]=e[t]);Ct.allowStateChanges=!Ct.strictMode}function ee(e,t){e.observers.add(t)}function te(e,t){e.observers.remove(t),0===e.observers.length&&e.onBecomeUnobserved()}function ne(e){if(Ct.isTracking!==!1){var t=Ct.derivationStack[Ct.derivationStack.length-1];t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.observing[t.unboundDepsCount++]=e)}}function re(e){for(var t=e.observers.asArray(),n=t.length,r=0;r<n;r++)J(t[r]);e.staleObservers=e.staleObservers.concat(t)}function oe(e,t){e.staleObservers.splice(0).forEach(function(e){return G(e,t)})}function ie(){if(!(Ct.isRunningReactions===!0||Ct.inTransaction>0)){Ct.isRunningReactions=!0;for(var e=Ct.pendingReactions,t=0;e.length>0;){if(++t===Dt)throw new Error("Reaction doesn't converge to a stable state after "+Dt+" iterations. Probably there is a cycle in the reactive function: "+e[0]);for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction()}Ct.isRunningReactions=!1}}function ae(){return Tt}function se(e){if(!Tt)return!1;for(var t=Ct.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function ue(e){var t=ct({},e,{spyReportStart:!0});se(t)}function ce(e){se(e?ct({},e,Lt):Lt)}function le(e){return Ct.spyListeners.push(e),Tt=Ct.spyListeners.length>0,it(function(){var t=Ct.spyListeners.indexOf(e);t!==-1&&Ct.spyListeners.splice(t,1),Tt=Ct.spyListeners.length>0})}function pe(e){return ot("trackTransitions is deprecated. Use mobx.spy instead"),"boolean"==typeof e&&(ot("trackTransitions only takes a single callback function. If you are using the mobx-react-devtools, please update them first"),e=arguments[1]),e?le(e):(ot("trackTransitions without callback has been deprecated and is a no-op now. If you are using the mobx-react-devtools, please update them first"),function(){})}function fe(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0),he(e.name||"anonymous transaction",t,n);var r=e.call(t);return de(n),r}function he(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0),Ct.inTransaction+=1,n&&ae()&&ue({type:"transaction",target:t,name:e})}function de(e){if(void 0===e&&(e=!0),0===--Ct.inTransaction){for(var t=Ct.changedAtoms.splice(0),n=0,r=t.length;n<r;n++)U(t[n]);ie()}e&&ae()&&ce()}function ve(e){return e.interceptors&&e.interceptors.length>0}function ye(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),it(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function be(e,t){for(var n=X(),r=e.interceptors,o=0,i=r.length;o<i;o++)if(t=r[o](t),rt(!t||t.type,"Intercept handlers should return nothing or a change object"),!t)return null;return q(n),t}function me(e){return e.changeListeners&&e.changeListeners.length>0}function ge(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),it(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function xe(e,t){var n=X(),r=e.changeListeners;if(r){r=r.slice();for(var o=0,i=r.length;o<i;o++)Array.isArray(t)?r[o].apply(null,t):r[o](t);q(n)}}function we(e){return new Pt(e)}function _e(e){return new Mt(e)}function Re(e){return new zt(e)}function ke(e,t){return $e(e,t)}function Se(e,t){return e instanceof Pt?[$t.Reference,e.value]:e instanceof Mt?[$t.Structure,e.value]:e instanceof zt?[$t.Flat,e.value]:[t,e]}function Ae(e){return e===we?$t.Reference:e===_e?$t.Structure:e===Re?$t.Flat:(rt(void 0===e,"Cannot determine value mode from function. Please pass in one of these: mobx.asReference, mobx.asStructure or mobx.asFlat, got: "+e),$t.Recursive)}function Oe(e,t,n){var r;if(k(e))return e;switch(t){case $t.Reference:return e;case $t.Flat:Ie(e,"Items inside 'asFlat' cannot have modifiers"),r=$t.Reference;break;case $t.Structure:Ie(e,"Items inside 'asStructure' cannot have modifiers"),r=$t.Structure;break;case $t.Recursive:o=Se(e,$t.Recursive),r=o[0],e=o[1];break;default:rt(!1,"Illegal State")}return Array.isArray(e)?De(e,r,n):ut(e)&&Object.isExtensible(e)?y(e,e,r,n):e;var o}function Ie(e,t){if(e instanceof Pt||e instanceof Mt||e instanceof zt)throw new Error("[mobx] asStructure / asReference / asFlat cannot be used here. "+t)}function je(e){var t=Ce(e),n=Ee(e);Object.defineProperty(Jt.prototype,""+e,{enumerable:!1,configurable:!0,set:t,get:n})}function Ce(e){return function(t){var n=this.$mobx,r=n.values;if(Ie(t,"Modifiers cannot be used on array values. For non-reactive array values use makeReactive(asFlat(array))."),e<r.length){B();var o=r[e];if(ve(n)){var i=be(n,{type:"update",object:n.array,index:e,newValue:t});if(!i)return;t=i.newValue}t=n.makeReactiveArrayItem(t);var a=n.mode===$t.Structure?!bt(o,t):o!==t;a&&(r[e]=t,n.notifyArrayChildUpdate(e,t,o))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}}}function Ee(e){return function(){var t=this.$mobx;return t&&e<t.values.length?(t.atom.reportObserved(),t.values[e]):void console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}}function Ve(e){for(var t=Ut;t<e;t++)je(t);Ut=e}function De(e,t,n){return new Jt(e,t,n)}function Te(e){return ot("fastArray is deprecated. Please use `observable(asFlat([]))`"),De(e,$t.Flat,null)}function Le(e){return e instanceof Jt}function $e(e,t){return new Kt(e,t)}function Pe(e){return e instanceof Kt}function Me(e,t,n){if(void 0===n&&(n=$t.Recursive),Ge(e))return e.$mobx;ut(e)||(t=e.constructor.name+"@"+nt()),t||(t="ObservableObject@"+nt());var r=new Ht(e,t,n);return ht(e,"$mobx",r),r}function ze(e,t,n){e.values[t]?e.target[t]=n:Ne(e,t,n,!0)}function Ne(e,t,n,o){o&&vt(e.target,t);var i,a=e.name+"."+t,s=!0;if("function"!=typeof n||0!==n.length||r(n))if(n instanceof Mt&&"function"==typeof n.value&&0===n.value.length)i=new St(n.value,e.target,(!0),a);else{if(s=!1,ve(e)){var u=be(e,{object:e.target,name:t,type:"add",newValue:n});if(!u)return;n=u.newValue}i=new Yt(n,e.mode,a,(!1)),n=i.value}else i=new St(n,e.target,(!1),a);e.values[t]=i,o&&Object.defineProperty(e.target,t,s?Fe(t):Ue(t)),s||Je(e,e.target,t,n)}function Ue(e){var t=Qt[e];return t?t:Qt[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){Be(this,e,t)}}}function Fe(e){var t=Xt[e];return t?t:Xt[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:p}}function Be(e,t,n){var r=e.$mobx,o=r.values[t];if(ve(r)){var i=be(r,{type:"update",object:e,name:t,newValue:n});if(!i)return;n=i.newValue}if(n=o.prepareNewValue(n),n!==qt){var a=me(r),s=ae(),i=xe||me?{type:"update",object:e,oldValue:o.value,name:t,newValue:n}:null;s&&ue(i),o.setNewValue(n),a&&xe(r,i),s&&ce()}}function Je(e,t,n,r){var o=me(e),i=ae(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&ue(a),o&&xe(e,a),i&&ce()}function Ge(e){return"object"==typeof e&&null!==e&&(qe(e),e.$mobx instanceof Ht)}function We(e,t){if("object"==typeof e&&null!==e){if(Le(e))return rt(void 0===t,"It is not possible to get index atoms from arrays"),e.$mobx.atom;if(Pe(e)){if(void 0===t)return We(e._keys);var n=e._data[t]||e._hasMap[t];return rt(!!n,"the entry '"+t+"' does not exist in the observable map '"+He(e)+"'"),n}if(qe(e),Ge(e)){rt(!!t,"please specify a property");var r=e.$mobx.values[t];return rt(!!r,"no observable property '"+t+"' found on the observable object '"+He(e)+"'"),r}if(e instanceof Rt||e instanceof St||e instanceof Vt)return e}else if("function"==typeof e&&e.$mobx instanceof Vt)return e.$mobx;rt(!1,"Cannot obtain atom from "+e)}function Ke(e,t){return rt(e,"Expection some object"),void 0!==t?Ke(We(e,t)):e instanceof Rt||e instanceof St||e instanceof Vt?e:Pe(e)?e:(qe(e),e.$mobx?e.$mobx:void rt(!1,"Cannot obtain administration from "+e))}function He(e,t){var n;return n=void 0!==t?We(e,t):Ge(e)||Pe(e)?Ke(e):We(e),n.name}function Qe(e,t,n,r,o){function i(i,a,s,u){if(rt(o||Ye(arguments),"This function is a decorator, but it wasn't invoked like a decorator"),s){i.hasOwnProperty("__mobxLazyInitializers")||ft(i,"__mobxLazyInitializers",i.__mobxLazyInitializers&&i.__mobxLazyInitializers.slice()||[]);var c=s.value,l=s.initializer;return i.__mobxLazyInitializers.push(function(t){e(t,a,l?l.call(t):c,u,s)}),{enumerable:r,configurable:!0,get:function(){return this.__mobxDidRunLazyInitializers!==!0&&qe(this),t.call(this,a)},set:function(e){this.__mobxDidRunLazyInitializers!==!0&&qe(this),n.call(this,a,e)}}}var p={enumerable:r,configurable:!0,get:function(){return this.__mobxInitializedProps&&this.__mobxInitializedProps[a]===!0||Xe(this,a,void 0,e,u,s),t.call(this,a)},set:function(t){this.__mobxInitializedProps&&this.__mobxInitializedProps[a]===!0?n.call(this,a,t):Xe(this,a,t,e,u,s)}};return arguments.length<3&&Object.defineProperty(i,a,p),p}return o?function(){if(Ye(arguments))return i.apply(null,arguments);var e=arguments;return function(t,n,r){return i(t,n,r,e)}}:i}function Xe(e,t,n,r,o,i){e.hasOwnProperty("__mobxInitializedProps")||ft(e,"__mobxInitializedProps",{}),e.__mobxInitializedProps[t]=!0,r(e,t,n,o,i)}function qe(e){e.__mobxDidRunLazyInitializers!==!0&&e.__mobxLazyInitializers&&(ft(e,"__mobxDidRunLazyInitializers",!0),e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers.forEach(function(t){return t(e)}))}function Ye(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]}function Ze(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function et(e){rt(e[Zt]!==!0,"Illegal state: cannot recycle array as iterator"),ht(e,Zt,!0);var t=-1;return ht(e,"next",function(){return t++,{done:t>=this.length,value:t<this.length?this[t]:void 0}}),e}function tt(e,t){ht(e,Ze(),t)}function nt(){return++Ct.mobxGuid}function rt(e,t,n){if(!e)throw new Error("[mobx] Invariant failed: "+t+(n?" in '"+n+"'":""))}function ot(e){rn.indexOf(e)===-1&&(rn.push(e),console.error("[mobx] Deprecated: "+e))}function it(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function at(e){var t=[];return e.forEach(function(e){t.indexOf(e)===-1&&t.push(e)}),t}function st(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=" - "),!e)return"";var r=e.slice(0,t);return""+r.join(n)+(e.length>t?" (... and "+(e.length-t)+"more)":"")}function ut(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function ct(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}return e}function lt(e,t,n){return e?!bt(t,n):t!==n}function pt(e,t){for(var n=0;n<t.length;n++)ft(e,t[n],e[t[n]])}function ft(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ht(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function dt(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||n.configurable!==!1&&n.writable!==!1}function vt(e,t){rt(dt(e,t),"Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function yt(e){var t=[];for(var n in e)t.push(n);return t}function bt(e,t){if(null===e&&null===t)return!0;if(void 0===e&&void 0===t)return!0;var n=Array.isArray(e)||Le(e);if(n!==(Array.isArray(t)||Le(t)))return!1;if(n){if(e.length!==t.length)return!1;for(var r=e.length-1;r>=0;r--)if(!bt(e[r],t[r]))return!1;return!0}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(yt(e).length!==yt(t).length)return!1;for(var o in e){if(!(o in t))return!1;if(!bt(e[o],t[o]))return!1}return!0}return e===t}var mt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};Y(),exports.extras={allowStateChanges:M,getAtom:We,getDebugName:He,getDependencyTree:b,getObserverTree:g,isComputingDerivation:F,isSpyEnabled:ae,resetGlobalState:Z,spyReport:se,spyReportEnd:ce,spyReportStart:ue,trackTransitions:pe},exports._={getAdministration:Ke,resetGlobalState:Z};var gt=Qe(function(t,n,r,o,i){var a=o&&1===o.length?o[0]:r.name||n||"<unnamed action>",s=e(a,r);ft(t,n,s)},function(e){return this[e]},function(){rt(!1,"It is not allowed to assign new values to @action fields")},!1,!0);exports.action=e,exports.runInAction=n,exports.isAction=r,exports.autorun=o,exports.when=i,exports.autorunUntil=a,exports.autorunAsync=s,exports.reaction=u;var xt=Qe(function(e,t,n,r,o){rt("undefined"!=typeof o,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.");var i=o.get;rt("function"==typeof i,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'");var a=!1;r&&1===r.length&&r[0].asStructure===!0&&(a=!0);var s=Me(e,void 0,$t.Recursive);Ne(s,t,a?_e(i):i,!1)},function(e){return this.$mobx.values[e].get()},p,!1,!0);exports.computed=c,exports.createTransformer=f,exports.expr=d,exports.extendObservable=v,exports.intercept=w,exports.isObservable=k;var wt=Qe(function(e,t,n){var r=z(!0);"function"==typeof n&&(n=we(n));var o=Me(e,void 0,$t.Recursive);Ne(o,t,n,!0),N(r)},function(e){return this.$mobx.values[e].get()},function(e,t){Be(this,e,t)},!0,!1);exports.observable=A;var _t;!function(e){e[e.Reference=0]="Reference",e[e.PlainObject=1]="PlainObject",e[e.ComplexObject=2]="ComplexObject",e[e.Array=3]="Array",e[e.ViewFunction=4]="ViewFunction",e[e.ComplexFunction=5]="ComplexFunction"}(_t||(_t={})),exports.observe=I,exports.toJS=E,exports.toJSON=V,exports.whyRun=T,exports.useStrict=P;var Rt=function(){function e(e){void 0===e&&(e="Atom@"+nt()),this.name=e,this.isDirty=!1,this.staleObservers=[],this.observers=new en,this.diffValue=0,this.lastAccessedBy=0}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){ne(this)},e.prototype.reportChanged=function(){this.isDirty||(this.reportStale(),this.reportReady())},e.prototype.reportStale=function(){this.isDirty||(this.isDirty=!0,re(this))},e.prototype.reportReady=function(){rt(this.isDirty,"atom not dirty"),Ct.inTransaction>0?Ct.changedAtoms.push(this):(U(this),ie())},e.prototype.toString=function(){return this.name},e}();exports.BaseAtom=Rt;var kt=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+nt()),void 0===n&&(n=on),void 0===r&&(r=on),e.call(this,t),this.name=t,this.onBecomeObservedHandler=n,this.onBecomeUnobservedHandler=r,this.isBeingTracked=!1}return mt(t,e),t.prototype.reportObserved=function(){e.prototype.reportObserved.call(this);var t=Ct.isTracking;return t&&!this.isBeingTracked&&(this.isBeingTracked=!0,this.onBecomeObservedHandler()),t},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(Rt);exports.Atom=kt;var St=function(){function e(e,t,n,r){this.derivation=e,this.scope=t,this.compareStructural=n,this.isLazy=!0,this.isComputing=!1,this.staleObservers=[],this.observers=new en,this.observing=[],this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.unboundDepsCount=0,this.__mapid="#"+nt(),this.dependencyChangeCount=0,this.dependencyStaleCount=0,this.value=void 0,this.name=r||"ComputedValue@"+nt()}return e.prototype.peek=function(){this.isComputing=!0;var e=z(!1),t=this.derivation.call(this.scope);return N(e),this.isComputing=!1,t},e.prototype.onBecomeUnobserved=function(){H(this),this.isLazy=!0,this.value=void 0},e.prototype.onDependenciesReady=function(){var e=this.trackAndCompute();return e},e.prototype.get=function(){if(rt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),ne(this),this.dependencyStaleCount>0)return this.peek();if(this.isLazy){if(!F())return this.peek();this.isLazy=!1,this.trackAndCompute()}return this.value},e.prototype.set=function(e){throw new Error("[ComputedValue '"+name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){ae()&&se({object:this,type:"compute",fn:this.derivation,target:this.scope});var e=this.value,t=this.value=W(this,this.peek);return lt(this.compareStructural,t,e)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return o(function(){var o=n.get();if(!r||t){var a=X();e(o,i),q(a)}r=!1,i=o})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.whyRun=function(){var e=Ct.derivationStack.length>0,t=at(this.observing).map(function(e){return e.name}),n=at(this.observers.asArray()).map(function(e){return e.name}),r=this.isComputing?e?this.observers.length>0?At.INVALIDATED:At.REQUIRED:At.PEEK:At.NOT_RUNNING;if(r===At.REQUIRED){var o=Ct.derivationStack[Ct.derivationStack.length-2];o&&n.push(o.name)}return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+Ot[r]+" "+(r===At.NOT_RUNNING&&this.dependencyStaleCount>0?"(a next run is scheduled)":"")+"\n"+(this.isLazy?" * This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).\n":" * This computation will re-run if any of the following observables changes:\n "+st(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n * If the outcome of this computation changes, the following observers will be re-run:\n "+st(n)+"\n")},e}(),At;!function(e){e[e.PEEK=0]="PEEK",e[e.INVALIDATED=1]="INVALIDATED",e[e.REQUIRED=2]="REQUIRED",e[e.NOT_RUNNING=3]="NOT_RUNNING"}(At||(At={}));var Ot=(an={},an[At.PEEK]="[peek] The value of this computed value was requested outside an reaction",an[At.INVALIDATED]="[invalidated] Some observables used by this computation did change",an[At.REQUIRED]="[started] This computation is required by another computed value / reaction",an[At.NOT_RUNNING]="[idle] This compution is currently not running",an);exports.untracked=Q;var It=["mobxGuid","resetId","spyListeners","strictMode","runId"],jt=function(){function e(){this.version=3,this.derivationStack=[],this.runId=0,this.mobxGuid=0,this.inTransaction=0,this.isTracking=!1,this.isRunningReactions=!1,this.changedAtoms=[],this.pendingReactions=[],this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[]}return e}(),Ct=function(){var e=new jt;if(global.__mobservableTrackingStack||global.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(global.__mobxGlobal&&global.__mobxGlobal.version!==e.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");return global.__mobxGlobal?global.__mobxGlobal:global.__mobxGlobal=e}(),Et,Vt=function(){function e(e,t){void 0===e&&(e="Reaction@"+nt()),this.name=e,this.onInvalidate=t,this.staleObservers=nn,this.observers=Et||(Et=new en),this.observing=[],this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.unboundDepsCount=0,this.__mapid="#"+nt(),this.dependencyChangeCount=0,this.dependencyStaleCount=0,this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onDependenciesReady=function(){return this.schedule(),!1},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Ct.pendingReactions.push(this),ie())},e.prototype.isScheduled=function(){return this.dependencyStaleCount>0||this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(this._isScheduled=!1,this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&ae()&&se({object:this,type:"scheduled-reaction"}))},e.prototype.track=function(e){var t,n=ae();n&&(t=Date.now(),ue({object:this,type:"reaction",fn:e})),this._isRunning=!0,W(this,e),this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&H(this),n&&ce({time:Date.now()-t})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||H(this))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){
var e=at(this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+st(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"},e}();exports.Reaction=Vt;var Dt=100,Tt=!1,Lt={spyReportEnd:!0};exports.spy=le,exports.transaction=fe;var $t;!function(e){e[e.Recursive=0]="Recursive",e[e.Reference=1]="Reference",e[e.Structure=2]="Structure",e[e.Flat=3]="Flat"}($t||($t={})),exports.asReference=we,exports.asStructure=_e,exports.asFlat=Re;var Pt=function(){function e(e){this.value=e,Ie(e,"Modifiers are not allowed to be nested")}return e}(),Mt=function(){function e(e){this.value=e,Ie(e,"Modifiers are not allowed to be nested")}return e}(),zt=function(){function e(e){this.value=e,Ie(e,"Modifiers are not allowed to be nested")}return e}();exports.asMap=ke;var Nt=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Ut=0,Ft=function(){function e(){}return e}();Ft.prototype=[];var Bt=function(){function e(e,t,n,r){this.mode=t,this.array=n,this.owned=r,this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new Rt(e||"ObservableArray@"+nt())}return e.prototype.makeReactiveArrayItem=function(e){return Ie(e,"Array values cannot have modifiers"),this.mode===$t.Flat||this.mode===$t.Reference?e:Oe(e,this.mode,this.atom.name+"[..]")},e.prototype.intercept=function(e){return ye(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),ge(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;e!==t&&(e>t?this.spliceWithArray(t,0,new Array(e-t)):this.spliceWithArray(e,t-e))},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Ut&&Ve(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){B();var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:void 0===t||null===t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=[]),ve(this)){var o=be(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return nn;t=o.removedCount,n=o.added}n=n.map(this.makeReactiveArrayItem,this);var i=n.length-t;this.updateArrayLength(r,i);var a=(s=this.values).splice.apply(s,[e,t].concat(n));return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),a;var s},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&ae(),o=me(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&ue(i),this.atom.reportChanged(),o&&xe(this,i),r&&ce()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&ae(),o=me(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&ue(i),this.atom.reportChanged(),o&&xe(this,i),r&&ce()},e}(),Jt=function(e){function t(t,n,r,o){void 0===o&&(o=!1),e.call(this);var i=new Bt(r,n,this,o);ht(this,"$mobx",i),t&&t.length?(i.updateArrayLength(0,t.length),i.values=t.map(i.makeReactiveArrayItem,i),i.notifyArraySplice(0,i.values.slice(),nn)):i.values=[],Nt&&Object.defineProperty(i.array,"0",Gt)}return mt(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.slice(),e.map(function(e){return Le(e)?e.slice():e}))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.values},t.prototype.find=function(e,t,n){void 0===n&&(n=0),this.$mobx.atom.reportObserved();for(var r=this.$mobx.values,o=r.length,i=n;i<o;i++)if(e.call(t,r[i],i,this))return r[i]},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){this.$mobx.atom.reportObserved();var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){this.$mobx.atom.reportObserved();var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.values.indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.toString=function(){return"[mobx.array] "+Array.prototype.toString.apply(this.$mobx.values,arguments)},t.prototype.toLocaleString=function(){return"[mobx.array] "+Array.prototype.toLocaleString.apply(this.$mobx.values,arguments)},t}(Ft);tt(Jt.prototype,function(){return et(this.slice())}),pt(Jt.prototype,["constructor","observe","clear","concat","replace","toJSON","peek","find","splice","push","pop","shift","unshift","reverse","sort","remove","toString","toLocaleString"]),Object.defineProperty(Jt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some"].forEach(function(e){var t=Array.prototype[e];ft(Jt.prototype,e,function(){return this.$mobx.atom.reportObserved(),t.apply(this.$mobx.values,arguments)})});var Gt={configurable:!0,enumerable:!1,set:Ce(0),get:Ee(0)};Ve(1e3),exports.fastArray=Te,exports.isObservableArray=Le;var Wt={},Kt=function(){function e(e,t){var n=this;this.$mobx=Wt,this._data={},this._hasMap={},this.name="ObservableMap@"+nt(),this._keys=new Jt(null,$t.Reference,this.name+".keys()",(!0)),this.interceptors=null,this.changeListeners=null,this._valueMode=Ae(t),this._valueMode===$t.Flat&&(this._valueMode=$t.Reference),M(!0,function(){ut(e)?n.merge(e):Array.isArray(e)&&e.forEach(function(e){var t=e[0],r=e[1];return n.set(t,r)})})}return e.prototype._has=function(e){return"undefined"!=typeof this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(Ie(t,"[mobx.map.set] Expected unwrapped value to be inserted to key '"+e+"'. If you need to use modifiers pass them as second argument to the constructor"),ve(this)){var r=be(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return;t=r.newValue}n?this._updateValue(e,t):this._addValue(e,t)},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,ve(this)){var n=be(this,{type:"delete",object:this,name:e});if(!n)return}if(this._has(e)){var r=ae(),o=me(this),n=o||r?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;r&&ue(n),fe(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1);var n=t._data[e];n.setNewValue(void 0),t._data[e]=void 0},void 0,!1),o&&xe(this,n),r&&ce()}},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new Yt(t,$t.Reference,this.name+"."+e+"?",(!1)),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if(t=n.prepareNewValue(t),t!==qt){var r=ae(),o=me(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&ue(i),n.setNewValue(t),o&&xe(this,i),r&&ce()}},e.prototype._addValue=function(e,t){var n=this;fe(function(){var r=n._data[e]=new Yt(t,n._valueMode,n.name+"."+e,(!1));t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)},void 0,!1);var r=ae(),o=me(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&ue(i),o&&xe(this,i),r&&ce()},e.prototype.get=function(e){if(e=""+e,this.has(e))return this._data[e].get()},e.prototype.keys=function(){return et(this._keys.slice())},e.prototype.values=function(){return et(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return et(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(r){return e.call(t,n.get(r),r)})},e.prototype.merge=function(t){var n=this;return fe(function(){t instanceof e?t.keys().forEach(function(e){return n.set(e,t.get(e))}):Object.keys(t).forEach(function(e){return n.set(e,t[e])})},void 0,!1),this},e.prototype.clear=function(){var e=this;fe(function(){Q(function(){e.keys().forEach(e.delete,e)})},void 0,!1)},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJs=function(){return ot("toJs is deprecated, use toJS instead"),this.toJS()},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"'")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return rt(t!==!0,"`observe` doesn't support the fire immediately property for observable maps."),ge(this,e)},e.prototype.intercept=function(e){return ye(this,e)},e}();exports.ObservableMap=Kt,tt(Kt.prototype,function(){return this.entries()}),exports.map=$e,exports.isObservableMap=Pe;var Ht=function(){function e(e,t,n){this.target=e,this.name=t,this.mode=n,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return rt(t!==!0,"`observe` doesn't support the fire immediately property for observable objects."),ge(this,e)},e.prototype.intercept=function(e){return ye(this,e)},e}(),Qt={},Xt={};exports.isObservableObject=Ge;var qt={},Yt=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableValue@"+nt()),void 0===o&&(o=!0),e.call(this,r),this.mode=n,this.hasUnreportedChange=!1,this.value=void 0;var i=Se(t,$t.Recursive),a=i[0],s=i[1];this.mode===$t.Recursive&&(this.mode=a),this.value=Oe(s,this.mode,this.name),o&&ae()&&se({type:"create",object:this,newValue:this.value})}return mt(t,e),t.prototype.set=function(e){var t=this.value;if(e=this.prepareNewValue(e),e!==qt){var n=ae();n&&ue({type:"update",object:this,newValue:e,oldValue:t}),this.setNewValue(e),n&&ce()}},t.prototype.prepareNewValue=function(e){if(Ie(e,"Modifiers cannot be used on non-initial values."),B(),ve(this)){var t=be(this,{object:this,type:"update",newValue:e});if(!t)return qt;e=t.newValue}var n=lt(this.mode===$t.Structure,this.value,e);return n?Oe(e,this.mode,this.name):qt},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),me(this)&&xe(this,[e,t])},t.prototype.get=function(){return this.reportObserved(),this.value},t.prototype.intercept=function(e){return ye(this,e)},t.prototype.observe=function(e,t){return t&&e(this.value,void 0),ge(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t}(Rt),Zt="__$$iterating",en=function(){function e(){this.size=0,this.data={}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.asArray=function(){var e=new Array(this.size),t=0;for(var n in this.data)e[t]=this.data[n],t++;return e},e.prototype.add=function(e){var t=e.__mapid;t in this.data||(this.data[t]=e,this.size++)},e.prototype.remove=function(e){e.__mapid in this.data&&(delete this.data[e.__mapid],this.size--)},e}();exports.SimpleSet=en;var tn=function(){function e(){this.listeners=[],ot("extras.SimpleEventEmitter is deprecated and will be removed in the next major release")}return e.prototype.emit=function(){for(var e=this.listeners.slice(),t=0,n=e.length;t<n;t++)e[t].apply(null,arguments)},e.prototype.on=function(e){var t=this;return this.listeners.push(e),it(function(){var n=t.listeners.indexOf(e);n!==-1&&t.listeners.splice(n,1)})},e.prototype.once=function(e){var t=this.on(function(){t(),e.apply(this,arguments)});return t},e}();exports.SimpleEventEmitter=tn;var nn=[];Object.freeze(nn);var rn=[],on=function(){},an;
"use strict";function e(e,n,r,o){return 1===arguments.length&&"function"==typeof e?L(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof n?L(e,n):1===arguments.length&&"string"==typeof e?t(e):t(n).apply(null,arguments)}function t(e){return function(t,n,r){return r&&"function"==typeof r.value?(r.value=L(e,r.value),r.enumerable=!1,r.configurable=!0,r):xt(e).apply(this,arguments)}}function n(e,t,n){var r="string"==typeof e?e:e.name||"<unnamed action>",o="function"==typeof e?e:t,i="function"==typeof e?t:n;return rt("function"==typeof o,"`runInAction` expects a function"),rt(0===o.length,"`runInAction` expects a function without arguments"),rt("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),$(r,o,i,void 0)}function r(e){return"function"==typeof e&&e.isMobxAction===!0}function o(e,t,n){function r(){i(s)}var o,i,a;"string"==typeof e?(o=e,i=t,a=n):"function"==typeof e&&(o=e.name||"Autorun@"+nt(),i=e,a=t),Ie(i,"autorun methods cannot have modifiers"),rt("function"==typeof i,"autorun expects a function"),a&&(i=i.bind(a));var s=new Dt(o,function(){this.track(r)});return s.schedule(),s.getDisposer()}function i(e,t,n,r){var i,a,s,u;"string"==typeof e?(i=e,a=t,s=n,u=r):"function"==typeof e&&(i="When@"+nt(),a=e,s=t,u=n);var c=o(i,function(e){if(a.call(u)){e.dispose();var t=X();s.call(u),q(t)}});return c}function a(e,t,n){return ot("`autorunUntil` is deprecated, please use `when`."),i.apply(null,arguments)}function s(e,t,n,r){function o(){a(l)}var i,a,s,u;"string"==typeof e?(i=e,a=t,s=n,u=r):"function"==typeof e&&(i=e.name||"AutorunAsync@"+nt(),a=e,s=t,u=n),void 0===s&&(s=1),u&&(a=a.bind(u));var c=!1,l=new Dt(i,function(){c||(c=!0,setTimeout(function(){c=!1,l.isDisposed||l.track(o)},s))});return l.schedule(),l.getDisposer()}function u(t,n,r,o,i,a){function s(){if(!w.isDisposed){var e=!1;w.track(function(){var t=y(w);e=lt(b,x,t),x=t}),m&&p&&l(x,w),m||e!==!0||l(x,w),m&&(m=!1)}}var u,c,l,p,f,h;"string"==typeof t?(u=t,c=n,l=r,p=o,f=i,h=a):(u=t.name||n.name||"Reaction@"+nt(),c=t,l=n,p=r,f=o,h=i),void 0===p&&(p=!1),void 0===f&&(f=0);var d=Se(c,Mt.Reference),v=d[0],y=d[1],b=v===Mt.Structure;h&&(y=y.bind(h),l=e(u,l.bind(h)));var m=!0,g=!1,x=void 0,w=new Dt(u,function(){f<1?s():g||(g=!0,setTimeout(function(){g=!1,s()},f))});return w.schedule(),w.getDisposer()}function c(e,t,n,r){return arguments.length<3&&"function"==typeof e?l(e,t):(rt(!n||!n.set,"@observable properties cannot have a setter: "+t),wt.apply(null,arguments))}function l(e,t){var n=Se(e,Mt.Recursive),r=n[0],o=n[1];return new At(o,t,r===Mt.Structure,o.name)}function p(){throw new Error("[ComputedValue] It is not allowed to assign new values to computed properties.")}function f(e,t){rt("function"==typeof e&&1===e.length,"createTransformer expects a function that accepts one argument");var n={},r=Et.resetId,o=function(r){function o(t,n){r.call(this,function(){return e(n)},null,!1,"Transformer-"+e.name+"-"+t),this.sourceIdentifier=t,this.sourceObject=n}return gt(o,r),o.prototype.onBecomeUnobserved=function(){var e=this.value;r.prototype.onBecomeUnobserved.call(this),delete n[this.sourceIdentifier],t&&t(e,this.sourceObject)},o}(At);return function(e){r!==Et.resetId&&(n={},r=Et.resetId);var t=h(e),i=n[t];return i?i.get():(i=n[t]=new o(t,e),i.get())}}function h(e){if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object, got: "+e);var t=e.$transformId;return void 0===t&&(t=nt(),ht(e,"$transformId",t)),t}function d(e,t){return F()||console.warn("[mobx.expr] 'expr' should only be used inside other reactive functions."),c(e,t).get()}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return rt(arguments.length>=2,"extendObservable expected 2 or more arguments"),rt("object"==typeof e,"extendObservable expects an object as first argument"),rt(!(e instanceof Ht),"extendObservable should not be used on maps, use map.merge instead"),t.forEach(function(t){rt("object"==typeof t,"all arguments of extendObservable should be objects"),y(e,t,Mt.Recursive,null)}),e}function y(e,t,n,r){var o=ze(e,r,n);for(var i in t)if(pt(t,i)){if(e===t&&!vt(e,i))continue;Pe(o,i,t[i])}return e}function b(e,t){return m(We(e,t))}function m(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=at(e.observing).map(m)),t}function g(e,t){return x(We(e,t))}function x(e){var t={name:e.name};return e.observers&&e.observers.length>0&&(t.observers=e.observers.asArray().map(x)),t}function w(e,t,n){return"function"==typeof n?R(e,t,n):_(e,t)}function _(e,t){return ut(e)&&!Ge(e)?(ot("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),Ke(A(e)).intercept(t)):Ke(e).intercept(t)}function R(e,t,n){return ut(e)&&!Ge(e)?(ot("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),v(e,{property:e[t]}),R(e,t,n)):Ke(e,t).intercept(n)}function k(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(e instanceof Ht||e instanceof Gt)throw new Error("[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");if(Ge(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return!!e.$mobx||e instanceof kt||e instanceof Dt||e instanceof At}function S(e,t,n){return rt(arguments.length>=2&&arguments.length<=3,"Illegal decorator config",t),yt(e,t),rt(!n||!n.get,"@observable can not be used on getters, use @computed instead"),_t.apply(null,arguments)}function A(e,t){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return S.apply(null,arguments);if(rt(arguments.length<3,"observable expects zero, one or two arguments"),k(e))return e;var n=Se(e,Mt.Recursive),r=n[0],o=n[1],i=r===Mt.Reference?Rt.Reference:O(o);switch(i){case Rt.Array:case Rt.PlainObject:return Oe(o,r);case Rt.Reference:case Rt.ComplexObject:return new Zt(o,r);case Rt.ComplexFunction:throw new Error("[mobx.observable] To be able to make a function reactive it should not have arguments. If you need an observable reference to a function, use `observable(asReference(f))`");case Rt.ViewFunction:return ot("Use `computed(expr)` instead of `observable(expr)`"),c(e,t)}rt(!1,"Illegal State")}function O(e){return null===e||void 0===e?Rt.Reference:"function"==typeof e?e.length?Rt.ComplexFunction:Rt.ViewFunction:Array.isArray(e)||e instanceof Gt?Rt.Array:"object"==typeof e?ut(e)?Rt.PlainObject:Rt.ComplexObject:Rt.Reference}function I(e,t,n,r){return"function"==typeof n?C(e,t,n,r):j(e,t,n)}function j(e,t,n){return ut(e)&&!Ge(e)?(ot("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),Ke(A(e)).observe(t,n)):Ke(e).observe(t,n)}function C(e,t,n,r){return ut(e)&&!Ge(e)?(ot("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),v(e,{property:e[t]}),C(e,t,n,r)):Ke(e,t).observe(n,r)}function E(e,t,n){function r(r){return t&&n.push([e,r]),r}if(void 0===t&&(t=!0),void 0===n&&(n=null),e instanceof Date||e instanceof RegExp)return e;if(t&&null===n&&(n=[]),t&&null!==e&&"object"==typeof e)for(var o=0,i=n.length;o<i;o++)if(n[o][0]===e)return n[o][1];if(!e)return e;if(Array.isArray(e)||e instanceof Gt){var a=r([]),s=e.map(function(e){return E(e,t,n)});a.length=s.length;for(var o=0,i=s.length;o<i;o++)a[o]=s[o];return a}if(e instanceof Ht){var u=r({});return e.forEach(function(e,r){return u[r]=E(e,t,n)}),u}if(k(e)&&e.$mobx instanceof Zt)return E(e(),t,n);if(e instanceof Zt)return E(e.get(),t,n);if("object"==typeof e){var a=r({});for(var c in e)a[c]=E(e[c],t,n);return a}return e}function V(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=null),ot("toJSON is deprecated. Use toJS instead"),E.apply(null,arguments)}function D(e){return console.log(e),e}function T(e,t){switch(arguments.length){case 0:if(e=Et.derivationStack[Et.derivationStack.length-1],!e)return D("whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested it's value.");break;case 2:e=We(e,t)}return e=We(e),e instanceof At?D(e.whyRun()):e instanceof Dt?D(e.whyRun()):void rt(!1,"whyRun can only be used on reactions and computed values")}function L(e,t){rt("function"==typeof t,"`action` can only be invoked on functions"),rt("string"==typeof e&&e.length>0,"actions should have valid names, got: '"+e+"'");var n=function(){return $(e,t,this,arguments)};return n.isMobxAction=!0,n}function $(e,t,n,r){var o=Et.derivationStack;rt(!(o[o.length-1]instanceof At),"Computed values or transformers should not invoke actions or trigger other side effects");var i,a=ae();if(a){i=Date.now();var s=r&&r.length||0,u=new Array(s);if(s>0)for(var c=0;c<s;c++)u[c]=r[c];ue({type:"action",name:e,fn:t,target:n,arguments:u})}var l=X();he(e,n,!1);var p=P(!0);try{return t.apply(n,r)}finally{N(p),de(!1),q(l),a&&ce({time:Date.now()-i})}}function M(e){return 0===arguments.length?Et.strictMode:(rt(0===Et.derivationStack.length,"It is not allowed to set `useStrict` when a derivation is running"),Et.strictMode=e,Et.allowStateChanges=!e,void 0)}function z(e,t){var n=P(e),r=t();return N(n),r}function P(e){var t=Et.allowStateChanges;return Et.allowStateChanges=e,t}function N(e){Et.allowStateChanges=e}function U(e){rt(e.isDirty,"atom not dirty"),e.isDirty=!1,oe(e,!0)}function F(){return Et.derivationStack.length>0&&Et.isTracking}function B(){Et.allowStateChanges||rt(!1,Et.strictMode?"It is not allowed to create or change state outside an `action` when MobX is in strict mode. Wrap the current method in `action` if this state change is intended":"It is not allowed to change the state when a computed value or transformer is being evaluated. Use 'autorun' to create reactive functions with side-effects.")}function J(e){1===++e.dependencyStaleCount&&re(e)}function G(e,t){if(rt(e.dependencyStaleCount>0,"unexpected ready notification"),t&&(e.dependencyChangeCount+=1),0===--e.dependencyStaleCount)if(e.dependencyChangeCount>0){e.dependencyChangeCount=0;var n=e.onDependenciesReady();oe(e,n)}else oe(e,!1)}function W(e,t){var n=e.observing;e.observing=new Array(n.length+100),e.unboundDepsCount=0,e.runId=++Et.runId,Et.derivationStack.push(e);var r=Et.isTracking;Et.isTracking=!0;var o,i=!0;try{o=t.call(e),i=!1}finally{if(i){var a="[mobx] An uncaught exception occurred while calculating your computed value, autorun or transformer. Or inside the render() method of an observer based React component. These functions should never throw exceptions as MobX will not always be able to recover from them. "+("Please fix the error reported after this message or enable 'Pause on (caught) exceptions' in your debugger to find the root cause. In: '"+e.name+"'. ")+"For more details see https://github.com/mobxjs/mobx/issues/462";ae()&&se({type:"error",object:this,message:a}),console.warn(a),e.unboundDepsCount=0,e.observing=n,Z()}else Et.isTracking=r,Et.derivationStack.length-=1,K(e,n)}return o}function K(e,t){for(var n=t.length,r=e.observing,o=r.length=e.unboundDepsCount,i=0;i<n;i++)t[i].diffValue=-1;for(var i=0;i<o;i++){var a=r[i];++a.diffValue>0&&(a.diffValue=0,ee(a,e))}for(var i=0;i<n;i++){var a=t[i];a.diffValue<0&&(a.diffValue=0,te(a,e))}}function H(e){for(var t=e.observing,n=t.length,r=0;r<n;r++)te(t[r],e);t.length=0}function Q(e){var t=X(),n=e();return q(t),n}function X(){var e=Et.isTracking;return Et.isTracking=!1,e}function q(e){Et.isTracking=e}function Y(){}function Z(){Et.resetId++;var e=new Ct;for(var t in e)jt.indexOf(t)===-1&&(Et[t]=e[t]);Et.allowStateChanges=!Et.strictMode}function ee(e,t){e.observers.add(t)}function te(e,t){e.observers.remove(t),0===e.observers.length&&e.onBecomeUnobserved()}function ne(e){if(Et.isTracking!==!1){var t=Et.derivationStack[Et.derivationStack.length-1];t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.observing[t.unboundDepsCount++]=e)}}function re(e){for(var t=e.observers.asArray(),n=t.length,r=0;r<n;r++)J(t[r]);e.staleObservers=e.staleObservers.concat(t)}function oe(e,t){e.staleObservers.splice(0).forEach(function(e){return G(e,t)})}function ie(){if(!(Et.isRunningReactions===!0||Et.inTransaction>0)){Et.isRunningReactions=!0;for(var e=Et.pendingReactions,t=0;e.length>0;){if(++t===Tt)throw new Error("Reaction doesn't converge to a stable state after "+Tt+" iterations. Probably there is a cycle in the reactive function: "+e[0]);for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction()}Et.isRunningReactions=!1}}function ae(){return Lt}function se(e){if(!Lt)return!1;for(var t=Et.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function ue(e){var t=ct({},e,{spyReportStart:!0});se(t)}function ce(e){se(e?ct({},e,$t):$t)}function le(e){return Et.spyListeners.push(e),Lt=Et.spyListeners.length>0,it(function(){var t=Et.spyListeners.indexOf(e);t!==-1&&Et.spyListeners.splice(t,1),Lt=Et.spyListeners.length>0})}function pe(e){return ot("trackTransitions is deprecated. Use mobx.spy instead"),"boolean"==typeof e&&(ot("trackTransitions only takes a single callback function. If you are using the mobx-react-devtools, please update them first"),e=arguments[1]),e?le(e):(ot("trackTransitions without callback has been deprecated and is a no-op now. If you are using the mobx-react-devtools, please update them first"),function(){})}function fe(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0),he(e.name||"anonymous transaction",t,n);var r=e.call(t);return de(n),r}function he(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0),Et.inTransaction+=1,n&&ae()&&ue({type:"transaction",target:t,name:e})}function de(e){if(void 0===e&&(e=!0),0===--Et.inTransaction){for(var t=Et.changedAtoms.splice(0),n=0,r=t.length;n<r;n++)U(t[n]);ie()}e&&ae()&&ce()}function ve(e){return e.interceptors&&e.interceptors.length>0}function ye(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),it(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function be(e,t){for(var n=X(),r=e.interceptors,o=0,i=r.length;o<i;o++)if(t=r[o](t),rt(!t||t.type,"Intercept handlers should return nothing or a change object"),!t)return null;return q(n),t}function me(e){return e.changeListeners&&e.changeListeners.length>0}function ge(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),it(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function xe(e,t){var n=X(),r=e.changeListeners;if(r){r=r.slice();for(var o=0,i=r.length;o<i;o++)Array.isArray(t)?r[o].apply(null,t):r[o](t);q(n)}}function we(e){return new zt(e)}function _e(e){return new Pt(e)}function Re(e){return new Nt(e)}function ke(e,t){return $e(e,t)}function Se(e,t){return e instanceof zt?[Mt.Reference,e.value]:e instanceof Pt?[Mt.Structure,e.value]:e instanceof Nt?[Mt.Flat,e.value]:[t,e]}function Ae(e){return e===we?Mt.Reference:e===_e?Mt.Structure:e===Re?Mt.Flat:(rt(void 0===e,"Cannot determine value mode from function. Please pass in one of these: mobx.asReference, mobx.asStructure or mobx.asFlat, got: "+e),Mt.Recursive)}function Oe(e,t,n){var r;if(k(e))return e;switch(t){case Mt.Reference:return e;case Mt.Flat:Ie(e,"Items inside 'asFlat' cannot have modifiers"),r=Mt.Reference;break;case Mt.Structure:Ie(e,"Items inside 'asStructure' cannot have modifiers"),r=Mt.Structure;break;case Mt.Recursive:o=Se(e,Mt.Recursive),r=o[0],e=o[1];break;default:rt(!1,"Illegal State")}return Array.isArray(e)?De(e,r,n):ut(e)&&Object.isExtensible(e)?y(e,e,r,n):e;var o}function Ie(e,t){if(e instanceof zt||e instanceof Pt||e instanceof Nt)throw new Error("[mobx] asStructure / asReference / asFlat cannot be used here. "+t)}function je(e){var t=Ce(e),n=Ee(e);Object.defineProperty(Gt.prototype,""+e,{enumerable:!1,configurable:!0,set:t,get:n})}function Ce(e){return function(t){var n=this.$mobx,r=n.values;if(Ie(t,"Modifiers cannot be used on array values. For non-reactive array values use makeReactive(asFlat(array))."),e<r.length){B();var o=r[e];if(ve(n)){var i=be(n,{type:"update",object:n.array,index:e,newValue:t});if(!i)return;t=i.newValue}t=n.makeReactiveArrayItem(t);var a=n.mode===Mt.Structure?!mt(o,t):o!==t;a&&(r[e]=t,n.notifyArrayChildUpdate(e,t,o))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}}}function Ee(e){return function(){var t=this.$mobx;return t&&e<t.values.length?(t.atom.reportObserved(),t.values[e]):void console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}}function Ve(e){for(var t=Ft;t<e;t++)je(t);Ft=e}function De(e,t,n){return new Gt(e,t,n)}function Te(e){return ot("fastArray is deprecated. Please use `observable(asFlat([]))`"),De(e,Mt.Flat,null)}function Le(e){return e instanceof Gt}function $e(e,t){return new Ht(e,t)}function Me(e){return e instanceof Ht}function ze(e,t,n){if(void 0===n&&(n=Mt.Recursive),Ge(e))return e.$mobx;ut(e)||(t=e.constructor.name+"@"+nt()),t||(t="ObservableObject@"+nt());var r=new Qt(e,t,n);return dt(e,"$mobx",r),r}function Pe(e,t,n){e.values[t]?e.target[t]=n:Ne(e,t,n,!0)}function Ne(e,t,n,o){o&&yt(e.target,t);var i,a=e.name+"."+t,s=!0;if("function"!=typeof n||0!==n.length||r(n))if(n instanceof Pt&&"function"==typeof n.value&&0===n.value.length)i=new At(n.value,e.target,(!0),a);else{if(s=!1,ve(e)){var u=be(e,{object:e.target,name:t,type:"add",newValue:n});if(!u)return;n=u.newValue}i=new Zt(n,e.mode,a,(!1)),n=i.value}else i=new At(n,e.target,(!1),a);e.values[t]=i,o&&Object.defineProperty(e.target,t,s?Fe(t):Ue(t)),s||Je(e,e.target,t,n)}function Ue(e){var t=Xt[e];return t?t:Xt[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){Be(this,e,t)}}}function Fe(e){var t=qt[e];return t?t:qt[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:p}}function Be(e,t,n){var r=e.$mobx,o=r.values[t];if(ve(r)){var i=be(r,{type:"update",object:e,name:t,newValue:n});if(!i)return;n=i.newValue}if(n=o.prepareNewValue(n),n!==Yt){var a=me(r),s=ae(),i=xe||me?{type:"update",object:e,oldValue:o.value,name:t,newValue:n}:null;s&&ue(i),o.setNewValue(n),a&&xe(r,i),s&&ce()}}function Je(e,t,n,r){var o=me(e),i=ae(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&ue(a),o&&xe(e,a),i&&ce()}function Ge(e){return"object"==typeof e&&null!==e&&(qe(e),e.$mobx instanceof Qt)}function We(e,t){if("object"==typeof e&&null!==e){if(Le(e))return rt(void 0===t,"It is not possible to get index atoms from arrays"),e.$mobx.atom;if(Me(e)){if(void 0===t)return We(e._keys);var n=e._data[t]||e._hasMap[t];return rt(!!n,"the entry '"+t+"' does not exist in the observable map '"+He(e)+"'"),n}if(qe(e),Ge(e)){rt(!!t,"please specify a property");var r=e.$mobx.values[t];return rt(!!r,"no observable property '"+t+"' found on the observable object '"+He(e)+"'"),r}if(e instanceof kt||e instanceof At||e instanceof Dt)return e}else if("function"==typeof e&&e.$mobx instanceof Dt)return e.$mobx;rt(!1,"Cannot obtain atom from "+e)}function Ke(e,t){return rt(e,"Expection some object"),void 0!==t?Ke(We(e,t)):e instanceof kt||e instanceof At||e instanceof Dt?e:Me(e)?e:(qe(e),e.$mobx?e.$mobx:void rt(!1,"Cannot obtain administration from "+e))}function He(e,t){var n;return n=void 0!==t?We(e,t):Ge(e)||Me(e)?Ke(e):We(e),n.name}function Qe(e,t,n,r,o){function i(i,a,s,u){if(rt(o||Ye(arguments),"This function is a decorator, but it wasn't invoked like a decorator"),s){pt(i,"__mobxLazyInitializers")||ht(i,"__mobxLazyInitializers",i.__mobxLazyInitializers&&i.__mobxLazyInitializers.slice()||[]);var c=s.value,l=s.initializer;return i.__mobxLazyInitializers.push(function(t){e(t,a,l?l.call(t):c,u,s)}),{enumerable:r,configurable:!0,get:function(){return this.__mobxDidRunLazyInitializers!==!0&&qe(this),t.call(this,a)},set:function(e){this.__mobxDidRunLazyInitializers!==!0&&qe(this),n.call(this,a,e)}}}var p={enumerable:r,configurable:!0,get:function(){return this.__mobxInitializedProps&&this.__mobxInitializedProps[a]===!0||Xe(this,a,void 0,e,u,s),t.call(this,a)},set:function(t){this.__mobxInitializedProps&&this.__mobxInitializedProps[a]===!0?n.call(this,a,t):Xe(this,a,t,e,u,s)}};return arguments.length<3&&Object.defineProperty(i,a,p),p}return o?function(){if(Ye(arguments))return i.apply(null,arguments);var e=arguments;return function(t,n,r){return i(t,n,r,e)}}:i}function Xe(e,t,n,r,o,i){pt(e,"__mobxInitializedProps")||ht(e,"__mobxInitializedProps",{}),e.__mobxInitializedProps[t]=!0,r(e,t,n,o,i)}function qe(e){e.__mobxDidRunLazyInitializers!==!0&&e.__mobxLazyInitializers&&(ht(e,"__mobxDidRunLazyInitializers",!0),e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers.forEach(function(t){return t(e)}))}function Ye(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]}function Ze(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function et(e){rt(e[en]!==!0,"Illegal state: cannot recycle array as iterator"),dt(e,en,!0);var t=-1;return dt(e,"next",function(){return t++,{done:t>=this.length,value:t<this.length?this[t]:void 0}}),e}function tt(e,t){dt(e,Ze(),t)}function nt(){return++Et.mobxGuid}function rt(e,t,n){if(!e)throw new Error("[mobx] Invariant failed: "+t+(n?" in '"+n+"'":""))}function ot(e){on.indexOf(e)===-1&&(on.push(e),console.error("[mobx] Deprecated: "+e))}function it(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function at(e){var t=[];return e.forEach(function(e){t.indexOf(e)===-1&&t.push(e)}),t}function st(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=" - "),!e)return"";var r=e.slice(0,t);return""+r.join(n)+(e.length>t?" (... and "+(e.length-t)+"more)":"")}function ut(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function ct(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var o in r)pt(r,o)&&(e[o]=r[o])}return e}function lt(e,t,n){return e?!mt(t,n):t!==n}function pt(e,t){return sn.call(e,t)}function ft(e,t){for(var n=0;n<t.length;n++)ht(e,t[n],e[t[n]])}function ht(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function dt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function vt(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||n.configurable!==!1&&n.writable!==!1}function yt(e,t){rt(vt(e,t),"Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function bt(e){var t=[];for(var n in e)t.push(n);return t}function mt(e,t){if(null===e&&null===t)return!0;if(void 0===e&&void 0===t)return!0;var n=Array.isArray(e)||Le(e);if(n!==(Array.isArray(t)||Le(t)))return!1;if(n){if(e.length!==t.length)return!1;for(var r=e.length-1;r>=0;r--)if(!mt(e[r],t[r]))return!1;return!0}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(bt(e).length!==bt(t).length)return!1;for(var o in e){if(!(o in t))return!1;if(!mt(e[o],t[o]))return!1}return!0}return e===t}var gt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};Y(),exports.extras={allowStateChanges:z,getAtom:We,getDebugName:He,getDependencyTree:b,getObserverTree:g,isComputingDerivation:F,isSpyEnabled:ae,resetGlobalState:Z,spyReport:se,spyReportEnd:ce,spyReportStart:ue,trackTransitions:pe},exports._={getAdministration:Ke,resetGlobalState:Z};var xt=Qe(function(t,n,r,o,i){var a=o&&1===o.length?o[0]:r.name||n||"<unnamed action>",s=e(a,r);ht(t,n,s)},function(e){return this[e]},function(){rt(!1,"It is not allowed to assign new values to @action fields")},!1,!0);exports.action=e,exports.runInAction=n,exports.isAction=r,exports.autorun=o,exports.when=i,exports.autorunUntil=a,exports.autorunAsync=s,exports.reaction=u;var wt=Qe(function(e,t,n,r,o){rt("undefined"!=typeof o,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.");var i=o.get;rt("function"==typeof i,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'");var a=!1;r&&1===r.length&&r[0].asStructure===!0&&(a=!0);var s=ze(e,void 0,Mt.Recursive);Ne(s,t,a?_e(i):i,!1)},function(e){return this.$mobx.values[e].get()},p,!1,!0);exports.computed=c,exports.createTransformer=f,exports.expr=d,exports.extendObservable=v,exports.intercept=w,exports.isObservable=k;var _t=Qe(function(e,t,n){var r=P(!0);"function"==typeof n&&(n=we(n));var o=ze(e,void 0,Mt.Recursive);Ne(o,t,n,!0),N(r)},function(e){return this.$mobx.values[e].get()},function(e,t){Be(this,e,t)},!0,!1);exports.observable=A;var Rt;!function(e){e[e.Reference=0]="Reference",e[e.PlainObject=1]="PlainObject",e[e.ComplexObject=2]="ComplexObject",e[e.Array=3]="Array",e[e.ViewFunction=4]="ViewFunction",e[e.ComplexFunction=5]="ComplexFunction"}(Rt||(Rt={})),exports.observe=I,exports.toJS=E,exports.toJSON=V,exports.whyRun=T,exports.useStrict=M;var kt=function(){function e(e){void 0===e&&(e="Atom@"+nt()),this.name=e,this.isDirty=!1,this.staleObservers=[],this.observers=new tn,this.diffValue=0,this.lastAccessedBy=0}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){ne(this)},e.prototype.reportChanged=function(){this.isDirty||(this.reportStale(),this.reportReady())},e.prototype.reportStale=function(){this.isDirty||(this.isDirty=!0,re(this))},e.prototype.reportReady=function(){rt(this.isDirty,"atom not dirty"),Et.inTransaction>0?Et.changedAtoms.push(this):(U(this),ie())},e.prototype.toString=function(){return this.name},e}();exports.BaseAtom=kt;var St=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+nt()),void 0===n&&(n=an),void 0===r&&(r=an),e.call(this,t),this.name=t,this.onBecomeObservedHandler=n,this.onBecomeUnobservedHandler=r,this.isBeingTracked=!1}return gt(t,e),t.prototype.reportObserved=function(){e.prototype.reportObserved.call(this);var t=Et.isTracking;return t&&!this.isBeingTracked&&(this.isBeingTracked=!0,this.onBecomeObservedHandler()),t},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(kt);exports.Atom=St;var At=function(){function e(e,t,n,r){this.derivation=e,this.scope=t,this.compareStructural=n,this.isLazy=!0,this.isComputing=!1,this.staleObservers=[],this.observers=new tn,this.observing=[],this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.unboundDepsCount=0,this.__mapid="#"+nt(),this.dependencyChangeCount=0,this.dependencyStaleCount=0,this.value=void 0,this.name=r||"ComputedValue@"+nt()}return e.prototype.peek=function(){this.isComputing=!0;var e=P(!1),t=this.derivation.call(this.scope);return N(e),this.isComputing=!1,t},e.prototype.onBecomeUnobserved=function(){H(this),this.isLazy=!0,this.value=void 0},e.prototype.onDependenciesReady=function(){var e=this.trackAndCompute();return e},e.prototype.get=function(){if(rt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),ne(this),this.dependencyStaleCount>0)return this.peek();if(this.isLazy){if(!F())return this.peek();this.isLazy=!1,this.trackAndCompute()}return this.value},e.prototype.set=function(e){throw new Error("[ComputedValue '"+name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){ae()&&se({object:this,type:"compute",fn:this.derivation,target:this.scope});var e=this.value,t=this.value=W(this,this.peek);return lt(this.compareStructural,t,e)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return o(function(){var o=n.get();if(!r||t){var a=X();e(o,i),q(a)}r=!1,i=o})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.whyRun=function(){var e=Et.derivationStack.length>0,t=at(this.observing).map(function(e){return e.name}),n=at(this.observers.asArray()).map(function(e){return e.name}),r=this.isComputing?e?this.observers.length>0?Ot.INVALIDATED:Ot.REQUIRED:Ot.PEEK:Ot.NOT_RUNNING;if(r===Ot.REQUIRED){var o=Et.derivationStack[Et.derivationStack.length-2];o&&n.push(o.name)}return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+It[r]+" "+(r===Ot.NOT_RUNNING&&this.dependencyStaleCount>0?"(a next run is scheduled)":"")+"\n"+(this.isLazy?" * This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).\n":" * This computation will re-run if any of the following observables changes:\n "+st(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n * If the outcome of this computation changes, the following observers will be re-run:\n "+st(n)+"\n")},e}(),Ot;!function(e){e[e.PEEK=0]="PEEK",e[e.INVALIDATED=1]="INVALIDATED",e[e.REQUIRED=2]="REQUIRED",e[e.NOT_RUNNING=3]="NOT_RUNNING"}(Ot||(Ot={}));var It=(un={},un[Ot.PEEK]="[peek] The value of this computed value was requested outside an reaction",un[Ot.INVALIDATED]="[invalidated] Some observables used by this computation did change",un[Ot.REQUIRED]="[started] This computation is required by another computed value / reaction",un[Ot.NOT_RUNNING]="[idle] This compution is currently not running",un);exports.untracked=Q;var jt=["mobxGuid","resetId","spyListeners","strictMode","runId"],Ct=function(){function e(){this.version=3,this.derivationStack=[],this.runId=0,this.mobxGuid=0,this.inTransaction=0,this.isTracking=!1,this.isRunningReactions=!1,this.changedAtoms=[],this.pendingReactions=[],this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[]}return e}(),Et=function(){var e=new Ct;if(global.__mobservableTrackingStack||global.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(global.__mobxGlobal&&global.__mobxGlobal.version!==e.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");return global.__mobxGlobal?global.__mobxGlobal:global.__mobxGlobal=e}(),Vt,Dt=function(){function e(e,t){void 0===e&&(e="Reaction@"+nt()),this.name=e,this.onInvalidate=t,this.staleObservers=rn,this.observers=Vt||(Vt=new tn),this.observing=[],this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.unboundDepsCount=0,this.__mapid="#"+nt(),this.dependencyChangeCount=0,this.dependencyStaleCount=0,this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onDependenciesReady=function(){return this.schedule(),!1},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Et.pendingReactions.push(this),ie())},e.prototype.isScheduled=function(){return this.dependencyStaleCount>0||this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(this._isScheduled=!1,this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&ae()&&se({object:this,type:"scheduled-reaction"}))},e.prototype.track=function(e){var t,n=ae();n&&(t=Date.now(),ue({object:this,type:"reaction",fn:e})),this._isRunning=!0,W(this,e),this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&H(this),n&&ce({time:Date.now()-t})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||H(this))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){
var e=at(this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+st(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"},e}();exports.Reaction=Dt;var Tt=100,Lt=!1,$t={spyReportEnd:!0};exports.spy=le,exports.transaction=fe;var Mt;!function(e){e[e.Recursive=0]="Recursive",e[e.Reference=1]="Reference",e[e.Structure=2]="Structure",e[e.Flat=3]="Flat"}(Mt||(Mt={})),exports.asReference=we,exports.asStructure=_e,exports.asFlat=Re;var zt=function(){function e(e){this.value=e,Ie(e,"Modifiers are not allowed to be nested")}return e}(),Pt=function(){function e(e){this.value=e,Ie(e,"Modifiers are not allowed to be nested")}return e}(),Nt=function(){function e(e){this.value=e,Ie(e,"Modifiers are not allowed to be nested")}return e}();exports.asMap=ke;var Ut=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Ft=0,Bt=function(){function e(){}return e}();Bt.prototype=[];var Jt=function(){function e(e,t,n,r){this.mode=t,this.array=n,this.owned=r,this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new kt(e||"ObservableArray@"+nt())}return e.prototype.makeReactiveArrayItem=function(e){return Ie(e,"Array values cannot have modifiers"),this.mode===Mt.Flat||this.mode===Mt.Reference?e:Oe(e,this.mode,this.atom.name+"[..]")},e.prototype.intercept=function(e){return ye(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),ge(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;e!==t&&(e>t?this.spliceWithArray(t,0,new Array(e-t)):this.spliceWithArray(e,t-e))},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Ft&&Ve(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){B();var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:void 0===t||null===t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=[]),ve(this)){var o=be(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return rn;t=o.removedCount,n=o.added}n=n.map(this.makeReactiveArrayItem,this);var i=n.length-t;this.updateArrayLength(r,i);var a=(s=this.values).splice.apply(s,[e,t].concat(n));return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),a;var s},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&ae(),o=me(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&ue(i),this.atom.reportChanged(),o&&xe(this,i),r&&ce()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&ae(),o=me(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&ue(i),this.atom.reportChanged(),o&&xe(this,i),r&&ce()},e}(),Gt=function(e){function t(t,n,r,o){void 0===o&&(o=!1),e.call(this);var i=new Jt(r,n,this,o);dt(this,"$mobx",i),t&&t.length?(i.updateArrayLength(0,t.length),i.values=t.map(i.makeReactiveArrayItem,i),i.notifyArraySplice(0,i.values.slice(),rn)):i.values=[],Ut&&Object.defineProperty(i.array,"0",Wt)}return gt(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.slice(),e.map(function(e){return Le(e)?e.slice():e}))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.values},t.prototype.find=function(e,t,n){void 0===n&&(n=0),this.$mobx.atom.reportObserved();for(var r=this.$mobx.values,o=r.length,i=n;i<o;i++)if(e.call(t,r[i],i,this))return r[i]},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){this.$mobx.atom.reportObserved();var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){this.$mobx.atom.reportObserved();var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.values.indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.toString=function(){return"[mobx.array] "+Array.prototype.toString.apply(this.$mobx.values,arguments)},t.prototype.toLocaleString=function(){return"[mobx.array] "+Array.prototype.toLocaleString.apply(this.$mobx.values,arguments)},t}(Bt);tt(Gt.prototype,function(){return et(this.slice())}),ft(Gt.prototype,["constructor","intercept","observe","clear","concat","replace","toJS","toJSON","peek","find","splice","push","pop","shift","unshift","reverse","sort","remove","toString","toLocaleString"]),Object.defineProperty(Gt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some"].forEach(function(e){var t=Array.prototype[e];ht(Gt.prototype,e,function(){return this.$mobx.atom.reportObserved(),t.apply(this.$mobx.values,arguments)})});var Wt={configurable:!0,enumerable:!1,set:Ce(0),get:Ee(0)};Ve(1e3),exports.fastArray=Te,exports.isObservableArray=Le;var Kt={},Ht=function(){function e(e,t){var n=this;this.$mobx=Kt,this._data={},this._hasMap={},this.name="ObservableMap@"+nt(),this._keys=new Gt(null,Mt.Reference,this.name+".keys()",(!0)),this.interceptors=null,this.changeListeners=null,this._valueMode=Ae(t),this._valueMode===Mt.Flat&&(this._valueMode=Mt.Reference),z(!0,function(){ut(e)?n.merge(e):Array.isArray(e)&&e.forEach(function(e){var t=e[0],r=e[1];return n.set(t,r)})})}return e.prototype._has=function(e){return"undefined"!=typeof this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(Ie(t,"[mobx.map.set] Expected unwrapped value to be inserted to key '"+e+"'. If you need to use modifiers pass them as second argument to the constructor"),ve(this)){var r=be(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return;t=r.newValue}n?this._updateValue(e,t):this._addValue(e,t)},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,ve(this)){var n=be(this,{type:"delete",object:this,name:e});if(!n)return!1}if(this._has(e)){var r=ae(),o=me(this),n=o||r?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return r&&ue(n),fe(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1);var n=t._data[e];n.setNewValue(void 0),t._data[e]=void 0},void 0,!1),o&&xe(this,n),r&&ce(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new Zt(t,Mt.Reference,this.name+"."+e+"?",(!1)),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if(t=n.prepareNewValue(t),t!==Yt){var r=ae(),o=me(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&ue(i),n.setNewValue(t),o&&xe(this,i),r&&ce()}},e.prototype._addValue=function(e,t){var n=this;fe(function(){var r=n._data[e]=new Zt(t,n._valueMode,n.name+"."+e,(!1));t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)},void 0,!1);var r=ae(),o=me(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&ue(i),o&&xe(this,i),r&&ce()},e.prototype.get=function(e){if(e=""+e,this.has(e))return this._data[e].get()},e.prototype.keys=function(){return et(this._keys.slice())},e.prototype.values=function(){return et(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return et(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(r){return e.call(t,n.get(r),r)})},e.prototype.merge=function(t){var n=this;return fe(function(){t instanceof e?t.keys().forEach(function(e){return n.set(e,t.get(e))}):Object.keys(t).forEach(function(e){return n.set(e,t[e])})},void 0,!1),this},e.prototype.clear=function(){var e=this;fe(function(){Q(function(){e.keys().forEach(e.delete,e)})},void 0,!1)},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJs=function(){return ot("toJs is deprecated, use toJS instead"),this.toJS()},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"'")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return rt(t!==!0,"`observe` doesn't support the fire immediately property for observable maps."),ge(this,e)},e.prototype.intercept=function(e){return ye(this,e)},e}();exports.ObservableMap=Ht,tt(Ht.prototype,function(){return this.entries()}),exports.map=$e,exports.isObservableMap=Me;var Qt=function(){function e(e,t,n){this.target=e,this.name=t,this.mode=n,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return rt(t!==!0,"`observe` doesn't support the fire immediately property for observable objects."),ge(this,e)},e.prototype.intercept=function(e){return ye(this,e)},e}(),Xt={},qt={};exports.isObservableObject=Ge;var Yt={},Zt=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableValue@"+nt()),void 0===o&&(o=!0),e.call(this,r),this.mode=n,this.hasUnreportedChange=!1,this.value=void 0;var i=Se(t,Mt.Recursive),a=i[0],s=i[1];this.mode===Mt.Recursive&&(this.mode=a),this.value=Oe(s,this.mode,this.name),o&&ae()&&se({type:"create",object:this,newValue:this.value})}return gt(t,e),t.prototype.set=function(e){var t=this.value;if(e=this.prepareNewValue(e),e!==Yt){var n=ae();n&&ue({type:"update",object:this,newValue:e,oldValue:t}),this.setNewValue(e),n&&ce()}},t.prototype.prepareNewValue=function(e){if(Ie(e,"Modifiers cannot be used on non-initial values."),B(),ve(this)){var t=be(this,{object:this,type:"update",newValue:e});if(!t)return Yt;e=t.newValue}var n=lt(this.mode===Mt.Structure,this.value,e);return n?Oe(e,this.mode,this.name):Yt},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),me(this)&&xe(this,[e,t])},t.prototype.get=function(){return this.reportObserved(),this.value},t.prototype.intercept=function(e){return ye(this,e)},t.prototype.observe=function(e,t){return t&&e(this.value,void 0),ge(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t}(kt),en="__$$iterating",tn=function(){function e(){this.size=0,this.data={}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.asArray=function(){var e=new Array(this.size),t=0;for(var n in this.data)e[t]=this.data[n],t++;return e},e.prototype.add=function(e){var t=e.__mapid;t in this.data||(this.data[t]=e,this.size++)},e.prototype.remove=function(e){e.__mapid in this.data&&(delete this.data[e.__mapid],this.size--)},e}();exports.SimpleSet=tn;var nn=function(){function e(){this.listeners=[],ot("extras.SimpleEventEmitter is deprecated and will be removed in the next major release")}return e.prototype.emit=function(){for(var e=this.listeners.slice(),t=0,n=e.length;t<n;t++)e[t].apply(null,arguments)},e.prototype.on=function(e){var t=this;return this.listeners.push(e),it(function(){var n=t.listeners.indexOf(e);n!==-1&&t.listeners.splice(n,1)})},e.prototype.once=function(e){var t=this.on(function(){t(),e.apply(this,arguments)});return t},e}();exports.SimpleEventEmitter=nn;var rn=[];Object.freeze(rn);var on=[],an=function(){},sn=Object.prototype.hasOwnProperty,un;
//# sourceMappingURL=lib/mobx.min.js.map
/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.mobx=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){(function(e){"use strict";function t(e,t,n,i){return 1===arguments.length&&"function"==typeof e?P(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?P(e,t):1===arguments.length&&"string"==typeof e?r(e):r(t).apply(null,arguments)}function r(e){return function(t,n,r){return r&&"function"==typeof r.value?(r.value=P(e,r.value),r.enumerable=!1,r.configurable=!0,r):xt(e).apply(this,arguments)}}function i(e,t,n){var r="string"==typeof e?e:e.name||"<unnamed action>",i="function"==typeof e?e:t,o="function"==typeof e?t:n;return ot("function"==typeof i,"`runInAction` expects a function"),ot(0===i.length,"`runInAction` expects a function without arguments"),ot("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),M(r,i,o,void 0)}function o(e){return"function"==typeof e&&e.isMobxAction===!0}function a(e,t,n){function r(){o(s)}var i,o,a;"string"==typeof e?(i=e,o=t,a=n):"function"==typeof e&&(i=e.name||"Autorun@"+it(),o=e,a=t),Ce(o,"autorun methods cannot have modifiers"),ot("function"==typeof o,"autorun expects a function"),a&&(o=o.bind(a));var s=new Tt(i,function(){this.track(r)});return s.schedule(),s.getDisposer()}function s(e,t,n,r){var i,o,s,u;"string"==typeof e?(i=e,o=t,s=n,u=r):"function"==typeof e&&(i="When@"+it(),o=e,s=t,u=n);var c=a(i,function(e){if(o.call(u)){e.dispose();var t=Y();s.call(u),Z(t)}});return c}function u(e,t,n){return at("`autorunUntil` is deprecated, please use `when`."),s.apply(null,arguments)}function c(e,t,n,r){function i(){a(l)}var o,a,s,u;"string"==typeof e?(o=e,a=t,s=n,u=r):"function"==typeof e&&(o=e.name||"AutorunAsync@"+it(),a=e,s=t,u=n),void 0===s&&(s=1),u&&(a=a.bind(u));var c=!1,l=new Tt(o,function(){c||(c=!0,setTimeout(function(){c=!1,l.isDisposed||l.track(i)},s))});return l.schedule(),l.getDisposer()}function l(e,n,r,i,o,a){function s(){if(!x.isDisposed){var e=!1;x.track(function(){var t=y(x);e=pt(b,w,t),w=t}),m&&f&&l(w,x),m||e!==!0||l(w,x),m&&(m=!1)}}var u,c,l,f,p,h;"string"==typeof e?(u=e,c=n,l=r,f=i,p=o,h=a):(u=e.name||n.name||"Reaction@"+it(),c=e,l=n,f=r,p=i,h=o),void 0===f&&(f=!1),void 0===p&&(p=0);var d=Ae(c,Mt.Reference),v=d[0],y=d[1],b=v===Mt.Structure;h&&(y=y.bind(h),l=t(u,l.bind(h)));var m=!0,g=!1,w=void 0,x=new Tt(u,function(){p<1?s():g||(g=!0,setTimeout(function(){g=!1,s()},p))});return x.schedule(),x.getDisposer()}function f(e,t,n,r){return arguments.length<3&&"function"==typeof e?p(e,t):(ot(!n||!n.set,"@observable properties cannot have a setter: "+t),_t.apply(null,arguments))}function p(e,t){var n=Ae(e,Mt.Recursive),r=n[0],i=n[1];return new It(i,t,r===Mt.Structure,i.name)}function h(){throw new Error("[ComputedValue] It is not allowed to assign new values to computed properties.")}function d(e,t){ot("function"==typeof e&&1===e.length,"createTransformer expects a function that accepts one argument");var n={},r=Dt.resetId,i=function(r){function i(t,n){r.call(this,function(){return e(n)},null,!1,"Transformer-"+e.name+"-"+t),this.sourceIdentifier=t,this.sourceObject=n}return wt(i,r),i.prototype.onBecomeUnobserved=function(){var e=this.value;r.prototype.onBecomeUnobserved.call(this),delete n[this.sourceIdentifier],t&&t(e,this.sourceObject)},i}(It);return function(e){r!==Dt.resetId&&(n={},r=Dt.resetId);var t=v(e),o=n[t];return o?o.get():(o=n[t]=new i(t,e),o.get())}}function v(e){if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object, got: "+e);var t=e.$transformId;return void 0===t&&(t=it(),dt(e,"$transformId",t)),t}function y(e,t){return J()||console.warn("[mobx.expr] 'expr' should only be used inside other reactive functions."),f(e,t).get()}function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ot(arguments.length>=2,"extendObservable expected 2 or more arguments"),ot("object"==typeof e,"extendObservable expects an object as first argument"),ot(!(e instanceof qt),"extendObservable should not be used on maps, use map.merge instead"),t.forEach(function(t){ot("object"==typeof t,"all arguments of extendObservable should be objects"),m(e,t,Mt.Recursive,null)}),e}function m(e,t,n,r){var i=Ne(e,r,n);for(var o in t)if(t.hasOwnProperty(o)){if(e===t&&!yt(e,o))continue;Ue(i,o,t[o])}return e}function g(e,t){return w(He(e,t))}function w(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=ut(e.observing).map(w)),t}function x(e,t){return _(He(e,t))}function _(e){var t={name:e.name};return e.observers&&e.observers.length>0&&(t.observers=e.observers.asArray().map(_)),t}function R(e,t,n){return"function"==typeof n?S(e,t,n):k(e,t)}function k(e,t){return lt(e)&&!Ke(e)?(at("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),qe(I(e)).intercept(t)):qe(e).intercept(t)}function S(e,t,n){return lt(e)&&!Ke(e)?(at("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),b(e,{property:e[t]}),S(e,t,n)):qe(e,t).intercept(n)}function O(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(e instanceof qt||e instanceof Wt)throw new Error("[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");if(Ke(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return!!e.$mobx||e instanceof St||e instanceof Tt||e instanceof It}function A(e,t,n){return ot(arguments.length>=2&&arguments.length<=3,"Illegal decorator config",t),bt(e,t),ot(!n||!n.get,"@observable can not be used on getters, use @computed instead"),Rt.apply(null,arguments)}function I(e,t){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return A.apply(null,arguments);if(ot(arguments.length<3,"observable expects zero, one or two arguments"),O(e))return e;var n=Ae(e,Mt.Recursive),r=n[0],i=n[1],o=r===Mt.Reference?kt.Reference:j(i);switch(o){case kt.Array:case kt.PlainObject:return je(i,r);case kt.Reference:case kt.ComplexObject:return new en(i,r);case kt.ComplexFunction:throw new Error("[mobx.observable] To be able to make a function reactive it should not have arguments. If you need an observable reference to a function, use `observable(asReference(f))`");case kt.ViewFunction:return at("Use `computed(expr)` instead of `observable(expr)`"),f(e,t)}ot(!1,"Illegal State")}function j(e){return null===e||void 0===e?kt.Reference:"function"==typeof e?e.length?kt.ComplexFunction:kt.ViewFunction:Array.isArray(e)||e instanceof Wt?kt.Array:"object"==typeof e?lt(e)?kt.PlainObject:kt.ComplexObject:kt.Reference}function C(e,t,n,r){return"function"==typeof n?V(e,t,n,r):E(e,t,n)}function E(e,t,n){return lt(e)&&!Ke(e)?(at("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),qe(I(e)).observe(t,n)):qe(e).observe(t,n)}function V(e,t,n,r){return lt(e)&&!Ke(e)?(at("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),b(e,{property:e[t]}),V(e,t,n,r)):qe(e,t).observe(n,r)}function D(e,t,n){function r(r){return t&&n.push([e,r]),r}if(void 0===t&&(t=!0),void 0===n&&(n=null),e instanceof Date||e instanceof RegExp)return e;if(t&&null===n&&(n=[]),t&&null!==e&&"object"==typeof e)for(var i=0,o=n.length;i<o;i++)if(n[i][0]===e)return n[i][1];if(!e)return e;if(Array.isArray(e)||e instanceof Wt){var a=r([]),s=e.map(function(e){return D(e,t,n)});a.length=s.length;for(var i=0,o=s.length;i<o;i++)a[i]=s[i];return a}if(e instanceof qt){var u=r({});return e.forEach(function(e,r){return u[r]=D(e,t,n)}),u}if(O(e)&&e.$mobx instanceof en)return D(e(),t,n);if(e instanceof en)return D(e.get(),t,n);if("object"==typeof e){var a=r({});for(var c in e)a[c]=D(e[c],t,n);return a}return e}function T(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=null),at("toJSON is deprecated. Use toJS instead"),D.apply(null,arguments)}function L(e){return console.log(e),e}function $(e,t){switch(arguments.length){case 0:if(e=Dt.derivationStack[Dt.derivationStack.length-1],!e)return L("whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested it's value.");break;case 2:e=He(e,t)}return e=He(e),e instanceof It?L(e.whyRun()):e instanceof Tt?L(e.whyRun()):void ot(!1,"whyRun can only be used on reactions and computed values")}function P(e,t){ot("function"==typeof t,"`action` can only be invoked on functions"),ot("string"==typeof e&&e.length>0,"actions should have valid names, got: '"+e+"'");var n=function(){return M(e,t,this,arguments)};return n.isMobxAction=!0,n}function M(e,t,n,r){var i=Dt.derivationStack;ot(!(i[i.length-1]instanceof It),"Computed values or transformers should not invoke actions or trigger other side effects");var o,a=ue();if(a){o=Date.now();var s=r&&r.length||0,u=new Array(s);if(s>0)for(var c=0;c<s;c++)u[c]=r[c];le({type:"action",name:e,fn:t,target:n,arguments:u})}var l=Y();ve(e,n,!1);var f=U(!0);try{return t.apply(n,r)}finally{F(f),ye(!1),Z(l),a&&fe({time:Date.now()-o})}}function z(e){return 0===arguments.length?Dt.strictMode:(ot(0===Dt.derivationStack.length,"It is not allowed to set `useStrict` when a derivation is running"),Dt.strictMode=e,Dt.allowStateChanges=!e,void 0)}function N(e,t){var n=U(e),r=t();return F(n),r}function U(e){var t=Dt.allowStateChanges;return Dt.allowStateChanges=e,t}function F(e){Dt.allowStateChanges=e}function B(e){ot(e.isDirty,"atom not dirty"),e.isDirty=!1,ae(e,!0)}function J(){return Dt.derivationStack.length>0&&Dt.isTracking}function G(){Dt.allowStateChanges||ot(!1,Dt.strictMode?"It is not allowed to create or change state outside an `action` when MobX is in strict mode. Wrap the current method in `action` if this state change is intended":"It is not allowed to change the state when a computed value or transformer is being evaluated. Use 'autorun' to create reactive functions with side-effects.")}function W(e){1===++e.dependencyStaleCount&&oe(e)}function K(e,t){if(ot(e.dependencyStaleCount>0,"unexpected ready notification"),t&&(e.dependencyChangeCount+=1),0===--e.dependencyStaleCount)if(e.dependencyChangeCount>0){e.dependencyChangeCount=0;var n=e.onDependenciesReady();ae(e,n)}else ae(e,!1)}function H(e,t){var n=e.observing;e.observing=new Array(n.length+100),e.unboundDepsCount=0,e.runId=++Dt.runId,Dt.derivationStack.push(e);var r=Dt.isTracking;Dt.isTracking=!0;var i,o=!0;try{i=t.call(e),o=!1}finally{if(o){var a="[mobx] An uncaught exception occurred while calculating your computed value, autorun or transformer. Or inside the render() method of an observer based React component. These functions should never throw exceptions as MobX will not always be able to recover from them. "+("Please fix the error reported after this message or enable 'Pause on (caught) exceptions' in your debugger to find the root cause. In: '"+e.name+"'. ")+"For more details see https://github.com/mobxjs/mobx/issues/462";ue()&&ce({type:"error",object:this,message:a}),console.warn(a),e.unboundDepsCount=0,e.observing=n,te()}else Dt.isTracking=r,Dt.derivationStack.length-=1,q(e,n)}return i}function q(e,t){for(var n=t.length,r=e.observing,i=r.length=e.unboundDepsCount,o=0;o<n;o++)t[o].diffValue=-1;for(var o=0;o<i;o++){var a=r[o];++a.diffValue>0&&(a.diffValue=0,ne(a,e))}for(var o=0;o<n;o++){var a=t[o];a.diffValue<0&&(a.diffValue=0,re(a,e))}}function Q(e){for(var t=e.observing,n=t.length,r=0;r<n;r++)re(t[r],e);t.length=0}function X(e){var t=Y(),n=e();return Z(t),n}function Y(){var e=Dt.isTracking;return Dt.isTracking=!1,e}function Z(e){Dt.isTracking=e}function ee(){}function te(){Dt.resetId++;var e=new Vt;for(var t in e)Et.indexOf(t)===-1&&(Dt[t]=e[t]);Dt.allowStateChanges=!Dt.strictMode}function ne(e,t){e.observers.add(t)}function re(e,t){e.observers.remove(t),0===e.observers.length&&e.onBecomeUnobserved()}function ie(e){if(Dt.isTracking!==!1){var t=Dt.derivationStack[Dt.derivationStack.length-1];t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.observing[t.unboundDepsCount++]=e)}}function oe(e){for(var t=e.observers.asArray(),n=t.length,r=0;r<n;r++)W(t[r]);e.staleObservers=e.staleObservers.concat(t)}function ae(e,t){e.staleObservers.splice(0).forEach(function(e){return K(e,t)})}function se(){if(!(Dt.isRunningReactions===!0||Dt.inTransaction>0)){Dt.isRunningReactions=!0;for(var e=Dt.pendingReactions,t=0;e.length>0;){if(++t===Lt)throw new Error("Reaction doesn't converge to a stable state after "+Lt+" iterations. Probably there is a cycle in the reactive function: "+e[0]);for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction()}Dt.isRunningReactions=!1}}function ue(){return $t}function ce(e){if(!$t)return!1;for(var t=Dt.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function le(e){var t=ft({},e,{spyReportStart:!0});ce(t)}function fe(e){ce(e?ft({},e,Pt):Pt)}function pe(e){return Dt.spyListeners.push(e),$t=Dt.spyListeners.length>0,st(function(){var t=Dt.spyListeners.indexOf(e);t!==-1&&Dt.spyListeners.splice(t,1),$t=Dt.spyListeners.length>0})}function he(e){return at("trackTransitions is deprecated. Use mobx.spy instead"),"boolean"==typeof e&&(at("trackTransitions only takes a single callback function. If you are using the mobx-react-devtools, please update them first"),e=arguments[1]),e?pe(e):(at("trackTransitions without callback has been deprecated and is a no-op now. If you are using the mobx-react-devtools, please update them first"),function(){})}function de(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0),ve(e.name||"anonymous transaction",t,n);var r=e.call(t);return ye(n),r}function ve(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0),Dt.inTransaction+=1,n&&ue()&&le({type:"transaction",target:t,name:e})}function ye(e){if(void 0===e&&(e=!0),0===--Dt.inTransaction){for(var t=Dt.changedAtoms.splice(0),n=0,r=t.length;n<r;n++)B(t[n]);se()}e&&ue()&&fe()}function be(e){return e.interceptors&&e.interceptors.length>0}function me(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),st(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function ge(e,t){for(var n=Y(),r=e.interceptors,i=0,o=r.length;i<o;i++)if(t=r[i](t),ot(!t||t.type,"Intercept handlers should return nothing or a change object"),!t)return null;return Z(n),t}function we(e){return e.changeListeners&&e.changeListeners.length>0}function xe(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),st(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function _e(e,t){var n=Y(),r=e.changeListeners;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)Array.isArray(t)?r[i].apply(null,t):r[i](t);Z(n)}}function Re(e){return new zt(e)}function ke(e){return new Nt(e)}function Se(e){return new Ut(e)}function Oe(e,t){return Me(e,t)}function Ae(e,t){return e instanceof zt?[Mt.Reference,e.value]:e instanceof Nt?[Mt.Structure,e.value]:e instanceof Ut?[Mt.Flat,e.value]:[t,e]}function Ie(e){return e===Re?Mt.Reference:e===ke?Mt.Structure:e===Se?Mt.Flat:(ot(void 0===e,"Cannot determine value mode from function. Please pass in one of these: mobx.asReference, mobx.asStructure or mobx.asFlat, got: "+e),Mt.Recursive)}function je(e,t,n){var r;if(O(e))return e;switch(t){case Mt.Reference:return e;case Mt.Flat:Ce(e,"Items inside 'asFlat' cannot have modifiers"),r=Mt.Reference;break;case Mt.Structure:Ce(e,"Items inside 'asStructure' cannot have modifiers"),r=Mt.Structure;break;case Mt.Recursive:i=Ae(e,Mt.Recursive),r=i[0],e=i[1];break;default:ot(!1,"Illegal State")}return Array.isArray(e)?Le(e,r,n):lt(e)&&Object.isExtensible(e)?m(e,e,r,n):e;var i}function Ce(e,t){if(e instanceof zt||e instanceof Nt||e instanceof Ut)throw new Error("[mobx] asStructure / asReference / asFlat cannot be used here. "+t)}function Ee(e){var t=Ve(e),n=De(e);Object.defineProperty(Wt.prototype,""+e,{enumerable:!1,configurable:!0,set:t,get:n})}function Ve(e){return function(t){var n=this.$mobx,r=n.values;if(Ce(t,"Modifiers cannot be used on array values. For non-reactive array values use makeReactive(asFlat(array))."),e<r.length){G();var i=r[e];if(be(n)){var o=ge(n,{type:"update",object:n.array,index:e,newValue:t});if(!o)return;t=o.newValue}t=n.makeReactiveArrayItem(t);var a=n.mode===Mt.Structure?!gt(i,t):i!==t;a&&(r[e]=t,n.notifyArrayChildUpdate(e,t,i))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}}}function De(e){return function(){var t=this.$mobx;return t&&e<t.values.length?(t.atom.reportObserved(),t.values[e]):void console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}}function Te(e){for(var t=Bt;t<e;t++)Ee(t);Bt=e}function Le(e,t,n){return new Wt(e,t,n)}function $e(e){return at("fastArray is deprecated. Please use `observable(asFlat([]))`"),Le(e,Mt.Flat,null)}function Pe(e){return e instanceof Wt}function Me(e,t){return new qt(e,t)}function ze(e){return e instanceof qt}function Ne(e,t,n){if(void 0===n&&(n=Mt.Recursive),Ke(e))return e.$mobx;lt(e)||(t=e.constructor.name+"@"+it()),t||(t="ObservableObject@"+it());var r=new Qt(e,t,n);return vt(e,"$mobx",r),r}function Ue(e,t,n){e.values[t]?e.target[t]=n:Fe(e,t,n,!0)}function Fe(e,t,n,r){r&&bt(e.target,t);var i,a=e.name+"."+t,s=!0;if("function"!=typeof n||0!==n.length||o(n))if(n instanceof Nt&&"function"==typeof n.value&&0===n.value.length)i=new It(n.value,e.target,(!0),a);else{if(s=!1,be(e)){var u=ge(e,{object:e.target,name:t,type:"add",newValue:n});if(!u)return;n=u.newValue}i=new en(n,e.mode,a,(!1)),n=i.value}else i=new It(n,e.target,(!1),a);e.values[t]=i,r&&Object.defineProperty(e.target,t,s?Je(t):Be(t)),s||We(e,e.target,t,n)}function Be(e){var t=Xt[e];return t?t:Xt[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){Ge(this,e,t)}}}function Je(e){var t=Yt[e];return t?t:Yt[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:h}}function Ge(e,t,n){var r=e.$mobx,i=r.values[t];if(be(r)){var o=ge(r,{type:"update",object:e,name:t,newValue:n});if(!o)return;n=o.newValue}if(n=i.prepareNewValue(n),n!==Zt){var a=we(r),s=ue(),o=_e||we?{type:"update",object:e,oldValue:i.value,name:t,newValue:n}:null;s&&le(o),i.setNewValue(n),a&&_e(r,o),s&&fe()}}function We(e,t,n,r){var i=we(e),o=ue(),a=i||o?{type:"add",object:t,name:n,newValue:r}:null;o&&le(a),i&&_e(e,a),o&&fe()}function Ke(e){return"object"==typeof e&&null!==e&&(Ze(e),e.$mobx instanceof Qt)}function He(e,t){if("object"==typeof e&&null!==e){if(Pe(e))return ot(void 0===t,"It is not possible to get index atoms from arrays"),e.$mobx.atom;if(ze(e)){if(void 0===t)return He(e._keys);var n=e._data[t]||e._hasMap[t];return ot(!!n,"the entry '"+t+"' does not exist in the observable map '"+Qe(e)+"'"),n}if(Ze(e),Ke(e)){ot(!!t,"please specify a property");var r=e.$mobx.values[t];return ot(!!r,"no observable property '"+t+"' found on the observable object '"+Qe(e)+"'"),r}if(e instanceof St||e instanceof It||e instanceof Tt)return e}else if("function"==typeof e&&e.$mobx instanceof Tt)return e.$mobx;ot(!1,"Cannot obtain atom from "+e)}function qe(e,t){return ot(e,"Expection some object"),void 0!==t?qe(He(e,t)):e instanceof St||e instanceof It||e instanceof Tt?e:ze(e)?e:(Ze(e),e.$mobx?e.$mobx:void ot(!1,"Cannot obtain administration from "+e))}function Qe(e,t){var n;return n=void 0!==t?He(e,t):Ke(e)||ze(e)?qe(e):He(e),n.name}function Xe(e,t,n,r,i){function o(o,a,s,u){if(ot(i||et(arguments),"This function is a decorator, but it wasn't invoked like a decorator"),s){o.hasOwnProperty("__mobxLazyInitializers")||dt(o,"__mobxLazyInitializers",o.__mobxLazyInitializers&&o.__mobxLazyInitializers.slice()||[]);var c=s.value,l=s.initializer;return o.__mobxLazyInitializers.push(function(t){e(t,a,l?l.call(t):c,u,s)}),{enumerable:r,configurable:!0,get:function(){return this.__mobxDidRunLazyInitializers!==!0&&Ze(this),t.call(this,a)},set:function(e){this.__mobxDidRunLazyInitializers!==!0&&Ze(this),n.call(this,a,e)}}}var f={enumerable:r,configurable:!0,get:function(){return this.__mobxInitializedProps&&this.__mobxInitializedProps[a]===!0||Ye(this,a,void 0,e,u,s),t.call(this,a)},set:function(t){this.__mobxInitializedProps&&this.__mobxInitializedProps[a]===!0?n.call(this,a,t):Ye(this,a,t,e,u,s)}};return arguments.length<3&&Object.defineProperty(o,a,f),f}return i?function(){if(et(arguments))return o.apply(null,arguments);var e=arguments;return function(t,n,r){return o(t,n,r,e)}}:o}function Ye(e,t,n,r,i,o){e.hasOwnProperty("__mobxInitializedProps")||dt(e,"__mobxInitializedProps",{}),e.__mobxInitializedProps[t]=!0,r(e,t,n,i,o)}function Ze(e){e.__mobxDidRunLazyInitializers!==!0&&e.__mobxLazyInitializers&&(dt(e,"__mobxDidRunLazyInitializers",!0),e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers.forEach(function(t){return t(e)}))}function et(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]}function tt(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function nt(e){ot(e[tn]!==!0,"Illegal state: cannot recycle array as iterator"),vt(e,tn,!0);var t=-1;return vt(e,"next",function(){return t++,{done:t>=this.length,value:t<this.length?this[t]:void 0}}),e}function rt(e,t){vt(e,tt(),t)}function it(){return++Dt.mobxGuid}function ot(e,t,n){if(!e)throw new Error("[mobx] Invariant failed: "+t+(n?" in '"+n+"'":""))}function at(e){sn.indexOf(e)===-1&&(sn.push(e),console.error("[mobx] Deprecated: "+e))}function st(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function ut(e){var t=[];return e.forEach(function(e){t.indexOf(e)===-1&&t.push(e)}),t}function ct(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=" - "),!e)return"";var r=e.slice(0,t);return""+r.join(n)+(e.length>t?" (... and "+(e.length-t)+"more)":"")}function lt(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function ft(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}function pt(e,t,n){return e?!gt(t,n):t!==n}function ht(e,t){for(var n=0;n<t.length;n++)dt(e,t[n],e[t[n]])}function dt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function vt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function yt(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||n.configurable!==!1&&n.writable!==!1}function bt(e,t){ot(yt(e,t),"Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function mt(e){var t=[];for(var n in e)t.push(n);return t}function gt(e,t){if(null===e&&null===t)return!0;if(void 0===e&&void 0===t)return!0;var n=Array.isArray(e)||Pe(e);if(n!==(Array.isArray(t)||Pe(t)))return!1;if(n){if(e.length!==t.length)return!1;for(var r=e.length-1;r>=0;r--)if(!gt(e[r],t[r]))return!1;return!0}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(mt(e).length!==mt(t).length)return!1;for(var i in e){if(!(i in t))return!1;if(!gt(e[i],t[i]))return!1}return!0}return e===t}var wt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};ee(),n.extras={allowStateChanges:N,getAtom:He,getDebugName:Qe,getDependencyTree:g,getObserverTree:x,isComputingDerivation:J,isSpyEnabled:ue,resetGlobalState:te,spyReport:ce,spyReportEnd:fe,spyReportStart:le,trackTransitions:he},n._={getAdministration:qe,resetGlobalState:te};var xt=Xe(function(e,n,r,i,o){var a=i&&1===i.length?i[0]:r.name||n||"<unnamed action>",s=t(a,r);dt(e,n,s)},function(e){return this[e]},function(){ot(!1,"It is not allowed to assign new values to @action fields")},!1,!0);n.action=t,n.runInAction=i,n.isAction=o,n.autorun=a,n.when=s,n.autorunUntil=u,n.autorunAsync=c,n.reaction=l;var _t=Xe(function(e,t,n,r,i){ot("undefined"!=typeof i,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.");var o=i.get;ot("function"==typeof o,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'");var a=!1;r&&1===r.length&&r[0].asStructure===!0&&(a=!0);var s=Ne(e,void 0,Mt.Recursive);Fe(s,t,a?ke(o):o,!1)},function(e){return this.$mobx.values[e].get()},h,!1,!0);n.computed=f,n.createTransformer=d,n.expr=y,n.extendObservable=b,n.intercept=R,n.isObservable=O;var Rt=Xe(function(e,t,n){var r=U(!0);"function"==typeof n&&(n=Re(n));var i=Ne(e,void 0,Mt.Recursive);Fe(i,t,n,!0),F(r)},function(e){return this.$mobx.values[e].get()},function(e,t){Ge(this,e,t)},!0,!1);n.observable=I;var kt;!function(e){e[e.Reference=0]="Reference",e[e.PlainObject=1]="PlainObject",e[e.ComplexObject=2]="ComplexObject",e[e.Array=3]="Array",e[e.ViewFunction=4]="ViewFunction",e[e.ComplexFunction=5]="ComplexFunction"}(kt||(kt={})),n.observe=C,n.toJS=D,n.toJSON=T,n.whyRun=$,n.useStrict=z;var St=function(){function e(e){void 0===e&&(e="Atom@"+it()),this.name=e,this.isDirty=!1,this.staleObservers=[],this.observers=new nn,this.diffValue=0,this.lastAccessedBy=0}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){ie(this)},e.prototype.reportChanged=function(){this.isDirty||(this.reportStale(),this.reportReady())},e.prototype.reportStale=function(){this.isDirty||(this.isDirty=!0,oe(this))},e.prototype.reportReady=function(){ot(this.isDirty,"atom not dirty"),Dt.inTransaction>0?Dt.changedAtoms.push(this):(B(this),se())},e.prototype.toString=function(){return this.name},e}();n.BaseAtom=St;var Ot=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+it()),void 0===n&&(n=un),void 0===r&&(r=un),e.call(this,t),this.name=t,this.onBecomeObservedHandler=n,this.onBecomeUnobservedHandler=r,this.isBeingTracked=!1}return wt(t,e),t.prototype.reportObserved=function(){e.prototype.reportObserved.call(this);var t=Dt.isTracking;return t&&!this.isBeingTracked&&(this.isBeingTracked=!0,this.onBecomeObservedHandler()),t},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(St);n.Atom=Ot;var At,It=function(){function e(e,t,n,r){this.derivation=e,this.scope=t,this.compareStructural=n,this.isLazy=!0,this.isComputing=!1,this.staleObservers=[],this.observers=new nn,this.observing=[],this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.unboundDepsCount=0,this.__mapid="#"+it(),this.dependencyChangeCount=0,this.dependencyStaleCount=0,this.value=void 0,this.name=r||"ComputedValue@"+it()}return e.prototype.peek=function(){this.isComputing=!0;var e=U(!1),t=this.derivation.call(this.scope);return F(e),this.isComputing=!1,t},e.prototype.onBecomeUnobserved=function(){Q(this),this.isLazy=!0,this.value=void 0},e.prototype.onDependenciesReady=function(){var e=this.trackAndCompute();return e},e.prototype.get=function(){if(ot(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),ie(this),this.dependencyStaleCount>0)return this.peek();if(this.isLazy){if(!J())return this.peek();this.isLazy=!1,this.trackAndCompute()}return this.value},e.prototype.set=function(e){throw new Error("[ComputedValue '"+name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){ue()&&ce({object:this,type:"compute",fn:this.derivation,target:this.scope});var e=this.value,t=this.value=H(this,this.peek);return pt(this.compareStructural,t,e)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return a(function(){var o=n.get();if(!r||t){var a=Y();e(o,i),Z(a)}r=!1,i=o})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.whyRun=function(){var e=Dt.derivationStack.length>0,t=ut(this.observing).map(function(e){return e.name}),n=ut(this.observers.asArray()).map(function(e){return e.name}),r=this.isComputing?e?this.observers.length>0?At.INVALIDATED:At.REQUIRED:At.PEEK:At.NOT_RUNNING;if(r===At.REQUIRED){var i=Dt.derivationStack[Dt.derivationStack.length-2];i&&n.push(i.name)}return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+jt[r]+" "+(r===At.NOT_RUNNING&&this.dependencyStaleCount>0?"(a next run is scheduled)":"")+"\n"+(this.isLazy?" * This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).\n":" * This computation will re-run if any of the following observables changes:\n "+ct(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n * If the outcome of this computation changes, the following observers will be re-run:\n "+ct(n)+"\n")},e}();!function(e){e[e.PEEK=0]="PEEK",e[e.INVALIDATED=1]="INVALIDATED",e[e.REQUIRED=2]="REQUIRED",e[e.NOT_RUNNING=3]="NOT_RUNNING"}(At||(At={}));var jt=(an={},an[At.PEEK]="[peek] The value of this computed value was requested outside an reaction",an[At.INVALIDATED]="[invalidated] Some observables used by this computation did change",an[At.REQUIRED]="[started] This computation is required by another computed value / reaction",an[At.NOT_RUNNING]="[idle] This compution is currently not running",an);n.untracked=X;var Ct,Et=["mobxGuid","resetId","spyListeners","strictMode","runId"],Vt=function(){function e(){this.version=3,this.derivationStack=[],this.runId=0,this.mobxGuid=0,this.inTransaction=0,this.isTracking=!1,this.isRunningReactions=!1,this.changedAtoms=[],this.pendingReactions=[],this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[]}return e}(),Dt=function(){var t=new Vt;if(e.__mobservableTrackingStack||e.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(e.__mobxGlobal&&e.__mobxGlobal.version!==t.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");return e.__mobxGlobal?e.__mobxGlobal:e.__mobxGlobal=t}(),Tt=function(){function e(e,t){void 0===e&&(e="Reaction@"+it()),this.name=e,this.onInvalidate=t,this.staleObservers=on,this.observers=Ct||(Ct=new nn),this.observing=[],this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.unboundDepsCount=0,this.__mapid="#"+it(),this.dependencyChangeCount=0,this.dependencyStaleCount=0,this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onDependenciesReady=function(){return this.schedule(),!1},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Dt.pendingReactions.push(this),se())},e.prototype.isScheduled=function(){return this.dependencyStaleCount>0||this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(this._isScheduled=!1,this._isTrackPending=!0,
this.onInvalidate(),this._isTrackPending&&ue()&&ce({object:this,type:"scheduled-reaction"}))},e.prototype.track=function(e){var t,n=ue();n&&(t=Date.now(),le({object:this,type:"reaction",fn:e})),this._isRunning=!0,H(this,e),this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Q(this),n&&fe({time:Date.now()-t})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||Q(this))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=ut(this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+ct(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"},e}();n.Reaction=Tt;var Lt=100,$t=!1,Pt={spyReportEnd:!0};n.spy=pe,n.transaction=de;var Mt;!function(e){e[e.Recursive=0]="Recursive",e[e.Reference=1]="Reference",e[e.Structure=2]="Structure",e[e.Flat=3]="Flat"}(Mt||(Mt={})),n.asReference=Re,n.asStructure=ke,n.asFlat=Se;var zt=function(){function e(e){this.value=e,Ce(e,"Modifiers are not allowed to be nested")}return e}(),Nt=function(){function e(e){this.value=e,Ce(e,"Modifiers are not allowed to be nested")}return e}(),Ut=function(){function e(e){this.value=e,Ce(e,"Modifiers are not allowed to be nested")}return e}();n.asMap=Oe;var Ft=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Bt=0,Jt=function(){function e(){}return e}();Jt.prototype=[];var Gt=function(){function e(e,t,n,r){this.mode=t,this.array=n,this.owned=r,this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new St(e||"ObservableArray@"+it())}return e.prototype.makeReactiveArrayItem=function(e){return Ce(e,"Array values cannot have modifiers"),this.mode===Mt.Flat||this.mode===Mt.Reference?e:je(e,this.mode,this.atom.name+"[..]")},e.prototype.intercept=function(e){return me(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),xe(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;e!==t&&(e>t?this.spliceWithArray(t,0,new Array(e-t)):this.spliceWithArray(e,t-e))},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Bt&&Te(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){G();var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:void 0===t||null===t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=[]),be(this)){var i=ge(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!i)return on;t=i.removedCount,n=i.added}n=n.map(this.makeReactiveArrayItem,this);var o=n.length-t;this.updateArrayLength(r,o);var a=(s=this.values).splice.apply(s,[e,t].concat(n));return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),a;var s},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&ue(),i=we(this),o=i||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&le(o),this.atom.reportChanged(),i&&_e(this,o),r&&fe()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&ue(),i=we(this),o=i||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&le(o),this.atom.reportChanged(),i&&_e(this,o),r&&fe()},e}(),Wt=function(e){function t(t,n,r,i){void 0===i&&(i=!1),e.call(this);var o=new Gt(r,n,this,i);vt(this,"$mobx",o),t&&t.length?(o.updateArrayLength(0,t.length),o.values=t.map(o.makeReactiveArrayItem,o),o.notifyArraySplice(0,o.values.slice(),on)):o.values=[],Ft&&Object.defineProperty(o.array,"0",Kt)}return wt(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.slice(),e.map(function(e){return Pe(e)?e.slice():e}))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.values},t.prototype.find=function(e,t,n){void 0===n&&(n=0),this.$mobx.atom.reportObserved();for(var r=this.$mobx.values,i=r.length,o=n;o<i;o++)if(e.call(t,r[o],o,this))return r[o]},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){this.$mobx.atom.reportObserved();var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){this.$mobx.atom.reportObserved();var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.values.indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.toString=function(){return"[mobx.array] "+Array.prototype.toString.apply(this.$mobx.values,arguments)},t.prototype.toLocaleString=function(){return"[mobx.array] "+Array.prototype.toLocaleString.apply(this.$mobx.values,arguments)},t}(Jt);rt(Wt.prototype,function(){return nt(this.slice())}),ht(Wt.prototype,["constructor","observe","clear","concat","replace","toJSON","peek","find","splice","push","pop","shift","unshift","reverse","sort","remove","toString","toLocaleString"]),Object.defineProperty(Wt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some"].forEach(function(e){var t=Array.prototype[e];dt(Wt.prototype,e,function(){return this.$mobx.atom.reportObserved(),t.apply(this.$mobx.values,arguments)})});var Kt={configurable:!0,enumerable:!1,set:Ve(0),get:De(0)};Te(1e3),n.fastArray=$e,n.isObservableArray=Pe;var Ht={},qt=function(){function e(e,t){var n=this;this.$mobx=Ht,this._data={},this._hasMap={},this.name="ObservableMap@"+it(),this._keys=new Wt(null,Mt.Reference,this.name+".keys()",(!0)),this.interceptors=null,this.changeListeners=null,this._valueMode=Ie(t),this._valueMode===Mt.Flat&&(this._valueMode=Mt.Reference),N(!0,function(){lt(e)?n.merge(e):Array.isArray(e)&&e.forEach(function(e){var t=e[0],r=e[1];return n.set(t,r)})})}return e.prototype._has=function(e){return"undefined"!=typeof this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(Ce(t,"[mobx.map.set] Expected unwrapped value to be inserted to key '"+e+"'. If you need to use modifiers pass them as second argument to the constructor"),be(this)){var r=ge(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return;t=r.newValue}n?this._updateValue(e,t):this._addValue(e,t)},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,be(this)){var n=ge(this,{type:"delete",object:this,name:e});if(!n)return}if(this._has(e)){var r=ue(),i=we(this),n=i||r?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;r&&le(n),de(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1);var n=t._data[e];n.setNewValue(void 0),t._data[e]=void 0},void 0,!1),i&&_e(this,n),r&&fe()}},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new en(t,Mt.Reference,this.name+"."+e+"?",(!1)),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if(t=n.prepareNewValue(t),t!==Zt){var r=ue(),i=we(this),o=i||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&le(o),n.setNewValue(t),i&&_e(this,o),r&&fe()}},e.prototype._addValue=function(e,t){var n=this;de(function(){var r=n._data[e]=new en(t,n._valueMode,n.name+"."+e,(!1));t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)},void 0,!1);var r=ue(),i=we(this),o=i||r?{type:"add",object:this,name:e,newValue:t}:null;r&&le(o),i&&_e(this,o),r&&fe()},e.prototype.get=function(e){if(e=""+e,this.has(e))return this._data[e].get()},e.prototype.keys=function(){return nt(this._keys.slice())},e.prototype.values=function(){return nt(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return nt(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(r){return e.call(t,n.get(r),r)})},e.prototype.merge=function(t){var n=this;return de(function(){t instanceof e?t.keys().forEach(function(e){return n.set(e,t.get(e))}):Object.keys(t).forEach(function(e){return n.set(e,t[e])})},void 0,!1),this},e.prototype.clear=function(){var e=this;de(function(){X(function(){e.keys().forEach(e.delete,e)})},void 0,!1)},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJs=function(){return at("toJs is deprecated, use toJS instead"),this.toJS()},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"'")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return ot(t!==!0,"`observe` doesn't support the fire immediately property for observable maps."),xe(this,e)},e.prototype.intercept=function(e){return me(this,e)},e}();n.ObservableMap=qt,rt(qt.prototype,function(){return this.entries()}),n.map=Me,n.isObservableMap=ze;var Qt=function(){function e(e,t,n){this.target=e,this.name=t,this.mode=n,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return ot(t!==!0,"`observe` doesn't support the fire immediately property for observable objects."),xe(this,e)},e.prototype.intercept=function(e){return me(this,e)},e}(),Xt={},Yt={};n.isObservableObject=Ke;var Zt={},en=function(e){function t(t,n,r,i){void 0===r&&(r="ObservableValue@"+it()),void 0===i&&(i=!0),e.call(this,r),this.mode=n,this.hasUnreportedChange=!1,this.value=void 0;var o=Ae(t,Mt.Recursive),a=o[0],s=o[1];this.mode===Mt.Recursive&&(this.mode=a),this.value=je(s,this.mode,this.name),i&&ue()&&ce({type:"create",object:this,newValue:this.value})}return wt(t,e),t.prototype.set=function(e){var t=this.value;if(e=this.prepareNewValue(e),e!==Zt){var n=ue();n&&le({type:"update",object:this,newValue:e,oldValue:t}),this.setNewValue(e),n&&fe()}},t.prototype.prepareNewValue=function(e){if(Ce(e,"Modifiers cannot be used on non-initial values."),G(),be(this)){var t=ge(this,{object:this,type:"update",newValue:e});if(!t)return Zt;e=t.newValue}var n=pt(this.mode===Mt.Structure,this.value,e);return n?je(e,this.mode,this.name):Zt},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),we(this)&&_e(this,[e,t])},t.prototype.get=function(){return this.reportObserved(),this.value},t.prototype.intercept=function(e){return me(this,e)},t.prototype.observe=function(e,t){return t&&e(this.value,void 0),xe(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t}(St),tn="__$$iterating",nn=function(){function e(){this.size=0,this.data={}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.asArray=function(){var e=new Array(this.size),t=0;for(var n in this.data)e[t]=this.data[n],t++;return e},e.prototype.add=function(e){var t=e.__mapid;t in this.data||(this.data[t]=e,this.size++)},e.prototype.remove=function(e){e.__mapid in this.data&&(delete this.data[e.__mapid],this.size--)},e}();n.SimpleSet=nn;var rn=function(){function e(){this.listeners=[],at("extras.SimpleEventEmitter is deprecated and will be removed in the next major release")}return e.prototype.emit=function(){for(var e=this.listeners.slice(),t=0,n=e.length;t<n;t++)e[t].apply(null,arguments)},e.prototype.on=function(e){var t=this;return this.listeners.push(e),st(function(){var n=t.listeners.indexOf(e);n!==-1&&t.listeners.splice(n,1)})},e.prototype.once=function(e){var t=this.on(function(){t(),e.apply(this,arguments)});return t},e}();n.SimpleEventEmitter=rn;var on=[];Object.freeze(on);var an,sn=[],un=function(){}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.mobx=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){(function(e){"use strict";function t(e,t,n,i){return 1===arguments.length&&"function"==typeof e?M(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?M(e,t):1===arguments.length&&"string"==typeof e?r(e):r(t).apply(null,arguments)}function r(e){return function(t,n,r){return r&&"function"==typeof r.value?(r.value=M(e,r.value),r.enumerable=!1,r.configurable=!0,r):_t(e).apply(this,arguments)}}function i(e,t,n){var r="string"==typeof e?e:e.name||"<unnamed action>",i="function"==typeof e?e:t,o="function"==typeof e?t:n;return ot("function"==typeof i,"`runInAction` expects a function"),ot(0===i.length,"`runInAction` expects a function without arguments"),ot("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),z(r,i,o,void 0)}function o(e){return"function"==typeof e&&e.isMobxAction===!0}function a(e,t,n){function r(){o(s)}var i,o,a;"string"==typeof e?(i=e,o=t,a=n):"function"==typeof e&&(i=e.name||"Autorun@"+it(),o=e,a=t),Ce(o,"autorun methods cannot have modifiers"),ot("function"==typeof o,"autorun expects a function"),a&&(o=o.bind(a));var s=new Lt(i,function(){this.track(r)});return s.schedule(),s.getDisposer()}function s(e,t,n,r){var i,o,s,u;"string"==typeof e?(i=e,o=t,s=n,u=r):"function"==typeof e&&(i="When@"+it(),o=e,s=t,u=n);var c=a(i,function(e){if(o.call(u)){e.dispose();var t=Y();s.call(u),Z(t)}});return c}function u(e,t,n){return at("`autorunUntil` is deprecated, please use `when`."),s.apply(null,arguments)}function c(e,t,n,r){function i(){a(l)}var o,a,s,u;"string"==typeof e?(o=e,a=t,s=n,u=r):"function"==typeof e&&(o=e.name||"AutorunAsync@"+it(),a=e,s=t,u=n),void 0===s&&(s=1),u&&(a=a.bind(u));var c=!1,l=new Lt(o,function(){c||(c=!0,setTimeout(function(){c=!1,l.isDisposed||l.track(i)},s))});return l.schedule(),l.getDisposer()}function l(e,n,r,i,o,a){function s(){if(!x.isDisposed){var e=!1;x.track(function(){var t=y(x);e=pt(b,w,t),w=t}),m&&f&&l(w,x),m||e!==!0||l(w,x),m&&(m=!1)}}var u,c,l,f,p,h;"string"==typeof e?(u=e,c=n,l=r,f=i,p=o,h=a):(u=e.name||n.name||"Reaction@"+it(),c=e,l=n,f=r,p=i,h=o),void 0===f&&(f=!1),void 0===p&&(p=0);var d=Ae(c,Nt.Reference),v=d[0],y=d[1],b=v===Nt.Structure;h&&(y=y.bind(h),l=t(u,l.bind(h)));var m=!0,g=!1,w=void 0,x=new Lt(u,function(){p<1?s():g||(g=!0,setTimeout(function(){g=!1,s()},p))});return x.schedule(),x.getDisposer()}function f(e,t,n,r){return arguments.length<3&&"function"==typeof e?p(e,t):(ot(!n||!n.set,"@observable properties cannot have a setter: "+t),Rt.apply(null,arguments))}function p(e,t){var n=Ae(e,Nt.Recursive),r=n[0],i=n[1];return new jt(i,t,r===Nt.Structure,i.name)}function h(){throw new Error("[ComputedValue] It is not allowed to assign new values to computed properties.")}function d(e,t){ot("function"==typeof e&&1===e.length,"createTransformer expects a function that accepts one argument");var n={},r=Tt.resetId,i=function(r){function i(t,n){r.call(this,function(){return e(n)},null,!1,"Transformer-"+e.name+"-"+t),this.sourceIdentifier=t,this.sourceObject=n}return xt(i,r),i.prototype.onBecomeUnobserved=function(){var e=this.value;r.prototype.onBecomeUnobserved.call(this),delete n[this.sourceIdentifier],t&&t(e,this.sourceObject)},i}(jt);return function(e){r!==Tt.resetId&&(n={},r=Tt.resetId);var t=v(e),o=n[t];return o?o.get():(o=n[t]=new i(t,e),o.get())}}function v(e){if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object, got: "+e);var t=e.$transformId;return void 0===t&&(t=it(),vt(e,"$transformId",t)),t}function y(e,t){return J()||console.warn("[mobx.expr] 'expr' should only be used inside other reactive functions."),f(e,t).get()}function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ot(arguments.length>=2,"extendObservable expected 2 or more arguments"),ot("object"==typeof e,"extendObservable expects an object as first argument"),ot(!(e instanceof Qt),"extendObservable should not be used on maps, use map.merge instead"),t.forEach(function(t){ot("object"==typeof t,"all arguments of extendObservable should be objects"),m(e,t,Nt.Recursive,null)}),e}function m(e,t,n,r){var i=Pe(e,r,n);for(var o in t)if(ht(t,o)){if(e===t&&!bt(e,o))continue;Ue(i,o,t[o])}return e}function g(e,t){return w(He(e,t))}function w(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=ut(e.observing).map(w)),t}function x(e,t){return _(He(e,t))}function _(e){var t={name:e.name};return e.observers&&e.observers.length>0&&(t.observers=e.observers.asArray().map(_)),t}function R(e,t,n){return"function"==typeof n?S(e,t,n):k(e,t)}function k(e,t){return lt(e)&&!Ke(e)?(at("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),qe(I(e)).intercept(t)):qe(e).intercept(t)}function S(e,t,n){return lt(e)&&!Ke(e)?(at("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),b(e,{property:e[t]}),S(e,t,n)):qe(e,t).intercept(n)}function O(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(e instanceof Qt||e instanceof Kt)throw new Error("[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");if(Ke(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return!!e.$mobx||e instanceof Ot||e instanceof Lt||e instanceof jt}function A(e,t,n){return ot(arguments.length>=2&&arguments.length<=3,"Illegal decorator config",t),mt(e,t),ot(!n||!n.get,"@observable can not be used on getters, use @computed instead"),kt.apply(null,arguments)}function I(e,t){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return A.apply(null,arguments);if(ot(arguments.length<3,"observable expects zero, one or two arguments"),O(e))return e;var n=Ae(e,Nt.Recursive),r=n[0],i=n[1],o=r===Nt.Reference?St.Reference:j(i);switch(o){case St.Array:case St.PlainObject:return je(i,r);case St.Reference:case St.ComplexObject:return new tn(i,r);case St.ComplexFunction:throw new Error("[mobx.observable] To be able to make a function reactive it should not have arguments. If you need an observable reference to a function, use `observable(asReference(f))`");case St.ViewFunction:return at("Use `computed(expr)` instead of `observable(expr)`"),f(e,t)}ot(!1,"Illegal State")}function j(e){return null===e||void 0===e?St.Reference:"function"==typeof e?e.length?St.ComplexFunction:St.ViewFunction:Array.isArray(e)||e instanceof Kt?St.Array:"object"==typeof e?lt(e)?St.PlainObject:St.ComplexObject:St.Reference}function C(e,t,n,r){return"function"==typeof n?V(e,t,n,r):E(e,t,n)}function E(e,t,n){return lt(e)&&!Ke(e)?(at("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),qe(I(e)).observe(t,n)):qe(e).observe(t,n)}function V(e,t,n,r){return lt(e)&&!Ke(e)?(at("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),b(e,{property:e[t]}),V(e,t,n,r)):qe(e,t).observe(n,r)}function D(e,t,n){function r(r){return t&&n.push([e,r]),r}if(void 0===t&&(t=!0),void 0===n&&(n=null),e instanceof Date||e instanceof RegExp)return e;if(t&&null===n&&(n=[]),t&&null!==e&&"object"==typeof e)for(var i=0,o=n.length;i<o;i++)if(n[i][0]===e)return n[i][1];if(!e)return e;if(Array.isArray(e)||e instanceof Kt){var a=r([]),s=e.map(function(e){return D(e,t,n)});a.length=s.length;for(var i=0,o=s.length;i<o;i++)a[i]=s[i];return a}if(e instanceof Qt){var u=r({});return e.forEach(function(e,r){return u[r]=D(e,t,n)}),u}if(O(e)&&e.$mobx instanceof tn)return D(e(),t,n);if(e instanceof tn)return D(e.get(),t,n);if("object"==typeof e){var a=r({});for(var c in e)a[c]=D(e[c],t,n);return a}return e}function T(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=null),at("toJSON is deprecated. Use toJS instead"),D.apply(null,arguments)}function L(e){return console.log(e),e}function $(e,t){switch(arguments.length){case 0:if(e=Tt.derivationStack[Tt.derivationStack.length-1],!e)return L("whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested it's value.");break;case 2:e=He(e,t)}return e=He(e),e instanceof jt?L(e.whyRun()):e instanceof Lt?L(e.whyRun()):void ot(!1,"whyRun can only be used on reactions and computed values")}function M(e,t){ot("function"==typeof t,"`action` can only be invoked on functions"),ot("string"==typeof e&&e.length>0,"actions should have valid names, got: '"+e+"'");var n=function(){return z(e,t,this,arguments)};return n.isMobxAction=!0,n}function z(e,t,n,r){var i=Tt.derivationStack;ot(!(i[i.length-1]instanceof jt),"Computed values or transformers should not invoke actions or trigger other side effects");var o,a=ue();if(a){o=Date.now();var s=r&&r.length||0,u=new Array(s);if(s>0)for(var c=0;c<s;c++)u[c]=r[c];le({type:"action",name:e,fn:t,target:n,arguments:u})}var l=Y();ve(e,n,!1);var f=U(!0);try{return t.apply(n,r)}finally{F(f),ye(!1),Z(l),a&&fe({time:Date.now()-o})}}function N(e){return 0===arguments.length?Tt.strictMode:(ot(0===Tt.derivationStack.length,"It is not allowed to set `useStrict` when a derivation is running"),Tt.strictMode=e,Tt.allowStateChanges=!e,void 0)}function P(e,t){var n=U(e),r=t();return F(n),r}function U(e){var t=Tt.allowStateChanges;return Tt.allowStateChanges=e,t}function F(e){Tt.allowStateChanges=e}function B(e){ot(e.isDirty,"atom not dirty"),e.isDirty=!1,ae(e,!0)}function J(){return Tt.derivationStack.length>0&&Tt.isTracking}function G(){Tt.allowStateChanges||ot(!1,Tt.strictMode?"It is not allowed to create or change state outside an `action` when MobX is in strict mode. Wrap the current method in `action` if this state change is intended":"It is not allowed to change the state when a computed value or transformer is being evaluated. Use 'autorun' to create reactive functions with side-effects.")}function W(e){1===++e.dependencyStaleCount&&oe(e)}function K(e,t){if(ot(e.dependencyStaleCount>0,"unexpected ready notification"),t&&(e.dependencyChangeCount+=1),0===--e.dependencyStaleCount)if(e.dependencyChangeCount>0){e.dependencyChangeCount=0;var n=e.onDependenciesReady();ae(e,n)}else ae(e,!1)}function H(e,t){var n=e.observing;e.observing=new Array(n.length+100),e.unboundDepsCount=0,e.runId=++Tt.runId,Tt.derivationStack.push(e);var r=Tt.isTracking;Tt.isTracking=!0;var i,o=!0;try{i=t.call(e),o=!1}finally{if(o){var a="[mobx] An uncaught exception occurred while calculating your computed value, autorun or transformer. Or inside the render() method of an observer based React component. These functions should never throw exceptions as MobX will not always be able to recover from them. "+("Please fix the error reported after this message or enable 'Pause on (caught) exceptions' in your debugger to find the root cause. In: '"+e.name+"'. ")+"For more details see https://github.com/mobxjs/mobx/issues/462";ue()&&ce({type:"error",object:this,message:a}),console.warn(a),e.unboundDepsCount=0,e.observing=n,te()}else Tt.isTracking=r,Tt.derivationStack.length-=1,q(e,n)}return i}function q(e,t){for(var n=t.length,r=e.observing,i=r.length=e.unboundDepsCount,o=0;o<n;o++)t[o].diffValue=-1;for(var o=0;o<i;o++){var a=r[o];++a.diffValue>0&&(a.diffValue=0,ne(a,e))}for(var o=0;o<n;o++){var a=t[o];a.diffValue<0&&(a.diffValue=0,re(a,e))}}function Q(e){for(var t=e.observing,n=t.length,r=0;r<n;r++)re(t[r],e);t.length=0}function X(e){var t=Y(),n=e();return Z(t),n}function Y(){var e=Tt.isTracking;return Tt.isTracking=!1,e}function Z(e){Tt.isTracking=e}function ee(){}function te(){Tt.resetId++;var e=new Dt;for(var t in e)Vt.indexOf(t)===-1&&(Tt[t]=e[t]);Tt.allowStateChanges=!Tt.strictMode}function ne(e,t){e.observers.add(t)}function re(e,t){e.observers.remove(t),0===e.observers.length&&e.onBecomeUnobserved()}function ie(e){if(Tt.isTracking!==!1){var t=Tt.derivationStack[Tt.derivationStack.length-1];t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.observing[t.unboundDepsCount++]=e)}}function oe(e){for(var t=e.observers.asArray(),n=t.length,r=0;r<n;r++)W(t[r]);e.staleObservers=e.staleObservers.concat(t)}function ae(e,t){e.staleObservers.splice(0).forEach(function(e){return K(e,t)})}function se(){if(!(Tt.isRunningReactions===!0||Tt.inTransaction>0)){Tt.isRunningReactions=!0;for(var e=Tt.pendingReactions,t=0;e.length>0;){if(++t===$t)throw new Error("Reaction doesn't converge to a stable state after "+$t+" iterations. Probably there is a cycle in the reactive function: "+e[0]);for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction()}Tt.isRunningReactions=!1}}function ue(){return Mt}function ce(e){if(!Mt)return!1;for(var t=Tt.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function le(e){var t=ft({},e,{spyReportStart:!0});ce(t)}function fe(e){ce(e?ft({},e,zt):zt)}function pe(e){return Tt.spyListeners.push(e),Mt=Tt.spyListeners.length>0,st(function(){var t=Tt.spyListeners.indexOf(e);t!==-1&&Tt.spyListeners.splice(t,1),Mt=Tt.spyListeners.length>0})}function he(e){return at("trackTransitions is deprecated. Use mobx.spy instead"),"boolean"==typeof e&&(at("trackTransitions only takes a single callback function. If you are using the mobx-react-devtools, please update them first"),e=arguments[1]),e?pe(e):(at("trackTransitions without callback has been deprecated and is a no-op now. If you are using the mobx-react-devtools, please update them first"),function(){})}function de(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0),ve(e.name||"anonymous transaction",t,n);var r=e.call(t);return ye(n),r}function ve(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0),Tt.inTransaction+=1,n&&ue()&&le({type:"transaction",target:t,name:e})}function ye(e){if(void 0===e&&(e=!0),0===--Tt.inTransaction){for(var t=Tt.changedAtoms.splice(0),n=0,r=t.length;n<r;n++)B(t[n]);se()}e&&ue()&&fe()}function be(e){return e.interceptors&&e.interceptors.length>0}function me(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),st(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function ge(e,t){for(var n=Y(),r=e.interceptors,i=0,o=r.length;i<o;i++)if(t=r[i](t),ot(!t||t.type,"Intercept handlers should return nothing or a change object"),!t)return null;return Z(n),t}function we(e){return e.changeListeners&&e.changeListeners.length>0}function xe(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),st(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function _e(e,t){var n=Y(),r=e.changeListeners;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)Array.isArray(t)?r[i].apply(null,t):r[i](t);Z(n)}}function Re(e){return new Pt(e)}function ke(e){return new Ut(e)}function Se(e){return new Ft(e)}function Oe(e,t){return ze(e,t)}function Ae(e,t){return e instanceof Pt?[Nt.Reference,e.value]:e instanceof Ut?[Nt.Structure,e.value]:e instanceof Ft?[Nt.Flat,e.value]:[t,e]}function Ie(e){return e===Re?Nt.Reference:e===ke?Nt.Structure:e===Se?Nt.Flat:(ot(void 0===e,"Cannot determine value mode from function. Please pass in one of these: mobx.asReference, mobx.asStructure or mobx.asFlat, got: "+e),Nt.Recursive)}function je(e,t,n){var r;if(O(e))return e;switch(t){case Nt.Reference:return e;case Nt.Flat:Ce(e,"Items inside 'asFlat' cannot have modifiers"),r=Nt.Reference;break;case Nt.Structure:Ce(e,"Items inside 'asStructure' cannot have modifiers"),r=Nt.Structure;break;case Nt.Recursive:i=Ae(e,Nt.Recursive),r=i[0],e=i[1];break;default:ot(!1,"Illegal State")}return Array.isArray(e)?Le(e,r,n):lt(e)&&Object.isExtensible(e)?m(e,e,r,n):e;var i}function Ce(e,t){if(e instanceof Pt||e instanceof Ut||e instanceof Ft)throw new Error("[mobx] asStructure / asReference / asFlat cannot be used here. "+t)}function Ee(e){var t=Ve(e),n=De(e);Object.defineProperty(Kt.prototype,""+e,{enumerable:!1,configurable:!0,set:t,get:n})}function Ve(e){return function(t){var n=this.$mobx,r=n.values;if(Ce(t,"Modifiers cannot be used on array values. For non-reactive array values use makeReactive(asFlat(array))."),e<r.length){G();var i=r[e];if(be(n)){var o=ge(n,{type:"update",object:n.array,index:e,newValue:t});if(!o)return;t=o.newValue}t=n.makeReactiveArrayItem(t);var a=n.mode===Nt.Structure?!wt(i,t):i!==t;a&&(r[e]=t,n.notifyArrayChildUpdate(e,t,i))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}}}function De(e){return function(){var t=this.$mobx;return t&&e<t.values.length?(t.atom.reportObserved(),t.values[e]):void console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}}function Te(e){for(var t=Jt;t<e;t++)Ee(t);Jt=e}function Le(e,t,n){return new Kt(e,t,n)}function $e(e){return at("fastArray is deprecated. Please use `observable(asFlat([]))`"),Le(e,Nt.Flat,null)}function Me(e){return e instanceof Kt}function ze(e,t){return new Qt(e,t)}function Ne(e){return e instanceof Qt}function Pe(e,t,n){if(void 0===n&&(n=Nt.Recursive),Ke(e))return e.$mobx;lt(e)||(t=e.constructor.name+"@"+it()),t||(t="ObservableObject@"+it());var r=new Xt(e,t,n);return yt(e,"$mobx",r),r}function Ue(e,t,n){e.values[t]?e.target[t]=n:Fe(e,t,n,!0)}function Fe(e,t,n,r){r&&mt(e.target,t);var i,a=e.name+"."+t,s=!0;if("function"!=typeof n||0!==n.length||o(n))if(n instanceof Ut&&"function"==typeof n.value&&0===n.value.length)i=new jt(n.value,e.target,(!0),a);else{if(s=!1,be(e)){var u=ge(e,{object:e.target,name:t,type:"add",newValue:n});if(!u)return;n=u.newValue}i=new tn(n,e.mode,a,(!1)),n=i.value}else i=new jt(n,e.target,(!1),a);e.values[t]=i,r&&Object.defineProperty(e.target,t,s?Je(t):Be(t)),s||We(e,e.target,t,n)}function Be(e){var t=Yt[e];return t?t:Yt[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){Ge(this,e,t)}}}function Je(e){var t=Zt[e];return t?t:Zt[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:h}}function Ge(e,t,n){var r=e.$mobx,i=r.values[t];if(be(r)){var o=ge(r,{type:"update",object:e,name:t,newValue:n});if(!o)return;n=o.newValue}if(n=i.prepareNewValue(n),n!==en){var a=we(r),s=ue(),o=_e||we?{type:"update",object:e,oldValue:i.value,name:t,newValue:n}:null;s&&le(o),i.setNewValue(n),a&&_e(r,o),s&&fe()}}function We(e,t,n,r){var i=we(e),o=ue(),a=i||o?{type:"add",object:t,name:n,newValue:r}:null;o&&le(a),i&&_e(e,a),o&&fe()}function Ke(e){return"object"==typeof e&&null!==e&&(Ze(e),e.$mobx instanceof Xt)}function He(e,t){if("object"==typeof e&&null!==e){if(Me(e))return ot(void 0===t,"It is not possible to get index atoms from arrays"),e.$mobx.atom;if(Ne(e)){if(void 0===t)return He(e._keys);var n=e._data[t]||e._hasMap[t];return ot(!!n,"the entry '"+t+"' does not exist in the observable map '"+Qe(e)+"'"),n}if(Ze(e),Ke(e)){ot(!!t,"please specify a property");var r=e.$mobx.values[t];return ot(!!r,"no observable property '"+t+"' found on the observable object '"+Qe(e)+"'"),r}if(e instanceof Ot||e instanceof jt||e instanceof Lt)return e}else if("function"==typeof e&&e.$mobx instanceof Lt)return e.$mobx;ot(!1,"Cannot obtain atom from "+e)}function qe(e,t){return ot(e,"Expection some object"),void 0!==t?qe(He(e,t)):e instanceof Ot||e instanceof jt||e instanceof Lt?e:Ne(e)?e:(Ze(e),e.$mobx?e.$mobx:void ot(!1,"Cannot obtain administration from "+e))}function Qe(e,t){var n;return n=void 0!==t?He(e,t):Ke(e)||Ne(e)?qe(e):He(e),n.name}function Xe(e,t,n,r,i){function o(o,a,s,u){if(ot(i||et(arguments),"This function is a decorator, but it wasn't invoked like a decorator"),s){ht(o,"__mobxLazyInitializers")||vt(o,"__mobxLazyInitializers",o.__mobxLazyInitializers&&o.__mobxLazyInitializers.slice()||[]);var c=s.value,l=s.initializer;return o.__mobxLazyInitializers.push(function(t){e(t,a,l?l.call(t):c,u,s)}),{enumerable:r,configurable:!0,get:function(){return this.__mobxDidRunLazyInitializers!==!0&&Ze(this),t.call(this,a)},set:function(e){this.__mobxDidRunLazyInitializers!==!0&&Ze(this),n.call(this,a,e)}}}var f={enumerable:r,configurable:!0,get:function(){return this.__mobxInitializedProps&&this.__mobxInitializedProps[a]===!0||Ye(this,a,void 0,e,u,s),t.call(this,a)},set:function(t){this.__mobxInitializedProps&&this.__mobxInitializedProps[a]===!0?n.call(this,a,t):Ye(this,a,t,e,u,s)}};return arguments.length<3&&Object.defineProperty(o,a,f),f}return i?function(){if(et(arguments))return o.apply(null,arguments);var e=arguments;return function(t,n,r){return o(t,n,r,e)}}:o}function Ye(e,t,n,r,i,o){ht(e,"__mobxInitializedProps")||vt(e,"__mobxInitializedProps",{}),e.__mobxInitializedProps[t]=!0,r(e,t,n,i,o)}function Ze(e){e.__mobxDidRunLazyInitializers!==!0&&e.__mobxLazyInitializers&&(vt(e,"__mobxDidRunLazyInitializers",!0),e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers.forEach(function(t){return t(e)}))}function et(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]}function tt(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function nt(e){ot(e[nn]!==!0,"Illegal state: cannot recycle array as iterator"),yt(e,nn,!0);var t=-1;return yt(e,"next",function(){return t++,{done:t>=this.length,value:t<this.length?this[t]:void 0}}),e}function rt(e,t){yt(e,tt(),t)}function it(){return++Tt.mobxGuid}function ot(e,t,n){if(!e)throw new Error("[mobx] Invariant failed: "+t+(n?" in '"+n+"'":""))}function at(e){un.indexOf(e)===-1&&(un.push(e),console.error("[mobx] Deprecated: "+e))}function st(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function ut(e){var t=[];return e.forEach(function(e){t.indexOf(e)===-1&&t.push(e)}),t}function ct(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=" - "),!e)return"";var r=e.slice(0,t);return""+r.join(n)+(e.length>t?" (... and "+(e.length-t)+"more)":"")}function lt(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function ft(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var i in r)ht(r,i)&&(e[i]=r[i])}return e}function pt(e,t,n){return e?!wt(t,n):t!==n}function ht(e,t){return ln.call(e,t)}function dt(e,t){for(var n=0;n<t.length;n++)vt(e,t[n],e[t[n]])}function vt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function yt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function bt(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||n.configurable!==!1&&n.writable!==!1}function mt(e,t){ot(bt(e,t),"Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function gt(e){var t=[];for(var n in e)t.push(n);return t}function wt(e,t){if(null===e&&null===t)return!0;if(void 0===e&&void 0===t)return!0;var n=Array.isArray(e)||Me(e);if(n!==(Array.isArray(t)||Me(t)))return!1;if(n){if(e.length!==t.length)return!1;for(var r=e.length-1;r>=0;r--)if(!wt(e[r],t[r]))return!1;return!0}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(gt(e).length!==gt(t).length)return!1;for(var i in e){if(!(i in t))return!1;if(!wt(e[i],t[i]))return!1}return!0}return e===t}var xt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};ee(),n.extras={allowStateChanges:P,getAtom:He,getDebugName:Qe,getDependencyTree:g,getObserverTree:x,isComputingDerivation:J,isSpyEnabled:ue,resetGlobalState:te,spyReport:ce,spyReportEnd:fe,spyReportStart:le,trackTransitions:he},n._={getAdministration:qe,resetGlobalState:te};var _t=Xe(function(e,n,r,i,o){var a=i&&1===i.length?i[0]:r.name||n||"<unnamed action>",s=t(a,r);vt(e,n,s)},function(e){return this[e]},function(){ot(!1,"It is not allowed to assign new values to @action fields")},!1,!0);n.action=t,n.runInAction=i,n.isAction=o,n.autorun=a,n.when=s,n.autorunUntil=u,n.autorunAsync=c,n.reaction=l;var Rt=Xe(function(e,t,n,r,i){ot("undefined"!=typeof i,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.");var o=i.get;ot("function"==typeof o,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'");var a=!1;r&&1===r.length&&r[0].asStructure===!0&&(a=!0);var s=Pe(e,void 0,Nt.Recursive);Fe(s,t,a?ke(o):o,!1)},function(e){return this.$mobx.values[e].get()},h,!1,!0);n.computed=f,n.createTransformer=d,n.expr=y,n.extendObservable=b,n.intercept=R,n.isObservable=O;var kt=Xe(function(e,t,n){var r=U(!0);"function"==typeof n&&(n=Re(n));var i=Pe(e,void 0,Nt.Recursive);Fe(i,t,n,!0),F(r)},function(e){return this.$mobx.values[e].get()},function(e,t){Ge(this,e,t)},!0,!1);n.observable=I;var St;!function(e){e[e.Reference=0]="Reference",e[e.PlainObject=1]="PlainObject",e[e.ComplexObject=2]="ComplexObject",e[e.Array=3]="Array",e[e.ViewFunction=4]="ViewFunction",e[e.ComplexFunction=5]="ComplexFunction"}(St||(St={})),n.observe=C,n.toJS=D,n.toJSON=T,n.whyRun=$,n.useStrict=N;var Ot=function(){function e(e){void 0===e&&(e="Atom@"+it()),this.name=e,this.isDirty=!1,this.staleObservers=[],this.observers=new rn,this.diffValue=0,this.lastAccessedBy=0}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){ie(this)},e.prototype.reportChanged=function(){this.isDirty||(this.reportStale(),this.reportReady())},e.prototype.reportStale=function(){this.isDirty||(this.isDirty=!0,oe(this))},e.prototype.reportReady=function(){ot(this.isDirty,"atom not dirty"),Tt.inTransaction>0?Tt.changedAtoms.push(this):(B(this),se())},e.prototype.toString=function(){return this.name},e}();n.BaseAtom=Ot;var At=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+it()),void 0===n&&(n=cn),void 0===r&&(r=cn),e.call(this,t),this.name=t,this.onBecomeObservedHandler=n,this.onBecomeUnobservedHandler=r,this.isBeingTracked=!1}return xt(t,e),t.prototype.reportObserved=function(){e.prototype.reportObserved.call(this);var t=Tt.isTracking;return t&&!this.isBeingTracked&&(this.isBeingTracked=!0,this.onBecomeObservedHandler()),t},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(Ot);n.Atom=At;var It,jt=function(){function e(e,t,n,r){this.derivation=e,this.scope=t,this.compareStructural=n,this.isLazy=!0,this.isComputing=!1,this.staleObservers=[],this.observers=new rn,this.observing=[],this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.unboundDepsCount=0,this.__mapid="#"+it(),this.dependencyChangeCount=0,this.dependencyStaleCount=0,this.value=void 0,this.name=r||"ComputedValue@"+it()}return e.prototype.peek=function(){this.isComputing=!0;var e=U(!1),t=this.derivation.call(this.scope);return F(e),this.isComputing=!1,t},e.prototype.onBecomeUnobserved=function(){Q(this),this.isLazy=!0,this.value=void 0},e.prototype.onDependenciesReady=function(){var e=this.trackAndCompute();return e},e.prototype.get=function(){if(ot(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),ie(this),this.dependencyStaleCount>0)return this.peek();if(this.isLazy){if(!J())return this.peek();this.isLazy=!1,this.trackAndCompute()}return this.value},e.prototype.set=function(e){throw new Error("[ComputedValue '"+name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){ue()&&ce({object:this,type:"compute",fn:this.derivation,target:this.scope});var e=this.value,t=this.value=H(this,this.peek);return pt(this.compareStructural,t,e)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return a(function(){var o=n.get();if(!r||t){var a=Y();e(o,i),Z(a)}r=!1,i=o})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.whyRun=function(){var e=Tt.derivationStack.length>0,t=ut(this.observing).map(function(e){return e.name}),n=ut(this.observers.asArray()).map(function(e){return e.name}),r=this.isComputing?e?this.observers.length>0?It.INVALIDATED:It.REQUIRED:It.PEEK:It.NOT_RUNNING;if(r===It.REQUIRED){var i=Tt.derivationStack[Tt.derivationStack.length-2];i&&n.push(i.name)}return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+Ct[r]+" "+(r===It.NOT_RUNNING&&this.dependencyStaleCount>0?"(a next run is scheduled)":"")+"\n"+(this.isLazy?" * This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).\n":" * This computation will re-run if any of the following observables changes:\n "+ct(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n * If the outcome of this computation changes, the following observers will be re-run:\n "+ct(n)+"\n")},e}();!function(e){e[e.PEEK=0]="PEEK",e[e.INVALIDATED=1]="INVALIDATED",e[e.REQUIRED=2]="REQUIRED",e[e.NOT_RUNNING=3]="NOT_RUNNING"}(It||(It={}));var Ct=(sn={},sn[It.PEEK]="[peek] The value of this computed value was requested outside an reaction",sn[It.INVALIDATED]="[invalidated] Some observables used by this computation did change",sn[It.REQUIRED]="[started] This computation is required by another computed value / reaction",sn[It.NOT_RUNNING]="[idle] This compution is currently not running",sn);n.untracked=X;var Et,Vt=["mobxGuid","resetId","spyListeners","strictMode","runId"],Dt=function(){function e(){this.version=3,this.derivationStack=[],this.runId=0,this.mobxGuid=0,this.inTransaction=0,this.isTracking=!1,this.isRunningReactions=!1,this.changedAtoms=[],this.pendingReactions=[],this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[]}return e}(),Tt=function(){var t=new Dt;if(e.__mobservableTrackingStack||e.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(e.__mobxGlobal&&e.__mobxGlobal.version!==t.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");return e.__mobxGlobal?e.__mobxGlobal:e.__mobxGlobal=t}(),Lt=function(){function e(e,t){void 0===e&&(e="Reaction@"+it()),this.name=e,this.onInvalidate=t,this.staleObservers=an,this.observers=Et||(Et=new rn),this.observing=[],this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.unboundDepsCount=0,this.__mapid="#"+it(),this.dependencyChangeCount=0,this.dependencyStaleCount=0,this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onDependenciesReady=function(){return this.schedule(),!1},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Tt.pendingReactions.push(this),se())},e.prototype.isScheduled=function(){return this.dependencyStaleCount>0||this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(this._isScheduled=!1,this._isTrackPending=!0,this.onInvalidate(),
this._isTrackPending&&ue()&&ce({object:this,type:"scheduled-reaction"}))},e.prototype.track=function(e){var t,n=ue();n&&(t=Date.now(),le({object:this,type:"reaction",fn:e})),this._isRunning=!0,H(this,e),this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Q(this),n&&fe({time:Date.now()-t})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||Q(this))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=ut(this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+ct(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"},e}();n.Reaction=Lt;var $t=100,Mt=!1,zt={spyReportEnd:!0};n.spy=pe,n.transaction=de;var Nt;!function(e){e[e.Recursive=0]="Recursive",e[e.Reference=1]="Reference",e[e.Structure=2]="Structure",e[e.Flat=3]="Flat"}(Nt||(Nt={})),n.asReference=Re,n.asStructure=ke,n.asFlat=Se;var Pt=function(){function e(e){this.value=e,Ce(e,"Modifiers are not allowed to be nested")}return e}(),Ut=function(){function e(e){this.value=e,Ce(e,"Modifiers are not allowed to be nested")}return e}(),Ft=function(){function e(e){this.value=e,Ce(e,"Modifiers are not allowed to be nested")}return e}();n.asMap=Oe;var Bt=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Jt=0,Gt=function(){function e(){}return e}();Gt.prototype=[];var Wt=function(){function e(e,t,n,r){this.mode=t,this.array=n,this.owned=r,this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new Ot(e||"ObservableArray@"+it())}return e.prototype.makeReactiveArrayItem=function(e){return Ce(e,"Array values cannot have modifiers"),this.mode===Nt.Flat||this.mode===Nt.Reference?e:je(e,this.mode,this.atom.name+"[..]")},e.prototype.intercept=function(e){return me(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),xe(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;e!==t&&(e>t?this.spliceWithArray(t,0,new Array(e-t)):this.spliceWithArray(e,t-e))},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Jt&&Te(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){G();var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:void 0===t||null===t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=[]),be(this)){var i=ge(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!i)return an;t=i.removedCount,n=i.added}n=n.map(this.makeReactiveArrayItem,this);var o=n.length-t;this.updateArrayLength(r,o);var a=(s=this.values).splice.apply(s,[e,t].concat(n));return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),a;var s},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&ue(),i=we(this),o=i||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&le(o),this.atom.reportChanged(),i&&_e(this,o),r&&fe()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&ue(),i=we(this),o=i||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&le(o),this.atom.reportChanged(),i&&_e(this,o),r&&fe()},e}(),Kt=function(e){function t(t,n,r,i){void 0===i&&(i=!1),e.call(this);var o=new Wt(r,n,this,i);yt(this,"$mobx",o),t&&t.length?(o.updateArrayLength(0,t.length),o.values=t.map(o.makeReactiveArrayItem,o),o.notifyArraySplice(0,o.values.slice(),an)):o.values=[],Bt&&Object.defineProperty(o.array,"0",Ht)}return xt(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.slice(),e.map(function(e){return Me(e)?e.slice():e}))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.values},t.prototype.find=function(e,t,n){void 0===n&&(n=0),this.$mobx.atom.reportObserved();for(var r=this.$mobx.values,i=r.length,o=n;o<i;o++)if(e.call(t,r[o],o,this))return r[o]},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){this.$mobx.atom.reportObserved();var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){this.$mobx.atom.reportObserved();var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.values.indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.toString=function(){return"[mobx.array] "+Array.prototype.toString.apply(this.$mobx.values,arguments)},t.prototype.toLocaleString=function(){return"[mobx.array] "+Array.prototype.toLocaleString.apply(this.$mobx.values,arguments)},t}(Gt);rt(Kt.prototype,function(){return nt(this.slice())}),dt(Kt.prototype,["constructor","intercept","observe","clear","concat","replace","toJS","toJSON","peek","find","splice","push","pop","shift","unshift","reverse","sort","remove","toString","toLocaleString"]),Object.defineProperty(Kt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some"].forEach(function(e){var t=Array.prototype[e];vt(Kt.prototype,e,function(){return this.$mobx.atom.reportObserved(),t.apply(this.$mobx.values,arguments)})});var Ht={configurable:!0,enumerable:!1,set:Ve(0),get:De(0)};Te(1e3),n.fastArray=$e,n.isObservableArray=Me;var qt={},Qt=function(){function e(e,t){var n=this;this.$mobx=qt,this._data={},this._hasMap={},this.name="ObservableMap@"+it(),this._keys=new Kt(null,Nt.Reference,this.name+".keys()",(!0)),this.interceptors=null,this.changeListeners=null,this._valueMode=Ie(t),this._valueMode===Nt.Flat&&(this._valueMode=Nt.Reference),P(!0,function(){lt(e)?n.merge(e):Array.isArray(e)&&e.forEach(function(e){var t=e[0],r=e[1];return n.set(t,r)})})}return e.prototype._has=function(e){return"undefined"!=typeof this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(Ce(t,"[mobx.map.set] Expected unwrapped value to be inserted to key '"+e+"'. If you need to use modifiers pass them as second argument to the constructor"),be(this)){var r=ge(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return;t=r.newValue}n?this._updateValue(e,t):this._addValue(e,t)},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,be(this)){var n=ge(this,{type:"delete",object:this,name:e});if(!n)return!1}if(this._has(e)){var r=ue(),i=we(this),n=i||r?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return r&&le(n),de(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1);var n=t._data[e];n.setNewValue(void 0),t._data[e]=void 0},void 0,!1),i&&_e(this,n),r&&fe(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new tn(t,Nt.Reference,this.name+"."+e+"?",(!1)),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if(t=n.prepareNewValue(t),t!==en){var r=ue(),i=we(this),o=i||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&le(o),n.setNewValue(t),i&&_e(this,o),r&&fe()}},e.prototype._addValue=function(e,t){var n=this;de(function(){var r=n._data[e]=new tn(t,n._valueMode,n.name+"."+e,(!1));t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)},void 0,!1);var r=ue(),i=we(this),o=i||r?{type:"add",object:this,name:e,newValue:t}:null;r&&le(o),i&&_e(this,o),r&&fe()},e.prototype.get=function(e){if(e=""+e,this.has(e))return this._data[e].get()},e.prototype.keys=function(){return nt(this._keys.slice())},e.prototype.values=function(){return nt(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return nt(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(r){return e.call(t,n.get(r),r)})},e.prototype.merge=function(t){var n=this;return de(function(){t instanceof e?t.keys().forEach(function(e){return n.set(e,t.get(e))}):Object.keys(t).forEach(function(e){return n.set(e,t[e])})},void 0,!1),this},e.prototype.clear=function(){var e=this;de(function(){X(function(){e.keys().forEach(e.delete,e)})},void 0,!1)},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJs=function(){return at("toJs is deprecated, use toJS instead"),this.toJS()},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"'")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return ot(t!==!0,"`observe` doesn't support the fire immediately property for observable maps."),xe(this,e)},e.prototype.intercept=function(e){return me(this,e)},e}();n.ObservableMap=Qt,rt(Qt.prototype,function(){return this.entries()}),n.map=ze,n.isObservableMap=Ne;var Xt=function(){function e(e,t,n){this.target=e,this.name=t,this.mode=n,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return ot(t!==!0,"`observe` doesn't support the fire immediately property for observable objects."),xe(this,e)},e.prototype.intercept=function(e){return me(this,e)},e}(),Yt={},Zt={};n.isObservableObject=Ke;var en={},tn=function(e){function t(t,n,r,i){void 0===r&&(r="ObservableValue@"+it()),void 0===i&&(i=!0),e.call(this,r),this.mode=n,this.hasUnreportedChange=!1,this.value=void 0;var o=Ae(t,Nt.Recursive),a=o[0],s=o[1];this.mode===Nt.Recursive&&(this.mode=a),this.value=je(s,this.mode,this.name),i&&ue()&&ce({type:"create",object:this,newValue:this.value})}return xt(t,e),t.prototype.set=function(e){var t=this.value;if(e=this.prepareNewValue(e),e!==en){var n=ue();n&&le({type:"update",object:this,newValue:e,oldValue:t}),this.setNewValue(e),n&&fe()}},t.prototype.prepareNewValue=function(e){if(Ce(e,"Modifiers cannot be used on non-initial values."),G(),be(this)){var t=ge(this,{object:this,type:"update",newValue:e});if(!t)return en;e=t.newValue}var n=pt(this.mode===Nt.Structure,this.value,e);return n?je(e,this.mode,this.name):en},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),we(this)&&_e(this,[e,t])},t.prototype.get=function(){return this.reportObserved(),this.value},t.prototype.intercept=function(e){return me(this,e)},t.prototype.observe=function(e,t){return t&&e(this.value,void 0),xe(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t}(Ot),nn="__$$iterating",rn=function(){function e(){this.size=0,this.data={}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.asArray=function(){var e=new Array(this.size),t=0;for(var n in this.data)e[t]=this.data[n],t++;return e},e.prototype.add=function(e){var t=e.__mapid;t in this.data||(this.data[t]=e,this.size++)},e.prototype.remove=function(e){e.__mapid in this.data&&(delete this.data[e.__mapid],this.size--)},e}();n.SimpleSet=rn;var on=function(){function e(){this.listeners=[],at("extras.SimpleEventEmitter is deprecated and will be removed in the next major release")}return e.prototype.emit=function(){for(var e=this.listeners.slice(),t=0,n=e.length;t<n;t++)e[t].apply(null,arguments)},e.prototype.on=function(e){var t=this;return this.listeners.push(e),st(function(){var n=t.listeners.indexOf(e);n!==-1&&t.listeners.splice(n,1)})},e.prototype.once=function(e){var t=this.on(function(){t(),e.apply(this,arguments)});return t},e}();n.SimpleEventEmitter=on;var an=[];Object.freeze(an);var sn,un=[],cn=function(){},ln=Object.prototype.hasOwnProperty}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)});
//# sourceMappingURL=lib/mobx.umd.min.js.map
{
"name": "mobx",
"version": "2.4.3",
"version": "2.4.4",
"description": "Simple, scalable state management.",

@@ -5,0 +5,0 @@ "main": "lib/mobx.js",

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

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