import{o as H,k as I,v as T,w as h,x as b,y as K,$ as q}from"./index.ab3d776b.js";import{r as f}from"./react.6693569e.js";import{O as A,o as W,i as g}from"./ColorPicker.0ba20714.js";var R=0;function X(e){if(typeof Symbol=="function")return Symbol(e);var r="__$mobx-react "+e+" ("+R+")";return R++,r}var y={};function u(e){return y[e]||(y[e]=X(e)),y[e]}function M(e,r){if(x(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++)if(!Object.hasOwnProperty.call(r,t[o])||!x(e[t[o]],r[t[o]]))return!1;return!0}function x(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function l(e,r,t){Object.hasOwnProperty.call(e,r)?e[r]=t:Object.defineProperty(e,r,{enumerable:!1,configurable:!0,writable:!0,value:t})}var O=u("patchMixins"),D=u("patchedDefinition");function Y(e,r){var t=e[O]=e[O]||{},n=t[r]=t[r]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}function P(e,r){for(var t=this,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];r.locks++;try{var i;return e!=null&&(i=e.apply(this,o)),i}finally{r.locks--,r.locks===0&&r.methods.forEach(function(s){s.apply(t,o)})}}function S(e,r){var t=function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];P.call.apply(P,[this,e,r].concat(a))};return t}function z(e,r,t){var n=Y(e,r);n.methods.indexOf(t)<0&&n.methods.push(t);var o=Object.getOwnPropertyDescriptor(e,r);if(!(o&&o[D])){var a=e[r],i=F(e,r,o?o.enumerable:void 0,n,a);Object.defineProperty(e,r,i)}}function F(e,r,t,n,o){var a,i=S(o,n);return a={},a[D]=!0,a.get=function(){return i},a.set=function(c){if(this===e)i=S(c,n);else{var v=F(this,r,t,n,c);Object.defineProperty(this,r,v)}},a.configurable=!0,a.enumerable=t,a}var m=q,$=u("isMobXReactObserver"),j=u("isUnmounted"),d=u("skipRender"),p=u("isForcingUpdate");function G(e){var r=e.prototype;if(e[$]){var t=w(r);console.warn("The provided component class ("+t+`) 
                has already been declared as an observer component.`)}else e[$]=!0;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==f.exports.PureComponent){if(!r.shouldComponentUpdate)r.shouldComponentUpdate=C;else if(r.shouldComponentUpdate!==C)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}k(r,"props"),k(r,"state");var n=r.render;return r.render=function(){return J.call(this,n)},z(r,"componentWillUnmount",function(){var o;if(g()!==!0&&((o=this.render[m])===null||o===void 0||o.dispose(),this[j]=!0,!this.render[m])){var a=w(this);console.warn("The reactive render of an observer class component ("+a+`) 
                was overriden after MobX attached. This may result in a memory leak if the 
                overriden reactive render was not properly disposed.`)}}),e}function w(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function J(e){var r=this;if(g()===!0)return e.call(this);l(this,d,!1),l(this,p,!1);var t=w(this),n=e.bind(this),o=!1,a=new I(t+".render()",function(){if(!o&&(o=!0,r[j]!==!0)){var s=!0;try{l(r,p,!0),r[d]||f.exports.Component.prototype.forceUpdate.call(r),s=!1}finally{l(r,p,!1),s&&a.dispose()}}});a.reactComponent=this,i[m]=a,this.render=i;function i(){o=!1;var s=void 0,c=void 0;if(a.track(function(){try{c=T(!1,n)}catch(v){s=v}}),s)throw s;return c}return i.call(this)}function C(e,r){return g()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r?!0:!M(this.props,e)}function k(e,r){var t=u("reactProp_"+r+"_valueHolder"),n=u("reactProp_"+r+"_atomHolder");function o(){return this[n]||l(this,n,K("reactive "+r)),this[n]}Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){var i=!1;return h&&b&&(i=h(!0)),o.call(this).reportObserved(),h&&b&&b(i),this[t]},set:function(i){!this[p]&&!M(this[t],i)?(l(this,t,i),l(this,d,!0),o.call(this).reportChanged(),l(this,d,!1)):l(this,t,i)}})}var _=typeof Symbol=="function"&&Symbol.for,U=_?Symbol.for("react.forward_ref"):typeof f.exports.forwardRef=="function"&&f.exports.forwardRef(function(e){return null}).$$typeof,E=_?Symbol.for("react.memo"):typeof f.exports.memo=="function"&&f.exports.memo(function(e){return null}).$$typeof;function V(e){if(e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),E&&e.$$typeof===E)throw new Error("Mobx observer: 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.");if(U&&e.$$typeof===U){var r=e.render;if(typeof r!="function")throw new Error("render property of ForwardRef was not a function");return f.exports.forwardRef(function(){var n=arguments;return f.exports.createElement(A,null,function(){return r.apply(void 0,n)})})}return typeof e=="function"&&(!e.prototype||!e.prototype.render)&&!e.isReactClass&&!Object.prototype.isPrototypeOf.call(f.exports.Component,e)?W(e):G(e)}if(!f.exports.Component)throw new Error("mobx-react requires React to be available");if(!H)throw new Error("mobx-react requires mobx to be available");export{V as o};
