mobx-view-model-devtools 0.0.4 → 0.0.5

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/package.json CHANGED
@@ -1,44 +1,10 @@
1
1
  {
2
2
  "name": "mobx-view-model-devtools",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "",
5
- "main": "dist/index.js",
6
5
  "keywords": [],
7
6
  "author": "js2me",
8
7
  "license": "ISC",
9
- "files": [
10
- "dist"
11
- ],
12
- "exports": {
13
- ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.js",
16
- "require": "./dist/index.cjs"
17
- }
18
- },
19
- "devDependencies": {
20
- "@biomejs/biome": "2.2.6",
21
- "@tailwindcss/postcss": "^4.1.16",
22
- "@tailwindcss/vite": "^4.1.16",
23
- "@types/lodash-es": "^4.17.12",
24
- "@types/node": "^24.10.0",
25
- "@types/react": "^18.3.23",
26
- "@types/react-dom": "^18.3.7",
27
- "commitfmt": "^1.0.4",
28
- "cross-env": "^10.1.0",
29
- "js2me-biome-config": "^1.0.6",
30
- "lefthook": "^1.11.16",
31
- "nodemon": "^3.1.10",
32
- "postcss": "^8.5.6",
33
- "postcss-nested": "^7.0.2",
34
- "rollup": "^4.52.5",
35
- "rollup-plugin-dts": "^6.2.3",
36
- "tailwindcss": "^4.1.16",
37
- "terser": "^5.44.0",
38
- "typescript": "^5.9.3",
39
- "vite": "^7.1.12",
40
- "vite-plugin-css-injected-by-js": "^3.5.2"
41
- },
42
8
  "dependencies": {
43
9
  "lodash-es": "^4.17.21",
44
10
  "mobx": "^6.15.0",
@@ -50,9 +16,16 @@
50
16
  "virtua": "^0.46.5",
51
17
  "yummies": "^6.0.0"
52
18
  },
53
- "scripts": {
54
- "prebuild": "tsc --noEmit",
55
- "build:watch": "vite build && nodemon --watch src --ext ts,tsx --exec \"vite build\"",
56
- "build": "cross-env NODE_ENV=production vite build"
57
- }
19
+ "main": "index.js",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./index.d.ts",
23
+ "import": "./index.js",
24
+ "require": "./index.cjs",
25
+ "default": "./index.js"
26
+ }
27
+ },
28
+ "files": [
29
+ "*"
30
+ ]
58
31
  }
package/dist/index.cjs DELETED
@@ -1,2 +0,0 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--font-weight-semibold:600;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.container_ueeVi{width:100%}@media(min-width:40rem){.container_ueeVi{max-width:40rem}}@media(min-width:48rem){.container_ueeVi{max-width:48rem}}@media(min-width:64rem){.container_ueeVi{max-width:64rem}}@media(min-width:80rem){.container_ueeVi{max-width:80rem}}@media(min-width:96rem){.container_ueeVi{max-width:96rem}}.block_O8-1d{display:block}.inline_gmkRL{display:inline}.blur_9rZ6A{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.vmButton_Xr1Q6{z-index:99;width:calc(var(--spacing)*9);height:calc(var(--spacing)*9);cursor:pointer;border-radius:var(--radius-lg);font-family:var(--font-mono);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));position:fixed}.vmButton_Xr1Q6[data-position=top-right],.vmButton_Xr1Q6[data-position=undefined]{top:calc(var(--spacing)*3);right:calc(var(--spacing)*3)}:is(.vmButton_Xr1Q6[data-position=top-right],.vmButton_Xr1Q6[data-position=undefined]).opened_gewqL{top:calc(var(--spacing)*-10)}.vmButton_Xr1Q6[data-position=top-left]{top:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmButton_Xr1Q6[data-position=top-left].opened_gewqL{top:calc(var(--spacing)*-10)}.vmButton_Xr1Q6[data-position=bottom-left]{bottom:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmButton_Xr1Q6[data-position=bottom-left].opened_gewqL{bottom:calc(var(--spacing)*-10)}.vmButton_Xr1Q6[data-position=bottom-right]{right:calc(var(--spacing)*3);bottom:calc(var(--spacing)*3)}.vmButton_Xr1Q6[data-position=bottom-right].opened_gewqL{bottom:calc(var(--spacing)*-10)}.vmButton_Xr1Q6>img{pointer-events:none;inset:calc(var(--spacing)*0);border-radius:var(--radius-lg);position:absolute}.vmButton_Xr1Q6>div{pointer-events:none;inset:calc(var(--spacing)*0);border-radius:var(--radius-lg);border-style:var(--tw-border-style);border-width:2px;border-color:#00000057;position:absolute}.vmButton_Xr1Q6>span{pointer-events:none;top:calc(var(--spacing)*-1);left:calc(var(--spacing)*-1);border-radius:var(--radius-lg);padding:calc(var(--spacing)*.5);--tw-leading:1;--tw-font-weight:var(--font-weight-semibold);font-size:12px;line-height:1;font-weight:var(--font-weight-semibold);color:#2aff0a;background-color:#005c26cf;display:flex;position:absolute}.vmButton_Xr1Q6.opened_gewqL{pointer-events:none}.vmPopup_Q4l4j{z-index:99;border-radius:var(--radius-lg);width:520px;height:calc(100vh - 24px);position:fixed}.vmPopup_Q4l4j>header button{width:28px;padding:6px}.vmPopup_Q4l4j[data-position=top-right],.vmPopup_Q4l4j[data-position=undefined]{top:calc(var(--spacing)*3);right:calc(var(--spacing)*3)}.vmPopup_Q4l4j[data-position=top-left]{top:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmPopup_Q4l4j[data-position=bottom-left]{bottom:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmPopup_Q4l4j[data-position=bottom-right]{right:calc(var(--spacing)*3);bottom:calc(var(--spacing)*3)}.vmContent_VAE7p{color:#ccc;font-family:var(--font-mono);background-color:#1e1e1e;overflow:auto}.vmContent_VAE7p>header{height:calc(var(--spacing)*8);padding-left:calc(var(--spacing)*2);--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);justify-content:space-between;align-items:center;display:flex}.vmContent_VAE7p *{font-family:var(--font-mono)}.vmContentTree_BB36O{padding-inline:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*2);flex-direction:column;display:flex}.vmTreeItem_t-7jc{flex-direction:column;display:flex}.vmTreeItem_t-7jc.line_Xgaua{top:calc(22px + 22px*var(--level,0));background:#1e1e1e;position:sticky}.vmTreeItem_t-7jc>header{z-index:1;cursor:pointer;align-items:center;gap:calc(var(--spacing)*1);text-overflow:ellipsis;white-space:nowrap;background-color:#1e1e1e;margin-block:auto;display:flex;overflow:hidden}.vmTreeItem_t-7jc>header>label{background:#0f6013;border-radius:4px;padding:0 4px}.vmTreeItem_t-7jc>header>span{color:#5ab65e;text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.vmTreeItem_t-7jc:not([data-fitted=true])>header{opacity:.6}.vmContentFilters_No1QW{z-index:99;background:#1e1e1e;width:100%;padding:0 8px;position:sticky;top:0}.vmContentFilters_No1QW input{background:#343434;border-radius:4px;outline:0;width:100%;padding:3px 4px;font-size:14px}.propertyMeta_XxYHc{text-overflow:ellipsis;white-space:nowrap;color:#616161;overflow:hidden}.propertyMeta_XxYHc.small_Ipy6s{font-size:10px;line-height:15px}.propertyValue_s9qHJ{text-overflow:ellipsis;white-space:nowrap;color:#616161;overflow:hidden}.propertyValue_s9qHJ:has(+.property-name_2-sJi){margin-right:calc(var(--spacing)*1)}.line_Xgaua{text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);white-space:pre;height:22px;z-index:calc((var(--level,0) + 1)*10000 + (var(--order,0)));padding-left:calc(10px + (var(--level)*14px));background:#1e1e1e;flex-direction:row;align-items:center;font-size:14px;display:flex;position:relative;overflow:hidden}.line_Xgaua:has(>.expandButton_EObqt.expanded_uFpb7){top:calc(22px + 22px*(var(--level,0) + 1));position:sticky}.property_eoWZv[data-fitted=false]{opacity:.5}.property_eoWZv.instance_B-kEn>.propertyValue_s9qHJ{color:#ba82be}:is(.property_eoWZv.primitive_5yfCy.boolean_TwUVp,.property_eoWZv.primitive_5yfCy.number_AVdzm,.property_eoWZv.primitive_5yfCy.object_kn8wQ,.property_eoWZv.primitive_5yfCy.undefined_SMcns,.property_eoWZv.primitive_5yfCy.bigint_ZrO3O,.property_eoWZv.primitive_5yfCy.symbol_9GN4U)>.propertyValue_s9qHJ{color:#5999cd}.property_eoWZv.primitive_5yfCy.string_m1Kkx>.propertyValue_s9qHJ{color:#af7249}.expandButton_EObqt{color:#a0a0a0;cursor:pointer;width:16px;height:16px;font-weight:700;opacity:1!important}.expandButton_EObqt.expanded_uFpb7{color:#b8b8b8;transform:rotate(90deg)}.expandButton_EObqt.disabled_IDojS{opacity:.35!important}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
- "use strict";var e,t,n,r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),s=e=>{throw TypeError(e)},l=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>o(e,"name",{value:t,configurable:!0}),u=["class","method","getter","setter","accessor","field","value","get","set"],d=e=>void 0!==e&&"function"!=typeof e?s("Function expected"):e,p=(e,t,n,r,o)=>({kind:u[e],name:t,metadata:r,addInitializer:e=>n._?s("Already initialized"):o.push(d(e||null))}),f=(e,t)=>l(t,a("metadata"),e[3]),h=(e,t,n)=>l(e,"symbol"!=typeof t?t+"":t,n),m=(e,t,n)=>t.has(e)||s("Cannot "+n),v=(e,t)=>Object(t)!==t?s('Cannot use the "in" operator on this value'):e.has(t),b=(e,t,n)=>(m(e,t,"read from private field"),n?n.call(e):t.get(e)),g=(e,t,n,r)=>(m(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),y=(e,t,n)=>(m(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),w=require("react/jsx-runtime"),E=require("react-dom");var O="object"==typeof global&&global&&global.Object===Object&&global,x="object"==typeof self&&self&&self.Object===Object&&self,N=O||x||Function("return this")(),k=N.Symbol,S=Object.prototype,A=S.hasOwnProperty,C=S.toString,T=k?k.toStringTag:void 0;var V=Object.prototype.toString;var M=k?k.toStringTag:void 0;function j(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":M&&M in Object(e)?function(e){var t=A.call(e,T),n=e[T];try{e[T]=void 0;var r=!0}catch(i){}var o=C.call(e);return r&&(t?e[T]=n:delete e[T]),o}(e):function(e){return V.call(e)}(e)}var D=/\s/;var P=/^\s+/;function R(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&D.test(e.charAt(t)););return t}(e)+1).replace(P,""):e}function I(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var L=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,U=/^0o[0-7]+$/i,z=parseInt;function F(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==j(e)}(e))return NaN;if(I(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=I(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=R(e);var n=B.test(e);return n||U.test(e)?z(e.slice(2),n?2:8):L.test(e)?NaN:+e}var G=function(){return N.Date.now()},H=Math.max,q=Math.min;function K(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function m(){var e=G();if(h(e))return v(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?q(n,i-(e-c)):n}(e))}function v(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function b(){var e=G(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),f(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=F(t)||0,I(n)&&(u=!!n.leading,i=(d="maxWait"in n)?H(F(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},b.flush=function(){return void 0===s?a:v(G())},b}var W="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 $(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("production"!==process.env.NODE_ENV){var o="string"==typeof e?e:W[e];throw"function"==typeof o&&(o=o.apply(null,n)),new Error("[MobX] "+o)}throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var X={};function Y(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:X}var J=Object.assign,Z=Object.getOwnPropertyDescriptor,Q=Object.defineProperty,ee=Object.prototype,te=[];Object.freeze(te);var ne={};Object.freeze(ne);var re="undefined"!=typeof Proxy,oe=Object.toString();function ie(){re||$("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 ae(e){"production"!==process.env.NODE_ENV&&pn.verifyProxies&&$("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function se(){return++pn.mobxGuid}function le(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var ce=function(){};function ue(e){return"function"==typeof e}function de(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function pe(e){return null!==e&&"object"==typeof e}function fe(e){if(!pe(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()===oe}function he(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function me(e,t,n){Q(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ve(e,t,n){Q(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function be(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return pe(e)&&!0===e[n]}}function ge(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function ye(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var _e=void 0!==Object.getOwnPropertySymbols;var we="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:_e?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Ee(e){return"string"==typeof e?e:"symbol"==typeof e?e.toString():new String(e).toString()}function Oe(e){return null===e?null:"object"==typeof e?""+e:e}function xe(e,t){return ee.hasOwnProperty.call(e,t)}var Ne=Object.getOwnPropertyDescriptors||function(e){var t={};return we(e).forEach(function(n){t[n]=Z(e,n)}),t};function ke(e,t){return!!(e&t)}function Se(e,t,n){return n?e|=t:e&=~t,e}function Ae(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 Ce(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,De(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Te(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 Ae(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)?Ae(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 Ve(){return Ve=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},Ve.apply(null,arguments)}function Me(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,je(e,t)}function je(e,t){return(je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function De(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 Pe=Symbol("mobx-stored-annotations");function Re(e){return Object.assign(function(t,n){if(Le(n))return e.decorate_20223_(t,n);Ie(t,n,e)},e)}function Ie(e,t,n){(xe(e,Pe)||me(e,Pe,Ve({},e[Pe])),"production"!==process.env.NODE_ENV&&$e(n)&&!xe(e[Pe],t))&&$("'"+(e.constructor.name+".prototype."+t.toString())+"' is decorated with 'override', but no such decorated member was found on prototype.");!function(e,t,n){if("production"!==process.env.NODE_ENV&&!$e(t)&&xe(e[Pe],n)){var r=e.constructor.name+".prototype."+n.toString(),o=e[Pe][n].annotationType_;$("Cannot apply '@"+t.annotationType_+"' to '"+r+"':\nThe field is already decorated with '@"+o+"'.\nRe-decorating fields is not allowed.\nUse '@override' decorator for methods overridden by subclass.")}}(e,n,t),$e(n)||(e[Pe][t]=n)}function Le(e){return"object"==typeof e&&"string"==typeof e.kind}function Be(e,t){"production"===process.env.NODE_ENV||t.includes(e.kind)||$("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var Ue=Symbol("mobx administration"),ze=function(){function e(e){void 0===e&&(e="production"!==process.env.NODE_ENV?"Atom@"+se():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=qt.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 gn(this)},t.reportChanged=function(){vn(),yn(this),bn()},t.toString=function(){return this.name_},Ce(e,[{key:"isBeingObserved",get:function(){return ke(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=Se(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return ke(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=Se(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return ke(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=Se(this.flags_,e.diffValueMask_,1===t)}}])}();ze.isBeingObservedMask_=1,ze.isPendingUnobservationMask_=2,ze.diffValueMask_=4;var Fe=be("Atom",ze);function Ge(e,t,n){void 0===t&&(t=ce),void 0===n&&(n=ce);var r,o=new ze(e);return t!==ce&&Jn($n,o,t,r),n!==ce&&Yn(o,n),o}var He={structural:function(e,t){return mo(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 qe(e,t,n){return cr(e)?e:Array.isArray(e)?Tt.array(e,{name:n}):fe(e)?Tt.object(e,void 0,{name:n}):ge(e)?Tt.map(e,{name:n}):ye(e)?Tt.set(e,{name:n}):"function"!=typeof e||Hn(e)||lr(e)?e:he(e)?ar(e):Fn(n,e)}function Ke(e){return e}var We="override";function $e(e){return e.annotationType_===We}function Xe(e,t){return{annotationType_:e,options_:t,make_:Ye,extend_:Je,decorate_20223_:Ze}}function Ye(e,t,n,r){var o;if(null!=(o=this.options_)&&o.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(Hn(n.value))return 1;var i=Qe(e,this,t,n,!1);return Q(r,t,i),2}function Je(e,t,n,r){var o=Qe(e,this,t,n);return e.defineProperty_(t,o,r)}function Ze(e,t){"production"!==process.env.NODE_ENV&&Be(t,["method","field"]);var n,r=t.kind,o=t.name,i=t.addInitializer,a=this,s=function(e){var t,n,r,i;return Bt(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"==r?function(e){var t,n=e;return Hn(n)||(n=s(n)),null!=(t=a.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==r?(Hn(e)||(e=s(e)),null!=(n=this.options_)&&n.bound&&i(function(){var e=this,t=e[o].bind(e);t.isMobxAction=!0,e[o]=t}),e):void $("Cannot apply '"+a.annotationType_+"' to '"+String(o)+"' (kind: "+r+"):\n'"+a.annotationType_+"' can only be used on properties with a function value.")}function Qe(e,t,n,r,o){var i,a,s,l,c,u,d;void 0===o&&(o=pn.safeDescriptors),function(e,t,n,r){var o=t.annotationType_,i=r.value;"production"===process.env.NODE_ENV||ue(i)||$("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' can only be used on properties with a function value.")}(e,t,n,r);var p,f=r.value;null!=(i=t.options_)&&i.bound&&(f=f.bind(null!=(p=e.proxy_)?p:e.target_));return{value:Bt(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),f,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(u=t.options_)&&u.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function et(e,t){return{annotationType_:e,options_:t,make_:tt,extend_:nt,decorate_20223_:rt}}function tt(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!xe(e.target_,t)||!lr(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(lr(n.value))return 1;var i=ot(e,this,t,n,!1,!1);return Q(r,t,i),2}function nt(e,t,n,r){var o,i=ot(e,this,t,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function rt(e,t){var n;"production"!==process.env.NODE_ENV&&Be(t,["method"]);var r=t.name,o=t.addInitializer;return lr(e)||(e=ar(e)),null!=(n=this.options_)&&n.bound&&o(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function ot(e,t,n,r,o,i){void 0===i&&(i=pn.safeDescriptors),function(e,t,n,r){var o=t.annotationType_,i=r.value;"production"===process.env.NODE_ENV||ue(i)||$("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' can only be used on properties with a generator function value.")}(e,t,n,r);var a,s=r.value;(lr(s)||(s=ar(s)),o)&&((s=s.bind(null!=(a=e.proxy_)?a:e.target_)).isMobXFlow=!0);return{value:s,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function it(e,t){return{annotationType_:e,options_:t,make_:at,extend_:st,decorate_20223_:lt}}function at(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function st(e,t,n,r){return function(e,t,n,r){var o=t.annotationType_,i=r.get;"production"===process.env.NODE_ENV||i||$("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' can only be used on getter(+setter) properties.")}(e,this,t,n),e.defineComputedProperty_(t,Ve({},this.options_,{get:n.get,set:n.set}),r)}function lt(e,t){"production"!==process.env.NODE_ENV&&Be(t,["getter"]);var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=qr(this)[Ue],o=Ve({},n.options_,{get:e,context:this});o.name||(o.name="production"!==process.env.NODE_ENV?t.name_+"."+r.toString():"ObservableObject."+r.toString()),t.values_.set(r,new Ht(o))}),function(){return this[Ue].getObservablePropValue_(r)}}function ct(e,t){return{annotationType_:e,options_:t,make_:ut,extend_:dt,decorate_20223_:pt}}function ut(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function dt(e,t,n,r){var o,i;return function(e,t,n,r){var o=t.annotationType_;"production"===process.env.NODE_ENV||"value"in r||$("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' cannot be used on getter/setter properties")}(e,this,t,n),e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:qe,r)}function pt(e,t){if("production"!==process.env.NODE_ENV){if("field"===t.kind)throw $("Please use `@observable accessor "+String(t.name)+"` instead of `@observable "+String(t.name)+"`");Be(t,["accessor"])}var n=this,r=t.kind,o=t.name,i=new WeakSet;function a(e,t){var r,a,s=qr(e)[Ue],l=new Gt(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:qe,"production"!==process.env.NODE_ENV?s.name_+"."+o.toString():"ObservableObject."+o.toString(),!1);s.values_.set(o,l),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[Ue].getObservablePropValue_(o)},set:function(e){return i.has(this)||a(this,e),this[Ue].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||a(this,e),e}}}var ft="true",ht=mt();function mt(e){return{annotationType_:ft,options_:e,make_:vt,extend_:bt,decorate_20223_:gt}}function vt(e,t,n,r){var o,i,a,s;if(n.get)return Dt.make_(e,t,n,r);if(n.set){var l=Hn(n.set)?n.set:Bt(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!pn.safeDescriptors||e.isPlainObject_,set:l})?0:2:(Q(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return he(n.value)?(null!=(s=this.options_)&&s.autoBind?ar.bound:ar).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Fn.bound:Fn).make_(e,t,n,r);var c,u=!1===(null==(o=this.options_)?void 0:o.deep)?Tt.ref:Tt;"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_));return u.make_(e,t,n,r)}function bt(e,t,n,r){var o,i,a;if(n.get)return Dt.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!pn.safeDescriptors||e.isPlainObject_,set:Bt(t.toString(),n.set)},r);"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(i=this.options_)?void 0:i.deep)?Tt.ref:Tt).extend_(e,t,n,r)}function gt(e,t){$("'"+this.annotationType_+"' cannot be used as a decorator")}var yt={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function _t(e){return e||yt}Object.freeze(yt);var wt=ct("observable"),Et=ct("observable.ref",{enhancer:Ke}),Ot=ct("observable.shallow",{enhancer:function(e,t,n){return null==e||$r(e)||Vr(e)||Rr(e)||Ur(e)?e:Array.isArray(e)?Tt.array(e,{name:n,deep:!1}):fe(e)?Tt.object(e,void 0,{name:n,deep:!1}):ge(e)?Tt.map(e,{name:n,deep:!1}):ye(e)?Tt.set(e,{name:n,deep:!1}):void("production"!==process.env.NODE_ENV&&$("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets"))}}),xt=ct("observable.struct",{enhancer:function(e,t){return"production"!==process.env.NODE_ENV&&cr(e)&&$("observable.struct should not be used with observable values"),mo(e,t)?t:e}}),Nt=Re(wt);function kt(e){return!0===e.deep?qe:!1===e.deep?Ke:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:qe;var t,n,r}function St(e,t,n){return Le(t)?wt.decorate_20223_(e,t):de(t)?void Ie(e,t,wt):cr(e)?e:fe(e)?Tt.object(e,t,n):Array.isArray(e)?Tt.array(e,t):ge(e)?Tt.map(e,t):ye(e)?Tt.set(e,t):"object"==typeof e&&null!==e?e:Tt.box(e,t)}J(St,Nt);var At,Ct,Tt=J(St,{box:function(e,t){var n=_t(t);return new Gt(e,kt(n),n.name,!0,n.equals)},array:function(e,t){var n=_t(t);return(!1===pn.useProxies||!1===n.proxy?so:xr)(e,kt(n),n.name)},map:function(e,t){var n=_t(t);return new Pr(e,kt(n),n.name)},set:function(e,t){var n=_t(t);return new Br(e,kt(n),n.name)},object:function(e,t,n){return po(function(){return function(e,t,n,r){"production"!==process.env.NODE_ENV&&(arguments.length>4&&$("'extendObservable' expected 2-4 arguments"),"object"!=typeof e&&$("'extendObservable' expects an object as first argument"),Rr(e)&&$("'extendObservable' should not be used on maps, use map.merge instead"),fe(t)||$("'extendObservable' only accepts plain objects as second argument"),(cr(t)||cr(n))&&$("Extending an object with another observable (object) is not supported"));var o=Ne(t);return po(function(){var t=qr(e,r)[Ue];we(o).forEach(function(e){t.extend_(e,o[e],!n||(!(e in n)||n[e]))})}),e}(!1===pn.useProxies||!1===(null==n?void 0:n.proxy)?qr({},n):function(e,t){var n,r;return ie(),e=qr(e,t),null!=(r=(n=e[Ue]).proxy_)?r:n.proxy_=new Proxy(e,pr)}({},n),e,t)})},ref:Re(Et),shallow:Re(Ot),deep:Nt,struct:Re(xt)}),Vt="computed",Mt=it(Vt),jt=it("computed.struct",{equals:He.structural}),Dt=function(e,t){if(Le(t))return Mt.decorate_20223_(e,t);if(de(t))return Ie(e,t,Mt);if(fe(e))return Re(it(Vt,e));"production"!==process.env.NODE_ENV&&(ue(e)||$("First argument to `computed` should be an expression."),ue(t)&&$("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=fe(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ht(n)};Object.assign(Dt,Mt),Dt.struct=Re(jt);var Pt=0,Rt=1,It=null!=(At=null==(Ct=Z(function(){},"name"))?void 0:Ct.configurable)&&At,Lt={value:"action",configurable:!0,writable:!1,enumerable:!1};function Bt(e,t,n,r){function o(){return Ut(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),"production"!==process.env.NODE_ENV&&(ue(t)||$("`action` can only be invoked on functions"),"string"==typeof e&&e||$("actions should have valid names, got: '"+e+"'")),o.isMobxAction=!0,o.toString=function(){return t.toString()},It&&(Lt.value=e,Q(o,"name",Lt)),o}function Ut(e,t,n,r,o){var i=function(e,t,n,r){var o="production"!==process.env.NODE_ENV&&An()&&!!e,i=0;if("production"!==process.env.NODE_ENV&&o){i=Date.now();var a=r?Array.from(r):te;Tn({type:jn,name:e,object:n,arguments:a})}var s=pn.trackingDerivation,l=!t||!s;vn();var c=pn.allowStateChanges;l&&(rn(),c=zt(!0));var u=an(!0),d={runAsAction_:l,prevDerivation_:s,prevAllowStateChanges_:c,prevAllowStateReads_:u,notifySpy_:o,startTime_:i,actionId_:Rt++,parentActionId_:Pt};return Pt=d.actionId_,d}(e,t,r,o);try{return n.apply(r,o)}catch(a){throw i.error_=a,a}finally{!function(e){Pt!==e.actionId_&&$(30);Pt=e.parentActionId_,void 0!==e.error_&&(pn.suppressReactionErrors=!0);Ft(e.prevAllowStateChanges_),sn(e.prevAllowStateReads_),bn(),e.runAsAction_&&on(e.prevDerivation_);"production"!==process.env.NODE_ENV&&e.notifySpy_&&Mn({time:Date.now()-e.startTime_});pn.suppressReactionErrors=!1}(i)}}function zt(e){var t=pn.allowStateChanges;return pn.allowStateChanges=e,t}function Ft(e){pn.allowStateChanges=e}var Gt=function(e){function t(t,n,r,o,i){var a,s;(void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableValue@"+se():"ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=He.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=i,a.value_=n(t,void 0,r),"production"!==process.env.NODE_ENV&&o&&An())&&Cn({type:"create",object:a,observableKind:"value",debugObjectName:a.name_,newValue:""+(null==(s=a.value_)?void 0:s.toString())});return a}Me(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))!==pn.UNCHANGED){var n=An();"production"!==process.env.NODE_ENV&&n&&Tn({type:wr,object:this,observableKind:"value",debugObjectName:this.name_,newValue:e,oldValue:t}),this.setNewValue_(e),"production"!==process.env.NODE_ENV&&n&&Mn()}},n.prepareNewValue_=function(e){if(Qt(this),fr(this)){var t=mr(this,{object:this,type:wr,newValue:e});if(!t)return pn.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?pn.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),vr(this)&&gr(this,{type:wr,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return hr(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:wr,newValue:this.value_,oldValue:void 0}),br(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 Oe(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(ze),Ht=function(){function e(e){this.dependenciesState_=qt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=qt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Yt(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Wt.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||$(31),this.derivation=e.get,this.name_=e.name||("production"!==process.env.NODE_ENV?"ComputedValue@"+se():"ComputedValue"),e.set&&(this.setter_=Bt("production"!==process.env.NODE_ENV?this.name_+"-setter":"ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?He.structural:He.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==qt.UP_TO_DATE_)return;e.lowestObserverState_=qt.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===qt.UP_TO_DATE_&&(e.dependenciesState_=qt.POSSIBLY_STALE_,e.onBecomeStale_())})}(this)},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.get=function(){if(this.isComputing&&$(32,this.name_,this.derivation),0!==pn.inBatch||0!==this.observers_.size||this.keepAlive_){if(gn(this),Zt(this)){var e=pn.trackingContext;this.keepAlive_&&!e&&(pn.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===qt.STALE_)return;e.lowestObserverState_=qt.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===qt.POSSIBLY_STALE_?(t.dependenciesState_=qt.STALE_,"production"!==process.env.NODE_ENV&&t.isTracing_!==Wt.NONE&&_n(t,e)):t.dependenciesState_===qt.UP_TO_DATE_&&(e.lowestObserverState_=qt.UP_TO_DATE_)})}(this),pn.trackingContext=e}}else Zt(this)&&(this.warnAboutUntrackedRead_(),vn(),this.value_=this.computeValue_(!1),bn());var t=this.value_;if(Jt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&$(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else $(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===qt.NOT_TRACKING_,n=this.computeValue_(!0),r=t||Jt(e)||Jt(n)||!this.equals_(e,n);return r&&(this.value_=n,"production"!==process.env.NODE_ENV&&An()&&Cn({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:e,newValue:n})),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=zt(!1);if(e)t=en(this,this.derivation,this.scope_);else if(!0===pn.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new Yt(r)}return Ft(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(tn(this),this.value_=void 0,"production"!==process.env.NODE_ENV&&this.isTracing_!==Wt.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return function(e,t){var n,r,o,i;void 0===t&&(t=ne);"production"!==process.env.NODE_ENV&&(ue(e)||$("Autorun expects a function as first argument"),Hn(e)&&$("Autorun does not accept actions since actions are untrackable"));var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"production"!==process.env.NODE_ENV?e.name||"Autorun@"+se():"Autorun";if(t.scheduler||t.delay){var l=Kn(t),c=!1;a=new En(s,function(){c||(c=!0,l(function(){c=!1,a.isDisposed||a.track(u)}))},t.onError,t.requiresObservable)}else a=new En(s,function(){this.track(u)},t.onError,t.requiresObservable);function u(){e(a)}null!=(o=t)&&null!=(o=o.signal)&&o.aborted||a.schedule_();return a.getDisposer_(null==(i=t)?void 0:i.signal)}(function(){var i=n.get();if(!r||t){var a=rn();e({observableKind:"computed",debugObjectName:n.name_,type:wr,object:n,newValue:i,oldValue:o}),on(a)}r=!1,o=i})},t.warnAboutUntrackedRead_=function(){"production"!==process.env.NODE_ENV&&(this.isTracing_!==Wt.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_:pn.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Oe(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Ce(e,[{key:"isComputing",get:function(){return ke(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=Se(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return ke(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=Se(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return ke(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=Se(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return ke(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=Se(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return ke(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=Se(this.flags_,e.diffValueMask_,1===t)}}])}();Ht.isComputingMask_=1,Ht.isRunningSetterMask_=2,Ht.isBeingObservedMask_=4,Ht.isPendingUnobservationMask_=8,Ht.diffValueMask_=16;var qt,Kt,Wt,$t,Xt=be("ComputedValue",Ht);(Kt=qt||(qt={}))[Kt.NOT_TRACKING_=-1]="NOT_TRACKING_",Kt[Kt.UP_TO_DATE_=0]="UP_TO_DATE_",Kt[Kt.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",Kt[Kt.STALE_=2]="STALE_",($t=Wt||(Wt={}))[$t.NONE=0]="NONE",$t[$t.LOG=1]="LOG",$t[$t.BREAK=2]="BREAK";var Yt=function(e){this.cause=void 0,this.cause=e};function Jt(e){return e instanceof Yt}function Zt(e){switch(e.dependenciesState_){case qt.UP_TO_DATE_:return!1;case qt.NOT_TRACKING_:case qt.STALE_:return!0;case qt.POSSIBLY_STALE_:for(var t=an(!0),n=rn(),r=e.observing_,o=r.length,i=0;i<o;i++){var a=r[i];if(Xt(a)){if(pn.disableErrorBoundaries)a.get();else try{a.get()}catch(s){return on(n),sn(t),!0}if(e.dependenciesState_===qt.STALE_)return on(n),sn(t),!0}}return ln(e),on(n),sn(t),!1}}function Qt(e){if("production"!==process.env.NODE_ENV){var t=e.observers_.size>0;pn.allowStateChanges||!t&&"always"!==pn.enforceActions||console.warn("[MobX] "+(pn.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 en(e,t,n){var r=an(!0);ln(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++pn.runId;var o,i=pn.trackingDerivation;if(pn.trackingDerivation=e,pn.inBatch++,!0===pn.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(a){o=new Yt(a)}return pn.inBatch--,pn.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=qt.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,o!==a&&(n[o]=s),o++),s.dependenciesState_>r&&(r=s.dependenciesState_)}n.length=o,e.newObserving_=null,i=t.length;for(;i--;){var l=t[i];0===l.diffValue&&hn(l,e),l.diffValue=0}for(;o--;){var c=n[o];1===c.diffValue&&(c.diffValue=0,fn(c,e))}r!==qt.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_:pn.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}(e),sn(r),o}function tn(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)hn(t[n],e);e.dependenciesState_=qt.NOT_TRACKING_}function nn(e){var t=rn();try{return e()}finally{on(t)}}function rn(){var e=pn.trackingDerivation;return pn.trackingDerivation=null,e}function on(e){pn.trackingDerivation=e}function an(e){var t=pn.allowStateReads;return pn.allowStateReads=e,t}function sn(e){pn.allowStateReads=e}function ln(e){if(e.dependenciesState_!==qt.UP_TO_DATE_){e.dependenciesState_=qt.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=qt.UP_TO_DATE_}}var cn=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},un=!0,dn=!1,pn=function(){var e=Y();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(un=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new cn).version&&(un=!1),un?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new cn):(setTimeout(function(){dn||$(35)},1),new cn)}();function fn(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function hn(e,t){e.observers_.delete(t),0===e.observers_.size&&mn(e)}function mn(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,pn.pendingUnobservations.push(e))}function vn(){pn.inBatch++}function bn(){if(0===--pn.inBatch){Nn();for(var e=pn.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 Ht&&n.suspend_())}pn.pendingUnobservations=[]}}function gn(e){!function(e){"production"!==process.env.NODE_ENV&&!pn.allowStateReads&&pn.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}(e);var t=pn.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&pn.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&pn.inBatch>0&&mn(e),!1)}function yn(e){e.lowestObserverState_!==qt.STALE_&&(e.lowestObserverState_=qt.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===qt.UP_TO_DATE_&&("production"!==process.env.NODE_ENV&&t.isTracing_!==Wt.NONE&&_n(t,e),t.onBecomeStale_()),t.dependenciesState_=qt.STALE_}))}function _n(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===Wt.BREAK){var n=[];wn(er(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 Ht?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function wn(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 wn(e,t,n+1)}))}var En=function(){function e(e,t,n,r){void 0===e&&(e="production"!==process.env.NODE_ENV?"Reaction@"+se():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=qt.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Wt.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,pn.pendingReactions.push(this),Nn())},t.runReaction_=function(){if(!this.isDisposed){vn(),this.isScheduled=!1;var e=pn.trackingContext;if(pn.trackingContext=this,Zt(this)){this.isTrackPending=!0;try{this.onInvalidate_(),"production"!==process.env.NODE_ENV&&this.isTrackPending&&An()&&Cn({name:this.name_,type:"scheduled-reaction"})}catch(t){this.reportExceptionInDerivation_(t)}}pn.trackingContext=e,bn()}},t.track=function(e){if(!this.isDisposed){vn();var t,n=An();"production"!==process.env.NODE_ENV&&n&&(t=Date.now(),Tn({name:this.name_,type:"reaction"})),this.isRunning=!0;var r=pn.trackingContext;pn.trackingContext=this;var o=en(this,e,void 0);pn.trackingContext=r,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&tn(this),Jt(o)&&this.reportExceptionInDerivation_(o.cause),"production"!==process.env.NODE_ENV&&n&&Mn({time:Date.now()-t}),bn()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(pn.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+"'";pn.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&&An()&&Cn({type:"error",name:this.name_,message:n,error:""+e}),pn.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(vn(),tn(this),bn()))},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[Ue]=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),function(){if("production"===process.env.NODE_ENV)return;for(var e=!1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=function(e){switch(e.length){case 0:return pn.trackingDerivation;case 1:return lo(e[0]);case 2:return lo(e[0],e[1])}}(n);if(!o)return $("'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_===Wt.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled");o.isTracing_=e?Wt.BREAK:Wt.LOG}(this,e)},Ce(e,[{key:"isDisposed",get:function(){return ke(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=Se(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return ke(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=Se(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return ke(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=Se(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return ke(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=Se(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return ke(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=Se(this.flags_,e.diffValueMask_,1===t)}}])}();En.isDisposedMask_=1,En.isScheduledMask_=2,En.isTrackPendingMask_=4,En.isRunningMask_=8,En.diffValueMask_=16;var On=100,xn=function(e){return e()};function Nn(){pn.inBatch>0||pn.isRunningReactions||xn(kn)}function kn(){pn.isRunningReactions=!0;for(var e=pn.pendingReactions,t=0;e.length>0;){++t===On&&(console.error("production"!==process.env.NODE_ENV?"Reaction doesn't converge to a stable state after "+On+" 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,o=n.length;r<o;r++)n[r].runReaction_()}pn.isRunningReactions=!1}var Sn=be("Reaction",En);function An(){return"production"!==process.env.NODE_ENV&&!!pn.spyListeners.length}function Cn(e){if("production"!==process.env.NODE_ENV&&pn.spyListeners.length)for(var t=pn.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function Tn(e){"production"!==process.env.NODE_ENV&&Cn(Ve({},e,{spyReportStart:!0}))}var Vn={type:"report-end",spyReportEnd:!0};function Mn(e){"production"!==process.env.NODE_ENV&&Cn(e?Ve({},e,{type:"report-end",spyReportEnd:!0}):Vn)}var jn="action",Dn="autoAction",Pn="<unnamed action>",Rn=Xe(jn),In=Xe("action.bound",{bound:!0}),Ln=Xe(Dn,{autoAction:!0}),Bn=Xe("autoAction.bound",{autoAction:!0,bound:!0});function Un(e){return function(t,n){return ue(t)?Bt(t.name||Pn,t,e):ue(n)?Bt(t,n,e):Le(n)?(e?Ln:Rn).decorate_20223_(t,n):de(n)?Ie(t,n,e?Ln:Rn):de(t)?Re(Xe(e?Dn:jn,{name:t,autoAction:e})):void("production"!==process.env.NODE_ENV&&$("Invalid arguments for `action`"))}}var zn=Un(!1);Object.assign(zn,Rn);var Fn=Un(!0);function Gn(e){return Ut(e.name||Pn,!1,e,this,void 0)}function Hn(e){return ue(e)&&!0===e.isMobxAction}Object.assign(Fn,Ln),zn.bound=Re(In),Fn.bound=Re(Bn);var qn=function(e){return e()};function Kn(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:qn}function Wn(e,t,n){var r,o,i;void 0===n&&(n=ne),"production"!==process.env.NODE_ENV&&(ue(e)&&ue(t)||$("First and second argument to reaction should be functions"),fe(n)||$("Third argument of reactions should be an object"));var a,s,l,c=null!=(r=n.name)?r:"production"!==process.env.NODE_ENV?"Reaction@"+se():"Reaction",u=zn(c,n.onError?(a=n.onError,s=t,function(){try{return s.apply(this,arguments)}catch(e){a.call(this,e)}}):t),d=!n.scheduler&&!n.delay,p=Kn(n),f=!0,h=!1,m=n.compareStructural?He.structural:n.equals||He.default,v=new En(c,function(){f||d?b():h||(h=!0,p(b))},n.onError,n.requiresObservable);function b(){if(h=!1,!v.isDisposed){var t=!1,r=l;v.track(function(){var n=function(e,t){var n=zt(e);try{return t()}finally{Ft(n)}}(!1,function(){return e(v)});t=f||!m(l,n),l=n}),(f&&n.fireImmediately||!f&&t)&&u(l,r,v),f=!1}}return null!=(o=n)&&null!=(o=o.signal)&&o.aborted||v.schedule_(),v.getDisposer_(null==(i=n)?void 0:i.signal)}var $n="onBO",Xn="onBUO";function Yn(e,t,n){return Jn(Xn,e,t,n)}function Jn(e,t,n,r){var o=lo(t),i=ue(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var Zn="always";function Qn(e){!0===e.isolateGlobalState&&function(){if((pn.pendingReactions.length||pn.inBatch||pn.isRunningReactions)&&$(36),dn=!0,un){var e=Y();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),pn=new cn}}();var t,n,r=e.useProxies,o=e.enforceActions;if(void 0!==r&&(pn.useProxies=r===Zn||"never"!==r&&"undefined"!=typeof Proxy),"ifavailable"===r&&(pn.verifyProxies=!0),void 0!==o){var i=o===Zn?Zn:"observed"===o;pn.enforceActions=i,pn.allowStateChanges=!0!==i&&i!==Zn}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(pn[t]=!!e[t])}),pn.allowStateReads=!pn.observableRequiresReaction,"production"!==process.env.NODE_ENV&&!0===pn.disableErrorBoundaries&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&(t=e.reactionScheduler,n=xn,xn=function(e){return t(function(){return n(e)})})}function er(e,t){return tr(lo(e,t))}function tr(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(tr)),n}var nr=0;function rr(){this.message="FLOW_CANCELLED"}rr.prototype=Object.create(Error.prototype);var or=et("flow"),ir=et("flow.bound",{bound:!0}),ar=Object.assign(function(e,t){if(Le(t))return or.decorate_20223_(e,t);if(de(t))return Ie(e,t,or);"production"!==process.env.NODE_ENV&&1!==arguments.length&&$("Flow expects single argument with generator function");var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++nr,i=zn(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,s=new Promise(function(t,n){var s=0;function l(e){var t;a=void 0;try{t=zn(r+" - runid: "+o+" - yield "+s++,i.next).call(i,e)}catch(l){return n(l)}u(t)}function c(e){var t;a=void 0;try{t=zn(r+" - runid: "+o+" - yield "+s++,i.throw).call(i,e)}catch(l){return n(l)}u(t)}function u(e){if(!ue(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,c);e.then(u,n)}e=n,l(void 0)});return s.cancel=zn(r+" - runid: "+o+" - cancel",function(){try{a&&sr(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(ce,ce),sr(n),e(new rr)}catch(r){e(r)}}),s};return o.isMobXFlow=!0,o},or);function sr(e){ue(e.cancel)&&e.cancel()}function lr(e){return!0===(null==e?void 0:e.isMobXFlow)}function cr(e){return"production"!==process.env.NODE_ENV&&1!==arguments.length&&$("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),function(e){return!!e&&($r(e)||!!e[Ue]||Fe(e)||Sn(e)||Xt(e))}(e)}function ur(e,t){void 0===t&&(t=void 0),vn();try{return e.apply(t)}finally{bn()}}function dr(e){return e[Ue]}ar.bound=Re(ir);var pr={has:function(e,t){return"production"!==process.env.NODE_ENV&&pn.trackingDerivation&&ae("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),dr(e).has_(t)},get:function(e,t){return dr(e).get_(t)},set:function(e,t,n){var r;return!!de(t)&&("production"===process.env.NODE_ENV||dr(e).values_.has(t)||ae("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),null==(r=dr(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return"production"!==process.env.NODE_ENV&&ae("delete properties from an observable object. Use 'remove' from 'mobx' instead."),!!de(t)&&(null==(n=dr(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return"production"!==process.env.NODE_ENV&&ae("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),null==(r=dr(e).defineProperty_(t,n))||r},ownKeys:function(e){return"production"!==process.env.NODE_ENV&&pn.trackingDerivation&&ae("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),dr(e).ownKeys_()},preventExtensions:function(e){$(13)}};function fr(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function hr(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),le(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function mr(e,t){var n=rn();try{for(var r=[].concat(e.interceptors_||[]),o=0,i=r.length;o<i&&((t=r[o](t))&&!t.type&&$(14),t);o++);return t}finally{on(n)}}function vr(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function br(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),le(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function gr(e,t){var n=rn(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);on(n)}}function yr(e,t,n){return po(function(){var r=qr(e,n)[Ue];"production"!==process.env.NODE_ENV&&t&&e[Pe]&&$("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),null!=t||(t=function(e){return xe(e,Pe)||me(e,Pe,Ve({},e[Pe])),e[Pe]}(e)),we(t).forEach(function(e){return r.make_(e,t[e])})}),e}var _r="splice",wr="update",Er={get:function(e,t){var n=e[Ue];return t===Ue?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?xe(Nr,t)?Nr[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[Ue];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){$(15)}},Or=function(){function e(e,t,n,r){void 0===e&&(e="production"!==process.env.NODE_ENV?"ObservableArray@"+se():"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 ze(e),this.enhancer_=function(n,r){return t(n,r,"production"!==process.env.NODE_ENV?e+"[..]":"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return hr(this,e)},t.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}),br(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&$("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)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&$(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&ao(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;Qt(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=te),fr(this)){var i=mr(this,{object:this.proxy_,type:_r,index:e,removedCount:t,added:n});if(!i)return te;t=i.removedCount,n=i.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 a=n.length-t;this.updateArrayLength_(o,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<i.length;s++)this.values_[e+n.length+s]=i[s];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&An(),o=vr(this),i=o||r?{observableKind:"array",object:this.proxy_,type:wr,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;"production"!==process.env.NODE_ENV&&r&&Tn(i),this.atom_.reportChanged(),o&&gr(this,i),"production"!==process.env.NODE_ENV&&r&&Mn()},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&An(),o=vr(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:_r,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;"production"!==process.env.NODE_ENV&&r&&Tn(i),this.atom_.reportChanged(),o&&gr(this,i),"production"!==process.env.NODE_ENV&&r&&Mn()},t.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)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&$(17,e,n.length),e<n.length){Qt(this.atom_);var r=n[e];if(fr(this)){var o=mr(this,{type:wr,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{for(var i=new Array(e+1-n.length),a=0;a<i.length-1;a++)i[a]=void 0;i[i.length-1]=t,this.spliceWithArray_(n.length,0,i)}},e}();function xr(e,t,n,r){return void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableArray@"+se():"ObservableArray"),void 0===r&&(r=!1),ie(),po(function(){var o=new Or(n,t,r,!1);ve(o.values_,Ue,o);var i=new Proxy(o.values_,Er);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i})}var Nr={clear:function(){return this.splice(0)},replace:function(e){var t=this[Ue];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),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[Ue];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[Ue].spliceWithArray_(e,t,n)},push:function(){for(var e=this[Ue],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[Ue].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[Ue],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 pn.trackingDerivation&&$(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){pn.trackingDerivation&&$(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[Ue],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function kr(e,t){"function"==typeof Array.prototype[e]&&(Nr[e]=t(e))}function Sr(e){return function(){var t=this[Ue];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Ar(e){return function(t,n){var r=this,o=this[Ue];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e](function(e,o){return t.call(n,e,o,r)})}}function Cr(e){return function(){var t=this,n=this[Ue];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}kr("at",Sr),kr("concat",Sr),kr("flat",Sr),kr("includes",Sr),kr("indexOf",Sr),kr("join",Sr),kr("lastIndexOf",Sr),kr("slice",Sr),kr("toString",Sr),kr("toLocaleString",Sr),kr("toSorted",Sr),kr("toSpliced",Sr),kr("with",Sr),kr("every",Ar),kr("filter",Ar),kr("find",Ar),kr("findIndex",Ar),kr("findLast",Ar),kr("findLastIndex",Ar),kr("flatMap",Ar),kr("forEach",Ar),kr("map",Ar),kr("some",Ar),kr("toReversed",Ar),kr("reduce",Cr),kr("reduceRight",Cr);var Tr=be("ObservableArrayAdministration",Or);function Vr(e){return pe(e)&&Tr(e[Ue])}var Mr={},jr="add",Dr="delete",Pr=function(){function e(e,t,n){var r=this;void 0===t&&(t=qe),void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableMap@"+se():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Ue]=Mr,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_=t,this.name_=n,ue(Map)||$(18),po(function(){r.keysAtom_=Ge("production"!==process.env.NODE_ENV?r.name_+".keys()":"ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!pn.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Gt(this.has_(e),Ke,"production"!==process.env.NODE_ENV?this.name_+"."+Ee(e)+"?":"ObservableMap.key?",!1);this.hasMap_.set(e,r),Yn(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(fr(this)){var r=mr(this,{type:n?wr:jr,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((Qt(this.keysAtom_),fr(this))&&!mr(this,{type:Dr,object:this,name:e}))return!1;if(this.has_(e)){var n=An(),r=vr(this),o=r||n?{observableKind:"map",debugObjectName:this.name_,type:Dr,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return"production"!==process.env.NODE_ENV&&n&&Tn(o),ur(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&&gr(this,o),"production"!==process.env.NODE_ENV&&n&&Mn(),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==pn.UNCHANGED){var r=An(),o=vr(this),i=o||r?{observableKind:"map",debugObjectName:this.name_,type:wr,object:this,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&Tn(i),n.setNewValue_(t),o&&gr(this,i),"production"!==process.env.NODE_ENV&&r&&Mn()}},t.addValue_=function(e,t){var n=this;Qt(this.keysAtom_),ur(function(){var r,o=new Gt(t,n.enhancer_,"production"!==process.env.NODE_ENV?n.name_+"."+Ee(e):"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=An(),o=vr(this),i=o||r?{observableKind:"map",debugObjectName:this.name_,type:jr,object:this,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&Tn(i),o&&gr(this,i),"production"!==process.env.NODE_ENV&&r&&Mn()},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Ir({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return Ir({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=Te(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return Rr(e)&&(e=new Map(e)),ur(function(){var n,r,o;fe(e)?function(e){var t=Object.keys(e);if(!_e)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return ee.propertyIsEnumerable.call(e,t)})):t}(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):ge(e)?(n=e,r=Object.getPrototypeOf(n),o=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(o)&&$(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!=e&&$(20,e)}),this},t.clear=function(){var e=this;ur(function(){nn(function(){for(var t,n=Te(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return ur(function(){for(var n,r=function(e){if(ge(e)||Rr(e))return e;if(Array.isArray(e))return new Map(e);if(fe(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return $(21,e)}(e),o=new Map,i=!1,a=Te(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))i=!0;else{var l=t.data_.get(s);o.set(s,l)}}for(var c,u=Te(r.entries());!(c=u()).done;){var d=c.value,p=d[0],f=d[1],h=t.data_.has(p);if(t.set(p,f),t.data_.has(p)){var m=t.data_.get(p);o.set(p,m),h||(i=!0)}}if(!i)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var v=t.data_.keys(),b=o.keys(),g=v.next(),y=b.next();!g.done;){if(g.value!==y.value){t.keysAtom_.reportChanged();break}g=v.next(),y=b.next()}t.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&$("`observe` doesn't support fireImmediately=true in combination with maps."),br(this,e)},t.intercept_=function(e){return hr(this,e)},Ce(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Rr=be("ObservableMap",Pr);function Ir(e){return e[Symbol.toStringTag]="MapIterator",yo(e)}var Lr={},Br=function(){function e(e,t,n){var r=this;void 0===t&&(t=qe),void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableSet@"+se():"ObservableSet"),this.name_=void 0,this[Ue]=Lr,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_=n,ue(Set)||$(22),this.enhancer_=function(e,r){return t(e,r,n)},po(function(){r.atom_=Ge(r.name_),e&&r.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;ur(function(){nn(function(){for(var t,n=Te(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=Te(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(Qt(this.atom_),fr(this)){var n=mr(this,{type:jr,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){ur(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r="production"!==process.env.NODE_ENV&&An(),o=vr(this),i=o||r?{observableKind:"set",debugObjectName:this.name_,type:jr,object:this,newValue:e}:null;r&&"production"!==process.env.NODE_ENV&&Tn(i),o&&gr(this,i),r&&"production"!==process.env.NODE_ENV&&Mn()}return this},t.delete=function(e){var t=this;if(fr(this)&&!mr(this,{type:Dr,object:this,oldValue:e}))return!1;if(this.has(e)){var n="production"!==process.env.NODE_ENV&&An(),r=vr(this),o=r||n?{observableKind:"set",debugObjectName:this.name_,type:Dr,object:this,oldValue:e}:null;return n&&"production"!==process.env.NODE_ENV&&Tn(o),ur(function(){t.atom_.reportChanged(),t.data_.delete(e)}),r&&gr(this,o),n&&"production"!==process.env.NODE_ENV&&Mn(),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=this.values();return zr({next:function(){var t=e.next(),n=t.value,r=t.done;return r?{value:void 0,done:r}:{value:[n,n],done:r}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return zr({next:function(){var n=t.next(),r=n.value,o=n.done;return o?{value:void 0,done:o}:{value:e.dehanceValue_(r),done:o}}})},t.intersection=function(e){return ye(e)&&!Ur(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return ye(e)&&!Ur(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return ye(e)&&!Ur(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return ye(e)&&!Ur(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Ur(e)&&(e=new Set(e)),ur(function(){Array.isArray(e)||ye(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&$("Cannot initialize set from "+e)}),this},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&$("`observe` doesn't support fireImmediately=true in combination with sets."),br(this,e)},t.intercept_=function(e){return hr(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Ce(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Ur=be("ObservableSet",Br);function zr(e){return e[Symbol.toStringTag]="SetIterator",yo(e)}var Fr=Object.create(null),Gr="remove",Hr=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=ht),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_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new ze("production"!==process.env.NODE_ENV?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=fe(this.target_),"production"===process.env.NODE_ENV||wo(this.defaultAnnotation_)||$("defaultAnnotation must be valid annotation"),"production"!==process.env.NODE_ENV&&(this.appliedAnnotations_={})}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof Ht)return n.set(t),!0;if(fr(this)){var r=mr(this,{type:wr,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==pn.UNCHANGED){var o=vr(this),i="production"!==process.env.NODE_ENV&&An(),a=o||i?{type:wr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&i&&Tn(a),n.setNewValue_(t),o&&gr(this,a),"production"!==process.env.NODE_ENV&&i&&Mn()}return!0},t.get_=function(e){return pn.trackingDerivation&&!xe(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),xe(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)},t.has_=function(e){if(!pn.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Gt(e in this.target_,Ke,"production"!==process.env.NODE_ENV?this.name_+"."+Ee(e)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(Yr(this,t,e),!(e in this.target_)){var n;if(null!=(n=this.target_[Pe])&&n[e])return;$(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==ee;){var o=Z(r,e);if(o){var i=t.make_(this,e,o,r);if(0===i)return;if(1===i)break}r=Object.getPrototypeOf(r)}Xr(this,t,e)}},t.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);Yr(this,n,e);var o=n.extend_(this,e,t,r);return o&&Xr(this,n,e),o},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),Qt(this.keysAtom_);try{vn();var r=this.delete_(e);if(!r)return r;if(fr(this)){var o=mr(this,{object:this.proxy_||this.target_,name:e,type:jr,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=Ve({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else Q(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{bn()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),Qt(this.keysAtom_);try{vn();var o=this.delete_(e);if(!o)return o;if(fr(this)){var i=mr(this,{object:this.proxy_||this.target_,name:e,type:jr,newValue:t});if(!i)return null;t=i.newValue}var a=Wr(e),s={configurable:!pn.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else Q(this.target_,e,s);var l=new Gt(t,n,"production"!==process.env.NODE_ENV?this.name_+"."+e.toString():"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{bn()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),Qt(this.keysAtom_);try{vn();var r=this.delete_(e);if(!r)return r;if(fr(this))if(!mr(this,{object:this.proxy_||this.target_,name:e,type:jr,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 o=Wr(e),i={configurable:!pn.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else Q(this.target_,e,i);this.values_.set(e,new Ht(t)),this.notifyPropertyAddition_(e,void 0)}finally{bn()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),Qt(this.keysAtom_),!xe(this.target_,e))return!0;if(fr(this)&&!mr(this,{object:this.proxy_||this.target_,name:e,type:Gr}))return null;try{var n;vn();var r,o=vr(this),i="production"!==process.env.NODE_ENV&&An(),a=this.values_.get(e),s=void 0;if(!a&&(o||i))s=null==(r=Z(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 Gt&&(s=a.value_),yn(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),o||i){var l={type:Gr,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:s,name:e};"production"!==process.env.NODE_ENV&&i&&Tn(l),o&&gr(this,l),"production"!==process.env.NODE_ENV&&i&&Mn()}}finally{bn()}return!0},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&$("`observe` doesn't support the fire immediately property for observable objects."),br(this,e)},t.intercept_=function(e){return hr(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=vr(this),o="production"!==process.env.NODE_ENV&&An();if(r||o){var i=r||o?{type:jr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&o&&Tn(i),r&&gr(this,i),"production"!==process.env.NODE_ENV&&o&&Mn()}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),we(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function qr(e,t){var n;if("production"!==process.env.NODE_ENV&&t&&$r(e)&&$("Options can't be provided for already observable objects."),xe(e,Ue))return"production"===process.env.NODE_ENV||co(e)instanceof Hr||$("Cannot convert '"+uo(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)||$("Cannot make the designated object observable; it is not extensible");var r=null!=(n=null==t?void 0:t.name)?n:"production"!==process.env.NODE_ENV?(fe(e)?"ObservableObject":e.constructor.name)+"@"+se():"ObservableObject",o=new Hr(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:mt(e):void 0}(t));return me(e,Ue,o),e}var Kr=be("ObservableObjectAdministration",Hr);function Wr(e){return Fr[e]||(Fr[e]={get:function(){return this[Ue].getObservablePropValue_(e)},set:function(t){return this[Ue].setObservablePropValue_(e,t)}})}function $r(e){return!!pe(e)&&Kr(e[Ue])}function Xr(e,t,n){var r;"production"!==process.env.NODE_ENV&&(e.appliedAnnotations_[n]=t),null==(r=e.target_[Pe])||delete r[n]}function Yr(e,t,n){if("production"===process.env.NODE_ENV||wo(t)||$("Cannot annotate '"+e.name_+"."+n.toString()+"': Invalid annotation."),"production"!==process.env.NODE_ENV&&!$e(t)&&xe(e.appliedAnnotations_,n)){var r=e.name_+"."+n.toString(),o=e.appliedAnnotations_[n].annotationType_;$("Cannot apply '"+t.annotationType_+"' to '"+r+"':\nThe field is already annotated with '"+o+"'.\nRe-annotating fields is not allowed.\nUse 'override' annotation for methods overridden by subclass.")}}var Jr,Zr,Qr=oo(0),eo=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),to=0,no=function(){};Jr=no,Zr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Jr.prototype,Zr):void 0!==Jr.prototype.__proto__?Jr.prototype.__proto__=Zr:Jr.prototype=Zr;var ro=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableArray@"+se():"ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,po(function(){var e=new Or(r,n,o,!0);e.proxy_=i,ve(i,Ue,e),t&&t.length&&i.spliceWithArray(0,0,t),eo&&Object.defineProperty(i,"0",Qr)}),i}Me(t,e);var n=t.prototype;return n.concat=function(){this[Ue].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 Vr(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return yo({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},Ce(t,[{key:"length",get:function(){return this[Ue].getArrayLength_()},set:function(e){this[Ue].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(no);function oo(e){return{enumerable:!1,configurable:!0,get:function(){return this[Ue].get_(e)},set:function(t){this[Ue].set_(e,t)}}}function io(e){Q(ro.prototype,""+e,oo(e))}function ao(e){if(e>to){for(var t=to;t<e+100;t++)io(t);to=e}}function so(e,t,n){return new ro(e,t,n)}function lo(e,t){if("object"==typeof e&&null!==e){if(Vr(e))return void 0!==t&&$(23),e[Ue].atom_;if(Ur(e))return e.atom_;if(Rr(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||$(25,t,uo(e)),n}if($r(e)){if(!t)return $(26);var r=e[Ue].values_.get(t);return r||$(27,t,uo(e)),r}if(Fe(e)||Xt(e)||Sn(e))return e}else if(ue(e)&&Sn(e[Ue]))return e[Ue];$(28)}function co(e,t){return e||$(29),Fe(e)||Xt(e)||Sn(e)||Rr(e)||Ur(e)?e:e[Ue]?e[Ue]:void $(24,e)}function uo(e,t){var n;if(void 0!==t)n=lo(e,t);else{if(Hn(e))return e.name;n=$r(e)||Rr(e)||Ur(e)?co(e):lo(e)}return n.name_}function po(e){var t=rn(),n=zt(!0);vn();try{return e()}finally{bn(),Ft(n),on(t)}}Object.entries(Nr).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&me(ro.prototype,t,n)}),ao(1e3);var fo,ho=ee.toString;function mo(e,t,n){return void 0===n&&(n=-1),vo(e,t,n)}function vo(e,t,n,r,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var a=ho.call(e);if(a!==ho.call(t))return!1;switch(a){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=bo(e),t=bo(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(ue(l)&&l instanceof l&&ue(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return o[u]===t;if(r.push(e),o.push(t),s){if((u=e.length)!==t.length)return!1;for(;u--;)if(!vo(e[u],t[u],n-1,r,o))return!1}else{var d=Object.keys(e),p=d.length;if(Object.keys(t).length!==p)return!1;for(var f=0;f<p;f++){var h=d[f];if(!xe(t,h)||!vo(e[h],t[h],n-1,r,o))return!1}}return r.pop(),o.pop(),!0}function bo(e){return Vr(e)?e.slice():ge(e)||Rr(e)||ye(e)||Ur(e)?Array.from(e.entries()):e}var go=(null==(fo=Y().Iterator)?void 0:fo.prototype)||{};function yo(e){return e[Symbol.iterator]=_o,Object.assign(Object.create(go),e)}function _o(){return this}function wo(e){return e instanceof Object&&"string"==typeof e.annotationType_&&ue(e.make_)&&ue(e.extend_)}if(["Symbol","Map","Set"].forEach(function(e){void 0===Y()[e]&&$("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return"production"===process.env.NODE_ENV?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(pn.spyListeners.push(e),le(function(){pn.spyListeners=pn.spyListeners.filter(function(t){return t!==e})}))},extras:{getDebugName:uo},$mobx:Ue}),!_.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!yr)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Eo(e){e()}function Oo(e){return er(e)}var xo,No=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach(function(r,o){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(o))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),ko=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:No)(function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null}),So={exports:{}},Ao={};var Co,To,Vo={};var Mo,jo,Do=(To||(To=1,"production"===process.env.NODE_ENV?So.exports=function(){if(xo)return Ao;xo=1;var e=_,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(o){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),l=n({inst:{value:s,getSnapshot:t}}),c=l[0].inst,u=l[1];return o(function(){c.value=s,c.getSnapshot=t,a(c)&&u({inst:c})},[e,s,t]),r(function(){return a(c)&&u({inst:c}),e(function(){a(c)&&u({inst:c})})},[e]),i(s),s};return Ao.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,Ao}():So.exports=(Co||(Co=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(o){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=_,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue,s=!1,l=!1,c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(c,u){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=u();if(!l){var p=u();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var f=(p=r({inst:{value:d,getSnapshot:u}}))[0].inst,h=p[1];return i(function(){f.value=d,f.getSnapshot=u,e(f)&&h({inst:f})},[c,d,u]),o(function(){return e(f)&&h({inst:f}),c(function(){e(f)&&h({inst:f})})},[c]),a(d),d};Vo.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:c,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Vo)),So.exports);function Po(e){e.reaction=new En("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)})}var Ro=!0,Io="function"==typeof Symbol&&Symbol.for,Lo=null!==(jo=null===(Mo=Object.getOwnPropertyDescriptor(function(){},"name"))||void 0===Mo?void 0:Mo.configurable)&&void 0!==jo&&jo,Bo=Io?Symbol.for("react.forward_ref"):"function"==typeof _.forwardRef&&_.forwardRef(function(e){return null}).$$typeof,Uo=Io?Symbol.for("react.memo"):"function"==typeof _.memo&&_.memo(function(e){return null}).$$typeof;function zo(e,t){if(process.env.NODE_ENV,Uo&&e.$$typeof===Uo)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=!1,r=e,o=e.displayName||e.name;if(Bo&&e.$$typeof===Bo&&(n=!0,"function"!=typeof(r=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var i,a,s=function(e,t){return function(e,t){void 0===t&&(t="observed");var n=_.useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return ko.unregister(r),r.onStoreChange=e,r.reaction||(Po(r),r.stateVersion=Symbol()),function(){var e;r.onStoreChange=null,null===(e=r.reaction)||void 0===e||e.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var o,i,a=n.current;if(a.reaction||(Po(a),ko.register(n,a,a)),_.useDebugValue(a.reaction,Oo),Do.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track(function(){try{o=e()}catch(t){i=t}}),i)throw i;return o}(function(){return r(e,t)},o)};return s.displayName=e.displayName,Lo&&Object.defineProperty(s,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(s.contextTypes=e.contextTypes,"production"!==process.env.NODE_ENV&&Ro&&(Ro=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),n&&(s=_.forwardRef(s)),s=_.memo(s),i=e,a=s,Object.keys(i).forEach(function(e){Go[e]||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(i,e))}),"production"!==process.env.NODE_ENV&&Object.defineProperty(s,"contextTypes",{set:function(){var e,t;throw new Error("[mobx-react-lite] `".concat(this.displayName||(null===(e=this.type)||void 0===e?void 0:e.displayName)||(null===(t=this.type)||void 0===t?void 0:t.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),s}var Fo,Go={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};process.env.NODE_ENV,(Fo=E.unstable_batchedUpdates)||(Fo=Eo,"production"!==process.env.NODE_ENV&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),Qn({reactionScheduler:Fo}),ko.finalizeAllImmediately;const Ho=(e,t=0)=>{const n=t=>(o.value=e?.(t)??t,o.value),r=()=>n(++o.counter),o=r;return o.increment=r,o.decrement=()=>n(--o.counter),o.reset=()=>{o.counter=t,o.value=e?.(t)??t},o.reset(),o},qo="null",Ko="undefined",Wo="nan",$o="[object Object]",Xo="[object Array]",Yo="[object String]",Jo="[object Number]",Zo="[object Boolean]",Qo="[object Function]",ei="[object AsyncFunction]",ti="[object RegExp]",ni="[object Symbol]",ri="infinite",oi="element";const ii=(...e)=>t=>e.includes(function(e){if(void 0===e)return Ko;if(null===e)return qo;if(e&&(1===e.nodeType||9===e.nodeType))return oi;const t=Object.prototype.toString.call(e);if(t===Jo){if(Number.isNaN(e))return Wo;if(!Number.isFinite(e))return ri}return t}(t)),ai=ii(qo),si=ii(Ko),li=ii($o),ci=ii(Xo),ui=ii(Yo),di=ii(Jo),pi=ii(Zo),fi=ii(Qo,ei),hi=ii(ti),mi=ii(oi),vi=ii(Wo),bi=ii(ri),gi=ii(ni),yi=Object.freeze(Object.defineProperty({__proto__:null,isArray:ci,isBoolean:pi,isDefined:e=>null!=e,isElement:mi,isFunction:fi,isInfinite:bi,isNaN:vi,isNull:ai,isNumber:di,isObject:li,isRegExp:hi,isString:ui,isSymbol:gi,isUndefined:si},Symbol.toStringTag,{value:"Module"})),_i=e=>{const t=e?.comparer??He.default,n=e=>{const r=e??null;t(n.current,r)||Gn(()=>{n.current=r,n.listeners.forEach(e=>{e(n.current)})})};return n.listeners=new Set(e?.onChange?[e.onChange]:[]),(e?.onSet||e?.onUnset)&&n.listeners.add(t=>{t?e.onSet?.(t):e.onUnset?.()}),n.current=e?.initial??null,n.meta=e?.meta??{},yr(n,{current:Tt.ref,meta:Tt}),n},wi=(e,t)=>{if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;if(e.constructor!==t.constructor)return!1;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;if(n){const n=e,r=t;if(n.length!==r.length)return!1;for(const[e,t]of n.entries())if(t!==r[e])return!1;return!0}if(e instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp)return e.toString()===t.toString();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;const i=t;for(const a of r)if(!Object.hasOwn(i,a)||e[a]!==i[a])return!1;return!0},{entries:Ei,setPrototypeOf:Oi,isFrozen:xi,getPrototypeOf:Ni,getOwnPropertyDescriptor:ki}=Object;let{freeze:Si,seal:Ai,create:Ci}=Object,{apply:Ti,construct:Vi}="undefined"!=typeof Reflect&&Reflect;Si||(Si=function(e){return e}),Ai||(Ai=function(e){return e}),Ti||(Ti=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),Vi||(Vi=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Mi=Wi(Array.prototype.forEach),ji=Wi(Array.prototype.lastIndexOf),Di=Wi(Array.prototype.pop),Pi=Wi(Array.prototype.push),Ri=Wi(Array.prototype.splice),Ii=Wi(String.prototype.toLowerCase),Li=Wi(String.prototype.toString),Bi=Wi(String.prototype.match),Ui=Wi(String.prototype.replace),zi=Wi(String.prototype.indexOf),Fi=Wi(String.prototype.trim),Gi=Wi(Object.prototype.hasOwnProperty),Hi=Wi(RegExp.prototype.test),qi=(Ki=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vi(Ki,t)});var Ki;function Wi(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ti(e,t,r)}}function $i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ii;Oi&&Oi(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(xi(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Xi(e){for(let t=0;t<e.length;t++){Gi(e,t)||(e[t]=null)}return e}function Yi(e){const t=Ci(null);for(const[n,r]of Ei(e)){Gi(e,n)&&(Array.isArray(r)?t[n]=Xi(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Yi(r):t[n]=r)}return t}function Ji(e,t){for(;null!==e;){const n=ki(e,t);if(n){if(n.get)return Wi(n.get);if("function"==typeof n.value)return Wi(n.value)}e=Ni(e)}return function(){return null}}const Zi=Si(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Qi=Si(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ea=Si(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ta=Si(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),na=Si(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ra=Si(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),oa=Si(["#text"]),ia=Si(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),aa=Si(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),sa=Si(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),la=Si(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ca=Ai(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ua=Ai(/<%[\w\W]*|[\w\W]*%>/gm),da=Ai(/\$\{[\w\W]*/gm),pa=Ai(/^data-[\-\w.\u00B7-\uFFFF]+$/),fa=Ai(/^aria-[\-\w]+$/),ha=Ai(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ma=Ai(/^(?:\w+script|data):/i),va=Ai(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ba=Ai(/^html$/i),ga=Ai(/^[a-z][.\w]*(-[.\w]+)+$/i);var ya=Object.freeze({__proto__:null,ARIA_ATTR:fa,ATTR_WHITESPACE:va,CUSTOM_ELEMENT:ga,DATA_ATTR:pa,DOCTYPE_NAME:ba,ERB_EXPR:ua,IS_ALLOWED_URI:ha,IS_SCRIPT_OR_DATA:ma,MUSTACHE_EXPR:ca,TMPLIT_EXPR:da});const _a=1,wa=3,Ea=7,Oa=8,xa=9;!function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.3.0",n.removed=[],!t||!t.document||t.document.nodeType!==xa||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,m=c.prototype,v=Ji(m,"cloneNode"),b=Ji(m,"remove"),g=Ji(m,"nextSibling"),y=Ji(m,"childNodes"),_=Ji(m,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,E="";const{implementation:O,createNodeIterator:x,createDocumentFragment:N,getElementsByTagName:k}=r,{importNode:S}=o;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Ei&&"function"==typeof _&&O&&void 0!==O.createHTMLDocument;const{MUSTACHE_EXPR:C,ERB_EXPR:T,TMPLIT_EXPR:V,DATA_ATTR:M,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:R}=ya;let{IS_ALLOWED_URI:I}=ya,L=null;const B=$i({},[...Zi,...Qi,...ea,...na,...oa]);let U=null;const z=$i({},[...ia,...aa,...sa,...la]);let F=Object.seal(Ci(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,H=null;const q=Object.seal(Ci(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let K=!0,W=!0,$=!1,X=!0,Y=!1,J=!0,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!1,oe=!0,ie=!1,ae=!0,se=!1,le={},ce=null;const ue=$i({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const pe=$i({},["audio","video","img","source","image","track"]);let fe=null;const he=$i({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ve="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ge=be,ye=!1,_e=null;const we=$i({},[me,ve,be],Li);let Ee=$i({},["mi","mo","mn","ms","mtext"]),Oe=$i({},["annotation-xml"]);const xe=$i({},["title","style","font","a","script"]);let Ne=null;const ke=["application/xhtml+xml","text/html"];let Se=null,Ae=null;const Ce=r.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=Yi(e),Ne=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Se="application/xhtml+xml"===Ne?Li:Ii,L=Gi(e,"ALLOWED_TAGS")?$i({},e.ALLOWED_TAGS,Se):B,U=Gi(e,"ALLOWED_ATTR")?$i({},e.ALLOWED_ATTR,Se):z,_e=Gi(e,"ALLOWED_NAMESPACES")?$i({},e.ALLOWED_NAMESPACES,Li):we,fe=Gi(e,"ADD_URI_SAFE_ATTR")?$i(Yi(he),e.ADD_URI_SAFE_ATTR,Se):he,de=Gi(e,"ADD_DATA_URI_TAGS")?$i(Yi(pe),e.ADD_DATA_URI_TAGS,Se):pe,ce=Gi(e,"FORBID_CONTENTS")?$i({},e.FORBID_CONTENTS,Se):ue,G=Gi(e,"FORBID_TAGS")?$i({},e.FORBID_TAGS,Se):Yi({}),H=Gi(e,"FORBID_ATTR")?$i({},e.FORBID_ATTR,Se):Yi({}),le=!!Gi(e,"USE_PROFILES")&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,I=e.ALLOWED_URI_REGEXP||ha,ge=e.NAMESPACE||be,Ee=e.MATHML_TEXT_INTEGRATION_POINTS||Ee,Oe=e.HTML_INTEGRATION_POINTS||Oe,F=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(F.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(W=!1),ne&&(te=!0),le&&(L=$i({},oa),U=[],!0===le.html&&($i(L,Zi),$i(U,ia)),!0===le.svg&&($i(L,Qi),$i(U,aa),$i(U,la)),!0===le.svgFilters&&($i(L,ea),$i(U,aa),$i(U,la)),!0===le.mathMl&&($i(L,na),$i(U,sa),$i(U,la))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?q.tagCheck=e.ADD_TAGS:(L===B&&(L=Yi(L)),$i(L,e.ADD_TAGS,Se))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?q.attributeCheck=e.ADD_ATTR:(U===z&&(U=Yi(U)),$i(U,e.ADD_ATTR,Se))),e.ADD_URI_SAFE_ATTR&&$i(fe,e.ADD_URI_SAFE_ATTR,Se),e.FORBID_CONTENTS&&(ce===ue&&(ce=Yi(ce)),$i(ce,e.FORBID_CONTENTS,Se)),ae&&(L["#text"]=!0),Z&&$i(L,["html","head","body"]),L.table&&($i(L,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw qi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw qi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,E=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,i)),null!==w&&"string"==typeof E&&(E=w.createHTML(""));Si&&Si(e),Ae=e}},Me=$i({},[...Qi,...ea,...ta]),je=$i({},[...na,...ra]),De=function(e){Pi(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){b(e)}},Pe=function(e,t){try{Pi(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Pi(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{De(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Re=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Bi(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ne&&ge===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=w?w.createHTML(e):e;if(ge===be)try{t=(new f).parseFromString(o,Ne)}catch(a){}if(!t||!t.documentElement){t=O.createDocument(ge,"template",null);try{t.documentElement.innerHTML=ye?E:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ge===be?k.call(t,Z?"html":"body")[0]:Z?t.documentElement:i},Ie=function(e){return x.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l};function Ue(e,t,r){Mi(e,e=>{e.call(n,t,r,Ae)})}const ze=function(e){let t=null;if(Ue(A.beforeSanitizeElements,e,null),Le(e))return De(e),!0;const r=Se(e.nodeName);if(Ue(A.uponSanitizeElement,e,{tagName:r,allowedTags:L}),J&&e.hasChildNodes()&&!Be(e.firstElementChild)&&Hi(/<[/\w!]/g,e.innerHTML)&&Hi(/<[/\w!]/g,e.textContent))return De(e),!0;if(e.nodeType===Ea)return De(e),!0;if(J&&e.nodeType===Oa&&Hi(/<[/\w]/g,e.data))return De(e),!0;if(!(q.tagCheck instanceof Function&&q.tagCheck(r))&&(!L[r]||G[r])){if(!G[r]&&Ge(r)){if(F.tagNameCheck instanceof RegExp&&Hi(F.tagNameCheck,r))return!1;if(F.tagNameCheck instanceof Function&&F.tagNameCheck(r))return!1}if(ae&&!ce[r]){const t=_(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=v(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,g(e))}}}return De(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:ge,tagName:"template"});const n=Ii(e.tagName),r=Ii(t.tagName);return!!_e[e.namespaceURI]&&(e.namespaceURI===ve?t.namespaceURI===be?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Ee[r]):Boolean(Me[n]):e.namespaceURI===me?t.namespaceURI===be?"math"===n:t.namespaceURI===ve?"math"===n&&Oe[r]:Boolean(je[n]):e.namespaceURI===be?!(t.namespaceURI===ve&&!Oe[r])&&!(t.namespaceURI===me&&!Ee[r])&&!je[n]&&(xe[n]||!Me[n]):!("application/xhtml+xml"!==Ne||!_e[e.namespaceURI]))}(e)?(De(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Hi(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===wa&&(t=e.textContent,Mi([C,T,V],e=>{t=Ui(t,e," ")}),e.textContent!==t&&(Pi(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ue(A.afterSanitizeElements,e,null),!1):(De(e),!0)},Fe=function(e,t,n){if(oe&&("id"===t||"name"===t)&&(n in r||n in Ce))return!1;if(W&&!H[t]&&Hi(M,t));else if(K&&Hi(j,t));else if(q.attributeCheck instanceof Function&&q.attributeCheck(t,e));else if(!U[t]||H[t]){if(!(Ge(e)&&(F.tagNameCheck instanceof RegExp&&Hi(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&Hi(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t,e))||"is"===t&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&Hi(F.tagNameCheck,n)||F.tagNameCheck instanceof Function&&F.tagNameCheck(n))))return!1}else if(fe[t]);else if(Hi(I,Ui(n,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==zi(n,"data:")||!de[e]){if($&&!Hi(D,Ui(n,P,"")));else if(n)return!1}else;return!0},Ge=function(e){return"annotation-xml"!==e&&Bi(e,R)},He=function(e){Ue(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=Se(s),d=c;let p="value"===s?d:Fi(d);if(r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,Ue(A.uponSanitizeAttribute,e,r),p=r.attrValue,!ie||"id"!==u&&"name"!==u||(Pe(s,e),p="user-content-"+p),J&&Hi(/((--!?|])>)|<\/(style|title|textarea)/i,p)){Pe(s,e);continue}if("attributename"===u&&Bi(p,"href")){Pe(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Pe(s,e);continue}if(!X&&Hi(/\/>/i,p)){Pe(s,e);continue}Y&&Mi([C,T,V],e=>{p=Ui(p,e," ")});const f=Se(e.nodeName);if(Fe(f,u,p)){if(w&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(l);else switch(h.getAttributeType(f,u)){case"TrustedHTML":p=w.createHTML(p);break;case"TrustedScriptURL":p=w.createScriptURL(p)}if(p!==d)try{l?e.setAttributeNS(l,s,p):e.setAttribute(s,p),Le(e)?De(e):Di(n.removed)}catch(i){Pe(s,e)}}else Pe(s,e)}Ue(A.afterSanitizeAttributes,e,null)},qe=function e(t){let n=null;const r=Ie(t);for(Ue(A.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ue(A.uponSanitizeShadowNode,n,null),ze(n),He(n),n.content instanceof a&&e(n.content);Ue(A.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw qi("toString is not a function");if("string"!=typeof(e=e.toString()))throw qi("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Ve(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Se(e.nodeName);if(!L[t]||G[t])throw qi("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Re("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===_a&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!te&&!Y&&!Z&&-1===e.indexOf("<"))return w&&re?w.createHTML(e):e;if(r=Re(e),!r)return te?null:re?E:""}r&&ee&&De(r.firstChild);const u=Ie(se?e:r);for(;s=u.nextNode();)ze(s),He(s),s.content instanceof a&&qe(s.content);if(se)return e;if(te){if(ne)for(c=N.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(U.shadowroot||U.shadowrootmode)&&(c=S.call(o,c,!0)),c}let d=Z?r.outerHTML:r.innerHTML;return Z&&L["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Hi(ba,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Y&&Mi([C,T,V],e=>{d=Ui(d,e," ")}),w&&re?w.createHTML(d):d},n.setConfig=function(){Ve(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Ae=null,Q=!1},n.isValidAttribute=function(e,t,n){Ae||Ve({});const r=Se(e),o=Se(t);return Fe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&Pi(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=ji(A[e],t);return-1===n?void 0:Ri(A[e],n,1)[0]}return Di(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Na=(e,t)=>{if(document.startViewTransition&&!t?.disabled)return document.startViewTransition(e);e()},ka=_.createContext(null),Sa=_.createContext(null),Aa=ka.Provider,Ca=Ho(e=>e.toString(16)),Ta=(...e)=>{const t={...Va,startViewTransitions:structuredClone(Va.startViewTransitions)};return e.forEach(e=>{if(!e)return;const{startViewTransitions:n,comparePayload:r,observable:o,generateId:i,...a}=e;if(i&&(t.generateId=i),n){const e="boolean"==typeof n?{mount:n,payloadChange:n,unmount:n}:n;Object.assign(t.startViewTransitions,e)}o?.viewModels&&Object.assign(t.observable.viewModels,o.viewModels||{}),o?.viewModelStores&&Object.assign(t.observable.viewModelStores,o.viewModelStores||{}),null!=r&&(t.comparePayload=r),Object.assign(t,a)}),t},Va=(e=>{const t=(()=>{{let e;return{get:()=>e,set:t=>(e=t,t)}}})();return t.get()||t.set(e)})({comparePayload:!1,payloadComputed:"struct",payloadObservable:"ref",wrapViewsInObserver:!0,startViewTransitions:{mount:!1,payloadChange:!1,unmount:!1},observable:{viewModels:{useDecorators:!0},viewModelStores:{useDecorators:!0}},generateId:e=>{if(!e.generateId){const t=Ca(),n=Ho(e=>e.toString().padStart(5,"0"));e.generateId=()=>`${t}_${n().toString().padStart(5,"0")}`}if("production"===process.env.NODE_ENV)return e.generateId();{const t=e.VM?.name??"";return t?`${t}_${e.generateId()}`:e.generateId()}},factory:e=>new(0,e.VM)({...e,vmConfig:Ta(e.vmConfig)})}),Ma=(e,t,n)=>{if(n.custom)return n.custom(e,t);n.disableWrapping||((e,t,n)=>{n?(t.forEach(([t,n])=>{n(e,t)}),yr(e)):yr(e,Object.fromEntries(t))})(e,t,n.useDecorators)},ja="undefined"==typeof window?_.useEffect:_.useLayoutEffect;let Da=null;Da="production"===process.env.NODE_ENV?e=>{const t=_.useRef(null);return t.current||(t.current=e()),t.current}:e=>_.useMemo(e,[]);const Pa=Da;function Ra(e,t,n){return e.prototype.payloadChanged?Ia(e,t,n):La(e,t)}const Ia=(e,t,n)=>{const r=_.useContext(Sa),o=_.useContext(ka),i=n?.ctx??{},a=Pa(()=>{const a=r?.generateViewModelId({...n,ctx:i,VM:e,parentViewModelId:o?.id??null})??n?.id??Va.generateId(i),s=r?r.get(a):null;if(s)return s;{const s={...n,vmConfig:n?.vmConfig,id:a,parentViewModelId:o?.id,payload:t??{},VM:e,viewModels:r,parentViewModel:o,ctx:i};r?.processCreateConfig(s);const l=n?.factory?.(s)??r?.createViewModel(s)??Va.factory(s);return l.willMount(),r?.markToBeAttached(l),l}});return ja(()=>r?(r.attach(a),()=>{r.detach(a.id)}):(a.mount(),()=>{a.willUnmount(),a.unmount()}),[a]),a.setPayload(t??{}),a},La=(e,t)=>{const n=_.useContext(Sa),r=_.useContext(ka),o=Pa(()=>{const t=new e;return t.parentViewModel=r,n?.markToBeAttached(t),t});return"setPayload"in o&&_.useLayoutEffect(()=>{o.setPayload(t)},[t]),ja(()=>n?(n.attach(o),()=>{n.detach(o.id)}):(o.mount?.(),()=>{o.unmount?.()}),[o]),o},Ba=e=>{const t=_.useContext(Sa),n=_.useContext(ka),r=t?.get(e);let o;if("production"!==process.env.NODE_ENV&&(o=_.useRef()),null==e||!t){if("production"===process.env.NODE_ENV||t||console.warn("Warning #1: ViewModelStore not found.\n","Unable to get access to view model by id or class name without using ViewModelStore\n","Last active view model will be returned.\n","More info: https://js2me.github.io/mobx-view-model/warnings/1"),!n){if("production"!==process.env.NODE_ENV)throw new Error('Error #1: Active ViewModel not found.\nThis happened because "vmLookup" for hook "useViewModel" is not provided and hook trying to lookup active view model using ActiveViewModelContext which works only with using "withViewModel" HOC.\nPlease provide "vmLookup" (first argument for "useViewModel" hook) or use "withViewModel" HOC.\nMore info: https://js2me.github.io/mobx-view-model/errors/1');throw new Error("Error #1: https://js2me.github.io/mobx-view-model/errors/1")}return"production"!==process.env.NODE_ENV&&(o.current=n),n}if(!r){let t="";if(t="string"==typeof e?e:"name"in e?e.name:e.displayName,"production"!==process.env.NODE_ENV){if(o.current)return o.current;throw new Error(`Error #2: View model not found for ${t}.\nThis happened because your "vmLookup" provided for hook "useViewModel" is not found in "ViewModelStore".\nMore info: https://js2me.github.io/mobx-view-model/errors/2`)}throw new Error("Error #2: https://js2me.github.io/mobx-view-model/errors/2")}return"production"!==process.env.NODE_ENV&&(o.current=n),r};zo(({model:e,config:t,payload:n,children:r})=>{const o=Ra(e,n,t);return o.isMounted?"function"==typeof r?r(o):w.jsx(w.Fragment,{children:r}):null});const Ua=Sa.Provider;function za(e,t,n){if("function"==typeof t||t&&void 0!==t.$$typeof){const n={};return Ga(e,{...n,ctx:{VM:e,generateId:n.generateId,...n.ctx}},t)}{const n=t??{},r={...n,ctx:{VM:e,generateId:n.generateId,...n.ctx}};return t=>Ga(e,r,t)}}const Fa=Symbol.for("react.memo"),Ga=(e,t,n)=>{const r=t.vmConfig?.processViewComponent??Va.processViewComponent,o=t.vmConfig?.wrapViewsInObserver??Va.wrapViewsInObserver;let i=r?.(n,e,t)??n;o&&i&&i.$$typeof!==Fa&&(i=zo(i));const a=t.reactHook,s=t.getPayload,l=t.fallback??Va.fallbackComponent;let c=(n,r)=>{const o=_.useContext(Sa);a?.(n,t.ctx,o,r);const{payload:c,...u}=n,d=s?.(n)??c;t.forwardRef&&!("forwardedRef"in u)&&(u.forwardedRef=r);const p=Ra(e,d,{...t,props:u});return(!o||o.isAbleToRenderView(p.id))&&!1!==p.isMounted?w.jsx(Aa,{value:p,children:i&&w.jsx(i,{...u,model:p})}):l&&w.jsx(l,{...n,payload:d})};return t.forwardRef&&(c=_.forwardRef(c)),c=zo(c),"production"!==process.env.NODE_ENV&&(c.displayName=`ConnectedViewModel(${e.name}->Component)`),t.component=c,c},Ha=[["_isMounted",Tt.ref],["_isUnmounting",Tt.ref],["isMounted",Dt],["isUnmounting",Dt],["parentViewModel",Dt],["mount",zn.bound],["didMount",zn],["unmount",zn.bound],["didUnmount",zn],["willUnmount",zn],["setPayload",zn]];class qa{constructor(e){this.vmParams=e,this.id=e.id,this.vmConfig=Ta(e.vmConfig),this._payload=e.payload,this.props=e.props??{},this.abortController=new AbortController,this.unmountSignal=this.abortController.signal,"strict"===this.vmConfig.comparePayload?this.isPayloadEqual=He.structural:"shallow"===this.vmConfig.comparePayload?this.isPayloadEqual=wi:"function"==typeof this.vmConfig.comparePayload&&(this.isPayloadEqual=this.vmConfig.comparePayload);const t=[...Ha];!1!==this.vmConfig.payloadObservable&&t.push(["_payload",Tt[this.vmConfig.payloadObservable??"ref"]]),this.vmConfig.payloadComputed&&("struct"===this.vmConfig.payloadComputed?t.push(["payload",Dt.struct]):t.push(["payload",Dt({equals:!0===this.vmConfig.payloadComputed?void 0:this.vmConfig.payloadComputed})])),Ma(this,t,this.vmConfig.observable.viewModels)}abortController;unmountSignal;id;_isMounted=!1;_isUnmounting=!1;_payload;vmConfig;isPayloadEqual;props;get payload(){return this._payload}get viewModels(){return"production"===process.env.NODE_ENV||this.vmParams.viewModels||console.error("Error #3: No access to ViewModelStore.\nThis happened because [viewModels] param is not provided during to creating instance ViewModelBase.\nMore info: https://js2me.github.io/mobx-view-model/errors/3"),this.vmParams.viewModels}get isMounted(){return this._isMounted}get isUnmounting(){return this._isUnmounting}willUnmount(){this._isUnmounting=!0}willMount(){}mount(){this.vmConfig.onMount?.(this),Na(()=>{Gn(()=>{this._isMounted=!0})},{disabled:!this.vmConfig.startViewTransitions.mount}),this.didMount()}didMount(){}unmount(){this.vmConfig.onUnmount?.(this),Na(()=>{Gn(()=>{this._isMounted=!1})},{disabled:!this.vmConfig.startViewTransitions.unmount}),this.didUnmount()}didUnmount(){this.abortController.abort(),Gn(()=>{this._isUnmounting=!1})}payloadChanged(e,t){}get parentViewModel(){return this.getParentViewModel(this.vmParams.parentViewModelId)}setPayload(e){this.isPayloadEqual?.(this._payload,e)||Na(()=>{Gn(()=>{this.payloadChanged(e,this._payload),this._payload=e})},{disabled:!this.vmConfig.startViewTransitions.payloadChange})}getParentViewModel(e){return this.vmParams.parentViewModel??this.viewModels?.get(e)}}class Ka{constructor(e){this.config=e,this.viewModels=Tt.map([],{deep:!1}),this.linkedComponentVMClasses=Tt.map([],{deep:!1}),this.viewModelIdsByClasses=Tt.map([],{deep:!0}),this.instanceAttachedCount=Tt.map([],{deep:!1}),this.mountingViews=Tt.set([],{deep:!1}),this.unmountingViews=Tt.set([],{deep:!1}),this.vmConfig=Ta(e?.vmConfig),this.viewModelsTempHeap=new Map,Ma(this,[["mountedViewsCount",Dt],["mount",zn],["unmount",zn],["attachVMConstructor",zn],["attach",zn],["detach",zn],["linkComponents",zn],["unlinkComponents",zn]],this.vmConfig.observable.viewModelStores)}viewModels;linkedComponentVMClasses;viewModelIdsByClasses;instanceAttachedCount;viewModelsTempHeap;mountingViews;unmountingViews;vmConfig;get mountedViewsCount(){return[...this.instanceAttachedCount.values()].reduce((e,t)=>e+t,0)}processCreateConfig(e){this.linkComponents(e.VM,e.component,e.ctx?.externalComponent)}createViewModel(e){const t=e.VM,n=Ta(this.vmConfig,e.vmConfig),r={...e,vmConfig:n};return n.factory?n.factory(r):new t(r)}generateViewModelId(e){return e.id?e.id:this.vmConfig.generateId(e.ctx)}linkComponents(e,...t){t.forEach(t=>{t&&!this.linkedComponentVMClasses.has(t)&&this.linkedComponentVMClasses.set(t,e)})}unlinkComponents(...e){e.forEach(e=>{e&&this.linkedComponentVMClasses.has(e)&&this.linkedComponentVMClasses.delete(e)})}getIds(e){if(!e)return[];if("string"==typeof e)return[e];const t=this.linkedComponentVMClasses.get(e)||e;return this.viewModelIdsByClasses.get(t)||[]}getId(e){const t=this.getIds(e);return 0===t.length?null:("production"!==process.env.NODE_ENV&&t.length>1&&console.warn("Found more than 1 view model with the same identifier. Last instance will been returned"),t.at(-1))}has(e){const t=this.getId(e);return!!t&&this.viewModels.has(t)}get(e){const t=this.getId(e);if(!t)return null;return this.viewModels.get(t)??this.viewModelsTempHeap.get(t)??null}getOrCreateVmId(e){return e.id||(e.id=this.vmConfig.generateId({VM:e.constructor})),e.id}getAll(e){return this.getIds(e).map(e=>this.viewModels.get(e))}async mount(e){const t=this.getOrCreateVmId(e);this.mountingViews.add(t),await(e.mount?.()),Gn(()=>{this.mountingViews.delete(t)})}async unmount(e){const t=this.getOrCreateVmId(e);this.unmountingViews.add(t),await(e.unmount?.()),Gn(()=>{this.unmountingViews.delete(t)})}attachVMConstructor(e){const t=this.getOrCreateVmId(e),n=e.constructor;if(this.viewModelIdsByClasses.has(n)){const e=this.viewModelIdsByClasses.get(n);e.includes(t)||e.push(t)}else this.viewModelIdsByClasses.set(n,[t])}dettachVMConstructor(e){const t=e.constructor;if(this.viewModelIdsByClasses.has(t)){const n=this.viewModelIdsByClasses.get(t).filter(t=>t!==e.id);n.length>0?this.viewModelIdsByClasses.set(t,n):this.viewModelIdsByClasses.delete(t)}}markToBeAttached(e){const t=this.getOrCreateVmId(e);this.viewModelsTempHeap.set(t,e),"attachViewModelStore"in e&&e.attachViewModelStore(this),this.attachVMConstructor(e)}async attach(e){const t=this.getOrCreateVmId(e),n=this.instanceAttachedCount.get(t)??0;this.instanceAttachedCount.set(t,n+1),this.viewModels.has(t)||(this.viewModels.set(t,e),this.attachVMConstructor(e),await this.mount(e),this.viewModelsTempHeap.delete(t))}async detach(e){const t=this.instanceAttachedCount.get(e)??0;this.viewModelsTempHeap.delete(e);const n=this.viewModels.get(e);if(!n)return;const r=t-1;this.instanceAttachedCount.set(e,r),r<=0&&("willUnmount"in n&&n.willUnmount(),this.instanceAttachedCount.delete(e),this.viewModels.delete(e),this.dettachVMConstructor(n),await this.unmount(n))}isAbleToRenderView(e){const t=this.mountingViews.has(e),n=this.viewModels.has(e);return!!e&&n&&!t}clean(){this.viewModels.clear(),this.linkedComponentVMClasses.clear(),this.viewModelIdsByClasses.clear(),this.instanceAttachedCount.clear(),this.mountingViews.clear(),this.unmountingViews.clear(),this.viewModelsTempHeap.clear()}}class Wa extends AbortController{constructor(...e){super(),this.link(...e)}link(...e){e.forEach(e=>{e?.addEventListener("abort",()=>{this.abort(e.reason)})})}}const $a=(e,...t)=>"function"==typeof e?e(...t):e;class Xa{constructor(e){if(this.config=e,this.abortController=new Wa(e.abortSignal),this.activateStrategy=this.config.activateStrategy??{type:"immidiately"},this.isActivated=!("immidiately"!==this.activateStrategy.type),Tt.ref(this,"isActivated"),Dt.struct(this,"actions"),zn.bound(this,"handleKeyboardClick"),yr(this),"element-focus"===this.activateStrategy.type){const e=this.activateStrategy.ref;let t=new Wa;Wn(()=>e.current,e=>{e?(globalThis.document?.activeElement===e&&this.activate(),e.addEventListener("focus",this.activate,{signal:t.signal}),e.addEventListener("blur",this.deactivate,{signal:t.signal})):(t.abort(),t=new Wa(this.abortController.signal))},{fireImmediately:!0,signal:this.abortController.signal})}globalThis.addEventListener("keydown",this.handleKeyboardClick,{signal:this.abortController.signal}),"keyclick"===e.activateStrategy?.type&&(globalThis.addEventListener("click",this.activate,{signal:this.abortController.signal}),globalThis.addEventListener("mousemove",this.activate,{signal:this.abortController.signal}))}abortController;activateStrategy;isActivated;get actions(){return $a(this.config.actions)??[]}activate=()=>{this.isActivated||(this.isActivated=!0,this.config.onActivate?.())};deactivate=()=>{this.isActivated&&(this.isActivated=!1,this.config.onDeactivate?.())};handleKeyboardClick(e){if(this.config.onKeyClick?.(e),"keyclick"===this.activateStrategy.type&&this.activate(),this.isActivated)for(const t of this.actions){if(!$a(t.disabled))for(const n of t.shortcuts){if(n.split("+").every(t=>this.checkShortcut(e,t)))return void Gn(()=>{t.action(e)})}}}checkShortcut(e,t){return!("Shift"!==t||!e.shiftKey)||(!("Ctrl"!==t||!e.ctrlKey)||(!("Alt"!==t||!e.altKey)||t===e.key))}destroy(){this.abortController.abort()}}class Ya extends Xa{constructor(e){super({abortSignal:e.unmountSignal,actions:[{shortcuts:["Ctrl+Shift+F12"],action:()=>{e.handleToggleOpen()}},{shortcuts:["Ctrl+ArrowLeft"],action:()=>{e.isAllVmsExpandedByDefault=!1}},{shortcuts:["Ctrl+ArrowRight"],action:()=>{e.isAllVmsExpandedByDefault=!0}},{shortcuts:["Ctrl+ArrowDown"],action:()=>{requestAnimationFrame(()=>{e.containerRef.current.scrollTop+=200})}},{shortcuts:["Ctrl+ArrowUp"],action:()=>{requestAnimationFrame(()=>{e.containerRef.current.scrollTop-=200})}}]})}}class Ja extends qa{}const Za=(e,t)=>{const n=t.split(".");let r=e;for(const o of n){if(!(o in r))return!1;r=r[o]}return!0},Qa=()=>{const e=_i({meta:{focused:!1},onSet:t=>{document.activeElement===t&&Gn(()=>{e.meta.focused=!0}),t.addEventListener("focus",zn(()=>{e.meta.focused=!0})),t.addEventListener("blur",zn(()=>{e.meta.focused=!1}))}});return e},es=new Set(["constructor"]),ts=new Set([globalThis.Object.prototype,globalThis.Function.prototype,globalThis.Array.prototype,globalThis.String.prototype,globalThis.Number.prototype,globalThis.Boolean.prototype,globalThis.Symbol.prototype,globalThis.Date.prototype,globalThis.RegExp.prototype,globalThis.Error.prototype,globalThis.Map.prototype,globalThis.Set.prototype,globalThis.WeakMap.prototype,globalThis.WeakSet.prototype,globalThis.ArrayBuffer.prototype,globalThis.DataView.prototype,globalThis.Float32Array.prototype,globalThis.Float64Array.prototype,globalThis.Int8Array.prototype,globalThis.Int16Array.prototype,globalThis.Int32Array.prototype,globalThis.Uint8Array.prototype,globalThis.Uint8ClampedArray.prototype,globalThis.Uint16Array.prototype,globalThis.Uint32Array.prototype,globalThis.BigInt64Array.prototype,globalThis.BigUint64Array.prototype,globalThis.Promise.prototype,globalThis.Iterator.prototype]);function ns(e){const t=new Set(Object.keys(e));let n=Object.getPrototypeOf(e);for(;n&&n!==globalThis.Object.prototype;){const e=Object.getOwnPropertyDescriptors(n);for(const n in e)es.has(n)||t.add(n);const r=Object.getPrototypeOf(n);if(ts.has(r))break;n=r}return Array.from(t)}var rs,os={};var is=function(){if(rs)return os;rs=1;var e=E;if("production"===process.env.NODE_ENV)os.createRoot=e.createRoot,os.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;os.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},os.hydrateRoot=function(n,r,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,o)}finally{t.usingClientEntryPoint=!1}}}return os}();function as(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=as(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const ss=e=>{const t=ds(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ls(n,t)||us(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},ls=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ls(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},cs=/^\[(.+)\]$/,us=e=>{if(cs.test(e)){const t=cs.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ds=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)ps(n[o],r,o,t);return r},ps=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:fs(t,e)).classGroupId=n)}if("function"==typeof e)return hs(e)?void ps(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{ps(o,fs(t,e),n,r)})})},fs=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},hs=e=>e.isThemeGetter,ms=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},vs=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let l=0;l<e.length;l++){let a=e[l];if(0===r&&0===o){if(":"===a){t.push(e.slice(i,l)),i=l+1;continue}if("/"===a){n=l;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const a=0===t.length?e:e.substring(i),s=bs(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},bs=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,gs=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},ys=/\s+/;function _s(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=ws(e))&&(r&&(r+=" "),r+=t);return r}const ws=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ws(e[r]))&&(n&&(n+=" "),n+=t);return n};function Es(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:ms(e.cacheSize),parseClassName:vs(e),sortModifiers:gs(e),...ss(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(ys);let l="";for(let c=s.length-1;c>=0;c-=1){const e=s[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(e);if(t){l=e+(l.length>0?" "+l:l);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){l=e+(l.length>0?" "+l:l);continue}if(m=r(p),!m){l=e+(l.length>0?" "+l:l);continue}h=!1}const v=i(u).join(":"),b=d?v+"!":v,g=b+m;if(a.includes(g))continue;a.push(g);const y=o(m,h);for(let n=0;n<y.length;++n){const e=y[n];a.push(b+e)}l=e+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(_s.apply(null,arguments))}}const Os=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},xs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ns=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ks=/^\d+\/\d+$/,Ss=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,As=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Cs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ts=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ms=e=>ks.test(e),js=e=>!!e&&!Number.isNaN(Number(e)),Ds=e=>!!e&&Number.isInteger(Number(e)),Ps=e=>e.endsWith("%")&&js(e.slice(0,-1)),Rs=e=>Ss.test(e),Is=()=>!0,Ls=e=>As.test(e)&&!Cs.test(e),Bs=()=>!1,Us=e=>Ts.test(e),zs=e=>Vs.test(e),Fs=e=>!Hs(e)&&!Ys(e),Gs=e=>rl(e,sl,Bs),Hs=e=>xs.test(e),qs=e=>rl(e,ll,Ls),Ks=e=>rl(e,cl,js),Ws=e=>rl(e,il,Bs),$s=e=>rl(e,al,zs),Xs=e=>rl(e,dl,Us),Ys=e=>Ns.test(e),Js=e=>ol(e,ll),Zs=e=>ol(e,ul),Qs=e=>ol(e,il),el=e=>ol(e,sl),tl=e=>ol(e,al),nl=e=>ol(e,dl,!0),rl=(e,t,n)=>{const r=xs.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},ol=(e,t,n=!1)=>{const r=Ns.exec(e);return!!r&&(r[1]?t(r[1]):n)},il=e=>"position"===e||"percentage"===e,al=e=>"image"===e||"url"===e,sl=e=>"length"===e||"size"===e||"bg-size"===e,ll=e=>"length"===e,cl=e=>"number"===e,ul=e=>"family-name"===e,dl=e=>"shadow"===e,pl=Es(()=>{const e=Os("color"),t=Os("font"),n=Os("text"),r=Os("font-weight"),o=Os("tracking"),i=Os("leading"),a=Os("breakpoint"),s=Os("container"),l=Os("spacing"),c=Os("radius"),u=Os("shadow"),d=Os("inset-shadow"),p=Os("text-shadow"),f=Os("drop-shadow"),h=Os("blur"),m=Os("perspective"),v=Os("aspect"),b=Os("ease"),g=Os("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ys,Hs],_=()=>[Ys,Hs,l],w=()=>[Ms,"full","auto",..._()],E=()=>[Ds,"none","subgrid",Ys,Hs],O=()=>["auto",{span:["full",Ds,Ys,Hs]},Ds,Ys,Hs],x=()=>[Ds,"auto",Ys,Hs],N=()=>["auto","min","max","fr",Ys,Hs],k=()=>["auto",..._()],S=()=>[Ms,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],A=()=>[e,Ys,Hs],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Qs,Ws,{position:[Ys,Hs]}],T=()=>["auto","cover","contain",el,Gs,{size:[Ys,Hs]}],V=()=>[Ps,Js,qs],M=()=>["","none","full",c,Ys,Hs],j=()=>["",js,Js,qs],D=()=>[js,Ps,Qs,Ws],P=()=>["","none",h,Ys,Hs],R=()=>["none",js,Ys,Hs],I=()=>["none",js,Ys,Hs],L=()=>[js,Ys,Hs],B=()=>[Ms,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Rs],breakpoint:[Rs],color:[Is],container:[Rs],"drop-shadow":[Rs],ease:["in","out","in-out"],font:[Fs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Rs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Rs],shadow:[Rs],spacing:["px",js],text:[Rs],"text-shadow":[Rs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ms,Hs,Ys,v]}],container:["container"],columns:[{columns:[js,Hs,Ys,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[Ds,"auto",Ys,Hs]}],basis:[{basis:[Ms,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[js,Ms,"auto","initial","none",Hs]}],grow:[{grow:["",js,Ys,Hs]}],shrink:[{shrink:["",js,Ys,Hs]}],order:[{order:[Ds,"first","last","none",Ys,Hs]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],w:[{w:[s,"screen",...S()]}],"min-w":[{"min-w":[s,"screen","none",...S()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",n,Js,qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ys,Ks]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ps,Hs]}],"font-family":[{font:[Zs,Hs,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Ys,Hs]}],"line-clamp":[{"line-clamp":[js,"none",Ys,Ks]}],leading:[{leading:[i,..._()]}],"list-image":[{"list-image":["none",Ys,Hs]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ys,Hs]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[js,"from-font","auto",Ys,qs]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[js,"auto",Ys,Hs]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ys,Hs]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ys,Hs]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ds,Ys,Hs],radial:["",Ys,Hs],conic:[Ds,Ys,Hs]},tl,$s]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[js,Ys,Hs]}],"outline-w":[{outline:["",js,Js,qs]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,nl,Xs]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,nl,Xs]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[js,qs]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,nl,Xs]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[js,Ys,Hs]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[js]}],"mask-image-linear-from-pos":[{"mask-linear-from":D()}],"mask-image-linear-to-pos":[{"mask-linear-to":D()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":D()}],"mask-image-t-to-pos":[{"mask-t-to":D()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":D()}],"mask-image-r-to-pos":[{"mask-r-to":D()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":D()}],"mask-image-b-to-pos":[{"mask-b-to":D()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":D()}],"mask-image-l-to-pos":[{"mask-l-to":D()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":D()}],"mask-image-x-to-pos":[{"mask-x-to":D()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":D()}],"mask-image-y-to-pos":[{"mask-y-to":D()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Ys,Hs]}],"mask-image-radial-from-pos":[{"mask-radial-from":D()}],"mask-image-radial-to-pos":[{"mask-radial-to":D()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[js]}],"mask-image-conic-from-pos":[{"mask-conic-from":D()}],"mask-image-conic-to-pos":[{"mask-conic-to":D()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ys,Hs]}],filter:[{filter:["","none",Ys,Hs]}],blur:[{blur:P()}],brightness:[{brightness:[js,Ys,Hs]}],contrast:[{contrast:[js,Ys,Hs]}],"drop-shadow":[{"drop-shadow":["","none",f,nl,Xs]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",js,Ys,Hs]}],"hue-rotate":[{"hue-rotate":[js,Ys,Hs]}],invert:[{invert:["",js,Ys,Hs]}],saturate:[{saturate:[js,Ys,Hs]}],sepia:[{sepia:["",js,Ys,Hs]}],"backdrop-filter":[{"backdrop-filter":["","none",Ys,Hs]}],"backdrop-blur":[{"backdrop-blur":P()}],"backdrop-brightness":[{"backdrop-brightness":[js,Ys,Hs]}],"backdrop-contrast":[{"backdrop-contrast":[js,Ys,Hs]}],"backdrop-grayscale":[{"backdrop-grayscale":["",js,Ys,Hs]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[js,Ys,Hs]}],"backdrop-invert":[{"backdrop-invert":["",js,Ys,Hs]}],"backdrop-opacity":[{"backdrop-opacity":[js,Ys,Hs]}],"backdrop-saturate":[{"backdrop-saturate":[js,Ys,Hs]}],"backdrop-sepia":[{"backdrop-sepia":["",js,Ys,Hs]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ys,Hs]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[js,"initial",Ys,Hs]}],ease:[{ease:["linear","initial",b,Ys,Hs]}],delay:[{delay:[js,Ys,Hs]}],animate:[{animate:["none",g,Ys,Hs]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Ys,Hs]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[Ys,Hs,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ys,Hs]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ys,Hs]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[js,Js,qs,Ks]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),fl=(...e)=>pl(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=as(e))&&(r&&(r+=" "),r+=t);return r}(...e)),hl={container:"container_ueeVi",block:"block_O8-1d",inline:"inline_gmkRL",blur:"blur_9rZ6A",vmButton:"vmButton_Xr1Q6",opened:"opened_gewqL",vmPopup:"vmPopup_Q4l4j",vmContent:"vmContent_VAE7p",vmContentTree:"vmContentTree_BB36O",vmTreeItem:"vmTreeItem_t-7jc",line:"line_Xgaua",vmContentFilters:"vmContentFilters_No1QW",propertyMeta:"propertyMeta_XxYHc",small:"small_Ipy6s",propertyValue:"propertyValue_s9qHJ","property-name":"property-name_2-sJi",propertyName:"property-name_2-sJi",expandButton:"expandButton_EObqt",expanded:"expanded_uFpb7",property:"property_eoWZv",instance:"instance_B-kEn",primitive:"primitive_5yfCy",boolean:"boolean_TwUVp",number:"number_AVdzm",object:"object_kn8wQ",undefined:"undefined_SMcns",bigint:"bigint_ZrO3O",symbol:"symbol_9GN4U",string:"string_m1Kkx",disabled:"disabled_IDojS"},ml=zo(()=>{const e=Ba(oc);return console.log("ddd",e),w.jsxs("button",{className:fl(hl.vmButton,{[hl.opened]:e.isOpened},e.payload.buttonClassName),"data-position":`${e.payload.position}`,ref:e.buttonRef,onClick:e.handleToggleOpen,children:[w.jsx("img",{src:e.logoUrl}),w.jsx("div",{}),w.jsx("span",{children:e.allVms.length})]})}),vl=null,{min:bl,max:gl,abs:yl,floor:_l}=Math,wl=(e,t,n)=>bl(n,gl(t,e)),El=e=>[...e].sort((e,t)=>e-t),Ol="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)},xl=()=>{let e;return[new Promise(t=>{e=t}),e]},Nl=e=>{let t;return()=>(e&&(t=e(),e=void 0),t)},kl=(e,t,n)=>{const r=n?"unshift":"push";for(let o=0;o<t;o++)e[r](-1);return e},Sl=(e,t)=>{const n=e.t[t];return-1===n?e.o:n},Al=(e,t,n)=>{const r=-1===e.t[t];return e.t[t]=n,e.i=bl(t,e.i),r},Cl=(e,t)=>{if(!e.l)return 0;if(e.i>=t)return e.u[t];e.i<0&&(e.u[0]=0,e.i=0);let n=e.i,r=e.u[n];for(;n<t;)r+=Sl(e,n),e.u[++n]=r;return e.i=t,r},Tl=(e,t,n=0,r=e.l-1)=>{for(;n<=r;){const o=_l((n+r)/2);if(Cl(e,o)<=t){if(Cl(e,o+1)>t)return o;n=o+1}else r=o-1}return wl(n,0,e.l-1)},Vl=(e,t,n)=>{const r=t-e.l;return e.i=n?-1:bl(t-1,e.i),e.l=t,r>0?(kl(e.u,r),kl(e.t,r,n),e.o*r):(e.u.splice(r),(n?e.t.splice(0,-r):e.t.splice(r)).reduce((t,n)=>t-(-1===n?e.o:n),0))},Ml="undefined"!=typeof window,jl=()=>document.documentElement,Dl=Nl(()=>!!Ml&&"rtl"===getComputedStyle(jl()).direction),Pl=Nl(()=>!!/iP(hone|od|ad)/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0),Rl=Nl(()=>"scrollBehavior"in jl().style),Il=setTimeout,Ll=(e,t)=>t&&Dl()?-e:e,Bl=(e,t)=>{let n,r,o=xl();const i=t?"scrollLeft":"scrollTop",a=t?"overflowX":"overflowY",[s,l]=((e,t,n)=>{let r;return[async(o,i)=>{if(!(await t()))return;r&&r();const a=()=>{const[t,n]=xl();return r=()=>{n(!1)},e.p()&&Il(r,150),[t,e.B(2,()=>{n(!0)})]};if(i&&Rl())e.J(8,o()),Ol(async()=>{for(;;){let t=!0;for(let[o,i]=e.S();o<=i;o++)if(e.k(o)){t=!1;break}if(t)break;const[n,r]=a();try{if(!(await n))return}finally{r()}}e.J(7),n(o(),i)});else for(;;){const[t,r]=a();try{if(e.J(7),n(o()),!(await t))return}finally{r()}}},()=>{r&&r()}]})(e,()=>o[0],(e,r)=>{e=Ll(e,t),r?n.scrollTo({[t?"left":"top"]:e,behavior:"smooth"}):n[i]=e});return{P(s){n=s,r=((e,t,n,r,o)=>{const i=Date.now;let a=0,s=!1,l=!1,c=!1,u=!1;const d=(()=>{let t;const n=()=>{t!=vl&&clearTimeout(t)},r=()=>{n(),t=Il(()=>{t=vl,(()=>{if(s||l)return s=!1,void d();c=!1,e.J(2)})()},150)};return r.A=n,r})(),p=()=>{a=i(),c&&(u=!0),e.J(1,r()),d()},f=t=>{if(s||!e.H()||t.ctrlKey)return;const r=i()-a;150>r&&50<r&&(n?t.deltaX:t.deltaY)&&(s=!0)},h=()=>{l=!0,c=u=!1},m=()=>{l=!1,Pl()&&(c=!0)};return t.addEventListener("scroll",p),t.addEventListener("wheel",f,{passive:!0}),t.addEventListener("touchstart",h,{passive:!0}),t.addEventListener("touchend",m,{passive:!0}),{L:()=>{t.removeEventListener("scroll",p),t.removeEventListener("wheel",f),t.removeEventListener("touchstart",h),t.removeEventListener("touchend",m),d.A()},D:()=>{const[t,i]=e.O();t&&(o(Ll(t,n),i,u),u=!1,i&&e.p()>e.h()&&e.J(1,r()))}}})(e,s,t,()=>Ll(s[i],t),(t,n,r)=>{if(r){const e=s.style,t=e[a];e[a]="hidden",Il(()=>{e[a]=t})}s[i]=e.C()+t,n&&l()}),o[1](!0)},v(){r&&r.L(),o[1](!1),o=xl()},V(e){s(()=>e)},X(t){t+=e.C(),s(()=>t)},Y(t,{align:n,smooth:r,offset:o=0}={}){if(t=wl(t,0,e.M()-1),"nearest"===n){const r=e.R(t),o=e.C();if(r<o)n="start";else{if(!(r+e.T(t)>o+e.p()))return;n="end"}}s(()=>o+e.W()+e.R(t)+("end"===n?e.T(t)-e.p():"center"===n?(e.T(t)-e.p())/2:0),r)},j:()=>{r&&r.D()}}},Ul=(e,t)=>{let n;const r=t?"width":"height",o=new WeakMap,i=(e=>{let t;return{q(n){(t||(t=new((e=>e.defaultView)((e=>e.ownerDocument)(n)).ResizeObserver)(e))).observe(n)},G(e){t.unobserve(e)},L(){t&&t.disconnect()}}})(t=>{const i=[];for(const{target:a,contentRect:s}of t)if(a.offsetParent)if(a===n)e.J(4,s[r]);else{const e=o.get(a);e!=vl&&i.push([e,s[r]])}i.length&&e.J(3,i)});return{U(e){i.q(n=e)},F:(e,t)=>(o.set(e,t),i.q(e),()=>{o.delete(e),i.G(e)}),v:i.L}},zl=Ml?_.useLayoutEffect:_.useEffect,Fl="current",Gl=(e,t)=>{if(Array.isArray(e))for(const n of e)Gl(n,t);else null==e||"boolean"==typeof e||t.push(e)},Hl=e=>{const t=_.useRef(e);return zl(()=>{t[Fl]=e},[e]),t},ql=_.memo(({Z:e,ee:t,te:n,oe:r,ne:o,re:i,ie:a,se:s})=>{const l=_.useRef(null);zl(()=>t(l[Fl],n),[n]);const c=_.useMemo(()=>{const e={contain:"layout style",position:o&&s?void 0:"absolute",[a?"height":"width"]:"100%",[a?"top":"left"]:0,[a?Dl()?"right":"left":"top"]:r,visibility:!o||s?"visible":"hidden"};return a&&(e.display="inline-flex"),e},[r,o,s,a]);return w.jsx(i,"string"==typeof i?{ref:l,style:c,children:e}:{ref:l,style:c,index:n,children:e})}),Kl=_.forwardRef(({children:e,data:t,bufferSize:n,itemSize:r,shift:o,horizontal:i,keepMounted:a,cache:s,startMargin:l=0,ssrCount:c,as:u="div",item:d="div",scrollRef:p,onScroll:f,onScrollEnd:h},m)=>{const[v,b]=((e,t)=>_.useMemo(()=>{if("function"==typeof e)return[n=>e(t[n],n),t.length];const n=(e=>{const t=[];return Gl(e,t),t})(e);return[e=>n[e],n.length]},[e,t]))(e,t),g=_.useRef(null),y=_.useRef(!!c),O=Hl(f),x=Hl(h),[N,k,S,A]=(e=>{const t=_.useRef(null);return t[Fl]||(t[Fl]=e())})(()=>{const e=!!i,t=((e,t=40,n=0,r,o=!1)=>{let i=!!n,a=1,s=0,l=0,c=0,u=0,d=0,p=0,f=0,h=0,m=vl,v=[0,i?gl(n-1,0):-1],b=0;const g=(A=e,C=t,{o:(T=r)?T[1]:C,t:T&&T[0]?kl(T[0].slice(0,bl(A,T[0].length)),gl(0,A-T[0].length)):kl([],A),l:A,i:-1,u:kl([],A+1)}),y=new Set,_=()=>c-l,w=()=>_()+d+u,E=(e,t)=>((e,t,n,r)=>{if(r=bl(r,e.l-1),Cl(e,r)<=t){const o=Tl(e,n,r);return[Tl(e,t,r,o),o]}{const o=Tl(e,t,void 0,r);return[o,Tl(e,n,o)]}})(g,e,t,v[0]),O=()=>Cl(g,g.l),x=e=>Cl(g,e)-d,N=e=>Sl(g,e),k=(e,t=-1)=>g.t[e]===t,S=e=>{e&&(Pl()&&0!==f||m&&1===h?d+=e:u+=e)};var A,C,T;return{v:()=>{y.clear()},m:()=>a,_:()=>(e=>[e.t.slice(),e.o])(g),S:(e=200)=>{if(!s||i)return v;let t,n;if(p)[t,n]=v;else{let r=gl(0,w()),i=r+s;o||(e=gl(0,e),1!==f&&(r-=e),2!==f&&(i+=e)),[t,n]=v=E(gl(0,r),gl(0,i)),m&&(t=bl(t,m[0]),n=gl(n,m[1]))}return[gl(t,0),bl(n,g.l-1)]},$:()=>Tl(g,w()),I:()=>Tl(g,w()+s),k:k,R:x,T:N,M:()=>g.l,C:()=>c,H:()=>0!==f,p:()=>s,W:()=>l,h:O,O:()=>(p=u,u=0,[p,2===h]),B:(e,t)=>{const n=[e,t];return y.add(n),()=>{y.delete(n)}},J:(e,t)=>{let n,r,v=0;switch(e){case 1:{if(t===c&&0===h)break;const e=p;p=0;const n=t-c,o=yl(n);e&&o<yl(e)+1||0!==h||(f=n<0?2:1),i&&(i=!1),c=t,v=4;const a=_();a>=-s&&a<=O()&&(v+=1,r=o>s);break}case 2:v=8,0!==f&&(n=!0,v+=1),f=0,h=0,m=vl;break;case 3:{const e=t.filter(([e,t])=>!k(e,t));if(!e.length)break;S(e.reduce((e,[t,n])=>((2===h||(m&&1===h?t<m[0]:x(t+(0===f&&0===h?1:0))<_()))&&(e+=n-N(t)),e),0));for(const[t,n]of e){const e=N(t),r=Al(g,t,n);o&&(b+=r?n:n-e)}o&&s&&b>s&&(S(((e,t)=>{let n=0;const r=[];e.t.forEach((e,o)=>{-1!==e&&(r.push(e),o<t&&n++)}),e.i=-1;const o=El(r),i=o.length,a=i/2|0,s=i%2==0?(o[a-1]+o[a])/2:o[a],l=e.o;return((e.o=s)-l)*gl(t-n,0)})(g,Tl(g,w()))),o=!1),v=3,r=!0;break}case 4:s!==t&&(s||(r=!0),s=t,v=3);break;case 5:t[1]?(S(Vl(g,t[0],!0)),h=2,v=1):(Vl(g,t[0]),v=1);break;case 6:l=t;break;case 7:h=1;break;case 8:m=E(t,t+s),v=1}v&&(a=1+(2147483647&a),n&&d&&(u+=d,d=0),y.forEach(([e,t])=>{v&e&&t(r)}))}}})(b,r,c,s,!r);return[t,Ul(t,e),Bl(t,e),e]});b!==N.M()&&N.J(5,[b,o]),l!==N.W()&&N.J(6,l);const[C,T]=_.useReducer(N.m,void 0,N.m),V=N.H(),M=N.h(),j=[],D=e=>{const t=v(e);return w.jsx(ql,{ee:k.F,te:e,oe:N.R(e),ne:N.k(e),re:d,Z:t,ie:A,se:y[Fl]},((e,t)=>{const n=e.key;return null!=n?n:"_"+t})(t,e))};if(zl(()=>{y[Fl]=!1,N.B(1,e=>{e?E.flushSync(T):T()}),N.B(4,()=>{O[Fl]&&O[Fl](N.C())}),N.B(8,()=>{x[Fl]&&x[Fl]()});const e=e=>{k.U(e),S.P(e)};return p?Ol(()=>{p[Fl]&&e(p[Fl])}):e(g[Fl].parentElement),()=>{N.v(),k.v(),S.v()}},[]),zl(()=>{S.j()},[C]),_.useImperativeHandle(m,()=>({get cache(){return N._()},get scrollOffset(){return N.C()},get scrollSize(){return gl((e=N).h(),e.p());var e},get viewportSize(){return N.p()},findStartIndex:N.$,findEndIndex:N.I,getItemOffset:N.R,getItemSize:N.T,scrollToIndex:S.Y,scrollTo:S.V,scrollBy:S.X}),[]),a){const e=new Set(a);for(let[t,r]=N.S(n);t<=r;t++)e.add(t);El([...e]).forEach(e=>{j.push(D(e))})}else for(let[_,w]=N.S(n);_<=w;_++)j.push(D(_));return w.jsx(u,{ref:g,style:{contain:"size style",overflowAnchor:"none",flex:"none",position:"relative",width:A?M:"100%",height:A?"100%":M,pointerEvents:V?"none":void 0},children:j})}),Wl=({expandable:e,expanded:t,onClick:n,disabled:r})=>w.jsx("span",{onClick:n,className:fl(hl.expandButton,{[hl.expandable]:e,[hl.expanded]:t,[hl.disabled]:r}),children:e&&w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",children:w.jsx("path",{fill:"currentColor","fill-rule":"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0","clip-rule":"evenodd"})})});const $l=zo(e=>{const{name:t,value:n}=e,r=Ba(),o=r.isPathExpanded(e.path),i=Object.keys(n),a=i.length>0;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:fl(hl.line,hl.property,hl.array),style:{"--level":e.level,"--order":e.order},onClick:()=>r.handleExpandPropertyClick(e.path),"data-fitted":e.isFitted,children:[w.jsx(Wl,{expandable:n.length>0,expanded:o}),w.jsx("span",{className:hl.propertyName,children:t}),w.jsx("span",{className:hl.propertyMeta,children:": "}),w.jsx("span",{className:hl.propertyValue,children:a?"[...]":"[]"})]}),o&&w.jsx("div",{className:hl.propertyExpandedContent,children:i.map((t,r)=>_.createElement(Ql,{...e,name:t,order:r,value:n[t],key:t,path:`${e.path}.${t}`,level:e.level+1}))})]})}),Xl=zo(e=>{const{name:t,value:n,valueType:r}=e,o=Array.from({length:n.length},(e,t)=>`arg${t+1}`);return w.jsxs("div",{className:fl(hl.line,hl.property,hl.function),title:String(n),style:{"--level":e.level,"--order":e.order},"data-fitted":e.isFitted,children:[w.jsx(Wl,{}),r.includes("Async")&&w.jsx("span",{className:fl(hl.propertyMeta,hl.small),children:"async "}),w.jsx("span",{className:hl.propertyName,children:t}),w.jsx("span",{className:hl.propertyMeta,children:`(${o.join(", ")})`})]})}),Yl=zo(e=>{const{name:t,value:n}=e,r=Ba(),o=r.isPathExpanded(e.path),i=n.constructor.name,a=ns(n);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:fl(hl.line,hl.property,hl.instance),style:{"--level":e.level,"--order":e.order},onClick:()=>r.handleExpandPropertyClick(e.path),"data-fitted":e.isFitted,children:[w.jsx(Wl,{expandable:!0,expanded:o}),w.jsx("span",{className:hl.propertyName,children:t}),w.jsx("span",{className:hl.propertyMeta,children:": "}),w.jsx("span",{className:hl.propertyValue,children:`${i}`})]}),o&&a.map((t,r)=>_.createElement(Ql,{...e,name:t,order:r,value:n[t],key:t,path:`${e.path}.${t}`,level:e.level+1}))]})}),Jl=zo(e=>{const{name:t,value:n}=e,r=Ba(),o=r.isPathExpanded(e.path),i=ns(n),a=i.length>0;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:fl(hl.line,hl.property,hl.object),style:{"--level":e.level,"--order":e.order},onClick:()=>r.handleExpandPropertyClick(e.path),"data-fitted":e.isFitted,children:[w.jsx(Wl,{expandable:a,expanded:o}),w.jsx("span",{className:hl.propertyName,children:t}),w.jsx("span",{className:hl.propertyMeta,children:": "}),w.jsx("span",{className:hl.propertyValue,children:a?"{...}":"{}"})]}),o&&i.map((t,r)=>_.createElement(Ql,{...e,name:t,order:r,value:n[t],key:t,path:`${e.path}.${t}`,level:e.level+1}))]})}),Zl=zo(e=>{const{name:t,value:n}=e,r=typeof n;return w.jsxs("div",{className:fl(hl.line,hl.property,hl.primitive,hl[r]),style:{"--level":e.level,"--order":e.order},"data-fitted":e.isFitted,title:String(n),children:[w.jsx(Wl,{}),w.jsx("span",{className:hl.propertyName,children:t}),w.jsx("span",{className:hl.propertyMeta,children:": "}),w.jsx("span",{className:hl.propertyValue,children:"symbol"===r?"Symbol":"string"===r?`"${n}"`:`${n}`})]})}),Ql=zo(e=>{const{value:t}=e,n=Object.prototype.toString.call(t),r={...e,value:t,valueType:n};return Array.isArray(t)?w.jsx($l,{...r}):yi.isObject(t)&&t.constructor?.name&&"Object"!==t.constructor.name?w.jsx(Yl,{...r}):yi.isFunction(t)?w.jsx(Xl,{...r}):yi.isObject(t)?w.jsx(Jl,{...r}):n.startsWith("[object ")&&t&&"object"==typeof t&&"constructor"in t?w.jsx(Yl,{...r}):w.jsx(Zl,{...r})}),ec=za(class extends Ja{constructor(e){super({...e,vmConfig:{observable:{viewModels:{useDecorators:!1},viewModelStores:{useDecorators:!1}}}}),yr(this,{devtoolsVM:Dt.struct,handleExpandPropertyClick:zn,handleVmItemHeaderClick:zn})}get devtoolsVM(){return this.payload.devtoolsVM}isPathExpanded(e){return this.devtoolsVM.checkIsPathExpanded(this.payload.vmItem,e)}handleExpandPropertyClick(e){this.devtoolsVM.handleExpandPropertyClick(this.payload.vmItem,e)}handleVmItemHeaderClick(e){this.devtoolsVM.handleVmItemHeaderClick(e)}},({model:e})=>{const t=e.payload.vmItem,n=e.devtoolsVM.isExpanded(t),r=e.devtoolsVM.getVMFittedInfo(t);return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:fl(hl.line,hl.vmTreeItem),"data-fitted":r.isFittedByName||r.isFittedById,style:{"--level":t.depth},children:w.jsxs("header",{onClick:()=>e.handleVmItemHeaderClick(t),children:[w.jsx(Wl,{expandable:t.children.length>0,expanded:n,disabled:e.devtoolsVM.isAllVmsExpandedByDefault}),w.jsx("label",{title:t.displayName,children:t.displayName}),w.jsx("span",{title:t.vm.id,children:t.vm.id})]})}),t.properties.map((n,r)=>w.jsx(Ql,{vmItem:t,name:n,order:r,value:t.vm[n],isFitted:e.devtoolsVM.checkIsPropertyFitted(t,n),level:t.depth,path:n},n)),n&&t.children.map(t=>w.jsx(ec,{payload:{vmItem:t,devtoolsVM:e.devtoolsVM}},t.key))]})}),tc=zo(({className:e,headerContent:t,...n})=>{const r=Ba();return w.jsxs("div",{...n,className:fl(hl.vmContent,e),ref:r.containerRef,children:[w.jsxs("header",{children:[w.jsx("span",{children:"mobx-view-model devtools"}),t]}),w.jsx("div",{className:hl.vmContentFilters,children:w.jsx("input",{value:r.search,ref:r.inputRef,autoFocus:!0,placeholder:"search by property path or ViewModel name",onChange:r.handleSearchChange})}),w.jsx("div",{className:hl.vmContentTree,children:w.jsx(Kl,{children:r.vmTree.map(e=>w.jsx(ec,{payload:{vmItem:e,devtoolsVM:r}},e.key))})})]})}),nc=zo(()=>{const e=Ba();return w.jsx(tc,{className:hl.vmPopup,"data-position":`${e.payload.position}`,headerContent:w.jsx("button",{onClick:e.handleToggleOpen,children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",children:w.jsx("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06","clip-rule":"evenodd"})})})})}),rc=zo(({model:e})=>w.jsx(Ua,{value:e.vmStore,children:w.jsxs(Aa,{value:e,children:[w.jsx(ml,{}),e.isOpened&&"popup"===e.displayType&&w.jsx(nc,{})]})}));class oc extends(t=Ja,e=[Dt],t){constructor(e){super({...e,vmConfig:{observable:{viewModels:{useDecorators:!1}}}}),((e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r)})(n,5,this),h(this,"isOpened",!!this.payload.defaultIsOpened),h(this,"displayType","popup"),h(this,"vmStore",new Ka),h(this,"projectVmStore",this.payload.viewModels),h(this,"handleToggleOpen",()=>{this.isOpened=!this.isOpened}),h(this,"expandedVmsSet",Tt.set()),h(this,"isAllVmsExpandedByDefault",!0),h(this,"expandedVmItemsPaths",Tt.set()),h(this,"logoUrl","https://js2me.github.io/mobx-view-model/logo.png"),h(this,"inputRef",Qa()),h(this,"containerRef",Qa()),h(this,"buttonRef",_i()),h(this,"keyboardHandler",new Ya(this)),h(this,"search",""),h(this,"handleSearchChange",e=>{this.search=e.target.value}),yr(this,{isOpened:Tt.ref,isAllVmsExpandedByDefault:Tt,search:Tt.ref,handleToggleOpen:zn,handleExpandPropertyClick:zn,allVms:Dt.struct,vmMap:Dt.struct,isInSearch:Dt,vmTree:Dt.struct,rootVms:Dt.struct,handleSearchChange:zn});Wn(()=>[this.formattedSearch,this.allVms,this.isAllVmsExpandedByDefault],K(([e])=>{e&&document.querySelector('[data-fitted="true"]')?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},140),{signal:this.unmountSignal})}get vmMap(){return this.getViewModelsMap()}get allVms(){return[...this.vmMap.values()].filter(e=>!Ja.isPrototypeOf(e.constructor))}get rootVms(){return this.allVms.filter(e=>{const t=this.getVmParams(e);return!t||null==t.parentViewModel})}get formattedSearch(){return this.search.toLowerCase().trim()}get vmTree(){const e=[],t=[],n=(t,r)=>{const o=e.find(e=>e.vm===t);if(o)return o;const i=this.getVmParams(t),a=i?.parentViewModel||null,s=t.constructor.name,l={parent:a?n(a,r-1):null,vm:t,displayName:s,children:[],depth:r,key:`${s}-${t.id}-${r}`,properties:ns(t)};e.push(l);const c=this.allVms.filter(e=>{const n=this.getVmParams(e);return n?.parentViewModel&&n.parentViewModel===t}).map(e=>n(e,r+1)).filter(e=>Boolean(e));return l.children.push(...c),l};return this.rootVms.forEach(e=>{const r=n(e,0);r&&t.push(r)}),t}get isInSearch(){return!!this.search.toLowerCase().trim()}get searchCache(){return this.formattedSearch,new Map}getVMFittedInfo(e){if(!this.isInSearch)return{isFitted:!0,isFittedByName:!0,fittedProperties:[]};if(this.searchCache.has(e.key))return this.searchCache.get(e.key);let t=!1;const n=[];let r=e.displayName.toLowerCase().trim().includes(this.formattedSearch),o=Za(e.vm,this.search);o||"."!==this.search.at(-1)||(o=Za(e.vm,this.search.slice(0,-1)));let i=this.formattedSearch;if(!o&&this.search.split(".")[0].toLowerCase()===e.displayName.toLowerCase()){const t=this.search.split(".").slice(1).join(".");t?o=Za(e.vm,t):(o=!0,r=!0),i=t.toLowerCase().trim()}e.properties.forEach(e=>{let a=!1;if(r)a=!0;else{const t=e.toLowerCase().trim();(t.includes(i)||"."!==i&&`.${t}`.includes(i))&&(a=!0)}if(o){i.split(".")[0]===e&&(a=!0)}t||(t=a),a&&n.push(e)});const a=!!e.vm.id&&e.vm.id.includes(this.formattedSearch),s=r||a||t||o;return this.searchCache.set(e.key,{isFitted:s,isFittedById:a,isFittedByName:r,isFittedByPropertyPath:o,fittedProperties:n}),this.searchCache.get(e.key)}checkIsPropertyFitted(e,t){return!this.isInSearch||this.getVMFittedInfo(e).fittedProperties.includes(t)}isExpanded(e){return this.expandedVmsSet.has(e.key)||this.isInSearch||this.isAllVmsExpandedByDefault}checkIsPathExpanded(e,t){const n=this.getVMFittedInfo(e),r=(t.startsWith(".")?t.slice(1):t).split(".")[0];return r&&n.fittedProperties.includes(r),this.expandedVmItemsPaths.has(`${e.key}%%%${t}`)}handleExpandPropertyClick(e,t){const n=`${e.key}%%%${t}`;this.expandedVmItemsPaths.has(n)?this.expandedVmItemsPaths.delete(n):this.expandedVmItemsPaths.add(n)}handleVmItemHeaderClick(e){this.isExpanded(e)?this.expandedVmsSet.delete(e.key):this.expandedVmsSet.add(e.key)}getVmParams(e){return"vmParams"in e?e.vmParams:null}getViewModelsMap(){const e=this.payload.viewModels??this.projectVmStore;return e?.viewModels??new Map}willMount(){this.vmStore.attach(this);const e=document.createElement("div");document.body.appendChild(e),((e,t)=>{is.createRoot(e).render(w.jsx(rc,{model:t}))})(e,this)}}var ic;ic=t,((e,t,n,r,a,l)=>{var h,m,_,w,E,O=7&t,x=!!(8&t),N=!!(16&t),k=O>3?e.length+1:O?x?1:2:0,S=u[O+5],A=O>3&&(e[k-1]=[]),C=e[k]||(e[k]=[]),T=O&&(!N&&!x&&(a=a.prototype),O<5&&(O>3||!N)&&i(O<4?a:{get[n](){return b(this,l)},set[n](e){return g(this,l,e)}},n));O?N&&O<4&&c(l,(O>2?"set ":O>1?"get ":"")+n):c(a,n);for(var V=r.length-1;V>=0;V--)w=p(O,n,_={},e[3],C),O&&(w.static=x,w.private=N,E=w.access={has:N?e=>v(a,e):e=>n in e},3^O&&(E.get=N?e=>(1^O?b:y)(e,a,4^O?l:T.get):e=>e[n]),O>2&&(E.set=N?(e,t)=>g(e,a,t,4^O?l:T.set):(e,t)=>e[n]=t)),m=(0,r[V])(O?O<4?N?l:T[S]:O>4?void 0:{get:T.get,set:T.set}:a,w),_._=1,4^O||void 0===m?d(m)&&(O>4?A.unshift(m):O?N?l=m:T[S]=m:a=m):"object"!=typeof m||null===m?s("Object expected"):(d(h=m.get)&&(T.get=h),d(h=m.set)&&(T.set=h),d(h=m.init)&&A.unshift(h));O||f(e,a),T&&o(a,n,T)})(n=[,,,r(ic?.[a("metadata")]??null)],2,"searchCache",e,oc),f(n,oc);const ac=za(oc,({model:e})=>null);exports.ViewModelDevTools=ac;