@dartcom/ui-kit 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/layers/leaflet/hooks/useGetLeafletLayer.js +15 -9
- package/dist/cjs/components/layers/leaflet/hooks/useGetLeafletLayer.js.map +1 -1
- package/dist/cjs/components/layers/leaflet/leaflet.js +4 -8
- package/dist/cjs/components/layers/leaflet/leaflet.js.map +1 -1
- package/dist/cjs/configs/global/global.js +23 -19
- package/dist/cjs/configs/global/global.js.map +1 -1
- package/dist/cjs/node_modules/mobx/dist/mobx.esm.js +5378 -0
- package/dist/cjs/node_modules/mobx/dist/mobx.esm.js.map +1 -0
- package/dist/esm/components/layers/leaflet/hooks/useGetLeafletLayer.js +1 -1
- package/dist/esm/components/layers/leaflet/hooks/useGetLeafletLayer.js.map +1 -1
- package/dist/esm/components/layers/leaflet/leaflet.js +1 -1
- package/dist/esm/components/layers/leaflet/leaflet.js.map +1 -1
- package/dist/esm/configs/global/global.js +1 -1
- package/dist/esm/configs/global/global.js.map +1 -1
- package/dist/esm/node_modules/mobx/dist/mobx.esm.js +2 -0
- package/dist/esm/node_modules/mobx/dist/mobx.esm.js.map +1 -0
- package/dist/esm/types/components/layers/leaflet/hooks/useGetLeafletLayer.d.ts.map +1 -1
- package/dist/esm/types/components/layers/leaflet/leaflet.d.ts.map +1 -1
- package/dist/esm/types/configs/global/global.d.ts +6 -3
- package/dist/esm/types/configs/global/global.d.ts.map +1 -1
- package/dist/esm/types/configs/global/types.d.ts +5 -0
- package/dist/esm/types/configs/global/types.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as n from"react";import e from"../../../../scene.yaml.js";import{GlobalConfig as t}from"../../../../configs/global/global.js";const a=()=>{const{instance:{isValidApiKey:a}}=t,[o,r]=n.useState(null);return n.useEffect(()=>((n=>{n&&import("../../../../node_modules/tangram/dist/tangram.min.js").then(()=>{if(window.Tangram){const n=window.Tangram.leafletLayer({scene:e});r(n)}})})(a),()=>{r(null)}),[a]),o};export{a as useGetLeafletLayer};
|
|
2
2
|
//# sourceMappingURL=useGetLeafletLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetLeafletLayer.js","sources":["../../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"sourcesContent":["import * as React from 'react';\r\n\r\nimport sceneTiles from '@/../scene.yaml';\r\nimport { Nullable } from '@/types';\r\n\r\nimport { TangramLeafletLayer } from '../types';\r\n\r\nexport const useGetLeafletLayer = () => {\r\n const [layer, setLayer] = React.useState<Nullable<TangramLeafletLayer>>(null);\r\n\r\n const getLeafletLayer = () => {\r\n import('tangram').then(() => {\r\n
|
|
1
|
+
{"version":3,"file":"useGetLeafletLayer.js","sources":["../../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"sourcesContent":["import * as React from 'react';\r\n\r\nimport sceneTiles from '@/../scene.yaml';\r\nimport { GlobalConfig } from '@/configs';\r\nimport { Nullable } from '@/types';\r\n\r\nimport { TangramLeafletLayer } from '../types';\r\n\r\nexport const useGetLeafletLayer = () => {\r\n const {\r\n instance: { isValidApiKey },\r\n } = GlobalConfig;\r\n\r\n const [layer, setLayer] = React.useState<Nullable<TangramLeafletLayer>>(null);\r\n\r\n const getLeafletLayer = (isValidApiKey: boolean) => {\r\n if (isValidApiKey) {\r\n import('tangram').then(() => {\r\n if (window.Tangram) {\r\n const leafletLayer = window.Tangram.leafletLayer({\r\n scene: sceneTiles,\r\n });\r\n\r\n setLayer(leafletLayer);\r\n }\r\n });\r\n }\r\n };\r\n\r\n React.useEffect(() => {\r\n getLeafletLayer(isValidApiKey);\r\n\r\n return () => {\r\n setLayer(null);\r\n };\r\n }, [isValidApiKey]);\r\n\r\n return layer;\r\n};\r\n"],"names":["useGetLeafletLayer","instance","isValidApiKey","GlobalConfig","layer","setLayer","React","useState","useEffect","import","then","window","Tangram","leafletLayer","scene","sceneTiles","getLeafletLayer"],"mappings":"qIAQO,MAAMA,EAAqB,KAChC,MACEC,UAAUC,cAAEA,IACVC,GAEGC,EAAOC,GAAYC,EAAMC,SAAwC,MAwBxE,OARAD,EAAME,UAAU,KAdQ,CAACN,IACnBA,GACFO,OAAO,wDAAWC,KAAK,KACrB,GAAIC,OAAOC,QAAS,CAClB,MAAMC,EAAeF,OAAOC,QAAQC,aAAa,CAC/CC,MAAOC,IAGTV,EAASQ,EACX,KAMJG,CAAgBd,GAET,KACLG,EAAS,QAEV,CAACH,IAEGE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as o from"react";import{GlobalConfig as e}from"../../../configs/global/global.js";import{useGetLeafletLayer as t}from"./hooks/useGetLeafletLayer.js";import{useMap as r}from"../../../node_modules/react-leaflet/lib/hooks.js";const s=()=>{const{instance:{isValidApiKey:s}}=e,a=t(),l=r();return o.useEffect(()=>{a&&s&&l.addLayer(a)},[a,s]),null};export{s as default};
|
|
2
2
|
//# sourceMappingURL=leaflet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leaflet.js","sources":["../../../../../src/components/layers/leaflet/leaflet.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useMap } from 'react-leaflet';\n\nimport { GlobalConfig } from '@/configs';\n\nimport { useGetLeafletLayer } from './hooks/useGetLeafletLayer';\n\nconst LeafletLayer: React.FC = () => {\n const
|
|
1
|
+
{"version":3,"file":"leaflet.js","sources":["../../../../../src/components/layers/leaflet/leaflet.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useMap } from 'react-leaflet';\n\nimport { GlobalConfig } from '@/configs';\n\nimport { useGetLeafletLayer } from './hooks/useGetLeafletLayer';\n\nconst LeafletLayer: React.FC = () => {\n const {\n instance: { isValidApiKey },\n } = GlobalConfig;\n\n const layer = useGetLeafletLayer();\n\n const map = useMap();\n\n React.useEffect(() => {\n if (layer && isValidApiKey) {\n map.addLayer(layer);\n }\n }, [layer, isValidApiKey]);\n\n return null;\n};\n\nexport default LeafletLayer;\n"],"names":["LeafletLayer","instance","isValidApiKey","GlobalConfig","layer","useGetLeafletLayer","map","useMap","React","useEffect","addLayer"],"mappings":"sOAOA,MAAMA,EAAyB,KAC7B,MACEC,UAAUC,cAAEA,IACVC,EAEEC,EAAQC,IAERC,EAAMC,IAQZ,OANAC,EAAMC,UAAU,KACVL,GAASF,GACXI,EAAII,SAASN,IAEd,CAACA,EAAOF,IAEJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{makeAutoObservable as i}from"../../node_modules/mobx/dist/mobx.esm.js";import{apiService as t}from"../../services/api/api.service.js";class e{static _instance=null;static initialize(i){e._instance||(e._instance=new e(i))}static deactivate(){this._instance=null}static get instance(){if(!e._instance)throw new Error("Dartcom Config не инициализирован с приватным ключом. Вызовите Config.initialize(...) первым, чтобы иметь возможность пользоваться компонентами нашей библиотеки");return e._instance}constructor({apiKey:t,onCheck:e}){i(this),this._apiKey=t,this._getCheckKeyData().then(i=>{if(i){const{valid:t}=i;e?.(i),this.isValidApiKey=t}})}_apiKey="";_isValidApiKey=!1;get isValidApiKey(){return this._isValidApiKey}set isValidApiKey(i){this._isValidApiKey=i}async _getCheckKeyData(){return await t.get({url:"check_tile_token",config:{params:{tile_token:this._apiKey}}}).then(i=>i).catch(({response:i})=>{if(i){const{data:{detail:t}}=i;return t}})}}export{e as GlobalConfig};
|
|
2
2
|
//# sourceMappingURL=global.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.js","sources":["../../../../src/configs/global/global.ts"],"sourcesContent":["import { AxiosError } from 'axios';\r\n\r\nimport { apiService } from '@/services';\r\nimport { Nullable } from '@/types';\r\n\r\nexport interface ConfigOptions {\r\n apiKey: string;\r\n}\r\n\r\nexport class GlobalConfig {\r\n private static _instance: Nullable<GlobalConfig> = null;\r\n\r\n public static initialize(options: ConfigOptions) {\r\n if (!GlobalConfig._instance) {\r\n GlobalConfig._instance = new GlobalConfig(options);\r\n }\r\n }\r\n\r\n public static deactivate() {\r\n this._instance = null;\r\n }\r\n\r\n public static get instance() {\r\n if (!GlobalConfig._instance) {\r\n throw new Error(\r\n 'Dartcom Config не инициализирован с приватным ключом. Вызовите Config.initialize(...) первым, чтобы иметь возможность пользоваться компонентами нашей библиотеки',\r\n );\r\n }\r\n\r\n return GlobalConfig._instance;\r\n }\r\n\r\n private constructor({ apiKey }: ConfigOptions) {\r\n this.
|
|
1
|
+
{"version":3,"file":"global.js","sources":["../../../../src/configs/global/global.ts"],"sourcesContent":["import { AxiosError } from 'axios';\r\nimport { makeAutoObservable } from 'mobx';\r\n\r\nimport { apiService } from '@/services';\r\nimport { Nullable } from '@/types';\r\n\r\nimport { ResponseData } from './types';\r\n\r\nexport interface ConfigOptions {\r\n apiKey: string;\r\n\r\n onCheck?: (data: ResponseData) => void;\r\n}\r\n\r\nexport class GlobalConfig {\r\n private static _instance: Nullable<GlobalConfig> = null;\r\n\r\n public static initialize(options: ConfigOptions) {\r\n if (!GlobalConfig._instance) {\r\n GlobalConfig._instance = new GlobalConfig(options);\r\n }\r\n }\r\n\r\n public static deactivate() {\r\n this._instance = null;\r\n }\r\n\r\n public static get instance() {\r\n if (!GlobalConfig._instance) {\r\n throw new Error(\r\n 'Dartcom Config не инициализирован с приватным ключом. Вызовите Config.initialize(...) первым, чтобы иметь возможность пользоваться компонентами нашей библиотеки',\r\n );\r\n }\r\n\r\n return GlobalConfig._instance;\r\n }\r\n\r\n private constructor({ apiKey, onCheck }: ConfigOptions) {\r\n makeAutoObservable(this);\r\n\r\n this._apiKey = apiKey;\r\n\r\n this._getCheckKeyData().then((data) => {\r\n if (data) {\r\n const { valid } = data;\r\n\r\n onCheck?.(data);\r\n\r\n this.isValidApiKey = valid;\r\n }\r\n });\r\n }\r\n\r\n private _apiKey = '';\r\n\r\n private _isValidApiKey = false;\r\n public get isValidApiKey() {\r\n return this._isValidApiKey;\r\n }\r\n public set isValidApiKey(value) {\r\n this._isValidApiKey = value;\r\n }\r\n\r\n public async _getCheckKeyData() {\r\n const checkKeyData = await apiService\r\n .get<ResponseData>({\r\n url: 'check_tile_token',\r\n config: {\r\n params: {\r\n tile_token: this._apiKey,\r\n },\r\n },\r\n })\r\n .then((data) => data)\r\n .catch(\r\n ({\r\n response,\r\n }: AxiosError<{\r\n detail: ResponseData;\r\n }>) => {\r\n if (response) {\r\n const {\r\n data: { detail },\r\n } = response;\r\n\r\n return detail;\r\n }\r\n },\r\n );\r\n\r\n return checkKeyData;\r\n }\r\n}\r\n"],"names":["GlobalConfig","static","initialize","options","_instance","deactivate","this","instance","Error","constructor","apiKey","onCheck","makeAutoObservable","_apiKey","_getCheckKeyData","then","data","valid","isValidApiKey","_isValidApiKey","value","apiService","get","url","config","params","tile_token","catch","response","detail"],"mappings":"mJAcaA,EACHC,iBAA2C,KAE5C,iBAAOC,CAAWC,GAClBH,EAAaI,YAChBJ,EAAaI,UAAY,IAAIJ,EAAaG,GAE9C,CAEO,iBAAOE,GACZC,KAAKF,UAAY,IACnB,CAEO,mBAAWG,GAChB,IAAKP,EAAaI,UAChB,MAAM,IAAII,MACR,oKAIJ,OAAOR,EAAaI,SACtB,CAEA,WAAAK,EAAoBC,OAAEA,EAAMC,QAAEA,IAC5BC,EAAmBN,MAEnBA,KAAKO,QAAUH,EAEfJ,KAAKQ,mBAAmBC,KAAMC,IAC5B,GAAIA,EAAM,CACR,MAAMC,MAAEA,GAAUD,EAElBL,IAAUK,GAEVV,KAAKY,cAAgBD,CACvB,GAEJ,CAEQJ,QAAU,GAEVM,gBAAiB,EACzB,iBAAWD,GACT,OAAOZ,KAAKa,cACd,CACA,iBAAWD,CAAcE,GACvBd,KAAKa,eAAiBC,CACxB,CAEO,sBAAMN,GA2BX,aA1B2BO,EACxBC,IAAkB,CACjBC,IAAK,mBACLC,OAAQ,CACNC,OAAQ,CACNC,WAAYpB,KAAKO,YAItBE,KAAMC,GAASA,GACfW,MACC,EACEC,eAIA,GAAIA,EAAU,CACZ,MACEZ,MAAMa,OAAEA,IACND,EAEJ,OAAOC,CACT,GAKR"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e="production"!==process.env.NODE_ENV?{0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,t){return"Cannot apply '"+e+"' to '"+t.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,t){return"[mobx.array] Index out of bounds, "+e+" is larger than "+t},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,t){return"the entry '"+e+"' does not exist in the observable map '"+t+"'"},26:"please specify a property",27:function(e,t){return"no observable property '"+e.toString()+"' found on the observable object '"+t+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,t){return"Cycle detected in computation "+e+": "+t},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"}:{};function t(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if("production"!==process.env.NODE_ENV){var o="string"==typeof t?t:e[t];throw"function"==typeof o&&(o=o.apply(null,r)),new Error("[MobX] "+o)}throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}var n={};function r(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:n}var i=Object.assign,o=Object.getOwnPropertyDescriptor,s=Object.defineProperty,a=Object.prototype,u=[];Object.freeze(u);var c={};Object.freeze(c);var l="undefined"!=typeof Proxy,d=Object.toString();function f(){l||t("production"!==process.env.NODE_ENV?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function h(e){"production"!==process.env.NODE_ENV&&pt.verifyProxies&&t("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function v(){return++pt.mobxGuid}function _(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var p=function(){};function b(e){return"function"==typeof e}function g(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function y(e){return null!==e&&"object"==typeof e}function m(e){if(!y(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===d}function O(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function E(e,t,n){s(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function N(e,t,n){s(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function w(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return y(e)&&!0===e[n]}}function S(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function V(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var A=void 0!==Object.getOwnPropertySymbols;var D="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:A?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function k(e){return"string"==typeof e?e:"symbol"==typeof e?e.toString():new String(e).toString()}function j(e){return null===e?null:"object"==typeof e?""+e:e}function x(e,t){return a.hasOwnProperty.call(e,t)}var P=Object.getOwnPropertyDescriptors||function(e){var t={};return D(e).forEach(function(n){t[n]=o(e,n)}),t};function T(e,t){return!!(e&t)}function M(e,t,n){return n?e|=t:e&=~t,e}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(null,arguments)}function I(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,U(e,t)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}function K(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}var G=Symbol("mobx-stored-annotations");function q(e){return Object.assign(function(t,n){if(X(n))return e.decorate_20223_(t,n);z(t,n,e)},e)}function z(e,n,r){(x(e,G)||E(e,G,B({},e[G])),"production"!==process.env.NODE_ENV&&te(r)&&!x(e[G],n))&&t("'"+(e.constructor.name+".prototype."+n.toString())+"' is decorated with 'override', but no such decorated member was found on prototype.");!function(e,n,r){if("production"!==process.env.NODE_ENV&&!te(n)&&x(e[G],r)){var i=e.constructor.name+".prototype."+r.toString(),o=e[G][r].annotationType_;t("Cannot apply '@"+n.annotationType_+"' to '"+i+"':\nThe field is already decorated with '@"+o+"'.\nRe-decorating fields is not allowed.\nUse '@override' decorator for methods overridden by subclass.")}}(e,r,n),te(r)||(e[G][n]=r)}function X(e){return"object"==typeof e&&"string"==typeof e.kind}function H(e,n){"production"===process.env.NODE_ENV||n.includes(e.kind)||t("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var W=Symbol("mobx administration"),F=function(){function e(e){void 0===e&&(e="production"!==process.env.NODE_ENV?"Atom@"+v():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Ze.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return Et(this)},t.reportChanged=function(){mt(),Nt(this),Ot()},t.toString=function(){return this.name_},R(e,[{key:"isBeingObserved",get:function(){return T(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return T(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return T(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();F.isBeingObservedMask_=1,F.isPendingUnobservationMask_=2,F.diffValueMask_=4;var Y=w("Atom",F);function J(e,t,n){void 0===t&&(t=p),void 0===n&&(n=p);var r=new F(e);return t!==p&&Qt(r,t),n!==p&&Zt(r,n),r}var $={structural:function(e,t){return yr(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}};function Q(e,t,n){return fn(e)?e:Array.isArray(e)?Le.array(e,{name:n}):m(e)?Le.object(e,void 0,{name:n}):S(e)?Le.map(e,{name:n}):V(e)?Le.set(e,{name:n}):"function"!=typeof e||Wt(e)||dn(e)?e:O(e)?cn(e):Ht(n,e)}function Z(e){return e}var ee="override";function te(e){return e.annotationType_===ee}function ne(e,t){return{annotationType_:e,options_:t,make_:re,extend_:ie,decorate_20223_:oe}}function re(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Wt(n.value))return 1;var o=se(e,this,t,n,!1);return s(r,t,o),2}function ie(e,t,n,r){var i=se(e,this,t,n);return e.defineProperty_(t,i,r)}function oe(e,n){"production"!==process.env.NODE_ENV&&H(n,["method","field"]);var r,i=n.kind,o=n.name,s=n.addInitializer,a=this,u=function(e){var t,n,r,i;return He(null!=(t=null==(n=a.options_)?void 0:n.name)?t:o.toString(),e,null!=(r=null==(i=a.options_)?void 0:i.autoAction)&&r)};return"field"==i?function(e){var t,n=e;return Wt(n)||(n=u(n)),null!=(t=a.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==i?(Wt(e)||(e=u(e)),null!=(r=this.options_)&&r.bound&&s(function(){var e=this,t=e[o].bind(e);t.isMobxAction=!0,e[o]=t}),e):void t("Cannot apply '"+a.annotationType_+"' to '"+String(o)+"' (kind: "+i+"):\n'"+a.annotationType_+"' can only be used on properties with a function value.")}function se(e,n,r,i,o){var s,a,u,c,l,d,f;void 0===o&&(o=pt.safeDescriptors),function(e,n,r,i){var o=n.annotationType_,s=i.value;"production"===process.env.NODE_ENV||b(s)||t("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':\n'"+o+"' can only be used on properties with a function value.")}(e,n,r,i);var h,v=i.value;null!=(s=n.options_)&&s.bound&&(v=v.bind(null!=(h=e.proxy_)?h:e.target_));return{value:He(null!=(a=null==(u=n.options_)?void 0:u.name)?a:r.toString(),v,null!=(c=null==(l=n.options_)?void 0:l.autoAction)&&c,null!=(d=n.options_)&&d.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ae(e,t){return{annotationType_:e,options_:t,make_:ue,extend_:ce,decorate_20223_:le}}function ue(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!x(e.target_,t)||!dn(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(dn(n.value))return 1;var o=de(e,this,t,n,!1,!1);return s(r,t,o),2}function ce(e,t,n,r){var i,o=de(e,this,t,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function le(e,t){var n;"production"!==process.env.NODE_ENV&&H(t,["method"]);var r=t.name,i=t.addInitializer;return dn(e)||(e=cn(e)),null!=(n=this.options_)&&n.bound&&i(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function de(e,n,r,i,o,s){void 0===s&&(s=pt.safeDescriptors),function(e,n,r,i){var o=n.annotationType_,s=i.value;"production"===process.env.NODE_ENV||b(s)||t("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':\n'"+o+"' can only be used on properties with a generator function value.")}(e,n,r,i);var a,u=i.value;(dn(u)||(u=cn(u)),o)&&((u=u.bind(null!=(a=e.proxy_)?a:e.target_)).isMobXFlow=!0);return{value:u,configurable:!s||e.isPlainObject_,enumerable:!1,writable:!s}}function fe(e,t){return{annotationType_:e,options_:t,make_:he,extend_:ve,decorate_20223_:_e}}function he(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ve(e,n,r,i){return function(e,n,r,i){var o=n.annotationType_,s=i.get;"production"===process.env.NODE_ENV||s||t("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':\n'"+o+"' can only be used on getter(+setter) properties.")}(e,this,n,r),e.defineComputedProperty_(n,B({},this.options_,{get:r.get,set:r.set}),i)}function _e(e,t){"production"!==process.env.NODE_ENV&&H(t,["getter"]);var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=Jn(this)[W],i=B({},n.options_,{get:e,context:this});i.name||(i.name="production"!==process.env.NODE_ENV?t.name_+"."+r.toString():"ObservableObject."+r.toString()),t.values_.set(r,new Qe(i))}),function(){return this[W].getObservablePropValue_(r)}}function pe(e,t){return{annotationType_:e,options_:t,make_:be,extend_:ge,decorate_20223_:ye}}function be(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ge(e,n,r,i){var o,s;return function(e,n,r,i){var o=n.annotationType_;"production"===process.env.NODE_ENV||"value"in i||t("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':\n'"+o+"' cannot be used on getter/setter properties")}(e,this,n,r),e.defineObservableProperty_(n,r.value,null!=(o=null==(s=this.options_)?void 0:s.enhancer)?o:Q,i)}function ye(e,n){if("production"!==process.env.NODE_ENV){if("field"===n.kind)throw t("Please use `@observable accessor "+String(n.name)+"` instead of `@observable "+String(n.name)+"`");H(n,["accessor"])}var r=this,i=n.kind,o=n.name,s=new WeakSet;function a(e,t){var n,i,a=Jn(e)[W],u=new $e(t,null!=(n=null==(i=r.options_)?void 0:i.enhancer)?n:Q,"production"!==process.env.NODE_ENV?a.name_+"."+o.toString():"ObservableObject."+o.toString(),!1);a.values_.set(o,u),s.add(e)}if("accessor"==i)return{get:function(){return s.has(this)||a(this,e.get.call(this)),this[W].getObservablePropValue_(o)},set:function(e){return s.has(this)||a(this,e),this[W].setObservablePropValue_(o,e)},init:function(e){return s.has(this)||a(this,e),e}}}var me="true",Oe=Ee();function Ee(e){return{annotationType_:me,options_:e,make_:Ne,extend_:we,decorate_20223_:Se}}function Ne(e,t,n,r){var i,o,a,u;if(n.get)return Ke.make_(e,t,n,r);if(n.set){var c=Wt(n.set)?n.set:He(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!pt.safeDescriptors||e.isPlainObject_,set:c})?0:2:(s(r,t,{configurable:!0,set:c}),2)}if(r!==e.target_&&"function"==typeof n.value)return O(n.value)?(null!=(u=this.options_)&&u.autoBind?cn.bound:cn).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Ht.bound:Ht).make_(e,t,n,r);var l,d=!1===(null==(i=this.options_)?void 0:i.deep)?Le.ref:Le;"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_));return d.make_(e,t,n,r)}function we(e,t,n,r){var i,o,s;if(n.get)return Ke.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!pt.safeDescriptors||e.isPlainObject_,set:He(t.toString(),n.set)},r);"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(s=e.proxy_)?s:e.target_));return(!1===(null==(o=this.options_)?void 0:o.deep)?Le.ref:Le).extend_(e,t,n,r)}function Se(e,n){t("'"+this.annotationType_+"' cannot be used as a decorator")}var Ve={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ae(e){return e||Ve}Object.freeze(Ve);var De=pe("observable"),ke=pe("observable.ref",{enhancer:Z}),je=pe("observable.shallow",{enhancer:function(e,n,r){return null==e||Zn(e)||Rn(e)||Kn(e)||Xn(e)?e:Array.isArray(e)?Le.array(e,{name:r,deep:!1}):m(e)?Le.object(e,void 0,{name:r,deep:!1}):S(e)?Le.map(e,{name:r,deep:!1}):V(e)?Le.set(e,{name:r,deep:!1}):void("production"!==process.env.NODE_ENV&&t("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets"))}}),xe=pe("observable.struct",{enhancer:function(e,n){return"production"!==process.env.NODE_ENV&&fn(e)&&t("observable.struct should not be used with observable values"),yr(e,n)?n:e}}),Pe=q(De);function Te(e){return!0===e.deep?Q:!1===e.deep?Z:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:Q;var t,n,r}function Me(e,t,n){return X(t)?De.decorate_20223_(e,t):g(t)?void z(e,t,De):fn(e)?e:m(e)?Le.object(e,t,n):Array.isArray(e)?Le.array(e,t):S(e)?Le.map(e,t):V(e)?Le.set(e,t):"object"==typeof e&&null!==e?e:Le.box(e,t)}i(Me,Pe);var Ce,Re,Le=i(Me,{box:function(e,t){var n=Ae(t);return new $e(e,Te(n),n.name,!0,n.equals)},array:function(e,t){var n=Ae(t);return(!1===pt.useProxies||!1===n.proxy?fr:kn)(e,Te(n),n.name)},map:function(e,t){var n=Ae(t);return new Un(e,Te(n),n.name)},set:function(e,t){var n=Ae(t);return new zn(e,Te(n),n.name)},object:function(e,t,n){return pr(function(){return tn(!1===pt.useProxies||!1===(null==n?void 0:n.proxy)?Jn({},n):function(e,t){var n,r;return f(),e=Jn(e,t),null!=(r=(n=e[W]).proxy_)?r:n.proxy_=new Proxy(e,pn)}({},n),e,t)})},ref:q(ke),shallow:q(je),deep:Pe,struct:q(xe)}),Be="computed",Ie=fe(Be),Ue=fe("computed.struct",{equals:$.structural}),Ke=function(e,n){if(X(n))return Ie.decorate_20223_(e,n);if(g(n))return z(e,n,Ie);if(m(e))return q(fe(Be,e));"production"!==process.env.NODE_ENV&&(b(e)||t("First argument to `computed` should be an expression."),b(n)&&t("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var r=m(n)?n:{};return r.get=e,r.name||(r.name=e.name||""),new Qe(r)};Object.assign(Ke,Ie),Ke.struct=q(Ue);var Ge=0,qe=1,ze=null!=(Ce=null==(Re=o(function(){},"name"))?void 0:Re.configurable)&&Ce,Xe={value:"action",configurable:!0,writable:!1,enumerable:!1};function He(e,n,r,i){function o(){return function(e,t,n,r,i){var o=We(e,t,r,i);try{return n.apply(r,i)}catch(e){throw o.error_=e,e}finally{Fe(o)}}(e,r,n,i||this,arguments)}return void 0===r&&(r=!1),"production"!==process.env.NODE_ENV&&(b(n)||t("`action` can only be invoked on functions"),"string"==typeof e&&e||t("actions should have valid names, got: '"+e+"'")),o.isMobxAction=!0,o.toString=function(){return n.toString()},ze&&(Xe.value=e,s(o,"name",Xe)),o}function We(e,t,n,r){var i="production"!==process.env.NODE_ENV&&Pt()&&!!e,o=0;if("production"!==process.env.NODE_ENV&&i){o=Date.now();var s=r?Array.from(r):u;Mt({type:Bt,name:e,object:n,arguments:s})}var a=pt.trackingDerivation,c=!t||!a;mt();var l=pt.allowStateChanges;c&&(ct(),l=Ye(!0));var d={runAsAction_:c,prevDerivation_:a,prevAllowStateChanges_:l,prevAllowStateReads_:dt(!0),notifySpy_:i,startTime_:o,actionId_:qe++,parentActionId_:Ge};return Ge=d.actionId_,d}function Fe(e){Ge!==e.actionId_&&t(30),Ge=e.parentActionId_,void 0!==e.error_&&(pt.suppressReactionErrors=!0),Je(e.prevAllowStateChanges_),ft(e.prevAllowStateReads_),Ot(),e.runAsAction_&<(e.prevDerivation_),"production"!==process.env.NODE_ENV&&e.notifySpy_&&Rt({time:Date.now()-e.startTime_}),pt.suppressReactionErrors=!1}function Ye(e){var t=pt.allowStateChanges;return pt.allowStateChanges=e,t}function Je(e){pt.allowStateChanges=e}var $e=function(e){function t(t,n,r,i,o){var s,a;(void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableValue@"+v():"ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=$.default),(s=e.call(this,r)||this).enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=n,s.name_=r,s.equals=o,s.value_=n(t,void 0,r),"production"!==process.env.NODE_ENV&&i&&Pt())&&Tt({type:"create",object:s,observableKind:"value",debugObjectName:s.name_,newValue:""+(null==(a=s.value_)?void 0:a.toString())});return s}I(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){var t=this.value_;if((e=this.prepareNewValue_(e))!==pt.UNCHANGED){var n=Pt();"production"!==process.env.NODE_ENV&&n&&Mt({type:Vn,object:this,observableKind:"value",debugObjectName:this.name_,newValue:e,oldValue:t}),this.setNewValue_(e),"production"!==process.env.NODE_ENV&&n&&Rt()}},n.prepareNewValue_=function(e){if(ot(this),bn(this)){var t=yn(this,{object:this,type:Vn,newValue:e});if(!t)return pt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?pt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),mn(this)&&En(this,{type:Vn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return gn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Vn,newValue:this.value_,oldValue:void 0}),On(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return j(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(F),Qe=function(){function e(e){this.dependenciesState_=Ze.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ze.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new nt(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=et.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||t(31),this.derivation=e.get,this.name_=e.name||("production"!==process.env.NODE_ENV?"ComputedValue@"+v():"ComputedValue"),e.set&&(this.setter_=He("production"!==process.env.NODE_ENV?this.name_+"-setter":"ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?$.structural:$.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var n=e.prototype;return n.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==Ze.UP_TO_DATE_)return;e.lowestObserverState_=Ze.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===Ze.UP_TO_DATE_&&(e.dependenciesState_=Ze.POSSIBLY_STALE_,e.onBecomeStale_())})}(this)},n.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},n.get=function(){if(this.isComputing&&t(32,this.name_,this.derivation),0!==pt.inBatch||0!==this.observers_.size||this.keepAlive_){if(Et(this),it(this)){var e=pt.trackingContext;this.keepAlive_&&!e&&(pt.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===Ze.STALE_)return;e.lowestObserverState_=Ze.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Ze.POSSIBLY_STALE_?(t.dependenciesState_=Ze.STALE_,"production"!==process.env.NODE_ENV&&t.isTracing_!==et.NONE&&wt(t,e)):t.dependenciesState_===Ze.UP_TO_DATE_&&(e.lowestObserverState_=Ze.UP_TO_DATE_)})}(this),pt.trackingContext=e}}else it(this)&&(this.warnAboutUntrackedRead_(),mt(),this.value_=this.computeValue_(!1),Ot());var n=this.value_;if(rt(n))throw n.cause;return n},n.set=function(e){if(this.setter_){this.isRunningSetter&&t(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else t(34,this.name_)},n.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ze.NOT_TRACKING_,n=this.computeValue_(!0),r=t||rt(e)||rt(n)||!this.equals_(e,n);return r&&(this.value_=n,"production"!==process.env.NODE_ENV&&Pt()&&Tt({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:e,newValue:n})),r},n.computeValue_=function(e){this.isComputing=!0;var t,n=Ye(!1);if(e)t=st(this,this.derivation,this.scope_);else if(!0===pt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new nt(e)}return Je(n),this.isComputing=!1,t},n.suspend_=function(){this.keepAlive_||(at(this),this.value_=void 0,"production"!==process.env.NODE_ENV&&this.isTracing_!==et.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},n.observe_=function(e,t){var n=this,r=!0,i=void 0;return Ft(function(){var o=n.get();if(!r||t){var s=ct();e({observableKind:"computed",debugObjectName:n.name_,type:Vn,object:n,newValue:o,oldValue:i}),lt(s)}r=!1,i=o})},n.warnAboutUntrackedRead_=function(){"production"!==process.env.NODE_ENV&&(this.isTracing_!==et.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),("boolean"==typeof this.requiresReaction_?this.requiresReaction_:pt.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},n.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},n.valueOf=function(){return j(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},R(e,[{key:"isComputing",get:function(){return T(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=M(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return T(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return T(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return T(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return T(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();Qe.isComputingMask_=1,Qe.isRunningSetterMask_=2,Qe.isBeingObservedMask_=4,Qe.isPendingUnobservationMask_=8,Qe.diffValueMask_=16;var Ze,et,tt=w("ComputedValue",Qe);!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_"}(Ze||(Ze={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(et||(et={}));var nt=function(e){this.cause=void 0,this.cause=e};function rt(e){return e instanceof nt}function it(e){switch(e.dependenciesState_){case Ze.UP_TO_DATE_:return!1;case Ze.NOT_TRACKING_:case Ze.STALE_:return!0;case Ze.POSSIBLY_STALE_:for(var t=dt(!0),n=ct(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(tt(s)){if(pt.disableErrorBoundaries)s.get();else try{s.get()}catch(e){return lt(n),ft(t),!0}if(e.dependenciesState_===Ze.STALE_)return lt(n),ft(t),!0}}return ht(e),lt(n),ft(t),!1}}function ot(e){if("production"!==process.env.NODE_ENV){var t=e.observers_.size>0;pt.allowStateChanges||!t&&"always"!==pt.enforceActions||console.warn("[MobX] "+(pt.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}}function st(e,t,n){var r=dt(!0);ht(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++pt.runId;var i,o=pt.trackingDerivation;if(pt.trackingDerivation=e,pt.inBatch++,!0===pt.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new nt(e)}return pt.inBatch--,pt.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Ze.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=n[s];0===a.diffValue&&(a.diffValue=1,i!==s&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}n.length=i,e.newObserving_=null,o=t.length;for(;o--;){var u=t[o];0===u.diffValue&>(u,e),u.diffValue=0}for(;i--;){var c=n[i];1===c.diffValue&&(c.diffValue=0,bt(c,e))}r!==Ze.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),function(e){if("production"===process.env.NODE_ENV)return;if(0!==e.observing_.length)return;("boolean"==typeof e.requiresObservable_?e.requiresObservable_:pt.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}(e),ft(r),i}function at(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)gt(t[n],e);e.dependenciesState_=Ze.NOT_TRACKING_}function ut(e){var t=ct();try{return e()}finally{lt(t)}}function ct(){var e=pt.trackingDerivation;return pt.trackingDerivation=null,e}function lt(e){pt.trackingDerivation=e}function dt(e){var t=pt.allowStateReads;return pt.allowStateReads=e,t}function ft(e){pt.allowStateReads=e}function ht(e){if(e.dependenciesState_!==Ze.UP_TO_DATE_){e.dependenciesState_=Ze.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ze.UP_TO_DATE_}}var vt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},_t=!0,pt=function(){var e=r();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(_t=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new vt).version&&(_t=!1),_t?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new vt):(setTimeout(function(){t(35)},1),new vt)}();function bt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function gt(e,t){e.observers_.delete(t),0===e.observers_.size&&yt(e)}function yt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,pt.pendingUnobservations.push(e))}function mt(){pt.inBatch++}function Ot(){if(0===--pt.inBatch){kt();for(var e=pt.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Qe&&n.suspend_())}pt.pendingUnobservations=[]}}function Et(e){!function(e){"production"!==process.env.NODE_ENV&&!pt.allowStateReads&&pt.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}(e);var t=pt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&pt.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&pt.inBatch>0&&yt(e),!1)}function Nt(e){e.lowestObserverState_!==Ze.STALE_&&(e.lowestObserverState_=Ze.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Ze.UP_TO_DATE_&&("production"!==process.env.NODE_ENV&&t.isTracing_!==et.NONE&&wt(t,e),t.onBecomeStale_()),t.dependenciesState_=Ze.STALE_}))}function wt(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===et.BREAK){var n=[];St(nn(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 Qe?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function St(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+"\t".repeat(n-1)+e.name),e.dependencies&&e.dependencies.forEach(function(e){return St(e,t,n+1)}))}var Vt=function(){function e(e,t,n,r){void 0===e&&(e="production"!==process.env.NODE_ENV?"Reaction@"+v():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ze.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=et.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,pt.pendingReactions.push(this),kt())},t.runReaction_=function(){if(!this.isDisposed){mt(),this.isScheduled=!1;var e=pt.trackingContext;if(pt.trackingContext=this,it(this)){this.isTrackPending=!0;try{this.onInvalidate_(),"production"!==process.env.NODE_ENV&&this.isTrackPending&&Pt()&&Tt({name:this.name_,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation_(e)}}pt.trackingContext=e,Ot()}},t.track=function(e){if(!this.isDisposed){mt();var t,n=Pt();"production"!==process.env.NODE_ENV&&n&&(t=Date.now(),Mt({name:this.name_,type:"reaction"})),this.isRunning=!0;var r=pt.trackingContext;pt.trackingContext=this;var i=st(this,e,void 0);pt.trackingContext=r,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&at(this),rt(i)&&this.reportExceptionInDerivation_(i.cause),"production"!==process.env.NODE_ENV&&n&&Rt({time:Date.now()-t}),Ot()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(pt.disableErrorBoundaries)throw e;var n="production"!==process.env.NODE_ENV?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";pt.suppressReactionErrors?"production"!==process.env.NODE_ENV&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(n,e),"production"!==process.env.NODE_ENV&&Pt()&&Tt({type:"error",name:this.name_,message:n,error:""+e}),pt.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(mt(),at(this),Ot()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[W]=this,"dispose"in Symbol&&"symbol"==typeof Symbol.dispose&&(n[Symbol.dispose]=n),n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),hn(this,e)},R(e,[{key:"isDisposed",get:function(){return T(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=M(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return T(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=M(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return T(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=M(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return T(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return T(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();Vt.isDisposedMask_=1,Vt.isScheduledMask_=2,Vt.isTrackPendingMask_=4,Vt.isRunningMask_=8,Vt.diffValueMask_=16;var At=100,Dt=function(e){return e()};function kt(){pt.inBatch>0||pt.isRunningReactions||Dt(jt)}function jt(){pt.isRunningReactions=!0;for(var e=pt.pendingReactions,t=0;e.length>0;){++t===At&&(console.error("production"!==process.env.NODE_ENV?"Reaction doesn't converge to a stable state after "+At+" iterations. Probably there is a cycle in the reactive function: "+e[0]:"[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}pt.isRunningReactions=!1}var xt=w("Reaction",Vt);function Pt(){return"production"!==process.env.NODE_ENV&&!!pt.spyListeners.length}function Tt(e){if("production"!==process.env.NODE_ENV&&pt.spyListeners.length)for(var t=pt.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function Mt(e){"production"!==process.env.NODE_ENV&&Tt(B({},e,{spyReportStart:!0}))}var Ct={type:"report-end",spyReportEnd:!0};function Rt(e){"production"!==process.env.NODE_ENV&&Tt(e?B({},e,{type:"report-end",spyReportEnd:!0}):Ct)}function Lt(e){return"production"===process.env.NODE_ENV?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(pt.spyListeners.push(e),_(function(){pt.spyListeners=pt.spyListeners.filter(function(t){return t!==e})}))}var Bt="action",It="autoAction",Ut=ne(Bt),Kt=ne("action.bound",{bound:!0}),Gt=ne(It,{autoAction:!0}),qt=ne("autoAction.bound",{autoAction:!0,bound:!0});function zt(e){return function(n,r){return b(n)?He(n.name||"<unnamed action>",n,e):b(r)?He(n,r,e):X(r)?(e?Gt:Ut).decorate_20223_(n,r):g(r)?z(n,r,e?Gt:Ut):g(n)?q(ne(e?It:Bt,{name:n,autoAction:e})):void("production"!==process.env.NODE_ENV&&t("Invalid arguments for `action`"))}}var Xt=zt(!1);Object.assign(Xt,Ut);var Ht=zt(!0);function Wt(e){return b(e)&&!0===e.isMobxAction}function Ft(e,n){var r,i,o,s;void 0===n&&(n=c),"production"!==process.env.NODE_ENV&&(b(e)||t("Autorun expects a function as first argument"),Wt(e)&&t("Autorun does not accept actions since actions are untrackable"));var a,u=null!=(r=null==(i=n)?void 0:i.name)?r:"production"!==process.env.NODE_ENV?e.name||"Autorun@"+v():"Autorun";if(!n.scheduler&&!n.delay)a=new Vt(u,function(){this.track(f)},n.onError,n.requiresObservable);else{var l=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Yt}(n),d=!1;a=new Vt(u,function(){d||(d=!0,l(function(){d=!1,a.isDisposed||a.track(f)}))},n.onError,n.requiresObservable)}function f(){e(a)}return null!=(o=n)&&null!=(o=o.signal)&&o.aborted||a.schedule_(),a.getDisposer_(null==(s=n)?void 0:s.signal)}Object.assign(Ht,Gt),Xt.bound=q(Kt),Ht.bound=q(qt);var Yt=function(e){return e()};var Jt="onBO",$t="onBUO";function Qt(e,t,n){return en(Jt,e,t,n)}function Zt(e,t,n){return en($t,e,t,n)}function en(e,t,n,r){var i=hr(t),o=b(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var e=i[s];e&&(e.delete(o),0===e.size&&delete i[s])}}function tn(e,n,r,i){"production"!==process.env.NODE_ENV&&(arguments.length>4&&t("'extendObservable' expected 2-4 arguments"),"object"!=typeof e&&t("'extendObservable' expects an object as first argument"),Kn(e)&&t("'extendObservable' should not be used on maps, use map.merge instead"),m(n)||t("'extendObservable' only accepts plain objects as second argument"),(fn(n)||fn(r))&&t("Extending an object with another observable (object) is not supported"));var o=P(n);return pr(function(){var t=Jn(e,i)[W];D(o).forEach(function(e){t.extend_(e,o[e],!r||(!(e in r)||r[e]))})}),e}function nn(e,t){return rn(hr(e,t))}function rn(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(rn)),n}var on=0;function sn(){this.message="FLOW_CANCELLED"}sn.prototype=Object.create(Error.prototype);var an=ae("flow"),un=ae("flow.bound",{bound:!0}),cn=Object.assign(function(e,n){if(X(n))return an.decorate_20223_(e,n);if(g(n))return z(e,n,an);"production"!==process.env.NODE_ENV&&1!==arguments.length&&t("Flow expects single argument with generator function");var r=e,i=r.name||"<unnamed flow>",o=function(){var e,t=arguments,n=++on,o=Xt(i+" - runid: "+n+" - init",r).apply(this,t),s=void 0,a=new Promise(function(t,r){var a=0;function u(e){var t;s=void 0;try{t=Xt(i+" - runid: "+n+" - yield "+a++,o.next).call(o,e)}catch(e){return r(e)}l(t)}function c(e){var t;s=void 0;try{t=Xt(i+" - runid: "+n+" - yield "+a++,o.throw).call(o,e)}catch(e){return r(e)}l(t)}function l(e){if(!b(null==e?void 0:e.then))return e.done?t(e.value):(s=Promise.resolve(e.value)).then(u,c);e.then(l,r)}e=r,u(void 0)});return a.cancel=Xt(i+" - runid: "+n+" - cancel",function(){try{s&&ln(s);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(p,p),ln(n),e(new sn)}catch(t){e(t)}}),a};return o.isMobXFlow=!0,o},an);function ln(e){b(e.cancel)&&e.cancel()}function dn(e){return!0===(null==e?void 0:e.isMobXFlow)}function fn(e){return"production"!==process.env.NODE_ENV&&1!==arguments.length&&t("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),function(e){return!!e&&(Zn(e)||!!e[W]||Y(e)||xt(e)||tt(e))}(e)}function hn(){if("production"!==process.env.NODE_ENV){for(var e=!1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];"boolean"==typeof r[r.length-1]&&(e=r.pop());var o=function(e){switch(e.length){case 0:return pt.trackingDerivation;case 1:return hr(e[0]);case 2:return hr(e[0],e[1])}}(r);if(!o)return t("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===et.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?et.BREAK:et.LOG}}function vn(e,t){void 0===t&&(t=void 0),mt();try{return e.apply(t)}finally{Ot()}}function _n(e){return e[W]}cn.bound=q(un);var pn={has:function(e,t){return"production"!==process.env.NODE_ENV&&pt.trackingDerivation&&h("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),_n(e).has_(t)},get:function(e,t){return _n(e).get_(t)},set:function(e,t,n){var r;return!!g(t)&&("production"===process.env.NODE_ENV||_n(e).values_.has(t)||h("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),null==(r=_n(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return"production"!==process.env.NODE_ENV&&h("delete properties from an observable object. Use 'remove' from 'mobx' instead."),!!g(t)&&(null==(n=_n(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return"production"!==process.env.NODE_ENV&&h("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),null==(r=_n(e).defineProperty_(t,n))||r},ownKeys:function(e){return"production"!==process.env.NODE_ENV&&pt.trackingDerivation&&h("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),_n(e).ownKeys_()},preventExtensions:function(e){t(13)}};function bn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function gn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),_(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function yn(e,n){var r=ct();try{for(var i=[].concat(e.interceptors_||[]),o=0,s=i.length;o<s&&((n=i[o](n))&&!n.type&&t(14),n);o++);return n}finally{lt(r)}}function mn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function On(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),_(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function En(e,t){var n=ct(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);lt(n)}}var Nn=Symbol("mobx-keys");function wn(e,n,r){return"production"!==process.env.NODE_ENV&&(m(e)||m(Object.getPrototypeOf(e))||t("'makeAutoObservable' can only be used for classes that don't have a superclass"),Zn(e)&&t("makeAutoObservable can only be used on objects not already made observable")),m(e)?tn(e,e,n,r):(pr(function(){var t=Jn(e,r)[W];if(!e[Nn]){var i=Object.getPrototypeOf(e),o=new Set([].concat(D(e),D(i)));o.delete("constructor"),o.delete(W),E(i,Nn,o)}e[Nn].forEach(function(e){return t.make_(e,!n||(!(e in n)||n[e]))})}),e)}var Sn="splice",Vn="update",An={get:function(e,t){var n=e[W];return t===W?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?x(jn,t)?jn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[W];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){t(15)}},Dn=function(){function e(e,t,n,r){void 0===e&&(e="production"!==process.env.NODE_ENV?"ObservableArray@"+v():"ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new F(e),this.enhancer_=function(n,r){return t(n,r,"production"!==process.env.NODE_ENV?e+"[..]":"ObservableArray[..]")}}var n=e.prototype;return n.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},n.intercept_=function(e){return gn(this,e)},n.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),On(this,e)},n.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},n.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&t("Out of range: "+e);var n=this.values_.length;if(e!==n)if(e>n){for(var r=new Array(e-n),i=0;i<e-n;i++)r[i]=void 0;this.spliceWithArray_(n,0,r)}else this.spliceWithArray_(e,n-e)},n.updateArrayLength_=function(e,n){e!==this.lastKnownLength_&&t(16),this.lastKnownLength_+=n,this.legacyMode_&&n>0&&dr(e+n+1)},n.spliceWithArray_=function(e,t,n){var r=this;ot(this.atom_);var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=u),bn(this)){var o=yn(this,{object:this.proxy_,type:Sn,index:e,removedCount:t,added:n});if(!o)return u;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_||"production"!==process.env.NODE_ENV){var s=n.length-t;this.updateArrayLength_(i,s)}var a=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,a),this.dehanceValues_(a)},n.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var s=0;s<n.length;s++)this.values_[e+s]=n[s];for(var a=0;a<o.length;a++)this.values_[e+n.length+a]=o[a];return i},n.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&Pt(),i=mn(this),o=i||r?{observableKind:"array",object:this.proxy_,type:Vn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;"production"!==process.env.NODE_ENV&&r&&Mt(o),this.atom_.reportChanged(),i&&En(this,o),"production"!==process.env.NODE_ENV&&r&&Rt()},n.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&Pt(),i=mn(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Sn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;"production"!==process.env.NODE_ENV&&r&&Mt(o),this.atom_.reportChanged(),i&&En(this,o),"production"!==process.env.NODE_ENV&&r&&Rt()},n.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("production"!==process.env.NODE_ENV?"[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX":"[mobx] Out of bounds read: "+e)},n.set_=function(e,n){var r=this.values_;if(this.legacyMode_&&e>r.length&&t(17,e,r.length),e<r.length){ot(this.atom_);var i=r[e];if(bn(this)){var o=yn(this,{type:Vn,object:this.proxy_,index:e,newValue:n});if(!o)return;n=o.newValue}(n=this.enhancer_(n,i))!==i&&(r[e]=n,this.notifyArrayChildUpdate_(e,n,i))}else{for(var s=new Array(e+1-r.length),a=0;a<s.length-1;a++)s[a]=void 0;s[s.length-1]=n,this.spliceWithArray_(r.length,0,s)}},e}();function kn(e,t,n,r){return void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableArray@"+v():"ObservableArray"),void 0===r&&(r=!1),f(),pr(function(){var i=new Dn(n,t,r,!1);N(i.values_,W,i);var o=new Proxy(i.values_,An);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var jn={clear:function(){return this.splice(0)},replace:function(e){var t=this[W];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[W];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[W].spliceWithArray_(e,t,n)},push:function(){for(var e=this[W],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[W].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[W],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return pt.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){pt.trackingDerivation&&t(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[W],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function xn(e,t){"function"==typeof Array.prototype[e]&&(jn[e]=t(e))}function Pn(e){return function(){var t=this[W];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Tn(e){return function(t,n){var r=this,i=this[W];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e](function(e,i){return t.call(n,e,i,r)})}}function Mn(e){return function(){var t=this,n=this[W];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}xn("at",Pn),xn("concat",Pn),xn("flat",Pn),xn("includes",Pn),xn("indexOf",Pn),xn("join",Pn),xn("lastIndexOf",Pn),xn("slice",Pn),xn("toString",Pn),xn("toLocaleString",Pn),xn("toSorted",Pn),xn("toSpliced",Pn),xn("with",Pn),xn("every",Tn),xn("filter",Tn),xn("find",Tn),xn("findIndex",Tn),xn("findLast",Tn),xn("findLastIndex",Tn),xn("flatMap",Tn),xn("forEach",Tn),xn("map",Tn),xn("some",Tn),xn("toReversed",Tn),xn("reduce",Mn),xn("reduceRight",Mn);var Cn=w("ObservableArrayAdministration",Dn);function Rn(e){return y(e)&&Cn(e[W])}var Ln={},Bn="add",In="delete",Un=function(){function e(e,n,r){var i=this;void 0===n&&(n=Q),void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableMap@"+v():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[W]=Ln,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=r,b(Map)||t(18),pr(function(){i.keysAtom_=J("production"!==process.env.NODE_ENV?i.name_+".keys()":"ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,e&&i.merge(e)})}var n=e.prototype;return n.has_=function(e){return this.data_.has(e)},n.has=function(e){var t=this;if(!pt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new $e(this.has_(e),Z,"production"!==process.env.NODE_ENV?this.name_+"."+k(e)+"?":"ObservableMap.key?",!1);this.hasMap_.set(e,r),Zt(r,function(){return t.hasMap_.delete(e)})}return n.get()},n.set=function(e,t){var n=this.has_(e);if(bn(this)){var r=yn(this,{type:n?Vn:Bn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},n.delete=function(e){var t=this;if((ot(this.keysAtom_),bn(this))&&!yn(this,{type:In,object:this,name:e}))return!1;if(this.has_(e)){var n=Pt(),r=mn(this),i=r||n?{observableKind:"map",debugObjectName:this.name_,type:In,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return"production"!==process.env.NODE_ENV&&n&&Mt(i),vn(function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),r&&En(this,i),"production"!==process.env.NODE_ENV&&n&&Rt(),!0}return!1},n.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==pt.UNCHANGED){var r=Pt(),i=mn(this),o=i||r?{observableKind:"map",debugObjectName:this.name_,type:Vn,object:this,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&Mt(o),n.setNewValue_(t),i&&En(this,o),"production"!==process.env.NODE_ENV&&r&&Rt()}},n.addValue_=function(e,t){var n=this;ot(this.keysAtom_),vn(function(){var r,i=new $e(t,n.enhancer_,"production"!==process.env.NODE_ENV?n.name_+"."+k(e):"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=Pt(),i=mn(this),o=i||r?{observableKind:"map",debugObjectName:this.name_,type:Bn,object:this,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&Mt(o),i&&En(this,o),"production"!==process.env.NODE_ENV&&r&&Rt()},n.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},n.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},n.values=function(){var e=this,t=this.keys();return Gn({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},n.entries=function(){var e=this,t=this.keys();return Gn({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},n[Symbol.iterator]=function(){return this.entries()},n.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var i=n.value,o=i[0],s=i[1];e.call(t,s,o,this)}},n.merge=function(e){var n=this;return Kn(e)&&(e=new Map(e)),vn(function(){var r,i,o;m(e)?function(e){var t=Object.keys(e);if(!A)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return a.propertyIsEnumerable.call(e,t)})):t}(e).forEach(function(t){return n.set(t,e[t])}):Array.isArray(e)?e.forEach(function(e){var t=e[0],r=e[1];return n.set(t,r)}):S(e)?(r=e,i=Object.getPrototypeOf(r),o=Object.getPrototypeOf(i),null!==Object.getPrototypeOf(o)&&t(19,e),e.forEach(function(e,t){return n.set(t,e)})):null!=e&&t(20,e)}),this},n.clear=function(){var e=this;vn(function(){ut(function(){for(var t,n=L(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},n.replace=function(e){var n=this;return vn(function(){for(var r,i=function(e){if(S(e)||Kn(e))return e;if(Array.isArray(e))return new Map(e);if(m(e)){var n=new Map;for(var r in e)n.set(r,e[r]);return n}return t(21,e)}(e),o=new Map,s=!1,a=L(n.data_.keys());!(r=a()).done;){var u=r.value;if(!i.has(u))if(n.delete(u))s=!0;else{var c=n.data_.get(u);o.set(u,c)}}for(var l,d=L(i.entries());!(l=d()).done;){var f=l.value,h=f[0],v=f[1],_=n.data_.has(h);if(n.set(h,v),n.data_.has(h)){var p=n.data_.get(h);o.set(h,p),_||(s=!0)}}if(!s)if(n.data_.size!==o.size)n.keysAtom_.reportChanged();else for(var b=n.data_.keys(),g=o.keys(),y=b.next(),O=g.next();!y.done;){if(y.value!==O.value){n.keysAtom_.reportChanged();break}y=b.next(),O=g.next()}n.data_=o}),this},n.toString=function(){return"[object ObservableMap]"},n.toJSON=function(){return Array.from(this)},n.observe_=function(e,n){return"production"!==process.env.NODE_ENV&&!0===n&&t("`observe` doesn't support fireImmediately=true in combination with maps."),On(this,e)},n.intercept_=function(e){return gn(this,e)},R(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Kn=w("ObservableMap",Un);function Gn(e){return e[Symbol.toStringTag]="MapIterator",Nr(e)}var qn={},zn=function(){function e(e,n,r){var i=this;void 0===n&&(n=Q),void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableSet@"+v():"ObservableSet"),this.name_=void 0,this[W]=qn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=r,b(Set)||t(22),this.enhancer_=function(e,t){return n(e,t,r)},pr(function(){i.atom_=J(i.name_),e&&i.replace(e)})}var n=e.prototype;return n.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.clear=function(){var e=this;vn(function(){ut(function(){for(var t,n=L(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},n.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},n.add=function(e){var t=this;if(ot(this.atom_),bn(this)){var n=yn(this,{type:Bn,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){vn(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r="production"!==process.env.NODE_ENV&&Pt(),i=mn(this),o=i||r?{observableKind:"set",debugObjectName:this.name_,type:Bn,object:this,newValue:e}:null;r&&"production"!==process.env.NODE_ENV&&Mt(o),i&&En(this,o),r&&"production"!==process.env.NODE_ENV&&Rt()}return this},n.delete=function(e){var t=this;if(bn(this)&&!yn(this,{type:In,object:this,oldValue:e}))return!1;if(this.has(e)){var n="production"!==process.env.NODE_ENV&&Pt(),r=mn(this),i=r||n?{observableKind:"set",debugObjectName:this.name_,type:In,object:this,oldValue:e}:null;return n&&"production"!==process.env.NODE_ENV&&Mt(i),vn(function(){t.atom_.reportChanged(),t.data_.delete(e)}),r&&En(this,i),n&&"production"!==process.env.NODE_ENV&&Rt(),!0}return!1},n.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},n.entries=function(){var e=this.values();return Hn({next:function(){var t=e.next(),n=t.value,r=t.done;return r?{value:void 0,done:r}:{value:[n,n],done:r}}})},n.keys=function(){return this.values()},n.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return Hn({next:function(){var n=t.next(),r=n.value,i=n.done;return i?{value:void 0,done:i}:{value:e.dehanceValue_(r),done:i}}})},n.intersection=function(e){return V(e)&&!Xn(e)?e.intersection(this):new Set(this).intersection(e)},n.union=function(e){return V(e)&&!Xn(e)?e.union(this):new Set(this).union(e)},n.difference=function(e){return new Set(this).difference(e)},n.symmetricDifference=function(e){return V(e)&&!Xn(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},n.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},n.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},n.isDisjointFrom=function(e){return V(e)&&!Xn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},n.replace=function(e){var n=this;return Xn(e)&&(e=new Set(e)),vn(function(){Array.isArray(e)||V(e)?(n.clear(),e.forEach(function(e){return n.add(e)})):null!=e&&t("Cannot initialize set from "+e)}),this},n.observe_=function(e,n){return"production"!==process.env.NODE_ENV&&!0===n&&t("`observe` doesn't support fireImmediately=true in combination with sets."),On(this,e)},n.intercept_=function(e){return gn(this,e)},n.toJSON=function(){return Array.from(this)},n.toString=function(){return"[object ObservableSet]"},n[Symbol.iterator]=function(){return this.values()},R(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Xn=w("ObservableSet",zn);function Hn(e){return e[Symbol.toStringTag]="SetIterator",Nr(e)}var Wn=Object.create(null),Fn="remove",Yn=function(){function e(e,n,r,i){void 0===n&&(n=new Map),void 0===i&&(i=Oe),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=n,this.name_=r,this.defaultAnnotation_=i,this.keysAtom_=new F("production"!==process.env.NODE_ENV?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=m(this.target_),"production"===process.env.NODE_ENV||Sr(this.defaultAnnotation_)||t("defaultAnnotation must be valid annotation"),"production"!==process.env.NODE_ENV&&(this.appliedAnnotations_={})}var n=e.prototype;return n.getObservablePropValue_=function(e){return this.values_.get(e).get()},n.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof Qe)return n.set(t),!0;if(bn(this)){var r=yn(this,{type:Vn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==pt.UNCHANGED){var i=mn(this),o="production"!==process.env.NODE_ENV&&Pt(),s=i||o?{type:Vn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&o&&Mt(s),n.setNewValue_(t),i&&En(this,s),"production"!==process.env.NODE_ENV&&o&&Rt()}return!0},n.get_=function(e){return pt.trackingDerivation&&!x(this.target_,e)&&this.has_(e),this.target_[e]},n.set_=function(e,t,n){return void 0===n&&(n=!1),x(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},n.has_=function(e){if(!pt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new $e(e in this.target_,Z,"production"!==process.env.NODE_ENV?this.name_+"."+k(e)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},n.make_=function(e,n){if(!0===n&&(n=this.defaultAnnotation_),!1!==n){if(tr(this,n,e),!(e in this.target_)){var r;if(null!=(r=this.target_[G])&&r[e])return;t(1,n.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==a;){var s=o(i,e);if(s){var u=n.make_(this,e,s,i);if(0===u)return;if(1===u)break}i=Object.getPrototypeOf(i)}er(this,n,e)}},n.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);tr(this,n,e);var i=n.extend_(this,e,t,r);return i&&er(this,n,e),i},n.defineProperty_=function(e,t,n){void 0===n&&(n=!1),ot(this.keysAtom_);try{mt();var r=this.delete_(e);if(!r)return r;if(bn(this)){var i=yn(this,{object:this.proxy_||this.target_,name:e,type:Bn,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=B({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else s(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{Ot()}return!0},n.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),ot(this.keysAtom_);try{mt();var i=this.delete_(e);if(!i)return i;if(bn(this)){var o=yn(this,{object:this.proxy_||this.target_,name:e,type:Bn,newValue:t});if(!o)return null;t=o.newValue}var a=Qn(e),u={configurable:!pt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,u))return!1}else s(this.target_,e,u);var c=new $e(t,n,"production"!==process.env.NODE_ENV?this.name_+"."+e.toString():"ObservableObject.key",!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{Ot()}return!0},n.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),ot(this.keysAtom_);try{mt();var r=this.delete_(e);if(!r)return r;if(bn(this))if(!yn(this,{object:this.proxy_||this.target_,name:e,type:Bn,newValue:void 0}))return null;t.name||(t.name="production"!==process.env.NODE_ENV?this.name_+"."+e.toString():"ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Qn(e),o={configurable:!pt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else s(this.target_,e,o);this.values_.set(e,new Qe(t)),this.notifyPropertyAddition_(e,void 0)}finally{Ot()}return!0},n.delete_=function(e,t){if(void 0===t&&(t=!1),ot(this.keysAtom_),!x(this.target_,e))return!0;if(bn(this)&&!yn(this,{object:this.proxy_||this.target_,name:e,type:Fn}))return null;try{var n;mt();var r,i=mn(this),s="production"!==process.env.NODE_ENV&&Pt(),a=this.values_.get(e),u=void 0;if(!a&&(i||s))u=null==(r=o(this.target_,e))?void 0:r.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if("production"!==process.env.NODE_ENV&&delete this.appliedAnnotations_[e],a&&(this.values_.delete(e),a instanceof $e&&(u=a.value_),Nt(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i||s){var c={type:Fn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:u,name:e};"production"!==process.env.NODE_ENV&&s&&Mt(c),i&&En(this,c),"production"!==process.env.NODE_ENV&&s&&Rt()}}finally{Ot()}return!0},n.observe_=function(e,n){return"production"!==process.env.NODE_ENV&&!0===n&&t("`observe` doesn't support the fire immediately property for observable objects."),On(this,e)},n.intercept_=function(e){return gn(this,e)},n.notifyPropertyAddition_=function(e,t){var n,r=mn(this),i="production"!==process.env.NODE_ENV&&Pt();if(r||i){var o=r||i?{type:Bn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&i&&Mt(o),r&&En(this,o),"production"!==process.env.NODE_ENV&&i&&Rt()}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},n.ownKeys_=function(){return this.keysAtom_.reportObserved(),D(this.target_)},n.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Jn(e,n){var r;if("production"!==process.env.NODE_ENV&&n&&Zn(e)&&t("Options can't be provided for already observable objects."),x(e,W))return"production"===process.env.NODE_ENV||vr(e)instanceof Yn||t("Cannot convert '"+_r(e)+"' into observable object:\nThe target is already observable of different type.\nExtending builtins is not supported."),e;"production"===process.env.NODE_ENV||Object.isExtensible(e)||t("Cannot make the designated object observable; it is not extensible");var i=null!=(r=null==n?void 0:n.name)?r:"production"!==process.env.NODE_ENV?(m(e)?"ObservableObject":e.constructor.name)+"@"+v():"ObservableObject",o=new Yn(e,new Map,String(i),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:Ee(e):void 0}(n));return E(e,W,o),e}var $n=w("ObservableObjectAdministration",Yn);function Qn(e){return Wn[e]||(Wn[e]={get:function(){return this[W].getObservablePropValue_(e)},set:function(t){return this[W].setObservablePropValue_(e,t)}})}function Zn(e){return!!y(e)&&$n(e[W])}function er(e,t,n){var r;"production"!==process.env.NODE_ENV&&(e.appliedAnnotations_[n]=t),null==(r=e.target_[G])||delete r[n]}function tr(e,n,r){if("production"===process.env.NODE_ENV||Sr(n)||t("Cannot annotate '"+e.name_+"."+r.toString()+"': Invalid annotation."),"production"!==process.env.NODE_ENV&&!te(n)&&x(e.appliedAnnotations_,r)){var i=e.name_+"."+r.toString(),o=e.appliedAnnotations_[r].annotationType_;t("Cannot apply '"+n.annotationType_+"' to '"+i+"':\nThe field is already annotated with '"+o+"'.\nRe-annotating fields is not allowed.\nUse 'override' annotation for methods overridden by subclass.")}}var nr,rr,ir=cr(0),or=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),sr=0,ar=function(){};nr=ar,rr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(nr.prototype,rr):void 0!==nr.prototype.__proto__?nr.prototype.__proto__=rr:nr.prototype=rr;var ur=function(e){function t(t,n,r,i){var o;return void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableArray@"+v():"ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this,pr(function(){var e=new Dn(r,n,i,!0);e.proxy_=o,N(o,W,e),t&&t.length&&o.spliceWithArray(0,0,t),or&&Object.defineProperty(o,"0",ir)}),o}I(t,e);var n=t.prototype;return n.concat=function(){this[W].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map(function(e){return Rn(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return Nr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},R(t,[{key:"length",get:function(){return this[W].getArrayLength_()},set:function(e){this[W].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ar);function cr(e){return{enumerable:!1,configurable:!0,get:function(){return this[W].get_(e)},set:function(t){this[W].set_(e,t)}}}function lr(e){s(ur.prototype,""+e,cr(e))}function dr(e){if(e>sr){for(var t=sr;t<e+100;t++)lr(t);sr=e}}function fr(e,t,n){return new ur(e,t,n)}function hr(e,n){if("object"==typeof e&&null!==e){if(Rn(e))return void 0!==n&&t(23),e[W].atom_;if(Xn(e))return e.atom_;if(Kn(e)){if(void 0===n)return e.keysAtom_;var r=e.data_.get(n)||e.hasMap_.get(n);return r||t(25,n,_r(e)),r}if(Zn(e)){if(!n)return t(26);var i=e[W].values_.get(n);return i||t(27,n,_r(e)),i}if(Y(e)||tt(e)||xt(e))return e}else if(b(e)&&xt(e[W]))return e[W];t(28)}function vr(e,n){return e||t(29),Y(e)||tt(e)||xt(e)||Kn(e)||Xn(e)?e:e[W]?e[W]:void t(24,e)}function _r(e,t){var n;if(void 0!==t)n=hr(e,t);else{if(Wt(e))return e.name;n=Zn(e)||Kn(e)||Xn(e)?vr(e):hr(e)}return n.name_}function pr(e){var t=ct(),n=Ye(!0);mt();try{return e()}finally{Ot(),Je(n),lt(t)}}Object.entries(jn).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&E(ur.prototype,t,n)}),dr(1e3);var br,gr=a.toString;function yr(e,t,n){return void 0===n&&(n=-1),mr(e,t,n)}function mr(e,t,n,r,i){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;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var s=gr.call(e);if(s!==gr.call(t))return!1;switch(s){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);case"[object Map]":case"[object Set]":n>=0&&n++}e=Or(e),t=Or(t);var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,c=t.constructor;if(u!==c&&!(b(u)&&u instanceof u&&b(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var l=(r=r||[]).length;l--;)if(r[l]===e)return i[l]===t;if(r.push(e),i.push(t),a){if((l=e.length)!==t.length)return!1;for(;l--;)if(!mr(e[l],t[l],n-1,r,i))return!1}else{var d=Object.keys(e),f=d.length;if(Object.keys(t).length!==f)return!1;for(var h=0;h<f;h++){var v=d[h];if(!x(t,v)||!mr(e[v],t[v],n-1,r,i))return!1}}return r.pop(),i.pop(),!0}function Or(e){return Rn(e)?e.slice():S(e)||Kn(e)||V(e)||Xn(e)?Array.from(e.entries()):e}var Er=(null==(br=r().Iterator)?void 0:br.prototype)||{};function Nr(e){return e[Symbol.iterator]=wr,Object.assign(Object.create(Er),e)}function wr(){return this}function Sr(e){return e instanceof Object&&"string"==typeof e.annotationType_&&b(e.make_)&&b(e.extend_)}["Symbol","Map","Set"].forEach(function(e){void 0===r()[e]&&t("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Lt,extras:{getDebugName:_r},$mobx:W});export{W as $mobx,sn as FlowCancellationError,Un as ObservableMap,zn as ObservableSet,Vt as Reaction,ft as _allowStateReadsEnd,dt as _allowStateReadsStart,Ht as _autoAction,Fe as _endAction,vr as _getAdministration,We as _startAction,Xt as action,Ft as autorun,$ as comparer,Ke as computed,J as createAtom,tn as extendObservable,cn as flow,hr as getAtom,_r as getDebugName,nn as getDependencyTree,Wt as isAction,dn as isFlow,fn as isObservable,Rn as isObservableArray,Kn as isObservableMap,Zn as isObservableObject,Xn as isObservableSet,wn as makeAutoObservable,Le as observable,Qt as onBecomeObserved,Zt as onBecomeUnobserved,Lt as spy,hn as trace,vn as transaction,ut as untracked};
|
|
2
|
+
//# sourceMappingURL=mobx.esm.js.map
|