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/index.cjs ADDED
@@ -0,0 +1,2 @@
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{.static_g5P-G{position:static}.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=Object.create,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),s=e=>{throw TypeError(e)},a=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t)=>r(e,"name",{value:t,configurable:!0}),c=["class","method","getter","setter","accessor","field","value","get","set"],u=e=>void 0!==e&&"function"!=typeof e?s("Function expected"):e,d=(e,t,n,r,o)=>({kind:c[e],name:t,metadata:r,addInitializer:e=>n._?s("Already initialized"):o.push(u(e||null))}),p=(e,t)=>a(t,i("metadata"),e[3]),f=(e,t,n)=>a(e,"symbol"!=typeof t?t+"":t,n),h=(e,t,n)=>t.has(e)||s("Cannot "+n),m=(e,t)=>Object(t)!==t?s('Cannot use the "in" operator on this value'):e.has(t),v=(e,t,n)=>(h(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n,r)=>(h(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),g=(e,t,n)=>(h(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),_=require("react/jsx-runtime"),w=require("react-dom");var E="production"!==process.env.NODE_ENV?{0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,t){return"Cannot apply '"+e+"' to '"+t.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,t){return"[mobx.array] Index out of bounds, "+e+" is larger than "+t},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,t){return"the entry '"+e+"' does not exist in the observable map '"+t+"'"},26:"please specify a property",27:function(e,t){return"no observable property '"+e.toString()+"' found on the observable object '"+t+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,t){return"Cycle detected in computation "+e+": "+t},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"}:{};function O(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:E[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 N(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:x}var k=Object.assign,S=Object.getOwnPropertyDescriptor,A=Object.defineProperty,C=Object.prototype,T=[];Object.freeze(T);var V={};Object.freeze(V);var M="undefined"!=typeof Proxy,D=Object.toString();function j(){M||O("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 P(e){"production"!==process.env.NODE_ENV&&Ut.verifyProxies&&O("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function R(){return++Ut.mobxGuid}function I(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var L=function(){};function B(e){return"function"==typeof e}function U(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function z(e){return null!==e&&"object"==typeof e}function F(e){if(!z(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===D}function G(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function H(e,t,n){A(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function q(e,t,n){A(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function K(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return z(e)&&!0===e[n]}}function W(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function $(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var X=void 0!==Object.getOwnPropertySymbols;var Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:X?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function J(e){return"string"==typeof e?e:"symbol"==typeof e?e.toString():new String(e).toString()}function Z(e){return null===e?null:"object"==typeof e?""+e:e}function Q(e,t){return C.hasOwnProperty.call(e,t)}var ee=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach(function(n){t[n]=S(e,n)}),t};function te(e,t){return!!(e&t)}function ne(e,t,n){return n?e|=t:e&=~t,e}function re(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 oe(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,ce(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ie(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 re(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)?re(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 se(){return se=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},se.apply(null,arguments)}function ae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,le(e,t)}function le(e,t){return(le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ce(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 ue=Symbol("mobx-stored-annotations");function de(e){return Object.assign(function(t,n){if(fe(n))return e.decorate_20223_(t,n);pe(t,n,e)},e)}function pe(e,t,n){(Q(e,ue)||H(e,ue,se({},e[ue])),"production"!==process.env.NODE_ENV&&Oe(n)&&!Q(e[ue],t))&&O("'"+(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&&!Oe(t)&&Q(e[ue],n)){var r=e.constructor.name+".prototype."+n.toString(),o=e[ue][n].annotationType_;O("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),Oe(n)||(e[ue][t]=n)}function fe(e){return"object"==typeof e&&"string"==typeof e.kind}function he(e,t){"production"===process.env.NODE_ENV||t.includes(e.kind)||O("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var me=Symbol("mobx administration"),ve=function(){function e(e){void 0===e&&(e="production"!==process.env.NODE_ENV?"Atom@"+R():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=_t.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 Kt(this)},t.reportChanged=function(){Ht(),Wt(this),qt()},t.toString=function(){return this.name_},oe(e,[{key:"isBeingObserved",get:function(){return te(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=ne(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return te(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=ne(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return te(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=ne(this.flags_,e.diffValueMask_,1===t)}}])}();ve.isBeingObservedMask_=1,ve.isPendingUnobservationMask_=2,ve.diffValueMask_=4;var be=K("Atom",ve);function ge(e,t,n){void 0===t&&(t=L),void 0===n&&(n=L);var r,o=new ve(e);return t!==L&&kn(On,o,t,r),n!==L&&Nn(o,n),o}var ye={structural:function(e,t){return Gr(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 _e(e,t,n){return Ln(e)?e:Array.isArray(e)?it.array(e,{name:n}):F(e)?it.object(e,void 0,{name:n}):W(e)?it.map(e,{name:n}):$(e)?it.set(e,{name:n}):"function"!=typeof e||yn(e)||In(e)?e:G(e)?Pn(e):bn(n,e)}function we(e){return e}var Ee="override";function Oe(e){return e.annotationType_===Ee}function xe(e,t){return{annotationType_:e,options_:t,make_:Ne,extend_:ke,decorate_20223_:Se}}function Ne(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(yn(n.value))return 1;var i=Ae(e,this,t,n,!1);return A(r,t,i),2}function ke(e,t,n,r){var o=Ae(e,this,t,n);return e.defineProperty_(t,o,r)}function Se(e,t){"production"!==process.env.NODE_ENV&&he(t,["method","field"]);var n,r=t.kind,o=t.name,i=t.addInitializer,s=this,a=function(e){var t,n,r,i;return ht(null!=(t=null==(n=s.options_)?void 0:n.name)?t:o.toString(),e,null!=(r=null==(i=s.options_)?void 0:i.autoAction)&&r)};return"field"==r?function(e){var t,n=e;return yn(n)||(n=a(n)),null!=(t=s.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==r?(yn(e)||(e=a(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 O("Cannot apply '"+s.annotationType_+"' to '"+String(o)+"' (kind: "+r+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function Ae(e,t,n,r,o){var i,s,a,l,c,u,d;void 0===o&&(o=Ut.safeDescriptors),function(e,t,n,r){var o=t.annotationType_,i=r.value;"production"===process.env.NODE_ENV||B(i)||O("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:ht(null!=(s=null==(a=t.options_)?void 0:a.name)?s: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 Ce(e,t){return{annotationType_:e,options_:t,make_:Te,extend_:Ve,decorate_20223_:Me}}function Te(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&&(!Q(e.target_,t)||!In(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(In(n.value))return 1;var i=De(e,this,t,n,!1,!1);return A(r,t,i),2}function Ve(e,t,n,r){var o,i=De(e,this,t,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function Me(e,t){var n;"production"!==process.env.NODE_ENV&&he(t,["method"]);var r=t.name,o=t.addInitializer;return In(e)||(e=Pn(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 De(e,t,n,r,o,i){void 0===i&&(i=Ut.safeDescriptors),function(e,t,n,r){var o=t.annotationType_,i=r.value;"production"===process.env.NODE_ENV||B(i)||O("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 s,a=r.value;(In(a)||(a=Pn(a)),o)&&((a=a.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0);return{value:a,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function je(e,t){return{annotationType_:e,options_:t,make_:Pe,extend_:Re,decorate_20223_:Ie}}function Pe(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function Re(e,t,n,r){return function(e,t,n,r){var o=t.annotationType_,i=r.get;"production"===process.env.NODE_ENV||i||O("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,se({},this.options_,{get:n.get,set:n.set}),r)}function Ie(e,t){"production"!==process.env.NODE_ENV&&he(t,["getter"]);var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=_r(this)[me],o=se({},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 yt(o))}),function(){return this[me].getObservablePropValue_(r)}}function Le(e,t){return{annotationType_:e,options_:t,make_:Be,extend_:Ue,decorate_20223_:ze}}function Be(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function Ue(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||O("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:_e,r)}function ze(e,t){if("production"!==process.env.NODE_ENV){if("field"===t.kind)throw O("Please use `@observable accessor "+String(t.name)+"` instead of `@observable "+String(t.name)+"`");he(t,["accessor"])}var n=this,r=t.kind,o=t.name,i=new WeakSet;function s(e,t){var r,s,a=_r(e)[me],l=new gt(t,null!=(r=null==(s=n.options_)?void 0:s.enhancer)?r:_e,"production"!==process.env.NODE_ENV?a.name_+"."+o.toString():"ObservableObject."+o.toString(),!1);a.values_.set(o,l),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||s(this,e.get.call(this)),this[me].getObservablePropValue_(o)},set:function(e){return i.has(this)||s(this,e),this[me].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||s(this,e),e}}}var Fe="true",Ge=He();function He(e){return{annotationType_:Fe,options_:e,make_:qe,extend_:Ke,decorate_20223_:We}}function qe(e,t,n,r){var o,i,s,a;if(n.get)return ct.make_(e,t,n,r);if(n.set){var l=yn(n.set)?n.set:ht(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!Ut.safeDescriptors||e.isPlainObject_,set:l})?0:2:(A(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return G(n.value)?(null!=(a=this.options_)&&a.autoBind?Pn.bound:Pn).make_(e,t,n,r):(null!=(s=this.options_)&&s.autoBind?bn.bound:bn).make_(e,t,n,r);var c,u=!1===(null==(o=this.options_)?void 0:o.deep)?it.ref:it;"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 Ke(e,t,n,r){var o,i,s;if(n.get)return ct.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!Ut.safeDescriptors||e.isPlainObject_,set:ht(t.toString(),n.set)},r);"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(s=e.proxy_)?s:e.target_));return(!1===(null==(i=this.options_)?void 0:i.deep)?it.ref:it).extend_(e,t,n,r)}function We(e,t){O("'"+this.annotationType_+"' cannot be used as a decorator")}var $e={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Xe(e){return e||$e}Object.freeze($e);var Ye=Le("observable"),Je=Le("observable.ref",{enhancer:we}),Ze=Le("observable.shallow",{enhancer:function(e,t,n){return null==e||Or(e)||sr(e)||dr(e)||mr(e)?e:Array.isArray(e)?it.array(e,{name:n,deep:!1}):F(e)?it.object(e,void 0,{name:n,deep:!1}):W(e)?it.map(e,{name:n,deep:!1}):$(e)?it.set(e,{name:n,deep:!1}):void("production"!==process.env.NODE_ENV&&O("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets"))}}),Qe=Le("observable.struct",{enhancer:function(e,t){return"production"!==process.env.NODE_ENV&&Ln(e)&&O("observable.struct should not be used with observable values"),Gr(e,t)?t:e}}),et=de(Ye);function tt(e){return!0===e.deep?_e:!1===e.deep?we:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:_e;var t,n,r}function nt(e,t,n){return fe(t)?Ye.decorate_20223_(e,t):U(t)?void pe(e,t,Ye):Ln(e)?e:F(e)?it.object(e,t,n):Array.isArray(e)?it.array(e,t):W(e)?it.map(e,t):$(e)?it.set(e,t):"object"==typeof e&&null!==e?e:it.box(e,t)}k(nt,et);var rt,ot,it=k(nt,{box:function(e,t){var n=Xe(t);return new gt(e,tt(n),n.name,!0,n.equals)},array:function(e,t){var n=Xe(t);return(!1===Ut.useProxies||!1===n.proxy?Rr:Qn)(e,tt(n),n.name)},map:function(e,t){var n=Xe(t);return new ur(e,tt(n),n.name)},set:function(e,t){var n=Xe(t);return new hr(e,tt(n),n.name)},object:function(e,t,n){return Ur(function(){return function(e,t,n,r){"production"!==process.env.NODE_ENV&&(arguments.length>4&&O("'extendObservable' expected 2-4 arguments"),"object"!=typeof e&&O("'extendObservable' expects an object as first argument"),dr(e)&&O("'extendObservable' should not be used on maps, use map.merge instead"),F(t)||O("'extendObservable' only accepts plain objects as second argument"),(Ln(t)||Ln(n))&&O("Extending an object with another observable (object) is not supported"));var o=ee(t);return Ur(function(){var t=_r(e,r)[me];Y(o).forEach(function(e){t.extend_(e,o[e],!n||(!(e in n)||n[e]))})}),e}(!1===Ut.useProxies||!1===(null==n?void 0:n.proxy)?_r({},n):function(e,t){var n,r;return j(),e=_r(e,t),null!=(r=(n=e[me]).proxy_)?r:n.proxy_=new Proxy(e,zn)}({},n),e,t)})},ref:de(Je),shallow:de(Ze),deep:et,struct:de(Qe)}),st="computed",at=je(st),lt=je("computed.struct",{equals:ye.structural}),ct=function(e,t){if(fe(t))return at.decorate_20223_(e,t);if(U(t))return pe(e,t,at);if(F(e))return de(je(st,e));"production"!==process.env.NODE_ENV&&(B(e)||O("First argument to `computed` should be an expression."),B(t)&&O("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=F(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new yt(n)};Object.assign(ct,at),ct.struct=de(lt);var ut=0,dt=1,pt=null!=(rt=null==(ot=S(function(){},"name"))?void 0:ot.configurable)&&rt,ft={value:"action",configurable:!0,writable:!1,enumerable:!1};function ht(e,t,n,r){function o(){return mt(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),"production"!==process.env.NODE_ENV&&(B(t)||O("`action` can only be invoked on functions"),"string"==typeof e&&e||O("actions should have valid names, got: '"+e+"'")),o.isMobxAction=!0,o.toString=function(){return t.toString()},pt&&(ft.value=e,A(o,"name",ft)),o}function mt(e,t,n,r,o){var i=function(e,t,n,r){var o="production"!==process.env.NODE_ENV&&nn()&&!!e,i=0;if("production"!==process.env.NODE_ENV&&o){i=Date.now();var s=r?Array.from(r):T;on({type:ln,name:e,object:n,arguments:s})}var a=Ut.trackingDerivation,l=!t||!a;Ht();var c=Ut.allowStateChanges;l&&(Mt(),c=vt(!0));var u=jt(!0),d={runAsAction_:l,prevDerivation_:a,prevAllowStateChanges_:c,prevAllowStateReads_:u,notifySpy_:o,startTime_:i,actionId_:dt++,parentActionId_:ut};return ut=d.actionId_,d}(e,t,r,o);try{return n.apply(r,o)}catch(s){throw i.error_=s,s}finally{!function(e){ut!==e.actionId_&&O(30);ut=e.parentActionId_,void 0!==e.error_&&(Ut.suppressReactionErrors=!0);bt(e.prevAllowStateChanges_),Pt(e.prevAllowStateReads_),qt(),e.runAsAction_&&Dt(e.prevDerivation_);"production"!==process.env.NODE_ENV&&e.notifySpy_&&an({time:Date.now()-e.startTime_});Ut.suppressReactionErrors=!1}(i)}}function vt(e){var t=Ut.allowStateChanges;return Ut.allowStateChanges=e,t}function bt(e){Ut.allowStateChanges=e}var gt=function(e){function t(t,n,r,o,i){var s,a;(void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableValue@"+R():"ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=ye.default),(s=e.call(this,r)||this).enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=n,s.name_=r,s.equals=i,s.value_=n(t,void 0,r),"production"!==process.env.NODE_ENV&&o&&nn())&&rn({type:"create",object:s,observableKind:"value",debugObjectName:s.name_,newValue:""+(null==(a=s.value_)?void 0:a.toString())});return s}ae(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))!==Ut.UNCHANGED){var n=nn();"production"!==process.env.NODE_ENV&&n&&on({type:Yn,object:this,observableKind:"value",debugObjectName:this.name_,newValue:e,oldValue:t}),this.setNewValue_(e),"production"!==process.env.NODE_ENV&&n&&an()}},n.prepareNewValue_=function(e){if(At(this),Fn(this)){var t=Hn(this,{object:this,type:Yn,newValue:e});if(!t)return Ut.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?Ut.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),qn(this)&&Wn(this,{type:Yn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Gn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Yn,newValue:this.value_,oldValue:void 0}),Kn(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 Z(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(ve),yt=function(){function e(e){this.dependenciesState_=_t.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=_t.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Nt(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Et.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||O(31),this.derivation=e.get,this.name_=e.name||("production"!==process.env.NODE_ENV?"ComputedValue@"+R():"ComputedValue"),e.set&&(this.setter_=ht("production"!==process.env.NODE_ENV?this.name_+"-setter":"ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?ye.structural:ye.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_!==_t.UP_TO_DATE_)return;e.lowestObserverState_=_t.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===_t.UP_TO_DATE_&&(e.dependenciesState_=_t.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&&O(32,this.name_,this.derivation),0!==Ut.inBatch||0!==this.observers_.size||this.keepAlive_){if(Kt(this),St(this)){var e=Ut.trackingContext;this.keepAlive_&&!e&&(Ut.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===_t.STALE_)return;e.lowestObserverState_=_t.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===_t.POSSIBLY_STALE_?(t.dependenciesState_=_t.STALE_,"production"!==process.env.NODE_ENV&&t.isTracing_!==Et.NONE&&$t(t,e)):t.dependenciesState_===_t.UP_TO_DATE_&&(e.lowestObserverState_=_t.UP_TO_DATE_)})}(this),Ut.trackingContext=e}}else St(this)&&(this.warnAboutUntrackedRead_(),Ht(),this.value_=this.computeValue_(!1),qt());var t=this.value_;if(kt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&O(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else O(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===_t.NOT_TRACKING_,n=this.computeValue_(!0),r=t||kt(e)||kt(n)||!this.equals_(e,n);return r&&(this.value_=n,"production"!==process.env.NODE_ENV&&nn()&&rn({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=vt(!1);if(e)t=Ct(this,this.derivation,this.scope_);else if(!0===Ut.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new Nt(r)}return bt(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(Tt(this),this.value_=void 0,"production"!==process.env.NODE_ENV&&this.isTracing_!==Et.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},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=V);"production"!==process.env.NODE_ENV&&(B(e)||O("Autorun expects a function as first argument"),yn(e)&&O("Autorun does not accept actions since actions are untrackable"));var s,a=null!=(n=null==(r=t)?void 0:r.name)?n:"production"!==process.env.NODE_ENV?e.name||"Autorun@"+R():"Autorun";if(t.scheduler||t.delay){var l=wn(t),c=!1;s=new Yt(a,function(){c||(c=!0,l(function(){c=!1,s.isDisposed||s.track(u)}))},t.onError,t.requiresObservable)}else s=new Yt(a,function(){this.track(u)},t.onError,t.requiresObservable);function u(){e(s)}null!=(o=t)&&null!=(o=o.signal)&&o.aborted||s.schedule_();return s.getDisposer_(null==(i=t)?void 0:i.signal)}(function(){var i=n.get();if(!r||t){var s=Mt();e({observableKind:"computed",debugObjectName:n.name_,type:Yn,object:n,newValue:i,oldValue:o}),Dt(s)}r=!1,o=i})},t.warnAboutUntrackedRead_=function(){"production"!==process.env.NODE_ENV&&(this.isTracing_!==Et.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),("boolean"==typeof this.requiresReaction_?this.requiresReaction_:Ut.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 Z(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},oe(e,[{key:"isComputing",get:function(){return te(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=ne(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return te(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=ne(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return te(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=ne(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return te(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=ne(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return te(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=ne(this.flags_,e.diffValueMask_,1===t)}}])}();yt.isComputingMask_=1,yt.isRunningSetterMask_=2,yt.isBeingObservedMask_=4,yt.isPendingUnobservationMask_=8,yt.diffValueMask_=16;var _t,wt,Et,Ot,xt=K("ComputedValue",yt);(wt=_t||(_t={}))[wt.NOT_TRACKING_=-1]="NOT_TRACKING_",wt[wt.UP_TO_DATE_=0]="UP_TO_DATE_",wt[wt.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",wt[wt.STALE_=2]="STALE_",(Ot=Et||(Et={}))[Ot.NONE=0]="NONE",Ot[Ot.LOG=1]="LOG",Ot[Ot.BREAK=2]="BREAK";var Nt=function(e){this.cause=void 0,this.cause=e};function kt(e){return e instanceof Nt}function St(e){switch(e.dependenciesState_){case _t.UP_TO_DATE_:return!1;case _t.NOT_TRACKING_:case _t.STALE_:return!0;case _t.POSSIBLY_STALE_:for(var t=jt(!0),n=Mt(),r=e.observing_,o=r.length,i=0;i<o;i++){var s=r[i];if(xt(s)){if(Ut.disableErrorBoundaries)s.get();else try{s.get()}catch(a){return Dt(n),Pt(t),!0}if(e.dependenciesState_===_t.STALE_)return Dt(n),Pt(t),!0}}return Rt(e),Dt(n),Pt(t),!1}}function At(e){if("production"!==process.env.NODE_ENV){var t=e.observers_.size>0;Ut.allowStateChanges||!t&&"always"!==Ut.enforceActions||console.warn("[MobX] "+(Ut.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 Ct(e,t,n){var r=jt(!0);Rt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++Ut.runId;var o,i=Ut.trackingDerivation;if(Ut.trackingDerivation=e,Ut.inBatch++,!0===Ut.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(s){o=new Nt(s)}return Ut.inBatch--,Ut.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=_t.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,s=0;s<i;s++){var a=n[s];0===a.diffValue&&(a.diffValue=1,o!==s&&(n[o]=a),o++),a.dependenciesState_>r&&(r=a.dependenciesState_)}n.length=o,e.newObserving_=null,i=t.length;for(;i--;){var l=t[i];0===l.diffValue&&Ft(l,e),l.diffValue=0}for(;o--;){var c=n[o];1===c.diffValue&&(c.diffValue=0,zt(c,e))}r!==_t.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_:Ut.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}(e),Pt(r),o}function Tt(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Ft(t[n],e);e.dependenciesState_=_t.NOT_TRACKING_}function Vt(e){var t=Mt();try{return e()}finally{Dt(t)}}function Mt(){var e=Ut.trackingDerivation;return Ut.trackingDerivation=null,e}function Dt(e){Ut.trackingDerivation=e}function jt(e){var t=Ut.allowStateReads;return Ut.allowStateReads=e,t}function Pt(e){Ut.allowStateReads=e}function Rt(e){if(e.dependenciesState_!==_t.UP_TO_DATE_){e.dependenciesState_=_t.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=_t.UP_TO_DATE_}}var It=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},Lt=!0,Bt=!1,Ut=function(){var e=N();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Lt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new It).version&&(Lt=!1),Lt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new It):(setTimeout(function(){Bt||O(35)},1),new It)}();function zt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Ft(e,t){e.observers_.delete(t),0===e.observers_.size&&Gt(e)}function Gt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Ut.pendingUnobservations.push(e))}function Ht(){Ut.inBatch++}function qt(){if(0===--Ut.inBatch){Qt();for(var e=Ut.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 yt&&n.suspend_())}Ut.pendingUnobservations=[]}}function Kt(e){!function(e){"production"!==process.env.NODE_ENV&&!Ut.allowStateReads&&Ut.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}(e);var t=Ut.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&Ut.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&Ut.inBatch>0&&Gt(e),!1)}function Wt(e){e.lowestObserverState_!==_t.STALE_&&(e.lowestObserverState_=_t.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===_t.UP_TO_DATE_&&("production"!==process.env.NODE_ENV&&t.isTracing_!==Et.NONE&&$t(t,e),t.onBecomeStale_()),t.dependenciesState_=_t.STALE_}))}function $t(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===Et.BREAK){var n=[];Xt(Cn(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 yt?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Xt(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 Xt(e,t,n+1)}))}var Yt=function(){function e(e,t,n,r){void 0===e&&(e="production"!==process.env.NODE_ENV?"Reaction@"+R():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=_t.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Et.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,Ut.pendingReactions.push(this),Qt())},t.runReaction_=function(){if(!this.isDisposed){Ht(),this.isScheduled=!1;var e=Ut.trackingContext;if(Ut.trackingContext=this,St(this)){this.isTrackPending=!0;try{this.onInvalidate_(),"production"!==process.env.NODE_ENV&&this.isTrackPending&&nn()&&rn({name:this.name_,type:"scheduled-reaction"})}catch(t){this.reportExceptionInDerivation_(t)}}Ut.trackingContext=e,qt()}},t.track=function(e){if(!this.isDisposed){Ht();var t,n=nn();"production"!==process.env.NODE_ENV&&n&&(t=Date.now(),on({name:this.name_,type:"reaction"})),this.isRunning=!0;var r=Ut.trackingContext;Ut.trackingContext=this;var o=Ct(this,e,void 0);Ut.trackingContext=r,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Tt(this),kt(o)&&this.reportExceptionInDerivation_(o.cause),"production"!==process.env.NODE_ENV&&n&&an({time:Date.now()-t}),qt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(Ut.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+"'";Ut.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&&nn()&&rn({type:"error",name:this.name_,message:n,error:""+e}),Ut.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Ht(),Tt(this),qt()))},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[me]=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 Ut.trackingDerivation;case 1:return Ir(e[0]);case 2:return Ir(e[0],e[1])}}(n);if(!o)return O("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Et.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled");o.isTracing_=e?Et.BREAK:Et.LOG}(this,e)},oe(e,[{key:"isDisposed",get:function(){return te(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=ne(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return te(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=ne(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return te(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=ne(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return te(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=ne(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return te(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=ne(this.flags_,e.diffValueMask_,1===t)}}])}();Yt.isDisposedMask_=1,Yt.isScheduledMask_=2,Yt.isTrackPendingMask_=4,Yt.isRunningMask_=8,Yt.diffValueMask_=16;var Jt=100,Zt=function(e){return e()};function Qt(){Ut.inBatch>0||Ut.isRunningReactions||Zt(en)}function en(){Ut.isRunningReactions=!0;for(var e=Ut.pendingReactions,t=0;e.length>0;){++t===Jt&&(console.error("production"!==process.env.NODE_ENV?"Reaction doesn't converge to a stable state after "+Jt+" 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_()}Ut.isRunningReactions=!1}var tn=K("Reaction",Yt);function nn(){return"production"!==process.env.NODE_ENV&&!!Ut.spyListeners.length}function rn(e){if("production"!==process.env.NODE_ENV&&Ut.spyListeners.length)for(var t=Ut.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function on(e){"production"!==process.env.NODE_ENV&&rn(se({},e,{spyReportStart:!0}))}var sn={type:"report-end",spyReportEnd:!0};function an(e){"production"!==process.env.NODE_ENV&&rn(e?se({},e,{type:"report-end",spyReportEnd:!0}):sn)}var ln="action",cn="autoAction",un="<unnamed action>",dn=xe(ln),pn=xe("action.bound",{bound:!0}),fn=xe(cn,{autoAction:!0}),hn=xe("autoAction.bound",{autoAction:!0,bound:!0});function mn(e){return function(t,n){return B(t)?ht(t.name||un,t,e):B(n)?ht(t,n,e):fe(n)?(e?fn:dn).decorate_20223_(t,n):U(n)?pe(t,n,e?fn:dn):U(t)?de(xe(e?cn:ln,{name:t,autoAction:e})):void("production"!==process.env.NODE_ENV&&O("Invalid arguments for `action`"))}}var vn=mn(!1);Object.assign(vn,dn);var bn=mn(!0);function gn(e){return mt(e.name||un,!1,e,this,void 0)}function yn(e){return B(e)&&!0===e.isMobxAction}Object.assign(bn,fn),vn.bound=de(pn),bn.bound=de(hn);var _n=function(e){return e()};function wn(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:_n}function En(e,t,n){var r,o,i;void 0===n&&(n=V),"production"!==process.env.NODE_ENV&&(B(e)&&B(t)||O("First and second argument to reaction should be functions"),F(n)||O("Third argument of reactions should be an object"));var s,a,l,c=null!=(r=n.name)?r:"production"!==process.env.NODE_ENV?"Reaction@"+R():"Reaction",u=vn(c,n.onError?(s=n.onError,a=t,function(){try{return a.apply(this,arguments)}catch(e){s.call(this,e)}}):t),d=!n.scheduler&&!n.delay,p=wn(n),f=!0,h=!1,m=n.compareStructural?ye.structural:n.equals||ye.default,v=new Yt(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=vt(e);try{return t()}finally{bt(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 On="onBO",xn="onBUO";function Nn(e,t,n){return kn(xn,e,t,n)}function kn(e,t,n,r){var o=Ir(t),i=B(r)?r:n,s=e+"L";return o[s]?o[s].add(i):o[s]=new Set([i]),function(){var e=o[s];e&&(e.delete(i),0===e.size&&delete o[s])}}var Sn="always";function An(e){!0===e.isolateGlobalState&&function(){if((Ut.pendingReactions.length||Ut.inBatch||Ut.isRunningReactions)&&O(36),Bt=!0,Lt){var e=N();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),Ut=new It}}();var t,n,r=e.useProxies,o=e.enforceActions;if(void 0!==r&&(Ut.useProxies=r===Sn||"never"!==r&&"undefined"!=typeof Proxy),"ifavailable"===r&&(Ut.verifyProxies=!0),void 0!==o){var i=o===Sn?Sn:"observed"===o;Ut.enforceActions=i,Ut.allowStateChanges=!0!==i&&i!==Sn}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(Ut[t]=!!e[t])}),Ut.allowStateReads=!Ut.observableRequiresReaction,"production"!==process.env.NODE_ENV&&!0===Ut.disableErrorBoundaries&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&(t=e.reactionScheduler,n=Zt,Zt=function(e){return t(function(){return n(e)})})}function Cn(e,t){return Tn(Ir(e,t))}function Tn(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(Tn)),n}var Vn=0;function Mn(){this.message="FLOW_CANCELLED"}Mn.prototype=Object.create(Error.prototype);var Dn=Ce("flow"),jn=Ce("flow.bound",{bound:!0}),Pn=Object.assign(function(e,t){if(fe(t))return Dn.decorate_20223_(e,t);if(U(t))return pe(e,t,Dn);"production"!==process.env.NODE_ENV&&1!==arguments.length&&O("Flow expects single argument with generator function");var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++Vn,i=vn(r+" - runid: "+o+" - init",n).apply(this,t),s=void 0,a=new Promise(function(t,n){var a=0;function l(e){var t;s=void 0;try{t=vn(r+" - runid: "+o+" - yield "+a++,i.next).call(i,e)}catch(l){return n(l)}u(t)}function c(e){var t;s=void 0;try{t=vn(r+" - runid: "+o+" - yield "+a++,i.throw).call(i,e)}catch(l){return n(l)}u(t)}function u(e){if(!B(null==e?void 0:e.then))return e.done?t(e.value):(s=Promise.resolve(e.value)).then(l,c);e.then(u,n)}e=n,l(void 0)});return a.cancel=vn(r+" - runid: "+o+" - cancel",function(){try{s&&Rn(s);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(L,L),Rn(n),e(new Mn)}catch(r){e(r)}}),a};return o.isMobXFlow=!0,o},Dn);function Rn(e){B(e.cancel)&&e.cancel()}function In(e){return!0===(null==e?void 0:e.isMobXFlow)}function Ln(e){return"production"!==process.env.NODE_ENV&&1!==arguments.length&&O("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),function(e){return!!e&&(Or(e)||!!e[me]||be(e)||tn(e)||xt(e))}(e)}function Bn(e,t){void 0===t&&(t=void 0),Ht();try{return e.apply(t)}finally{qt()}}function Un(e){return e[me]}Pn.bound=de(jn);var zn={has:function(e,t){return"production"!==process.env.NODE_ENV&&Ut.trackingDerivation&&P("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),Un(e).has_(t)},get:function(e,t){return Un(e).get_(t)},set:function(e,t,n){var r;return!!U(t)&&("production"===process.env.NODE_ENV||Un(e).values_.has(t)||P("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),null==(r=Un(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return"production"!==process.env.NODE_ENV&&P("delete properties from an observable object. Use 'remove' from 'mobx' instead."),!!U(t)&&(null==(n=Un(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return"production"!==process.env.NODE_ENV&&P("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),null==(r=Un(e).defineProperty_(t,n))||r},ownKeys:function(e){return"production"!==process.env.NODE_ENV&&Ut.trackingDerivation&&P("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),Un(e).ownKeys_()},preventExtensions:function(e){O(13)}};function Fn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Gn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),I(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Hn(e,t){var n=Mt();try{for(var r=[].concat(e.interceptors_||[]),o=0,i=r.length;o<i&&((t=r[o](t))&&!t.type&&O(14),t);o++);return t}finally{Dt(n)}}function qn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function Kn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),I(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Wn(e,t){var n=Mt(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);Dt(n)}}function $n(e,t,n){return Ur(function(){var r=_r(e,n)[me];"production"!==process.env.NODE_ENV&&t&&e[ue]&&O("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),null!=t||(t=function(e){return Q(e,ue)||H(e,ue,se({},e[ue])),e[ue]}(e)),Y(t).forEach(function(e){return r.make_(e,t[e])})}),e}var Xn="splice",Yn="update",Jn={get:function(e,t){var n=e[me];return t===me?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?Q(er,t)?er[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[me];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){O(15)}},Zn=function(){function e(e,t,n,r){void 0===e&&(e="production"!==process.env.NODE_ENV?"ObservableArray@"+R():"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 ve(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 Gn(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}),Kn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&O("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_&&O(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Pr(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;At(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=T),Fn(this)){var i=Hn(this,{object:this.proxy_,type:Xn,index:e,removedCount:t,added:n});if(!i)return T;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 s=n.length-t;this.updateArrayLength_(o,s)}var a=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,a),this.dehanceValues_(a)},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 s=0;s<n.length;s++)this.values_[e+s]=n[s];for(var a=0;a<i.length;a++)this.values_[e+n.length+a]=i[a];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&nn(),o=qn(this),i=o||r?{observableKind:"array",object:this.proxy_,type:Yn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;"production"!==process.env.NODE_ENV&&r&&on(i),this.atom_.reportChanged(),o&&Wn(this,i),"production"!==process.env.NODE_ENV&&r&&an()},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&nn(),o=qn(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Xn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;"production"!==process.env.NODE_ENV&&r&&on(i),this.atom_.reportChanged(),o&&Wn(this,i),"production"!==process.env.NODE_ENV&&r&&an()},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&&O(17,e,n.length),e<n.length){At(this.atom_);var r=n[e];if(Fn(this)){var o=Hn(this,{type:Yn,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),s=0;s<i.length-1;s++)i[s]=void 0;i[i.length-1]=t,this.spliceWithArray_(n.length,0,i)}},e}();function Qn(e,t,n,r){return void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableArray@"+R():"ObservableArray"),void 0===r&&(r=!1),j(),Ur(function(){var o=new Zn(n,t,r,!1);q(o.values_,me,o);var i=new Proxy(o.values_,Jn);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i})}var er={clear:function(){return this.splice(0)},replace:function(e){var t=this[me];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[me];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[me].spliceWithArray_(e,t,n)},push:function(){for(var e=this[me],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[me].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[me],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 Ut.trackingDerivation&&O(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){Ut.trackingDerivation&&O(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[me],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function tr(e,t){"function"==typeof Array.prototype[e]&&(er[e]=t(e))}function nr(e){return function(){var t=this[me];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function rr(e){return function(t,n){var r=this,o=this[me];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e](function(e,o){return t.call(n,e,o,r)})}}function or(e){return function(){var t=this,n=this[me];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)}}tr("at",nr),tr("concat",nr),tr("flat",nr),tr("includes",nr),tr("indexOf",nr),tr("join",nr),tr("lastIndexOf",nr),tr("slice",nr),tr("toString",nr),tr("toLocaleString",nr),tr("toSorted",nr),tr("toSpliced",nr),tr("with",nr),tr("every",rr),tr("filter",rr),tr("find",rr),tr("findIndex",rr),tr("findLast",rr),tr("findLastIndex",rr),tr("flatMap",rr),tr("forEach",rr),tr("map",rr),tr("some",rr),tr("toReversed",rr),tr("reduce",or),tr("reduceRight",or);var ir=K("ObservableArrayAdministration",Zn);function sr(e){return z(e)&&ir(e[me])}var ar={},lr="add",cr="delete",ur=function(){function e(e,t,n){var r=this;void 0===t&&(t=_e),void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableMap@"+R():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[me]=ar,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,B(Map)||O(18),Ur(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(!Ut.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new gt(this.has_(e),we,"production"!==process.env.NODE_ENV?this.name_+"."+J(e)+"?":"ObservableMap.key?",!1);this.hasMap_.set(e,r),Nn(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Fn(this)){var r=Hn(this,{type:n?Yn:lr,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((At(this.keysAtom_),Fn(this))&&!Hn(this,{type:cr,object:this,name:e}))return!1;if(this.has_(e)){var n=nn(),r=qn(this),o=r||n?{observableKind:"map",debugObjectName:this.name_,type:cr,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return"production"!==process.env.NODE_ENV&&n&&on(o),Bn(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&&Wn(this,o),"production"!==process.env.NODE_ENV&&n&&an(),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==Ut.UNCHANGED){var r=nn(),o=qn(this),i=o||r?{observableKind:"map",debugObjectName:this.name_,type:Yn,object:this,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&on(i),n.setNewValue_(t),o&&Wn(this,i),"production"!==process.env.NODE_ENV&&r&&an()}},t.addValue_=function(e,t){var n=this;At(this.keysAtom_),Bn(function(){var r,o=new gt(t,n.enhancer_,"production"!==process.env.NODE_ENV?n.name_+"."+J(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=nn(),o=qn(this),i=o||r?{observableKind:"map",debugObjectName:this.name_,type:lr,object:this,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&on(i),o&&Wn(this,i),"production"!==process.env.NODE_ENV&&r&&an()},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 pr({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 pr({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=ie(this);!(n=r()).done;){var o=n.value,i=o[0],s=o[1];e.call(t,s,i,this)}},t.merge=function(e){var t=this;return dr(e)&&(e=new Map(e)),Bn(function(){var n,r,o;F(e)?function(e){var t=Object.keys(e);if(!X)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return C.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)}):W(e)?(n=e,r=Object.getPrototypeOf(n),o=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(o)&&O(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!=e&&O(20,e)}),this},t.clear=function(){var e=this;Bn(function(){Vt(function(){for(var t,n=ie(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return Bn(function(){for(var n,r=function(e){if(W(e)||dr(e))return e;if(Array.isArray(e))return new Map(e);if(F(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return O(21,e)}(e),o=new Map,i=!1,s=ie(t.data_.keys());!(n=s()).done;){var a=n.value;if(!r.has(a))if(t.delete(a))i=!0;else{var l=t.data_.get(a);o.set(a,l)}}for(var c,u=ie(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&&O("`observe` doesn't support fireImmediately=true in combination with maps."),Kn(this,e)},t.intercept_=function(e){return Gn(this,e)},oe(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),dr=K("ObservableMap",ur);function pr(e){return e[Symbol.toStringTag]="MapIterator",Wr(e)}var fr={},hr=function(){function e(e,t,n){var r=this;void 0===t&&(t=_e),void 0===n&&(n="production"!==process.env.NODE_ENV?"ObservableSet@"+R():"ObservableSet"),this.name_=void 0,this[me]=fr,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,B(Set)||O(22),this.enhancer_=function(e,r){return t(e,r,n)},Ur(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;Bn(function(){Vt(function(){for(var t,n=ie(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=ie(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(At(this.atom_),Fn(this)){var n=Hn(this,{type:lr,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){Bn(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r="production"!==process.env.NODE_ENV&&nn(),o=qn(this),i=o||r?{observableKind:"set",debugObjectName:this.name_,type:lr,object:this,newValue:e}:null;r&&"production"!==process.env.NODE_ENV&&on(i),o&&Wn(this,i),r&&"production"!==process.env.NODE_ENV&&an()}return this},t.delete=function(e){var t=this;if(Fn(this)&&!Hn(this,{type:cr,object:this,oldValue:e}))return!1;if(this.has(e)){var n="production"!==process.env.NODE_ENV&&nn(),r=qn(this),o=r||n?{observableKind:"set",debugObjectName:this.name_,type:cr,object:this,oldValue:e}:null;return n&&"production"!==process.env.NODE_ENV&&on(o),Bn(function(){t.atom_.reportChanged(),t.data_.delete(e)}),r&&Wn(this,o),n&&"production"!==process.env.NODE_ENV&&an(),!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 vr({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 vr({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 $(e)&&!mr(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return $(e)&&!mr(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return $(e)&&!mr(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 $(e)&&!mr(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return mr(e)&&(e=new Set(e)),Bn(function(){Array.isArray(e)||$(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&O("Cannot initialize set from "+e)}),this},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&O("`observe` doesn't support fireImmediately=true in combination with sets."),Kn(this,e)},t.intercept_=function(e){return Gn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},oe(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),mr=K("ObservableSet",hr);function vr(e){return e[Symbol.toStringTag]="SetIterator",Wr(e)}var br=Object.create(null),gr="remove",yr=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=Ge),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 ve("production"!==process.env.NODE_ENV?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=F(this.target_),"production"===process.env.NODE_ENV||Xr(this.defaultAnnotation_)||O("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 yt)return n.set(t),!0;if(Fn(this)){var r=Hn(this,{type:Yn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==Ut.UNCHANGED){var o=qn(this),i="production"!==process.env.NODE_ENV&&nn(),s=o||i?{type:Yn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&i&&on(s),n.setNewValue_(t),o&&Wn(this,s),"production"!==process.env.NODE_ENV&&i&&an()}return!0},t.get_=function(e){return Ut.trackingDerivation&&!Q(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),Q(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(!Ut.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_,we,"production"!==process.env.NODE_ENV?this.name_+"."+J(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(Nr(this,t,e),!(e in this.target_)){var n;if(null!=(n=this.target_[ue])&&n[e])return;O(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==C;){var o=S(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);Nr(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),At(this.keysAtom_);try{Ht();var r=this.delete_(e);if(!r)return r;if(Fn(this)){var o=Hn(this,{object:this.proxy_||this.target_,name:e,type:lr,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=se({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else A(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{qt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),At(this.keysAtom_);try{Ht();var o=this.delete_(e);if(!o)return o;if(Fn(this)){var i=Hn(this,{object:this.proxy_||this.target_,name:e,type:lr,newValue:t});if(!i)return null;t=i.newValue}var s=Er(e),a={configurable:!Ut.safeDescriptors||this.isPlainObject_,enumerable:!0,get:s.get,set:s.set};if(r){if(!Reflect.defineProperty(this.target_,e,a))return!1}else A(this.target_,e,a);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{qt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),At(this.keysAtom_);try{Ht();var r=this.delete_(e);if(!r)return r;if(Fn(this))if(!Hn(this,{object:this.proxy_||this.target_,name:e,type:lr,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=Er(e),i={configurable:!Ut.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else A(this.target_,e,i);this.values_.set(e,new yt(t)),this.notifyPropertyAddition_(e,void 0)}finally{qt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),At(this.keysAtom_),!Q(this.target_,e))return!0;if(Fn(this)&&!Hn(this,{object:this.proxy_||this.target_,name:e,type:gr}))return null;try{var n;Ht();var r,o=qn(this),i="production"!==process.env.NODE_ENV&&nn(),s=this.values_.get(e),a=void 0;if(!s&&(o||i))a=null==(r=S(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],s&&(this.values_.delete(e),s instanceof gt&&(a=s.value_),Wt(s)),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:a,name:e};"production"!==process.env.NODE_ENV&&i&&on(l),o&&Wn(this,l),"production"!==process.env.NODE_ENV&&i&&an()}}finally{qt()}return!0},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&O("`observe` doesn't support the fire immediately property for observable objects."),Kn(this,e)},t.intercept_=function(e){return Gn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=qn(this),o="production"!==process.env.NODE_ENV&&nn();if(r||o){var i=r||o?{type:lr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&o&&on(i),r&&Wn(this,i),"production"!==process.env.NODE_ENV&&o&&an()}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Y(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function _r(e,t){var n;if("production"!==process.env.NODE_ENV&&t&&Or(e)&&O("Options can't be provided for already observable objects."),Q(e,me))return"production"===process.env.NODE_ENV||Lr(e)instanceof yr||O("Cannot convert '"+Br(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)||O("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?(F(e)?"ObservableObject":e.constructor.name)+"@"+R():"ObservableObject",o=new yr(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:He(e):void 0}(t));return H(e,me,o),e}var wr=K("ObservableObjectAdministration",yr);function Er(e){return br[e]||(br[e]={get:function(){return this[me].getObservablePropValue_(e)},set:function(t){return this[me].setObservablePropValue_(e,t)}})}function Or(e){return!!z(e)&&wr(e[me])}function xr(e,t,n){var r;"production"!==process.env.NODE_ENV&&(e.appliedAnnotations_[n]=t),null==(r=e.target_[ue])||delete r[n]}function Nr(e,t,n){if("production"===process.env.NODE_ENV||Xr(t)||O("Cannot annotate '"+e.name_+"."+n.toString()+"': Invalid annotation."),"production"!==process.env.NODE_ENV&&!Oe(t)&&Q(e.appliedAnnotations_,n)){var r=e.name_+"."+n.toString(),o=e.appliedAnnotations_[n].annotationType_;O("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 kr,Sr,Ar=Dr(0),Cr=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Tr=0,Vr=function(){};kr=Vr,Sr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(kr.prototype,Sr):void 0!==kr.prototype.__proto__?kr.prototype.__proto__=Sr:kr.prototype=Sr;var Mr=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="production"!==process.env.NODE_ENV?"ObservableArray@"+R():"ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,Ur(function(){var e=new Zn(r,n,o,!0);e.proxy_=i,q(i,me,e),t&&t.length&&i.spliceWithArray(0,0,t),Cr&&Object.defineProperty(i,"0",Ar)}),i}ae(t,e);var n=t.prototype;return n.concat=function(){this[me].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 sr(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return Wr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},oe(t,[{key:"length",get:function(){return this[me].getArrayLength_()},set:function(e){this[me].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Vr);function Dr(e){return{enumerable:!1,configurable:!0,get:function(){return this[me].get_(e)},set:function(t){this[me].set_(e,t)}}}function jr(e){A(Mr.prototype,""+e,Dr(e))}function Pr(e){if(e>Tr){for(var t=Tr;t<e+100;t++)jr(t);Tr=e}}function Rr(e,t,n){return new Mr(e,t,n)}function Ir(e,t){if("object"==typeof e&&null!==e){if(sr(e))return void 0!==t&&O(23),e[me].atom_;if(mr(e))return e.atom_;if(dr(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||O(25,t,Br(e)),n}if(Or(e)){if(!t)return O(26);var r=e[me].values_.get(t);return r||O(27,t,Br(e)),r}if(be(e)||xt(e)||tn(e))return e}else if(B(e)&&tn(e[me]))return e[me];O(28)}function Lr(e,t){return e||O(29),be(e)||xt(e)||tn(e)||dr(e)||mr(e)?e:e[me]?e[me]:void O(24,e)}function Br(e,t){var n;if(void 0!==t)n=Ir(e,t);else{if(yn(e))return e.name;n=Or(e)||dr(e)||mr(e)?Lr(e):Ir(e)}return n.name_}function Ur(e){var t=Mt(),n=vt(!0);Ht();try{return e()}finally{qt(),bt(n),Dt(t)}}Object.entries(er).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&H(Mr.prototype,t,n)}),Pr(1e3);var zr,Fr=C.toString;function Gr(e,t,n){return void 0===n&&(n=-1),Hr(e,t,n)}function Hr(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 s=Fr.call(e);if(s!==Fr.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=qr(e),t=qr(t);var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(B(l)&&l instanceof l&&B(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),a){if((u=e.length)!==t.length)return!1;for(;u--;)if(!Hr(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(!Q(t,h)||!Hr(e[h],t[h],n-1,r,o))return!1}}return r.pop(),o.pop(),!0}function qr(e){return sr(e)?e.slice():W(e)||dr(e)||$(e)||mr(e)?Array.from(e.entries()):e}var Kr=(null==(zr=N().Iterator)?void 0:zr.prototype)||{};function Wr(e){return e[Symbol.iterator]=$r,Object.assign(Object.create(Kr),e)}function $r(){return this}function Xr(e){return e instanceof Object&&"string"==typeof e.annotationType_&&B(e.make_)&&B(e.extend_)}if(["Symbol","Map","Set"].forEach(function(e){void 0===N()[e]&&O("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(){}):(Ut.spyListeners.push(e),I(function(){Ut.spyListeners=Ut.spyListeners.filter(function(t){return t!==e})}))},extras:{getDebugName:Br},$mobx:me}),!y.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!$n)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Yr(e){e()}function Jr(e){return Cn(e)}var Zr,Qr=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}(),eo=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:Qr)(function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null}),to={exports:{}},no={};var ro,oo,io={};var so,ao,lo=(oo||(oo=1,"production"===process.env.NODE_ENV?to.exports=function(){if(Zr)return no;Zr=1;var e=y,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 s(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(o){return!0}}var a="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),l=n({inst:{value:a,getSnapshot:t}}),c=l[0].inst,u=l[1];return o(function(){c.value=a,c.getSnapshot=t,s(c)&&u({inst:c})},[e,a,t]),r(function(){return s(c)&&u({inst:c}),e(function(){s(c)&&u({inst:c})})},[e]),i(a),a};return no.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:a,no}():to.exports=(ro||(ro=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=y,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,s=t.useDebugValue,a=!1,l=!1,c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(c,u){a||void 0===t.startTransition||(a=!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]),s(d),d};io.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())}()),io)),to.exports);function co(e){e.reaction=new Yt("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)})}var uo=!0,po="function"==typeof Symbol&&Symbol.for,fo=null!==(ao=null===(so=Object.getOwnPropertyDescriptor(function(){},"name"))||void 0===so?void 0:so.configurable)&&void 0!==ao&&ao,ho=po?Symbol.for("react.forward_ref"):"function"==typeof y.forwardRef&&y.forwardRef(function(e){return null}).$$typeof,mo=po?Symbol.for("react.memo"):"function"==typeof y.memo&&y.memo(function(e){return null}).$$typeof;function vo(e,t){if(process.env.NODE_ENV,mo&&e.$$typeof===mo)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(ho&&e.$$typeof===ho&&(n=!0,"function"!=typeof(r=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var i,s,a=function(e,t){return function(e,t){void 0===t&&(t="observed");var n=y.useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return eo.unregister(r),r.onStoreChange=e,r.reaction||(co(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,s=n.current;if(s.reaction||(co(s),eo.register(n,s,s)),y.useDebugValue(s.reaction,Jr),lo.useSyncExternalStore(s.subscribe,s.getSnapshot,s.getSnapshot),s.reaction.track(function(){try{o=e()}catch(t){i=t}}),i)throw i;return o}(function(){return r(e,t)},o)};return a.displayName=e.displayName,fo&&Object.defineProperty(a,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(a.contextTypes=e.contextTypes,"production"!==process.env.NODE_ENV&&uo&&(uo=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),n&&(a=y.forwardRef(a)),a=y.memo(a),i=e,s=a,Object.keys(i).forEach(function(e){go[e]||Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(i,e))}),"production"!==process.env.NODE_ENV&&Object.defineProperty(a,"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`."))}}),a}var bo,go={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};process.env.NODE_ENV,(bo=w.unstable_batchedUpdates)||(bo=Yr,"production"!==process.env.NODE_ENV&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),An({reactionScheduler:bo}),eo.finalizeAllImmediately;const yo=(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},_o="null",wo="undefined",Eo="nan",Oo="[object Object]",xo="[object Array]",No="[object String]",ko="[object Number]",So="[object Boolean]",Ao="[object Function]",Co="[object AsyncFunction]",To="[object RegExp]",Vo="[object Symbol]",Mo="infinite",Do="element";const jo=(...e)=>t=>e.includes(function(e){if(void 0===e)return wo;if(null===e)return _o;if(e&&(1===e.nodeType||9===e.nodeType))return Do;const t=Object.prototype.toString.call(e);if(t===ko){if(Number.isNaN(e))return Eo;if(!Number.isFinite(e))return Mo}return t}(t)),Po=jo(_o),Ro=jo(wo),Io=jo(Oo),Lo=jo(xo),Bo=jo(No),Uo=jo(ko),zo=jo(So),Fo=jo(Ao,Co),Go=jo(To),Ho=jo(Do),qo=jo(Eo),Ko=jo(Mo),Wo=jo(Vo),$o=Object.freeze(Object.defineProperty({__proto__:null,isArray:Lo,isBoolean:zo,isDefined:e=>null!=e,isElement:Ho,isFunction:Fo,isInfinite:Ko,isNaN:qo,isNull:Po,isNumber:Uo,isObject:Io,isRegExp:Go,isString:Bo,isSymbol:Wo,isUndefined:Ro},Symbol.toStringTag,{value:"Module"})),Xo=e=>{const t=e?.comparer??ye.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??{},$n(n,{current:it.ref,meta:it}),n},Yo=(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 s of r)if(!Object.hasOwn(i,s)||e[s]!==i[s])return!1;return!0},{entries:Jo,setPrototypeOf:Zo,isFrozen:Qo,getPrototypeOf:ei,getOwnPropertyDescriptor:ti}=Object;let{freeze:ni,seal:ri,create:oi}=Object,{apply:ii,construct:si}="undefined"!=typeof Reflect&&Reflect;ni||(ni=function(e){return e}),ri||(ri=function(e){return e}),ii||(ii=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)}),si||(si=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 ai=Ei(Array.prototype.forEach),li=Ei(Array.prototype.lastIndexOf),ci=Ei(Array.prototype.pop),ui=Ei(Array.prototype.push),di=Ei(Array.prototype.splice),pi=Ei(String.prototype.toLowerCase),fi=Ei(String.prototype.toString),hi=Ei(String.prototype.match),mi=Ei(String.prototype.replace),vi=Ei(String.prototype.indexOf),bi=Ei(String.prototype.trim),gi=Ei(Object.prototype.hasOwnProperty),yi=Ei(RegExp.prototype.test),_i=(wi=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return si(wi,t)});var wi;function Ei(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 ii(e,t,r)}}function Oi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pi;Zo&&Zo(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Qo(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 Ni(e){const t=oi(null);for(const[n,r]of Jo(e)){gi(e,n)&&(Array.isArray(r)?t[n]=xi(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Ni(r):t[n]=r)}return t}function ki(e,t){for(;null!==e;){const n=ti(e,t);if(n){if(n.get)return Ei(n.get);if("function"==typeof n.value)return Ei(n.value)}e=ei(e)}return function(){return null}}const Si=ni(["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"]),Ai=ni(["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"]),Ci=ni(["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"]),Ti=ni(["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"]),Vi=ni(["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"]),Mi=ni(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Di=ni(["#text"]),ji=ni(["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"]),Pi=ni(["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"]),Ri=ni(["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"]),Ii=ni(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Li=ri(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Bi=ri(/<%[\w\W]*|[\w\W]*%>/gm),Ui=ri(/\$\{[\w\W]*/gm),zi=ri(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fi=ri(/^aria-[\-\w]+$/),Gi=ri(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hi=ri(/^(?:\w+script|data):/i),qi=ri(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ki=ri(/^html$/i),Wi=ri(/^[a-z][.\w]*(-[.\w]+)+$/i);var $i=Object.freeze({__proto__:null,ARIA_ATTR:Fi,ATTR_WHITESPACE:qi,CUSTOM_ELEMENT:Wi,DATA_ATTR:zi,DOCTYPE_NAME:Ki,ERB_EXPR:Bi,IS_ALLOWED_URI:Gi,IS_SCRIPT_OR_DATA:Hi,MUSTACHE_EXPR:Li,TMPLIT_EXPR:Ui});const Xi=1,Yi=3,Ji=7,Zi=8,Qi=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!==Qi||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,m=c.prototype,v=ki(m,"cloneNode"),b=ki(m,"remove"),g=ki(m,"nextSibling"),y=ki(m,"childNodes"),_=ki(m,"parentNode");if("function"==typeof a){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 Jo&&"function"==typeof _&&O&&void 0!==O.createHTMLDocument;const{MUSTACHE_EXPR:C,ERB_EXPR:T,TMPLIT_EXPR:V,DATA_ATTR:M,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:R}=$i;let{IS_ALLOWED_URI:I}=$i,L=null;const B=Oi({},[...Si,...Ai,...Ci,...Vi,...Di]);let U=null;const z=Oi({},[...ji,...Pi,...Ri,...Ii]);let F=Object.seal(oi(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(oi(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,se=!0,ae=!1,le={},ce=null;const ue=Oi({},["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=Oi({},["audio","video","img","source","image","track"]);let fe=null;const he=Oi({},["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=Oi({},[me,ve,be],fi);let Ee=Oi({},["mi","mo","mn","ms","mtext"]),Oe=Oi({},["annotation-xml"]);const xe=Oi({},["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=Ni(e),Ne=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Se="application/xhtml+xml"===Ne?fi:pi,L=gi(e,"ALLOWED_TAGS")?Oi({},e.ALLOWED_TAGS,Se):B,U=gi(e,"ALLOWED_ATTR")?Oi({},e.ALLOWED_ATTR,Se):z,_e=gi(e,"ALLOWED_NAMESPACES")?Oi({},e.ALLOWED_NAMESPACES,fi):we,fe=gi(e,"ADD_URI_SAFE_ATTR")?Oi(Ni(he),e.ADD_URI_SAFE_ATTR,Se):he,de=gi(e,"ADD_DATA_URI_TAGS")?Oi(Ni(pe),e.ADD_DATA_URI_TAGS,Se):pe,ce=gi(e,"FORBID_CONTENTS")?Oi({},e.FORBID_CONTENTS,Se):ue,G=gi(e,"FORBID_TAGS")?Oi({},e.FORBID_TAGS,Se):Ni({}),H=gi(e,"FORBID_ATTR")?Oi({},e.FORBID_ATTR,Se):Ni({}),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,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,I=e.ALLOWED_URI_REGEXP||Gi,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=Oi({},Di),U=[],!0===le.html&&(Oi(L,Si),Oi(U,ji)),!0===le.svg&&(Oi(L,Ai),Oi(U,Pi),Oi(U,Ii)),!0===le.svgFilters&&(Oi(L,Ci),Oi(U,Pi),Oi(U,Ii)),!0===le.mathMl&&(Oi(L,Vi),Oi(U,Ri),Oi(U,Ii))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?q.tagCheck=e.ADD_TAGS:(L===B&&(L=Ni(L)),Oi(L,e.ADD_TAGS,Se))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?q.attributeCheck=e.ADD_ATTR:(U===z&&(U=Ni(U)),Oi(U,e.ADD_ATTR,Se))),e.ADD_URI_SAFE_ATTR&&Oi(fe,e.ADD_URI_SAFE_ATTR,Se),e.FORBID_CONTENTS&&(ce===ue&&(ce=Ni(ce)),Oi(ce,e.FORBID_CONTENTS,Se)),se&&(L["#text"]=!0),Z&&Oi(L,["html","head","body"]),L.table&&(Oi(L,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _i('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _i('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(""));ni&&ni(e),Ae=e}},Me=Oi({},[...Ai,...Ci,...Ti]),De=Oi({},[...Vi,...Mi]),je=function(e){ui(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){b(e)}},Pe=function(e,t){try{ui(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){ui(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{je(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=hi(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(s){}if(!t||!t.documentElement){t=O.createDocument(ge,"template",null);try{t.documentElement.innerHTML=ye?E:o}catch(s){}}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){ai(e,e=>{e.call(n,t,r,Ae)})}const ze=function(e){let t=null;if(Ue(A.beforeSanitizeElements,e,null),Le(e))return je(e),!0;const r=Se(e.nodeName);if(Ue(A.uponSanitizeElement,e,{tagName:r,allowedTags:L}),J&&e.hasChildNodes()&&!Be(e.firstElementChild)&&yi(/<[/\w!]/g,e.innerHTML)&&yi(/<[/\w!]/g,e.textContent))return je(e),!0;if(e.nodeType===Ji)return je(e),!0;if(J&&e.nodeType===Zi&&yi(/<[/\w]/g,e.data))return je(e),!0;if(!(q.tagCheck instanceof Function&&q.tagCheck(r))&&(!L[r]||G[r])){if(!G[r]&&Ge(r)){if(F.tagNameCheck instanceof RegExp&&yi(F.tagNameCheck,r))return!1;if(F.tagNameCheck instanceof Function&&F.tagNameCheck(r))return!1}if(se&&!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 je(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:ge,tagName:"template"});const n=pi(e.tagName),r=pi(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(De[n]):e.namespaceURI===be?!(t.namespaceURI===ve&&!Oe[r])&&!(t.namespaceURI===me&&!Ee[r])&&!De[n]&&(xe[n]||!Me[n]):!("application/xhtml+xml"!==Ne||!_e[e.namespaceURI]))}(e)?(je(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!yi(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===Yi&&(t=e.textContent,ai([C,T,V],e=>{t=mi(t,e," ")}),e.textContent!==t&&(ui(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ue(A.afterSanitizeElements,e,null),!1):(je(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]&&yi(M,t));else if(K&&yi(D,t));else if(q.attributeCheck instanceof Function&&q.attributeCheck(t,e));else if(!U[t]||H[t]){if(!(Ge(e)&&(F.tagNameCheck instanceof RegExp&&yi(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&yi(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t,e))||"is"===t&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&yi(F.tagNameCheck,n)||F.tagNameCheck instanceof Function&&F.tagNameCheck(n))))return!1}else if(fe[t]);else if(yi(I,mi(n,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==vi(n,"data:")||!de[e]){if($&&!yi(j,mi(n,P,"")));else if(n)return!1}else;return!0},Ge=function(e){return"annotation-xml"!==e&&hi(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 s=t[o],{name:a,namespaceURI:l,value:c}=s,u=Se(a),d=c;let p="value"===a?d:bi(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(a,e),p="user-content-"+p),J&&yi(/((--!?|])>)|<\/(style|title|textarea)/i,p)){Pe(a,e);continue}if("attributename"===u&&hi(p,"href")){Pe(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Pe(a,e);continue}if(!X&&yi(/\/>/i,p)){Pe(a,e);continue}Y&&ai([C,T,V],e=>{p=mi(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,a,p):e.setAttribute(a,p),Le(e)?je(e):ci(n.removed)}catch(i){Pe(a,e)}}else Pe(a,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 s&&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,a=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw _i("toString is not a function");if("string"!=typeof(e=e.toString()))throw _i("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Ve(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Se(e.nodeName);if(!L[t]||G[t])throw _i("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===Xi&&"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&&je(r.firstChild);const u=Ie(ae?e:r);for(;a=u.nextNode();)ze(a),He(a),a.content instanceof s&&qe(a.content);if(ae)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&&yi(Ki,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Y&&ai([C,T,V],e=>{d=mi(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&&ui(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=li(A[e],t);return-1===n?void 0:di(A[e],n,1)[0]}return ci(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const es=(e,t)=>{if(document.startViewTransition&&!t?.disabled)return document.startViewTransition(e);e()},ts=y.createContext(null),ns=y.createContext(null),rs=ts.Provider,os=yo(e=>e.toString(16)),is=(...e)=>{const t={...ss,startViewTransitions:structuredClone(ss.startViewTransitions)};return e.forEach(e=>{if(!e)return;const{startViewTransitions:n,comparePayload:r,observable:o,generateId:i,...s}=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,s)}),t},ss=(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=os(),n=yo(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:is(e.vmConfig)})}),as=(e,t,n)=>{if(n.custom)return n.custom(e,t);n.disableWrapping||((e,t,n)=>{n?(t.forEach(([t,n])=>{n(e,t)}),$n(e)):$n(e,Object.fromEntries(t))})(e,t,n.useDecorators)},ls="undefined"==typeof window?y.useEffect:y.useLayoutEffect;let cs=null;cs="production"===process.env.NODE_ENV?e=>{const t=y.useRef(null);return t.current||(t.current=e()),t.current}:e=>y.useMemo(e,[]);const us=cs;function ds(e,t,n){return e.prototype.payloadChanged?ps(e,t,n):fs(e,t)}const ps=(e,t,n)=>{const r=y.useContext(ns),o=y.useContext(ts),i=n?.ctx??{},s=us(()=>{const s=r?.generateViewModelId({...n,ctx:i,VM:e,parentViewModelId:o?.id??null})??n?.id??ss.generateId(i),a=r?r.get(s):null;if(a)return a;{const a={...n,vmConfig:n?.vmConfig,id:s,parentViewModelId:o?.id,payload:t??{},VM:e,viewModels:r,parentViewModel:o,ctx:i};r?.processCreateConfig(a);const l=n?.factory?.(a)??r?.createViewModel(a)??ss.factory(a);return l.willMount(),r?.markToBeAttached(l),l}});return ls(()=>r?(r.attach(s),()=>{r.detach(s.id)}):(s.mount(),()=>{s.willUnmount(),s.unmount()}),[s]),s.setPayload(t??{}),s},fs=(e,t)=>{const n=y.useContext(ns),r=y.useContext(ts),o=us(()=>{const t=new e;return t.parentViewModel=r,n?.markToBeAttached(t),t});return"setPayload"in o&&y.useLayoutEffect(()=>{o.setPayload(t)},[t]),ls(()=>n?(n.attach(o),()=>{n.detach(o.id)}):(o.mount?.(),()=>{o.unmount?.()}),[o]),o},hs=e=>{const t=y.useContext(ns),n=y.useContext(ts);let r;if(t?.get(e),"production"!==process.env.NODE_ENV&&(r=y.useRef()),"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&&(r.current=n),n};vo(({model:e,config:t,payload:n,children:r})=>{const o=ds(e,n,t);return o.isMounted?"function"==typeof r?r(o):_.jsx(_.Fragment,{children:r}):null});const ms=ns.Provider;function vs(e,t,n){if("function"==typeof t||t&&void 0!==t.$$typeof){const n={};return gs(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=>gs(e,r,t)}}const bs=Symbol.for("react.memo"),gs=(e,t,n)=>{const r=t.vmConfig?.processViewComponent??ss.processViewComponent,o=t.vmConfig?.wrapViewsInObserver??ss.wrapViewsInObserver;let i=r?.(n,e,t)??n;o&&i&&i.$$typeof!==bs&&(i=vo(i));const s=t.reactHook,a=t.getPayload,l=t.fallback??ss.fallbackComponent;let c=(n,r)=>{const o=y.useContext(ns);s?.(n,t.ctx,o,r);const{payload:c,...u}=n,d=a?.(n)??c;t.forwardRef&&!("forwardedRef"in u)&&(u.forwardedRef=r);const p=ds(e,d,{...t,props:u});return(!o||o.isAbleToRenderView(p.id))&&!1!==p.isMounted?_.jsx(rs,{value:p,children:i&&_.jsx(i,{...u,model:p})}):l&&_.jsx(l,{...n,payload:d})};return t.forwardRef&&(c=y.forwardRef(c)),c=vo(c),"production"!==process.env.NODE_ENV&&(c.displayName=`ConnectedViewModel(${e.name}->Component)`),t.component=c,c},ys=[["_isMounted",it.ref],["_isUnmounting",it.ref],["isMounted",ct],["isUnmounting",ct],["parentViewModel",ct],["mount",vn.bound],["didMount",vn],["unmount",vn.bound],["didUnmount",vn],["willUnmount",vn],["setPayload",vn]];class _s{constructor(e){this.vmParams=e,this.id=e.id,this.vmConfig=is(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=ye.structural:"shallow"===this.vmConfig.comparePayload?this.isPayloadEqual=Yo:"function"==typeof this.vmConfig.comparePayload&&(this.isPayloadEqual=this.vmConfig.comparePayload);const t=[...ys];!1!==this.vmConfig.payloadObservable&&t.push(["_payload",it[this.vmConfig.payloadObservable??"ref"]]),this.vmConfig.payloadComputed&&("struct"===this.vmConfig.payloadComputed?t.push(["payload",ct.struct]):t.push(["payload",ct({equals:!0===this.vmConfig.payloadComputed?void 0:this.vmConfig.payloadComputed})])),as(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),es(()=>{gn(()=>{this._isMounted=!0})},{disabled:!this.vmConfig.startViewTransitions.mount}),this.didMount()}didMount(){}unmount(){this.vmConfig.onUnmount?.(this),es(()=>{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)||es(()=>{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 ws{constructor(e){this.config=e,this.viewModels=it.map([],{deep:!1}),this.linkedComponentVMClasses=it.map([],{deep:!1}),this.viewModelIdsByClasses=it.map([],{deep:!0}),this.instanceAttachedCount=it.map([],{deep:!1}),this.mountingViews=it.set([],{deep:!1}),this.unmountingViews=it.set([],{deep:!1}),this.vmConfig=is(e?.vmConfig),this.viewModelsTempHeap=new Map,as(this,[["mountedViewsCount",ct],["mount",vn],["unmount",vn],["attachVMConstructor",vn],["attach",vn],["detach",vn],["linkComponents",vn],["unlinkComponents",vn]],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=is(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 Es extends _s{}var Os,xs={};var Ns=function(){if(Os)return xs;Os=1;var e=w;if("production"===process.env.NODE_ENV)xs.createRoot=e.createRoot,xs.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;xs.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},xs.hydrateRoot=function(n,r,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,o)}finally{t.usingClientEntryPoint=!1}}}return xs}();function ks(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=ks(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Ss=e=>{const t=Vs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),As(n,t)||Ts(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},As=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?As(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=/^\[(.+)\]$/,Ts=e=>{if(Cs.test(e)){const t=Cs.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Vs=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Ms(n[o],r,o,t);return r},Ms=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Ds(t,e)).classGroupId=n)}if("function"==typeof e)return js(e)?void Ms(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Ms(o,Ds(t,e),n,r)})})},Ds=(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},js=e=>e.isThemeGetter,Ps=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)}}},Rs=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 s=e[l];if(0===r&&0===o){if(":"===s){t.push(e.slice(i,l)),i=l+1;continue}if("/"===s){n=l;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const s=0===t.length?e:e.substring(i),a=Is(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,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},Is=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Ls=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}},Bs=/\s+/;function Us(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=zs(e))&&(r&&(r+=" "),r+=t);return r}const zs=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=zs(e[r]))&&(n&&(n+=" "),n+=t);return n};function Fs(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Ps(e.cacheSize),parseClassName:Rs(e),sortModifiers:Ls(e),...Ss(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Bs);let l="";for(let c=a.length-1;c>=0;c-=1){const e=a[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(s.includes(g))continue;s.push(g);const y=o(m,h);for(let n=0;n<y.length;++n){const e=y[n];s.push(b+e)}l=e+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(Us.apply(null,arguments))}}const Gs=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Hs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ks=/^\d+\/\d+$/,Ws=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$s=/\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$/,Xs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ys=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Js=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zs=e=>Ks.test(e),Qs=e=>!!e&&!Number.isNaN(Number(e)),ea=e=>!!e&&Number.isInteger(Number(e)),ta=e=>e.endsWith("%")&&Qs(e.slice(0,-1)),na=e=>Ws.test(e),ra=()=>!0,oa=e=>$s.test(e)&&!Xs.test(e),ia=()=>!1,sa=e=>Ys.test(e),aa=e=>Js.test(e),la=e=>!ua(e)&&!va(e),ca=e=>Oa(e,Sa,ia),ua=e=>Hs.test(e),da=e=>Oa(e,Aa,oa),pa=e=>Oa(e,Ca,Qs),fa=e=>Oa(e,Na,ia),ha=e=>Oa(e,ka,aa),ma=e=>Oa(e,Va,sa),va=e=>qs.test(e),ba=e=>xa(e,Aa),ga=e=>xa(e,Ta),ya=e=>xa(e,Na),_a=e=>xa(e,Sa),wa=e=>xa(e,ka),Ea=e=>xa(e,Va,!0),Oa=(e,t,n)=>{const r=Hs.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},xa=(e,t,n=!1)=>{const r=qs.exec(e);return!!r&&(r[1]?t(r[1]):n)},Na=e=>"position"===e||"percentage"===e,ka=e=>"image"===e||"url"===e,Sa=e=>"length"===e||"size"===e||"bg-size"===e,Aa=e=>"length"===e,Ca=e=>"number"===e,Ta=e=>"family-name"===e,Va=e=>"shadow"===e,Ma=Fs(()=>{const e=Gs("color"),t=Gs("font"),n=Gs("text"),r=Gs("font-weight"),o=Gs("tracking"),i=Gs("leading"),s=Gs("breakpoint"),a=Gs("container"),l=Gs("spacing"),c=Gs("radius"),u=Gs("shadow"),d=Gs("inset-shadow"),p=Gs("text-shadow"),f=Gs("drop-shadow"),h=Gs("blur"),m=Gs("perspective"),v=Gs("aspect"),b=Gs("ease"),g=Gs("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",va,ua],_=()=>[va,ua,l],w=()=>[Zs,"full","auto",..._()],E=()=>[ea,"none","subgrid",va,ua],O=()=>["auto",{span:["full",ea,va,ua]},ea,va,ua],x=()=>[ea,"auto",va,ua],N=()=>["auto","min","max","fr",va,ua],k=()=>["auto",..._()],S=()=>[Zs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],A=()=>[e,va,ua],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ya,fa,{position:[va,ua]}],T=()=>["auto","cover","contain",_a,ca,{size:[va,ua]}],V=()=>[ta,ba,da],M=()=>["","none","full",c,va,ua],D=()=>["",Qs,ba,da],j=()=>[Qs,ta,ya,fa],P=()=>["","none",h,va,ua],R=()=>["none",Qs,va,ua],I=()=>["none",Qs,va,ua],L=()=>[Qs,va,ua],B=()=>[Zs,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[na],breakpoint:[na],color:[ra],container:[na],"drop-shadow":[na],ease:["in","out","in-out"],font:[la],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[na],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[na],shadow:[na],spacing:["px",Qs],text:[na],"text-shadow":[na],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zs,ua,va,v]}],container:["container"],columns:[{columns:[Qs,ua,va,a]}],"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:[ea,"auto",va,ua]}],basis:[{basis:[Zs,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qs,Zs,"auto","initial","none",ua]}],grow:[{grow:["",Qs,va,ua]}],shrink:[{shrink:["",Qs,va,ua]}],order:[{order:[ea,"first","last","none",va,ua]}],"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:[a,"screen",...S()]}],"min-w":[{"min-w":[a,"screen","none",...S()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...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,ba,da]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,va,pa]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ta,ua]}],"font-family":[{font:[ga,ua,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,va,ua]}],"line-clamp":[{"line-clamp":[Qs,"none",va,pa]}],leading:[{leading:[i,..._()]}],"list-image":[{"list-image":["none",va,ua]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",va,ua]}],"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:[Qs,"from-font","auto",va,da]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Qs,"auto",va,ua]}],"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",va,ua]}],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",va,ua]}],"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"]},ea,va,ua],radial:["",va,ua],conic:[ea,va,ua]},wa,ha]}],"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:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"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":[Qs,va,ua]}],"outline-w":[{outline:["",Qs,ba,da]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,Ea,ma]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,Ea,ma]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Qs,da]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,Ea,ma]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Qs,va,ua]}],"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":[Qs]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"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":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"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":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"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":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"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":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"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":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"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":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[va,ua]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"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":[Qs]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"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",va,ua]}],filter:[{filter:["","none",va,ua]}],blur:[{blur:P()}],brightness:[{brightness:[Qs,va,ua]}],contrast:[{contrast:[Qs,va,ua]}],"drop-shadow":[{"drop-shadow":["","none",f,Ea,ma]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Qs,va,ua]}],"hue-rotate":[{"hue-rotate":[Qs,va,ua]}],invert:[{invert:["",Qs,va,ua]}],saturate:[{saturate:[Qs,va,ua]}],sepia:[{sepia:["",Qs,va,ua]}],"backdrop-filter":[{"backdrop-filter":["","none",va,ua]}],"backdrop-blur":[{"backdrop-blur":P()}],"backdrop-brightness":[{"backdrop-brightness":[Qs,va,ua]}],"backdrop-contrast":[{"backdrop-contrast":[Qs,va,ua]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qs,va,ua]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qs,va,ua]}],"backdrop-invert":[{"backdrop-invert":["",Qs,va,ua]}],"backdrop-opacity":[{"backdrop-opacity":[Qs,va,ua]}],"backdrop-saturate":[{"backdrop-saturate":[Qs,va,ua]}],"backdrop-sepia":[{"backdrop-sepia":["",Qs,va,ua]}],"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",va,ua]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qs,"initial",va,ua]}],ease:[{ease:["linear","initial",b,va,ua]}],delay:[{delay:[Qs,va,ua]}],animate:[{animate:["none",g,va,ua]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,va,ua]}],"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:[va,ua,"","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",va,ua]}],"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",va,ua]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Qs,ba,da,pa]}],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"]}}),Da=(...e)=>Ma(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ks(e))&&(r&&(r+=" "),r+=t);return r}(...e)),ja={static:"static_g5P-G",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"},Pa=vo(()=>{const e=hs();return _.jsxs("button",{className:Da(ja.vmButton,{[ja.opened]:e.devtools.isOpened},e.devtools.config.buttonClassName),"data-position":`${e.devtools.config.position}`,ref:e.devtools.buttonRef,onClick:e.devtools.handleToggleOpen,children:[_.jsx("img",{src:e.devtools.logoUrl}),_.jsx("div",{}),_.jsx("span",{children:e.devtools.allVms.length})]})}),Ra=null,{min:Ia,max:La,abs:Ba,floor:Ua}=Math,za=(e,t,n)=>Ia(n,La(t,e)),Fa=e=>[...e].sort((e,t)=>e-t),Ga="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)},Ha=()=>{let e;return[new Promise(t=>{e=t}),e]},qa=e=>{let t;return()=>(e&&(t=e(),e=void 0),t)},Ka=(e,t,n)=>{const r=n?"unshift":"push";for(let o=0;o<t;o++)e[r](-1);return e},Wa=(e,t)=>{const n=e.t[t];return-1===n?e.o:n},$a=(e,t,n)=>{const r=-1===e.t[t];return e.t[t]=n,e.i=Ia(t,e.i),r},Xa=(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+=Wa(e,n),e.u[++n]=r;return e.i=t,r},Ya=(e,t,n=0,r=e.l-1)=>{for(;n<=r;){const o=Ua((n+r)/2);if(Xa(e,o)<=t){if(Xa(e,o+1)>t)return o;n=o+1}else r=o-1}return za(n,0,e.l-1)},Ja=(e,t,n)=>{const r=t-e.l;return e.i=n?-1:Ia(t-1,e.i),e.l=t,r>0?(Ka(e.u,r),Ka(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))},Za="undefined"!=typeof window,Qa=()=>document.documentElement,el=qa(()=>!!Za&&"rtl"===getComputedStyle(Qa()).direction),tl=qa(()=>!!/iP(hone|od|ad)/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0),nl=qa(()=>"scrollBehavior"in Qa().style),rl=setTimeout,ol=(e,t)=>t&&el()?-e:e,il=(e,t)=>{let n,r,o=Ha();const i=t?"scrollLeft":"scrollTop",s=t?"overflowX":"overflowY",[a,l]=((e,t,n)=>{let r;return[async(o,i)=>{if(!(await t()))return;r&&r();const s=()=>{const[t,n]=Ha();return r=()=>{n(!1)},e.p()&&rl(r,150),[t,e.B(2,()=>{n(!0)})]};if(i&&nl())e.J(8,o()),Ga(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]=s();try{if(!(await n))return}finally{r()}}e.J(7),n(o(),i)});else for(;;){const[t,r]=s();try{if(e.J(7),n(o()),!(await t))return}finally{r()}}},()=>{r&&r()}]})(e,()=>o[0],(e,r)=>{e=ol(e,t),r?n.scrollTo({[t?"left":"top"]:e,behavior:"smooth"}):n[i]=e});return{P(a){n=a,r=((e,t,n,r,o)=>{const i=Date.now;let s=0,a=!1,l=!1,c=!1,u=!1;const d=(()=>{let t;const n=()=>{t!=Ra&&clearTimeout(t)},r=()=>{n(),t=rl(()=>{t=Ra,(()=>{if(a||l)return a=!1,void d();c=!1,e.J(2)})()},150)};return r.A=n,r})(),p=()=>{s=i(),c&&(u=!0),e.J(1,r()),d()},f=t=>{if(a||!e.H()||t.ctrlKey)return;const r=i()-s;150>r&&50<r&&(n?t.deltaX:t.deltaY)&&(a=!0)},h=()=>{l=!0,c=u=!1},m=()=>{l=!1,tl()&&(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(ol(t,n),i,u),u=!1,i&&e.p()>e.h()&&e.J(1,r()))}}})(e,a,t,()=>ol(a[i],t),(t,n,r)=>{if(r){const e=a.style,t=e[s];e[s]="hidden",rl(()=>{e[s]=t})}a[i]=e.C()+t,n&&l()}),o[1](!0)},v(){r&&r.L(),o[1](!1),o=Ha()},V(e){a(()=>e)},X(t){t+=e.C(),a(()=>t)},Y(t,{align:n,smooth:r,offset:o=0}={}){if(t=za(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"}}a(()=>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()}}},sl=(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:s,contentRect:a}of t)if(s.offsetParent)if(s===n)e.J(4,a[r]);else{const e=o.get(s);e!=Ra&&i.push([e,a[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}},al=Za?y.useLayoutEffect:y.useEffect,ll="current",cl=(e,t)=>{if(Array.isArray(e))for(const n of e)cl(n,t);else null==e||"boolean"==typeof e||t.push(e)},ul=e=>{const t=y.useRef(e);return al(()=>{t[ll]=e},[e]),t},dl=y.memo(({Z:e,ee:t,te:n,oe:r,ne:o,re:i,ie:s,se:a})=>{const l=y.useRef(null);al(()=>t(l[ll],n),[n]);const c=y.useMemo(()=>{const e={contain:"layout style",position:o&&a?void 0:"absolute",[s?"height":"width"]:"100%",[s?"top":"left"]:0,[s?el()?"right":"left":"top"]:r,visibility:!o||a?"visible":"hidden"};return s&&(e.display="inline-flex"),e},[r,o,a,s]);return _.jsx(i,"string"==typeof i?{ref:l,style:c,children:e}:{ref:l,style:c,index:n,children:e})}),pl=y.forwardRef(({children:e,data:t,bufferSize:n,itemSize:r,shift:o,horizontal:i,keepMounted:s,cache:a,startMargin:l=0,ssrCount:c,as:u="div",item:d="div",scrollRef:p,onScroll:f,onScrollEnd:h},m)=>{const[v,b]=((e,t)=>y.useMemo(()=>{if("function"==typeof e)return[n=>e(t[n],n),t.length];const n=(e=>{const t=[];return cl(e,t),t})(e);return[e=>n[e],n.length]},[e,t]))(e,t),g=y.useRef(null),E=y.useRef(!!c),O=ul(f),x=ul(h),[N,k,S,A]=(e=>{const t=y.useRef(null);return t[ll]||(t[ll]=e())})(()=>{const e=!!i,t=((e,t=40,n=0,r,o=!1)=>{let i=!!n,s=1,a=0,l=0,c=0,u=0,d=0,p=0,f=0,h=0,m=Ra,v=[0,i?La(n-1,0):-1],b=0;const g=(A=e,C=t,{o:(T=r)?T[1]:C,t:T&&T[0]?Ka(T[0].slice(0,Ia(A,T[0].length)),La(0,A-T[0].length)):Ka([],A),l:A,i:-1,u:Ka([],A+1)}),y=new Set,_=()=>c-l,w=()=>_()+d+u,E=(e,t)=>((e,t,n,r)=>{if(r=Ia(r,e.l-1),Xa(e,r)<=t){const o=Ya(e,n,r);return[Ya(e,t,r,o),o]}{const o=Ya(e,t,void 0,r);return[o,Ya(e,n,o)]}})(g,e,t,v[0]),O=()=>Xa(g,g.l),x=e=>Xa(g,e)-d,N=e=>Wa(g,e),k=(e,t=-1)=>g.t[e]===t,S=e=>{e&&(tl()&&0!==f||m&&1===h?d+=e:u+=e)};var A,C,T;return{v:()=>{y.clear()},m:()=>s,_:()=>(e=>[e.t.slice(),e.o])(g),S:(e=200)=>{if(!a||i)return v;let t,n;if(p)[t,n]=v;else{let r=La(0,w()),i=r+a;o||(e=La(0,e),1!==f&&(r-=e),2!==f&&(i+=e)),[t,n]=v=E(La(0,r),La(0,i)),m&&(t=Ia(t,m[0]),n=La(n,m[1]))}return[La(t,0),Ia(n,g.l-1)]},$:()=>Ya(g,w()),I:()=>Ya(g,w()+a),k:k,R:x,T:N,M:()=>g.l,C:()=>c,H:()=>0!==f,p:()=>a,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=Ba(n);e&&o<Ba(e)+1||0!==h||(f=n<0?2:1),i&&(i=!1),c=t,v=4;const s=_();s>=-a&&s<=O()&&(v+=1,r=o>a);break}case 2:v=8,0!==f&&(n=!0,v+=1),f=0,h=0,m=Ra;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=$a(g,t,n);o&&(b+=r?n:n-e)}o&&a&&b>a&&(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=Fa(r),i=o.length,s=i/2|0,a=i%2==0?(o[s-1]+o[s])/2:o[s],l=e.o;return((e.o=a)-l)*La(t-n,0)})(g,Ya(g,w()))),o=!1),v=3,r=!0;break}case 4:a!==t&&(a||(r=!0),a=t,v=3);break;case 5:t[1]?(S(Ja(g,t[0],!0)),h=2,v=1):(Ja(g,t[0]),v=1);break;case 6:l=t;break;case 7:h=1;break;case 8:m=E(t,t+a),v=1}v&&(s=1+(2147483647&s),n&&d&&(u+=d,d=0),y.forEach(([e,t])=>{v&e&&t(r)}))}}})(b,r,c,a,!r);return[t,sl(t,e),il(t,e),e]});b!==N.M()&&N.J(5,[b,o]),l!==N.W()&&N.J(6,l);const[C,T]=y.useReducer(N.m,void 0,N.m),V=N.H(),M=N.h(),D=[],j=e=>{const t=v(e);return _.jsx(dl,{ee:k.F,te:e,oe:N.R(e),ne:N.k(e),re:d,Z:t,ie:A,se:E[ll]},((e,t)=>{const n=e.key;return null!=n?n:"_"+t})(t,e))};if(al(()=>{E[ll]=!1,N.B(1,e=>{e?w.flushSync(T):T()}),N.B(4,()=>{O[ll]&&O[ll](N.C())}),N.B(8,()=>{x[ll]&&x[ll]()});const e=e=>{k.U(e),S.P(e)};return p?Ga(()=>{p[ll]&&e(p[ll])}):e(g[ll].parentElement),()=>{N.v(),k.v(),S.v()}},[]),al(()=>{S.j()},[C]),y.useImperativeHandle(m,()=>({get cache(){return N._()},get scrollOffset(){return N.C()},get scrollSize(){return La((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}),[]),s){const e=new Set(s);for(let[t,r]=N.S(n);t<=r;t++)e.add(t);Fa([...e]).forEach(e=>{D.push(j(e))})}else for(let[y,_]=N.S(n);y<=_;y++)D.push(j(y));return _.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:D})}),fl=({expandable:e,expanded:t,onClick:n,disabled:r})=>_.jsx("span",{onClick:n,className:Da(ja.expandButton,{[ja.expandable]:e,[ja.expanded]:t,[ja.disabled]:r}),children:e&&_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",children:_.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"})})}),hl=vo(e=>{const{name:t,value:n}=e,r=hs(),o=r.isPathExpanded(e.path),i=Object.keys(n),s=i.length>0;return _.jsxs(_.Fragment,{children:[_.jsxs("div",{className:Da(ja.line,ja.property,ja.array),style:{"--level":e.level,"--order":e.order},onClick:()=>r.handleExpandPropertyClick(e.path),"data-fitted":e.isFitted,children:[_.jsx(fl,{expandable:n.length>0,expanded:o}),_.jsx("span",{className:ja.propertyName,children:t}),_.jsx("span",{className:ja.propertyMeta,children:": "}),_.jsx("span",{className:ja.propertyValue,children:s?"[...]":"[]"})]}),o&&_.jsx("div",{className:ja.propertyExpandedContent,children:i.map((t,r)=>y.createElement(El,{...e,name:t,order:r,value:n[t],key:t,path:`${e.path}.${t}`,level:e.level+1}))})]})}),ml=vo(e=>{const{name:t,value:n,valueType:r}=e,o=Array.from({length:n.length},(e,t)=>`arg${t+1}`);return _.jsxs("div",{className:Da(ja.line,ja.property,ja.function),title:String(n),style:{"--level":e.level,"--order":e.order},"data-fitted":e.isFitted,children:[_.jsx(fl,{}),r.includes("Async")&&_.jsx("span",{className:Da(ja.propertyMeta,ja.small),children:"async "}),_.jsx("span",{className:ja.propertyName,children:t}),_.jsx("span",{className:ja.propertyMeta,children:`(${o.join(", ")})`})]})}),vl=new Set(["constructor"]),bl=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 gl(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)vl.has(n)||t.add(n);const r=Object.getPrototypeOf(n);if(bl.has(r))break;n=r}return Array.from(t)}const yl=vo(e=>{const{name:t,value:n}=e,r=hs(),o=r.isPathExpanded(e.path),i=n.constructor.name,s=gl(n);return _.jsxs(_.Fragment,{children:[_.jsxs("div",{className:Da(ja.line,ja.property,ja.instance),style:{"--level":e.level,"--order":e.order},onClick:()=>r.handleExpandPropertyClick(e.path),"data-fitted":e.isFitted,children:[_.jsx(fl,{expandable:!0,expanded:o}),_.jsx("span",{className:ja.propertyName,children:t}),_.jsx("span",{className:ja.propertyMeta,children:": "}),_.jsx("span",{className:ja.propertyValue,children:`${i}`})]}),o&&s.map((t,r)=>y.createElement(El,{...e,name:t,order:r,value:n[t],key:t,path:`${e.path}.${t}`,level:e.level+1}))]})}),_l=vo(e=>{const{name:t,value:n}=e,r=hs(),o=r.isPathExpanded(e.path),i=gl(n),s=i.length>0;return _.jsxs(_.Fragment,{children:[_.jsxs("div",{className:Da(ja.line,ja.property,ja.object),style:{"--level":e.level,"--order":e.order},onClick:()=>r.handleExpandPropertyClick(e.path),"data-fitted":e.isFitted,children:[_.jsx(fl,{expandable:s,expanded:o}),_.jsx("span",{className:ja.propertyName,children:t}),_.jsx("span",{className:ja.propertyMeta,children:": "}),_.jsx("span",{className:ja.propertyValue,children:s?"{...}":"{}"})]}),o&&i.map((t,r)=>y.createElement(El,{...e,name:t,order:r,value:n[t],key:t,path:`${e.path}.${t}`,level:e.level+1}))]})}),wl=vo(e=>{const{name:t,value:n}=e,r=typeof n;return _.jsxs("div",{className:Da(ja.line,ja.property,ja.primitive,ja[r]),style:{"--level":e.level,"--order":e.order},"data-fitted":e.isFitted,title:String(n),children:[_.jsx(fl,{}),_.jsx("span",{className:ja.propertyName,children:t}),_.jsx("span",{className:ja.propertyMeta,children:": "}),_.jsx("span",{className:ja.propertyValue,children:"symbol"===r?"Symbol":"string"===r?`"${n}"`:`${n}`})]})}),El=vo(e=>{const{value:t}=e,n=Object.prototype.toString.call(t),r={...e,value:t,valueType:n};return Array.isArray(t)?_.jsx(hl,{...r}):$o.isObject(t)&&t.constructor?.name&&"Object"!==t.constructor.name?_.jsx(yl,{...r}):$o.isFunction(t)?_.jsx(ml,{...r}):$o.isObject(t)?_.jsx(_l,{...r}):n.startsWith("[object ")&&t&&"object"==typeof t&&"constructor"in t?_.jsx(yl,{...r}):_.jsx(wl,{...r})}),Ol=vs(class extends Es{devtools=this.payload.devtools;constructor(e){super({...e,vmConfig:{observable:{viewModels:{useDecorators:!1},viewModelStores:{useDecorators:!1}}}}),$n(this,{handleExpandPropertyClick:vn,handleVmItemHeaderClick:vn})}isPathExpanded(e){return this.devtools.checkIsPathExpanded(this.payload.vmItem,e)}handleExpandPropertyClick(e){this.devtools.handleExpandPropertyClick(this.payload.vmItem,e)}handleVmItemHeaderClick(e){this.devtools.handleVmItemHeaderClick(e)}},({model:e})=>{const t=e.payload.vmItem,n=e.devtools.isExpanded(t),r=e.devtools.getVMFittedInfo(t);return _.jsxs(_.Fragment,{children:[_.jsx("div",{className:Da(ja.line,ja.vmTreeItem),"data-fitted":r.isFittedByName||r.isFittedById,style:{"--level":t.depth},children:_.jsxs("header",{onClick:()=>e.handleVmItemHeaderClick(t),children:[_.jsx(fl,{expandable:t.children.length>0,expanded:n,disabled:e.devtools.isAllVmsExpandedByDefault}),_.jsx("label",{title:t.displayName,children:t.displayName}),_.jsx("span",{title:t.vm.id,children:t.vm.id})]})}),t.properties.map((n,r)=>_.jsx(El,{vmItem:t,name:n,order:r,value:t.vm[n],isFitted:e.devtools.checkIsPropertyFitted(t,n),level:t.depth,path:n},n)),n&&t.children.map(t=>_.jsx(Ol,{payload:{vmItem:t,devtools:e.devtools}},t.key))]})}),xl=vo(({className:e,headerContent:t,...n})=>{const r=hs();return _.jsxs("div",{...n,className:Da(ja.vmContent,e),ref:r.devtools.containerRef,children:[_.jsxs("header",{children:[_.jsx("span",{children:"mobx-view-model devtools"}),t]}),_.jsx("div",{className:ja.vmContentFilters,children:_.jsx("input",{value:r.devtools.search,ref:r.devtools.inputRef,autoFocus:!0,placeholder:"search by property path or ViewModel name",onChange:r.devtools.handleSearchChange})}),_.jsx("div",{className:ja.vmContentTree,children:_.jsx(pl,{children:r.devtools.vmTree.map(e=>_.jsx(Ol,{payload:{vmItem:e,devtools:r.devtools}},e.key))})})]})}),Nl=vo(()=>{const e=hs();return _.jsx(xl,{className:ja.vmPopup,"data-position":`${e.devtools.config.position}`,headerContent:_.jsx("button",{onClick:e.devtools.handleToggleOpen,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",children:_.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"})})})})}),kl=vs(class extends _s{devtools=this.payload.devtools},({model:e})=>_.jsx(ms,{value:e.devtools.vmStore,children:_.jsxs(rs,{value:e,children:[_.jsx(Pa,{}),e.devtools.isOpened&&"popup"===e.devtools.displayType&&_.jsx(Nl,{})]})}));class Sl extends AbortController{constructor(...e){super(),this.link(...e)}link(...e){e.forEach(e=>{e?.addEventListener("abort",()=>{this.abort(e.reason)})})}}const Al=(e,...t)=>"function"==typeof e?e(...t):e;let Cl=class{constructor(e){if(this.config=e,this.abortController=new Sl(e.abortSignal),this.activateStrategy=this.config.activateStrategy??{type:"immidiately"},this.isActivated=!("immidiately"!==this.activateStrategy.type),it.ref(this,"isActivated"),ct.struct(this,"actions"),vn.bound(this,"handleKeyboardClick"),$n(this),"element-focus"===this.activateStrategy.type){const e=this.activateStrategy.ref;let t=new Sl;En(()=>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 Sl(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 Al(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(!Al(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 Tl extends Cl{constructor(e){super({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})}}]})}}const Vl=(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},Ml=()=>{const e=Xo({meta:{focused:!1},onSet:t=>{document.activeElement===t&&gn(()=>{e.meta.focused=!0}),t.addEventListener("focus",vn(()=>{e.meta.focused=!0})),t.addEventListener("blur",vn(()=>{e.meta.focused=!1}))}});return e};e=[ct];const Dl=class e{constructor(e){((e,t,n,r)=>{for(var o=0,i=e[t>>1],s=i&&i.length;o<s;o++)1&t?i[o].call(n):r=i[o].call(n,r)})(t,5,this),f(this,"isOpened"),f(this,"displayType"),f(this,"vmStore"),f(this,"projectVmStore"),f(this,"isAllVmsExpandedByDefault"),f(this,"expandedVmItemsPaths"),f(this,"logoUrl"),f(this,"inputRef"),f(this,"containerRef"),f(this,"buttonRef"),f(this,"keyboardHandler"),f(this,"search"),f(this,"expandedVmsSet"),f(this,"handleSearchChange",e=>{this.search=e.target.value}),f(this,"handleToggleOpen",()=>{this.isOpened=!this.isOpened}),this.config=e,this.isOpened=!!this.config.defaultIsOpened,this.search="",this.displayType="popup",this.vmStore=new ws,this.projectVmStore=this.config.viewModels,this.expandedVmsSet=it.set(),this.isAllVmsExpandedByDefault=!0,this.expandedVmItemsPaths=it.set(),this.logoUrl="https://js2me.github.io/mobx-view-model/logo.png",this.inputRef=Ml(),this.containerRef=Ml(),this.buttonRef=Xo(),this.keyboardHandler=new Tl(this),$n(this,{isOpened:it.ref,isAllVmsExpandedByDefault:it,search:it.ref,handleToggleOpen:vn,handleExpandPropertyClick:vn,allVms:ct.struct,vmMap:ct.struct,isInSearch:ct,vmTree:ct.struct,rootVms:ct.struct,handleSearchChange:vn})}get vmMap(){return this.getViewModelsMap()}get allVms(){return[...this.vmMap.values()].filter(e=>!Es.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),s=i?.parentViewModel||null,a=t.constructor.name,l={parent:s?n(s,r-1):null,vm:t,displayName:a,children:[],depth:r,key:`${a}-${t.id}-${r}`,properties:gl(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=Vl(e.vm,this.search);o||"."!==this.search.at(-1)||(o=Vl(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=Vl(e.vm,t):(o=!0,r=!0),i=t.toLowerCase().trim()}e.properties.forEach(e=>{let s=!1;if(r)s=!0;else{const t=e.toLowerCase().trim();(t.includes(i)||"."!==i&&`.${t}`.includes(i))&&(s=!0)}if(o){i.split(".")[0]===e&&(s=!0)}t||(t=s),s&&n.push(e)});const s=!!e.vm.id&&e.vm.id.includes(this.formattedSearch),a=r||s||t||o;return this.searchCache.set(e.key,{isFitted:a,isFittedById:s,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.config.viewModels??this.projectVmStore;return e?.viewModels??new Map}render(){const e=this.config.containerId??"view-model-devtools";let t=document.querySelector(`#${e}`);t||(t=document.createElement("div"),t.style="display: contents;",t.id=e,document.body.appendChild(t));Ns.createRoot(t).render(y.createElement(kl,{payload:{devtools:this}}))}static connect(t){new e(t)}};var jl;jl=null,((e,t,n,i,a,f)=>{var h,y,_,w,E,O=7&t,x=!!(8&t),N=!!(16&t),k=O>3?e.length+1:O?x?1:2:0,S=c[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)&&o(O<4?a:{get[n](){return v(this,f)},set[n](e){return b(this,f,e)}},n));O?N&&O<4&&l(f,(O>2?"set ":O>1?"get ":"")+n):l(a,n);for(var V=i.length-1;V>=0;V--)w=d(O,n,_={},e[3],C),O&&(w.static=x,w.private=N,E=w.access={has:N?e=>m(a,e):e=>n in e},3^O&&(E.get=N?e=>(1^O?v:g)(e,a,4^O?f:T.get):e=>e[n]),O>2&&(E.set=N?(e,t)=>b(e,a,t,4^O?f:T.set):(e,t)=>e[n]=t)),y=(0,i[V])(O?O<4?N?f:T[S]:O>4?void 0:{get:T.get,set:T.set}:a,w),_._=1,4^O||void 0===y?u(y)&&(O>4?A.unshift(y):O?N?f=y:T[S]=y:a=y):"object"!=typeof y||null===y?s("Object expected"):(u(h=y.get)&&(T.get=h),u(h=y.set)&&(T.set=h),u(h=y.init)&&A.unshift(h));O||p(e,a),T&&r(a,n,T)})(t=[,,,n(jl?.[i("metadata")]??null)],2,"searchCache",e,Dl),p(t,Dl);let Pl=Dl;exports.ViewModelDevtools=Pl;
package/index.d.ts ADDED
@@ -0,0 +1,80 @@
1
+ import { ObservableSet } from 'mobx';
2
+ import { AnyViewModelSimple, AnyViewModel, ViewModelStoreBase } from 'mobx-view-model';
3
+ import { ChangeEventHandler } from 'react';
4
+ import { Ref } from 'yummies/mobx';
5
+ import { Maybe, AnyObject } from 'yummies/types';
6
+ import { KeyboardHandler as KeyboardHandler$1, KeyboardHandlerAction } from 'mobx-swiss-knife';
7
+
8
+ declare class KeyboardHandler extends KeyboardHandler$1<KeyboardHandlerAction> {
9
+ constructor(devtools: ViewModelDevtools);
10
+ }
11
+
12
+ type AnyVM = AnyViewModelSimple | AnyViewModel;
13
+ type VmTreeItem = {
14
+ parent: Maybe<VmTreeItem>;
15
+ vm: AnyVM;
16
+ displayName: string;
17
+ children: VmTreeItem[];
18
+ depth: number;
19
+ key: string;
20
+ properties: string[];
21
+ };
22
+ interface VMFittedInfo {
23
+ isFitted: boolean;
24
+ isFittedById?: boolean;
25
+ isFittedByName?: boolean;
26
+ isFittedByPropertyPath?: boolean;
27
+ fittedProperties: string[];
28
+ }
29
+
30
+ interface FocusableRef<T extends HTMLElement = HTMLElement> extends Ref<T, {
31
+ focused: boolean;
32
+ }> {
33
+ }
34
+
35
+ interface ViewModelDevtoolsConfig {
36
+ containerId?: string;
37
+ defaultIsOpened?: boolean;
38
+ viewModels: ViewModelStoreBase;
39
+ position?: 'top-right' | 'top-left' | 'bottom-left' | 'bottom-right';
40
+ buttonClassName?: string;
41
+ extras?: AnyObject;
42
+ }
43
+ declare class ViewModelDevtools {
44
+ config: ViewModelDevtoolsConfig;
45
+ isOpened: boolean;
46
+ displayType: string;
47
+ vmStore: ViewModelStoreBase;
48
+ projectVmStore: ViewModelStoreBase<AnyViewModel>;
49
+ isAllVmsExpandedByDefault: boolean;
50
+ expandedVmItemsPaths: ObservableSet<string>;
51
+ logoUrl: string;
52
+ inputRef: FocusableRef<HTMLInputElement>;
53
+ containerRef: FocusableRef<HTMLDivElement>;
54
+ buttonRef: Ref<HTMLButtonElement>;
55
+ keyboardHandler: KeyboardHandler;
56
+ search: string;
57
+ private expandedVmsSet;
58
+ private get vmMap();
59
+ get allVms(): AnyVM[];
60
+ get rootVms(): AnyVM[];
61
+ get formattedSearch(): string;
62
+ get vmTree(): VmTreeItem[];
63
+ get isInSearch(): boolean;
64
+ private get searchCache();
65
+ getVMFittedInfo(vmTreeItem: VmTreeItem): VMFittedInfo;
66
+ checkIsPropertyFitted(vmItem: VmTreeItem, property: string): boolean;
67
+ isExpanded(vmItem: VmTreeItem): boolean;
68
+ checkIsPathExpanded(vmItem: VmTreeItem, path: string): boolean;
69
+ handleExpandPropertyClick(vmItem: VmTreeItem, path: string): void;
70
+ handleVmItemHeaderClick(vmItem: VmTreeItem): void;
71
+ handleSearchChange: ChangeEventHandler<HTMLInputElement>;
72
+ handleToggleOpen: () => void;
73
+ private getVmParams;
74
+ private getViewModelsMap;
75
+ constructor(config: ViewModelDevtoolsConfig);
76
+ render(): void;
77
+ static connect(config: ViewModelDevtoolsConfig): void;
78
+ }
79
+
80
+ export { ViewModelDevtools };