@sticky-studio-npm/ui-core 0.1.21 → 0.1.23

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.
@@ -3777,6 +3777,12 @@ const ws = new Ss(), Ds = z(() => {
3777
3777
  return e ? m("div", { className: "dialogs-wrap", "aria-live": "polite", children: [c("span", { className: "title", children: e?.title }), e?.imagePath && c("img", { className: "dialog-image", src: e.imagePath, alt: e.title ?? "dialog image" }), c("span", { className: "message", children: e?.message }), e.toggle && c(Vt, { checked: e.toggle.value, onChange: () => e.toggle?.onClick() }), c("div", { className: "additional-btns", children: e?.buttons?.map((t, r) => c(js, { configs: t.configs, text: t.text, onClick: t.onClick }, r)) })] }) : null;
3778
3778
  });
3779
3779
  function xs() {
3780
+ if (!document.getElementById("ui-core-css")) {
3781
+ const e = document.createElement("link");
3782
+ e.id = "ui-core-css", e.rel = "stylesheet", e.href = new URL("./ui-core.css", import.meta.url).toString(), document.head.appendChild(e);
3783
+ }
3784
+ }
3785
+ function Ts() {
3780
3786
  return /* @__PURE__ */ m("div", { className: "app", children: [
3781
3787
  /* @__PURE__ */ m("div", { className: "game-container", children: [
3782
3788
  /* @__PURE__ */ c(ds, {}),
@@ -3789,11 +3795,15 @@ function xs() {
3789
3795
  ] })
3790
3796
  ] });
3791
3797
  }
3792
- function ks(e) {
3793
- e ? Lr(e).render(
3794
- /* @__PURE__ */ c(de.StrictMode, { children: /* @__PURE__ */ c(xs, {}) })
3795
- ) : console.error("Целевой DOM-элемент для монтирования UI не найден.");
3798
+ function Ls(e) {
3799
+ if (!e) {
3800
+ console.error("Целевой DOM-элемент для монтирования UI не найден.");
3801
+ return;
3802
+ }
3803
+ xs(), Lr(e).render(
3804
+ /* @__PURE__ */ c(de.StrictMode, { children: /* @__PURE__ */ c(Ts, {}) })
3805
+ );
3796
3806
  }
3797
3807
  export {
3798
- ks as createUi
3808
+ Ls as createUi
3799
3809
  };
@@ -1,13 +1,13 @@
1
- (function(Q,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react"),require("react-dom/client"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom/client","react-dom"],c):(Q=typeof globalThis<"u"?globalThis:Q||self,c(Q.UiCore={},Q.jsxRuntime,Q.React,Q.ReactDOMClient,Q.ReactDOM))})(this,(function(Q,c,m,jr,Tr){"use strict";var xr={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(t,r){return"Cannot apply '"+t+"' to '"+r.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(t,r){return"[mobx.array] Index out of bounds, "+t+" is larger than "+r},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(t){return"Cannot initialize from classes that inherit from Map: "+t.constructor.name},20:function(t){return"Cannot initialize map from "+t},21:function(t){return"Cannot convert to map from '"+t+"'"},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(t){return"Cannot obtain administration from "+t},25:function(t,r){return"the entry '"+t+"' does not exist in the observable map '"+r+"'"},26:"please specify a property",27:function(t,r){return"no observable property '"+t.toString()+"' found on the observable object '"+r+"'"},28:function(t){return"Cannot obtain atom from "+t},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(t,r){return"Cycle detected in computation "+t+": "+r},33:function(t){return"The setter of computed value '"+t+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(t){return"[ComputedValue '"+t+"'] 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(t){return"[mobx] `observableArray."+t+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+t+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},Pr=process.env.NODE_ENV!=="production"?xr:{};function p(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=typeof e=="string"?e:Pr[e];throw typeof i=="function"&&(i=i.apply(null,r)),new Error("[MobX] "+i)}throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var Br={};function Ye(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Br}var on=Object.assign,Je=Object.getOwnPropertyDescriptor,ee=Object.defineProperty,Ze=Object.prototype,Qe=[];Object.freeze(Qe);var sn={};Object.freeze(sn);var Mr=typeof Proxy<"u",kr=Object.toString();function an(){Mr||p(process.env.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Le(e){process.env.NODE_ENV!=="production"&&l.verifyProxies&&p("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function W(){return++l.mobxGuid}function St(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var De=function(){};function S(e){return typeof e=="function"}function _e(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function et(e){return e!==null&&typeof e=="object"}function T(e){if(!et(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===kr}function un(e){var t=e?.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Ie(e,t,r){ee(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function cn(e,t,r){ee(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function be(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return et(n)&&n[r]===!0}}function Ve(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function Lr(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),n=Object.getPrototypeOf(r);return n===null}function ae(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var ln=typeof Object.getOwnPropertySymbols<"u";function Ir(e){var t=Object.keys(e);if(!ln)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(n){return Ze.propertyIsEnumerable.call(e,n)})):t}var Ce=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:ln?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function wt(e){return typeof e=="string"?e:typeof e=="symbol"?e.toString():new String(e).toString()}function fn(e){return e===null?null:typeof e=="object"?""+e:e}function I(e,t){return Ze.hasOwnProperty.call(e,t)}var Ur=Object.getOwnPropertyDescriptors||function(t){var r={};return Ce(t).forEach(function(n){r[n]=Je(t,n)}),r};function x(e,t){return!!(e&t)}function P(e,t,r){return r?e|=t:e&=~t,e}function dn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function $r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kr(n.key),n)}}function je(e,t,r){return t&&$r(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Te(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Gr(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ue.apply(null,arguments)}function pn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dt(e,t)}function Dt(e,t){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Dt(e,t)}function Fr(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kr(e){var t=Fr(e,"string");return typeof t=="symbol"?t:t+""}function Gr(e,t){if(e){if(typeof e=="string")return dn(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dn(e,t):void 0}}var j=Symbol("mobx-stored-annotations");function te(e){function t(r,n){if($e(n))return e.decorate_20223_(r,n);Ue(r,n,e)}return Object.assign(t,e)}function Ue(e,t,r){if(I(e,j)||Ie(e,j,ue({},e[j])),process.env.NODE_ENV!=="production"&&it(r)&&!I(e[j],t)){var n=e.constructor.name+".prototype."+t.toString();p("'"+n+"' is decorated with 'override', but no such decorated member was found on prototype.")}qr(e,r,t),it(r)||(e[j][t]=r)}function qr(e,t,r){if(process.env.NODE_ENV!=="production"&&!it(t)&&I(e[j],r)){var n=e.constructor.name+".prototype."+r.toString(),i=e[j][r].annotationType_,o=t.annotationType_;p("Cannot apply '@"+o+"' to '"+n+"':"+(`
1
+ (function(Q,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react"),require("react-dom/client"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom/client","react-dom"],c):(Q=typeof globalThis<"u"?globalThis:Q||self,c(Q.UiCore={},Q.jsxRuntime,Q.React,Q.ReactDOMClient,Q.ReactDOM))})(this,(function(Q,c,m,Tr,xr){"use strict";var St=typeof document<"u"?document.currentScript:null,Pr={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(t,r){return"Cannot apply '"+t+"' to '"+r.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(t,r){return"[mobx.array] Index out of bounds, "+t+" is larger than "+r},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(t){return"Cannot initialize from classes that inherit from Map: "+t.constructor.name},20:function(t){return"Cannot initialize map from "+t},21:function(t){return"Cannot convert to map from '"+t+"'"},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(t){return"Cannot obtain administration from "+t},25:function(t,r){return"the entry '"+t+"' does not exist in the observable map '"+r+"'"},26:"please specify a property",27:function(t,r){return"no observable property '"+t.toString()+"' found on the observable object '"+r+"'"},28:function(t){return"Cannot obtain atom from "+t},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(t,r){return"Cycle detected in computation "+t+": "+r},33:function(t){return"The setter of computed value '"+t+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(t){return"[ComputedValue '"+t+"'] 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(t){return"[mobx] `observableArray."+t+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+t+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},Br=process.env.NODE_ENV!=="production"?Pr:{};function p(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=typeof e=="string"?e:Br[e];throw typeof i=="function"&&(i=i.apply(null,r)),new Error("[MobX] "+i)}throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var Mr={};function Ye(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Mr}var sn=Object.assign,Je=Object.getOwnPropertyDescriptor,ee=Object.defineProperty,Ze=Object.prototype,Qe=[];Object.freeze(Qe);var an={};Object.freeze(an);var kr=typeof Proxy<"u",Lr=Object.toString();function un(){kr||p(process.env.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Le(e){process.env.NODE_ENV!=="production"&&l.verifyProxies&&p("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function W(){return++l.mobxGuid}function wt(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var De=function(){};function S(e){return typeof e=="function"}function _e(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function et(e){return e!==null&&typeof e=="object"}function T(e){if(!et(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===Lr}function cn(e){var t=e?.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Ie(e,t,r){ee(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function ln(e,t,r){ee(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function be(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return et(n)&&n[r]===!0}}function Ve(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function Ir(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),n=Object.getPrototypeOf(r);return n===null}function ae(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var fn=typeof Object.getOwnPropertySymbols<"u";function Ur(e){var t=Object.keys(e);if(!fn)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(n){return Ze.propertyIsEnumerable.call(e,n)})):t}var Ce=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:fn?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Dt(e){return typeof e=="string"?e:typeof e=="symbol"?e.toString():new String(e).toString()}function dn(e){return e===null?null:typeof e=="object"?""+e:e}function I(e,t){return Ze.hasOwnProperty.call(e,t)}var $r=Object.getOwnPropertyDescriptors||function(t){var r={};return Ce(t).forEach(function(n){r[n]=Je(t,n)}),r};function x(e,t){return!!(e&t)}function P(e,t,r){return r?e|=t:e&=~t,e}function pn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Fr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gr(n.key),n)}}function je(e,t,r){return t&&Fr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Te(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=qr(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ue.apply(null,arguments)}function vn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vt(e,t)}function Vt(e,t){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vt(e,t)}function Kr(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gr(e){var t=Kr(e,"string");return typeof t=="symbol"?t:t+""}function qr(e,t){if(e){if(typeof e=="string")return pn(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pn(e,t):void 0}}var j=Symbol("mobx-stored-annotations");function te(e){function t(r,n){if($e(n))return e.decorate_20223_(r,n);Ue(r,n,e)}return Object.assign(t,e)}function Ue(e,t,r){if(I(e,j)||Ie(e,j,ue({},e[j])),process.env.NODE_ENV!=="production"&&it(r)&&!I(e[j],t)){var n=e.constructor.name+".prototype."+t.toString();p("'"+n+"' is decorated with 'override', but no such decorated member was found on prototype.")}Rr(e,r,t),it(r)||(e[j][t]=r)}function Rr(e,t,r){if(process.env.NODE_ENV!=="production"&&!it(t)&&I(e[j],r)){var n=e.constructor.name+".prototype."+r.toString(),i=e[j][r].annotationType_,o=t.annotationType_;p("Cannot apply '@"+o+"' to '"+n+"':"+(`
3
3
  The field is already decorated with '@`+i+"'.")+`
4
4
  Re-decorating fields is not allowed.
5
- Use '@override' decorator for methods overridden by subclass.`)}}function Rr(e){return I(e,j)||Ie(e,j,ue({},e[j])),e[j]}function $e(e){return typeof e=="object"&&typeof e.kind=="string"}function tt(e,t){process.env.NODE_ENV!=="production"&&!t.includes(e.kind)&&p("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var h=Symbol("mobx administration"),de=(function(){function e(r){r===void 0&&(r=process.env.NODE_ENV!=="production"?"Atom@"+W():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=y.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return xn(this)},t.reportChanged=function(){F(),Pn(this),K()},t.toString=function(){return this.name_},je(e,[{key:"isBeingObserved",get:function(){return x(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=P(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return x(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=P(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return x(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=P(this.flags_,e.diffValueMask_,n===1)}}])})();de.isBeingObservedMask_=1,de.isPendingUnobservationMask_=2,de.diffValueMask_=4;var Vt=be("Atom",de);function vn(e,t,r){t===void 0&&(t=De),r===void 0&&(r=De);var n=new de(e);return t!==De&&ro(n,t),r!==De&&$n(n,r),n}function zr(e,t){return cr(e,t)}function Wr(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var nt={structural:zr,default:Wr};function ge(e,t,r){return Re(e)?e:Array.isArray(e)?D.array(e,{name:r}):T(e)?D.object(e,void 0,{name:r}):Ve(e)?D.map(e,{name:r}):ae(e)?D.set(e,{name:r}):typeof e=="function"&&!Pe(e)&&!qe(e)?un(e)?Be(e):Ge(r,e):e}function Hr(e,t,r){if(e==null||Me(e)||gt(e)||ve(e)||re(e))return e;if(Array.isArray(e))return D.array(e,{name:r,deep:!1});if(T(e))return D.object(e,void 0,{name:r,deep:!1});if(Ve(e))return D.map(e,{name:r,deep:!1});if(ae(e))return D.set(e,{name:r,deep:!1});process.env.NODE_ENV!=="production"&&p("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function rt(e){return e}function Xr(e,t){return process.env.NODE_ENV!=="production"&&Re(e)&&p("observable.struct should not be used with observable values"),cr(e,t)?t:e}var Yr="override";function it(e){return e.annotationType_===Yr}function Fe(e,t){return{annotationType_:e,options_:t,make_:Jr,extend_:Zr,decorate_20223_:Qr}}function Jr(e,t,r,n){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,r,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(Pe(r.value))return 1;var o=hn(e,this,t,r,!1);return ee(n,t,o),2}function Zr(e,t,r,n){var i=hn(e,this,t,r);return e.defineProperty_(t,i,n)}function Qr(e,t){process.env.NODE_ENV!=="production"&&tt(t,["method","field"]);var r=t.kind,n=t.name,i=t.addInitializer,o=this,s=function(f){var d,v,_,b;return me((d=(v=o.options_)==null?void 0:v.name)!=null?d:n.toString(),f,(_=(b=o.options_)==null?void 0:b.autoAction)!=null?_:!1)};if(r=="field")return function(u){var f,d=u;return Pe(d)||(d=s(d)),(f=o.options_)!=null&&f.bound&&(d=d.bind(this),d.isMobxAction=!0),d};if(r=="method"){var a;return Pe(e)||(e=s(e)),(a=this.options_)!=null&&a.bound&&i(function(){var u=this,f=u[n].bind(u);f.isMobxAction=!0,u[n]=f}),e}p("Cannot apply '"+o.annotationType_+"' to '"+String(n)+"' (kind: "+r+"):"+(`
6
- '`+o.annotationType_+"' can only be used on properties with a function value."))}function ei(e,t,r,n){var i=t.annotationType_,o=n.value;process.env.NODE_ENV!=="production"&&!S(o)&&p("Cannot apply '"+i+"' to '"+e.name_+"."+r.toString()+"':"+(`
7
- '`+i+"' can only be used on properties with a function value."))}function hn(e,t,r,n,i){var o,s,a,u,f,d,v;i===void 0&&(i=l.safeDescriptors),ei(e,t,r,n);var _=n.value;if((o=t.options_)!=null&&o.bound){var b;_=_.bind((b=e.proxy_)!=null?b:e.target_)}return{value:me((s=(a=t.options_)==null?void 0:a.name)!=null?s:r.toString(),_,(u=(f=t.options_)==null?void 0:f.autoAction)!=null?u:!1,(d=t.options_)!=null&&d.bound?(v=e.proxy_)!=null?v:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function _n(e,t){return{annotationType_:e,options_:t,make_:ti,extend_:ni,decorate_20223_:ri}}function ti(e,t,r,n){var i;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!I(e.target_,t)||!qe(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(qe(r.value))return 1;var o=bn(e,this,t,r,!1,!1);return ee(n,t,o),2}function ni(e,t,r,n){var i,o=bn(e,this,t,r,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,n)}function ri(e,t){var r;process.env.NODE_ENV!=="production"&&tt(t,["method"]);var n=t.name,i=t.addInitializer;return qe(e)||(e=Be(e)),(r=this.options_)!=null&&r.bound&&i(function(){var o=this,s=o[n].bind(o);s.isMobXFlow=!0,o[n]=s}),e}function ii(e,t,r,n){var i=t.annotationType_,o=n.value;process.env.NODE_ENV!=="production"&&!S(o)&&p("Cannot apply '"+i+"' to '"+e.name_+"."+r.toString()+"':"+(`
8
- '`+i+"' can only be used on properties with a generator function value."))}function bn(e,t,r,n,i,o){o===void 0&&(o=l.safeDescriptors),ii(e,t,r,n);var s=n.value;if(qe(s)||(s=Be(s)),i){var a;s=s.bind((a=e.proxy_)!=null?a:e.target_),s.isMobXFlow=!0}return{value:s,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function Ct(e,t){return{annotationType_:e,options_:t,make_:oi,extend_:si,decorate_20223_:ai}}function oi(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function si(e,t,r,n){return ui(e,this,t,r),e.defineComputedProperty_(t,ue({},this.options_,{get:r.get,set:r.set}),n)}function ai(e,t){process.env.NODE_ENV!=="production"&&tt(t,["getter"]);var r=this,n=t.name,i=t.addInitializer;return i(function(){var o=Se(this)[h],s=ue({},r.options_,{get:e,context:this});s.name||(s.name=process.env.NODE_ENV!=="production"?o.name_+"."+n.toString():"ObservableObject."+n.toString()),o.values_.set(n,new U(s))}),function(){return this[h].getObservablePropValue_(n)}}function ui(e,t,r,n){var i=t.annotationType_,o=n.get;process.env.NODE_ENV!=="production"&&!o&&p("Cannot apply '"+i+"' to '"+e.name_+"."+r.toString()+"':"+(`
9
- '`+i+"' can only be used on getter(+setter) properties."))}function ot(e,t){return{annotationType_:e,options_:t,make_:ci,extend_:li,decorate_20223_:fi}}function ci(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function li(e,t,r,n){var i,o;return di(e,this,t,r),e.defineObservableProperty_(t,r.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:ge,n)}function fi(e,t){if(process.env.NODE_ENV!=="production"){if(t.kind==="field")throw p("Please use `@observable accessor "+String(t.name)+"` instead of `@observable "+String(t.name)+"`");tt(t,["accessor"])}var r=this,n=t.kind,i=t.name,o=new WeakSet;function s(a,u){var f,d,v=Se(a)[h],_=new ye(u,(f=(d=r.options_)==null?void 0:d.enhancer)!=null?f:ge,process.env.NODE_ENV!=="production"?v.name_+"."+i.toString():"ObservableObject."+i.toString(),!1);v.values_.set(i,_),o.add(a)}if(n=="accessor")return{get:function(){return o.has(this)||s(this,e.get.call(this)),this[h].getObservablePropValue_(i)},set:function(u){return o.has(this)||s(this,u),this[h].setObservablePropValue_(i,u)},init:function(u){return o.has(this)||s(this,u),u}}}function di(e,t,r,n){var i=t.annotationType_;process.env.NODE_ENV!=="production"&&!("value"in n)&&p("Cannot apply '"+i+"' to '"+e.name_+"."+r.toString()+"':"+(`
10
- '`+i+"' cannot be used on getter/setter properties"))}var pi="true",vi=gn();function gn(e){return{annotationType_:pi,options_:e,make_:hi,extend_:_i,decorate_20223_:bi}}function hi(e,t,r,n){var i,o;if(r.get)return ut.make_(e,t,r,n);if(r.set){var s=me(t.toString(),r.set);return n===e.target_?e.defineProperty_(t,{configurable:l.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(ee(n,t,{configurable:!0,set:s}),2)}if(n!==e.target_&&typeof r.value=="function"){var a;if(un(r.value)){var u,f=(u=this.options_)!=null&&u.autoBind?Be.bound:Be;return f.make_(e,t,r,n)}var d=(a=this.options_)!=null&&a.autoBind?Ge.bound:Ge;return d.make_(e,t,r,n)}var v=((i=this.options_)==null?void 0:i.deep)===!1?D.ref:D;if(typeof r.value=="function"&&(o=this.options_)!=null&&o.autoBind){var _;r.value=r.value.bind((_=e.proxy_)!=null?_:e.target_)}return v.make_(e,t,r,n)}function _i(e,t,r,n){var i,o;if(r.get)return ut.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:l.safeDescriptors?e.isPlainObject_:!0,set:me(t.toString(),r.set)},n);if(typeof r.value=="function"&&(i=this.options_)!=null&&i.autoBind){var s;r.value=r.value.bind((s=e.proxy_)!=null?s:e.target_)}var a=((o=this.options_)==null?void 0:o.deep)===!1?D.ref:D;return a.extend_(e,t,r,n)}function bi(e,t){p("'"+this.annotationType_+"' cannot be used as a decorator")}var gi="observable",mi="observable.ref",yi="observable.shallow",Oi="observable.struct",mn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(mn);function st(e){return e||mn}var jt=ot(gi),Ei=ot(mi,{enhancer:rt}),Ni=ot(yi,{enhancer:Hr}),Ai=ot(Oi,{enhancer:Xr}),yn=te(jt);function at(e){return e.deep===!0?ge:e.deep===!1?rt:wi(e.defaultDecorator)}function Si(e){var t;return e?(t=e.defaultDecorator)!=null?t:gn(e):void 0}function wi(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:ge}function On(e,t,r){if($e(t))return jt.decorate_20223_(e,t);if(_e(t)){Ue(e,t,jt);return}return Re(e)?e:T(e)?D.object(e,t,r):Array.isArray(e)?D.array(e,t):Ve(e)?D.map(e,t):ae(e)?D.set(e,t):typeof e=="object"&&e!==null?e:D.box(e,t)}on(On,yn);var Di={box:function(t,r){var n=st(r);return new ye(t,at(n),n.name,!0,n.equals)},array:function(t,r){var n=st(r);return(l.useProxies===!1||n.proxy===!1?Co:mo)(t,at(n),n.name)},map:function(t,r){var n=st(r);return new Xn(t,at(n),n.name)},set:function(t,r){var n=st(r);return new Jn(t,at(n),n.name)},object:function(t,r,n){return he(function(){return Kn(l.useProxies===!1||n?.proxy===!1?Se({},n):ho({},n),t,r)})},ref:te(Ei),shallow:te(Ni),deep:yn,struct:te(Ai)},D=on(On,Di),En="computed",Vi="computed.struct",Tt=Ct(En),Ci=Ct(Vi,{equals:nt.structural}),ut=function(t,r){if($e(r))return Tt.decorate_20223_(t,r);if(_e(r))return Ue(t,r,Tt);if(T(t))return te(Ct(En,t));process.env.NODE_ENV!=="production"&&(S(t)||p("First argument to `computed` should be an expression."),S(r)&&p("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=T(r)?r:{};return n.get=t,n.name||(n.name=t.name||""),new U(n)};Object.assign(ut,Tt),ut.struct=te(Ci);var Nn,An,ct=0,ji=1,Ti=(Nn=(An=Je(function(){},"name"))==null?void 0:An.configurable)!=null?Nn:!1,Sn={value:"action",configurable:!0,writable:!1,enumerable:!1};function me(e,t,r,n){r===void 0&&(r=!1),process.env.NODE_ENV!=="production"&&(S(t)||p("`action` can only be invoked on functions"),(typeof e!="string"||!e)&&p("actions should have valid names, got: '"+e+"'"));function i(){return xi(e,r,t,n||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},Ti&&(Sn.value=e,ee(i,"name",Sn)),i}function xi(e,t,r,n,i){var o=Pi(e,t,n,i);try{return r.apply(n,i)}catch(s){throw o.error_=s,s}finally{Bi(o)}}function Pi(e,t,r,n){var i=process.env.NODE_ENV!=="production"&&V()&&!!e,o=0;if(process.env.NODE_ENV!=="production"&&i){o=Date.now();var s=n?Array.from(n):Qe;B({type:It,name:e,object:r,arguments:s})}var a=l.trackingDerivation,u=!t||!a;F();var f=l.allowStateChanges;u&&(Oe(),f=xt(!0));var d=kt(!0),v={runAsAction_:u,prevDerivation_:a,prevAllowStateChanges_:f,prevAllowStateReads_:d,notifySpy_:i,startTime_:o,actionId_:ji++,parentActionId_:ct};return ct=v.actionId_,v}function Bi(e){ct!==e.actionId_&&p(30),ct=e.parentActionId_,e.error_!==void 0&&(l.suppressReactionErrors=!0),Pt(e.prevAllowStateChanges_),Ke(e.prevAllowStateReads_),K(),e.runAsAction_&&ce(e.prevDerivation_),process.env.NODE_ENV!=="production"&&e.notifySpy_&&M({time:Date.now()-e.startTime_}),l.suppressReactionErrors=!1}function xt(e){var t=l.allowStateChanges;return l.allowStateChanges=e,t}function Pt(e){l.allowStateChanges=e}var Mi="create",ye=(function(e){function t(n,i,o,s,a){var u;return o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableValue@"+W():"ObservableValue"),s===void 0&&(s=!0),a===void 0&&(a=nt.default),u=e.call(this,o)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=i,u.name_=o,u.equals=a,u.value_=i(n,void 0,o),process.env.NODE_ENV!=="production"&&s&&V()&&Ee({type:Mi,object:u,observableKind:"value",debugObjectName:u.name_,newValue:""+u.value_}),u}pn(t,e);var r=t.prototype;return r.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},r.set=function(i){var o=this.value_;if(i=this.prepareNewValue_(i),i!==l.UNCHANGED){var s=V();process.env.NODE_ENV!=="production"&&s&&B({type:Y,object:this,observableKind:"value",debugObjectName:this.name_,newValue:i,oldValue:o}),this.setNewValue_(i),process.env.NODE_ENV!=="production"&&s&&M()}},r.prepareNewValue_=function(i){if(ne(this),G(this)){var o=q(this,{object:this,type:Y,newValue:i});if(!o)return l.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?l.UNCHANGED:i},r.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),H(this)&&X(this,{type:Y,object:this,newValue:i,oldValue:o})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(i){return ze(this,i)},r.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:Y,newValue:this.value_,oldValue:void 0}),We(this,i)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return fn(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t})(de),U=(function(){function e(r){this.dependenciesState_=y.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=y.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new ft(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=$.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,r.get||p(31),this.derivation=r.get,this.name_=r.name||(process.env.NODE_ENV!=="production"?"ComputedValue@"+W():"ComputedValue"),r.set&&(this.setter_=me(process.env.NODE_ENV!=="production"?this.name_+"-setter":"ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?nt.structural:nt.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Ki(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing&&p(32,this.name_,this.derivation),l.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Bt(this)&&(this.warnAboutUntrackedRead_(),F(),this.value_=this.computeValue_(!1),K());else if(xn(this),Bt(this)){var n=l.trackingContext;this.keepAlive_&&!n&&(l.trackingContext=this),this.trackAndCompute()&&Fi(this),l.trackingContext=n}var i=this.value_;if(dt(i))throw i.cause;return i},t.set=function(n){if(this.setter_){this.isRunningSetter&&p(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter=!1}}else p(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,i=this.dependenciesState_===y.NOT_TRACKING_,o=this.computeValue_(!0),s=i||dt(n)||dt(o)||!this.equals_(n,o);return s&&(this.value_=o,process.env.NODE_ENV!=="production"&&V()&&Ee({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:n,newValue:o})),s},t.computeValue_=function(n){this.isComputing=!0;var i=xt(!1),o;if(n)o=wn(this,this.derivation,this.scope_);else if(l.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new ft(s)}return Pt(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(Mt(this),this.value_=void 0,process.env.NODE_ENV!=="production"&&this.isTracing_!==$.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},t.observe_=function(n,i){var o=this,s=!0,a=void 0;return Zi(function(){var u=o.get();if(!s||i){var f=Oe();n({observableKind:"computed",debugObjectName:o.name_,type:Y,object:o,newValue:u,oldValue:a}),ce(f)}s=!1,a=u})},t.warnAboutUntrackedRead_=function(){process.env.NODE_ENV!=="production"&&(this.isTracing_!==$.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),(typeof this.requiresReaction_=="boolean"?this.requiresReaction_:l.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 fn(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},je(e,[{key:"isComputing",get:function(){return x(this.flags_,e.isComputingMask_)},set:function(n){this.flags_=P(this.flags_,e.isComputingMask_,n)}},{key:"isRunningSetter",get:function(){return x(this.flags_,e.isRunningSetterMask_)},set:function(n){this.flags_=P(this.flags_,e.isRunningSetterMask_,n)}},{key:"isBeingObserved",get:function(){return x(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=P(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return x(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=P(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return x(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=P(this.flags_,e.diffValueMask_,n===1)}}])})();U.isComputingMask_=1,U.isRunningSetterMask_=2,U.isBeingObservedMask_=4,U.isPendingUnobservationMask_=8,U.diffValueMask_=16;var lt=be("ComputedValue",U),y;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(y||(y={}));var $;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})($||($={}));var ft=function(t){this.cause=void 0,this.cause=t};function dt(e){return e instanceof ft}function Bt(e){switch(e.dependenciesState_){case y.UP_TO_DATE_:return!1;case y.NOT_TRACKING_:case y.STALE_:return!0;case y.POSSIBLY_STALE_:{for(var t=kt(!0),r=Oe(),n=e.observing_,i=n.length,o=0;o<i;o++){var s=n[o];if(lt(s)){if(l.disableErrorBoundaries)s.get();else try{s.get()}catch{return ce(r),Ke(t),!0}if(e.dependenciesState_===y.STALE_)return ce(r),Ke(t),!0}}return Vn(e),ce(r),Ke(t),!1}}}function ne(e){if(process.env.NODE_ENV!=="production"){var t=e.observers_.size>0;!l.allowStateChanges&&(t||l.enforceActions==="always")&&console.warn("[MobX] "+(l.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 ki(e){process.env.NODE_ENV!=="production"&&!l.allowStateReads&&l.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}function wn(e,t,r){var n=kt(!0);Vn(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++l.runId;var i=l.trackingDerivation;l.trackingDerivation=e,l.inBatch++;var o;if(l.disableErrorBoundaries===!0)o=t.call(r);else try{o=t.call(r)}catch(s){o=new ft(s)}return l.inBatch--,l.trackingDerivation=i,Ii(e),Li(e),Ke(n),o}function Li(e){process.env.NODE_ENV!=="production"&&e.observing_.length===0&&(typeof e.requiresObservable_=="boolean"?e.requiresObservable_:l.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}function Ii(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=y.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=r[s];a.diffValue===0&&(a.diffValue=1,i!==s&&(r[i]=a),i++),a.dependenciesState_>n&&(n=a.dependenciesState_)}for(r.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];u.diffValue===0&&jn(u,e),u.diffValue=0}for(;i--;){var f=r[i];f.diffValue===1&&(f.diffValue=0,$i(f,e))}n!==y.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function Mt(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)jn(t[r],e);e.dependenciesState_=y.NOT_TRACKING_}function Dn(e){var t=Oe();try{return e()}finally{ce(t)}}function Oe(){var e=l.trackingDerivation;return l.trackingDerivation=null,e}function ce(e){l.trackingDerivation=e}function kt(e){var t=l.allowStateReads;return l.allowStateReads=e,t}function Ke(e){l.allowStateReads=e}function Vn(e){if(e.dependenciesState_!==y.UP_TO_DATE_){e.dependenciesState_=y.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=y.UP_TO_DATE_}}var pt=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},vt=!0,Cn=!1,l=(function(){var e=Ye();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(vt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new pt().version&&(vt=!1),vt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new pt):(setTimeout(function(){Cn||p(35)},1),new pt)})();function Ui(){if((l.pendingReactions.length||l.inBatch||l.isRunningReactions)&&p(36),Cn=!0,vt){var e=Ye();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),l=new pt}}function $i(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function jn(e,t){e.observers_.delete(t),e.observers_.size===0&&Tn(e)}function Tn(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,l.pendingUnobservations.push(e))}function F(){l.inBatch++}function K(){if(--l.inBatch===0){Ln();for(var e=l.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof U&&r.suspend_())}l.pendingUnobservations=[]}}function xn(e){ki(e);var t=l.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&l.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&l.inBatch>0&&Tn(e),!1)}function Pn(e){e.lowestObserverState_!==y.STALE_&&(e.lowestObserverState_=y.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===y.UP_TO_DATE_&&(process.env.NODE_ENV!=="production"&&t.isTracing_!==$.NONE&&Bn(t,e),t.onBecomeStale_()),t.dependenciesState_=y.STALE_}))}function Fi(e){e.lowestObserverState_!==y.STALE_&&(e.lowestObserverState_=y.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===y.POSSIBLY_STALE_?(t.dependenciesState_=y.STALE_,process.env.NODE_ENV!=="production"&&t.isTracing_!==$.NONE&&Bn(t,e)):t.dependenciesState_===y.UP_TO_DATE_&&(e.lowestObserverState_=y.UP_TO_DATE_)}))}function Ki(e){e.lowestObserverState_===y.UP_TO_DATE_&&(e.lowestObserverState_=y.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===y.UP_TO_DATE_&&(t.dependenciesState_=y.POSSIBLY_STALE_,t.onBecomeStale_())}))}function Bn(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===$.BREAK){var r=[];Mn(Gn(e),r,1),new Function(`debugger;
5
+ Use '@override' decorator for methods overridden by subclass.`)}}function zr(e){return I(e,j)||Ie(e,j,ue({},e[j])),e[j]}function $e(e){return typeof e=="object"&&typeof e.kind=="string"}function tt(e,t){process.env.NODE_ENV!=="production"&&!t.includes(e.kind)&&p("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var h=Symbol("mobx administration"),de=(function(){function e(r){r===void 0&&(r=process.env.NODE_ENV!=="production"?"Atom@"+W():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=y.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return Pn(this)},t.reportChanged=function(){F(),Bn(this),K()},t.toString=function(){return this.name_},je(e,[{key:"isBeingObserved",get:function(){return x(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=P(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return x(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=P(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return x(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=P(this.flags_,e.diffValueMask_,n===1)}}])})();de.isBeingObservedMask_=1,de.isPendingUnobservationMask_=2,de.diffValueMask_=4;var Ct=be("Atom",de);function hn(e,t,r){t===void 0&&(t=De),r===void 0&&(r=De);var n=new de(e);return t!==De&&io(n,t),r!==De&&Fn(n,r),n}function Wr(e,t){return lr(e,t)}function Hr(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var nt={structural:Wr,default:Hr};function ge(e,t,r){return Re(e)?e:Array.isArray(e)?D.array(e,{name:r}):T(e)?D.object(e,void 0,{name:r}):Ve(e)?D.map(e,{name:r}):ae(e)?D.set(e,{name:r}):typeof e=="function"&&!Pe(e)&&!qe(e)?cn(e)?Be(e):Ge(r,e):e}function Xr(e,t,r){if(e==null||Me(e)||gt(e)||ve(e)||re(e))return e;if(Array.isArray(e))return D.array(e,{name:r,deep:!1});if(T(e))return D.object(e,void 0,{name:r,deep:!1});if(Ve(e))return D.map(e,{name:r,deep:!1});if(ae(e))return D.set(e,{name:r,deep:!1});process.env.NODE_ENV!=="production"&&p("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function rt(e){return e}function Yr(e,t){return process.env.NODE_ENV!=="production"&&Re(e)&&p("observable.struct should not be used with observable values"),lr(e,t)?t:e}var Jr="override";function it(e){return e.annotationType_===Jr}function Fe(e,t){return{annotationType_:e,options_:t,make_:Zr,extend_:Qr,decorate_20223_:ei}}function Zr(e,t,r,n){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,r,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(Pe(r.value))return 1;var o=_n(e,this,t,r,!1);return ee(n,t,o),2}function Qr(e,t,r,n){var i=_n(e,this,t,r);return e.defineProperty_(t,i,n)}function ei(e,t){process.env.NODE_ENV!=="production"&&tt(t,["method","field"]);var r=t.kind,n=t.name,i=t.addInitializer,o=this,s=function(f){var d,v,_,b;return me((d=(v=o.options_)==null?void 0:v.name)!=null?d:n.toString(),f,(_=(b=o.options_)==null?void 0:b.autoAction)!=null?_:!1)};if(r=="field")return function(u){var f,d=u;return Pe(d)||(d=s(d)),(f=o.options_)!=null&&f.bound&&(d=d.bind(this),d.isMobxAction=!0),d};if(r=="method"){var a;return Pe(e)||(e=s(e)),(a=this.options_)!=null&&a.bound&&i(function(){var u=this,f=u[n].bind(u);f.isMobxAction=!0,u[n]=f}),e}p("Cannot apply '"+o.annotationType_+"' to '"+String(n)+"' (kind: "+r+"):"+(`
6
+ '`+o.annotationType_+"' can only be used on properties with a function value."))}function ti(e,t,r,n){var i=t.annotationType_,o=n.value;process.env.NODE_ENV!=="production"&&!S(o)&&p("Cannot apply '"+i+"' to '"+e.name_+"."+r.toString()+"':"+(`
7
+ '`+i+"' can only be used on properties with a function value."))}function _n(e,t,r,n,i){var o,s,a,u,f,d,v;i===void 0&&(i=l.safeDescriptors),ti(e,t,r,n);var _=n.value;if((o=t.options_)!=null&&o.bound){var b;_=_.bind((b=e.proxy_)!=null?b:e.target_)}return{value:me((s=(a=t.options_)==null?void 0:a.name)!=null?s:r.toString(),_,(u=(f=t.options_)==null?void 0:f.autoAction)!=null?u:!1,(d=t.options_)!=null&&d.bound?(v=e.proxy_)!=null?v:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function bn(e,t){return{annotationType_:e,options_:t,make_:ni,extend_:ri,decorate_20223_:ii}}function ni(e,t,r,n){var i;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!I(e.target_,t)||!qe(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(qe(r.value))return 1;var o=gn(e,this,t,r,!1,!1);return ee(n,t,o),2}function ri(e,t,r,n){var i,o=gn(e,this,t,r,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,n)}function ii(e,t){var r;process.env.NODE_ENV!=="production"&&tt(t,["method"]);var n=t.name,i=t.addInitializer;return qe(e)||(e=Be(e)),(r=this.options_)!=null&&r.bound&&i(function(){var o=this,s=o[n].bind(o);s.isMobXFlow=!0,o[n]=s}),e}function oi(e,t,r,n){var i=t.annotationType_,o=n.value;process.env.NODE_ENV!=="production"&&!S(o)&&p("Cannot apply '"+i+"' to '"+e.name_+"."+r.toString()+"':"+(`
8
+ '`+i+"' can only be used on properties with a generator function value."))}function gn(e,t,r,n,i,o){o===void 0&&(o=l.safeDescriptors),oi(e,t,r,n);var s=n.value;if(qe(s)||(s=Be(s)),i){var a;s=s.bind((a=e.proxy_)!=null?a:e.target_),s.isMobXFlow=!0}return{value:s,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function jt(e,t){return{annotationType_:e,options_:t,make_:si,extend_:ai,decorate_20223_:ui}}function si(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function ai(e,t,r,n){return ci(e,this,t,r),e.defineComputedProperty_(t,ue({},this.options_,{get:r.get,set:r.set}),n)}function ui(e,t){process.env.NODE_ENV!=="production"&&tt(t,["getter"]);var r=this,n=t.name,i=t.addInitializer;return i(function(){var o=Se(this)[h],s=ue({},r.options_,{get:e,context:this});s.name||(s.name=process.env.NODE_ENV!=="production"?o.name_+"."+n.toString():"ObservableObject."+n.toString()),o.values_.set(n,new U(s))}),function(){return this[h].getObservablePropValue_(n)}}function ci(e,t,r,n){var i=t.annotationType_,o=n.get;process.env.NODE_ENV!=="production"&&!o&&p("Cannot apply '"+i+"' to '"+e.name_+"."+r.toString()+"':"+(`
9
+ '`+i+"' can only be used on getter(+setter) properties."))}function ot(e,t){return{annotationType_:e,options_:t,make_:li,extend_:fi,decorate_20223_:di}}function li(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function fi(e,t,r,n){var i,o;return pi(e,this,t,r),e.defineObservableProperty_(t,r.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:ge,n)}function di(e,t){if(process.env.NODE_ENV!=="production"){if(t.kind==="field")throw p("Please use `@observable accessor "+String(t.name)+"` instead of `@observable "+String(t.name)+"`");tt(t,["accessor"])}var r=this,n=t.kind,i=t.name,o=new WeakSet;function s(a,u){var f,d,v=Se(a)[h],_=new ye(u,(f=(d=r.options_)==null?void 0:d.enhancer)!=null?f:ge,process.env.NODE_ENV!=="production"?v.name_+"."+i.toString():"ObservableObject."+i.toString(),!1);v.values_.set(i,_),o.add(a)}if(n=="accessor")return{get:function(){return o.has(this)||s(this,e.get.call(this)),this[h].getObservablePropValue_(i)},set:function(u){return o.has(this)||s(this,u),this[h].setObservablePropValue_(i,u)},init:function(u){return o.has(this)||s(this,u),u}}}function pi(e,t,r,n){var i=t.annotationType_;process.env.NODE_ENV!=="production"&&!("value"in n)&&p("Cannot apply '"+i+"' to '"+e.name_+"."+r.toString()+"':"+(`
10
+ '`+i+"' cannot be used on getter/setter properties"))}var vi="true",hi=mn();function mn(e){return{annotationType_:vi,options_:e,make_:_i,extend_:bi,decorate_20223_:gi}}function _i(e,t,r,n){var i,o;if(r.get)return ut.make_(e,t,r,n);if(r.set){var s=me(t.toString(),r.set);return n===e.target_?e.defineProperty_(t,{configurable:l.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(ee(n,t,{configurable:!0,set:s}),2)}if(n!==e.target_&&typeof r.value=="function"){var a;if(cn(r.value)){var u,f=(u=this.options_)!=null&&u.autoBind?Be.bound:Be;return f.make_(e,t,r,n)}var d=(a=this.options_)!=null&&a.autoBind?Ge.bound:Ge;return d.make_(e,t,r,n)}var v=((i=this.options_)==null?void 0:i.deep)===!1?D.ref:D;if(typeof r.value=="function"&&(o=this.options_)!=null&&o.autoBind){var _;r.value=r.value.bind((_=e.proxy_)!=null?_:e.target_)}return v.make_(e,t,r,n)}function bi(e,t,r,n){var i,o;if(r.get)return ut.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:l.safeDescriptors?e.isPlainObject_:!0,set:me(t.toString(),r.set)},n);if(typeof r.value=="function"&&(i=this.options_)!=null&&i.autoBind){var s;r.value=r.value.bind((s=e.proxy_)!=null?s:e.target_)}var a=((o=this.options_)==null?void 0:o.deep)===!1?D.ref:D;return a.extend_(e,t,r,n)}function gi(e,t){p("'"+this.annotationType_+"' cannot be used as a decorator")}var mi="observable",yi="observable.ref",Oi="observable.shallow",Ei="observable.struct",yn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(yn);function st(e){return e||yn}var Tt=ot(mi),Ni=ot(yi,{enhancer:rt}),Ai=ot(Oi,{enhancer:Xr}),Si=ot(Ei,{enhancer:Yr}),On=te(Tt);function at(e){return e.deep===!0?ge:e.deep===!1?rt:Di(e.defaultDecorator)}function wi(e){var t;return e?(t=e.defaultDecorator)!=null?t:mn(e):void 0}function Di(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:ge}function En(e,t,r){if($e(t))return Tt.decorate_20223_(e,t);if(_e(t)){Ue(e,t,Tt);return}return Re(e)?e:T(e)?D.object(e,t,r):Array.isArray(e)?D.array(e,t):Ve(e)?D.map(e,t):ae(e)?D.set(e,t):typeof e=="object"&&e!==null?e:D.box(e,t)}sn(En,On);var Vi={box:function(t,r){var n=st(r);return new ye(t,at(n),n.name,!0,n.equals)},array:function(t,r){var n=st(r);return(l.useProxies===!1||n.proxy===!1?jo:yo)(t,at(n),n.name)},map:function(t,r){var n=st(r);return new Yn(t,at(n),n.name)},set:function(t,r){var n=st(r);return new Zn(t,at(n),n.name)},object:function(t,r,n){return he(function(){return Gn(l.useProxies===!1||n?.proxy===!1?Se({},n):_o({},n),t,r)})},ref:te(Ni),shallow:te(Ai),deep:On,struct:te(Si)},D=sn(En,Vi),Nn="computed",Ci="computed.struct",xt=jt(Nn),ji=jt(Ci,{equals:nt.structural}),ut=function(t,r){if($e(r))return xt.decorate_20223_(t,r);if(_e(r))return Ue(t,r,xt);if(T(t))return te(jt(Nn,t));process.env.NODE_ENV!=="production"&&(S(t)||p("First argument to `computed` should be an expression."),S(r)&&p("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=T(r)?r:{};return n.get=t,n.name||(n.name=t.name||""),new U(n)};Object.assign(ut,xt),ut.struct=te(ji);var An,Sn,ct=0,Ti=1,xi=(An=(Sn=Je(function(){},"name"))==null?void 0:Sn.configurable)!=null?An:!1,wn={value:"action",configurable:!0,writable:!1,enumerable:!1};function me(e,t,r,n){r===void 0&&(r=!1),process.env.NODE_ENV!=="production"&&(S(t)||p("`action` can only be invoked on functions"),(typeof e!="string"||!e)&&p("actions should have valid names, got: '"+e+"'"));function i(){return Pi(e,r,t,n||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},xi&&(wn.value=e,ee(i,"name",wn)),i}function Pi(e,t,r,n,i){var o=Bi(e,t,n,i);try{return r.apply(n,i)}catch(s){throw o.error_=s,s}finally{Mi(o)}}function Bi(e,t,r,n){var i=process.env.NODE_ENV!=="production"&&V()&&!!e,o=0;if(process.env.NODE_ENV!=="production"&&i){o=Date.now();var s=n?Array.from(n):Qe;B({type:Ut,name:e,object:r,arguments:s})}var a=l.trackingDerivation,u=!t||!a;F();var f=l.allowStateChanges;u&&(Oe(),f=Pt(!0));var d=Lt(!0),v={runAsAction_:u,prevDerivation_:a,prevAllowStateChanges_:f,prevAllowStateReads_:d,notifySpy_:i,startTime_:o,actionId_:Ti++,parentActionId_:ct};return ct=v.actionId_,v}function Mi(e){ct!==e.actionId_&&p(30),ct=e.parentActionId_,e.error_!==void 0&&(l.suppressReactionErrors=!0),Bt(e.prevAllowStateChanges_),Ke(e.prevAllowStateReads_),K(),e.runAsAction_&&ce(e.prevDerivation_),process.env.NODE_ENV!=="production"&&e.notifySpy_&&M({time:Date.now()-e.startTime_}),l.suppressReactionErrors=!1}function Pt(e){var t=l.allowStateChanges;return l.allowStateChanges=e,t}function Bt(e){l.allowStateChanges=e}var ki="create",ye=(function(e){function t(n,i,o,s,a){var u;return o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableValue@"+W():"ObservableValue"),s===void 0&&(s=!0),a===void 0&&(a=nt.default),u=e.call(this,o)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=i,u.name_=o,u.equals=a,u.value_=i(n,void 0,o),process.env.NODE_ENV!=="production"&&s&&V()&&Ee({type:ki,object:u,observableKind:"value",debugObjectName:u.name_,newValue:""+u.value_}),u}vn(t,e);var r=t.prototype;return r.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},r.set=function(i){var o=this.value_;if(i=this.prepareNewValue_(i),i!==l.UNCHANGED){var s=V();process.env.NODE_ENV!=="production"&&s&&B({type:Y,object:this,observableKind:"value",debugObjectName:this.name_,newValue:i,oldValue:o}),this.setNewValue_(i),process.env.NODE_ENV!=="production"&&s&&M()}},r.prepareNewValue_=function(i){if(ne(this),G(this)){var o=q(this,{object:this,type:Y,newValue:i});if(!o)return l.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?l.UNCHANGED:i},r.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),H(this)&&X(this,{type:Y,object:this,newValue:i,oldValue:o})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(i){return ze(this,i)},r.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:Y,newValue:this.value_,oldValue:void 0}),We(this,i)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return dn(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t})(de),U=(function(){function e(r){this.dependenciesState_=y.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=y.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new ft(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=$.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,r.get||p(31),this.derivation=r.get,this.name_=r.name||(process.env.NODE_ENV!=="production"?"ComputedValue@"+W():"ComputedValue"),r.set&&(this.setter_=me(process.env.NODE_ENV!=="production"?this.name_+"-setter":"ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?nt.structural:nt.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Gi(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing&&p(32,this.name_,this.derivation),l.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Mt(this)&&(this.warnAboutUntrackedRead_(),F(),this.value_=this.computeValue_(!1),K());else if(Pn(this),Mt(this)){var n=l.trackingContext;this.keepAlive_&&!n&&(l.trackingContext=this),this.trackAndCompute()&&Ki(this),l.trackingContext=n}var i=this.value_;if(dt(i))throw i.cause;return i},t.set=function(n){if(this.setter_){this.isRunningSetter&&p(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter=!1}}else p(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,i=this.dependenciesState_===y.NOT_TRACKING_,o=this.computeValue_(!0),s=i||dt(n)||dt(o)||!this.equals_(n,o);return s&&(this.value_=o,process.env.NODE_ENV!=="production"&&V()&&Ee({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:n,newValue:o})),s},t.computeValue_=function(n){this.isComputing=!0;var i=Pt(!1),o;if(n)o=Dn(this,this.derivation,this.scope_);else if(l.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new ft(s)}return Bt(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(kt(this),this.value_=void 0,process.env.NODE_ENV!=="production"&&this.isTracing_!==$.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},t.observe_=function(n,i){var o=this,s=!0,a=void 0;return Qi(function(){var u=o.get();if(!s||i){var f=Oe();n({observableKind:"computed",debugObjectName:o.name_,type:Y,object:o,newValue:u,oldValue:a}),ce(f)}s=!1,a=u})},t.warnAboutUntrackedRead_=function(){process.env.NODE_ENV!=="production"&&(this.isTracing_!==$.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),(typeof this.requiresReaction_=="boolean"?this.requiresReaction_:l.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 dn(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},je(e,[{key:"isComputing",get:function(){return x(this.flags_,e.isComputingMask_)},set:function(n){this.flags_=P(this.flags_,e.isComputingMask_,n)}},{key:"isRunningSetter",get:function(){return x(this.flags_,e.isRunningSetterMask_)},set:function(n){this.flags_=P(this.flags_,e.isRunningSetterMask_,n)}},{key:"isBeingObserved",get:function(){return x(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=P(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return x(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=P(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return x(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=P(this.flags_,e.diffValueMask_,n===1)}}])})();U.isComputingMask_=1,U.isRunningSetterMask_=2,U.isBeingObservedMask_=4,U.isPendingUnobservationMask_=8,U.diffValueMask_=16;var lt=be("ComputedValue",U),y;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(y||(y={}));var $;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})($||($={}));var ft=function(t){this.cause=void 0,this.cause=t};function dt(e){return e instanceof ft}function Mt(e){switch(e.dependenciesState_){case y.UP_TO_DATE_:return!1;case y.NOT_TRACKING_:case y.STALE_:return!0;case y.POSSIBLY_STALE_:{for(var t=Lt(!0),r=Oe(),n=e.observing_,i=n.length,o=0;o<i;o++){var s=n[o];if(lt(s)){if(l.disableErrorBoundaries)s.get();else try{s.get()}catch{return ce(r),Ke(t),!0}if(e.dependenciesState_===y.STALE_)return ce(r),Ke(t),!0}}return Cn(e),ce(r),Ke(t),!1}}}function ne(e){if(process.env.NODE_ENV!=="production"){var t=e.observers_.size>0;!l.allowStateChanges&&(t||l.enforceActions==="always")&&console.warn("[MobX] "+(l.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 Li(e){process.env.NODE_ENV!=="production"&&!l.allowStateReads&&l.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}function Dn(e,t,r){var n=Lt(!0);Cn(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++l.runId;var i=l.trackingDerivation;l.trackingDerivation=e,l.inBatch++;var o;if(l.disableErrorBoundaries===!0)o=t.call(r);else try{o=t.call(r)}catch(s){o=new ft(s)}return l.inBatch--,l.trackingDerivation=i,Ui(e),Ii(e),Ke(n),o}function Ii(e){process.env.NODE_ENV!=="production"&&e.observing_.length===0&&(typeof e.requiresObservable_=="boolean"?e.requiresObservable_:l.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}function Ui(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=y.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=r[s];a.diffValue===0&&(a.diffValue=1,i!==s&&(r[i]=a),i++),a.dependenciesState_>n&&(n=a.dependenciesState_)}for(r.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];u.diffValue===0&&Tn(u,e),u.diffValue=0}for(;i--;){var f=r[i];f.diffValue===1&&(f.diffValue=0,Fi(f,e))}n!==y.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function kt(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)Tn(t[r],e);e.dependenciesState_=y.NOT_TRACKING_}function Vn(e){var t=Oe();try{return e()}finally{ce(t)}}function Oe(){var e=l.trackingDerivation;return l.trackingDerivation=null,e}function ce(e){l.trackingDerivation=e}function Lt(e){var t=l.allowStateReads;return l.allowStateReads=e,t}function Ke(e){l.allowStateReads=e}function Cn(e){if(e.dependenciesState_!==y.UP_TO_DATE_){e.dependenciesState_=y.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=y.UP_TO_DATE_}}var pt=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},vt=!0,jn=!1,l=(function(){var e=Ye();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(vt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new pt().version&&(vt=!1),vt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new pt):(setTimeout(function(){jn||p(35)},1),new pt)})();function $i(){if((l.pendingReactions.length||l.inBatch||l.isRunningReactions)&&p(36),jn=!0,vt){var e=Ye();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),l=new pt}}function Fi(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Tn(e,t){e.observers_.delete(t),e.observers_.size===0&&xn(e)}function xn(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,l.pendingUnobservations.push(e))}function F(){l.inBatch++}function K(){if(--l.inBatch===0){In();for(var e=l.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof U&&r.suspend_())}l.pendingUnobservations=[]}}function Pn(e){Li(e);var t=l.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&l.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&l.inBatch>0&&xn(e),!1)}function Bn(e){e.lowestObserverState_!==y.STALE_&&(e.lowestObserverState_=y.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===y.UP_TO_DATE_&&(process.env.NODE_ENV!=="production"&&t.isTracing_!==$.NONE&&Mn(t,e),t.onBecomeStale_()),t.dependenciesState_=y.STALE_}))}function Ki(e){e.lowestObserverState_!==y.STALE_&&(e.lowestObserverState_=y.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===y.POSSIBLY_STALE_?(t.dependenciesState_=y.STALE_,process.env.NODE_ENV!=="production"&&t.isTracing_!==$.NONE&&Mn(t,e)):t.dependenciesState_===y.UP_TO_DATE_&&(e.lowestObserverState_=y.UP_TO_DATE_)}))}function Gi(e){e.lowestObserverState_===y.UP_TO_DATE_&&(e.lowestObserverState_=y.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===y.UP_TO_DATE_&&(t.dependenciesState_=y.POSSIBLY_STALE_,t.onBecomeStale_())}))}function Mn(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===$.BREAK){var r=[];kn(qn(e),r,1),new Function(`debugger;
11
11
  /*
12
12
  Tracing '`+e.name_+`'
13
13
 
@@ -22,12 +22,12 @@ The dependencies for this derivation are:
22
22
  `+r.join(`
23
23
  `)+`
24
24
  */
25
- `)()}}function Mn(e,t,r){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+" ".repeat(r-1)+e.name),e.dependencies&&e.dependencies.forEach(function(n){return Mn(n,t,r+1)})}var le=(function(){function e(r,n,i,o){r===void 0&&(r=process.env.NODE_ENV!=="production"?"Reaction@"+W():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=y.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=$.NONE,this.name_=r,this.onInvalidate_=n,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,l.pendingReactions.push(this),Ln())},t.runReaction_=function(){if(!this.isDisposed){F(),this.isScheduled=!1;var n=l.trackingContext;if(l.trackingContext=this,Bt(this)){this.isTrackPending=!0;try{this.onInvalidate_(),process.env.NODE_ENV!=="production"&&this.isTrackPending&&V()&&Ee({name:this.name_,type:"scheduled-reaction"})}catch(i){this.reportExceptionInDerivation_(i)}}l.trackingContext=n,K()}},t.track=function(n){if(!this.isDisposed){F();var i=V(),o;process.env.NODE_ENV!=="production"&&i&&(o=Date.now(),B({name:this.name_,type:"reaction"})),this.isRunning=!0;var s=l.trackingContext;l.trackingContext=this;var a=wn(this,n,void 0);l.trackingContext=s,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Mt(this),dt(a)&&this.reportExceptionInDerivation_(a.cause),process.env.NODE_ENV!=="production"&&i&&M({time:Date.now()-o}),K()}},t.reportExceptionInDerivation_=function(n){var i=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(l.disableErrorBoundaries)throw n;var o=process.env.NODE_ENV!=="production"?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";l.suppressReactionErrors?process.env.NODE_ENV!=="production"&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(o,n),process.env.NODE_ENV!=="production"&&V()&&Ee({type:"error",name:this.name_,message:o,error:""+n}),l.globalReactionErrorHandlers.forEach(function(s){return s(n,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(F(),Mt(this),K()))},t.getDisposer_=function(n){var i=this,o=function s(){i.dispose(),n==null||n.removeEventListener==null||n.removeEventListener("abort",s)};return n==null||n.addEventListener==null||n.addEventListener("abort",o),o[h]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),fo(this,n)},je(e,[{key:"isDisposed",get:function(){return x(this.flags_,e.isDisposedMask_)},set:function(n){this.flags_=P(this.flags_,e.isDisposedMask_,n)}},{key:"isScheduled",get:function(){return x(this.flags_,e.isScheduledMask_)},set:function(n){this.flags_=P(this.flags_,e.isScheduledMask_,n)}},{key:"isTrackPending",get:function(){return x(this.flags_,e.isTrackPendingMask_)},set:function(n){this.flags_=P(this.flags_,e.isTrackPendingMask_,n)}},{key:"isRunning",get:function(){return x(this.flags_,e.isRunningMask_)},set:function(n){this.flags_=P(this.flags_,e.isRunningMask_,n)}},{key:"diffValue",get:function(){return x(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=P(this.flags_,e.diffValueMask_,n===1)}}])})();le.isDisposedMask_=1,le.isScheduledMask_=2,le.isTrackPendingMask_=4,le.isRunningMask_=8,le.diffValueMask_=16;var kn=100,Lt=function(t){return t()};function Ln(){l.inBatch>0||l.isRunningReactions||Lt(Gi)}function Gi(){l.isRunningReactions=!0;for(var e=l.pendingReactions,t=0;e.length>0;){++t===kn&&(console.error(process.env.NODE_ENV!=="production"?"Reaction doesn't converge to a stable state after "+kn+" iterations."+(" Probably there is a cycle in the reactive function: "+e[0]):"[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n<i;n++)r[n].runReaction_()}l.isRunningReactions=!1}var ht=be("Reaction",le);function qi(e){var t=Lt;Lt=function(n){return e(function(){return t(n)})}}function V(){return process.env.NODE_ENV!=="production"&&!!l.spyListeners.length}function Ee(e){if(process.env.NODE_ENV!=="production"&&l.spyListeners.length)for(var t=l.spyListeners,r=0,n=t.length;r<n;r++)t[r](e)}function B(e){if(process.env.NODE_ENV!=="production"){var t=ue({},e,{spyReportStart:!0});Ee(t)}}var Ri={type:"report-end",spyReportEnd:!0};function M(e){process.env.NODE_ENV!=="production"&&Ee(e?ue({},e,{type:"report-end",spyReportEnd:!0}):Ri)}function zi(e){return process.env.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(l.spyListeners.push(e),St(function(){l.spyListeners=l.spyListeners.filter(function(t){return t!==e})}))}var It="action",Wi="action.bound",In="autoAction",Hi="autoAction.bound",Xi="<unnamed action>",Ut=Fe(It),Yi=Fe(Wi,{bound:!0}),$t=Fe(In,{autoAction:!0}),Ji=Fe(Hi,{autoAction:!0,bound:!0});function Un(e){var t=function(n,i){if(S(n))return me(n.name||Xi,n,e);if(S(i))return me(n,i,e);if($e(i))return(e?$t:Ut).decorate_20223_(n,i);if(_e(i))return Ue(n,i,e?$t:Ut);if(_e(n))return te(Fe(e?In:It,{name:n,autoAction:e}));process.env.NODE_ENV!=="production"&&p("Invalid arguments for `action`")};return t}var xe=Un(!1);Object.assign(xe,Ut);var Ge=Un(!0);Object.assign(Ge,$t),xe.bound=te(Yi),Ge.bound=te(Ji);function Pe(e){return S(e)&&e.isMobxAction===!0}function Zi(e,t){var r,n,i,o;t===void 0&&(t=sn),process.env.NODE_ENV!=="production"&&(S(e)||p("Autorun expects a function as first argument"),Pe(e)&&p("Autorun does not accept actions since actions are untrackable"));var s=(r=(n=t)==null?void 0:n.name)!=null?r:process.env.NODE_ENV!=="production"?e.name||"Autorun@"+W():"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new le(s,function(){this.track(v)},t.onError,t.requiresObservable);else{var f=eo(t),d=!1;u=new le(s,function(){d||(d=!0,f(function(){d=!1,u.isDisposed||u.track(v)}))},t.onError,t.requiresObservable)}function v(){e(u)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||u.schedule_(),u.getDisposer_((o=t)==null?void 0:o.signal)}var Qi=function(t){return t()};function eo(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Qi}var to="onBO",no="onBUO";function ro(e,t,r){return Fn(to,e,t,r)}function $n(e,t,r){return Fn(no,e,t,r)}function Fn(e,t,r,n){var i=ke(t),o=S(n)?n:r,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var a=i[s];a&&(a.delete(o),a.size===0&&delete i[s])}}var io="never",_t="always",oo="observed";function so(e){e.isolateGlobalState===!0&&Ui();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(l.useProxies=t===_t?!0:t===io?!1:typeof Proxy<"u"),t==="ifavailable"&&(l.verifyProxies=!0),r!==void 0){var n=r===_t?_t:r===oo;l.enforceActions=n,l.allowStateChanges=!(n===!0||n===_t)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(l[i]=!!e[i])}),l.allowStateReads=!l.observableRequiresReaction,process.env.NODE_ENV!=="production"&&l.disableErrorBoundaries===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&qi(e.reactionScheduler)}function Kn(e,t,r,n){process.env.NODE_ENV!=="production"&&(arguments.length>4&&p("'extendObservable' expected 2-4 arguments"),typeof e!="object"&&p("'extendObservable' expects an object as first argument"),ve(e)&&p("'extendObservable' should not be used on maps, use map.merge instead"),T(t)||p("'extendObservable' only accepts plain objects as second argument"),(Re(t)||Re(r))&&p("Extending an object with another observable (object) is not supported"));var i=Ur(t);return he(function(){var o=Se(e,n)[h];Ce(i).forEach(function(s){o.extend_(s,i[s],r&&s in r?r[s]:!0)})}),e}function Gn(e,t){return qn(ke(e,t))}function qn(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=ao(e.observing_).map(qn)),t}function ao(e){return Array.from(new Set(e))}var uo=0;function Rn(){this.message="FLOW_CANCELLED"}Rn.prototype=Object.create(Error.prototype);var Ft=_n("flow"),co=_n("flow.bound",{bound:!0}),Be=Object.assign(function(t,r){if($e(r))return Ft.decorate_20223_(t,r);if(_e(r))return Ue(t,r,Ft);process.env.NODE_ENV!=="production"&&arguments.length!==1&&p("Flow expects single argument with generator function");var n=t,i=n.name||"<unnamed flow>",o=function(){var a=this,u=arguments,f=++uo,d=xe(i+" - runid: "+f+" - init",n).apply(a,u),v,_=void 0,b=new Promise(function(g,O){var E=0;v=O;function C(A){_=void 0;var L;try{L=xe(i+" - runid: "+f+" - yield "+E++,d.next).call(d,A)}catch(we){return O(we)}w(L)}function se(A){_=void 0;var L;try{L=xe(i+" - runid: "+f+" - yield "+E++,d.throw).call(d,A)}catch(we){return O(we)}w(L)}function w(A){if(S(A?.then)){A.then(w,O);return}return A.done?g(A.value):(_=Promise.resolve(A.value),_.then(C,se))}C(void 0)});return b.cancel=xe(i+" - runid: "+f+" - cancel",function(){try{_&&zn(_);var g=d.return(void 0),O=Promise.resolve(g.value);O.then(De,De),zn(O),v(new Rn)}catch(E){v(E)}}),b};return o.isMobXFlow=!0,o},Ft);Be.bound=te(co);function zn(e){S(e.cancel)&&e.cancel()}function qe(e){return e?.isMobXFlow===!0}function lo(e,t){return e?Me(e)||!!e[h]||Vt(e)||ht(e)||lt(e):!1}function Re(e){return process.env.NODE_ENV!=="production"&&arguments.length!==1&&p("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),lo(e)}function fo(){if(process.env.NODE_ENV!=="production"){for(var e=!1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];typeof r[r.length-1]=="boolean"&&(e=r.pop());var i=po(r);if(!i)return p("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");i.isTracing_===$.NONE&&console.log("[mobx.trace] '"+i.name_+"' tracing enabled"),i.isTracing_=e?$.BREAK:$.LOG}}function po(e){switch(e.length){case 0:return l.trackingDerivation;case 1:return ke(e[0]);case 2:return ke(e[0],e[1])}}function fe(e,t){t===void 0&&(t=void 0),F();try{return e.apply(t)}finally{K()}}function Ne(e){return e[h]}var vo={has:function(t,r){return process.env.NODE_ENV!=="production"&&l.trackingDerivation&&Le("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),Ne(t).has_(r)},get:function(t,r){return Ne(t).get_(r)},set:function(t,r,n){var i;return _e(r)?(process.env.NODE_ENV!=="production"&&!Ne(t).values_.has(r)&&Le("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),(i=Ne(t).set_(r,n,!0))!=null?i:!0):!1},deleteProperty:function(t,r){var n;return process.env.NODE_ENV!=="production"&&Le("delete properties from an observable object. Use 'remove' from 'mobx' instead."),_e(r)?(n=Ne(t).delete_(r,!0))!=null?n:!0:!1},defineProperty:function(t,r,n){var i;return process.env.NODE_ENV!=="production"&&Le("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),(i=Ne(t).defineProperty_(r,n))!=null?i:!0},ownKeys:function(t){return process.env.NODE_ENV!=="production"&&l.trackingDerivation&&Le("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),Ne(t).ownKeys_()},preventExtensions:function(t){p(13)}};function ho(e,t){var r,n;return an(),e=Se(e,t),(n=(r=e[h]).proxy_)!=null?n:r.proxy_=new Proxy(e,vo)}function G(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function ze(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),St(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function q(e,t){var r=Oe();try{for(var n=[].concat(e.interceptors_||[]),i=0,o=n.length;i<o&&(t=n[i](t),t&&!t.type&&p(14),!!t);i++);return t}finally{ce(r)}}function H(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function We(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),St(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function X(e,t){var r=Oe(),n=e.changeListeners_;if(n){n=n.slice();for(var i=0,o=n.length;i<o;i++)n[i](t);ce(r)}}function _o(e,t,r){return he(function(){var n,i=Se(e,r)[h];process.env.NODE_ENV!=="production"&&t&&e[j]&&p("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),(n=t)!=null||(t=Rr(e)),Ce(t).forEach(function(o){return i.make_(o,t[o])})}),e}var Kt=Symbol("mobx-keys");function Ae(e,t,r){return process.env.NODE_ENV!=="production"&&(!T(e)&&!T(Object.getPrototypeOf(e))&&p("'makeAutoObservable' can only be used for classes that don't have a superclass"),Me(e)&&p("makeAutoObservable can only be used on objects not already made observable")),T(e)?Kn(e,e,t,r):(he(function(){var n=Se(e,r)[h];if(!e[Kt]){var i=Object.getPrototypeOf(e),o=new Set([].concat(Ce(e),Ce(i)));o.delete("constructor"),o.delete(h),Ie(i,Kt,o)}e[Kt].forEach(function(s){return n.make_(s,t&&s in t?t[s]:!0)})}),e)}var Wn="splice",Y="update",bo=1e4,go={get:function(t,r){var n=t[h];return r===h?n:r==="length"?n.getArrayLength_():typeof r=="string"&&!isNaN(r)?n.get_(parseInt(r)):I(bt,r)?bt[r]:t[r]},set:function(t,r,n){var i=t[h];return r==="length"&&i.setArrayLength_(n),typeof r=="symbol"||isNaN(r)?t[r]=n:i.set_(parseInt(r),n),!0},preventExtensions:function(){p(15)}},Gt=(function(){function e(r,n,i,o){r===void 0&&(r=process.env.NODE_ENV!=="production"?"ObservableArray@"+W():"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_=i,this.legacyMode_=o,this.atom_=new de(r),this.enhancer_=function(s,a){return n(s,a,process.env.NODE_ENV!=="production"?r+"[..]":"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return ze(this,n)},t.observe_=function(n,i){return i===void 0&&(i=!1),i&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),We(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&p("Out of range: "+n);var i=this.values_.length;if(n!==i)if(n>i){for(var o=new Array(n-i),s=0;s<n-i;s++)o[s]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(n,i-n)},t.updateArrayLength_=function(n,i){n!==this.lastKnownLength_&&p(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&sr(n+i+1)},t.spliceWithArray_=function(n,i,o){var s=this;ne(this.atom_);var a=this.values_.length;if(n===void 0?n=0:n>a?n=a:n<0&&(n=Math.max(0,a+n)),arguments.length===1?i=a-n:i==null?i=0:i=Math.max(0,Math.min(i,a-n)),o===void 0&&(o=Qe),G(this)){var u=q(this,{object:this.proxy_,type:Wn,index:n,removedCount:i,added:o});if(!u)return Qe;i=u.removedCount,o=u.added}if(o=o.length===0?o:o.map(function(v){return s.enhancer_(v,void 0)}),this.legacyMode_||process.env.NODE_ENV!=="production"){var f=o.length-i;this.updateArrayLength_(a,f)}var d=this.spliceItemsIntoValues_(n,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(n,o,d),this.dehanceValues_(d)},t.spliceItemsIntoValues_=function(n,i,o){if(o.length<bo){var s;return(s=this.values_).splice.apply(s,[n,i].concat(o))}else{var a=this.values_.slice(n,n+i),u=this.values_.slice(n+i);this.values_.length+=o.length-i;for(var f=0;f<o.length;f++)this.values_[n+f]=o[f];for(var d=0;d<u.length;d++)this.values_[n+o.length+d]=u[d];return a}},t.notifyArrayChildUpdate_=function(n,i,o){var s=!this.owned_&&V(),a=H(this),u=a||s?{observableKind:"array",object:this.proxy_,type:Y,debugObjectName:this.atom_.name_,index:n,newValue:i,oldValue:o}:null;process.env.NODE_ENV!=="production"&&s&&B(u),this.atom_.reportChanged(),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M()},t.notifyArraySplice_=function(n,i,o){var s=!this.owned_&&V(),a=H(this),u=a||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Wn,index:n,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;process.env.NODE_ENV!=="production"&&s&&B(u),this.atom_.reportChanged(),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M()},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn(process.env.NODE_ENV!=="production"?"[mobx.array] Attempt to read an array index ("+n+") 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: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,i){var o=this.values_;if(this.legacyMode_&&n>o.length&&p(17,n,o.length),n<o.length){ne(this.atom_);var s=o[n];if(G(this)){var a=q(this,{type:Y,object:this.proxy_,index:n,newValue:i});if(!a)return;i=a.newValue}i=this.enhancer_(i,s);var u=i!==s;u&&(o[n]=i,this.notifyArrayChildUpdate_(n,i,s))}else{for(var f=new Array(n+1-o.length),d=0;d<f.length-1;d++)f[d]=void 0;f[f.length-1]=i,this.spliceWithArray_(o.length,0,f)}},e})();function mo(e,t,r,n){return r===void 0&&(r=process.env.NODE_ENV!=="production"?"ObservableArray@"+W():"ObservableArray"),n===void 0&&(n=!1),an(),he(function(){var i=new Gt(r,t,n,!1);cn(i.values_,h,i);var o=new Proxy(i.values_,go);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var bt={clear:function(){return this.splice(0)},replace:function(t){var r=this[h];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var s=this[h];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,r)}return s.spliceWithArray_(t,r,i)},spliceWithArray:function(t,r,n){return this[h].spliceWithArray_(t,r,n)},push:function(){for(var t=this[h],r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[h].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[h],r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return l.trackingDerivation&&p(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){l.trackingDerivation&&p(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[h],n=r.dehanceValues_(r.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};N("at",k),N("concat",k),N("flat",k),N("includes",k),N("indexOf",k),N("join",k),N("lastIndexOf",k),N("slice",k),N("toString",k),N("toLocaleString",k),N("toSorted",k),N("toSpliced",k),N("with",k),N("every",J),N("filter",J),N("find",J),N("findIndex",J),N("findLast",J),N("findLastIndex",J),N("flatMap",J),N("forEach",J),N("map",J),N("some",J),N("toReversed",J),N("reduce",Hn),N("reduceRight",Hn);function N(e,t){typeof Array.prototype[e]=="function"&&(bt[e]=t(e))}function k(e){return function(){var t=this[h];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function J(e){return function(t,r){var n=this,i=this[h];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(s,a){return t.call(r,s,a,n)})}}function Hn(e){return function(){var t=this,r=this[h];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),i=arguments[0];return arguments[0]=function(o,s,a){return i(o,s,a,t)},n[e].apply(n,arguments)}}var yo=be("ObservableArrayAdministration",Gt);function gt(e){return et(e)&&yo(e[h])}var Oo={},pe="add",mt="delete",Xn=(function(){function e(r,n,i){var o=this;n===void 0&&(n=ge),i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableMap@"+W():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[h]=Oo,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=i,S(Map)||p(18),he(function(){o.keysAtom_=vn(process.env.NODE_ENV!=="production"?o.name_+".keys()":"ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,r&&o.merge(r)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var i=this;if(!l.trackingDerivation)return this.has_(n);var o=this.hasMap_.get(n);if(!o){var s=o=new ye(this.has_(n),rt,process.env.NODE_ENV!=="production"?this.name_+"."+wt(n)+"?":"ObservableMap.key?",!1);this.hasMap_.set(n,s),$n(s,function(){return i.hasMap_.delete(n)})}return o.get()},t.set=function(n,i){var o=this.has_(n);if(G(this)){var s=q(this,{type:o?Y:pe,object:this,newValue:i,name:n});if(!s)return this;i=s.newValue}return o?this.updateValue_(n,i):this.addValue_(n,i),this},t.delete=function(n){var i=this;if(ne(this.keysAtom_),G(this)){var o=q(this,{type:mt,object:this,name:n});if(!o)return!1}if(this.has_(n)){var s=V(),a=H(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:mt,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return process.env.NODE_ENV!=="production"&&s&&B(u),fe(function(){var f;i.keysAtom_.reportChanged(),(f=i.hasMap_.get(n))==null||f.setNewValue_(!1);var d=i.data_.get(n);d.setNewValue_(void 0),i.data_.delete(n)}),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M(),!0}return!1},t.updateValue_=function(n,i){var o=this.data_.get(n);if(i=o.prepareNewValue_(i),i!==l.UNCHANGED){var s=V(),a=H(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:Y,object:this,oldValue:o.value_,name:n,newValue:i}:null;process.env.NODE_ENV!=="production"&&s&&B(u),o.setNewValue_(i),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M()}},t.addValue_=function(n,i){var o=this;ne(this.keysAtom_),fe(function(){var f,d=new ye(i,o.enhancer_,process.env.NODE_ENV!=="production"?o.name_+"."+wt(n):"ObservableMap.key",!1);o.data_.set(n,d),i=d.value_,(f=o.hasMap_.get(n))==null||f.setNewValue_(!0),o.keysAtom_.reportChanged()});var s=V(),a=H(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:pe,object:this,name:n,newValue:i}:null;process.env.NODE_ENV!=="production"&&s&&B(u),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M()},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,i=this.keys();return Yn({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:n.get(u)}}})},t.entries=function(){var n=this,i=this.keys();return Yn({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:[u,n.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(n,i){for(var o=Te(this),s;!(s=o()).done;){var a=s.value,u=a[0],f=a[1];n.call(i,f,u,this)}},t.merge=function(n){var i=this;return ve(n)&&(n=new Map(n)),fe(function(){T(n)?Ir(n).forEach(function(o){return i.set(o,n[o])}):Array.isArray(n)?n.forEach(function(o){var s=o[0],a=o[1];return i.set(s,a)}):Ve(n)?(Lr(n)||p(19,n),n.forEach(function(o,s){return i.set(s,o)})):n!=null&&p(20,n)}),this},t.clear=function(){var n=this;fe(function(){Dn(function(){for(var i=Te(n.keys()),o;!(o=i()).done;){var s=o.value;n.delete(s)}})})},t.replace=function(n){var i=this;return fe(function(){for(var o=Eo(n),s=new Map,a=!1,u=Te(i.data_.keys()),f;!(f=u()).done;){var d=f.value;if(!o.has(d)){var v=i.delete(d);if(v)a=!0;else{var _=i.data_.get(d);s.set(d,_)}}}for(var b=Te(o.entries()),g;!(g=b()).done;){var O=g.value,E=O[0],C=O[1],se=i.data_.has(E);if(i.set(E,C),i.data_.has(E)){var w=i.data_.get(E);s.set(E,w),se||(a=!0)}}if(!a)if(i.data_.size!==s.size)i.keysAtom_.reportChanged();else for(var A=i.data_.keys(),L=s.keys(),we=A.next(),Cr=L.next();!we.done;){if(we.value!==Cr.value){i.keysAtom_.reportChanged();break}we=A.next(),Cr=L.next()}i.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,i){return process.env.NODE_ENV!=="production"&&i===!0&&p("`observe` doesn't support fireImmediately=true in combination with maps."),We(this,n)},t.intercept_=function(n){return ze(this,n)},je(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),ve=be("ObservableMap",Xn);function Yn(e){return e[Symbol.toStringTag]="MapIterator",Ht(e)}function Eo(e){if(Ve(e)||ve(e))return e;if(Array.isArray(e))return new Map(e);if(T(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return p(21,e)}var No={},Jn=(function(){function e(r,n,i){var o=this;n===void 0&&(n=ge),i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableSet@"+W():"ObservableSet"),this.name_=void 0,this[h]=No,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_=i,S(Set)||p(22),this.enhancer_=function(s,a){return n(s,a,i)},he(function(){o.atom_=vn(o.name_),r&&o.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;fe(function(){Dn(function(){for(var i=Te(n.data_.values()),o;!(o=i()).done;){var s=o.value;n.delete(s)}})})},t.forEach=function(n,i){for(var o=Te(this),s;!(s=o()).done;){var a=s.value;n.call(i,a,a,this)}},t.add=function(n){var i=this;if(ne(this.atom_),G(this)){var o=q(this,{type:pe,object:this,newValue:n});if(!o)return this;n=o.newValue}if(!this.has(n)){fe(function(){i.data_.add(i.enhancer_(n,void 0)),i.atom_.reportChanged()});var s=process.env.NODE_ENV!=="production"&&V(),a=H(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:pe,object:this,newValue:n}:null;s&&process.env.NODE_ENV!=="production"&&B(u),a&&X(this,u),s&&process.env.NODE_ENV!=="production"&&M()}return this},t.delete=function(n){var i=this;if(G(this)){var o=q(this,{type:mt,object:this,oldValue:n});if(!o)return!1}if(this.has(n)){var s=process.env.NODE_ENV!=="production"&&V(),a=H(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:mt,object:this,oldValue:n}:null;return s&&process.env.NODE_ENV!=="production"&&B(u),fe(function(){i.atom_.reportChanged(),i.data_.delete(n)}),a&&X(this,u),s&&process.env.NODE_ENV!=="production"&&M(),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=this.values();return Zn({next:function(){var o=n.next(),s=o.value,a=o.done;return a?{value:void 0,done:a}:{value:[s,s],done:a}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,i=this.data_.values();return Zn({next:function(){var s=i.next(),a=s.value,u=s.done;return u?{value:void 0,done:u}:{value:n.dehanceValue_(a),done:u}}})},t.intersection=function(n){if(ae(n)&&!re(n))return n.intersection(this);var i=new Set(this);return i.intersection(n)},t.union=function(n){if(ae(n)&&!re(n))return n.union(this);var i=new Set(this);return i.union(n)},t.difference=function(n){return new Set(this).difference(n)},t.symmetricDifference=function(n){if(ae(n)&&!re(n))return n.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(n)},t.isSubsetOf=function(n){return new Set(this).isSubsetOf(n)},t.isSupersetOf=function(n){return new Set(this).isSupersetOf(n)},t.isDisjointFrom=function(n){if(ae(n)&&!re(n))return n.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(n)},t.replace=function(n){var i=this;return re(n)&&(n=new Set(n)),fe(function(){Array.isArray(n)?(i.clear(),n.forEach(function(o){return i.add(o)})):ae(n)?(i.clear(),n.forEach(function(o){return i.add(o)})):n!=null&&p("Cannot initialize set from "+n)}),this},t.observe_=function(n,i){return process.env.NODE_ENV!=="production"&&i===!0&&p("`observe` doesn't support fireImmediately=true in combination with sets."),We(this,n)},t.intercept_=function(n){return ze(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},je(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),re=be("ObservableSet",Jn);function Zn(e){return e[Symbol.toStringTag]="SetIterator",Ht(e)}var Qn=Object.create(null),er="remove",qt=(function(){function e(r,n,i,o){n===void 0&&(n=new Map),o===void 0&&(o=vi),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_=r,this.values_=n,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new de(process.env.NODE_ENV!=="production"?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=T(this.target_),process.env.NODE_ENV!=="production"&&!dr(this.defaultAnnotation_)&&p("defaultAnnotation must be valid annotation"),process.env.NODE_ENV!=="production"&&(this.appliedAnnotations_={})}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,i){var o=this.values_.get(n);if(o instanceof U)return o.set(i),!0;if(G(this)){var s=q(this,{type:Y,object:this.proxy_||this.target_,name:n,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==l.UNCHANGED){var a=H(this),u=process.env.NODE_ENV!=="production"&&V(),f=a||u?{type:Y,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:n,newValue:i}:null;process.env.NODE_ENV!=="production"&&u&&B(f),o.setNewValue_(i),a&&X(this,f),process.env.NODE_ENV!=="production"&&u&&M()}return!0},t.get_=function(n){return l.trackingDerivation&&!I(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,i,o){return o===void 0&&(o=!1),I(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,i):o?Reflect.set(this.target_,n,i):(this.target_[n]=i,!0):this.extend_(n,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(n){if(!l.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(n);return i||(i=new ye(n in this.target_,rt,process.env.NODE_ENV!=="production"?this.name_+"."+wt(n)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(n,i)),i.get()},t.make_=function(n,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(rr(this,i,n),!(n in this.target_)){var o;if((o=this.target_[j])!=null&&o[n])return;p(1,i.annotationType_,this.name_+"."+n.toString())}for(var s=this.target_;s&&s!==Ze;){var a=Je(s,n);if(a){var u=i.make_(this,n,a,s);if(u===0)return;if(u===1)break}s=Object.getPrototypeOf(s)}nr(this,i,n)}},t.extend_=function(n,i,o,s){if(s===void 0&&(s=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(n,i,s);rr(this,o,n);var a=o.extend_(this,n,i,s);return a&&nr(this,o,n),a},t.defineProperty_=function(n,i,o){o===void 0&&(o=!1),ne(this.keysAtom_);try{F();var s=this.delete_(n);if(!s)return s;if(G(this)){var a=q(this,{object:this.proxy_||this.target_,name:n,type:pe,newValue:i.value});if(!a)return null;var u=a.newValue;i.value!==u&&(i=ue({},i,{value:u}))}if(o){if(!Reflect.defineProperty(this.target_,n,i))return!1}else ee(this.target_,n,i);this.notifyPropertyAddition_(n,i.value)}finally{K()}return!0},t.defineObservableProperty_=function(n,i,o,s){s===void 0&&(s=!1),ne(this.keysAtom_);try{F();var a=this.delete_(n);if(!a)return a;if(G(this)){var u=q(this,{object:this.proxy_||this.target_,name:n,type:pe,newValue:i});if(!u)return null;i=u.newValue}var f=tr(n),d={configurable:l.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:f.get,set:f.set};if(s){if(!Reflect.defineProperty(this.target_,n,d))return!1}else ee(this.target_,n,d);var v=new ye(i,o,process.env.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key",!1);this.values_.set(n,v),this.notifyPropertyAddition_(n,v.value_)}finally{K()}return!0},t.defineComputedProperty_=function(n,i,o){o===void 0&&(o=!1),ne(this.keysAtom_);try{F();var s=this.delete_(n);if(!s)return s;if(G(this)){var a=q(this,{object:this.proxy_||this.target_,name:n,type:pe,newValue:void 0});if(!a)return null}i.name||(i.name=process.env.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key"),i.context=this.proxy_||this.target_;var u=tr(n),f={configurable:l.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,n,f))return!1}else ee(this.target_,n,f);this.values_.set(n,new U(i)),this.notifyPropertyAddition_(n,void 0)}finally{K()}return!0},t.delete_=function(n,i){if(i===void 0&&(i=!1),ne(this.keysAtom_),!I(this.target_,n))return!0;if(G(this)){var o=q(this,{object:this.proxy_||this.target_,name:n,type:er});if(!o)return null}try{var s;F();var a=H(this),u=process.env.NODE_ENV!=="production"&&V(),f=this.values_.get(n),d=void 0;if(!f&&(a||u)){var v;d=(v=Je(this.target_,n))==null?void 0:v.value}if(i){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(process.env.NODE_ENV!=="production"&&delete this.appliedAnnotations_[n],f&&(this.values_.delete(n),f instanceof ye&&(d=f.value_),Pn(f)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(n))==null||s.set(n in this.target_),a||u){var _={type:er,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:d,name:n};process.env.NODE_ENV!=="production"&&u&&B(_),a&&X(this,_),process.env.NODE_ENV!=="production"&&u&&M()}}finally{K()}return!0},t.observe_=function(n,i){return process.env.NODE_ENV!=="production"&&i===!0&&p("`observe` doesn't support the fire immediately property for observable objects."),We(this,n)},t.intercept_=function(n){return ze(this,n)},t.notifyPropertyAddition_=function(n,i){var o,s=H(this),a=process.env.NODE_ENV!=="production"&&V();if(s||a){var u=s||a?{type:pe,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:i}:null;process.env.NODE_ENV!=="production"&&a&&B(u),s&&X(this,u),process.env.NODE_ENV!=="production"&&a&&M()}(o=this.pendingKeys_)==null||(o=o.get(n))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Ce(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e})();function Se(e,t){var r;if(process.env.NODE_ENV!=="production"&&t&&Me(e)&&p("Options can't be provided for already observable objects."),I(e,h))return process.env.NODE_ENV!=="production"&&!(ar(e)instanceof qt)&&p("Cannot convert '"+yt(e)+`' into observable object:
25
+ `)()}}function kn(e,t,r){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+" ".repeat(r-1)+e.name),e.dependencies&&e.dependencies.forEach(function(n){return kn(n,t,r+1)})}var le=(function(){function e(r,n,i,o){r===void 0&&(r=process.env.NODE_ENV!=="production"?"Reaction@"+W():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=y.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=$.NONE,this.name_=r,this.onInvalidate_=n,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,l.pendingReactions.push(this),In())},t.runReaction_=function(){if(!this.isDisposed){F(),this.isScheduled=!1;var n=l.trackingContext;if(l.trackingContext=this,Mt(this)){this.isTrackPending=!0;try{this.onInvalidate_(),process.env.NODE_ENV!=="production"&&this.isTrackPending&&V()&&Ee({name:this.name_,type:"scheduled-reaction"})}catch(i){this.reportExceptionInDerivation_(i)}}l.trackingContext=n,K()}},t.track=function(n){if(!this.isDisposed){F();var i=V(),o;process.env.NODE_ENV!=="production"&&i&&(o=Date.now(),B({name:this.name_,type:"reaction"})),this.isRunning=!0;var s=l.trackingContext;l.trackingContext=this;var a=Dn(this,n,void 0);l.trackingContext=s,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&kt(this),dt(a)&&this.reportExceptionInDerivation_(a.cause),process.env.NODE_ENV!=="production"&&i&&M({time:Date.now()-o}),K()}},t.reportExceptionInDerivation_=function(n){var i=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(l.disableErrorBoundaries)throw n;var o=process.env.NODE_ENV!=="production"?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";l.suppressReactionErrors?process.env.NODE_ENV!=="production"&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(o,n),process.env.NODE_ENV!=="production"&&V()&&Ee({type:"error",name:this.name_,message:o,error:""+n}),l.globalReactionErrorHandlers.forEach(function(s){return s(n,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(F(),kt(this),K()))},t.getDisposer_=function(n){var i=this,o=function s(){i.dispose(),n==null||n.removeEventListener==null||n.removeEventListener("abort",s)};return n==null||n.addEventListener==null||n.addEventListener("abort",o),o[h]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),po(this,n)},je(e,[{key:"isDisposed",get:function(){return x(this.flags_,e.isDisposedMask_)},set:function(n){this.flags_=P(this.flags_,e.isDisposedMask_,n)}},{key:"isScheduled",get:function(){return x(this.flags_,e.isScheduledMask_)},set:function(n){this.flags_=P(this.flags_,e.isScheduledMask_,n)}},{key:"isTrackPending",get:function(){return x(this.flags_,e.isTrackPendingMask_)},set:function(n){this.flags_=P(this.flags_,e.isTrackPendingMask_,n)}},{key:"isRunning",get:function(){return x(this.flags_,e.isRunningMask_)},set:function(n){this.flags_=P(this.flags_,e.isRunningMask_,n)}},{key:"diffValue",get:function(){return x(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=P(this.flags_,e.diffValueMask_,n===1)}}])})();le.isDisposedMask_=1,le.isScheduledMask_=2,le.isTrackPendingMask_=4,le.isRunningMask_=8,le.diffValueMask_=16;var Ln=100,It=function(t){return t()};function In(){l.inBatch>0||l.isRunningReactions||It(qi)}function qi(){l.isRunningReactions=!0;for(var e=l.pendingReactions,t=0;e.length>0;){++t===Ln&&(console.error(process.env.NODE_ENV!=="production"?"Reaction doesn't converge to a stable state after "+Ln+" iterations."+(" Probably there is a cycle in the reactive function: "+e[0]):"[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n<i;n++)r[n].runReaction_()}l.isRunningReactions=!1}var ht=be("Reaction",le);function Ri(e){var t=It;It=function(n){return e(function(){return t(n)})}}function V(){return process.env.NODE_ENV!=="production"&&!!l.spyListeners.length}function Ee(e){if(process.env.NODE_ENV!=="production"&&l.spyListeners.length)for(var t=l.spyListeners,r=0,n=t.length;r<n;r++)t[r](e)}function B(e){if(process.env.NODE_ENV!=="production"){var t=ue({},e,{spyReportStart:!0});Ee(t)}}var zi={type:"report-end",spyReportEnd:!0};function M(e){process.env.NODE_ENV!=="production"&&Ee(e?ue({},e,{type:"report-end",spyReportEnd:!0}):zi)}function Wi(e){return process.env.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(l.spyListeners.push(e),wt(function(){l.spyListeners=l.spyListeners.filter(function(t){return t!==e})}))}var Ut="action",Hi="action.bound",Un="autoAction",Xi="autoAction.bound",Yi="<unnamed action>",$t=Fe(Ut),Ji=Fe(Hi,{bound:!0}),Ft=Fe(Un,{autoAction:!0}),Zi=Fe(Xi,{autoAction:!0,bound:!0});function $n(e){var t=function(n,i){if(S(n))return me(n.name||Yi,n,e);if(S(i))return me(n,i,e);if($e(i))return(e?Ft:$t).decorate_20223_(n,i);if(_e(i))return Ue(n,i,e?Ft:$t);if(_e(n))return te(Fe(e?Un:Ut,{name:n,autoAction:e}));process.env.NODE_ENV!=="production"&&p("Invalid arguments for `action`")};return t}var xe=$n(!1);Object.assign(xe,$t);var Ge=$n(!0);Object.assign(Ge,Ft),xe.bound=te(Ji),Ge.bound=te(Zi);function Pe(e){return S(e)&&e.isMobxAction===!0}function Qi(e,t){var r,n,i,o;t===void 0&&(t=an),process.env.NODE_ENV!=="production"&&(S(e)||p("Autorun expects a function as first argument"),Pe(e)&&p("Autorun does not accept actions since actions are untrackable"));var s=(r=(n=t)==null?void 0:n.name)!=null?r:process.env.NODE_ENV!=="production"?e.name||"Autorun@"+W():"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new le(s,function(){this.track(v)},t.onError,t.requiresObservable);else{var f=to(t),d=!1;u=new le(s,function(){d||(d=!0,f(function(){d=!1,u.isDisposed||u.track(v)}))},t.onError,t.requiresObservable)}function v(){e(u)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||u.schedule_(),u.getDisposer_((o=t)==null?void 0:o.signal)}var eo=function(t){return t()};function to(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:eo}var no="onBO",ro="onBUO";function io(e,t,r){return Kn(no,e,t,r)}function Fn(e,t,r){return Kn(ro,e,t,r)}function Kn(e,t,r,n){var i=ke(t),o=S(n)?n:r,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var a=i[s];a&&(a.delete(o),a.size===0&&delete i[s])}}var oo="never",_t="always",so="observed";function ao(e){e.isolateGlobalState===!0&&$i();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(l.useProxies=t===_t?!0:t===oo?!1:typeof Proxy<"u"),t==="ifavailable"&&(l.verifyProxies=!0),r!==void 0){var n=r===_t?_t:r===so;l.enforceActions=n,l.allowStateChanges=!(n===!0||n===_t)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(l[i]=!!e[i])}),l.allowStateReads=!l.observableRequiresReaction,process.env.NODE_ENV!=="production"&&l.disableErrorBoundaries===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&Ri(e.reactionScheduler)}function Gn(e,t,r,n){process.env.NODE_ENV!=="production"&&(arguments.length>4&&p("'extendObservable' expected 2-4 arguments"),typeof e!="object"&&p("'extendObservable' expects an object as first argument"),ve(e)&&p("'extendObservable' should not be used on maps, use map.merge instead"),T(t)||p("'extendObservable' only accepts plain objects as second argument"),(Re(t)||Re(r))&&p("Extending an object with another observable (object) is not supported"));var i=$r(t);return he(function(){var o=Se(e,n)[h];Ce(i).forEach(function(s){o.extend_(s,i[s],r&&s in r?r[s]:!0)})}),e}function qn(e,t){return Rn(ke(e,t))}function Rn(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=uo(e.observing_).map(Rn)),t}function uo(e){return Array.from(new Set(e))}var co=0;function zn(){this.message="FLOW_CANCELLED"}zn.prototype=Object.create(Error.prototype);var Kt=bn("flow"),lo=bn("flow.bound",{bound:!0}),Be=Object.assign(function(t,r){if($e(r))return Kt.decorate_20223_(t,r);if(_e(r))return Ue(t,r,Kt);process.env.NODE_ENV!=="production"&&arguments.length!==1&&p("Flow expects single argument with generator function");var n=t,i=n.name||"<unnamed flow>",o=function(){var a=this,u=arguments,f=++co,d=xe(i+" - runid: "+f+" - init",n).apply(a,u),v,_=void 0,b=new Promise(function(g,O){var E=0;v=O;function C(A){_=void 0;var L;try{L=xe(i+" - runid: "+f+" - yield "+E++,d.next).call(d,A)}catch(we){return O(we)}w(L)}function se(A){_=void 0;var L;try{L=xe(i+" - runid: "+f+" - yield "+E++,d.throw).call(d,A)}catch(we){return O(we)}w(L)}function w(A){if(S(A?.then)){A.then(w,O);return}return A.done?g(A.value):(_=Promise.resolve(A.value),_.then(C,se))}C(void 0)});return b.cancel=xe(i+" - runid: "+f+" - cancel",function(){try{_&&Wn(_);var g=d.return(void 0),O=Promise.resolve(g.value);O.then(De,De),Wn(O),v(new zn)}catch(E){v(E)}}),b};return o.isMobXFlow=!0,o},Kt);Be.bound=te(lo);function Wn(e){S(e.cancel)&&e.cancel()}function qe(e){return e?.isMobXFlow===!0}function fo(e,t){return e?Me(e)||!!e[h]||Ct(e)||ht(e)||lt(e):!1}function Re(e){return process.env.NODE_ENV!=="production"&&arguments.length!==1&&p("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),fo(e)}function po(){if(process.env.NODE_ENV!=="production"){for(var e=!1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];typeof r[r.length-1]=="boolean"&&(e=r.pop());var i=vo(r);if(!i)return p("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");i.isTracing_===$.NONE&&console.log("[mobx.trace] '"+i.name_+"' tracing enabled"),i.isTracing_=e?$.BREAK:$.LOG}}function vo(e){switch(e.length){case 0:return l.trackingDerivation;case 1:return ke(e[0]);case 2:return ke(e[0],e[1])}}function fe(e,t){t===void 0&&(t=void 0),F();try{return e.apply(t)}finally{K()}}function Ne(e){return e[h]}var ho={has:function(t,r){return process.env.NODE_ENV!=="production"&&l.trackingDerivation&&Le("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),Ne(t).has_(r)},get:function(t,r){return Ne(t).get_(r)},set:function(t,r,n){var i;return _e(r)?(process.env.NODE_ENV!=="production"&&!Ne(t).values_.has(r)&&Le("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),(i=Ne(t).set_(r,n,!0))!=null?i:!0):!1},deleteProperty:function(t,r){var n;return process.env.NODE_ENV!=="production"&&Le("delete properties from an observable object. Use 'remove' from 'mobx' instead."),_e(r)?(n=Ne(t).delete_(r,!0))!=null?n:!0:!1},defineProperty:function(t,r,n){var i;return process.env.NODE_ENV!=="production"&&Le("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),(i=Ne(t).defineProperty_(r,n))!=null?i:!0},ownKeys:function(t){return process.env.NODE_ENV!=="production"&&l.trackingDerivation&&Le("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),Ne(t).ownKeys_()},preventExtensions:function(t){p(13)}};function _o(e,t){var r,n;return un(),e=Se(e,t),(n=(r=e[h]).proxy_)!=null?n:r.proxy_=new Proxy(e,ho)}function G(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function ze(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),wt(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function q(e,t){var r=Oe();try{for(var n=[].concat(e.interceptors_||[]),i=0,o=n.length;i<o&&(t=n[i](t),t&&!t.type&&p(14),!!t);i++);return t}finally{ce(r)}}function H(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function We(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),wt(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function X(e,t){var r=Oe(),n=e.changeListeners_;if(n){n=n.slice();for(var i=0,o=n.length;i<o;i++)n[i](t);ce(r)}}function bo(e,t,r){return he(function(){var n,i=Se(e,r)[h];process.env.NODE_ENV!=="production"&&t&&e[j]&&p("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),(n=t)!=null||(t=zr(e)),Ce(t).forEach(function(o){return i.make_(o,t[o])})}),e}var Gt=Symbol("mobx-keys");function Ae(e,t,r){return process.env.NODE_ENV!=="production"&&(!T(e)&&!T(Object.getPrototypeOf(e))&&p("'makeAutoObservable' can only be used for classes that don't have a superclass"),Me(e)&&p("makeAutoObservable can only be used on objects not already made observable")),T(e)?Gn(e,e,t,r):(he(function(){var n=Se(e,r)[h];if(!e[Gt]){var i=Object.getPrototypeOf(e),o=new Set([].concat(Ce(e),Ce(i)));o.delete("constructor"),o.delete(h),Ie(i,Gt,o)}e[Gt].forEach(function(s){return n.make_(s,t&&s in t?t[s]:!0)})}),e)}var Hn="splice",Y="update",go=1e4,mo={get:function(t,r){var n=t[h];return r===h?n:r==="length"?n.getArrayLength_():typeof r=="string"&&!isNaN(r)?n.get_(parseInt(r)):I(bt,r)?bt[r]:t[r]},set:function(t,r,n){var i=t[h];return r==="length"&&i.setArrayLength_(n),typeof r=="symbol"||isNaN(r)?t[r]=n:i.set_(parseInt(r),n),!0},preventExtensions:function(){p(15)}},qt=(function(){function e(r,n,i,o){r===void 0&&(r=process.env.NODE_ENV!=="production"?"ObservableArray@"+W():"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_=i,this.legacyMode_=o,this.atom_=new de(r),this.enhancer_=function(s,a){return n(s,a,process.env.NODE_ENV!=="production"?r+"[..]":"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return ze(this,n)},t.observe_=function(n,i){return i===void 0&&(i=!1),i&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),We(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&p("Out of range: "+n);var i=this.values_.length;if(n!==i)if(n>i){for(var o=new Array(n-i),s=0;s<n-i;s++)o[s]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(n,i-n)},t.updateArrayLength_=function(n,i){n!==this.lastKnownLength_&&p(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&ar(n+i+1)},t.spliceWithArray_=function(n,i,o){var s=this;ne(this.atom_);var a=this.values_.length;if(n===void 0?n=0:n>a?n=a:n<0&&(n=Math.max(0,a+n)),arguments.length===1?i=a-n:i==null?i=0:i=Math.max(0,Math.min(i,a-n)),o===void 0&&(o=Qe),G(this)){var u=q(this,{object:this.proxy_,type:Hn,index:n,removedCount:i,added:o});if(!u)return Qe;i=u.removedCount,o=u.added}if(o=o.length===0?o:o.map(function(v){return s.enhancer_(v,void 0)}),this.legacyMode_||process.env.NODE_ENV!=="production"){var f=o.length-i;this.updateArrayLength_(a,f)}var d=this.spliceItemsIntoValues_(n,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(n,o,d),this.dehanceValues_(d)},t.spliceItemsIntoValues_=function(n,i,o){if(o.length<go){var s;return(s=this.values_).splice.apply(s,[n,i].concat(o))}else{var a=this.values_.slice(n,n+i),u=this.values_.slice(n+i);this.values_.length+=o.length-i;for(var f=0;f<o.length;f++)this.values_[n+f]=o[f];for(var d=0;d<u.length;d++)this.values_[n+o.length+d]=u[d];return a}},t.notifyArrayChildUpdate_=function(n,i,o){var s=!this.owned_&&V(),a=H(this),u=a||s?{observableKind:"array",object:this.proxy_,type:Y,debugObjectName:this.atom_.name_,index:n,newValue:i,oldValue:o}:null;process.env.NODE_ENV!=="production"&&s&&B(u),this.atom_.reportChanged(),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M()},t.notifyArraySplice_=function(n,i,o){var s=!this.owned_&&V(),a=H(this),u=a||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Hn,index:n,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;process.env.NODE_ENV!=="production"&&s&&B(u),this.atom_.reportChanged(),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M()},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn(process.env.NODE_ENV!=="production"?"[mobx.array] Attempt to read an array index ("+n+") 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: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,i){var o=this.values_;if(this.legacyMode_&&n>o.length&&p(17,n,o.length),n<o.length){ne(this.atom_);var s=o[n];if(G(this)){var a=q(this,{type:Y,object:this.proxy_,index:n,newValue:i});if(!a)return;i=a.newValue}i=this.enhancer_(i,s);var u=i!==s;u&&(o[n]=i,this.notifyArrayChildUpdate_(n,i,s))}else{for(var f=new Array(n+1-o.length),d=0;d<f.length-1;d++)f[d]=void 0;f[f.length-1]=i,this.spliceWithArray_(o.length,0,f)}},e})();function yo(e,t,r,n){return r===void 0&&(r=process.env.NODE_ENV!=="production"?"ObservableArray@"+W():"ObservableArray"),n===void 0&&(n=!1),un(),he(function(){var i=new qt(r,t,n,!1);ln(i.values_,h,i);var o=new Proxy(i.values_,mo);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var bt={clear:function(){return this.splice(0)},replace:function(t){var r=this[h];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var s=this[h];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,r)}return s.spliceWithArray_(t,r,i)},spliceWithArray:function(t,r,n){return this[h].spliceWithArray_(t,r,n)},push:function(){for(var t=this[h],r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[h].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[h],r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return l.trackingDerivation&&p(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){l.trackingDerivation&&p(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[h],n=r.dehanceValues_(r.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};N("at",k),N("concat",k),N("flat",k),N("includes",k),N("indexOf",k),N("join",k),N("lastIndexOf",k),N("slice",k),N("toString",k),N("toLocaleString",k),N("toSorted",k),N("toSpliced",k),N("with",k),N("every",J),N("filter",J),N("find",J),N("findIndex",J),N("findLast",J),N("findLastIndex",J),N("flatMap",J),N("forEach",J),N("map",J),N("some",J),N("toReversed",J),N("reduce",Xn),N("reduceRight",Xn);function N(e,t){typeof Array.prototype[e]=="function"&&(bt[e]=t(e))}function k(e){return function(){var t=this[h];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function J(e){return function(t,r){var n=this,i=this[h];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(s,a){return t.call(r,s,a,n)})}}function Xn(e){return function(){var t=this,r=this[h];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),i=arguments[0];return arguments[0]=function(o,s,a){return i(o,s,a,t)},n[e].apply(n,arguments)}}var Oo=be("ObservableArrayAdministration",qt);function gt(e){return et(e)&&Oo(e[h])}var Eo={},pe="add",mt="delete",Yn=(function(){function e(r,n,i){var o=this;n===void 0&&(n=ge),i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableMap@"+W():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[h]=Eo,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=i,S(Map)||p(18),he(function(){o.keysAtom_=hn(process.env.NODE_ENV!=="production"?o.name_+".keys()":"ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,r&&o.merge(r)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var i=this;if(!l.trackingDerivation)return this.has_(n);var o=this.hasMap_.get(n);if(!o){var s=o=new ye(this.has_(n),rt,process.env.NODE_ENV!=="production"?this.name_+"."+Dt(n)+"?":"ObservableMap.key?",!1);this.hasMap_.set(n,s),Fn(s,function(){return i.hasMap_.delete(n)})}return o.get()},t.set=function(n,i){var o=this.has_(n);if(G(this)){var s=q(this,{type:o?Y:pe,object:this,newValue:i,name:n});if(!s)return this;i=s.newValue}return o?this.updateValue_(n,i):this.addValue_(n,i),this},t.delete=function(n){var i=this;if(ne(this.keysAtom_),G(this)){var o=q(this,{type:mt,object:this,name:n});if(!o)return!1}if(this.has_(n)){var s=V(),a=H(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:mt,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return process.env.NODE_ENV!=="production"&&s&&B(u),fe(function(){var f;i.keysAtom_.reportChanged(),(f=i.hasMap_.get(n))==null||f.setNewValue_(!1);var d=i.data_.get(n);d.setNewValue_(void 0),i.data_.delete(n)}),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M(),!0}return!1},t.updateValue_=function(n,i){var o=this.data_.get(n);if(i=o.prepareNewValue_(i),i!==l.UNCHANGED){var s=V(),a=H(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:Y,object:this,oldValue:o.value_,name:n,newValue:i}:null;process.env.NODE_ENV!=="production"&&s&&B(u),o.setNewValue_(i),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M()}},t.addValue_=function(n,i){var o=this;ne(this.keysAtom_),fe(function(){var f,d=new ye(i,o.enhancer_,process.env.NODE_ENV!=="production"?o.name_+"."+Dt(n):"ObservableMap.key",!1);o.data_.set(n,d),i=d.value_,(f=o.hasMap_.get(n))==null||f.setNewValue_(!0),o.keysAtom_.reportChanged()});var s=V(),a=H(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:pe,object:this,name:n,newValue:i}:null;process.env.NODE_ENV!=="production"&&s&&B(u),a&&X(this,u),process.env.NODE_ENV!=="production"&&s&&M()},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,i=this.keys();return Jn({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:n.get(u)}}})},t.entries=function(){var n=this,i=this.keys();return Jn({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:[u,n.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(n,i){for(var o=Te(this),s;!(s=o()).done;){var a=s.value,u=a[0],f=a[1];n.call(i,f,u,this)}},t.merge=function(n){var i=this;return ve(n)&&(n=new Map(n)),fe(function(){T(n)?Ur(n).forEach(function(o){return i.set(o,n[o])}):Array.isArray(n)?n.forEach(function(o){var s=o[0],a=o[1];return i.set(s,a)}):Ve(n)?(Ir(n)||p(19,n),n.forEach(function(o,s){return i.set(s,o)})):n!=null&&p(20,n)}),this},t.clear=function(){var n=this;fe(function(){Vn(function(){for(var i=Te(n.keys()),o;!(o=i()).done;){var s=o.value;n.delete(s)}})})},t.replace=function(n){var i=this;return fe(function(){for(var o=No(n),s=new Map,a=!1,u=Te(i.data_.keys()),f;!(f=u()).done;){var d=f.value;if(!o.has(d)){var v=i.delete(d);if(v)a=!0;else{var _=i.data_.get(d);s.set(d,_)}}}for(var b=Te(o.entries()),g;!(g=b()).done;){var O=g.value,E=O[0],C=O[1],se=i.data_.has(E);if(i.set(E,C),i.data_.has(E)){var w=i.data_.get(E);s.set(E,w),se||(a=!0)}}if(!a)if(i.data_.size!==s.size)i.keysAtom_.reportChanged();else for(var A=i.data_.keys(),L=s.keys(),we=A.next(),jr=L.next();!we.done;){if(we.value!==jr.value){i.keysAtom_.reportChanged();break}we=A.next(),jr=L.next()}i.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,i){return process.env.NODE_ENV!=="production"&&i===!0&&p("`observe` doesn't support fireImmediately=true in combination with maps."),We(this,n)},t.intercept_=function(n){return ze(this,n)},je(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),ve=be("ObservableMap",Yn);function Jn(e){return e[Symbol.toStringTag]="MapIterator",Xt(e)}function No(e){if(Ve(e)||ve(e))return e;if(Array.isArray(e))return new Map(e);if(T(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return p(21,e)}var Ao={},Zn=(function(){function e(r,n,i){var o=this;n===void 0&&(n=ge),i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableSet@"+W():"ObservableSet"),this.name_=void 0,this[h]=Ao,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_=i,S(Set)||p(22),this.enhancer_=function(s,a){return n(s,a,i)},he(function(){o.atom_=hn(o.name_),r&&o.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;fe(function(){Vn(function(){for(var i=Te(n.data_.values()),o;!(o=i()).done;){var s=o.value;n.delete(s)}})})},t.forEach=function(n,i){for(var o=Te(this),s;!(s=o()).done;){var a=s.value;n.call(i,a,a,this)}},t.add=function(n){var i=this;if(ne(this.atom_),G(this)){var o=q(this,{type:pe,object:this,newValue:n});if(!o)return this;n=o.newValue}if(!this.has(n)){fe(function(){i.data_.add(i.enhancer_(n,void 0)),i.atom_.reportChanged()});var s=process.env.NODE_ENV!=="production"&&V(),a=H(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:pe,object:this,newValue:n}:null;s&&process.env.NODE_ENV!=="production"&&B(u),a&&X(this,u),s&&process.env.NODE_ENV!=="production"&&M()}return this},t.delete=function(n){var i=this;if(G(this)){var o=q(this,{type:mt,object:this,oldValue:n});if(!o)return!1}if(this.has(n)){var s=process.env.NODE_ENV!=="production"&&V(),a=H(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:mt,object:this,oldValue:n}:null;return s&&process.env.NODE_ENV!=="production"&&B(u),fe(function(){i.atom_.reportChanged(),i.data_.delete(n)}),a&&X(this,u),s&&process.env.NODE_ENV!=="production"&&M(),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=this.values();return Qn({next:function(){var o=n.next(),s=o.value,a=o.done;return a?{value:void 0,done:a}:{value:[s,s],done:a}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,i=this.data_.values();return Qn({next:function(){var s=i.next(),a=s.value,u=s.done;return u?{value:void 0,done:u}:{value:n.dehanceValue_(a),done:u}}})},t.intersection=function(n){if(ae(n)&&!re(n))return n.intersection(this);var i=new Set(this);return i.intersection(n)},t.union=function(n){if(ae(n)&&!re(n))return n.union(this);var i=new Set(this);return i.union(n)},t.difference=function(n){return new Set(this).difference(n)},t.symmetricDifference=function(n){if(ae(n)&&!re(n))return n.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(n)},t.isSubsetOf=function(n){return new Set(this).isSubsetOf(n)},t.isSupersetOf=function(n){return new Set(this).isSupersetOf(n)},t.isDisjointFrom=function(n){if(ae(n)&&!re(n))return n.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(n)},t.replace=function(n){var i=this;return re(n)&&(n=new Set(n)),fe(function(){Array.isArray(n)?(i.clear(),n.forEach(function(o){return i.add(o)})):ae(n)?(i.clear(),n.forEach(function(o){return i.add(o)})):n!=null&&p("Cannot initialize set from "+n)}),this},t.observe_=function(n,i){return process.env.NODE_ENV!=="production"&&i===!0&&p("`observe` doesn't support fireImmediately=true in combination with sets."),We(this,n)},t.intercept_=function(n){return ze(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},je(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),re=be("ObservableSet",Zn);function Qn(e){return e[Symbol.toStringTag]="SetIterator",Xt(e)}var er=Object.create(null),tr="remove",Rt=(function(){function e(r,n,i,o){n===void 0&&(n=new Map),o===void 0&&(o=hi),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_=r,this.values_=n,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new de(process.env.NODE_ENV!=="production"?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=T(this.target_),process.env.NODE_ENV!=="production"&&!pr(this.defaultAnnotation_)&&p("defaultAnnotation must be valid annotation"),process.env.NODE_ENV!=="production"&&(this.appliedAnnotations_={})}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,i){var o=this.values_.get(n);if(o instanceof U)return o.set(i),!0;if(G(this)){var s=q(this,{type:Y,object:this.proxy_||this.target_,name:n,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==l.UNCHANGED){var a=H(this),u=process.env.NODE_ENV!=="production"&&V(),f=a||u?{type:Y,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:n,newValue:i}:null;process.env.NODE_ENV!=="production"&&u&&B(f),o.setNewValue_(i),a&&X(this,f),process.env.NODE_ENV!=="production"&&u&&M()}return!0},t.get_=function(n){return l.trackingDerivation&&!I(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,i,o){return o===void 0&&(o=!1),I(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,i):o?Reflect.set(this.target_,n,i):(this.target_[n]=i,!0):this.extend_(n,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(n){if(!l.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(n);return i||(i=new ye(n in this.target_,rt,process.env.NODE_ENV!=="production"?this.name_+"."+Dt(n)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(n,i)),i.get()},t.make_=function(n,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(ir(this,i,n),!(n in this.target_)){var o;if((o=this.target_[j])!=null&&o[n])return;p(1,i.annotationType_,this.name_+"."+n.toString())}for(var s=this.target_;s&&s!==Ze;){var a=Je(s,n);if(a){var u=i.make_(this,n,a,s);if(u===0)return;if(u===1)break}s=Object.getPrototypeOf(s)}rr(this,i,n)}},t.extend_=function(n,i,o,s){if(s===void 0&&(s=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(n,i,s);ir(this,o,n);var a=o.extend_(this,n,i,s);return a&&rr(this,o,n),a},t.defineProperty_=function(n,i,o){o===void 0&&(o=!1),ne(this.keysAtom_);try{F();var s=this.delete_(n);if(!s)return s;if(G(this)){var a=q(this,{object:this.proxy_||this.target_,name:n,type:pe,newValue:i.value});if(!a)return null;var u=a.newValue;i.value!==u&&(i=ue({},i,{value:u}))}if(o){if(!Reflect.defineProperty(this.target_,n,i))return!1}else ee(this.target_,n,i);this.notifyPropertyAddition_(n,i.value)}finally{K()}return!0},t.defineObservableProperty_=function(n,i,o,s){s===void 0&&(s=!1),ne(this.keysAtom_);try{F();var a=this.delete_(n);if(!a)return a;if(G(this)){var u=q(this,{object:this.proxy_||this.target_,name:n,type:pe,newValue:i});if(!u)return null;i=u.newValue}var f=nr(n),d={configurable:l.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:f.get,set:f.set};if(s){if(!Reflect.defineProperty(this.target_,n,d))return!1}else ee(this.target_,n,d);var v=new ye(i,o,process.env.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key",!1);this.values_.set(n,v),this.notifyPropertyAddition_(n,v.value_)}finally{K()}return!0},t.defineComputedProperty_=function(n,i,o){o===void 0&&(o=!1),ne(this.keysAtom_);try{F();var s=this.delete_(n);if(!s)return s;if(G(this)){var a=q(this,{object:this.proxy_||this.target_,name:n,type:pe,newValue:void 0});if(!a)return null}i.name||(i.name=process.env.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key"),i.context=this.proxy_||this.target_;var u=nr(n),f={configurable:l.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,n,f))return!1}else ee(this.target_,n,f);this.values_.set(n,new U(i)),this.notifyPropertyAddition_(n,void 0)}finally{K()}return!0},t.delete_=function(n,i){if(i===void 0&&(i=!1),ne(this.keysAtom_),!I(this.target_,n))return!0;if(G(this)){var o=q(this,{object:this.proxy_||this.target_,name:n,type:tr});if(!o)return null}try{var s;F();var a=H(this),u=process.env.NODE_ENV!=="production"&&V(),f=this.values_.get(n),d=void 0;if(!f&&(a||u)){var v;d=(v=Je(this.target_,n))==null?void 0:v.value}if(i){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(process.env.NODE_ENV!=="production"&&delete this.appliedAnnotations_[n],f&&(this.values_.delete(n),f instanceof ye&&(d=f.value_),Bn(f)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(n))==null||s.set(n in this.target_),a||u){var _={type:tr,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:d,name:n};process.env.NODE_ENV!=="production"&&u&&B(_),a&&X(this,_),process.env.NODE_ENV!=="production"&&u&&M()}}finally{K()}return!0},t.observe_=function(n,i){return process.env.NODE_ENV!=="production"&&i===!0&&p("`observe` doesn't support the fire immediately property for observable objects."),We(this,n)},t.intercept_=function(n){return ze(this,n)},t.notifyPropertyAddition_=function(n,i){var o,s=H(this),a=process.env.NODE_ENV!=="production"&&V();if(s||a){var u=s||a?{type:pe,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:i}:null;process.env.NODE_ENV!=="production"&&a&&B(u),s&&X(this,u),process.env.NODE_ENV!=="production"&&a&&M()}(o=this.pendingKeys_)==null||(o=o.get(n))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Ce(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e})();function Se(e,t){var r;if(process.env.NODE_ENV!=="production"&&t&&Me(e)&&p("Options can't be provided for already observable objects."),I(e,h))return process.env.NODE_ENV!=="production"&&!(ur(e)instanceof Rt)&&p("Cannot convert '"+yt(e)+`' into observable object:
26
26
  The target is already observable of different type.
27
- Extending builtins is not supported.`),e;process.env.NODE_ENV!=="production"&&!Object.isExtensible(e)&&p("Cannot make the designated object observable; it is not extensible");var n=(r=t?.name)!=null?r:process.env.NODE_ENV!=="production"?(T(e)?"ObservableObject":e.constructor.name)+"@"+W():"ObservableObject",i=new qt(e,new Map,String(n),Si(t));return Ie(e,h,i),e}var Ao=be("ObservableObjectAdministration",qt);function tr(e){return Qn[e]||(Qn[e]={get:function(){return this[h].getObservablePropValue_(e)},set:function(r){return this[h].setObservablePropValue_(e,r)}})}function Me(e){return et(e)?Ao(e[h]):!1}function nr(e,t,r){var n;process.env.NODE_ENV!=="production"&&(e.appliedAnnotations_[r]=t),(n=e.target_[j])==null||delete n[r]}function rr(e,t,r){if(process.env.NODE_ENV!=="production"&&!dr(t)&&p("Cannot annotate '"+e.name_+"."+r.toString()+"': Invalid annotation."),process.env.NODE_ENV!=="production"&&!it(t)&&I(e.appliedAnnotations_,r)){var n=e.name_+"."+r.toString(),i=e.appliedAnnotations_[r].annotationType_,o=t.annotationType_;p("Cannot apply '"+o+"' to '"+n+"':"+(`
27
+ Extending builtins is not supported.`),e;process.env.NODE_ENV!=="production"&&!Object.isExtensible(e)&&p("Cannot make the designated object observable; it is not extensible");var n=(r=t?.name)!=null?r:process.env.NODE_ENV!=="production"?(T(e)?"ObservableObject":e.constructor.name)+"@"+W():"ObservableObject",i=new Rt(e,new Map,String(n),wi(t));return Ie(e,h,i),e}var So=be("ObservableObjectAdministration",Rt);function nr(e){return er[e]||(er[e]={get:function(){return this[h].getObservablePropValue_(e)},set:function(r){return this[h].setObservablePropValue_(e,r)}})}function Me(e){return et(e)?So(e[h]):!1}function rr(e,t,r){var n;process.env.NODE_ENV!=="production"&&(e.appliedAnnotations_[r]=t),(n=e.target_[j])==null||delete n[r]}function ir(e,t,r){if(process.env.NODE_ENV!=="production"&&!pr(t)&&p("Cannot annotate '"+e.name_+"."+r.toString()+"': Invalid annotation."),process.env.NODE_ENV!=="production"&&!it(t)&&I(e.appliedAnnotations_,r)){var n=e.name_+"."+r.toString(),i=e.appliedAnnotations_[r].annotationType_,o=t.annotationType_;p("Cannot apply '"+o+"' to '"+n+"':"+(`
28
28
  The field is already annotated with '`+i+"'.")+`
29
29
  Re-annotating fields is not allowed.
30
- Use 'override' annotation for methods overridden by subclass.`)}}var So=or(0),wo=(function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1})(),Rt=0,ir=function(){};function Do(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Do(ir,Array.prototype);var zt=(function(e){function t(n,i,o,s){var a;return o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableArray@"+W():"ObservableArray"),s===void 0&&(s=!1),a=e.call(this)||this,he(function(){var u=new Gt(o,i,s,!0);u.proxy_=a,cn(a,h,u),n&&n.length&&a.spliceWithArray(0,0,n),wo&&Object.defineProperty(a,"0",So)}),a}pn(t,e);var r=t.prototype;return r.concat=function(){this[h].atom_.reportObserved();for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),o.map(function(a){return gt(a)?a.slice():a}))},r[Symbol.iterator]=function(){var n=this,i=0;return Ht({next:function(){return i<n.length?{value:n[i++],done:!1}:{done:!0,value:void 0}}})},je(t,[{key:"length",get:function(){return this[h].getArrayLength_()},set:function(i){this[h].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(ir);Object.entries(bt).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&Ie(zt.prototype,t,r)});function or(e){return{enumerable:!1,configurable:!0,get:function(){return this[h].get_(e)},set:function(r){this[h].set_(e,r)}}}function Vo(e){ee(zt.prototype,""+e,or(e))}function sr(e){if(e>Rt){for(var t=Rt;t<e+100;t++)Vo(t);Rt=e}}sr(1e3);function Co(e,t,r){return new zt(e,t,r)}function ke(e,t){if(typeof e=="object"&&e!==null){if(gt(e))return t!==void 0&&p(23),e[h].atom_;if(re(e))return e.atom_;if(ve(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||p(25,t,yt(e)),r}if(Me(e)){if(!t)return p(26);var n=e[h].values_.get(t);return n||p(27,t,yt(e)),n}if(Vt(e)||lt(e)||ht(e))return e}else if(S(e)&&ht(e[h]))return e[h];p(28)}function ar(e,t){if(e||p(29),Vt(e)||lt(e)||ht(e)||ve(e)||re(e))return e;if(e[h])return e[h];p(24,e)}function yt(e,t){var r;if(t!==void 0)r=ke(e,t);else{if(Pe(e))return e.name;Me(e)||ve(e)||re(e)?r=ar(e):r=ke(e)}return r.name_}function he(e){var t=Oe(),r=xt(!0);F();try{return e()}finally{K(),Pt(r),ce(t)}}var ur=Ze.toString;function cr(e,t,r){return r===void 0&&(r=-1),Wt(e,t,r)}function Wt(e,t,r,n,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var s=ur.call(e);if(s!==ur.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=lr(e),t=lr(t);var a=s==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,f=t.constructor;if(u!==f&&!(S(u)&&u instanceof u&&S(f)&&f instanceof f)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],i=i||[];for(var d=n.length;d--;)if(n[d]===e)return i[d]===t;if(n.push(e),i.push(t),a){if(d=e.length,d!==t.length)return!1;for(;d--;)if(!Wt(e[d],t[d],r-1,n,i))return!1}else{var v=Object.keys(e),_=v.length;if(Object.keys(t).length!==_)return!1;for(var b=0;b<_;b++){var g=v[b];if(!(I(t,g)&&Wt(e[g],t[g],r-1,n,i)))return!1}}return n.pop(),i.pop(),!0}function lr(e){return gt(e)?e.slice():Ve(e)||ve(e)||ae(e)||re(e)?Array.from(e.entries()):e}var fr,jo=((fr=Ye().Iterator)==null?void 0:fr.prototype)||{};function Ht(e){return e[Symbol.iterator]=To,Object.assign(Object.create(jo),e)}function To(){return this}function dr(e){return e instanceof Object&&typeof e.annotationType_=="string"&&S(e.make_)&&S(e.extend_)}if(["Symbol","Map","Set"].forEach(function(e){var t=Ye();typeof t[e]>"u"&&p("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:zi,extras:{getDebugName:yt},$mobx:h}),!m.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!_o)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function xo(e){e()}function Po(e){e||(e=xo,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),so({reactionScheduler:e})}function Bo(e){return Gn(e)}var Mo=1e4,ko=1e4,Lo=(function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),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(n){n===void 0&&(n=Mo),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var i=Date.now();r.registrations.forEach(function(o,s){i-o.registeredAt>=n&&(r.finalize(o.value),r.registrations.delete(s))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){this.registrations.set(n,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,ko))}}),e})(),Io=typeof FinalizationRegistry<"u"?FinalizationRegistry:Lo,Xt=new Io(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),Ot={exports:{}},Yt={};/**
30
+ Use 'override' annotation for methods overridden by subclass.`)}}var wo=sr(0),Do=(function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1})(),zt=0,or=function(){};function Vo(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Vo(or,Array.prototype);var Wt=(function(e){function t(n,i,o,s){var a;return o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableArray@"+W():"ObservableArray"),s===void 0&&(s=!1),a=e.call(this)||this,he(function(){var u=new qt(o,i,s,!0);u.proxy_=a,ln(a,h,u),n&&n.length&&a.spliceWithArray(0,0,n),Do&&Object.defineProperty(a,"0",wo)}),a}vn(t,e);var r=t.prototype;return r.concat=function(){this[h].atom_.reportObserved();for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),o.map(function(a){return gt(a)?a.slice():a}))},r[Symbol.iterator]=function(){var n=this,i=0;return Xt({next:function(){return i<n.length?{value:n[i++],done:!1}:{done:!0,value:void 0}}})},je(t,[{key:"length",get:function(){return this[h].getArrayLength_()},set:function(i){this[h].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(or);Object.entries(bt).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&Ie(Wt.prototype,t,r)});function sr(e){return{enumerable:!1,configurable:!0,get:function(){return this[h].get_(e)},set:function(r){this[h].set_(e,r)}}}function Co(e){ee(Wt.prototype,""+e,sr(e))}function ar(e){if(e>zt){for(var t=zt;t<e+100;t++)Co(t);zt=e}}ar(1e3);function jo(e,t,r){return new Wt(e,t,r)}function ke(e,t){if(typeof e=="object"&&e!==null){if(gt(e))return t!==void 0&&p(23),e[h].atom_;if(re(e))return e.atom_;if(ve(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||p(25,t,yt(e)),r}if(Me(e)){if(!t)return p(26);var n=e[h].values_.get(t);return n||p(27,t,yt(e)),n}if(Ct(e)||lt(e)||ht(e))return e}else if(S(e)&&ht(e[h]))return e[h];p(28)}function ur(e,t){if(e||p(29),Ct(e)||lt(e)||ht(e)||ve(e)||re(e))return e;if(e[h])return e[h];p(24,e)}function yt(e,t){var r;if(t!==void 0)r=ke(e,t);else{if(Pe(e))return e.name;Me(e)||ve(e)||re(e)?r=ur(e):r=ke(e)}return r.name_}function he(e){var t=Oe(),r=Pt(!0);F();try{return e()}finally{K(),Bt(r),ce(t)}}var cr=Ze.toString;function lr(e,t,r){return r===void 0&&(r=-1),Ht(e,t,r)}function Ht(e,t,r,n,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var s=cr.call(e);if(s!==cr.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=fr(e),t=fr(t);var a=s==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,f=t.constructor;if(u!==f&&!(S(u)&&u instanceof u&&S(f)&&f instanceof f)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],i=i||[];for(var d=n.length;d--;)if(n[d]===e)return i[d]===t;if(n.push(e),i.push(t),a){if(d=e.length,d!==t.length)return!1;for(;d--;)if(!Ht(e[d],t[d],r-1,n,i))return!1}else{var v=Object.keys(e),_=v.length;if(Object.keys(t).length!==_)return!1;for(var b=0;b<_;b++){var g=v[b];if(!(I(t,g)&&Ht(e[g],t[g],r-1,n,i)))return!1}}return n.pop(),i.pop(),!0}function fr(e){return gt(e)?e.slice():Ve(e)||ve(e)||ae(e)||re(e)?Array.from(e.entries()):e}var dr,To=((dr=Ye().Iterator)==null?void 0:dr.prototype)||{};function Xt(e){return e[Symbol.iterator]=xo,Object.assign(Object.create(To),e)}function xo(){return this}function pr(e){return e instanceof Object&&typeof e.annotationType_=="string"&&S(e.make_)&&S(e.extend_)}if(["Symbol","Map","Set"].forEach(function(e){var t=Ye();typeof t[e]>"u"&&p("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Wi,extras:{getDebugName:yt},$mobx:h}),!m.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!bo)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Po(e){e()}function Bo(e){e||(e=Po,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),ao({reactionScheduler:e})}function Mo(e){return qn(e)}var ko=1e4,Lo=1e4,Io=(function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),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(n){n===void 0&&(n=ko),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var i=Date.now();r.registrations.forEach(function(o,s){i-o.registeredAt>=n&&(r.finalize(o.value),r.registrations.delete(s))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){this.registrations.set(n,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Lo))}}),e})(),Uo=typeof FinalizationRegistry<"u"?FinalizationRegistry:Io,Yt=new Uo(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),Ot={exports:{}},Jt={};/**
31
31
  * @license React
32
32
  * use-sync-external-store-shim.production.js
33
33
  *
@@ -35,7 +35,7 @@ Use 'override' annotation for methods overridden by subclass.`)}}var So=or(0),wo
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var pr;function Uo(){if(pr)return Yt;pr=1;var e=m;function t(v,_){return v===_&&(v!==0||1/v===1/_)||v!==v&&_!==_}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(v,_){var b=_(),g=n({inst:{value:b,getSnapshot:_}}),O=g[0].inst,E=g[1];return o(function(){O.value=b,O.getSnapshot=_,u(O)&&E({inst:O})},[v,b,_]),i(function(){return u(O)&&E({inst:O}),v(function(){u(O)&&E({inst:O})})},[v]),s(b),b}function u(v){var _=v.getSnapshot;v=v.value;try{var b=_();return!r(v,b)}catch{return!0}}function f(v,_){return _()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:a;return Yt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Yt}var Jt={};/**
38
+ */var vr;function $o(){if(vr)return Jt;vr=1;var e=m;function t(v,_){return v===_&&(v!==0||1/v===1/_)||v!==v&&_!==_}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(v,_){var b=_(),g=n({inst:{value:b,getSnapshot:_}}),O=g[0].inst,E=g[1];return o(function(){O.value=b,O.getSnapshot=_,u(O)&&E({inst:O})},[v,b,_]),i(function(){return u(O)&&E({inst:O}),v(function(){u(O)&&E({inst:O})})},[v]),s(b),b}function u(v){var _=v.getSnapshot;v=v.value;try{var b=_();return!r(v,b)}catch{return!0}}function f(v,_){return _()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:a;return Jt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Jt}var Zt={};/**
39
39
  * @license React
40
40
  * use-sync-external-store-shim.development.js
41
41
  *
@@ -43,5 +43,5 @@ Use 'override' annotation for methods overridden by subclass.`)}}var So=or(0),wo
43
43
  *
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
- */var vr;function $o(){return vr||(vr=1,process.env.NODE_ENV!=="production"&&(function(){function e(b,g){return b===g&&(b!==0||1/b===1/g)||b!==b&&g!==g}function t(b,g){d||i.startTransition===void 0||(d=!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 O=g();if(!v){var E=g();o(O,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}E=s({inst:{value:O,getSnapshot:g}});var C=E[0].inst,se=E[1];return u(function(){C.value=O,C.getSnapshot=g,r(C)&&se({inst:C})},[b,O,g]),a(function(){return r(C)&&se({inst:C}),b(function(){r(C)&&se({inst:C})})},[b]),f(O),O}function r(b){var g=b.getSnapshot;b=b.value;try{var O=g();return!o(b,O)}catch{return!0}}function n(b,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=m,o=typeof Object.is=="function"?Object.is:e,s=i.useState,a=i.useEffect,u=i.useLayoutEffect,f=i.useDebugValue,d=!1,v=!1,_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Jt.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:_,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Jt}var hr;function Fo(){return hr||(hr=1,process.env.NODE_ENV==="production"?Ot.exports=Uo():Ot.exports=$o()),Ot.exports}var Ko=Fo();function _r(e){e.reaction=new le("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function Go(e,t){t===void 0&&(t="observed");var r=m.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return Xt.unregister(n),n.onStoreChange=a,n.reaction||(_r(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)===null||u===void 0||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var i=r.current;i.reaction||(_r(i),Xt.register(r,i,i)),m.useDebugValue(i.reaction,Bo),Ko.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot);var o,s;if(i.reaction.track(function(){try{o=e()}catch(a){s=a}}),s)throw s;return o}var Zt,Qt,qo=!0,br=!0,gr=typeof Symbol=="function"&&Symbol.for,Ro=(Qt=(Zt=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Zt===void 0?void 0:Zt.configurable)!==null&&Qt!==void 0?Qt:!1,mr=gr?Symbol.for("react.forward_ref"):typeof m.forwardRef=="function"&&m.forwardRef(function(e){return null}).$$typeof,yr=gr?Symbol.for("react.memo"):typeof m.memo=="function"&&m.memo(function(e){return null}).$$typeof;function R(e,t){var r;if(process.env.NODE_ENV,yr&&e.$$typeof===yr)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=(r=void 0)!==null&&r!==void 0?r:!1,i=e,o=e.displayName||e.name;if(mr&&e.$$typeof===mr&&(n=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(a,u){return Go(function(){return i(a,u)},o)};return s.displayName=e.displayName,Ro&&Object.defineProperty(s,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(s.contextTypes=e.contextTypes,process.env.NODE_ENV!=="production"&&br&&(br=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),n&&(s=m.forwardRef(s)),s=m.memo(s),Wo(e,s),process.env.NODE_ENV!=="production"&&Object.defineProperty(s,"contextTypes",{set:function(){var a,u;throw new Error("[mobx-react-lite] `".concat(this.displayName||((a=this.type)===null||a===void 0?void 0:a.displayName)||((u=this.type)===null||u===void 0?void 0:u.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),s}var zo={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Wo(e,t){Object.keys(e).forEach(function(r){zo[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}process.env.NODE_ENV;var en;Po(Tr.unstable_batchedUpdates),en=Xt.finalizeAllImmediately;const Ho=({onClick:e,disabled:t=!1,imagePath:r})=>c.jsxs("div",{className:"buy-bonus-wrap","aria-hidden":t?"true":"false",children:[r&&c.jsx("div",{className:"bonus-thumb",role:"img","aria-label":"bonus thumbnail",style:{backgroundImage:`url(${r})`}}),c.jsx("button",{className:`buy-bonus ${t?"buy-bonus--disabled":""}`,onClick:e,disabled:t,"aria-pressed":t,children:r?"Disable":"Buy Bonus"})]}),Or=({label:e,value:t})=>c.jsxs("div",{className:"info",children:[c.jsx("span",{className:"label",children:e}),c.jsx("span",{className:"value",children:t})]}),Xo=({onClick:e,disabled:t=!1,value:r,activeAnteBet:n=!1})=>c.jsxs("div",{className:`bet-amount ${t?"disabled":""}`,onClick:e,children:[c.jsx("div",{className:"bet-amount-icon"}),c.jsxs("label",{className:`bet-amount-text ${n?"ante-color":""}`,children:[r," FUN"]})]}),Er=({onClick:e,disabled:t=!1,className:r})=>c.jsx("button",{className:`${r} ${t?"disabled":""}`,onClick:e}),Yo=({onClick:e,disabled:t=!1})=>c.jsx("button",{className:`spin-btn ${t?"disabled":""}`,onClick:e}),Nr=({onClick:e,disabled:t=!1,className:r,isActive:n})=>c.jsx("button",{className:`${r} ${t?"disabled":""} ${n?"active":""}`,onClick:e});class Jo{balance=1e4;betAmount=10;betIndex=0;lastWin=0;volume=50;betAmountRange=[10,20,50,100,500,1e3,5e3,1e4,25e3,5e5,65e3,8e4,1e5,15e4,2e5];maxBetAmount=this.betAmountRange[0];minBetAmount=this.betAmountRange[this.betAmountRange.length-1];displayCurrency="FUN";constructor(){Ae(this)}setBet(t){this.betAmount=t}setNextBetAmount(){if(this.betIndex===this.betAmountRange.length-1)return console.error("Bet Index must be less than BetStore.betAmountRange.length");this.betIndex+=1,this.betAmount=this.betAmountRange[this.betIndex]}setPrevBetAmount(){if(this.betIndex<1)return console.error("Bet Index must be more than 0");this.betIndex-=1,this.betAmount=this.betAmountRange[this.betIndex]}setBetAmountRange(t){this.betAmountRange=t,t.length>0&&(this.maxBetAmount=t[0],this.minBetAmount=t[t.length-1])}setDisplayCurrency(t){this.displayCurrency=t}setBalance(t){this.balance=t}setLastWin(t){this.lastWin=t}setVolume(t){this.volume=Math.max(0,Math.min(100,t))}}const ie=new Jo;class Zo{activePopup=null;constructor(){Ae(this)}open(t){this.activePopup=t}close(){this.activePopup=null}get isOpen(){return this.activePopup!==null}}const z=new Zo,Z={bet:"bet",autoplay:"autoplay",settings:"settings",history:"history",buyBonus:"buy_bonus"},Qo={insufficientFunds:"insufficient funds"},Ar={primary:{background:"#FBDE38",color:"#1C1B1E"},secondary:{background:"#1C1B1E",color:"#FFFFFF"}},es=[{name:Qo.insufficientFunds,title:"Insufficient Funds",imagePath:"/img_1.png",message:"Your balance is low, please make a deposit",buttons:[{text:"Back",configs:Ar.secondary},{text:"Ok",configs:Ar.primary}]}],tn={ante:"ante",buy:"buy"};class ts{introSkip=!1;spaceToSpin=!1;spaceToSkip=!1;isTurbo=!1;volume=50;musicOn=!0;soundsOn=!0;constructor(){Ae(this)}setMusicOn(t){this.musicOn=t}setVolume(t){this.volume=t}setIsTurbo(t){this.isTurbo=t}setSoundsOn(t){this.soundsOn=t}setIntroSkip(t){this.introSkip=t}setSpaceToSpin(t){this.spaceToSpin=t}setSpaceToSkip(t){this.spaceToSkip=t}}const oe=new ts;class ns{anteBets=[{title:"Ante 1",imagePath:"/img_1.png",costMultiplier:50},{title:"Ante 2",imagePath:"/img_1.png",costMultiplier:3},{title:"Ante 3",imagePath:"/img_1.png",costMultiplier:4},{title:"Ante 4",costMultiplier:4}];inReelFeatures=[{title:"ReelFeature 1",costMultiplier:500},{title:"ReelFeature 2",costMultiplier:6},{title:"ReelFeature 3",costMultiplier:7}];bonusFeatures=[{title:"Bonus 1",costMultiplier:50},{title:"Bonus 2",costMultiplier:100},{title:"Bonus 3",costMultiplier:200},{title:"Bonus 4",costMultiplier:500}];activeAnteBet=null;activeBonusFeature=null;activeInReelFeature=null;constructor(){Ae(this)}setAnteBets(t){this.anteBets=t}setActiveAnteBet(t){this.activeAnteBet=t}setActiveBonusFeature(t){this.activeBonusFeature=t}setActiveInReelFeature(t){this.activeInReelFeature=t}setInReelFeatures(t){this.inReelFeatures=t}setBonusFeatures(t){this.bonusFeatures=t}get isActiveBonus(){return!!this.activeBonusFeature}get isActiveInReelFeature(){return!!this.activeInReelFeature}get isActiveAnteBet(){return!!this.activeAnteBet}}const Et=new ns,rs=R(()=>{const{lastWin:e,balance:t,betAmount:r,displayCurrency:n,setNextBetAmount:i,setPrevBetAmount:o}=ie,{setIsTurbo:s,isTurbo:a}=oe,{open:u}=z,{activeAnteBet:f,activeBonusFeature:d,activeInReelFeature:v}=Et,_=m.useMemo(()=>f?.imagePath||v?.imagePath||d?.imagePath,[f,d,v]);return c.jsx("div",{className:"ui-footer",children:c.jsxs("div",{className:"top-row",children:[c.jsxs("div",{className:"left-group",children:[c.jsx(Ho,{imagePath:_,onClick:u.bind(z,Z.buyBonus)}),c.jsxs("div",{className:"balance-info",children:[c.jsx(Or,{label:"LAST WIN",value:`${e} ${n}`}),c.jsx(Or,{label:"BALANCE",value:`${t} ${n}`})]})]}),c.jsxs("div",{className:"bet-control",children:[c.jsx(Xo,{activeAnteBet:!!f,value:r,onClick:u.bind(z,Z.bet)}),c.jsxs("div",{className:"bet-box",children:[c.jsx(Er,{onClick:()=>o.call(ie),className:"bet-btn minus"}),c.jsx(Yo,{onClick:()=>console.log("Spin"),state:"active"}),c.jsx(Er,{onClick:()=>i.call(ie),className:"bet-btn plus"})]}),c.jsx(Nr,{className:"quick-spin",onClick:s.bind(oe,!a),isActive:a}),c.jsx(Nr,{className:"auto-spin",onClick:u.bind(z,Z.autoplay),isActive:!1})]})]})})}),is=({onMount:e,onUnmount:t,className:r})=>{const n=m.useRef(null);return m.useEffect(()=>(n.current&&e&&e(n.current),()=>{t?.()}),[e,t]),c.jsx("div",{ref:n,className:r,style:{width:"100%",height:"100%",position:"relative"}})};function os(e){const t=m.useRef(null);return m.useEffect(()=>{if(typeof e!="function")return;const r=n=>{const i=t.current;if(!i)return;const o=n.target;o&&(i.contains(o)||e(n))};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e]),t}const ss=R(()=>{const{volume:e,setVolume:t}=oe,[r,n]=m.useState(!1),i=os(()=>n(!1)),o=m.useCallback(()=>{r||n(!0)},[r,n]);return c.jsxs(c.Fragment,{children:[r&&c.jsxs("div",{className:"volume-control",ref:i,children:[c.jsx("input",{type:"range",min:0,max:100,value:e,onChange:s=>t.call(oe,Number(s.target.value)),className:"slider","aria-label":"Volume"}),c.jsx("span",{className:"volume-value",children:e})]}),c.jsx("button",{className:`btn-sound ${e===0?"inactive":""}`,"aria-label":"Toggle Sound",onClick:o})]})}),as=R(()=>{const{open:e}=z;return c.jsxs("div",{className:"settings-section",children:[c.jsx(ss,{}),c.jsx("button",{className:"btn-settings","aria-label":"Open Settings",onClick:e.bind(z,Z.settings)})]})});class us{dialogs=es;activeDialog=null;constructor(){Ae(this)}add(t){this.dialogs.push(t)}open(t){const r=this.dialogs.find(n=>t===n.name);r?this.activeDialog=r:console.error(`Couldn't find dialog named ${t}`)}close(){this.activeDialog=null}get isOpen(){return this.activeDialog!==null}}const Nt=new us,cs=R(()=>{const{betAmount:e,displayCurrency:t,setNextBetAmount:r,setPrevBetAmount:n}=ie;return c.jsxs("div",{className:"overlay-bet-controller",children:[c.jsx("div",{className:"decrease-bet",onClick:n.bind(ie)}),c.jsxs("div",{className:"bet-amount",children:[e," ",t]}),c.jsx("div",{className:"increase-bet",onClick:r.bind(ie)})]})}),ls=R(({children:e})=>{const t=z.activePopup,r=Nt.activeDialog;if(!t&&!r)return null;const n=o=>{o.target===o.currentTarget&&(z.close(),Nt.close())},i=()=>{z.close(),Nt.close()};return c.jsxs("div",{className:`overlay ${r?"dialog":""}`,onClick:n,role:"presentation",children:[typeof t=="string"&&c.jsx("span",{className:"popup-title",children:t.toUpperCase()}),c.jsx("div",{className:"overlay-content",role:"dialog","aria-modal":"true",children:e}),!r&&c.jsx("div",{className:"overlay-close","aria-label":"Close",onClick:i,children:c.jsx("img",{src:"/assets/icons/popup-close.svg",alt:"Close"})}),t===Z.buyBonus&&c.jsx(cs,{})]})}),Sr=({value:e,onClick:t,active:r})=>c.jsx("div",{className:`rectLabel ${r?"current-active":""}`,onClick:()=>t(e),children:c.jsx("span",{children:e})}),fs=R(()=>{const{betAmountRange:e,setBet:t,betAmount:r}=ie;return c.jsx("div",{className:"bet-popup-container",children:e.map((n,i)=>{const o=r===n;return c.jsx(Sr,{value:n,active:o,onClick:t.bind(ie,n)},i)})})});class ds{countRange=[10,25,50,70,100,500,1e3];limitsRange=[10,20,50];count=0;specialFeatureSwitcherOn=!1;lossLimit=null;winLimit=null;constructor(){Ae(this)}setCount(t){this.count=t}setLimitsRange(t){this.limitsRange=t}setCountRange(t){this.countRange=t}setSpecialFeatureSwitcher(t){this.specialFeatureSwitcherOn=t}setLossLimit(t){console.log(t),this.lossLimit=t}setWinLimit(t){console.log(t),this.winLimit=t}start(){}}const He=new ds,At=({checked:e,onChange:t})=>c.jsx("button",{className:`ap-toggle ${e?"ap-toggle--on":"ap-toggle--off"}`,"aria-pressed":e,onClick:()=>t(!e),type:"button",children:c.jsx("span",{className:"ap-toggle__knob"})}),nn=({active:e,onClick:t,children:r})=>c.jsx("button",{className:`ap-limit ${e?"ap-limit--active":""}`,onClick:t,type:"button",children:r}),wr=({active:e,onClick:t,children:r})=>c.jsx("button",{className:`ap-tab ${e?"ap-tab--active":""}`,onClick:t,type:"button",children:r}),ps=({value:e,placeholder:t,inputType:r="text",className:n="",autoFocus:i=!0,onSubmit:o,onCancel:s})=>{const[a,u]=m.useState(""),f=m.useRef(null),d=m.useRef(!1);m.useEffect(()=>{u(e??""),d.current=!1},[e]),m.useEffect(()=>{i&&setTimeout(()=>{f.current?.focus(),f.current?.select()},0)},[i]);const v=()=>{d.current||(d.current=!0,o(a.trim()))},_=()=>{v()},b=g=>{g.key==="Enter"?(g.preventDefault(),v(),f.current?.blur()):g.key==="Escape"&&(u(e??""),s?.(),f.current?.blur())};return c.jsx("input",{ref:f,className:`ap-limit ${n}`,type:"number",value:a,placeholder:t,onChange:g=>u(g.target.value),onBlur:_,onKeyDown:b,inputMode:r==="number"?"numeric":void 0,"aria-label":"custom limit input"})},vs=R(()=>{const{specialFeatureSwitcherOn:e,setSpecialFeatureSwitcher:t,countRange:r,count:n,setCount:i,lossLimit:o,winLimit:s,setLossLimit:a,limitsRange:u,setWinLimit:f}=He,[d,v]=m.useState(0),[_,b]=m.useState(!1),[g,O]=m.useState(""),E=m.useMemo(()=>d?s:o,[d,s,o]),C=m.useMemo(()=>d?f.bind(He):a.bind(He),[d,f,a]);m.useEffect(()=>{const w=E&&!u.includes(E);O(w?E:0)},[E,s]);const se=!!n&&n>0;return c.jsxs("div",{className:"autoplay-wrap",children:[c.jsx("h3",{className:"ap-title",children:"Number of spins"}),c.jsx("div",{className:"autoplay-count",children:r.map((w,A)=>{const L=n===w;return c.jsx(Sr,{value:w,active:L,onClick:i.bind(He,w)},A)})}),c.jsxs("div",{className:"ap-switch-row",children:[c.jsx("div",{className:"ap-switch-label",children:"Stop on special feature WIN"}),c.jsx("div",{className:"ap-switch-control",children:c.jsx(At,{checked:e,onChange:w=>t.call(He,w)})})]}),c.jsxs("div",{className:"ap-tabs",children:[c.jsx(wr,{active:!d,onClick:()=>v(0),children:"Loss limit"}),c.jsx(wr,{active:!!d,onClick:()=>v(1),children:"Single WIN limit"})]}),c.jsx("div",{className:"ap-limits-panel",children:c.jsx("div",{className:"ap-limits-inner",children:c.jsxs("div",{className:"ap-limit-grid",children:[u.map((w,A)=>c.jsxs(nn,{active:E===w,onClick:()=>C(w),children:[w,"X BET"]},A)),c.jsx(nn,{active:!E,onClick:()=>C(null),children:"NO LIMIT"}),_?c.jsx(ps,{value:""+g,inputType:"number",onSubmit:w=>{const A=w.trim();if(A===""){b(!1);return}const L=Number(A);O(L??0),C(L),b(!1)},onCancel:()=>{b(!1)}}):c.jsx(nn,{onClick:()=>{b(!0)},active:!!E&&E===Number(g),children:g?`${g}X BET`:"CUSTOM"})]})})}),c.jsx("div",{className:"ap-start-row",children:c.jsx("button",{className:`ap-start-btn ${se?"":"ap-start-btn--disabled"}`,onClick:()=>{},type:"button",disabled:!se,children:"Start Autoplay"})})]})}),Dr=({onClick:e,label:t,className:r})=>c.jsxs("button",{className:`sp-action ${r}`,type:"button",onClick:e,children:[c.jsx("span",{className:"sp-action__icon","aria-hidden":"true"}),c.jsx("span",{className:"sp-action__label",children:t})]}),Xe=({onToggle:e,label:t,checked:r=!1})=>c.jsxs("div",{className:"sp-row",children:[c.jsx("div",{className:"sp-switch",children:c.jsx(At,{checked:r,onChange:()=>e(!r)})}),c.jsx("div",{className:"sp-label",children:t})]}),hs=R(()=>{const{introSkip:e,spaceToSkip:t,musicOn:r,soundsOn:n,spaceToSpin:i,setSpaceToSpin:o,setIntroSkip:s,setSpaceToSkip:a,setSoundsOn:u,setMusicOn:f}=oe,{open:d}=z;return c.jsxs("div",{className:"sp-wrap",children:[c.jsxs("div",{className:"sp-actions",children:[c.jsx(Dr,{onClick:d.bind(z,Z.history),className:"sp-action--history",label:"History"}),c.jsx(Dr,{onClick:()=>{},className:"sp-action--paytable",label:"Paytable"})]}),c.jsx("h3",{className:"sp-section-title",children:"Audio"}),c.jsxs("div",{className:"sp-rows",children:[c.jsx(Xe,{onToggle:f.bind(oe),checked:r,label:"Music"}),c.jsx(Xe,{onToggle:u.bind(oe),checked:n,label:"Sounds"})]}),c.jsx("h3",{className:"sp-section-title",children:"Game launch"}),c.jsx("div",{className:"sp-rows",children:c.jsx(Xe,{onToggle:s.bind(oe),checked:e,label:"Skip Intro"})}),c.jsx("h3",{className:"sp-section-title",children:"Keyboard"}),c.jsxs("div",{className:"sp-rows",children:[c.jsx(Xe,{onToggle:o.bind(oe),checked:i,label:"Spacebar to Spin"}),c.jsx(Xe,{onToggle:a.bind(oe),checked:t,label:"Spacebar to Skip"})]})]})}),_s=({date:e,currencyCode:t,betAmount:r,winAmount:n})=>{const[i,o]=m.useState(!1);return c.jsxs("div",{className:`history-item ${i?"active":""}`,role:"row",children:[c.jsx("span",{className:"date-section",children:e}),c.jsxs("span",{className:"bet-section",children:[r,c.jsx("span",{className:"currency",children:t})]}),c.jsxs("span",{className:"win-section",children:[n,c.jsxs("span",{className:"currency",children:[" ",t]})]}),c.jsx("div",{className:`vector ${i?"up":"down"}`,"aria-hidden":"true",onClick:()=>o(!i)}),i&&c.jsxs("div",{className:"additional-info",children:[c.jsxs("button",{className:"additional-button replay",children:[c.jsx("div",{className:"replay-icon"}),"REPLAY"]}),c.jsx("button",{className:"additional-button",children:"LINK"})]})]})};class bs{data=[{date:"26.11.2024 00:16",betAmount:1011,winAmount:20,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:20,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:1,winAmount:2e4,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"}];constructor(){Ae(this)}setData(t){this.data=t}}const gs=new bs,ms=R(()=>{const{data:e}=gs;return c.jsxs("div",{className:"history-wrap",role:"list","aria-label":"History list",children:[c.jsxs("div",{className:"history-item history-item--head",role:"row",children:[c.jsx("span",{className:"date-section",children:"Date"}),c.jsx("span",{className:"bet-section",children:"Bet"}),c.jsx("span",{className:"win-section",children:"Win"})]}),e.map((t,r)=>c.jsx(_s,{date:t.date,betAmount:t.betAmount,winAmount:t.winAmount,currencyCode:t.currencyCode,id:"aa"},r))]})}),Vr=R(({item:e,type:t,onToggle:r,onBuy:n})=>{const{betAmount:i}=ie,{activeAnteBet:o,setActiveAnteBet:s}=Et,a=e.title.split(`
47
- `);return c.jsxs("div",{className:"sf-card",role:"group","aria-label":a.join(" "),children:[c.jsx("div",{className:"sf-card__title",children:a.map((u,f)=>c.jsx("span",{children:u},f))}),c.jsxs("div",{className:"sf-card__content",children:[c.jsx("div",{className:"sf-card__image-wrap",children:e.imagePath?c.jsx("img",{src:e.imagePath,alt:a[0]}):c.jsx("div",{className:"sf-card__image-placeholder"})}),e.description&&c.jsx("div",{className:"sf-card__description",children:e.description})]}),c.jsxs("div",{className:`sf-card__bottom ${t}`,children:[c.jsxs("div",{className:"sf-card__price",children:[e.costMultiplier*i," ",ie.displayCurrency]}),t==="ante"?c.jsx("div",{className:"sf-card__toggle",children:c.jsx(At,{checked:o===e,onChange:u=>s.call(Et,u?e:null)})}):c.jsx("button",{className:"sf-buy-btn",type:"button",onClick:()=>n&&n(e.title),children:"BUY"})]})]})}),rn=({features:e,type:t,title:r})=>c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"sf-section-title",children:r}),c.jsx("div",{className:"sf-grid",children:e.map((n,i)=>c.jsx(Vr,{item:n,type:t,onToggle:()=>{}},i))})]}),ys=()=>{const e=i=>{console.log("buy",i)},{anteBets:t,inReelFeatures:r,bonusFeatures:n}=Et;return c.jsxs("div",{className:"sf-wrap",children:[t.length&&c.jsx(rn,{features:t,type:tn.ante,title:"Ante Bets"},0),r.length&&c.jsx(rn,{features:r,type:tn.buy,title:"Reel Features"},1),n.length&&c.jsx(rn,{features:n,type:tn.buy,title:"Bonus"},2),c.jsx("h2",{className:"sf-section-title",children:"Bonus"}),c.jsx("div",{className:"sf-grid sf-grid--three",children:n.map((i,o)=>c.jsx(Vr,{item:i,type:"buy",onBuy:e},o))})]})},Os=R(()=>{const{activePopup:e}=z;if(!e)return null;const t=m.useMemo(()=>{switch(e){case Z.bet:return fs;case Z.autoplay:return vs;case Z.settings:return hs;case Z.history:return ms;case Z.buyBonus:return ys;default:return null}},[e]);return t?c.jsx(t,{}):null}),Es=({configs:e,text:t,onClick:r})=>c.jsx("button",{type:"button",className:"additional-btn",style:{"--btn-bg":e?.background??"transparent","--btn-color":e?.color??"inherit"},onClick:typeof r=="function"?r:void 0,children:t}),Ns=R(()=>{const{activeDialog:e}=Nt;return e?c.jsxs("div",{className:"dialogs-wrap","aria-live":"polite",children:[c.jsx("span",{className:"title",children:e?.title}),e?.imagePath&&c.jsx("img",{className:"dialog-image",src:e.imagePath,alt:e.title??"dialog image"}),c.jsx("span",{className:"message",children:e?.message}),e.toggle&&c.jsx(At,{checked:e.toggle.value,onChange:()=>e.toggle?.onClick()}),c.jsx("div",{className:"additional-btns",children:e?.buttons?.map((t,r)=>c.jsx(Es,{configs:t.configs,text:t.text,onClick:t.onClick},r))})]}):null});function As(){return c.jsxs("div",{className:"app",children:[c.jsxs("div",{className:"game-container",children:[c.jsx(is,{}),c.jsx(as,{}),c.jsx(rs,{})]}),c.jsxs(ls,{children:[c.jsx(Os,{}),c.jsx(Ns,{})]})]})}function Ss(e){e?jr.createRoot(e).render(c.jsx(m.StrictMode,{children:c.jsx(As,{})})):console.error("Целевой DOM-элемент для монтирования UI не найден.")}Q.createUi=Ss,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
46
+ */var hr;function Fo(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&(function(){function e(b,g){return b===g&&(b!==0||1/b===1/g)||b!==b&&g!==g}function t(b,g){d||i.startTransition===void 0||(d=!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 O=g();if(!v){var E=g();o(O,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}E=s({inst:{value:O,getSnapshot:g}});var C=E[0].inst,se=E[1];return u(function(){C.value=O,C.getSnapshot=g,r(C)&&se({inst:C})},[b,O,g]),a(function(){return r(C)&&se({inst:C}),b(function(){r(C)&&se({inst:C})})},[b]),f(O),O}function r(b){var g=b.getSnapshot;b=b.value;try{var O=g();return!o(b,O)}catch{return!0}}function n(b,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=m,o=typeof Object.is=="function"?Object.is:e,s=i.useState,a=i.useEffect,u=i.useLayoutEffect,f=i.useDebugValue,d=!1,v=!1,_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Zt.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:_,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Zt}var _r;function Ko(){return _r||(_r=1,process.env.NODE_ENV==="production"?Ot.exports=$o():Ot.exports=Fo()),Ot.exports}var Go=Ko();function br(e){e.reaction=new le("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function qo(e,t){t===void 0&&(t="observed");var r=m.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return Yt.unregister(n),n.onStoreChange=a,n.reaction||(br(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)===null||u===void 0||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var i=r.current;i.reaction||(br(i),Yt.register(r,i,i)),m.useDebugValue(i.reaction,Mo),Go.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot);var o,s;if(i.reaction.track(function(){try{o=e()}catch(a){s=a}}),s)throw s;return o}var Qt,en,Ro=!0,gr=!0,mr=typeof Symbol=="function"&&Symbol.for,zo=(en=(Qt=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Qt===void 0?void 0:Qt.configurable)!==null&&en!==void 0?en:!1,yr=mr?Symbol.for("react.forward_ref"):typeof m.forwardRef=="function"&&m.forwardRef(function(e){return null}).$$typeof,Or=mr?Symbol.for("react.memo"):typeof m.memo=="function"&&m.memo(function(e){return null}).$$typeof;function R(e,t){var r;if(process.env.NODE_ENV,Or&&e.$$typeof===Or)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=(r=void 0)!==null&&r!==void 0?r:!1,i=e,o=e.displayName||e.name;if(yr&&e.$$typeof===yr&&(n=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(a,u){return qo(function(){return i(a,u)},o)};return s.displayName=e.displayName,zo&&Object.defineProperty(s,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(s.contextTypes=e.contextTypes,process.env.NODE_ENV!=="production"&&gr&&(gr=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),n&&(s=m.forwardRef(s)),s=m.memo(s),Ho(e,s),process.env.NODE_ENV!=="production"&&Object.defineProperty(s,"contextTypes",{set:function(){var a,u;throw new Error("[mobx-react-lite] `".concat(this.displayName||((a=this.type)===null||a===void 0?void 0:a.displayName)||((u=this.type)===null||u===void 0?void 0:u.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),s}var Wo={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Ho(e,t){Object.keys(e).forEach(function(r){Wo[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}process.env.NODE_ENV;var tn;Bo(xr.unstable_batchedUpdates),tn=Yt.finalizeAllImmediately;const Xo=({onClick:e,disabled:t=!1,imagePath:r})=>c.jsxs("div",{className:"buy-bonus-wrap","aria-hidden":t?"true":"false",children:[r&&c.jsx("div",{className:"bonus-thumb",role:"img","aria-label":"bonus thumbnail",style:{backgroundImage:`url(${r})`}}),c.jsx("button",{className:`buy-bonus ${t?"buy-bonus--disabled":""}`,onClick:e,disabled:t,"aria-pressed":t,children:r?"Disable":"Buy Bonus"})]}),Er=({label:e,value:t})=>c.jsxs("div",{className:"info",children:[c.jsx("span",{className:"label",children:e}),c.jsx("span",{className:"value",children:t})]}),Yo=({onClick:e,disabled:t=!1,value:r,activeAnteBet:n=!1})=>c.jsxs("div",{className:`bet-amount ${t?"disabled":""}`,onClick:e,children:[c.jsx("div",{className:"bet-amount-icon"}),c.jsxs("label",{className:`bet-amount-text ${n?"ante-color":""}`,children:[r," FUN"]})]}),Nr=({onClick:e,disabled:t=!1,className:r})=>c.jsx("button",{className:`${r} ${t?"disabled":""}`,onClick:e}),Jo=({onClick:e,disabled:t=!1})=>c.jsx("button",{className:`spin-btn ${t?"disabled":""}`,onClick:e}),Ar=({onClick:e,disabled:t=!1,className:r,isActive:n})=>c.jsx("button",{className:`${r} ${t?"disabled":""} ${n?"active":""}`,onClick:e});class Zo{balance=1e4;betAmount=10;betIndex=0;lastWin=0;volume=50;betAmountRange=[10,20,50,100,500,1e3,5e3,1e4,25e3,5e5,65e3,8e4,1e5,15e4,2e5];maxBetAmount=this.betAmountRange[0];minBetAmount=this.betAmountRange[this.betAmountRange.length-1];displayCurrency="FUN";constructor(){Ae(this)}setBet(t){this.betAmount=t}setNextBetAmount(){if(this.betIndex===this.betAmountRange.length-1)return console.error("Bet Index must be less than BetStore.betAmountRange.length");this.betIndex+=1,this.betAmount=this.betAmountRange[this.betIndex]}setPrevBetAmount(){if(this.betIndex<1)return console.error("Bet Index must be more than 0");this.betIndex-=1,this.betAmount=this.betAmountRange[this.betIndex]}setBetAmountRange(t){this.betAmountRange=t,t.length>0&&(this.maxBetAmount=t[0],this.minBetAmount=t[t.length-1])}setDisplayCurrency(t){this.displayCurrency=t}setBalance(t){this.balance=t}setLastWin(t){this.lastWin=t}setVolume(t){this.volume=Math.max(0,Math.min(100,t))}}const ie=new Zo;class Qo{activePopup=null;constructor(){Ae(this)}open(t){this.activePopup=t}close(){this.activePopup=null}get isOpen(){return this.activePopup!==null}}const z=new Qo,Z={bet:"bet",autoplay:"autoplay",settings:"settings",history:"history",buyBonus:"buy_bonus"},es={insufficientFunds:"insufficient funds"},Sr={primary:{background:"#FBDE38",color:"#1C1B1E"},secondary:{background:"#1C1B1E",color:"#FFFFFF"}},ts=[{name:es.insufficientFunds,title:"Insufficient Funds",imagePath:"/img_1.png",message:"Your balance is low, please make a deposit",buttons:[{text:"Back",configs:Sr.secondary},{text:"Ok",configs:Sr.primary}]}],nn={ante:"ante",buy:"buy"};class ns{introSkip=!1;spaceToSpin=!1;spaceToSkip=!1;isTurbo=!1;volume=50;musicOn=!0;soundsOn=!0;constructor(){Ae(this)}setMusicOn(t){this.musicOn=t}setVolume(t){this.volume=t}setIsTurbo(t){this.isTurbo=t}setSoundsOn(t){this.soundsOn=t}setIntroSkip(t){this.introSkip=t}setSpaceToSpin(t){this.spaceToSpin=t}setSpaceToSkip(t){this.spaceToSkip=t}}const oe=new ns;class rs{anteBets=[{title:"Ante 1",imagePath:"/img_1.png",costMultiplier:50},{title:"Ante 2",imagePath:"/img_1.png",costMultiplier:3},{title:"Ante 3",imagePath:"/img_1.png",costMultiplier:4},{title:"Ante 4",costMultiplier:4}];inReelFeatures=[{title:"ReelFeature 1",costMultiplier:500},{title:"ReelFeature 2",costMultiplier:6},{title:"ReelFeature 3",costMultiplier:7}];bonusFeatures=[{title:"Bonus 1",costMultiplier:50},{title:"Bonus 2",costMultiplier:100},{title:"Bonus 3",costMultiplier:200},{title:"Bonus 4",costMultiplier:500}];activeAnteBet=null;activeBonusFeature=null;activeInReelFeature=null;constructor(){Ae(this)}setAnteBets(t){this.anteBets=t}setActiveAnteBet(t){this.activeAnteBet=t}setActiveBonusFeature(t){this.activeBonusFeature=t}setActiveInReelFeature(t){this.activeInReelFeature=t}setInReelFeatures(t){this.inReelFeatures=t}setBonusFeatures(t){this.bonusFeatures=t}get isActiveBonus(){return!!this.activeBonusFeature}get isActiveInReelFeature(){return!!this.activeInReelFeature}get isActiveAnteBet(){return!!this.activeAnteBet}}const Et=new rs,is=R(()=>{const{lastWin:e,balance:t,betAmount:r,displayCurrency:n,setNextBetAmount:i,setPrevBetAmount:o}=ie,{setIsTurbo:s,isTurbo:a}=oe,{open:u}=z,{activeAnteBet:f,activeBonusFeature:d,activeInReelFeature:v}=Et,_=m.useMemo(()=>f?.imagePath||v?.imagePath||d?.imagePath,[f,d,v]);return c.jsx("div",{className:"ui-footer",children:c.jsxs("div",{className:"top-row",children:[c.jsxs("div",{className:"left-group",children:[c.jsx(Xo,{imagePath:_,onClick:u.bind(z,Z.buyBonus)}),c.jsxs("div",{className:"balance-info",children:[c.jsx(Er,{label:"LAST WIN",value:`${e} ${n}`}),c.jsx(Er,{label:"BALANCE",value:`${t} ${n}`})]})]}),c.jsxs("div",{className:"bet-control",children:[c.jsx(Yo,{activeAnteBet:!!f,value:r,onClick:u.bind(z,Z.bet)}),c.jsxs("div",{className:"bet-box",children:[c.jsx(Nr,{onClick:()=>o.call(ie),className:"bet-btn minus"}),c.jsx(Jo,{onClick:()=>console.log("Spin"),state:"active"}),c.jsx(Nr,{onClick:()=>i.call(ie),className:"bet-btn plus"})]}),c.jsx(Ar,{className:"quick-spin",onClick:s.bind(oe,!a),isActive:a}),c.jsx(Ar,{className:"auto-spin",onClick:u.bind(z,Z.autoplay),isActive:!1})]})]})})}),os=({onMount:e,onUnmount:t,className:r})=>{const n=m.useRef(null);return m.useEffect(()=>(n.current&&e&&e(n.current),()=>{t?.()}),[e,t]),c.jsx("div",{ref:n,className:r,style:{width:"100%",height:"100%",position:"relative"}})};function ss(e){const t=m.useRef(null);return m.useEffect(()=>{if(typeof e!="function")return;const r=n=>{const i=t.current;if(!i)return;const o=n.target;o&&(i.contains(o)||e(n))};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e]),t}const as=R(()=>{const{volume:e,setVolume:t}=oe,[r,n]=m.useState(!1),i=ss(()=>n(!1)),o=m.useCallback(()=>{r||n(!0)},[r,n]);return c.jsxs(c.Fragment,{children:[r&&c.jsxs("div",{className:"volume-control",ref:i,children:[c.jsx("input",{type:"range",min:0,max:100,value:e,onChange:s=>t.call(oe,Number(s.target.value)),className:"slider","aria-label":"Volume"}),c.jsx("span",{className:"volume-value",children:e})]}),c.jsx("button",{className:`btn-sound ${e===0?"inactive":""}`,"aria-label":"Toggle Sound",onClick:o})]})}),us=R(()=>{const{open:e}=z;return c.jsxs("div",{className:"settings-section",children:[c.jsx(as,{}),c.jsx("button",{className:"btn-settings","aria-label":"Open Settings",onClick:e.bind(z,Z.settings)})]})});class cs{dialogs=ts;activeDialog=null;constructor(){Ae(this)}add(t){this.dialogs.push(t)}open(t){const r=this.dialogs.find(n=>t===n.name);r?this.activeDialog=r:console.error(`Couldn't find dialog named ${t}`)}close(){this.activeDialog=null}get isOpen(){return this.activeDialog!==null}}const Nt=new cs,ls=R(()=>{const{betAmount:e,displayCurrency:t,setNextBetAmount:r,setPrevBetAmount:n}=ie;return c.jsxs("div",{className:"overlay-bet-controller",children:[c.jsx("div",{className:"decrease-bet",onClick:n.bind(ie)}),c.jsxs("div",{className:"bet-amount",children:[e," ",t]}),c.jsx("div",{className:"increase-bet",onClick:r.bind(ie)})]})}),fs=R(({children:e})=>{const t=z.activePopup,r=Nt.activeDialog;if(!t&&!r)return null;const n=o=>{o.target===o.currentTarget&&(z.close(),Nt.close())},i=()=>{z.close(),Nt.close()};return c.jsxs("div",{className:`overlay ${r?"dialog":""}`,onClick:n,role:"presentation",children:[typeof t=="string"&&c.jsx("span",{className:"popup-title",children:t.toUpperCase()}),c.jsx("div",{className:"overlay-content",role:"dialog","aria-modal":"true",children:e}),!r&&c.jsx("div",{className:"overlay-close","aria-label":"Close",onClick:i,children:c.jsx("img",{src:"/assets/icons/popup-close.svg",alt:"Close"})}),t===Z.buyBonus&&c.jsx(ls,{})]})}),wr=({value:e,onClick:t,active:r})=>c.jsx("div",{className:`rectLabel ${r?"current-active":""}`,onClick:()=>t(e),children:c.jsx("span",{children:e})}),ds=R(()=>{const{betAmountRange:e,setBet:t,betAmount:r}=ie;return c.jsx("div",{className:"bet-popup-container",children:e.map((n,i)=>{const o=r===n;return c.jsx(wr,{value:n,active:o,onClick:t.bind(ie,n)},i)})})});class ps{countRange=[10,25,50,70,100,500,1e3];limitsRange=[10,20,50];count=0;specialFeatureSwitcherOn=!1;lossLimit=null;winLimit=null;constructor(){Ae(this)}setCount(t){this.count=t}setLimitsRange(t){this.limitsRange=t}setCountRange(t){this.countRange=t}setSpecialFeatureSwitcher(t){this.specialFeatureSwitcherOn=t}setLossLimit(t){console.log(t),this.lossLimit=t}setWinLimit(t){console.log(t),this.winLimit=t}start(){}}const He=new ps,At=({checked:e,onChange:t})=>c.jsx("button",{className:`ap-toggle ${e?"ap-toggle--on":"ap-toggle--off"}`,"aria-pressed":e,onClick:()=>t(!e),type:"button",children:c.jsx("span",{className:"ap-toggle__knob"})}),rn=({active:e,onClick:t,children:r})=>c.jsx("button",{className:`ap-limit ${e?"ap-limit--active":""}`,onClick:t,type:"button",children:r}),Dr=({active:e,onClick:t,children:r})=>c.jsx("button",{className:`ap-tab ${e?"ap-tab--active":""}`,onClick:t,type:"button",children:r}),vs=({value:e,placeholder:t,inputType:r="text",className:n="",autoFocus:i=!0,onSubmit:o,onCancel:s})=>{const[a,u]=m.useState(""),f=m.useRef(null),d=m.useRef(!1);m.useEffect(()=>{u(e??""),d.current=!1},[e]),m.useEffect(()=>{i&&setTimeout(()=>{f.current?.focus(),f.current?.select()},0)},[i]);const v=()=>{d.current||(d.current=!0,o(a.trim()))},_=()=>{v()},b=g=>{g.key==="Enter"?(g.preventDefault(),v(),f.current?.blur()):g.key==="Escape"&&(u(e??""),s?.(),f.current?.blur())};return c.jsx("input",{ref:f,className:`ap-limit ${n}`,type:"number",value:a,placeholder:t,onChange:g=>u(g.target.value),onBlur:_,onKeyDown:b,inputMode:r==="number"?"numeric":void 0,"aria-label":"custom limit input"})},hs=R(()=>{const{specialFeatureSwitcherOn:e,setSpecialFeatureSwitcher:t,countRange:r,count:n,setCount:i,lossLimit:o,winLimit:s,setLossLimit:a,limitsRange:u,setWinLimit:f}=He,[d,v]=m.useState(0),[_,b]=m.useState(!1),[g,O]=m.useState(""),E=m.useMemo(()=>d?s:o,[d,s,o]),C=m.useMemo(()=>d?f.bind(He):a.bind(He),[d,f,a]);m.useEffect(()=>{const w=E&&!u.includes(E);O(w?E:0)},[E,s]);const se=!!n&&n>0;return c.jsxs("div",{className:"autoplay-wrap",children:[c.jsx("h3",{className:"ap-title",children:"Number of spins"}),c.jsx("div",{className:"autoplay-count",children:r.map((w,A)=>{const L=n===w;return c.jsx(wr,{value:w,active:L,onClick:i.bind(He,w)},A)})}),c.jsxs("div",{className:"ap-switch-row",children:[c.jsx("div",{className:"ap-switch-label",children:"Stop on special feature WIN"}),c.jsx("div",{className:"ap-switch-control",children:c.jsx(At,{checked:e,onChange:w=>t.call(He,w)})})]}),c.jsxs("div",{className:"ap-tabs",children:[c.jsx(Dr,{active:!d,onClick:()=>v(0),children:"Loss limit"}),c.jsx(Dr,{active:!!d,onClick:()=>v(1),children:"Single WIN limit"})]}),c.jsx("div",{className:"ap-limits-panel",children:c.jsx("div",{className:"ap-limits-inner",children:c.jsxs("div",{className:"ap-limit-grid",children:[u.map((w,A)=>c.jsxs(rn,{active:E===w,onClick:()=>C(w),children:[w,"X BET"]},A)),c.jsx(rn,{active:!E,onClick:()=>C(null),children:"NO LIMIT"}),_?c.jsx(vs,{value:""+g,inputType:"number",onSubmit:w=>{const A=w.trim();if(A===""){b(!1);return}const L=Number(A);O(L??0),C(L),b(!1)},onCancel:()=>{b(!1)}}):c.jsx(rn,{onClick:()=>{b(!0)},active:!!E&&E===Number(g),children:g?`${g}X BET`:"CUSTOM"})]})})}),c.jsx("div",{className:"ap-start-row",children:c.jsx("button",{className:`ap-start-btn ${se?"":"ap-start-btn--disabled"}`,onClick:()=>{},type:"button",disabled:!se,children:"Start Autoplay"})})]})}),Vr=({onClick:e,label:t,className:r})=>c.jsxs("button",{className:`sp-action ${r}`,type:"button",onClick:e,children:[c.jsx("span",{className:"sp-action__icon","aria-hidden":"true"}),c.jsx("span",{className:"sp-action__label",children:t})]}),Xe=({onToggle:e,label:t,checked:r=!1})=>c.jsxs("div",{className:"sp-row",children:[c.jsx("div",{className:"sp-switch",children:c.jsx(At,{checked:r,onChange:()=>e(!r)})}),c.jsx("div",{className:"sp-label",children:t})]}),_s=R(()=>{const{introSkip:e,spaceToSkip:t,musicOn:r,soundsOn:n,spaceToSpin:i,setSpaceToSpin:o,setIntroSkip:s,setSpaceToSkip:a,setSoundsOn:u,setMusicOn:f}=oe,{open:d}=z;return c.jsxs("div",{className:"sp-wrap",children:[c.jsxs("div",{className:"sp-actions",children:[c.jsx(Vr,{onClick:d.bind(z,Z.history),className:"sp-action--history",label:"History"}),c.jsx(Vr,{onClick:()=>{},className:"sp-action--paytable",label:"Paytable"})]}),c.jsx("h3",{className:"sp-section-title",children:"Audio"}),c.jsxs("div",{className:"sp-rows",children:[c.jsx(Xe,{onToggle:f.bind(oe),checked:r,label:"Music"}),c.jsx(Xe,{onToggle:u.bind(oe),checked:n,label:"Sounds"})]}),c.jsx("h3",{className:"sp-section-title",children:"Game launch"}),c.jsx("div",{className:"sp-rows",children:c.jsx(Xe,{onToggle:s.bind(oe),checked:e,label:"Skip Intro"})}),c.jsx("h3",{className:"sp-section-title",children:"Keyboard"}),c.jsxs("div",{className:"sp-rows",children:[c.jsx(Xe,{onToggle:o.bind(oe),checked:i,label:"Spacebar to Spin"}),c.jsx(Xe,{onToggle:a.bind(oe),checked:t,label:"Spacebar to Skip"})]})]})}),bs=({date:e,currencyCode:t,betAmount:r,winAmount:n})=>{const[i,o]=m.useState(!1);return c.jsxs("div",{className:`history-item ${i?"active":""}`,role:"row",children:[c.jsx("span",{className:"date-section",children:e}),c.jsxs("span",{className:"bet-section",children:[r,c.jsx("span",{className:"currency",children:t})]}),c.jsxs("span",{className:"win-section",children:[n,c.jsxs("span",{className:"currency",children:[" ",t]})]}),c.jsx("div",{className:`vector ${i?"up":"down"}`,"aria-hidden":"true",onClick:()=>o(!i)}),i&&c.jsxs("div",{className:"additional-info",children:[c.jsxs("button",{className:"additional-button replay",children:[c.jsx("div",{className:"replay-icon"}),"REPLAY"]}),c.jsx("button",{className:"additional-button",children:"LINK"})]})]})};class gs{data=[{date:"26.11.2024 00:16",betAmount:1011,winAmount:20,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:20,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:1,winAmount:2e4,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"}];constructor(){Ae(this)}setData(t){this.data=t}}const ms=new gs,ys=R(()=>{const{data:e}=ms;return c.jsxs("div",{className:"history-wrap",role:"list","aria-label":"History list",children:[c.jsxs("div",{className:"history-item history-item--head",role:"row",children:[c.jsx("span",{className:"date-section",children:"Date"}),c.jsx("span",{className:"bet-section",children:"Bet"}),c.jsx("span",{className:"win-section",children:"Win"})]}),e.map((t,r)=>c.jsx(bs,{date:t.date,betAmount:t.betAmount,winAmount:t.winAmount,currencyCode:t.currencyCode,id:"aa"},r))]})}),Cr=R(({item:e,type:t,onToggle:r,onBuy:n})=>{const{betAmount:i}=ie,{activeAnteBet:o,setActiveAnteBet:s}=Et,a=e.title.split(`
47
+ `);return c.jsxs("div",{className:"sf-card",role:"group","aria-label":a.join(" "),children:[c.jsx("div",{className:"sf-card__title",children:a.map((u,f)=>c.jsx("span",{children:u},f))}),c.jsxs("div",{className:"sf-card__content",children:[c.jsx("div",{className:"sf-card__image-wrap",children:e.imagePath?c.jsx("img",{src:e.imagePath,alt:a[0]}):c.jsx("div",{className:"sf-card__image-placeholder"})}),e.description&&c.jsx("div",{className:"sf-card__description",children:e.description})]}),c.jsxs("div",{className:`sf-card__bottom ${t}`,children:[c.jsxs("div",{className:"sf-card__price",children:[e.costMultiplier*i," ",ie.displayCurrency]}),t==="ante"?c.jsx("div",{className:"sf-card__toggle",children:c.jsx(At,{checked:o===e,onChange:u=>s.call(Et,u?e:null)})}):c.jsx("button",{className:"sf-buy-btn",type:"button",onClick:()=>n&&n(e.title),children:"BUY"})]})]})}),on=({features:e,type:t,title:r})=>c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"sf-section-title",children:r}),c.jsx("div",{className:"sf-grid",children:e.map((n,i)=>c.jsx(Cr,{item:n,type:t,onToggle:()=>{}},i))})]}),Os=()=>{const e=i=>{console.log("buy",i)},{anteBets:t,inReelFeatures:r,bonusFeatures:n}=Et;return c.jsxs("div",{className:"sf-wrap",children:[t.length&&c.jsx(on,{features:t,type:nn.ante,title:"Ante Bets"},0),r.length&&c.jsx(on,{features:r,type:nn.buy,title:"Reel Features"},1),n.length&&c.jsx(on,{features:n,type:nn.buy,title:"Bonus"},2),c.jsx("h2",{className:"sf-section-title",children:"Bonus"}),c.jsx("div",{className:"sf-grid sf-grid--three",children:n.map((i,o)=>c.jsx(Cr,{item:i,type:"buy",onBuy:e},o))})]})},Es=R(()=>{const{activePopup:e}=z;if(!e)return null;const t=m.useMemo(()=>{switch(e){case Z.bet:return ds;case Z.autoplay:return hs;case Z.settings:return _s;case Z.history:return ys;case Z.buyBonus:return Os;default:return null}},[e]);return t?c.jsx(t,{}):null}),Ns=({configs:e,text:t,onClick:r})=>c.jsx("button",{type:"button",className:"additional-btn",style:{"--btn-bg":e?.background??"transparent","--btn-color":e?.color??"inherit"},onClick:typeof r=="function"?r:void 0,children:t}),As=R(()=>{const{activeDialog:e}=Nt;return e?c.jsxs("div",{className:"dialogs-wrap","aria-live":"polite",children:[c.jsx("span",{className:"title",children:e?.title}),e?.imagePath&&c.jsx("img",{className:"dialog-image",src:e.imagePath,alt:e.title??"dialog image"}),c.jsx("span",{className:"message",children:e?.message}),e.toggle&&c.jsx(At,{checked:e.toggle.value,onChange:()=>e.toggle?.onClick()}),c.jsx("div",{className:"additional-btns",children:e?.buttons?.map((t,r)=>c.jsx(Ns,{configs:t.configs,text:t.text,onClick:t.onClick},r))})]}):null});function Ss(){if(!document.getElementById("ui-core-css")){const e=document.createElement("link");e.id="ui-core-css",e.rel="stylesheet",e.href=new URL("./ui-core.css",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:St&&St.tagName.toUpperCase()==="SCRIPT"&&St.src||new URL("ui-bundle.umd.js",document.baseURI).href).toString(),document.head.appendChild(e)}}function ws(){return c.jsxs("div",{className:"app",children:[c.jsxs("div",{className:"game-container",children:[c.jsx(os,{}),c.jsx(us,{}),c.jsx(is,{})]}),c.jsxs(fs,{children:[c.jsx(Es,{}),c.jsx(As,{})]})]})}function Ds(e){if(!e){console.error("Целевой DOM-элемент для монтирования UI не найден.");return}Ss(),Tr.createRoot(e).render(c.jsx(m.StrictMode,{children:c.jsx(ws,{})}))}Q.createUi=Ds,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
package/dist/ui-core.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap";.ui-footer{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;position:absolute;bottom:20px;left:50%;transform:translate(-50%);width:100%;display:flex;justify-content:center;align-items:center;padding:20px 40px;color:#fff;box-sizing:border-box}.ui-footer .top-row{display:flex;align-items:center;width:100%;gap:20px;justify-content:space-between;position:relative}.ui-footer .left-group{display:flex;align-items:center;gap:15px}.ui-footer .left-group .buy-bonus{background:#f49f04e6;border:1.5px solid #FBDE38;border-radius:4px;color:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-height:50px;max-width:100px;padding:5px 13px;cursor:pointer;flex-shrink:0;font-size:18px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:center}.ui-footer .left-group .balance-info{display:flex;gap:20px}.ui-footer .left-group .balance-info .info{display:flex;flex-direction:column;align-items:center}.ui-footer .left-group .balance-info .info .label{font-size:14px;opacity:.8;margin-bottom:3px;word-break:manual;text-align:center;font-weight:400}.ui-footer .left-group .balance-info .info .value{font-size:18px;font-weight:700;word-break:manual;text-align:center}.ui-footer .bet-control{display:flex;align-items:center;gap:8px;margin-left:auto}.ui-footer .bet-control .bet-amount{display:flex;flex-direction:row;text-align:center;align-items:center;border:1.33px solid #C9C5C9;padding:5px 10px;border-radius:5px;font-size:14px;max-height:26px;width:143px;font-weight:700;cursor:pointer}.ui-footer .bet-control .bet-amount-icon{width:48px;height:48px;border:1.33px solid #aaa;border-radius:50%;justify-self:flex-start;background-color:#80808017;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);margin-left:-20px;background-image:url(public/assets/icons/coins.svg);background-repeat:no-repeat;background-position:center;background-size:60%;cursor:inherit}.ui-footer .bet-control .bet-amount-text{width:80%;font-size:15px;font-weight:500;cursor:inherit}.ui-footer .bet-control .bet-amount-text.ante-color{color:#ffd500}.ui-footer .bet-control .bet-box{position:relative;width:185px;height:38px;max-height:38px;min-height:unset;display:flex;justify-content:space-between;align-items:center;background:#ffffff14;border:1.33px solid #C9C5C9;border-radius:6px;padding:0 10px;box-sizing:border-box;overflow:visible}.ui-footer .bet-control .bet-box .bet-btn{width:16px;height:16px;background:none;border:none;color:#fff;cursor:pointer;z-index:4;flex-shrink:0}.ui-footer .bet-control .bet-box .minus{background-image:url(public/assets/icons/minus.svg);background-size:100% 100%;background-repeat:no-repeat;background-position:center}.ui-footer .bet-control .bet-box .plus{background-image:url(public/assets/icons/plus.svg);background-size:100% 100%;background-repeat:no-repeat;background-position:center}.ui-footer .bet-control .bet-box .spin-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:90px;height:90px;border-radius:50%;background-color:#22212140;border:1.33px solid yellow;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);background-image:url(public/assets/icons/spin.svg);background-size:115% 115%;background-repeat:no-repeat;background-position:center;cursor:pointer;z-index:3;pointer-events:auto}.ui-footer .bet-control .bet-box .spin-btn:active{transform:translate(-50%,-50%) scale(.95)}.ui-footer .bet-control .bet-box .spin-btn.slam-stop{background-image:url(public/assets/icons/slam-stop.svg);background-size:60% 60%}.ui-footer .bet-control .quick-spin,.ui-footer .bet-control .auto-spin{background:transparent;width:40px;height:40px;border-radius:50%;cursor:pointer;background-size:60% 60%;background-repeat:no-repeat;background-position:center;border:1.33px solid #C9C5C9;flex-shrink:0}.ui-footer .bet-control .quick-spin{background-image:url(public/assets/icons/turbo.svg)}.ui-footer .bet-control .quick-spin.active{background-image:url(public/assets/icons/turbo-active.svg)}.ui-footer .bet-control .auto-spin{background-image:url(public/assets/icons/autoplay.svg)}.ui-footer .bottom-row{display:none}@media screen and (orientation: portrait){.ui-footer{width:100%;padding:10px 8px;left:0;transform:none;bottom:35px;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;--betbox-w: 170px;--spin-size: 75px;--qa-size: 35px;--qa-gap: 25px}.ui-footer .top-row{width:100%;position:relative;display:block;height:calc(var(--spin-size) + 24px)}.ui-footer .top-row .buy-bonus-wrap{position:absolute;top:50%;left:calc(50% - var(--betbox-w) / 2 - var(--qa-gap) * .7)}.ui-footer .top-row .buy-bonus-wrap .buy-bonus{transform:translate(-100%,-50%);z-index:6;pointer-events:auto;min-height:45px;max-height:45px;padding:6px 12px;font-size:13px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:center;max-width:calc(var(--betbox-w) * .5)}.ui-footer .top-row .buy-bonus-wrap .bonus-thumb{left:calc(50% - var(--betbox-w) / 2 - var(--qa-gap) * 1.05);bottom:75px;width:53px;height:61px}.ui-footer .left-group{justify-content:center}.ui-footer .left-group .balance-info{display:flex;position:absolute;width:85%;top:100px;justify-content:space-between}.ui-footer .left-group .balance-info .info{display:flex;flex-direction:column;align-items:center}.ui-footer .left-group .balance-info .info .label{font-size:11px;opacity:.8;text-align:center;font-weight:400}.ui-footer .left-group .balance-info .info .value{font-size:11px;font-weight:700;text-align:center}.ui-footer .bet-control{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;z-index:5;width:auto}.ui-footer .bet-control .bet-box{position:relative;width:var(--betbox-w);height:35px;max-height:35px;min-height:unset;margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:0 10px;background:#ffffff14;border:1.3px solid #C9C5C9;border-radius:6px;box-sizing:border-box;pointer-events:auto;overflow:visible}.ui-footer .bet-control .bet-box .bet-btn{width:16px;height:16px;z-index:4;background:none;border:none;cursor:pointer;pointer-events:auto;flex-shrink:0}.ui-footer .bet-control .bet-box .minus{background-image:url(public/assets/icons/minus.svg);background-size:100% 100%;background-repeat:no-repeat;background-position:center}.ui-footer .bet-control .bet-box .plus{background-image:url(public/assets/icons/plus.svg);background-size:100% 100%;background-repeat:no-repeat;background-position:center}.ui-footer .bet-control .bet-box .spin-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--spin-size);height:var(--spin-size);border-radius:50%;z-index:3;pointer-events:auto}.ui-footer .bet-control .quick-spin,.ui-footer .bet-control .auto-spin{position:absolute;top:50%;transform:translateY(-50%);width:var(--qa-size);height:var(--qa-size);pointer-events:auto}.ui-footer .bet-control .quick-spin{left:calc(50% + var(--betbox-w) / 2 + var(--qa-gap) * .8)}.ui-footer .bet-control .auto-spin{left:calc(50% + var(--betbox-w) / 2 + var(--qa-gap) + var(--qa-size) + var(--qa-gap) * .6)}.ui-footer .bet-control .bet-amount{position:absolute;left:50%;top:calc(50% - var(--spin-size) / 2 + 85px);transform:translate(-50%);font-size:10px;min-width:calc(var(--spin-size) - 10px);text-align:center;max-height:20px;width:90px;color:#fff}.ui-footer .bet-control .bet-amount .bet-amount-icon{width:35px;height:35px}.ui-footer .bet-control .bet-amount .bet-amount-text{width:80%;font-size:12px}.ui-footer .bottom-row{display:flex;width:100%;justify-content:center;margin-top:8px;box-sizing:border-box}.ui-footer .bottom-row .balance-info{display:flex;gap:12px;justify-content:center}.ui-footer .bottom-row .balance-info .info{display:flex;flex-direction:column;align-items:center}.ui-footer .bottom-row .balance-info .info .label{font-size:12px;opacity:.8}.ui-footer .bottom-row .balance-info .info .value{font-size:16px;font-weight:700}}@media screen and (orientation: portrait) and (max-width: 420px){.ui-footer{--betbox-w: 140px;--spin-size: 73px;--qa-size: 32px;--qa-gap: 20px}.ui-footer .top-row .buy-bonus-wrap .bonus-thumb{left:calc(50% - var(--betbox-w) / 2 - (var(--qa-gap)));bottom:75px;width:40px;height:48px}}@media screen and (orientation: portrait) and (max-width: 360px){.ui-footer{--betbox-w: 130px;--spin-size: 60px;--qa-size: 28px;--qa-gap: 16px}.ui-footer .bet-control .bet-amount{top:calc(50% - var(--spin-size) / 2 + 73px)}.ui-footer .bet-control .bet-amount .bet-amount-icon{width:35px;height:35px}.ui-footer .bet-control .bet-amount .bet-amount-text{width:80%;font-size:11px}.ui-footer .left-group .balance-info{top:92px}.ui-footer .top-row .buy-bonus-wrap .buy-bonus{padding:5px 10px;font-size:12px;min-height:36px}.ui-footer .top-row .buy-bonus-wrap .bonus-thumb{left:calc(50% - var(--betbox-w) / 2 - (var(--qa-gap)) * 1.2);bottom:67px;width:40px;height:48px}.ui-footer .bottom-row .balance-info .info .label{font-size:10px}.ui-footer .bottom-row .balance-info .info .value{font-size:14px}}@media screen and (orientation: portrait) and (max-width: 320px){.ui-footer{--betbox-w: 120px;--spin-size: 52px;--qa-size: 24px;--qa-gap: 12px;padding:6px}.ui-footer .left-group .balance-info{top:80px}.ui-footer .bet-control .bet-amount{top:calc(50% - var(--spin-size) / 2 + 65px);width:70px}.ui-footer .bet-control .bet-amount .bet-amount-icon{width:30px;height:30px}.ui-footer .bet-control .bet-amount .bet-amount-text{width:80%;font-size:10px}.ui-footer .top-row .buy-bonus-wrap .buy-bonus{padding:4px 8px;font-size:11px;min-height:32px}.ui-footer .top-row .buy-bonus-wrap .bonus-thumb{left:calc(50% - var(--betbox-w) / 2 - (var(--qa-gap)) * 1.6);bottom:60px}}@media screen and (max-width: 935px) and (orientation: landscape){.ui-footer{bottom:2px}.ui-footer .bet-control .bet-amount{max-height:16px;width:110px}.ui-footer .bet-control .bet-amount-icon{width:30px;height:30px}.ui-footer .bet-control .bet-amount-text{width:80%;font-size:12px;font-weight:500}.ui-footer .bet-control .bet-box{position:relative;width:130px;height:28px}.ui-footer .bet-control .bet-box .bet-btn{width:16px;height:16px}.ui-footer .bet-control .bet-box .spin-btn{width:55px;height:55px}.ui-footer .bet-control .quick-spin,.ui-footer .bet-control .auto-spin{width:27px;height:27px;border-radius:50%}.ui-footer .bonus-thumb{width:43px;height:51px;bottom:40px}.ui-footer .left-group{gap:10px}.ui-footer .left-group .buy-bonus{min-height:33px;max-height:33px;max-width:70px;font-size:10px}.ui-footer .left-group .balance-info{gap:15px}.ui-footer .left-group .balance-info .info .label{font-size:10px}.ui-footer .left-group .balance-info .info .value{font-size:12px}}.ui-footer .bet-amount:hover,.ui-footer .spin-btn:hover,.ui-footer .quick-spin:hover,.ui-footer .auto-spin:hover{background-color:#201f1fa1}.ui-footer .buy-bonus:hover{box-shadow:inset 0 0 0 1000px #0003}.buy-bonus-wrap{display:flex;flex-direction:column;align-items:center;position:relative;width:max-content;box-sizing:border-box}.bonus-thumb{position:absolute;width:64px;height:76px;border-radius:6px;border:1.2px solid rgba(255,215,18,.88);background-size:100%;background-position:center;background-repeat:no-repeat;bottom:60px;box-shadow:0 4px #00000003;box-sizing:border-box}.buy-bonus-wrap .bonus-thumb{background-clip:padding-box}.settings-section{position:absolute;top:20px;right:20px;display:flex;align-items:center;gap:12px}.volume-control{display:flex;align-items:center;background:#00000080;border-radius:999px;padding:4px 10px;gap:8px}.slider{appearance:none;width:120px;height:6px;border-radius:3px;background:#fff3;outline:none}.slider::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;cursor:pointer}.volume-value{color:#fff;font-weight:600;min-width:24px;text-align:center}.btn-sound,.btn-settings{width:40px;height:40px;border:1px solid #fff;border-radius:50%;background:transparent;background-size:80% auto;background-repeat:no-repeat;background-position:center;cursor:pointer;transition:background-color .2s}.btn-sound:hover,.btn-settings:hover{background-color:#ffffff26}.btn-sound{background-image:url(public/assets/icons/sounds.svg)}.btn-sound.inactive{background-image:url(public/assets/icons/sounds-off.svg)}.btn-settings{background-image:url(public/assets/icons/settings.svg)}html,body,#root{font-family:Roboto,system-ui,-apple-system,Segoe UI,Helvetica Neue,Arial,sans-serif;margin:0;padding:0;width:100%;height:100dvh;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;touch-action:manipulation;overflow:hidden}.app{display:flex;flex-direction:column;width:100%;height:100dvh}.game-container{position:relative;flex:1;width:100%;height:100dvh}.game-container canvas{display:block;width:100dvw;height:100dvh;background-image:url(public/img.png);background-repeat:no-repeat;background-position:center;background-size:cover}.game-container .settings-section{position:absolute;top:20px;right:20px;z-index:10}.overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:var(--900, rgba(28, 27, 30, .67));display:flex;flex-direction:column;justify-content:center;align-content:center;align-items:center;padding-top:var(--overlay-padding-top, 50px);z-index:1000;gap:60px;user-select:none;-webkit-user-select:none;-ms-user-select:none;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.overlay.dialog{background:var(--900, rgba(30, 30, 30, .67))}.popup-title{position:absolute;color:#fff;top:50px;font-size:2.7rem;text-align:center}.overlay-close{width:5rem;height:3rem;position:absolute;right:50px;top:65px;border-radius:50%;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='248'%20height='121'%20viewBox='0%200%20248%20121'%20fill='none'%3e%3cg%20opacity='0.1'%20filter='url(%23filter0_f_811_7791)'%3e%3cellipse%20cx='134'%20cy='60.3962'%20rx='87'%20ry='13.3962'%20fill='%23D9D9D9'/%3e%3c/g%3e%3cg%20opacity='0.2'%20filter='url(%23filter1_f_811_7791)'%3e%3cellipse%20cx='134.001'%20cy='60.3961'%20rx='45.7585'%20ry='5.44679'%20fill='%23D9D9D9'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_f_811_7791'%20x='0.400002'%20y='0.400002'%20width='267.2'%20height='119.992'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='23.3'%20result='effect1_foregroundBlur_811_7791'/%3e%3c/filter%3e%3cfilter%20id='filter1_f_811_7791'%20x='41.6422'%20y='8.34934'%20width='184.718'%20height='104.094'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='23.3'%20result='effect1_foregroundBlur_811_7791'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e");background-repeat:no-repeat;background-position:center;background-size:150%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1005}.overlay-close img{width:1.8rem;height:1.8rem;display:block}.overlay-content{flex:1;display:flex;position:relative;z-index:1001;width:80%;max-height:calc(85vh - var(--overlay-padding-top, 100px));overflow-y:scroll;padding:10px;justify-content:center;margin-bottom:100px;scrollbar-color:#48464A #1C1B1E;box-sizing:border-box}.overlay-content::-webkit-scrollbar{width:10px}.overlay-content::-webkit-scrollbar-track{background:#0000000f}.overlay-content::-webkit-scrollbar-thumb{background:#ffffff2e;border-radius:30px}.overlay-bet-controller{width:300px;position:absolute;display:flex;gap:10px;bottom:80px;align-self:center}.bet-amount{padding:10px 5px;width:200px;border-radius:8px;border:1.698px solid #AEAAAF;text-align:center;background-color:#313033b3;color:#fff}.increase-bet,.decrease-bet{padding:10px 5px;border-radius:8px;border:1.698px solid #AEAAAF;width:40px;background-repeat:no-repeat;background-position:center;background-size:60%;background-color:#313033b3;cursor:pointer}.increase-bet{background-image:url(public/assets/icons/plus.svg)}.decrease-bet{background-image:url(public/assets/icons/minus.svg)}@media screen and (orientation: portrait){.overlay{--overlay-bottom-gap: 50px}.overlay .overlay-content{width:90%;justify-self:flex-start;max-height:calc(72vh - var(--overlay-padding-top, 100px) + var(--overlay-bottom-gap) * .2);margin-bottom:calc(var(--overlay-bottom-gap) * 3)}.overlay .overlay-close{top:auto;bottom:calc(var(--overlay-bottom-gap) * 1.3);right:auto;z-index:1005}.overlay .overlay-bet-controller{bottom:calc(var(--overlay-bottom-gap) * 2.8)}}@media screen and (max-width: 935px) and (orientation: landscape){.overlay .overlay-content{margin-top:30px;width:90%;max-height:calc(95vh - var(--overlay-padding-top, 100px) - 40px)}.overlay .overlay-close{width:2.7rem;height:1.4rem;top:60px}.overlay .overlay-close img{width:1rem;height:1rem}.overlay .overlay-bet-controller{bottom:65px}.overlay .popup-title{font-size:1.8rem}}.bet-popup-container{display:flex;width:80%;height:max-content;flex-wrap:wrap;align-self:center;justify-self:center;justify-content:center;user-select:none;-webkit-user-select:none;-ms-user-select:none;gap:30px}@media screen and (orientation: portrait){.bet-popup-container{width:100%;gap:15px}}@media screen and (max-width: 935px) and (orientation: landscape){.bet-popup-container{gap:15px}}.rectLabel{width:100px;height:40px;color:#fff;background:var(--800, rgba(49, 48, 51, .7));border:1px solid rgba(255,255,255,.12);padding:5px;text-align:center;border-radius:5px;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;transition:background .16s ease,transform .16s ease,box-shadow .16s ease,border-color .16s ease;will-change:transform,box-shadow}.rectLabel:focus-visible{outline:none;box-shadow:0 0 0 4px #d4a0172e;border-color:#d4a017e6}.rectLabel:hover,.rectLabel:focus{background:#ffffff0f;transform:translateY(-4px) scale(1.03);border-color:#ffffffe6;box-shadow:0 8px 24px #00000073}.rectLabel:active{transform:translateY(0) scale(.985);box-shadow:0 4px 12px #00000059}.rectLabel span{display:block;font-size:22px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:transform .16s ease}.rectLabel:hover span,.rectLabel:focus span{transform:scale(1.03)}.rectLabel.current-active{background:var(--Mustard-Yellow, #f6d923);color:#0c0c0c}@media (prefers-reduced-motion: reduce){.rectLabel{transition:none;transform:none}.rectLabel:hover{transform:none;box-shadow:none}.rectLabel span{transition:none;transform:none}}@media screen and (orientation: portrait){.rectLabel{width:70px;height:25px}.rectLabel span{font-size:14px;width:100%}}@media screen and (max-width: 935px) and (orientation: landscape){.rectLabel{width:70px;height:25px}.rectLabel span{font-size:14px;width:100%}}.autoplay-wrap{width:100%;max-width:760px;margin:0 auto;color:#fff;text-align:center;padding:18px 12px 28px;box-sizing:border-box;font-family:Helvetica Neue,Arial,sans-serif;--ap-limit-h: 48px}.ap-title{font-size:22px;font-weight:800;margin:4px 0 18px;color:#fff}.autoplay-count{display:flex;width:100%;flex-wrap:wrap;justify-content:center;gap:18px;margin-bottom:22px}.ap-switch-row{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:18px;flex-wrap:wrap}.ap-switch-label{font-size:18px;font-weight:700}.ap-switch-control{display:flex;align-items:center;gap:10px}.ap-switch-text{font-weight:700;font-size:18px}.ap-tabs{display:flex;gap:8px;justify-content:center;margin:12px 0 6px}.ap-tab{background:#ffffff0f;color:#ddd;padding:10px 18px;border-radius:10px 10px 0 0;border:1px solid rgba(255,255,255,.12);font-weight:700;cursor:pointer;min-width:140px}.ap-tab--active{background:#f0d35c;color:#111;box-shadow:0 4px #00000014}.ap-limits-panel{display:flex;justify-content:center;margin-top:6px}.ap-limits-inner{width:100%;max-width:620px;border:2px solid rgba(255,255,255,.12);border-radius:12px;padding:18px;box-sizing:border-box;background:#00000059;position:relative}.ap-limits-inner:before{display:none;content:none}.ap-limit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:center;justify-items:center}.ap-limit-grid>*{min-width:0}.ap-limit{background:#00000073;color:#eee;border:2px solid rgba(255,255,255,.12);padding:0 18px;width:100%;max-width:200px;text-align:center;border-radius:12px;font-weight:800;cursor:pointer;transition:all .12s ease;box-shadow:inset 0 -6px #0000001f;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-family:inherit;font-size:14px;line-height:1;vertical-align:middle;outline:none;height:var(--ap-limit-h)}.ap-limit--active{background:linear-gradient(180deg,#f0d35c,#d4a017);color:#222;border-color:#00000026;transform:translateY(-2px)}button.ap-limit:focus,input.ap-limit:focus{outline:none;box-shadow:0 0 0 3px #d4a01726}input.ap-limit,input[type=number].ap-limit{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:100%;max-width:200px;padding:0 18px;background:#00000073;color:#eee;border:2px solid rgba(255,255,255,.12);border-radius:12px;font-weight:800;font-family:inherit;font-size:14px;line-height:1;text-align:center;outline:none;height:var(--ap-limit-h)}input.ap-limit::-webkit-outer-spin-button,input.ap-limit::-webkit-inner-spin-button,input[type=number].ap-limit::-webkit-outer-spin-button,input[type=number].ap-limit::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.ap-limit::-ms-clear,input.ap-limit::-ms-expand,input[type=number].ap-limit::-ms-clear,input[type=number].ap-limit::-ms-expand{display:none}input.ap-limit.ap-limit--active{background:linear-gradient(180deg,#f0d35c,#d4a017);color:#222;border-color:#00000026;transform:translateY(-2px)}.ap-start-row{margin-top:22px;display:flex;justify-content:center}.ap-start-btn{background:linear-gradient(180deg,#f0d35c,#d4a017);color:#111;border:2px solid #c89b2f;padding:14px 48px;border-radius:14px;font-size:26px;font-weight:900;cursor:pointer;box-shadow:0 6px #00000047,inset 0 -6px #0000000f;transition:transform .08s ease,box-shadow .08s ease}.ap-start-btn:active{transform:translateY(2px);box-shadow:0 4px #0000003d}.ap-start-btn--disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}@media (max-width: 880px){.autoplay-wrap{padding:14px 10px}.ap-title{font-size:20px}.ap-toggle{width:60px;height:34px}.ap-toggle__knob{width:28px;height:28px}.ap-tab{min-width:120px;padding:8px 12px}.ap-limit-grid{gap:10px}.ap-start-btn{font-size:22px;padding:12px 40px;border-radius:12px}}@media screen and (orientation: portrait) and (max-width: 420px){.ap-title{font-size:18px}.autoplay-count{gap:12px}.ap-limit-grid{grid-template-columns:repeat(2,1fr)}.ap-limit{font-size:13px;padding:10px 12px;border-radius:10px;height:44px}.ap-tab{min-width:110px;padding:8px 10px}.ap-start-btn{font-size:18px;padding:10px 28px;border-radius:10px}.autoplay-wrap{--ap-limit-h: 44px}}@media screen and (orientation: landscape) and (max-height: 420px),screen and (orientation: landscape) and (min-aspect-ratio: 2.2/1){.autoplay-wrap{padding:10px 6px}.ap-title{font-size:18px;margin-bottom:8px}.autoplay-count{gap:12px;margin-bottom:12px}.ap-toggle{width:56px;height:32px}.ap-toggle__knob{width:26px;height:26px}.ap-switch-text{font-size:16px}.ap-tab{padding:8px 10px;min-width:110px;font-size:13px}.ap-limits-inner{padding:12px}.ap-limit-grid{gap:8px}.ap-limit{padding:0 18px;font-size:12px;border-radius:9px}.ap-start-btn{padding:10px 36px;font-size:20px;border-radius:12px}.autoplay-wrap{--ap-limit-h: 40px}}@media screen and (orientation: landscape) and (max-height: 360px){.ap-title{display:none}.ap-limit-grid{grid-template-columns:repeat(3,1fr);gap:6px}.autoplay-count{gap:8px}.ap-limits-inner{padding:8px}.ap-limit{padding:0 12px;font-size:11px}.ap-start-btn{padding:8px 28px;font-size:16px;border-radius:10px}.autoplay-wrap{--ap-limit-h: 36px}}.ap-toggle{width:68px;height:38px;border-radius:999px;background:linear-gradient(180deg,#f0d35c,#d4a017);border:none;position:relative;padding:4px;display:inline-flex;align-items:center;transition:background .12s ease;cursor:pointer;box-shadow:inset 0 -6px #0000000f}.ap-toggle--off{background:linear-gradient(180deg,#efefef,#ddd)}.ap-toggle--on{background:linear-gradient(180deg,#f0d35c,#d4a017)}.ap-toggle--on .ap-toggle__knob{margin-left:auto}.ap-toggle__knob{width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:0 4px 8px #00000040;display:block;transition:transform .12s ease}@media (max-width: 880px){.ap-toggle{width:60px;height:34px}.ap-toggle__knob{width:28px;height:28px}}@media (max-width: 1000px){.ap-toggle{width:50px;height:30px}.ap-toggle__knob{width:24px;height:24px}}@media (max-width: 750px){.ap-toggle{width:38px;height:23px}.ap-toggle__knob{width:18px;height:18px}}.sp-wrap{width:100%;max-width:760px;margin:0 auto;color:#fff;text-align:center;padding:20px 12px;box-sizing:border-box;font-family:Helvetica Neue,Arial,sans-serif;--sp-switch-w: 54px;--sp-switch-h: 54px;--action-width: 45%;--action-max: 280px;--action-bg: rgba(41, 40, 40, .3);--action-icon-size: 43px;--content-max: 620px;--row-gap: 6px}.sp-actions{display:flex;flex-direction:column;gap:10px;align-items:center;margin-bottom:18px}.sp-action{width:var(--action-width);max-width:var(--action-max);background:var(--action-bg);color:#fff;border-radius:6px;border:1.6px solid rgba(255,255,255,.12);padding:10px 12px;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;box-sizing:border-box;transition:transform .08s ease,background .08s ease}.sp-action:hover{background:#1c1c1cde}.sp-action__icon{position:absolute;left:-1px;top:50%;transform:translateY(-50%);width:var(--action-icon-size);height:var(--action-icon-size);display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:2px solid rgba(255,255,255,.12);background:#0e0e0e59;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:60% 60%}.sp-action--history .sp-action__icon{background-image:url(public/assets/icons/history.svg)}.sp-action--paytable .sp-action__icon{background-image:url(public/assets/icons/paytable.svg)}.sp-action__label{display:inline-block;width:100%;font-weight:800;font-size:16px;letter-spacing:.3px;text-align:center;pointer-events:none}.sp-section-title{margin:18px 0 8px;font-size:23px;font-weight:800;color:#fff}.sp-rows{width:35%;max-width:var(--content-max);margin:0 auto;display:flex;flex-direction:column;box-sizing:border-box}.sp-row{display:grid;grid-template-columns:var(--sp-switch-w) 1fr;align-items:center;column-gap:var(--row-gap);width:100%;box-sizing:border-box}.sp-switch{width:var(--sp-switch-w);height:var(--sp-switch-h);min-height:var(--sp-switch-h);display:flex;align-items:center;justify-content:center;box-sizing:border-box;justify-self:end}.sp-label{font-size:16px;font-weight:700;color:#fff;display:flex;align-items:center;height:var(--sp-switch-h);min-height:var(--sp-switch-h);box-sizing:border-box;justify-content:flex-start;padding-left:8px;justify-self:start}@media (max-width: 880px){.sp-action{width:92%}.sp-action__icon{left:10px;width:44px;height:44px}.sp-action__label{font-size:18px}.sp-section-title{font-size:20px}.sp-label{font-size:16px}.sp-switch{width:60px;--sp-switch-h: 52px;justify-self:end}.sp-row{grid-template-columns:60px 1fr;column-gap:6px}}@media screen and (orientation: portrait) and (max-width: 420px){.sp-action{width:80%;max-width:360px;padding:10px}.sp-action__icon{left:-1px;width:40px;height:40px;border-radius:6px}.sp-action__label{font-size:16px}.sp-section-title{font-size:18px;margin-top:12px;margin-bottom:6px}.sp-label{font-size:15px}.sp-switch{width:56px;--sp-switch-h: 48px;justify-self:end}.sp-row{grid-template-columns:56px 1fr;column-gap:6px}.sp-rows{width:75%}}@media screen and (orientation: landscape) and (max-height: 420px),screen and (orientation: landscape) and (min-aspect-ratio: 2.2/1){.sp-action{width:60%;max-width:560px;padding:8px 10px}.sp-action__icon{left:-1px;width:40px;height:40px}.sp-action__label{font-size:18px}.sp-section-title{font-size:18px;margin-top:12px;margin-bottom:6px}.sp-label{font-size:15px}.sp-switch{width:56px;--sp-switch-h: 42px;justify-self:end}.sp-row{grid-template-columns:56px 1fr;column-gap:6px}}:root{--item-border: 1.6px solid rgba(49, 48, 51, .7);--bg: var(--800, rgba(49, 48, 51, .7));--muted: #aaaaaa;--accent: rgba(212,160,23,.12)}.history-wrap{width:90%;max-width:850px;margin:0 auto;display:flex;flex-direction:column;user-select:none;-webkit-user-select:none;-ms-user-select:none;box-sizing:border-box}.history-item{width:100%;display:grid;grid-template-columns:minmax(140px,35%) minmax(80px,1fr) minmax(80px,1fr) 36px;align-items:center;gap:8px;min-height:60px;padding:12px 14px;border-radius:8px;border:var(--item-border);color:var(--10, #FFFBFF);box-sizing:border-box;overflow:hidden;background-color:transparent;transition:min-height .33s;will-change:min-height}.history-item.active{min-height:120px;align-items:flex-start}.additional-info{position:absolute;justify-self:center;align-self:flex-end}.additional-button{width:90px;border-radius:8.185px;border:1.698px solid var(--300, #AEAAAF);background:#fbde38;cursor:pointer;font-weight:800;padding:10px 5px;margin:5px}.additional-button.replay{background:var(--900, #1C1B1E);box-shadow:0 0 1.395px #000;color:var(--10, #FFFBFF);font-style:normal;font-weight:800}.additional-button.replay:hover{background:#17171740}.additional-button:hover{background:#ffe116cc}.replay-icon{position:absolute;width:34px;height:34px;right:97%;bottom:15%;background-image:url(public/assets/icons/replay.svg);background-size:60% 60%;background-repeat:no-repeat;background-position:center}.history-item--head{color:#ddd;font-weight:700;border:none;text-transform:uppercase;font-size:12px;letter-spacing:.6px}.history-item:nth-child(2n):not(.history-item--head){background-color:var(--bg)}.history-item:nth-child(odd):not(.history-item--head){background-color:transparent;border:none}.date-section{justify-self:start;text-align:left;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bet-section,.win-section{justify-self:center;text-align:center;font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.currency{font-weight:400;margin-left:4px;color:var(--muted);font-size:13px}.vector{width:24px;height:24px;justify-self:end;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='35'%20height='21'%20viewBox='0%200%2035%2021'%20fill='none'%3e%3cpath%20d='M17.2271%2013.6183L30.3907%200.694336L34.1517%204.38692L17.2271%2021.0037L0.302734%204.38692L4.06372%200.694336L17.2271%2013.6183Z'%20fill='%23FFFBFF'/%3e%3c/svg%3e");background-size:115% 115%;background-repeat:no-repeat;background-position:center;cursor:pointer}.vector.up{transform:rotate(180deg)}@media screen and (orientation: portrait) and (max-width: 850px){.history-wrap{width:100%}.history-item{grid-template-columns:1fr 88px 88px 10px;padding:9px 10px;border-radius:6px}.date-section,.bet-section,.win-section{font-size:12px}.vector{width:15px;height:15px}}@media screen and (orientation: portrait) and (max-width: 400px){.history-wrap{width:100%}.history-item{grid-template-columns:1fr 50px 80px 10px;padding:9px 10px;border-radius:6px}.date-section,.bet-section,.win-section{font-size:12px}.vector{width:15px;height:15px}}:root{--sf-card-w: 220px;--sf-card-h: 340px;--sf-card-image-w: 200px;--sf-card-image-h: 120px;--gap: -10px;--btn-overlap: 20px;--btn-h: 37px;--bottom-row-h: 56px}.sf-wrap{width:100%;margin:0 auto;color:#fff;padding:2px;box-sizing:border-box;text-align:center;font-family:Helvetica Neue,Arial,sans-serif}.sf-section-title{font-size:34px;font-weight:900;margin:18px 0 20px;color:#fff}.sf-grid{display:grid;grid-template-columns:repeat(auto-fit,var(--sf-card-w));justify-content:center;gap:calc(var(--gap) + var(--btn-overlap));margin-bottom:36px;row-gap:40px;box-sizing:border-box}.sf-card{position:relative;width:var(--sf-card-w);height:var(--sf-card-h);background:#21212270;border:1.6px solid rgba(255,255,255,.12);border-radius:10px;box-sizing:border-box;justify-content:center;display:flex;flex-direction:column;align-items:center;transition:transform .12s ease}.sf-card__content{width:100%;display:flex;flex-direction:column;align-items:center}.sf-card__description{width:100%;height:50%;padding:10px;font-size:12px;box-sizing:border-box;flex:0 1 auto;overflow:auto}.sf-card__title{font-weight:800;width:80%;position:absolute;left:18px;right:18px;top:calc(var(--btn-overlap) - 2px);font-size:16px;color:#fff;text-transform:uppercase;line-height:1.05;text-align:center;display:flex;flex-direction:column;gap:6px;flex:0 0 auto;padding:0 6px}.sf-card__image-wrap{width:var(--sf-card-image-w);height:max-content;min-height:var(--sf-card-image-h);display:flex;align-items:center;justify-content:center;padding:10px;flex:0 0 auto;box-sizing:border-box}.sf-card__image-wrap img{max-width:100%;max-height:100%;object-fit:contain;display:block;border-radius:2px}.sf-card__bottom{position:absolute;left:8px;right:8px;bottom:calc(var(--btn-overlap) - 22px);height:var(--bottom-row-h);display:block;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;padding:6px 8px;background:transparent;z-index:1}.sf-card__bottom.ante{display:flex}.sf-card__price{font-weight:900;font-size:17px;color:#fff;white-space:nowrap}.sf-card__toggle{width:70px;display:flex;align-items:center;justify-content:center}.sf-buy-btn{position:absolute;left:50%;transform:translate(-50%);bottom:calc(-1 * var(--btn-overlap));width:calc(100% - 10px);height:var(--btn-h);display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f0d35c,#d4a017);color:#111;border:1px solid rgba(200,155,47,.7);padding:0 28px;border-radius:calc(var(--btn-h) / 2);font-weight:900;font-size:20px;cursor:pointer;z-index:2;box-sizing:border-box}@media screen and (max-width: 1000px) and (orientation: landscape){:root{--sf-card-w: 177px;--sf-card-h: 250px;--sf-card-image-w: 150px;--sf-card-image-h: 100px;--btn-h: 52px;--btn-overlap: 18px;--bottom-row-h: 52px}.sf-section-title{font-size:20px}.sf-card__title{font-size:10px;left:7px;right:7px}.sf-card__price{font-size:12px}.sf-buy-btn{height:calc(var(--btn-h) - 20px);font-size:18px}}@media (max-width: 750px) and (orientation: landscape){:root{--sf-card-w: 125px;--sf-card-h: 195px;--sf-card-image-w: 120px;--sf-card-image-h: 80px;--btn-h: 52px;--btn-overlap: 18px;--bottom-row-h: 52px}.sf-section-title{font-size:20px}.sf-card__price{font-size:12px}.sf-card__bottom{left:5px;right:0}.sf-card__bottom.ante .sf-card__price{font-size:9px}.sf-buy-btn{height:calc(var(--btn-h) - 20px);font-size:18px}}@media (max-width: 750px) and (orientation: portrait){:root{--sf-card-w: 125px;--sf-card-h: 195px;--sf-card-image-w: 120px;--sf-card-image-h: 80px;--btn-h: 52px;--btn-overlap: 18px;--bottom-row-h: 52px}.sf-card__title{font-size:10px;left:7px;right:7px}.sf-section-title{font-size:20px}.sf-card__price{font-size:12px}.sf-card__bottom{left:5px;right:0}.sf-card__bottom.ante .sf-card__price{font-size:9px}.sf-buy-btn{height:calc(var(--btn-h) - 20px);font-size:18px}}.dialogs-wrap{display:flex;width:35%;padding:18px 20px;flex-wrap:wrap;align-self:center;border-radius:6px;border:1.3px solid var(--300, #AEAAAF);background:var(--90080, rgba(18, 16, 18, .36));justify-self:center;justify-content:center;user-select:none;-webkit-user-select:none;-ms-user-select:none;box-sizing:border-box;gap:12px}.title{font-size:25px;font-weight:700;color:#fff;width:100%;text-align:center}.dialog-image{max-width:100%;width:120px;height:auto;display:block;margin:6px auto;border-radius:6px}.message{font-size:15px;margin-top:6px;color:#fff;width:100%;text-align:center}.additional-btns{width:100%;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.additional-btn{--fallback-bg: transparent;--fallback-color: #fff;background:var(--btn-bg, var(--fallback-bg));color:var(--btn-color, var(--fallback-color));border:2px solid rgba(255,255,255,.08);padding:10px 18px;border-radius:8px;font-weight:700;cursor:pointer;min-width:96px;box-sizing:border-box;transition:transform .08s ease,box-shadow .08s ease,filter .08s ease;display:inline-flex;align-items:center;justify-content:center}.additional-btn:hover{background:var(--btn-bg);opacity:.8}.additional-btn[style*=transparent]{background:transparent;box-shadow:none}@media screen and (orientation: portrait){.dialogs-wrap{width:85%}.title{font-size:20px}.message{font-size:14px}.additional-btn{min-width:80px;padding:8px 12px}}@media screen and (max-width: 935px) and (orientation: landscape){.dialogs-wrap{width:45%}}
1
+ @charset "UTF-8";.ui-footer{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;position:absolute;bottom:20px;left:50%;transform:translate(-50%);width:100%;display:flex;justify-content:center;align-items:center;padding:20px 40px;color:#fff;box-sizing:border-box}.ui-footer .top-row{display:flex;align-items:center;width:100%;gap:20px;justify-content:space-between;position:relative}.ui-footer .left-group{display:flex;align-items:center;gap:15px}.ui-footer .left-group .buy-bonus{background:#f49f04e6;border:1.5px solid #FBDE38;border-radius:4px;color:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-height:50px;max-width:100px;padding:5px 13px;cursor:pointer;flex-shrink:0;font-size:18px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:center}.ui-footer .left-group .balance-info{display:flex;gap:20px}.ui-footer .left-group .balance-info .info{display:flex;flex-direction:column;align-items:center}.ui-footer .left-group .balance-info .info .label{font-size:14px;opacity:.8;margin-bottom:3px;word-break:manual;text-align:center;font-weight:400}.ui-footer .left-group .balance-info .info .value{font-size:18px;font-weight:700;word-break:manual;text-align:center}.ui-footer .bet-control{display:flex;align-items:center;gap:8px;margin-left:auto}.ui-footer .bet-control .bet-amount{display:flex;flex-direction:row;text-align:center;align-items:center;border:1.33px solid #C9C5C9;padding:5px 10px;border-radius:5px;font-size:14px;max-height:26px;width:143px;font-weight:700;cursor:pointer}.ui-footer .bet-control .bet-amount-icon{width:48px;height:48px;border:1.33px solid #aaa;border-radius:50%;justify-self:flex-start;background-color:#80808017;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);margin-left:-20px;background-image:url(public/assets/icons/coins.svg);background-repeat:no-repeat;background-position:center;background-size:60%;cursor:inherit}.ui-footer .bet-control .bet-amount-text{width:80%;font-size:15px;font-weight:500;cursor:inherit}.ui-footer .bet-control .bet-amount-text.ante-color{color:#ffd500}.ui-footer .bet-control .bet-box{position:relative;width:185px;height:38px;max-height:38px;min-height:unset;display:flex;justify-content:space-between;align-items:center;background:#ffffff14;border:1.33px solid #C9C5C9;border-radius:6px;padding:0 10px;box-sizing:border-box;overflow:visible}.ui-footer .bet-control .bet-box .bet-btn{width:16px;height:16px;background:none;border:none;color:#fff;cursor:pointer;z-index:4;flex-shrink:0}.ui-footer .bet-control .bet-box .minus{background-image:url(public/assets/icons/minus.svg);background-size:100% 100%;background-repeat:no-repeat;background-position:center}.ui-footer .bet-control .bet-box .plus{background-image:url(public/assets/icons/plus.svg);background-size:100% 100%;background-repeat:no-repeat;background-position:center}.ui-footer .bet-control .bet-box .spin-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:90px;height:90px;border-radius:50%;background-color:#22212140;border:1.33px solid yellow;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);background-image:url(public/assets/icons/spin.svg);background-size:115% 115%;background-repeat:no-repeat;background-position:center;cursor:pointer;z-index:3;pointer-events:auto}.ui-footer .bet-control .bet-box .spin-btn:active{transform:translate(-50%,-50%) scale(.95)}.ui-footer .bet-control .bet-box .spin-btn.slam-stop{background-image:url(public/assets/icons/slam-stop.svg);background-size:60% 60%}.ui-footer .bet-control .quick-spin,.ui-footer .bet-control .auto-spin{background:transparent;width:40px;height:40px;border-radius:50%;cursor:pointer;background-size:60% 60%;background-repeat:no-repeat;background-position:center;border:1.33px solid #C9C5C9;flex-shrink:0}.ui-footer .bet-control .quick-spin{background-image:url(public/assets/icons/turbo.svg)}.ui-footer .bet-control .quick-spin.active{background-image:url(public/assets/icons/turbo-active.svg)}.ui-footer .bet-control .auto-spin{background-image:url(public/assets/icons/autoplay.svg)}.ui-footer .bottom-row{display:none}@media screen and (orientation: portrait){.ui-footer{width:100%;padding:10px 8px;left:0;transform:none;bottom:35px;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;--betbox-w: 170px;--spin-size: 75px;--qa-size: 35px;--qa-gap: 25px}.ui-footer .top-row{width:100%;position:relative;display:block;height:calc(var(--spin-size) + 24px)}.ui-footer .top-row .buy-bonus-wrap{position:absolute;top:50%;left:calc(50% - var(--betbox-w) / 2 - var(--qa-gap) * .7)}.ui-footer .top-row .buy-bonus-wrap .buy-bonus{transform:translate(-100%,-50%);z-index:6;pointer-events:auto;min-height:45px;max-height:45px;padding:6px 12px;font-size:13px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:center;max-width:calc(var(--betbox-w) * .5)}.ui-footer .top-row .buy-bonus-wrap .bonus-thumb{left:calc(50% - var(--betbox-w) / 2 - var(--qa-gap) * 1.05);bottom:75px;width:53px;height:61px}.ui-footer .left-group{justify-content:center}.ui-footer .left-group .balance-info{display:flex;position:absolute;width:85%;top:100px;justify-content:space-between}.ui-footer .left-group .balance-info .info{display:flex;flex-direction:column;align-items:center}.ui-footer .left-group .balance-info .info .label{font-size:11px;opacity:.8;text-align:center;font-weight:400}.ui-footer .left-group .balance-info .info .value{font-size:11px;font-weight:700;text-align:center}.ui-footer .bet-control{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;z-index:5;width:auto}.ui-footer .bet-control .bet-box{position:relative;width:var(--betbox-w);height:35px;max-height:35px;min-height:unset;margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:0 10px;background:#ffffff14;border:1.3px solid #C9C5C9;border-radius:6px;box-sizing:border-box;pointer-events:auto;overflow:visible}.ui-footer .bet-control .bet-box .bet-btn{width:16px;height:16px;z-index:4;background:none;border:none;cursor:pointer;pointer-events:auto;flex-shrink:0}.ui-footer .bet-control .bet-box .minus{background-image:url(public/assets/icons/minus.svg);background-size:100% 100%;background-repeat:no-repeat;background-position:center}.ui-footer .bet-control .bet-box .plus{background-image:url(public/assets/icons/plus.svg);background-size:100% 100%;background-repeat:no-repeat;background-position:center}.ui-footer .bet-control .bet-box .spin-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--spin-size);height:var(--spin-size);border-radius:50%;z-index:3;pointer-events:auto}.ui-footer .bet-control .quick-spin,.ui-footer .bet-control .auto-spin{position:absolute;top:50%;transform:translateY(-50%);width:var(--qa-size);height:var(--qa-size);pointer-events:auto}.ui-footer .bet-control .quick-spin{left:calc(50% + var(--betbox-w) / 2 + var(--qa-gap) * .8)}.ui-footer .bet-control .auto-spin{left:calc(50% + var(--betbox-w) / 2 + var(--qa-gap) + var(--qa-size) + var(--qa-gap) * .6)}.ui-footer .bet-control .bet-amount{position:absolute;left:50%;top:calc(50% - var(--spin-size) / 2 + 85px);transform:translate(-50%);font-size:10px;min-width:calc(var(--spin-size) - 10px);text-align:center;max-height:20px;width:90px;color:#fff}.ui-footer .bet-control .bet-amount .bet-amount-icon{width:35px;height:35px}.ui-footer .bet-control .bet-amount .bet-amount-text{width:80%;font-size:12px}.ui-footer .bottom-row{display:flex;width:100%;justify-content:center;margin-top:8px;box-sizing:border-box}.ui-footer .bottom-row .balance-info{display:flex;gap:12px;justify-content:center}.ui-footer .bottom-row .balance-info .info{display:flex;flex-direction:column;align-items:center}.ui-footer .bottom-row .balance-info .info .label{font-size:12px;opacity:.8}.ui-footer .bottom-row .balance-info .info .value{font-size:16px;font-weight:700}}@media screen and (orientation: portrait) and (max-width: 420px){.ui-footer{--betbox-w: 140px;--spin-size: 73px;--qa-size: 32px;--qa-gap: 20px}.ui-footer .top-row .buy-bonus-wrap .bonus-thumb{left:calc(50% - var(--betbox-w) / 2 - (var(--qa-gap)));bottom:75px;width:40px;height:48px}}@media screen and (orientation: portrait) and (max-width: 360px){.ui-footer{--betbox-w: 130px;--spin-size: 60px;--qa-size: 28px;--qa-gap: 16px}.ui-footer .bet-control .bet-amount{top:calc(50% - var(--spin-size) / 2 + 73px)}.ui-footer .bet-control .bet-amount .bet-amount-icon{width:35px;height:35px}.ui-footer .bet-control .bet-amount .bet-amount-text{width:80%;font-size:11px}.ui-footer .left-group .balance-info{top:92px}.ui-footer .top-row .buy-bonus-wrap .buy-bonus{padding:5px 10px;font-size:12px;min-height:36px}.ui-footer .top-row .buy-bonus-wrap .bonus-thumb{left:calc(50% - var(--betbox-w) / 2 - (var(--qa-gap)) * 1.2);bottom:67px;width:40px;height:48px}.ui-footer .bottom-row .balance-info .info .label{font-size:10px}.ui-footer .bottom-row .balance-info .info .value{font-size:14px}}@media screen and (orientation: portrait) and (max-width: 320px){.ui-footer{--betbox-w: 120px;--spin-size: 52px;--qa-size: 24px;--qa-gap: 12px;padding:6px}.ui-footer .left-group .balance-info{top:80px}.ui-footer .bet-control .bet-amount{top:calc(50% - var(--spin-size) / 2 + 65px);width:70px}.ui-footer .bet-control .bet-amount .bet-amount-icon{width:30px;height:30px}.ui-footer .bet-control .bet-amount .bet-amount-text{width:80%;font-size:10px}.ui-footer .top-row .buy-bonus-wrap .buy-bonus{padding:4px 8px;font-size:11px;min-height:32px}.ui-footer .top-row .buy-bonus-wrap .bonus-thumb{left:calc(50% - var(--betbox-w) / 2 - (var(--qa-gap)) * 1.6);bottom:60px}}@media screen and (max-width: 935px) and (orientation: landscape){.ui-footer{bottom:2px}.ui-footer .bet-control .bet-amount{max-height:16px;width:110px}.ui-footer .bet-control .bet-amount-icon{width:30px;height:30px}.ui-footer .bet-control .bet-amount-text{width:80%;font-size:12px;font-weight:500}.ui-footer .bet-control .bet-box{position:relative;width:130px;height:28px}.ui-footer .bet-control .bet-box .bet-btn{width:16px;height:16px}.ui-footer .bet-control .bet-box .spin-btn{width:55px;height:55px}.ui-footer .bet-control .quick-spin,.ui-footer .bet-control .auto-spin{width:27px;height:27px;border-radius:50%}.ui-footer .bonus-thumb{width:43px;height:51px;bottom:40px}.ui-footer .left-group{gap:10px}.ui-footer .left-group .buy-bonus{min-height:33px;max-height:33px;max-width:70px;font-size:10px}.ui-footer .left-group .balance-info{gap:15px}.ui-footer .left-group .balance-info .info .label{font-size:10px}.ui-footer .left-group .balance-info .info .value{font-size:12px}}.ui-footer .bet-amount:hover,.ui-footer .spin-btn:hover,.ui-footer .quick-spin:hover,.ui-footer .auto-spin:hover{background-color:#201f1fa1}.ui-footer .buy-bonus:hover{box-shadow:inset 0 0 0 1000px #0003}.buy-bonus-wrap{display:flex;flex-direction:column;align-items:center;position:relative;width:max-content;box-sizing:border-box}.bonus-thumb{position:absolute;width:64px;height:76px;border-radius:6px;border:1.2px solid rgba(255,215,18,.88);background-size:100%;background-position:center;background-repeat:no-repeat;bottom:60px;box-shadow:0 4px #00000003;box-sizing:border-box}.buy-bonus-wrap .bonus-thumb{background-clip:padding-box}.settings-section{position:absolute;top:20px;right:20px;display:flex;align-items:center;gap:12px}.volume-control{display:flex;align-items:center;background:#00000080;border-radius:999px;padding:4px 10px;gap:8px}.slider{appearance:none;width:120px;height:6px;border-radius:3px;background:#fff3;outline:none}.slider::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;cursor:pointer}.volume-value{color:#fff;font-weight:600;min-width:24px;text-align:center}.btn-sound,.btn-settings{width:40px;height:40px;border:1px solid #fff;border-radius:50%;background:transparent;background-size:80% auto;background-repeat:no-repeat;background-position:center;cursor:pointer;transition:background-color .2s}.btn-sound:hover,.btn-settings:hover{background-color:#ffffff26}.btn-sound{background-image:url(public/assets/icons/sounds.svg)}.btn-sound.inactive{background-image:url(public/assets/icons/sounds-off.svg)}.btn-settings{background-image:url(public/assets/icons/settings.svg)}.overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:var(--900, rgba(28, 27, 30, .67));display:flex;flex-direction:column;justify-content:center;align-content:center;align-items:center;padding-top:var(--overlay-padding-top, 50px);z-index:1000;gap:60px;user-select:none;-webkit-user-select:none;-ms-user-select:none;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.overlay.dialog{background:var(--900, rgba(30, 30, 30, .67))}.popup-title{position:absolute;color:#fff;top:50px;font-size:2.7rem;text-align:center}.overlay-close{width:5rem;height:3rem;position:absolute;right:50px;top:65px;border-radius:50%;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='248'%20height='121'%20viewBox='0%200%20248%20121'%20fill='none'%3e%3cg%20opacity='0.1'%20filter='url(%23filter0_f_811_7791)'%3e%3cellipse%20cx='134'%20cy='60.3962'%20rx='87'%20ry='13.3962'%20fill='%23D9D9D9'/%3e%3c/g%3e%3cg%20opacity='0.2'%20filter='url(%23filter1_f_811_7791)'%3e%3cellipse%20cx='134.001'%20cy='60.3961'%20rx='45.7585'%20ry='5.44679'%20fill='%23D9D9D9'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_f_811_7791'%20x='0.400002'%20y='0.400002'%20width='267.2'%20height='119.992'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='23.3'%20result='effect1_foregroundBlur_811_7791'/%3e%3c/filter%3e%3cfilter%20id='filter1_f_811_7791'%20x='41.6422'%20y='8.34934'%20width='184.718'%20height='104.094'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='23.3'%20result='effect1_foregroundBlur_811_7791'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e");background-repeat:no-repeat;background-position:center;background-size:150%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1005}.overlay-close img{width:1.8rem;height:1.8rem;display:block}.overlay-content{flex:1;display:flex;position:relative;z-index:1001;width:80%;max-height:calc(85vh - var(--overlay-padding-top, 100px));overflow-y:scroll;padding:10px;justify-content:center;margin-bottom:100px;scrollbar-color:#48464A #1C1B1E;box-sizing:border-box}.overlay-content::-webkit-scrollbar{width:10px}.overlay-content::-webkit-scrollbar-track{background:#0000000f}.overlay-content::-webkit-scrollbar-thumb{background:#ffffff2e;border-radius:30px}.overlay-bet-controller{width:300px;position:absolute;display:flex;gap:10px;bottom:80px;align-self:center}.bet-amount{padding:10px 5px;width:200px;border-radius:8px;border:1.698px solid #AEAAAF;text-align:center;background-color:#313033b3;color:#fff}.increase-bet,.decrease-bet{padding:10px 5px;border-radius:8px;border:1.698px solid #AEAAAF;width:40px;background-repeat:no-repeat;background-position:center;background-size:60%;background-color:#313033b3;cursor:pointer}.increase-bet{background-image:url(public/assets/icons/plus.svg)}.decrease-bet{background-image:url(public/assets/icons/minus.svg)}@media screen and (orientation: portrait){.overlay{--overlay-bottom-gap: 50px}.overlay .overlay-content{width:90%;justify-self:flex-start;max-height:calc(72vh - var(--overlay-padding-top, 100px) + var(--overlay-bottom-gap) * .2);margin-bottom:calc(var(--overlay-bottom-gap) * 3)}.overlay .overlay-close{top:auto;bottom:calc(var(--overlay-bottom-gap) * 1.3);right:auto;z-index:1005}.overlay .overlay-bet-controller{bottom:calc(var(--overlay-bottom-gap) * 2.8)}}@media screen and (max-width: 935px) and (orientation: landscape){.overlay .overlay-content{margin-top:30px;width:90%;max-height:calc(95vh - var(--overlay-padding-top, 100px) - 40px)}.overlay .overlay-close{width:2.7rem;height:1.4rem;top:60px}.overlay .overlay-close img{width:1rem;height:1rem}.overlay .overlay-bet-controller{bottom:65px}.overlay .popup-title{font-size:1.8rem}}.bet-popup-container{display:flex;width:80%;height:max-content;flex-wrap:wrap;align-self:center;justify-self:center;justify-content:center;user-select:none;-webkit-user-select:none;-ms-user-select:none;gap:30px}@media screen and (orientation: portrait){.bet-popup-container{width:100%;gap:15px}}@media screen and (max-width: 935px) and (orientation: landscape){.bet-popup-container{gap:15px}}.rectLabel{width:100px;height:40px;color:#fff;background:var(--800, rgba(49, 48, 51, .7));border:1px solid rgba(255,255,255,.12);padding:5px;text-align:center;border-radius:5px;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;transition:background .16s ease,transform .16s ease,box-shadow .16s ease,border-color .16s ease;will-change:transform,box-shadow}.rectLabel:focus-visible{outline:none;box-shadow:0 0 0 4px #d4a0172e;border-color:#d4a017e6}.rectLabel:hover,.rectLabel:focus{background:#ffffff0f;transform:translateY(-4px) scale(1.03);border-color:#ffffffe6;box-shadow:0 8px 24px #00000073}.rectLabel:active{transform:translateY(0) scale(.985);box-shadow:0 4px 12px #00000059}.rectLabel span{display:block;font-size:22px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:transform .16s ease}.rectLabel:hover span,.rectLabel:focus span{transform:scale(1.03)}.rectLabel.current-active{background:var(--Mustard-Yellow, #f6d923);color:#0c0c0c}@media (prefers-reduced-motion: reduce){.rectLabel{transition:none;transform:none}.rectLabel:hover{transform:none;box-shadow:none}.rectLabel span{transition:none;transform:none}}@media screen and (orientation: portrait){.rectLabel{width:70px;height:25px}.rectLabel span{font-size:14px;width:100%}}@media screen and (max-width: 935px) and (orientation: landscape){.rectLabel{width:70px;height:25px}.rectLabel span{font-size:14px;width:100%}}.autoplay-wrap{width:100%;max-width:760px;margin:0 auto;color:#fff;text-align:center;padding:18px 12px 28px;box-sizing:border-box;font-family:Helvetica Neue,Arial,sans-serif;--ap-limit-h: 48px}.ap-title{font-size:22px;font-weight:800;margin:4px 0 18px;color:#fff}.autoplay-count{display:flex;width:100%;flex-wrap:wrap;justify-content:center;gap:18px;margin-bottom:22px}.ap-switch-row{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:18px;flex-wrap:wrap}.ap-switch-label{font-size:18px;font-weight:700}.ap-switch-control{display:flex;align-items:center;gap:10px}.ap-switch-text{font-weight:700;font-size:18px}.ap-tabs{display:flex;gap:8px;justify-content:center;margin:12px 0 6px}.ap-tab{background:#ffffff0f;color:#ddd;padding:10px 18px;border-radius:10px 10px 0 0;border:1px solid rgba(255,255,255,.12);font-weight:700;cursor:pointer;min-width:140px}.ap-tab--active{background:#f0d35c;color:#111;box-shadow:0 4px #00000014}.ap-limits-panel{display:flex;justify-content:center;margin-top:6px}.ap-limits-inner{width:100%;max-width:620px;border:2px solid rgba(255,255,255,.12);border-radius:12px;padding:18px;box-sizing:border-box;background:#00000059;position:relative}.ap-limits-inner:before{display:none;content:none}.ap-limit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:center;justify-items:center}.ap-limit-grid>*{min-width:0}.ap-limit{background:#00000073;color:#eee;border:2px solid rgba(255,255,255,.12);padding:0 18px;width:100%;max-width:200px;text-align:center;border-radius:12px;font-weight:800;cursor:pointer;transition:all .12s ease;box-shadow:inset 0 -6px #0000001f;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-family:inherit;font-size:14px;line-height:1;vertical-align:middle;outline:none;height:var(--ap-limit-h)}.ap-limit--active{background:linear-gradient(180deg,#f0d35c,#d4a017);color:#222;border-color:#00000026;transform:translateY(-2px)}button.ap-limit:focus,input.ap-limit:focus{outline:none;box-shadow:0 0 0 3px #d4a01726}input.ap-limit,input[type=number].ap-limit{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:100%;max-width:200px;padding:0 18px;background:#00000073;color:#eee;border:2px solid rgba(255,255,255,.12);border-radius:12px;font-weight:800;font-family:inherit;font-size:14px;line-height:1;text-align:center;outline:none;height:var(--ap-limit-h)}input.ap-limit::-webkit-outer-spin-button,input.ap-limit::-webkit-inner-spin-button,input[type=number].ap-limit::-webkit-outer-spin-button,input[type=number].ap-limit::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.ap-limit::-ms-clear,input.ap-limit::-ms-expand,input[type=number].ap-limit::-ms-clear,input[type=number].ap-limit::-ms-expand{display:none}input.ap-limit.ap-limit--active{background:linear-gradient(180deg,#f0d35c,#d4a017);color:#222;border-color:#00000026;transform:translateY(-2px)}.ap-start-row{margin-top:22px;display:flex;justify-content:center}.ap-start-btn{background:linear-gradient(180deg,#f0d35c,#d4a017);color:#111;border:2px solid #c89b2f;padding:14px 48px;border-radius:14px;font-size:26px;font-weight:900;cursor:pointer;box-shadow:0 6px #00000047,inset 0 -6px #0000000f;transition:transform .08s ease,box-shadow .08s ease}.ap-start-btn:active{transform:translateY(2px);box-shadow:0 4px #0000003d}.ap-start-btn--disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}@media (max-width: 880px){.autoplay-wrap{padding:14px 10px}.ap-title{font-size:20px}.ap-toggle{width:60px;height:34px}.ap-toggle__knob{width:28px;height:28px}.ap-tab{min-width:120px;padding:8px 12px}.ap-limit-grid{gap:10px}.ap-start-btn{font-size:22px;padding:12px 40px;border-radius:12px}}@media screen and (orientation: portrait) and (max-width: 420px){.ap-title{font-size:18px}.autoplay-count{gap:12px}.ap-limit-grid{grid-template-columns:repeat(2,1fr)}.ap-limit{font-size:13px;padding:10px 12px;border-radius:10px;height:44px}.ap-tab{min-width:110px;padding:8px 10px}.ap-start-btn{font-size:18px;padding:10px 28px;border-radius:10px}.autoplay-wrap{--ap-limit-h: 44px}}@media screen and (orientation: landscape) and (max-height: 420px),screen and (orientation: landscape) and (min-aspect-ratio: 2.2/1){.autoplay-wrap{padding:10px 6px}.ap-title{font-size:18px;margin-bottom:8px}.autoplay-count{gap:12px;margin-bottom:12px}.ap-toggle{width:56px;height:32px}.ap-toggle__knob{width:26px;height:26px}.ap-switch-text{font-size:16px}.ap-tab{padding:8px 10px;min-width:110px;font-size:13px}.ap-limits-inner{padding:12px}.ap-limit-grid{gap:8px}.ap-limit{padding:0 18px;font-size:12px;border-radius:9px}.ap-start-btn{padding:10px 36px;font-size:20px;border-radius:12px}.autoplay-wrap{--ap-limit-h: 40px}}@media screen and (orientation: landscape) and (max-height: 360px){.ap-title{display:none}.ap-limit-grid{grid-template-columns:repeat(3,1fr);gap:6px}.autoplay-count{gap:8px}.ap-limits-inner{padding:8px}.ap-limit{padding:0 12px;font-size:11px}.ap-start-btn{padding:8px 28px;font-size:16px;border-radius:10px}.autoplay-wrap{--ap-limit-h: 36px}}.ap-toggle{width:68px;height:38px;border-radius:999px;background:linear-gradient(180deg,#f0d35c,#d4a017);border:none;position:relative;padding:4px;display:inline-flex;align-items:center;transition:background .12s ease;cursor:pointer;box-shadow:inset 0 -6px #0000000f}.ap-toggle--off{background:linear-gradient(180deg,#efefef,#ddd)}.ap-toggle--on{background:linear-gradient(180deg,#f0d35c,#d4a017)}.ap-toggle--on .ap-toggle__knob{margin-left:auto}.ap-toggle__knob{width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:0 4px 8px #00000040;display:block;transition:transform .12s ease}@media (max-width: 880px){.ap-toggle{width:60px;height:34px}.ap-toggle__knob{width:28px;height:28px}}@media (max-width: 1000px){.ap-toggle{width:50px;height:30px}.ap-toggle__knob{width:24px;height:24px}}@media (max-width: 750px){.ap-toggle{width:38px;height:23px}.ap-toggle__knob{width:18px;height:18px}}.sp-wrap{width:100%;max-width:760px;margin:0 auto;color:#fff;text-align:center;padding:20px 12px;box-sizing:border-box;font-family:Helvetica Neue,Arial,sans-serif;--sp-switch-w: 54px;--sp-switch-h: 54px;--action-width: 45%;--action-max: 280px;--action-bg: rgba(41, 40, 40, .3);--action-icon-size: 43px;--content-max: 620px;--row-gap: 6px}.sp-actions{display:flex;flex-direction:column;gap:10px;align-items:center;margin-bottom:18px}.sp-action{width:var(--action-width);max-width:var(--action-max);background:var(--action-bg);color:#fff;border-radius:6px;border:1.6px solid rgba(255,255,255,.12);padding:10px 12px;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;box-sizing:border-box;transition:transform .08s ease,background .08s ease}.sp-action:hover{background:#1c1c1cde}.sp-action__icon{position:absolute;left:-1px;top:50%;transform:translateY(-50%);width:var(--action-icon-size);height:var(--action-icon-size);display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:2px solid rgba(255,255,255,.12);background:#0e0e0e59;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:60% 60%}.sp-action--history .sp-action__icon{background-image:url(public/assets/icons/history.svg)}.sp-action--paytable .sp-action__icon{background-image:url(public/assets/icons/paytable.svg)}.sp-action__label{display:inline-block;width:100%;font-weight:800;font-size:16px;letter-spacing:.3px;text-align:center;pointer-events:none}.sp-section-title{margin:18px 0 8px;font-size:23px;font-weight:800;color:#fff}.sp-rows{width:35%;max-width:var(--content-max);margin:0 auto;display:flex;flex-direction:column;box-sizing:border-box}.sp-row{display:grid;grid-template-columns:var(--sp-switch-w) 1fr;align-items:center;column-gap:var(--row-gap);width:100%;box-sizing:border-box}.sp-switch{width:var(--sp-switch-w);height:var(--sp-switch-h);min-height:var(--sp-switch-h);display:flex;align-items:center;justify-content:center;box-sizing:border-box;justify-self:end}.sp-label{font-size:16px;font-weight:700;color:#fff;display:flex;align-items:center;height:var(--sp-switch-h);min-height:var(--sp-switch-h);box-sizing:border-box;justify-content:flex-start;padding-left:8px;justify-self:start}@media (max-width: 880px){.sp-action{width:92%}.sp-action__icon{left:10px;width:44px;height:44px}.sp-action__label{font-size:18px}.sp-section-title{font-size:20px}.sp-label{font-size:16px}.sp-switch{width:60px;--sp-switch-h: 52px;justify-self:end}.sp-row{grid-template-columns:60px 1fr;column-gap:6px}}@media screen and (orientation: portrait) and (max-width: 420px){.sp-action{width:80%;max-width:360px;padding:10px}.sp-action__icon{left:-1px;width:40px;height:40px;border-radius:6px}.sp-action__label{font-size:16px}.sp-section-title{font-size:18px;margin-top:12px;margin-bottom:6px}.sp-label{font-size:15px}.sp-switch{width:56px;--sp-switch-h: 48px;justify-self:end}.sp-row{grid-template-columns:56px 1fr;column-gap:6px}.sp-rows{width:75%}}@media screen and (orientation: landscape) and (max-height: 420px),screen and (orientation: landscape) and (min-aspect-ratio: 2.2/1){.sp-action{width:60%;max-width:560px;padding:8px 10px}.sp-action__icon{left:-1px;width:40px;height:40px}.sp-action__label{font-size:18px}.sp-section-title{font-size:18px;margin-top:12px;margin-bottom:6px}.sp-label{font-size:15px}.sp-switch{width:56px;--sp-switch-h: 42px;justify-self:end}.sp-row{grid-template-columns:56px 1fr;column-gap:6px}}:root{--item-border: 1.6px solid rgba(49, 48, 51, .7);--bg: var(--800, rgba(49, 48, 51, .7));--muted: #aaaaaa;--accent: rgba(212,160,23,.12)}.history-wrap{width:90%;max-width:850px;margin:0 auto;display:flex;flex-direction:column;user-select:none;-webkit-user-select:none;-ms-user-select:none;box-sizing:border-box}.history-item{width:100%;display:grid;grid-template-columns:minmax(140px,35%) minmax(80px,1fr) minmax(80px,1fr) 36px;align-items:center;gap:8px;min-height:60px;padding:12px 14px;border-radius:8px;border:var(--item-border);color:var(--10, #FFFBFF);box-sizing:border-box;overflow:hidden;background-color:transparent;transition:min-height .33s;will-change:min-height}.history-item.active{min-height:120px;align-items:flex-start}.additional-info{position:absolute;justify-self:center;align-self:flex-end}.additional-button{width:90px;border-radius:8.185px;border:1.698px solid var(--300, #AEAAAF);background:#fbde38;cursor:pointer;font-weight:800;padding:10px 5px;margin:5px}.additional-button.replay{background:var(--900, #1C1B1E);box-shadow:0 0 1.395px #000;color:var(--10, #FFFBFF);font-style:normal;font-weight:800}.additional-button.replay:hover{background:#17171740}.additional-button:hover{background:#ffe116cc}.replay-icon{position:absolute;width:34px;height:34px;right:97%;bottom:15%;background-image:url(public/assets/icons/replay.svg);background-size:60% 60%;background-repeat:no-repeat;background-position:center}.history-item--head{color:#ddd;font-weight:700;border:none;text-transform:uppercase;font-size:12px;letter-spacing:.6px}.history-item:nth-child(2n):not(.history-item--head){background-color:var(--bg)}.history-item:nth-child(odd):not(.history-item--head){background-color:transparent;border:none}.date-section{justify-self:start;text-align:left;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bet-section,.win-section{justify-self:center;text-align:center;font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.currency{font-weight:400;margin-left:4px;color:var(--muted);font-size:13px}.vector{width:24px;height:24px;justify-self:end;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='35'%20height='21'%20viewBox='0%200%2035%2021'%20fill='none'%3e%3cpath%20d='M17.2271%2013.6183L30.3907%200.694336L34.1517%204.38692L17.2271%2021.0037L0.302734%204.38692L4.06372%200.694336L17.2271%2013.6183Z'%20fill='%23FFFBFF'/%3e%3c/svg%3e");background-size:115% 115%;background-repeat:no-repeat;background-position:center;cursor:pointer}.vector.up{transform:rotate(180deg)}@media screen and (orientation: portrait) and (max-width: 850px){.history-wrap{width:100%}.history-item{grid-template-columns:1fr 88px 88px 10px;padding:9px 10px;border-radius:6px}.date-section,.bet-section,.win-section{font-size:12px}.vector{width:15px;height:15px}}@media screen and (orientation: portrait) and (max-width: 400px){.history-wrap{width:100%}.history-item{grid-template-columns:1fr 50px 80px 10px;padding:9px 10px;border-radius:6px}.date-section,.bet-section,.win-section{font-size:12px}.vector{width:15px;height:15px}}:root{--sf-card-w: 220px;--sf-card-h: 340px;--sf-card-image-w: 200px;--sf-card-image-h: 120px;--gap: -10px;--btn-overlap: 20px;--btn-h: 37px;--bottom-row-h: 56px}.sf-wrap{width:100%;margin:0 auto;color:#fff;padding:2px;box-sizing:border-box;text-align:center;font-family:Helvetica Neue,Arial,sans-serif}.sf-section-title{font-size:34px;font-weight:900;margin:18px 0 20px;color:#fff}.sf-grid{display:grid;grid-template-columns:repeat(auto-fit,var(--sf-card-w));justify-content:center;gap:calc(var(--gap) + var(--btn-overlap));margin-bottom:36px;row-gap:40px;box-sizing:border-box}.sf-card{position:relative;width:var(--sf-card-w);height:var(--sf-card-h);background:#21212270;border:1.6px solid rgba(255,255,255,.12);border-radius:10px;box-sizing:border-box;justify-content:center;display:flex;flex-direction:column;align-items:center;transition:transform .12s ease}.sf-card__content{width:100%;display:flex;flex-direction:column;align-items:center}.sf-card__description{width:100%;height:50%;padding:10px;font-size:12px;box-sizing:border-box;flex:0 1 auto;overflow:auto}.sf-card__title{font-weight:800;width:80%;position:absolute;left:18px;right:18px;top:calc(var(--btn-overlap) - 2px);font-size:16px;color:#fff;text-transform:uppercase;line-height:1.05;text-align:center;display:flex;flex-direction:column;gap:6px;flex:0 0 auto;padding:0 6px}.sf-card__image-wrap{width:var(--sf-card-image-w);height:max-content;min-height:var(--sf-card-image-h);display:flex;align-items:center;justify-content:center;padding:10px;flex:0 0 auto;box-sizing:border-box}.sf-card__image-wrap img{max-width:100%;max-height:100%;object-fit:contain;display:block;border-radius:2px}.sf-card__bottom{position:absolute;left:8px;right:8px;bottom:calc(var(--btn-overlap) - 22px);height:var(--bottom-row-h);display:block;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;padding:6px 8px;background:transparent;z-index:1}.sf-card__bottom.ante{display:flex}.sf-card__price{font-weight:900;font-size:17px;color:#fff;white-space:nowrap}.sf-card__toggle{width:70px;display:flex;align-items:center;justify-content:center}.sf-buy-btn{position:absolute;left:50%;transform:translate(-50%);bottom:calc(-1 * var(--btn-overlap));width:calc(100% - 10px);height:var(--btn-h);display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f0d35c,#d4a017);color:#111;border:1px solid rgba(200,155,47,.7);padding:0 28px;border-radius:calc(var(--btn-h) / 2);font-weight:900;font-size:20px;cursor:pointer;z-index:2;box-sizing:border-box}@media screen and (max-width: 1000px) and (orientation: landscape){:root{--sf-card-w: 177px;--sf-card-h: 250px;--sf-card-image-w: 150px;--sf-card-image-h: 100px;--btn-h: 52px;--btn-overlap: 18px;--bottom-row-h: 52px}.sf-section-title{font-size:20px}.sf-card__title{font-size:10px;left:7px;right:7px}.sf-card__price{font-size:12px}.sf-buy-btn{height:calc(var(--btn-h) - 20px);font-size:18px}}@media (max-width: 750px) and (orientation: landscape){:root{--sf-card-w: 125px;--sf-card-h: 195px;--sf-card-image-w: 120px;--sf-card-image-h: 80px;--btn-h: 52px;--btn-overlap: 18px;--bottom-row-h: 52px}.sf-section-title{font-size:20px}.sf-card__price{font-size:12px}.sf-card__bottom{left:5px;right:0}.sf-card__bottom.ante .sf-card__price{font-size:9px}.sf-buy-btn{height:calc(var(--btn-h) - 20px);font-size:18px}}@media (max-width: 750px) and (orientation: portrait){:root{--sf-card-w: 125px;--sf-card-h: 195px;--sf-card-image-w: 120px;--sf-card-image-h: 80px;--btn-h: 52px;--btn-overlap: 18px;--bottom-row-h: 52px}.sf-card__title{font-size:10px;left:7px;right:7px}.sf-section-title{font-size:20px}.sf-card__price{font-size:12px}.sf-card__bottom{left:5px;right:0}.sf-card__bottom.ante .sf-card__price{font-size:9px}.sf-buy-btn{height:calc(var(--btn-h) - 20px);font-size:18px}}.dialogs-wrap{display:flex;width:35%;padding:18px 20px;flex-wrap:wrap;align-self:center;border-radius:6px;border:1.3px solid var(--300, #AEAAAF);background:var(--90080, rgba(18, 16, 18, .36));justify-self:center;justify-content:center;user-select:none;-webkit-user-select:none;-ms-user-select:none;box-sizing:border-box;gap:12px}.title{font-size:25px;font-weight:700;color:#fff;width:100%;text-align:center}.dialog-image{max-width:100%;width:120px;height:auto;display:block;margin:6px auto;border-radius:6px}.message{font-size:15px;margin-top:6px;color:#fff;width:100%;text-align:center}.additional-btns{width:100%;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.additional-btn{--fallback-bg: transparent;--fallback-color: #fff;background:var(--btn-bg, var(--fallback-bg));color:var(--btn-color, var(--fallback-color));border:2px solid rgba(255,255,255,.08);padding:10px 18px;border-radius:8px;font-weight:700;cursor:pointer;min-width:96px;box-sizing:border-box;transition:transform .08s ease,box-shadow .08s ease,filter .08s ease;display:inline-flex;align-items:center;justify-content:center}.additional-btn:hover{background:var(--btn-bg);opacity:.8}.additional-btn[style*=transparent]{background:transparent;box-shadow:none}@media screen and (orientation: portrait){.dialogs-wrap{width:85%}.title{font-size:20px}.message{font-size:14px}.additional-btn{min-width:80px;padding:8px 12px}}@media screen and (max-width: 935px) and (orientation: landscape){.dialogs-wrap{width:45%}}
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@sticky-studio-npm/ui-core",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/ui-bundle.umd.js",
7
7
  "module": "dist/ui-bundle.es.js",
8
8
  "types": "dist/index.d.ts",
9
+ "style": "dist/ui-core.css",
9
10
  "files": [
10
11
  "dist"
11
12
  ],
@@ -22,9 +23,9 @@
22
23
  "exports": {
23
24
  ".": {
24
25
  "import": "./dist/ui-bundle.es.js",
25
- "require": "./dist/ui-bundle.umd.js",
26
- "types": "./dist/index.d.ts"
27
- }
26
+ "require": "./dist/ui-bundle.umd.js"
27
+ },
28
+ "./ui-core.css": "./dist/ui-core.css"
28
29
  },
29
30
  "peerDependencies": {
30
31
  "react": ">=18",