1/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */ 2!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 o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[a]={exports:{}};t[a][0].call(f.exports,function(e){var n=t[a][1][e];return o(n||e)},f,f.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(e,t){"use strict";function r(e,t){function n(){this.constructor=e}on(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function i(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e}function a(e,t){var n=t?sn:un;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return s(this),this[e]},set:function(t){s(this),this[e]=t}})}function s(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t){Ke(e,"__mobxDidRunLazyInitializers",!0);for(var n in t){var r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}}function u(e,t){return function(){var n,r=function(r,o,i,s){if(!0===s)return t(r,o,i,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,"__mobxDecorators")){var u=r.__mobxDecorators;Ke(r,"__mobxDecorators",an({},u))}return r.__mobxDecorators[o]={prop:o,propertyCreator:t,descriptor:i,decoratorTarget:r,decoratorArguments:n},a(o,e)};return c(arguments)?(n=Hn,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r)}}function c(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function f(){return!!Qn.spyListeners.length}function l(e){if(Qn.spyListeners.length)for(var t=Qn.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function p(e){l(an({},e,{spyReportStart:!0}))}function h(e){l(e?an({},e,{spyReportEnd:!0}):cn)}function d(e){return Qn.spyListeners.push(e),$e(function(){Qn.spyListeners=Qn.spyListeners.filter(function(t){return t!==e})})}function v(e,t){var n=function(){return y(e,t,this,arguments)};return n.isMobxAction=!0,n}function y(e,t,n,r){var o=b(e,t,n,r);try{return t.apply(n,r)}finally{m(o)}}function b(e,t,n,r){var o=f()&&!!e,i=0;if(o){i=Date.now();var a=r&&r.length||0,s=new Array(a);if(a>0)for(var u=0;u<a;u++)s[u]=r[u];p({type:"action",name:e,object:n,arguments:s})}var c=Dt();return pt(),{prevDerivation:c,prevAllowStateChanges:w(!0),notifySpy:o,startTime:i}}function m(e){O(e.prevAllowStateChanges),ht(),jt(e.prevDerivation),e.notifySpy&&h({time:Date.now()-e.startTime})}function g(e,t){var n,r=w(e);try{n=t()}finally{O(r)}return n}function w(e){var t=Qn.allowStateChanges;return Qn.allowStateChanges=e,t}function O(e){Qn.allowStateChanges=e}function _(){Ce(!1)}function S(e){return function(t,n,r){if(r){if(r.value)return{value:v(e,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return v(e,o.call(this))}}}return x(e).apply(this,arguments)}}function x(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){We(this,n,fn(e,t))}})}}function A(e,t,n,r){return!0===r?(D(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return D(this,t,n.value||n.initializer.call(this)),this[t]},set:_}:{enumerable:!1,configurable:!0,set:function(e){D(this,t,e)},get:function(){}}}function E(e,t){var n="string"==typeof e?e:e.name||"<unnamed action>",r="function"==typeof e?e:t;return y(n,r,this,void 0)}function T(e){return"function"==typeof e&&!0===e.isMobxAction}function D(e,t,n){Ke(e,t,v(t,n.bind(e)))}function j(e,t){return I(e,t)}function I(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&k(e,t,n,r)}function k(e,t,n,r){e=V(e),t=V(t);var o=ln.call(e);
2if(o!==ln.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!("function"==typeof a&&a instanceof a&&"function"==typeof s&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if((u=e.length)!==t.length)return!1;for(;u--;)if(!I(e[u],t[u],n,r))return!1}else{var c,f=Object.keys(e);if(u=f.length,Object.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!L(t,c)||!I(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function V(e){return Le(e)?e.peek():Ye(e)||Bn(e)?Fe(e.entries()):e}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function P(e,t){return e===t}function R(e,t){return j(e,t)}function C(e,t){return He(e,t)||P(e,t)}function N(e,t){function n(){e(r)}void 0===t&&(t=Jn);var r,o=t&&t.name||e.name||"Autorun@"+Re(),i=!t.scheduler&&!t.delay;if(i)r=new rr(o,function(){this.track(n)},t.onError);else{var a=B(t),s=!1;r=new rr(o,function(){s||(s=!0,a(function(){s=!1,r.isDisposed||r.track(n)}))},t.onError)}return r.schedule(),r.getDisposer()}function B(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:hn}function $(e,t,n){function r(){if(f=!1,!p.isDisposed){var t=!1;p.track(function(){var n=e(p);t=c||!l(o,n),o=n}),c&&n.fireImmediately&&a(o,p),c||!0!==t||a(o,p),c&&(c=!1)}}void 0===n&&(n=Jn),"boolean"==typeof n&&(n={fireImmediately:n},Be("Using fireImmediately as argument is deprecated. Use '{ fireImmediately: true }' instead"));var o,i=n.name||"Reaction@"+Re(),a=fn(i,n.onError?M(n.onError,t):t),s=!n.scheduler&&!n.delay,u=B(n),c=!0,f=!1,l=n.compareStructural?pn.structural:n.equals||pn.default,p=new rr(i,function(){c||s?r():f||(f=!0,u(r))},n.onError);return p.schedule(),p.getDisposer()}function M(e,t){return function(){try{return t.apply(this,arguments)}catch(t){e.call(this,t)}}}function U(e){return void 0!==e.interceptors&&e.interceptors.length>0}function G(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),$e(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function K(e,t){var n=Dt();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o<i&&(t=r[o](t),Ne(!t||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{jt(n)}}function W(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function q(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),$e(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function z(e,t){var n=Dt(),r=e.changeListeners;if(r){r=r.slice();for(var o=0,i=r.length;o<i;o++)r[o](t);jt(n)}}function H(e,t,n){void 0===t&&(t=""),void 0===n&&(n=de);var r=e.$mobx;return r||(Ge(e)||(t=(e.constructor.name||"ObservableObject")+"@"+Re()),t||(t="ObservableObject@"+Re()),r=new gn(e,t,n),We(e,"$mobx",r),r)}function J(e,t,n,r){var o=H(e);if(qe(e,t),U(o)){var i=K(o,{object:e,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}n=(o.values[t]=new bn(n,r,o.name+"."+t,!1)).value,Object.defineProperty(e,t,X(t)),o.keys&&o.keys.push(t),Z(o,e,t,n)}function Y(e,t,n){var r=H(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new dn(n),Object.defineProperty(e,t,Q(t))}function X(e){return wn[e]||(wn[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}function F(e){var t=e.$mobx;return t||(s(e),e.$mobx)}function Q(e){return On[e]||(On[e]={configurable:!0,enumerable:!1,get:function(){return F(this).read(this,e)},set:function(t){F(this).write(this,e,t)}})}function Z(e,t,n,r){var o=W(e),i=f(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&p(an({},a,{name:e.name,key:n})),o&&z(e,a),i&&h()}function ee(e){return!!Ue(e)&&(s(e),_n(e.$mobx))}function te(t){var n=u(!0,function(e,n,r,o,i){J(e,n,r?r.initializer?r.initializer.call(e):r.value:void 0,t)}),r=(void 0!==e&&e.env,n);return r.enhancer=t,r}function ne(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(ee(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return ee(e)||!!e.$mobx||Nn(e)||ar(e)||vn(e)}function re(e){return 1!==arguments.length&&Ce(!1),ne(e)}function oe(e,t){return"string"!=typeof t?Ce(!1):ne(e,t)}function ie(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(!1===ee(e))return!1;if(!e.$mobx.values[t])return!1;var n=Se(e,t);return vn(n)}return vn(e)}function ae(e){return arguments.length>1?Ce(!1):ie(e)}function se(e,t){return"string"!=typeof t?Ce(!1):ie(e,t)}function ue(e,t,n){return Be("'extendShallowObservable' is deprecated, use 'extendObservable(target, props, { deep: false })' instead"),ce(e,t,n,Tn)}function ce(e,t,n,r){var o;r=fe(r);var i=r.defaultDecorator||(!1===r.deep?In:Dn);H(e,r.name,i.enhancer),pt();try{for(var o in t){var a=Object.getOwnPropertyDescriptor(t,o),s=n&&o in n?n[o]:a.get?Sn:i,u=s(e,o,a,!0);u&&Object.defineProperty(e,o,u)}}finally{ht()}return e}function fe(e){return null===e||void 0===e?En:"string"==typeof e?{name:e,deep:!0}:e}function le(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?ye:de}function pe(e,t,n){if("string"==typeof arguments[1])return Dn.apply(null,arguments);if(re(e))return e;var r=Ge(e)?Ln.object(e,t,n):Array.isArray(e)?Ln.array(e,t):Ye(e)?Ln.map(e,t):e;if(r!==e)return r;Ce(!1)}
2function he(e){Ce("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function de(e,t,n){return re(e)?e:Array.isArray(e)?Ln.array(e,{name:n}):Ge(e)?Ln.object(e,void 0,{name:n}):Ye(e)?Ln.map(e,{name:n}):e}function ve(e,t,n){return void 0===e||null===e?e:ee(e)||Le(e)||Bn(e)?e:Array.isArray(e)?Ln.array(e,{name:n,deep:!1}):Ge(e)?Ln.object(e,void 0,{name:n,deep:!1}):Ye(e)?Ln.map(e,{name:n,deep:!1}):Ce(!1)}function ye(e){return e}function be(e,t,n){return j(e,t)?t:e}function me(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function ge(e,t){We(e,me(),t)}function we(e){return e[me()]=Oe,e}function Oe(){return this}function _e(e,t){void 0===t&&(t=void 0),pt();try{return e.apply(t)}finally{ht()}}function Se(e,t){if("object"==typeof e&&null!==e){if(Le(e))return void 0!==t&&Ce(!1),e.$mobx.atom;if(Bn(e)){var n=e;if(void 0===t)return Se(n._keys);var r=n._data.get(t)||n._hasMap.get(t);return r||Ce(!1),r}if(s(e),t&&!e.$mobx&&e[t],ee(e)){if(!t)return Ce(!1);var r=e.$mobx.values[t];return r||Ce(!1),r}if(Nn(e)||vn(e)||ar(e))return e}else if("function"==typeof e&&ar(e.$mobx))return e.$mobx;return Ce(!1)}function xe(e,t){return e||Ce("Expecting some object"),void 0!==t?xe(Se(e,t)):Nn(e)||vn(e)||ar(e)?e:Bn(e)?e:(s(e),e.$mobx?e.$mobx:void Ce(!1))}function Ae(e,t){var n;return n=void 0!==t?Se(e,t):ee(e)||Bn(e)?xe(e):Se(e),n.name}function Ee(e,t,n){return De("onBecomeObserved",e,t,n)}function Te(e,t,n){return De("onBecomeUnobserved",e,t,n)}function De(e,t,n,r){var o="string"==typeof n?Se(t,n):Se(t),i="string"==typeof n?r:n,a=o[e];return"function"!=typeof a?Ce(!1):(o[e]=function(){a.call(this),i.call(this)},function(){o[e]=a})}function je(e,t,n){void 0===t&&(t=Yn),void 0===n&&(n=Yn);var r=new Cn(e);return Ee(r,t),Te(r,n),r}function Ie(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function ke(e){Object.defineProperty(Kn.prototype,""+e,Ie(e))}function Ve(e){for(var t=Mn;t<e;t++)ke(t);Mn=e}function Le(e){return Ue(e)&&qn(e.$mobx)}function Pe(){return"undefined"!=typeof window?window:t}function Re(){return++Qn.mobxGuid}function Ce(e){throw Ne(!1,e),"X"}function Ne(e,t){if(!e)throw new Error("[mobx] "+(t||zn))}function Be(e,t){return!1}function $e(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function Me(e){var t=[];return e.forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),t}function Ue(e){return null!==e&&"object"==typeof e}function Ge(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Ke(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function We(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function qe(e,t){}function ze(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return Ue(e)&&!0===e[n]}}function He(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Je(e){return Array.isArray(e)||Le(e)}function Ye(e){return void 0!==Pe().Map&&e instanceof Pe().Map}function Xe(e){return Ge(e)?Object.keys(e):Array.isArray(e)?e.map(function(e){return o(e,1)[0]}):Ye(e)||Bn(e)?Fe(e.keys()):Ce("Cannot get keys from '"+e+"'")}function Fe(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function Qe(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function Ze(e){return null===e?null:"object"==typeof e?""+e:e}function et(){Zn=!0,Pe().__mobxInstanceCount--}function tt(){return Qn}function nt(){var e=new Fn;for(var t in e)-1===Xn.indexOf(t)&&(Qn[t]=e[t]);Qn.allowStateChanges=!Qn.enforceActions}function rt(e,t){return ot(Se(e,t))}function ot(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=Me(e.observing).map(ot)),t}function it(e,t){return at(Se(e,t))}function at(e){var t={name:e.name};return st(e)&&(t.observers=ut(e).map(at)),t}function st(e){return e.observers&&e.observers.length>0}function ut(e){return e.observers}function ct(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function ft(e,t){if(1===e.observers.length)e.observers.length=0,lt(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function lt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Qn.pendingUnobservations.push(e))}function pt(){Qn.inBatch++}function ht(){if(0==--Qn.inBatch){Pt();for(var e=Qn.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof dn&&n.suspend())}Qn.pendingUnobservations=[]}}function dt(e){var t=Qn.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Qn.inBatch>0&<(e),!1)}function vt(e){if(e.lowestObserverState!==n.IDerivationState.STALE){e.lowestObserverState=n.IDerivationState.STALE;for(var t=e.observers,r=t.length;r--;){var o=t[r];o.dependenciesState===n.IDerivationState.UP_TO_DATE&&(o.isTracing!==tr.NONE&&mt(o,e),o.onBecomeStale()),o.dependenciesState=n.IDerivationState.STALE}}}function yt(e){if(e.lowestObserverState!==n.IDerivationState.STALE){e.lowestObserverState=n.IDerivationState.STALE;for(var t=e.observers,r=t.length;r--;){var o=t[r];o.dependenciesState===n.IDerivationState.POSSIBLY_STALE?o.dependenciesState=n.IDerivationState.STALE:o.dependenciesState===n.IDerivationState.UP_TO_DATE&&(e.lowestObserverState=n.IDerivationState.UP_TO_DATE)}}}function bt(e){if(e.lowestObserverState===n.IDerivationState.UP_TO_DATE){e.lowestObserverState=n.IDerivationState.POSSIBLY_STALE;for(var t=e.observers,r=t.length;r--;){var o=t[r];o.dependenciesState===n.IDerivationState.UP_TO_DATE&&(o.dependenciesState=n.IDerivationState.POSSIBLY_STALE,o.isTracing!==tr.NONE&&mt(o,e),o.onBecomeStale())}}}
2function mt(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===tr.BREAK){var n=[];gt(rt(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof dn?e.derivation.toString():"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function gt(e,t,n){if(t.length>=1e3)return void t.push("(and many more)");t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach(function(e){return gt(e,t,n+1)})}function wt(e){return e instanceof nr}function Ot(e){switch(e.dependenciesState){case n.IDerivationState.UP_TO_DATE:return!1;case n.IDerivationState.NOT_TRACKING:case n.IDerivationState.STALE:return!0;case n.IDerivationState.POSSIBLY_STALE:for(var t=Dt(),r=e.observing,o=r.length,i=0;i<o;i++){var a=r[i];if(vn(a)){if(Qn.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return jt(t),!0}if(e.dependenciesState===n.IDerivationState.STALE)return jt(t),!0}}return It(e),jt(t),!1}}function _t(){return null!==Qn.trackingDerivation}function St(e){var t=e.observers.length>0;Qn.computationDepth>0&&t&&Ce(!1),Qn.allowStateChanges||!t&&"strict"!==Qn.enforceActions||Ce(!1)}function xt(e,t,n){It(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Qn.runId;var r=Qn.trackingDerivation;Qn.trackingDerivation=e;var o;if(!0===Qn.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new nr(e)}return Qn.trackingDerivation=r,At(e),o}function At(e){for(var t=e.observing,r=e.observing=e.newObserving,o=n.IDerivationState.UP_TO_DATE,i=0,a=e.unboundDepsCount,s=0;s<a;s++){var u=r[s];0===u.diffValue&&(u.diffValue=1,i!==s&&(r[i]=u),i++),u.dependenciesState>o&&(o=u.dependenciesState)}for(r.length=i,e.newObserving=null,a=t.length;a--;){var u=t[a];0===u.diffValue&&ft(u,e),u.diffValue=0}for(;i--;){var u=r[i];1===u.diffValue&&(u.diffValue=0,ct(u,e))}o!==n.IDerivationState.UP_TO_DATE&&(e.dependenciesState=o,e.onBecomeStale())}function Et(e){var t=e.observing;e.observing=[];for(var r=t.length;r--;)ft(t[r],e);e.dependenciesState=n.IDerivationState.NOT_TRACKING}function Tt(e){var t=Dt(),n=e();return jt(t),n}function Dt(){var e=Qn.trackingDerivation;return Qn.trackingDerivation=null,e}function jt(e){Qn.trackingDerivation=e}function It(e){if(e.dependenciesState!==n.IDerivationState.UP_TO_DATE){e.dependenciesState=n.IDerivationState.UP_TO_DATE;for(var t=e.observing,r=t.length;r--;)t[r].lowestObserverState=n.IDerivationState.UP_TO_DATE}}function kt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var r=Vt(e);if(!r)return Ce(!1);r.isTracing===tr.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?tr.BREAK:tr.LOG}function Vt(e){switch(e.length){case 0:return Qn.trackingDerivation;case 1:return Se(e[0]);case 2:return Se(e[0],e[1])}}function Lt(e){return Qn.globalReactionErrorHandlers.push(e),function(){var t=Qn.globalReactionErrorHandlers.indexOf(e);t>=0&&Qn.globalReactionErrorHandlers.splice(t,1)}}function Pt(){Qn.inBatch>0||Qn.isRunningReactions||ir(Rt)}function Rt(){Qn.isRunningReactions=!0;for(var e=Qn.pendingReactions,t=0;e.length>0;){++t===or&&(console.error("Reaction doesn't converge to a stable state after "+or+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction()}Qn.isRunningReactions=!1}function Ct(e){var t=ir;ir=function(n){return e(function(){return t(n)})}}function Nt(e,t,n,r){return"function"==typeof n?$t(e,t,n,r):Bt(e,t,n)}function Bt(e,t,n){return xe(e).observe(t,n)}function $t(e,t,n,r){return xe(e,t).observe(n,r)}function Mt(e,t,n){return"function"==typeof n?Gt(e,t,n):Ut(e,t)}function Ut(e,t){return xe(e).intercept(t)}function Gt(e,t,n){return xe(e,t).intercept(n)}function Kt(e,t,n){return 1===arguments.length||t&&"object"==typeof t?qt(e,t):Wt(e,t,n||{})}function Wt(e,t,n){var r;"number"==typeof n.timeout&&(r=setTimeout(function(){if(!i.$mobx.isDisposed){i();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}},n.timeout)),n.name=n.name||"When@"+Re();var o=v(n.name+"-effect",t),i=N(function(t){e()&&(t.dispose(),r&&clearTimeout(r),o())},n);return i}function qt(e,t){var n,r=new Promise(function(r,o){var i=Wt(e,r,an({},t,{onError:o}));n=function(){i(),o("WHEN_CANCELLED")}});return r.cancel=n,r}function zt(e){return ee(e)?e.$mobx.getKeys():Bn(e)?e._keys.slice():Ce(!1)}function Ht(e){return ee(e)?zt(e).map(function(t){return e[t]}):Bn(e)?zt(e).map(function(t){return e.get(t)}):Le(e)?e.slice():Ce(!1)}function Jt(e,t,n){if(2!==arguments.length)if(ee(e)){var r=e.$mobx,o=r.values[t];o?o.set(n):J(e,t,n,r.defaultEnhancer)}else if(Bn(e))e.set(t,n);else{if(!Le(e))return Ce(!1);"number"!=typeof t&&(t=parseInt(t,10)),Ne(t>=0,"Not a valid index: '"+t+"'"),pt(),t>=e.length&&(e.length=t+1),e[t]=n,ht()}else{pt();var i=t;
2try{for(var a in i)Jt(e,a,i[a])}finally{ht()}}}function Yt(e,t){if(ee(e))e.$mobx.remove(t);else if(Bn(e))e.delete(t);else{if(!Le(e))return Ce(!1);"number"!=typeof t&&(t=parseInt(t,10)),Ne(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}}function Xt(e,t){if(ee(e)){var n=xe(e);return n.getKeys(),n.values[t]instanceof bn}return Bn(e)?e.has(t):Le(e)?t>=0&&t<e.length:Ce(!1)}function Ft(e,t){if(Xt(e,t))return ee(e)?e[t]:Bn(e)?e.get(t):Le(e)?e[t]:Ce(!1)}function Qt(e,t){var n="function"==typeof e?e.prototype:e;for(var r in t){var o=t[r],i=Object.getOwnPropertyDescriptor(n,r),a=o(n,r,i);a&&Object.defineProperty(n,r,a)}return e}function Zt(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.disableErrorBoundaries,o=e.arrayBuffer,i=e.reactionScheduler;if(void 0!==t){if("boolean"!=typeof t&&"strict"!==t)return fail("Invalid configuration for 'enforceActions': "+t);Qn.enforceActions=t,Qn.allowStateChanges=!0!==t&&"strict"!==t}void 0!==n&&(Qn.computedRequiresReaction=!!n),!0===e.isolateGlobalState&&et(),void 0!==r&&(!0===r&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Qn.disableErrorBoundaries=!!r),"number"==typeof o&&Ve(o),i&&Ct(i)}function en(e){1!==arguments.length&&Ce("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,r=this,o=arguments,i=++sr,a=fn(t+" - runid: "+i+" - init",e).apply(r,o),s=void 0,u=new Promise(function(e,r){function o(e){s=void 0;var n;try{n=fn(t+" - runid: "+i+" - yield "+f++,a.next).call(a,e)}catch(e){return r(e)}c(n)}function u(e){s=void 0;var n;try{n=fn(t+" - runid: "+i+" - yield "+f++,a.throw).call(a,e)}catch(e){return r(e)}c(n)}function c(t){return t&&"function"==typeof t.then?void t.then(c,r):t.done?e(t.value):(s=Promise.resolve(t.value),s.then(o,u))}var f=0;n=r,o(void 0)});return u.cancel=fn(t+" - runid: "+i+" - cancel",function(){try{s&&tn(s);var e=a.return(),t=Promise.resolve(e.value);t.then(Yn,Yn),tn(t),n(new Error("FLOW_CANCELLED"))}catch(e){n(e)}}),u}}function tn(e){"function"==typeof e.cancel&&e.cancel()}function nn(e,t,n){function r(t){return o&&n.push([e,t]),t}void 0===n&&(n=[]),"boolean"==typeof t&&(t={detectCycles:t}),t||(t=ur);var o=!0===t.detectCycles;if(re(e)){if(o&&null===n&&(n=[]),o&&null!==e&&"object"==typeof e)for(var i=0,a=n.length;i<a;i++)if(n[i][0]===e)return n[i][1];if(Le(e)){var s=r([]),u=e.map(function(e){return nn(e,t,n)});s.length=u.length;for(var i=0,a=u.length;i<a;i++)s[i]=u[i];return s}if(ee(e)){var s=r({});zt(e);for(var c in e)s[c]=nn(e[c],t,n);return s}if(Bn(e)){if(!1===t.exportMapsAsObjects){var f=r(new Map);return e.forEach(function(e,r){f.set(r,nn(e,t,n))}),f}var l=r({});return e.forEach(function(e,r){l[r]=nn(e,t,n)}),l}if(mn(e))return nn(e.get(),t,n)}return e}function rn(e,t,n){var r;if(Bn(e)||Le(e)||mn(e))r=xe(e);else{if(!ee(e))return Ce(!1);if("string"!=typeof t)return Ce(!1);r=xe(e,t)}return void 0!==r.dehancer?Ce(!1):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})}Object.defineProperty(n,"__esModule",{value:!0});var on=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},an=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sn={},un={},cn={spyReportEnd:!0},fn=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?v(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?v(e,t):1===arguments.length&&"string"==typeof e?S(e):!0!==r?S(t).apply(null,arguments):void(e[t]=v(e.name||t,n.value))};fn.bound=A;var ln=Object.prototype.toString,pn={identity:P,structural:R,default:C},hn=function(e){return e()},dn=function(){function e(e){var t=this;if(this.dependenciesState=n.IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=n.IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+Re(),this.value=new nr(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=tr.NONE,!e.get)return Ce("missing option for computed: get");this.derivation=e.get,this.name=e.name||"ComputedValue@"+Re(),e.set&&(this.setter=v(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?pn.structural
2:pn.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,!0===e.keepAlive&&N(function(){return t.get()})}return e.prototype.onBecomeStale=function(){bt(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&Ce("Cycle detected in computation "+this.name+": "+this.derivation),0===Qn.inBatch?Ot(this)&&(this.warnAboutUntrackedRead(),pt(),this.value=this.computeValue(!1),ht()):(dt(this),Ot(this)&&this.trackAndCompute()&&yt(this));var e=this.value;if(wt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(wt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){Ne(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else Ne(!1,!1)},e.prototype.trackAndCompute=function(){f()&&l({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===n.IDerivationState.NOT_TRACKING,r=this.computeValue(!0),o=t||wt(e)||wt(r)||!this.equals(e,r);return o&&(this.value=r),o},e.prototype.computeValue=function(e){this.isComputing=!0,Qn.computationDepth++;var t;if(e)t=xt(this,this.derivation,this.scope);else if(!0===Qn.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new nr(e)}return Qn.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){Et(this),this.value=void 0},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return N(function(){var i=n.get();if(!r||t){var a=Dt();e({type:"update",object:n,newValue:i,oldValue:o}),jt(a)}r=!1,o=i})},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return Ze(this.get())},e}();dn.prototype[Qe()]=dn.prototype.valueOf;var vn=ze("ComputedValue",dn),yn={};!function(){Cn||(Cn=function(){function e(e){void 0===e&&(e="Atom@"+Re()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=n.IDerivationState.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return dt(this)},e.prototype.reportChanged=function(){pt(),vt(this),ht()},e.prototype.toString=function(){return this.name},e}(),Nn=ze("Atom",Cn))}();var bn=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableValue@"+Re()),void 0===o&&(o=!0);var i=e.call(this,r)||this;return i.enhancer=n,i.hasUnreportedChange=!1,i.value=n(t,void 0,r),o&&f()&&l({type:"create",name:i.name,newValue:""+i.value}),i}return r(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==yn){var n=f();n&&p({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&h()}},t.prototype.prepareNewValue=function(e){if(St(this),U(this)){var t=K(this,{object:this,type:"update",newValue:e});if(!t)return yn;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.value!==e?e:yn},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),W(this)&&z(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return G(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),q(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return Ze(this.get())},t}(Cn);bn.prototype[Qe()]=bn.prototype.valueOf;var mn=ze("ObservableValue",bn),gn=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){return this.target!==e?void this.illegalAccess(e,t):this.values[t].get()},e.prototype.write=function(e,t,n){var r=this.target;if(r!==e)return void this.illegalAccess(e,t);var o=this.values[t];if(o instanceof dn)return void o.set(n);if(U(this)){var i=K(this,{type:"update",object:r,name:t,newValue:n});if(!i)return;n=i.newValue}if((n=o.prepareNewValue(n))!==yn){var a=W(this),s=f(),i=a||s?{type:"update",object:r,oldValue:o.value,name:t,newValue:n}:null;s&&p(an({},i,{name:this.name,key:t})),o.setNewValue(n),a&&z(this,i),s&&h()}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(U(this)){var n=K(this,{object:t,name:e,type:"remove"});if(!n)return}try{pt();var r=W(this),o=f(),i=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var n=r||o?{type:"remove",object:t,oldValue:i,name:e}:null;o&&p(an({},n,{name:this.name,key:e})),r&&z(this,n),o&&h()}finally{ht()}}},e.prototype.illegalAccess=function(e,t){return Ce("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return q(this,e)},e.prototype.intercept=function(e){return G(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new Kn(Object.keys(this.values).filter(function(t){return e.values[t]instanceof bn}),ye,"keys("+this.name+")",!0)),this.keys.slice()},e}(),wn={},On={},_n=ze("ObservableObjectAdministration",gn),Sn=u(!1,function(e,t,n,r,o){var i=n.get,a=n.set,s=o[0]||{};Y(e,t,an({},s,{get:i,set:a}))}),xn=Sn({equals:pn.structural}),An=function(e,t,n){if("string"==typeof t)return Sn.apply(null,arguments) 3;if(null!==e&&"object"==typeof e&&1===arguments.length)return Sn.apply(null,arguments);var r="object"==typeof t?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new dn(r)};An.struct=xn;var En={deep:!0,name:void 0,defaultDecorator:void 0},Tn={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(En),Object.freeze(Tn);var Dn=te(de),jn=te(ve),In=te(ye),kn=te(be),Vn={box:function(e,t){arguments.length>2&&he("box");var n=fe(t);return new bn(e,le(n),n.name)},shallowBox:function(e,t){return arguments.length>2&&he("shallowBox"),Be("observable.shallowBox","observable.box(value, { deep: false })"),Ln.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&he("array");var n=fe(t);return new Kn(e,le(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&he("shallowArray"),Be("observable.shallowArray","observable.array(values, { deep: false })"),Ln.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&he("map");var n=fe(t);return new Rn(e,le(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&he("shallowMap"),Be("observable.shallowMap","observable.map(values, { deep: false })"),Ln.map(e,{name:t,deep:!1})},object:function(e,t,n){return"string"==typeof arguments[1]&&he("object"),ce({},e,t,fe(n))},shallowObject:function(e,t){return"string"==typeof arguments[1]&&he("shallowObject"),Be("observable.shallowObject","observable.object(values, {}, { deep: false })"),Ln.object(e,{},{name:t,deep:!1})},ref:In,shallow:jn,deep:Dn,struct:kn},Ln=pe;
3Object.keys(Vn).forEach(function(e){return Ln[e]=Vn[e]});var Pn={},Rn=function(){function e(e,t,n){if(void 0===t&&(t=de),void 0===n&&(n="ObservableMap@"+Re()),this.enhancer=t,this.name=n,this.$mobx=Pn,this._keys=new Kn(void 0,ye,this.name+".keys()",!0),"function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){return this._hasMap.has(e)?this._hasMap.get(e).get():this._updateHasMapEntry(e,!1).get()},e.prototype.set=function(e,t){var n=this._has(e);if(U(this)){var r=K(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(U(this)){var n=K(this,{type:"delete",object:this,name:e});if(!n)return!1}if(this._has(e)){var r=f(),o=W(this),n=o||r?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return r&&p(an({},n,{name:this.name,key:e})),_e(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)}),o&&z(this,n),r&&h(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);return n?n.setNewValue(t):(n=new bn(t,ye,this.name+"."+e+"?",!1),this._hasMap.set(e,n)),n},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==yn){var r=f(),o=W(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&p(an({},i,{name:this.name,key:e})),n.setNewValue(t),o&&z(this,i),r&&h()}},e.prototype._addValue=function(e,t){var n=this;_e(function(){var r=new bn(t,n.enhancer,n.name+"."+e,!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var r=f(),o=W(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&p(an({},i,{name:this.name,key:e})),o&&z(this,i),r&&h()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keys[me()]()},e.prototype.values=function(){var e=this,t=0;return we({next:function(){return t<e._keys.length?{value:e.get(e._keys[t++]),done:!1}:{value:void 0,done:!0}}})},e.prototype.entries=function(){var e=this,t=0;return we({next:function(){if(t<e._keys.length){var n=e._keys[t++];return{value:[n,e.get(n)],done:!1}}return{done:!0}}})},e.prototype.forEach=function(e,t){var n=this;this._keys.forEach(function(r){return e.call(t,n.get(r),r,n)})},e.prototype.merge=function(e){var t=this;return Bn(e)&&(e=e.toJS()),_e(function(){Ge(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=o(e,2),r=n[0],i=n[1];return t.set(r,i)}):Ye(e)?e.forEach(function(e,n){return t.set(n,e)}):null!==e&&void 0!==e&&Ce("Cannot initialize map from "+e)}),this},e.prototype.clear=function(){var e=this;_e(function(){Tt(function(){e._keys.slice().forEach(function(t){return e.delete(t)})})})},e.prototype.replace=function(e){var t=this;return _e(function(){var n=Xe(e);t._keys.filter(function(e){return-1===n.indexOf(e)}).forEach(function(e){return t.delete(e)}),t.merge(e)}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this._keys.forEach(function(n){return t[""+n]=e.get(n)}),t},e.prototype.toJS=function(){var e=this,t=new Map;return this._keys.forEach(function(n){return t.set(n,e.get(n))}),t},e.prototype.toJSON=function(){return this.toPOJO()},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 q(this,e)},e.prototype.intercept=function(e){return G(this,e)},e}();ge(Rn.prototype,function(){return this.entries()}),We(Rn.prototype,"undefined"!=typeof Symbol?Symbol.toStringTag:"@@toStringTag","Map");var Cn,Nn,Bn=ze("ObservableMap",Rn),$n=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Mn=0,Un=function(){function e(){}return e}();
vendor: 7,082 bytes, line 3
3!function(e,t){void 0!==Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):void 0!==e.prototype.__proto__?e.prototype.__proto__=t:e.prototype=t}(Un,Array.prototype),Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(e){Object.defineProperty(Un.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})});var Gn=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new Cn(e||"ObservableArray@"+Re()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&this.values.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return G(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}),q(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;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else 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>Mn&&Ve(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;St(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=Hn),U(this)){var i=K(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!i)return Hn;t=i.removedCount,n=i.added}n=0===n.length?n:n.map(function(e){return r.enhancer(e,void 0)});var a=n.length-t;this.updateArrayLength(o,a);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(o=this.values).splice.apply(o,i([e,t],n));var r=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),r;var o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&f(),o=W(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&p(an({},i,{name:this.atom.name})),this.atom.reportChanged(),o&&z(this,i),r&&h()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&f(),o=W(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&p(an({},i,{name:this.atom.name})),this.atom.reportChanged(),o&&z(this,i),r&&h()},e}(),Kn=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+Re()),void 0===o&&(o=!1);var i=e.call(this)||this,a=new Gn(r,n,i,o);return We(i,"$mobx",a),t&&t.length&&i.spliceWithArray(0,0,t),$n&&Object.defineProperty(a.array,"0",Wn),i}return r(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]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map(function(e){return Le(e)?e.peek():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.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0),3===arguments.length&&Be("The array.find fromIndex argument to find will not be supported anymore in the next major");var r=this.findIndex.apply(this,arguments);return-1===r?void 0:this.get(r)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0),3===arguments.length&&Be("The array.findIndex fromIndex argument to find will not be supported anymore in the next major");for(var r=this.peek(),o=r.length,i=n;i<o;i++)if(e.call(t,r[i],i,this))return i;return-1},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.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=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]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(Be("observableArray.move is deprecated, use .slice() & .replace() instead"),n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e<t?i(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):i(o.slice(0,t),[o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);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")}},t.prototype.set=function(e,t){var n=this.$mobx,r=n.values;if(e<r.length){St(n.atom);var o=r[e];if(U(n)){var i=K(n,{type:"update",object:this,index:e,newValue:t});if(!i)return;t=i.newValue}t=n.enhancer(t,o);t!==o&&(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])}},t}(Un);ge(Kn.prototype,function(){this.$mobx.atom.reportObserved();var e=this,t=0;return we({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})}
3),Object.defineProperty(Kn.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&Ke(Kn.prototype,"undefined"!=typeof Symbol?Symbol.toStringTag:"@@toStringTag","Array"),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach(function(e){var t=Array.prototype[e];Ne("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),Ke(Kn.prototype,e,function(){return t.apply(this.peek(),arguments)})}),function(e,t){for(var n=0;n<t.length;n++)Ke(e,t[n],e[t[n]])}(Kn.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var Wn=Ie(0);Ve(1e3);var qn=ze("ObservableArrayAdministration",Gn),zn="An invariant failed, however the error is obfuscated because this is an production build.",Hn=[];Object.freeze(Hn);var Jn={};Object.freeze(Jn);var Yn=function(){},Xn=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","disableErrorBoundaries","runId"],Fn=function(){function e(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.disableErrorBoundaries=!1}return e}(),Qn=new Fn,Zn=!1,er=Pe();er.__mobxInstanceCount?(er.__mobxInstanceCount++,setTimeout(function(){Zn||Ce(!1)},1)):er.__mobxInstanceCount=1,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(n.IDerivationState||(n.IDerivationState={}));var tr;!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(tr||(tr={}));var nr=function(){function e(e){this.cause=e}return e}(),rr=function(){function e(e,t,r){void 0===e&&(e="Reaction@"+Re()),this.name=e,this.onInvalidate=t,this.errorHandler=r,this.observing=[],this.newObserving=[],this.dependenciesState=n.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+Re(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=tr.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Qn.pendingReactions.push(this),Pt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(pt(),this._isScheduled=!1,Ot(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&f()&&l({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}ht()}},e.prototype.track=function(e){pt();var t,n=f();n&&(t=Date.now(),p({name:this.name,type:"reaction"})),this._isRunning=!0;var r=xt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Et(this),wt(r)&&this.reportExceptionInDerivation(r.cause),n&&h({time:Date.now()-t}),ht()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)return void this.errorHandler(e,this);if(Qn.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this;console.error(n,e),f()&&l({type:"error",name:this.name,message:n,error:""+e}),Qn.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(pt(),Et(this),ht()))},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.trace=function(e){void 0===e&&(e=!1),kt(this,e)},e}(),or=100,ir=function(e){return e()},ar=ze("Reaction",rr),sr=0,ur={detectCycles:!0,exportMapsAsObjects:!0};!function(){function e(){}e.name}(),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:d,extras:{getDebugName:Ae}});n.Reaction=rr,n.untracked=Tt,n.createAtom=je,n.spy=d,n.comparer=pn,n.isObservableObject=ee,n.isBoxedObservable=mn,n.isObservableArray=Le,n.ObservableMap=Rn,n.isObservableMap=Bn,n.transaction=_e,n.observable=Ln,n.computed=An,n.isObservable=re,n.isObservableProp=oe,n.isComputed=ae,n.isComputedProp=se,n.extendObservable=ce,n.extendShallowObservable=ue,n.observe=Nt,n.intercept=Mt,n.autorun=N,n.reaction=$,n.when=Kt,n.action=fn,n.isAction=T,n.runInAction=E,n.keys=zt,n.values=Ht,n.set=Jt,n.remove=Yt,n.has=Xt,n.get=Ft,n.decorate=Qt,n.configure=Zt,n.onBecomeObserved=Ee,n.onBecomeUnobserved=Te,n.flow=en,n.toJS=nn,n.trace=kt,n.getDependencyTree=rt,n.getObserverTree=it,n._resetGlobalState=nt,n._getGlobalState=tt,n.getDebugName=Ae,n.getAtom=Se,n._getAdministration=xe,n._allowStateChanges=g,n.isArrayLike=Je,n._isComputingDerivation=_t,n.onReactionError=Lt,n._interceptReads=rn}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:2}],2:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function s(){y&&d&&(y=!1,d.length?v=d.concat(v):b=-1,v.length&&u())}function u(){if(!y){var e=i(s);y=!0;for(var t=v.length;t;){for(d=v,v=[];++b<t;)d&&d[b].run();b=-1,t=v.length}d=null,y=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function f(){}var l,p,h=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(e){p=o}}();var d,v=[],y=!1,b=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];v.push(new c(e,t)),1!==v.length||y||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=f,h.addListener=f,h.once=f,h.off=f,h.removeListener=f,h.removeAllListeners=f,h.emit=f,h.prependListener=f,h.prependOnceListener=f,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}]},{},[1])(1)}); 4//# sourceMappingURL=lib/mobx.umd.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.