mmp-common
Version:
A demonstration of creating a NPM library for TSG common components that supports different installation types.
29 lines (27 loc) • 233 kB
JavaScript
var MMPCommon=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t,n){"use strict";e.exports=n(11)},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return Yt})),n.d(t,"b",(function(){return $t})),n.d(t,"m",(function(){return Ft})),n.d(t,"f",(function(){return Fe})),n.d(t,"l",(function(){return w})),n.d(t,"j",(function(){return oe})),n.d(t,"h",(function(){return et})),n.d(t,"i",(function(){return je})),n.d(t,"k",(function(){return _e})),n.d(t,"d",(function(){return ce})),n.d(t,"e",(function(){return Xt})),n.d(t,"g",(function(){return Me})),n.d(t,"c",(function(){return S}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var o=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])};function i(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function l(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 u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}var s={},c={};function f(e,t){var n=t?s:c;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return d(this),this[e]},set:function(t){d(this),this[e]=t}})}function d(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var n in dt(e,"__mobxDidRunLazyInitializers",!0),t){var r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function p(e,t){return function(){var n,r=function(r,o,i,l){if(!0===l)return t(r,o,i,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,"__mobxDecorators")){var u=r.__mobxDecorators;dt(r,"__mobxDecorators",a({},u))}return r.__mobxDecorators[o]={prop:o,propertyCreator:t,descriptor:i,decoratorTarget:r,decoratorArguments:n},f(o,e)};return h(arguments)?(n=tt,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r)}}function h(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function m(){return!!kt.spyListeners.length}function v(e){if(kt.spyListeners.length)for(var t=kt.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function y(e){v(a({},e,{spyReportStart:!0}))}var g={spyReportEnd:!0};function b(e){v(e?a({},e,{spyReportEnd:!0}):g)}function w(e){return kt.spyListeners.push(e),ut((function(){kt.spyListeners=kt.spyListeners.filter((function(t){return t!==e}))}))}function _(e,t){var n=function(){return x(e,t,this,arguments)};return n.isMobxAction=!0,n}function x(e,t,n,r){var o=function(e,t,n,r){var o=m()&&!!e,i=0;if(o){i=Date.now();var a=r&&r.length||0,l=new Array(a);if(a>0)for(var u=0;u<a;u++)l[u]=r[u];y({type:"action",name:e,object:n,arguments:l})}var s=Bt();Pt();var c=k(!0);return{prevDerivation:s,prevAllowStateChanges:c,notifySpy:o,startTime:i}}(e,0,n,r);try{return t.apply(n,r)}finally{!function(e){C(e.prevAllowStateChanges),Nt(),zt(e.prevDerivation),e.notifySpy&&b({time:Date.now()-e.startTime})}(o)}}function S(e,t){var n,r=k(e);try{n=t()}finally{C(r)}return n}function k(e){var t=kt.allowStateChanges;return kt.allowStateChanges=e,t}function C(e){kt.allowStateChanges=e}function T(){it(!1)}function E(e){return function(t,n,r){if(r){if(r.value)return{value:_(e,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return _(e,o.call(this))}}}return O(e).apply(this,arguments)}}function O(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){dt(this,n,P(e,t))}})}}var P=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?_(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?_(e,t):1===arguments.length&&"string"==typeof e?E(e):!0!==r?E(t).apply(null,arguments):void(e[t]=_(e.name||t,n.value))};function N(e,t,n){dt(e,t,_(t,n.bind(e)))}P.bound=function(e,t,n,r){return!0===r?(N(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return N(this,t,n.value||n.initializer.call(this)),this[t]},set:T}:{enumerable:!1,configurable:!0,set:function(e){N(this,t,e)},get:function(){}}};var I=Object.prototype.toString;function A(e,t){return D(e,t)}function D(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)&&function(e,t,n,r){e=j(e),t=j(t);var o=I.call(e);if(o!==I.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,l=t.constructor;if(a!==l&&!("function"==typeof a&&a instanceof a&&"function"==typeof l&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];var u=(n=n||[]).length;for(;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(!D(e[u],t[u],n,r))return!1}else{var s,c=Object.keys(e);if(u=c.length,Object.keys(t).length!==u)return!1;for(;u--;)if(s=c[u],!L(t,s)||!D(e[s],t[s],n,r))return!1}return n.pop(),r.pop(),!0}(e,t,n,r)}function j(e){return et(e)?e.peek():mt(e)||je(e)?vt(e.entries()):e}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e,t){return e===t}var M={identity:R,structural:function(e,t){return A(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||R(e,t)}};function U(e,t){void 0===t&&(t=nt);var n,r=t&&t.name||e.name||"Autorun@"+ot();if(!t.scheduler&&!t.delay)n=new $t(r,(function(){this.track(a)}),t.onError);else{var o=B(t),i=!1;n=new $t(r,(function(){i||(i=!0,o((function(){i=!1,n.isDisposed||n.track(a)})))}),t.onError)}function a(){e(n)}return n.schedule(),n.getDisposer()}var F=function(e){return e()};function B(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:F}var z=function(){function e(e){this.dependenciesState=bt.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=bt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+ot(),this.value=new Dt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=wt.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+ot(),e.set&&(this.setter=_(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?M.structural:M.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==bt.UP_TO_DATE)return;e.lowestObserverState=bt.POSSIBLY_STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===bt.UP_TO_DATE&&(r.dependenciesState=bt.POSSIBLY_STALE,r.isTracing!==wt.NONE&&At(r,e),r.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&it("Cycle detected in computation "+this.name+": "+this.derivation),0!==kt.inBatch||0!==this.observers.length||this.keepAlive?(It(this),Lt(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===bt.STALE)return;e.lowestObserverState=bt.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===bt.POSSIBLY_STALE?r.dependenciesState=bt.STALE:r.dependenciesState===bt.UP_TO_DATE&&(e.lowestObserverState=bt.UP_TO_DATE)}}(this)):Lt(this)&&(this.warnAboutUntrackedRead(),Pt(),this.value=this.computeValue(!1),Nt());var e=this.value;if(jt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(jt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){at(!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 at(!1,!1)},e.prototype.trackAndCompute=function(){m()&&v({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===bt.NOT_TRACKING,n=this.computeValue(!0),r=t||jt(e)||jt(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,kt.computationDepth++,e)t=Mt(this,this.derivation,this.scope);else if(!0===kt.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new Dt(e)}return kt.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(Ut(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return U((function(){var i=n.get();if(!r||t){var a=Bt();e({type:"update",object:n,newValue:i,oldValue:o}),zt(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 gt(this.get())},e}();z.prototype[yt()]=z.prototype.valueOf;var V=ht("ComputedValue",z);function W(e){return void 0!==e.interceptors&&e.interceptors.length>0}function $(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),ut((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function H(e,t){var n=Bt();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o<i&&(at(!(t=r[o](t))||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{zt(n)}}function G(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function K(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),ut((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function q(e,t){var n=Bt(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);zt(n)}}!function(){if(Ae)return;Ae=function(){function e(e){void 0===e&&(e="Atom@"+ot()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=bt.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return It(this)},e.prototype.reportChanged=function(){Pt(),function(e){if(e.lowestObserverState===bt.STALE)return;e.lowestObserverState=bt.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===bt.UP_TO_DATE&&(r.isTracing!==wt.NONE&&At(r,e),r.onBecomeStale()),r.dependenciesState=bt.STALE}}(this),Nt()},e.prototype.toString=function(){return this.name},e}(),De=ht("Atom",Ae)}();var Q=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableValue@"+ot()),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&&m()&&v({type:"create",name:i.name,newValue:""+i.value}),i}return i(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))!==kt.UNCHANGED){var n=m();n&&y({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&b()}},t.prototype.prepareNewValue=function(e){if(Rt(this),W(this)){var t=H(this,{object:this,type:"update",newValue:e});if(!t)return kt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.value!==e?e:kt.UNCHANGED},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),G(this)&&q(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 $(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),K(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return gt(this.get())},t}(Ae);Q.prototype[yt()]=Q.prototype.valueOf;ht("ObservableValue",Q);var X=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,n){var r=this.target;r!==e&&this.illegalAccess(e,t);var o=this.values[t];if(o instanceof z)o.set(n);else{if(W(this)){if(!(u=H(this,{type:"update",object:r,name:t,newValue:n})))return;n=u.newValue}if((n=o.prepareNewValue(n))!==kt.UNCHANGED){var i=G(this),l=m(),u=i||l?{type:"update",object:r,oldValue:o.value,name:t,newValue:n}:null;l&&y(a({},u,{name:this.name,key:t})),o.setNewValue(n),i&&q(this,u),l&&b()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(W(this))if(!(i=H(this,{object:t,name:e,type:"remove"})))return;try{Pt();var n=G(this),r=m(),o=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var i=n||r?{type:"remove",object:t,oldValue:o,name:e}:null;r&&y(a({},i,{name:this.name,key:e})),n&&q(this,i),r&&b()}finally{Nt()}}},e.prototype.illegalAccess=function(e,t){console.warn("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 K(this,e)},e.prototype.intercept=function(e){return $(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new qe(Object.keys(this.values).filter((function(t){return e.values[t]instanceof Q})),ke,"keys("+this.name+")",!0)),this.keys.slice()},e}();function Y(e,t,n){void 0===t&&(t=""),void 0===n&&(n=Se);var r=e.$mobx;return r||(ft(e)||(t=(e.constructor.name||"ObservableObject")+"@"+ot()),t||(t="ObservableObject@"+ot()),pt(e,"$mobx",r=new X(e,t,n)),r)}function J(e,t,n,r){var o=Y(e);if(W(o)){var i=H(o,{object:e,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}n=(o.values[t]=new Q(n,r,o.name+"."+t,!1)).value,Object.defineProperty(e,t,function(e){return ee[e]||(ee[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}(t)),o.keys&&o.keys.push(t),function(e,t,n,r){var o=G(e),i=m(),l=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&y(a({},l,{name:e.name,key:n}));o&&q(e,l);i&&b()}(o,e,t,n)}function Z(e,t,n){var r=Y(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new z(n),Object.defineProperty(e,t,function(e){return te[e]||(te[e]={configurable:!0,enumerable:!1,get:function(){return ne(this).read(this,e)},set:function(t){ne(this).write(this,e,t)}})}(t))}var ee=Object.create(null),te=Object.create(null);function ne(e){var t=e.$mobx;return t||(d(e),e.$mobx)}var re=ht("ObservableObjectAdministration",X);function oe(e){return!!ct(e)&&(d(e),re(e.$mobx))}function ie(t){var n=p(!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 ae(e,t){if(null==e)return!1;if(void 0!==t){if(oe(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return oe(e)||!!e.$mobx||De(e)||qt(e)||V(e)}function le(e){return 1!==arguments.length&&it(!1),ae(e)}var ue=p(!1,(function(e,t,n,r,o){var i=n.get,l=n.set,u=o[0]||{};Z(e,t,a({get:i,set:l},u))})),se=ue({equals:M.structural}),ce=function(e,t,n){if("string"==typeof t)return ue.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return ue.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 z(r)};function fe(e,t,n,r){var o=(r=he(r)).defaultDecorator||(!1===r.deep?ge:ve);d(e),Y(e,r.name,o.enhancer),Pt();try{for(var i in t){var a=Object.getOwnPropertyDescriptor(t,i);0;var l=(n&&i in n?n[i]:a.get?ue:o)(e,i,a,!0);l&&Object.defineProperty(e,i,l)}}finally{Nt()}return e}ce.struct=se;var de={deep:!0,name:void 0,defaultDecorator:void 0},pe={deep:!1,name:void 0,defaultDecorator:void 0};function he(e){return null==e?de:"string"==typeof e?{name:e,deep:!0}:e}function me(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?ke:Se}Object.freeze(de),Object.freeze(pe);var ve=ie(Se),ye=ie((function(e,t,n){return null==e||oe(e)||et(e)||je(e)?e:Array.isArray(e)?_e.array(e,{name:n,deep:!1}):ft(e)?_e.object(e,void 0,{name:n,deep:!1}):mt(e)?_e.map(e,{name:n,deep:!1}):it(!1)})),ge=ie(ke),be=ie((function(e,t,n){0;return A(e,t)?t:e}));var we={box:function(e,t){arguments.length>2&&xe("box");var n=he(t);return new Q(e,me(n),n.name)},shallowBox:function(e,t){return arguments.length>2&&xe("shallowBox"),lt("observable.shallowBox","observable.box(value, { deep: false })"),_e.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&xe("array");var n=he(t);return new qe(e,me(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&xe("shallowArray"),lt("observable.shallowArray","observable.array(values, { deep: false })"),_e.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&xe("map");var n=he(t);return new Ie(e,me(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&xe("shallowMap"),lt("observable.shallowMap","observable.map(values, { deep: false })"),_e.map(e,{name:t,deep:!1})},object:function(e,t,n){"string"==typeof arguments[1]&&xe("object");var r=he(n);return fe({},e,t,r)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&xe("shallowObject"),lt("observable.shallowObject","observable.object(values, {}, { deep: false })"),_e.object(e,{},{name:t,deep:!1})},ref:ge,shallow:ye,deep:ve,struct:be},_e=function(e,t,n){if("string"==typeof arguments[1])return ve.apply(null,arguments);if(le(e))return e;var r=ft(e)?_e.object(e,t,n):Array.isArray(e)?_e.array(e,t):mt(e)?_e.map(e,t):e;if(r!==e)return r;it(!1)};function xe(e){it("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function Se(e,t,n){return le(e)?e:Array.isArray(e)?_e.array(e,{name:n}):ft(e)?_e.object(e,void 0,{name:n}):mt(e)?_e.map(e,{name:n}):e}function ke(e){return e}function Ce(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function Te(e,t){pt(e,Ce(),t)}function Ee(e){return e[Ce()]=Oe,e}function Oe(){return this}function Pe(e,t){void 0===t&&(t=void 0),Pt();try{return e.apply(t)}finally{Nt()}}Object.keys(we).forEach((function(e){return _e[e]=we[e]}));var Ne={},Ie=function(){function e(e,t,n){if(void 0===t&&(t=Se),void 0===n&&(n="ObservableMap@"+ot()),this.enhancer=t,this.name=n,this.$mobx=Ne,this._keys=new qe(void 0,ke,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(W(this)){var r=H(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(W(this)&&!(o=H(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=m(),r=G(this),o=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&y(a({},o,{name:this.name,key:e})),Pe((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&q(this,o),n&&b(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);return n?n.setNewValue(t):(n=new Q(t,ke,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))!==kt.UNCHANGED){var r=m(),o=G(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&y(a({},i,{name:this.name,key:e})),n.setNewValue(t),o&&q(this,i),r&&b()}},e.prototype._addValue=function(e,t){var n=this;Pe((function(){var r=new Q(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=m(),o=G(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&y(a({},i,{name:this.name,key:e})),o&&q(this,i),r&&b()},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[Ce()]()},e.prototype.values=function(){var e=this,t=0;return Ee({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 Ee({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 je(e)&&(e=e.toJS()),Pe((function(){ft(e)?Object.keys(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=l(e,2),r=n[0],o=n[1];return t.set(r,o)})):mt(e)?e.forEach((function(e,n){return t.set(n,e)})):null!=e&&it("Cannot initialize map from "+e)})),this},e.prototype.clear=function(){var e=this;Pe((function(){Ft((function(){e._keys.slice().forEach((function(t){return e.delete(t)}))}))}))},e.prototype.replace=function(e){var t=this;return Pe((function(){var n,r=ft(n=e)?Object.keys(n):Array.isArray(n)?n.map((function(e){return l(e,1)[0]})):mt(n)||je(n)?vt(n.keys()):it("Cannot get keys from '"+n+"'");t._keys.filter((function(e){return-1===r.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 K(this,e)},e.prototype.intercept=function(e){return $(this,e)},e}();Te(Ie.prototype,(function(){return this.entries()})),pt(Ie.prototype,"undefined"!=typeof Symbol?Symbol.toStringTag:"@@toStringTag","Map");var Ae,De,je=ht("ObservableMap",Ie);function Le(e,t){if("object"==typeof e&&null!==e){if(et(e))return void 0!==t&&it(!1),e.$mobx.atom;if(je(e)){var n=e;return void 0===t?Le(n._keys):((r=n._data.get(t)||n._hasMap.get(t))||it(!1),r)}var r;if(d(e),t&&!e.$mobx&&e[t],oe(e))return t?((r=e.$mobx.values[t])||it(!1),r):it(!1);if(De(e)||V(e)||qt(e))return e}else if("function"==typeof e&&qt(e.$mobx))return e.$mobx;return it(!1)}function Re(e,t){return e||it("Expecting some object"),void 0!==t?Re(Le(e,t)):De(e)||V(e)||qt(e)||je(e)?e:(d(e),e.$mobx?e.$mobx:void it(!1))}function Me(e,t){return(void 0!==t?Le(e,t):oe(e)||je(e)?Re(e):Le(e)).name}function Ue(e,t,n,r){var o="string"==typeof n?Le(t,n):Le(t),i="string"==typeof n?r:n,a=o[e];return"function"!=typeof a?it(!1):(o[e]=function(){a.call(this),i.call(this)},function(){o[e]=a})}function Fe(e,t,n){void 0===t&&(t=st),void 0===n&&(n=st);var r,o=new Ae(e);return Ue("onBecomeObserved",o,t,r),function(e,t,n){Ue("onBecomeUnobserved",e,t,n)}(o,n),o}var Be,ze,Ve,We,$e=(Be=!1,ze={},Object.defineProperty(ze,"0",{set:function(){Be=!0}}),Object.create(ze)[0]=1,!1===Be),He=0,Ge=function(){};Ve=Ge,We=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(Ve.prototype,We):void 0!==Ve.prototype.__proto__?Ve.prototype.__proto__=We:Ve.prototype=We,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(Ge.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var Ke=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new Ae(e||"ObservableArray@"+ot()),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&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return $(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}),K(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>He&&Je(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;Rt(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:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=tt),W(this)){var i=H(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!i)return tt;t=i.removedCount,n=i.added}var a=(n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}))).length-t;this.updateArrayLength(o,a);var l=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,l),this.dehanceValues(l)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,u([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&m(),o=G(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&y(a({},i,{name:this.atom.name})),this.atom.reportChanged(),o&&q(this,i),r&&b()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&m(),o=G(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&y(a({},i,{name:this.atom.name})),this.atom.reportChanged(),o&&q(this,i),r&&b()},e}(),qe=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+ot()),void 0===o&&(o=!1);var i=e.call(this)||this,a=new Ke(r,n,i,o);if(pt(i,"$mobx",a),t&&t.length){var l=k(!0);i.spliceWithArray(0,0,t),C(l)}return $e&&Object.defineProperty(a.array,"0",Qe),i}return i(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 et(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&<("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&<("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(lt("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?u(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):u(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){Rt(n.atom);var o=r[e];if(W(n)){var i=H(n,{type:"update",object:this,index:e,newValue:t});if(!i)return;t=i.newValue}(t=n.enhancer(t,o))!==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}(Ge);Te(qe.prototype,(function(){this.$mobx.atom.reportObserved();var e=this,t=0;return Ee({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})})),Object.defineProperty(qe.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&dt(qe.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];at("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),dt(qe.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),function(e,t){for(var n=0;n<t.length;n++)dt(e,t[n],e[t[n]])}(qe.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 Qe=Xe(0);function Xe(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Ye(e){Object.defineProperty(qe.prototype,""+e,Xe(e))}function Je(e){for(var t=He;t<e;t++)Ye(t);He=e}Je(1e3);var Ze=ht("ObservableArrayAdministration",Ke);function et(e){return ct(e)&&Ze(e.$mobx)}var tt=[];Object.freeze(tt);var nt={};function rt(){return"undefined"!=typeof window?window:r}function ot(){return++kt.mobxGuid}function it(e){throw at(!1,e),"X"}function at(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is an production build."))}Object.freeze(nt);function lt(e,t){return!1}function ut(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var st=function(){};function ct(e){return null!==e&&"object"==typeof e}function ft(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function dt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function pt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function ht(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return ct(e)&&!0===e[n]}}function mt(e){return void 0!==rt().Map&&e instanceof rt().Map}function vt(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function yt(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function gt(e){return null===e?null:"object"==typeof e?""+e:e}var bt,wt,_t=function(){this.version=5,this.UNCHANGED={},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},xt=!0,St=!1,kt=function(){var e=rt();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(xt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new _t).version&&(xt=!1),xt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new _t):(setTimeout((function(){St||it("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new _t)}();function Ct(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(Ct)),r}function Tt(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 Et(e,t){if(1===e.observers.length)e.observers.length=0,Ot(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 Ot(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,kt.pendingUnobservations.push(e))}function Pt(){kt.inBatch++}function Nt(){if(0==--kt.inBatch){Gt();for(var e=kt.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 z&&n.suspend())}kt.pendingUnobservations=[]}}function It(e){var t=kt.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&&kt.inBatch>0&&Ot(e),!1)}function At(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===wt.BREAK){var n=[];!function e(t,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,r+1)}))}((r=e,Ct(Le(r,o))),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 z?e.derivation.toString():"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}var r,o}!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"}(bt||(bt={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(wt||(wt={}));var Dt=function(e){this.cause=e};function jt(e){return e instanceof Dt}function Lt(e){switch(e.dependenciesState){case bt.UP_TO_DATE:return!1;case bt.NOT_TRACKING:case bt.STALE:return!0;case bt.POSSIBLY_STALE:for(var t=Bt(),n=e.observing,r=n.length,o=0;o<r;o++){var i=n[o];if(V(i)){if(kt.disableErrorBoundaries)i.get();else try{i.get()}catch(e){return zt(t),!0}if(e.dependenciesState===bt.STALE)return zt(t),!0}}return Vt(e),zt(t),!1}}function Rt(e){var t=e.observers.length>0;kt.computationDepth>0&&t&&it(!1),kt.allowStateChanges||!t&&"strict"!==kt.enforceActions||it(!1)}function Mt(e,t,n){Vt(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++kt.runId;var r,o=kt.trackingDerivation;if(kt.trackingDerivation=e,!0===kt.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(e){r=new Dt(e)}return kt.trackingDerivation=o,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=bt.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;a<i;a++){0===(l=n[a]).diffValue&&(l.diffValue=1,o!==a&&(n[o]=l),o++),l.dependenciesState>r&&(r=l.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){0===(l=t[i]).diffValue&&Et(l,e),l.diffValue=0}for(;o--;){var l;1===(l=n[o]).diffValue&&(l.diffValue=0,Tt(l,e))}r!==bt.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),r}function Ut(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Et(t[n],e);e.dependenciesState=bt.NOT_TRACKING}function Ft(e){var t=Bt(),n=e();return zt(t),n}function Bt(){var e=kt.trackingDerivation;return kt.trackingDerivation=null,e}function zt(e){kt.trackingDerivation=e}function Vt(e){if(e.dependenciesState!==bt.UP_TO_DATE){e.dependenciesState=bt.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=bt.UP_TO_DATE}}function Wt(e){switch(e.length){case 0:return kt.trackingDerivation;case 1:return Le(e[0]);case 2:return Le(e[0],e[1])}}var $t=function(){function e(e,t,n){void 0===e&&(e="Reaction@"+ot()),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.observing=[],this.newObserving=[],this.dependenciesState=bt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+ot(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=wt.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,kt.pendingReactions.push(this),Gt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Pt(),this._isScheduled=!1,Lt(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&m()&&v({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Nt()}},e.prototype.track=function(e){Pt();var t,n=m();n&&(t=Date.now(),y({name:this.name,type:"reaction"})),this._isRunning=!0;var r=Mt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Ut(this),jt(r)&&this.reportExceptionInDerivation(r.cause),n&&b({time:Date.now()-t}),Nt()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(kt.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),m()&&v({type:"error",name:this.name,message:n,error:""+e}),kt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Pt(),Ut(this),Nt()))},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),function(){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=Wt(e);if(!r)return it(!1);r.isTracing===wt.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?wt.BREAK:wt.LOG}(this,e)},e}();var Ht=function(e){return e()};function Gt(){kt.inBatch>0||kt.isRunningReactions||Ht(Kt)}function Kt(){kt.isRunningReactions=!0;for(var e=kt.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 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()}kt.isRunningReactions=!1}var qt=ht("Reaction",$t);function Qt(e){var t=Ht;Ht=function(n){return e((function(){return t(n)}))}}function Xt(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.disableErrorBoundaries,o=e.arrayBuffer,i=e.reactionScheduler;if(void 0!==t){var a=void 0;switch(t){case!0:case"observed":a=!0;break;case!1:case"never":a=!1;break;case"strict":case"always":a="strict";break;default:fail("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}kt.enforceActions=a,kt.allowStateChanges=!0!==a&&"strict"!==a}void 0!==n&&(kt.computedRequiresReaction=!!n),!0===e.isolateGlobalState&&((kt.pendingReactions.length||kt.inBatch||kt.isRunningReactions)&&it("isolateGlobalState should be called before MobX is running any reactions"),St=!0,xt&&(0==--rt().__mobxInstanceCount&&(rt().__mobxGlobals=void 0),kt=new _t)),void 0!==r&&(!0===r&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),kt.disableErrorBoundaries=!!r),"number"==typeof o&&Je(o),i&&Qt(i)}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:w,extras:{getDebugName:Me}});var Yt="$mobx"}).call(this,n(12),n(6))},,,,function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(13)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=a(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))o.call(n,c)&&(u[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)i.call(n,l[f])&&(u[l[f]]=n[l[f]])}}return u}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o="undefined"==typeof window?e:window,i=o&&o.CSPSettings&&o.CSPSettings.nonce,a=function(){var e=o.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=r({},e,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=r({},e,{registeredThemableStyles:[]}));return o.__themeState__=e,e}();function l(e,t){a.loadStyles?a.loadStyles(c(e).styleString,e):function(e){if("undefined"==typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=c(e),o=r.styleString,l=r.themable;n.setAttribute("data-load-themed-styles","true"),i&&n.setAttribute("nonce",i);n.appendChild(document.createTextNode(o)),a.perf.count++,t.appendChild(n);var u=document.createEvent("HTMLEvents");u.initEvent("styleinsert",!0,!1),u.args={newStyle:n},document.dispatchEvent(u);var s={styleElement:n,themableStyle:e};l?a.registeredThemableStyles.push(s):a.registeredStyles.push(s)}(e)}function u(e){a.theme=e,function(){if(a.theme){for(var e=[],t=0,n=a.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(!function(e){void 0===e&&(e=3);3!==e&&2!==e||(s(a.registeredStyles),a.registeredStyles=[]);3!==e&&1!==e||(s(a.registeredThemableStyles),a.registeredThemableStyles=[])}(1),l([].concat.apply([],e)))}}()}function s(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function c(e){var t=a.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+i+'".'),o||i}return e.rawString})).join(""),themable:n}}}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={},o=void 0;try{o=window}catch(e){}function i(e,t){if(void 0!==o){var n=o.__packages__=o.__packages__||{};if(!n[e]||!r[e])r[e]=t,(n[e]=n[e]||[]).push(t)}}i("@uifabric/set-version","6.0.0")},function(e,t,n){"use strict";
/** @license React v16.8.5
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(8),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.concurrent_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function g(e,t,n,r,o,i,a,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,l],s=0;(e=Error(t.replace(/%s/g,(function(){return u[s++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function b(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);g(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional h