UNPKG

@quantajs/react

Version:

React integration for QuantaJS - A compact, scalable, and developer-friendly state management library for React applications.

28 lines (24 loc) 81.1 kB
/*! MIT License Copyright (c) 2025 QuantaJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),E=require("@quantajs/core"),xt=(e,t)=>{try{return e&&typeof e=="object"&&"value"in e?e.value:typeof e=="function"?e.bind(t):e}catch{return e}};function fe(e,t){if(!e.subscribe){const c=new Error("QuantaJS store missing `subscribe`—ensure core v0.1.0-beta.2+.");throw E.logger.error(`useQuantaStore: ${c.message}`),c}if(!t){const c=T.useRef(null),p=T.useCallback(()=>{if(c.current)return c.current;const a={};return Object.keys(e.state||{}).forEach(u=>{a[u]=e[u]}),Object.keys(e.getters||{}).forEach(u=>{const f=e.getters[u];a[u]=xt(f,e)}),Object.keys(e.actions||{}).forEach(u=>{a[u]=e.actions[u].bind(e)}),a.$reset=e.$reset,a.$persist=e.$persist,a.$destroy=e.$destroy,c.current=a,a},[e]),d=T.useCallback(a=>{const u=f=>{c.current=null,a()};return e.subscribe(u)},[e]),x=T.useCallback(()=>p(),[p]);return T.useSyncExternalStore(d,p,x)}const r=T.useRef(null),i=T.useCallback(()=>{const c=t(e);return r.current=c,c},[e,t]),l=T.useCallback(c=>{const p=d=>{try{const x=t(e);r.current!==x&&(r.current=x,c())}catch(x){E.logger.warn(`useQuantaStore: Selector update failed: ${String(x)}`)}};return e.subscribe(p)},[e,t]),o=T.useCallback(()=>(r.current===null&&i(),r.current),[i]),s=T.useCallback(()=>i(),[i]);return T.useSyncExternalStore(l,o,s)}const _e=T.createContext({stores:{}});function Ge(){try{const e=T.useContext(_e);if(!e){const t="useQuantaContext must be used within a QuantaProvider";throw E.logger.error(`QuantaContext: ${t}`),new Error(t)}return e}catch(e){throw E.logger.error(`QuantaContext: Failed to access context: ${e instanceof Error?e.message:String(e)}`),e}}function yt(e,t){try{const{stores:r}=Ge(),i=r[e];if(!i){const l=`Store with name "${e}" does not exist in the context.`;throw E.logger.error(`useStore: ${l}`),new Error(l)}return t?fe(i,t):fe(i)}catch(r){throw E.logger.error(`useStore: Failed to access store "${e}": ${r instanceof Error?r.message:String(r)}`),r}}function gt(e,t,r,i){try{const l=T.useRef(void 0);if(!l.current)try{l.current=E.createStore(e,{state:t,getters:r,actions:i})}catch(o){throw E.logger.error(`useCreateStore: Failed to create store "${e}": ${o instanceof Error?o.message:String(o)}`),o}return l.current}catch(l){throw E.logger.error(`useCreateStore: Hook execution failed: ${l instanceof Error?l.message:String(l)}`),l}}var K={exports:{}},q={};var je;function _t(){if(je)return q;je=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,l,o){var s=null;if(o!==void 0&&(s=""+o),l.key!==void 0&&(s=""+l.key),"key"in l){o={};for(var c in l)c!=="key"&&(o[c]=l[c])}else o=l;return l=o.ref,{$$typeof:e,type:i,key:s,ref:l!==void 0?l:null,props:o}}return q.Fragment=t,q.jsx=r,q.jsxs=r,q}var Y={};var Re;function wt(){return Re||(Re=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===j?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case m:return"Fragment";case _:return"Profiler";case g:return"StrictMode";case I:return"Suspense";case X:return"SuspenseList";case W:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case A:return"Portal";case O:return h.displayName||"Context";case P:return(h._context.displayName||"Context")+".Consumer";case U:var y=h.render;return h=h.displayName,h||(h=y.displayName||y.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case Q:return y=h.displayName||null,y!==null?y:e(h.type)||"Memo";case $:y=h._payload,h=h._init;try{return e(h(y))}catch{}}return null}function t(h){return""+h}function r(h){try{t(h);var y=!1}catch{y=!0}if(y){y=console;var b=y.error,S=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return b.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S),t(h)}}function i(h){if(h===m)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===$)return"<...>";try{var y=e(h);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function l(){var h=M.A;return h===null?null:h.getOwner()}function o(){return Error("react-stack-top-frame")}function s(h){if(Ne.call(h,"key")){var y=Object.getOwnPropertyDescriptor(h,"key").get;if(y&&y.isReactWarning)return!1}return h.key!==void 0}function c(h,y){function b(){Se||(Se=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}b.isReactWarning=!0,Object.defineProperty(h,"key",{get:b,configurable:!0})}function p(){var h=e(this.type);return Ce[h]||(Ce[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function d(h,y,b,S,Z,se){var C=b.ref;return h={$$typeof:v,type:h,key:y,props:b,_owner:S},(C!==void 0?C:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:p}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function x(h,y,b,S,Z,se){var C=y.children;if(C!==void 0)if(S)if(pt(C)){for(S=0;S<C.length;S++)a(C[S]);Object.freeze&&Object.freeze(C)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else a(C);if(Ne.call(y,"key")){C=e(h);var H=Object.keys(y).filter(function(ut){return ut!=="key"});S=0<H.length?"{key: someKey, "+H.join(": ..., ")+": ...}":"{key: someKey}",Ae[C+S]||(H=0<H.length?"{"+H.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,S,C,H,C),Ae[C+S]=!0)}if(C=null,b!==void 0&&(r(b),C=""+b),s(y)&&(r(y.key),C=""+y.key),"key"in y){b={};for(var he in y)he!=="key"&&(b[he]=y[he])}else b=y;return C&&c(b,typeof h=="function"?h.displayName||h.name||"Unknown":h),d(h,C,b,l(),Z,se)}function a(h){u(h)?h._store&&(h._store.validated=1):typeof h=="object"&&h!==null&&h.$$typeof===$&&(h._payload.status==="fulfilled"?u(h._payload.value)&&h._payload.value._store&&(h._payload.value._store.validated=1):h._store&&(h._store.validated=1))}function u(h){return typeof h=="object"&&h!==null&&h.$$typeof===v}var f=T,v=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),O=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),M=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=Object.prototype.hasOwnProperty,pt=Array.isArray,ce=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(h){return h()}};var Se,Ce={},Ee=f.react_stack_bottom_frame.bind(f,o)(),Te=ce(i(o)),Ae={};Y.Fragment=m,Y.jsx=function(h,y,b){var S=1e4>M.recentlyCreatedOwnerStacks++;return x(h,y,b,!1,S?Error("react-stack-top-frame"):Ee,S?ce(i(h)):Te)},Y.jsxs=function(h,y,b){var S=1e4>M.recentlyCreatedOwnerStacks++;return x(h,y,b,!0,S?Error("react-stack-top-frame"):Ee,S?ce(i(h)):Te)}})()),Y}var Pe;function mt(){return Pe||(Pe=1,process.env.NODE_ENV==="production"?K.exports=_t():K.exports=wt()),K.exports}var bt=mt();function vt({stores:e,children:t}){try{if(!e||typeof e!="object"){const r="QuantaProvider: Invalid stores prop provided";throw E.logger.error(r),new Error(r)}for(const[r,i]of Object.entries(e))if(!i||typeof i!="object"){const l=`QuantaProvider: Invalid store "${r}" provided`;throw E.logger.error(l),new Error(l)}return bt.jsx(_e.Provider,{value:{stores:e},children:t})}catch(r){throw E.logger.error(`QuantaProvider: Failed to render provider: ${r instanceof Error?r.message:String(r)}`),r}}var ae,w,Xe,L,Oe,Ze,Ke,et,we,pe,ue,V={},tt=[],kt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,G=Array.isArray;function D(e,t){for(var r in t)e[r]=t[r];return e}function me(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function J(e,t,r){var i,l,o,s={};for(o in t)o=="key"?i=t[o]:o=="ref"?l=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?ae.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return te(e,s,i,l,null)}function te(e,t,r,i,l){var o={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:l??++Xe,__i:-1,__u:0};return l==null&&w.vnode!=null&&w.vnode(o),o}function ne(e){return e.children}function re(e,t){this.props=e,this.context=t}function B(e,t){if(t==null)return e.__?B(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?B(e):null}function rt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return rt(e)}}function Me(e){(!e.__d&&(e.__d=!0)&&L.push(e)&&!oe.__r++||Oe!=w.debounceRendering)&&((Oe=w.debounceRendering)||Ze)(oe)}function oe(){for(var e,t,r,i,l,o,s,c=1;L.length;)L.length>c&&L.sort(Ke),e=L.shift(),c=L.length,e.__d&&(r=void 0,i=void 0,l=(i=(t=e).__v).__e,o=[],s=[],t.__P&&((r=D({},i)).__v=i.__v+1,w.vnode&&w.vnode(r),be(t.__P,r,i,t.__n,t.__P.namespaceURI,32&i.__u?[l]:null,o,l??B(i),!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,at(o,r,s),i.__e=i.__=null,r.__e!=l&&rt(r)));oe.__r=0}function it(e,t,r,i,l,o,s,c,p,d,x){var a,u,f,v,A,m,g,_=i&&i.__k||tt,P=t.length;for(p=Nt(r,t,_,p,P),a=0;a<P;a++)(f=r.__k[a])!=null&&(u=f.__i==-1?V:_[f.__i]||V,f.__i=a,m=be(e,f,u,l,o,s,c,p,d,x),v=f.__e,f.ref&&u.ref!=f.ref&&(u.ref&&ve(u.ref,null,f),x.push(f.ref,f.__c||v,f)),A==null&&v!=null&&(A=v),(g=!!(4&f.__u))||u.__k===f.__k?p=ot(f,p,e,g):typeof f.type=="function"&&m!==void 0?p=m:v&&(p=v.nextSibling),f.__u&=-7);return r.__e=A,p}function Nt(e,t,r,i,l){var o,s,c,p,d,x=r.length,a=x,u=0;for(e.__k=new Array(l),o=0;o<l;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(p=o+u,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?te(null,s,null,null,null):G(s)?te(ne,{children:s},null,null,null):s.constructor==null&&s.__b>0?te(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,c=null,(d=s.__i=St(s,r,p,a))!=-1&&(a--,(c=r[d])&&(c.__u|=2)),c==null||c.__v==null?(d==-1&&(l>x?u--:l<x&&u++),typeof s.type!="function"&&(s.__u|=4)):d!=p&&(d==p-1?u--:d==p+1?u++:(d>p?u--:u++,s.__u|=4))):e.__k[o]=null;if(a)for(o=0;o<x;o++)(c=r[o])!=null&&(2&c.__u)==0&&(c.__e==i&&(i=B(c)),ct(c,c));return i}function ot(e,t,r,i){var l,o;if(typeof e.type=="function"){for(l=e.__k,o=0;l&&o<l.length;o++)l[o]&&(l[o].__=e,t=ot(l[o],t,r,i));return t}e.__e!=t&&(i&&(t&&e.type&&!t.parentNode&&(t=B(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function lt(e,t){return t=t||[],e==null||typeof e=="boolean"||(G(e)?e.some(function(r){lt(r,t)}):t.push(e)),t}function St(e,t,r,i){var l,o,s,c=e.key,p=e.type,d=t[r],x=d!=null&&(2&d.__u)==0;if(d===null&&e.key==null||x&&c==d.key&&p==d.type)return r;if(i>(x?1:0)){for(l=r-1,o=r+1;l>=0||o<t.length;)if((d=t[s=l>=0?l--:o++])!=null&&(2&d.__u)==0&&c==d.key&&p==d.type)return s}return-1}function ze(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||kt.test(t)?r:r+"px"}function ee(e,t,r,i,l){var o,s;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)r&&t in r||ze(e.style,t,"");if(r)for(t in r)i&&r[t]==i[t]||ze(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(et,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?i?r.u=i.u:(r.u=we,e.addEventListener(t,o?ue:pe,o)):e.removeEventListener(t,o?ue:pe,o);else{if(l=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function $e(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=we++;else if(t.t<r.u)return;return r(w.event?w.event(t):t)}}}function be(e,t,r,i,l,o,s,c,p,d){var x,a,u,f,v,A,m,g,_,P,O,U,I,X,Q,$,W,j=t.type;if(t.constructor!=null)return null;128&r.__u&&(p=!!(32&r.__u),o=[c=t.__e=r.__e]),(x=w.__b)&&x(t);e:if(typeof j=="function")try{if(g=t.props,_="prototype"in j&&j.prototype.render,P=(x=j.contextType)&&i[x.__c],O=x?P?P.props.value:x.__:i,r.__c?m=(a=t.__c=r.__c).__=a.__E:(_?t.__c=a=new j(g,O):(t.__c=a=new re(g,O),a.constructor=j,a.render=Et),P&&P.sub(a),a.props=g,a.state||(a.state={}),a.context=O,a.__n=i,u=a.__d=!0,a.__h=[],a._sb=[]),_&&a.__s==null&&(a.__s=a.state),_&&j.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=D({},a.__s)),D(a.__s,j.getDerivedStateFromProps(g,a.__s))),f=a.props,v=a.state,a.__v=t,u)_&&j.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),_&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(_&&j.getDerivedStateFromProps==null&&g!==f&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,O),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,O)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(a.props=g,a.state=a.__s,a.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(M){M&&(M.__=t)}),U=0;U<a._sb.length;U++)a.__h.push(a._sb[U]);a._sb=[],a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,O),_&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(f,v,A)})}if(a.context=O,a.props=g,a.__P=e,a.__e=!1,I=w.__r,X=0,_){for(a.state=a.__s,a.__d=!1,I&&I(t),x=a.render(a.props,a.state,a.context),Q=0;Q<a._sb.length;Q++)a.__h.push(a._sb[Q]);a._sb=[]}else do a.__d=!1,I&&I(t),x=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++X<25);a.state=a.__s,a.getChildContext!=null&&(i=D(D({},i),a.getChildContext())),_&&!u&&a.getSnapshotBeforeUpdate!=null&&(A=a.getSnapshotBeforeUpdate(f,v)),$=x,x!=null&&x.type===ne&&x.key==null&&($=nt(x.props.children)),c=it(e,G($)?$:[$],t,r,i,l,o,s,c,p,d),a.base=t.__e,t.__u&=-161,a.__h.length&&s.push(a),m&&(a.__E=a.__=null)}catch(M){if(t.__v=null,p||o!=null)if(M.then){for(t.__u|=p?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;o[o.indexOf(c)]=null,t.__e=c}else{for(W=o.length;W--;)me(o[W]);xe(t)}else t.__e=r.__e,t.__k=r.__k,M.then||xe(t);w.__e(M,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):c=t.__e=Ct(r.__e,t,r,i,l,o,s,p,d);return(x=w.diffed)&&x(t),128&t.__u?void 0:c}function xe(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(xe)}function at(e,t,r){for(var i=0;i<r.length;i++)ve(r[i],r[++i],r[++i]);w.__c&&w.__c(t,e),e.some(function(l){try{e=l.__h,l.__h=[],e.some(function(o){o.call(l)})}catch(o){w.__e(o,l.__v)}})}function nt(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:G(e)?e.map(nt):D({},e)}function Ct(e,t,r,i,l,o,s,c,p){var d,x,a,u,f,v,A,m=r.props,g=t.props,_=t.type;if(_=="svg"?l="http://www.w3.org/2000/svg":_=="math"?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((f=o[d])&&"setAttribute"in f==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[d]=null;break}}if(e==null){if(_==null)return document.createTextNode(g);e=document.createElementNS(l,_,g.is&&g),c&&(w.__m&&w.__m(t,o),c=!1),o=null}if(_==null)m===g||c&&e.data==g||(e.data=g);else{if(o=o&&ae.call(e.childNodes),m=r.props||V,!c&&o!=null)for(m={},d=0;d<e.attributes.length;d++)m[(f=e.attributes[d]).name]=f.value;for(d in m)if(f=m[d],d!="children"){if(d=="dangerouslySetInnerHTML")a=f;else if(!(d in g)){if(d=="value"&&"defaultValue"in g||d=="checked"&&"defaultChecked"in g)continue;ee(e,d,null,f,l)}}for(d in g)f=g[d],d=="children"?u=f:d=="dangerouslySetInnerHTML"?x=f:d=="value"?v=f:d=="checked"?A=f:c&&typeof f!="function"||m[d]===f||ee(e,d,f,m[d],l);if(x)c||a&&(x.__html==a.__html||x.__html==e.innerHTML)||(e.innerHTML=x.__html),t.__k=[];else if(a&&(e.innerHTML=""),it(t.type=="template"?e.content:e,G(u)?u:[u],t,r,i,_=="foreignObject"?"http://www.w3.org/1999/xhtml":l,o,s,o?o[0]:r.__k&&B(r,0),c,p),o!=null)for(d=o.length;d--;)me(o[d]);c||(d="value",_=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[d]||_=="progress"&&!v||_=="option"&&v!=m[d])&&ee(e,d,v,m[d],l),d="checked",A!=null&&A!=e[d]&&ee(e,d,A,m[d],l))}return e}function ve(e,t,r){try{if(typeof e=="function"){var i=typeof e.__u=="function";i&&e.__u(),i&&t==null||(e.__u=e(t))}else e.current=t}catch(l){w.__e(l,r)}}function ct(e,t,r){var i,l;if(w.unmount&&w.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||ve(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){w.__e(o,t)}i.base=i.__P=null}if(i=e.__k)for(l=0;l<i.length;l++)i[l]&&ct(i[l],t,r||typeof e.type!="function");r||me(e.__e),e.__c=e.__=e.__e=void 0}function Et(e,t,r){return this.constructor(e,r)}function De(e,t,r){var i,l,o,s;t==document&&(t=document.documentElement),w.__&&w.__(e,t),l=(i=!1)?null:t.__k,o=[],s=[],be(t,e=t.__k=J(ne,null,[e]),l||V,V,t.namespaceURI,l?null:t.firstChild?ae.call(t.childNodes):null,o,l?l.__e:t.firstChild,i,s),at(o,e,s)}ae=tt.slice,w={__e:function(e,t,r,i){for(var l,o,s;t=t.__;)if((l=t.__c)&&!l.__)try{if((o=l.constructor)&&o.getDerivedStateFromError!=null&&(l.setState(o.getDerivedStateFromError(e)),s=l.__d),l.componentDidCatch!=null&&(l.componentDidCatch(e,i||{}),s=l.__d),s)return l.__E=l}catch(c){e=c}throw e}},Xe=0,re.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=D({},this.state),typeof e=="function"&&(e=e(D({},r),this.props)),e&&D(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Me(this))},re.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Me(this))},re.prototype.render=ne,L=[],Ze=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ke=function(e,t){return e.__v.__b-t.__v.__b},oe.__r=0,et=/(PointerCapture)$|Capture$/i,we=0,pe=$e(!1),ue=$e(!0);var Tt=0;function n(e,t,r,i,l,o){t||(t={});var s,c,p=t;if("ref"in p)for(c in p={},t)c=="ref"?s=t[c]:p[c]=t[c];var d={type:e,props:p,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Tt,__i:-1,__u:0,__source:l,__self:o};if(typeof e=="function"&&(s=e.defaultProps))for(c in s)p[c]===void 0&&(p[c]=s[c]);return w.vnode&&w.vnode(d),d}var le,k,de,Fe,ye=0,st=[],N=w,Ie=N.__b,Le=N.__r,Ue=N.diffed,Qe=N.__c,He=N.unmount,Be=N.__;function ht(e,t){N.__h&&N.__h(k,e,ye||t),ye=0;var r=k.__H||(k.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function F(e){return ye=1,At(dt,e)}function At(e,t,r){var i=ht(le++,2);if(i.t=e,!i.__c&&(i.__=[dt(void 0,t),function(c){var p=i.__N?i.__N[0]:i.__[0],d=i.t(p,c);p!==d&&(i.__N=[d,i.__[1]],i.__c.setState({}))}],i.__c=k,!k.__f)){var l=function(c,p,d){if(!i.__c.__H)return!0;var x=i.__c.__H.__.filter(function(u){return!!u.__c});if(x.every(function(u){return!u.__N}))return!o||o.call(this,c,p,d);var a=i.__c.props!==c;return x.forEach(function(u){if(u.__N){var f=u.__[0];u.__=u.__N,u.__N=void 0,f!==u.__[0]&&(a=!0)}}),o&&o.call(this,c,p,d)||a};k.__f=!0;var o=k.shouldComponentUpdate,s=k.componentWillUpdate;k.componentWillUpdate=function(c,p,d){if(this.__e){var x=o;o=void 0,l(c,p,d),o=x}s&&s.call(this,c,p,d)},k.shouldComponentUpdate=l}return i.__N||i.__}function jt(e,t){var r=ht(le++,3);!N.__s&&Ot(r.__H,t)&&(r.__=e,r.u=t,k.__H.__h.push(r))}function Rt(){for(var e;e=st.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ie),e.__H.__h.forEach(ge),e.__H.__h=[]}catch(t){e.__H.__h=[],N.__e(t,e.__v)}}N.__b=function(e){k=null,Ie&&Ie(e)},N.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Be&&Be(e,t)},N.__r=function(e){Le&&Le(e),le=0;var t=(k=e.__c).__H;t&&(de===k?(t.__h=[],k.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ie),t.__h.forEach(ge),t.__h=[],le=0)),de=k},N.diffed=function(e){Ue&&Ue(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(st.push(t)!==1&&Fe===N.requestAnimationFrame||((Fe=N.requestAnimationFrame)||Pt)(Rt)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),de=k=null},N.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ie),r.__h=r.__h.filter(function(i){return!i.__||ge(i)})}catch(i){t.some(function(l){l.__h&&(l.__h=[])}),t=[],N.__e(i,r.__v)}}),Qe&&Qe(e,t)},N.unmount=function(e){He&&He(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(i){try{ie(i)}catch(l){t=l}}),r.__H=void 0,t&&N.__e(t,r.__v))};var We=typeof requestAnimationFrame=="function";function Pt(e){var t,r=function(){clearTimeout(i),We&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(r,35);We&&(t=requestAnimationFrame(r))}function ie(e){var t=k,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),k=t}function ge(e){var t=k;e.__c=e.__(),k=t}function Ot(e,t){return!e||e.length!==t.length||t.some(function(r,i){return r!==e[i]})}function dt(e,t){return typeof t=="function"?t(e):t}const qe="data:image/svg+xml,%3csvg%20width='1820'%20height='1820'%20viewBox='0%200%201820%201820'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='1820'%20height='1820'%20rx='20'%20fill='%23121212'/%3e%3crect%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='496'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='744'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='868'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.8'%20x='1240'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='1736'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='248'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='744'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1116'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1364'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='248'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='992'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1116'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='992'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1116'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20opacity='0.7'%20x='1364'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1488'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1736'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20opacity='0.99'%20x='1364'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1488'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1612'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1736'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='248'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1364'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1488'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='124'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20opacity='0.5'%20x='1364'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1736'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='992'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1488'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1612'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1736'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.1'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='992'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='372'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='992'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1488'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='1612'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='248'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.98'%20x='744'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='992'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='1364'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='1364'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1488'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='744'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='1240'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1612'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='248'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='744'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1240'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1488'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='124'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='744'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='868'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.8'%20x='1240'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.32'%20x='1612'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3c/svg%3e";function Mt(){const[e,t]=F({}),[r,i]=F([]),[l,o]=F(null);return jt(()=>{let s,c=0;const p=10,d=()=>{const a=window.__QUANTA_DEVTOOLS__;a?(console.log("[Quanta DevTools] Connected to bridge"),s=a.subscribe(x)):c<p?(c++,setTimeout(d,500)):console.warn("[Quanta DevTools] Failed to connect to bridge after retries")},x=a=>{a.type==="STORE_INIT"?t(u=>{const f={...u,[a.payload.name]:a.payload.store};return l||o(a.payload.name),f}):a.type==="STATE_CHANGE"?t(u=>{const f=a.payload.storeName;return u[f]?{...u}:u}):a.type==="ACTION_CALL"&&i(u=>[{id:Math.random().toString(36).substr(2,9),storeName:a.payload.storeName,actionName:a.payload.actionName,args:a.payload.args,timestamp:Date.now()},...u.slice(0,49)])};return d(),()=>{s&&s()}},[l]),{stores:e,actions:r,selectedStore:l,setSelectedStore:o}}const Ye=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),Ve=e=>{const t=zt(e);return t.charAt(0).toUpperCase()+t.slice(1)},$t=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim();var Dt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};const Ft=({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,children:l,iconNode:o,class:s="",...c})=>J("svg",{...Dt,width:String(t),height:t,stroke:e,"stroke-width":i?Number(r)*24/Number(t):r,class:["lucide",s].join(" "),...c},[...o.map(([p,d])=>J(p,d)),...lt(l)]),R=(e,t)=>{const r=({class:i="",className:l="",children:o,...s})=>J(Ft,{...s,iconNode:t,class:$t(`lucide-${Ye(Ve(e))}`,`lucide-${Ye(e)}`,i,l)},o);return r.displayName=Ve(e),r},It=R("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Lt=R("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ut=R("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Qt=R("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Ht=R("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),Bt=R("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Wt=R("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),qt=R("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),Yt=R("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),Vt=R("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Jt=R("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),Gt=R("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Xt={x:Gt,play:qt,database:Wt,"chevron-right":Ut,"chevron-up":Qt,"chevron-down":Lt,"rotate-ccw":Yt,trash:Jt,search:Vt,"circle-x":Ht,check:It,copy:Bt};function z({name:e,size:t=16,color:r,className:i}){const l=Xt[e];return l?n(l,{size:t,color:r,className:i}):null}function ke(e){const t=new WeakSet;function r(i,l){if(l>10)return"[...]";if(i===null)return null;if(i===void 0)return;const o=typeof i;if(o==="string"||o==="number"||o==="boolean")return i;if(o==="function")return"[Function]";if(typeof Window<"u"&&i instanceof Window)return"[Window]";if(typeof Node<"u"&&i instanceof Node)return"[Element]";if(i instanceof Date)return i.toISOString();if(i instanceof RegExp)return i.toString();if(Array.isArray(i)){if(t.has(i))return"[Circular]";t.add(i);const s=i.map(c=>r(c,l+1));return t.delete(i),s}if(o==="object"){if(t.has(i))return"[Circular]";t.add(i);const s={};for(const c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=r(i[c],l+1));return t.delete(i),s}return String(i)}try{return JS