From 2c59ce43adbe6e0d1f649972830c4f4fc17c0dfd Mon Sep 17 00:00:00 2001 From: SrJuggernaut Date: Wed, 13 Aug 2025 12:21:20 -0600 Subject: [PATCH] feat: build system --- biome.json | 70 ++++++------- commitlint.config.ts | 2 +- dist/index.css | 1 + dist/index.js | 235 ++++++++++++++++++++++++++++++++++++++++++- manifest.json | 13 +++ package.json | 4 +- tsconfig.json | 7 +- types/global.d.ts | 5 +- 8 files changed, 290 insertions(+), 47 deletions(-) create mode 100644 dist/index.css create mode 100644 manifest.json diff --git a/biome.json b/biome.json index 8c615f2..64ef486 100644 --- a/biome.json +++ b/biome.json @@ -1,37 +1,37 @@ { - "$schema": "https://biomejs.dev/schemas/2.1.4/schema.json", - "vcs": { - "enabled": true, - "clientKind": "git", - "useIgnoreFile": true - }, - "files": { - "ignoreUnknown": false - }, - "formatter": { - "enabled": true, - "indentStyle": "space", - "indentWidth": 2 - }, - "linter": { - "enabled": true, - "rules": { - "recommended": true - } - }, - "javascript": { - "formatter": { - "quoteStyle": "single", - "trailingCommas": "none", - "semicolons": "asNeeded" - } - }, - "assist": { - "enabled": true, - "actions": { - "source": { - "organizeImports": "on" - } - } - } + "$schema": "https://biomejs.dev/schemas/2.1.4/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "ignoreUnknown": false + }, + "formatter": { + "enabled": true, + "indentStyle": "space", + "indentWidth": 2 + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true + } + }, + "javascript": { + "formatter": { + "quoteStyle": "single", + "trailingCommas": "none", + "semicolons": "asNeeded" + } + }, + "assist": { + "enabled": true, + "actions": { + "source": { + "organizeImports": "on" + } + } + } } diff --git a/commitlint.config.ts b/commitlint.config.ts index 3f5e287..7c4ff4d 100644 --- a/commitlint.config.ts +++ b/commitlint.config.ts @@ -1 +1 @@ -export default { extends: ['@commitlint/config-conventional'] }; +export default { extends: ['@commitlint/config-conventional'] } diff --git a/dist/index.css b/dist/index.css new file mode 100644 index 0000000..c8f4c0d --- /dev/null +++ b/dist/index.css @@ -0,0 +1 @@ +.details{border:1px solid var(--color-neutral-6);background-color:var(--color-neutral-3);color:var(--color-neutral-12);border-radius:4px}.details[open] summary{background-color:var(--color-neutral-5)}.details>summary{cursor:pointer;padding:4px 8px;font-size:16px;font-weight:600;line-height:20px}.details>summary:hover{background-color:var(--color-neutral-4)}.details>div{padding:8px}:root{--color-neutral-1:#111113;--color-neutral-2:#18191b;--color-neutral-3:#212225;--color-neutral-4:#272a2d;--color-neutral-5:#2e3135;--color-neutral-6:#363a3f;--color-neutral-7:#43484e;--color-neutral-8:#5a6169;--color-neutral-9:#696e77;--color-neutral-10:#777b84;--color-neutral-11:#b0b4ba;--color-neutral-12:#edeef0;--color-primary-1:#13131e;--color-primary-2:#171625;--color-primary-3:#202248;--color-primary-4:#262a65;--color-primary-5:#303374;--color-primary-6:#3d3e82;--color-primary-7:#4a4a95;--color-primary-8:#5958b1;--color-primary-9:#5b5bd6;--color-primary-10:#6e6ade;--color-primary-11:#b1a9ff;--color-primary-12:#e0dffe} diff --git a/dist/index.js b/dist/index.js index 6215c42..7a493e9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,231 @@ -// src/index.ts -console.log("Hello via Bun!"); -var context = SillyTavern.getContext(); -console.log(context); +var mM=Object.create;var{getPrototypeOf:fM,defineProperty:BQ,getOwnPropertyNames:uM}=Object;var hM=Object.prototype.hasOwnProperty;var A2=(e,F1,D1)=>{D1=e!=null?mM(fM(e)):{};let V1=F1||!e||!e.__esModule?BQ(D1,"default",{value:e,enumerable:!0}):D1;for(let W1 of uM(e))if(!hM.call(V1,W1))BQ(V1,W1,{get:()=>e[W1],enumerable:!0});return V1};var v4=(e,F1)=>()=>(F1||e((F1={exports:{}}).exports,F1),F1.exports);var _8=v4((dM,K9)=>{(function(){function e(H,W){Object.defineProperty(V1.prototype,H,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",W[0],W[1])}})}function F1(H){if(H===null||typeof H!=="object")return null;return H=n2&&H[n2]||H["@@iterator"],typeof H==="function"?H:null}function D1(H,W){H=(H=H.constructor)&&(H.displayName||H.name)||"ReactClass";var P=H+"."+W;q3[P]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",W,H),q3[P]=!0)}function V1(H,W,P){this.props=H,this.context=W,this.refs=c3,this.updater=P||l5}function W1(){}function b1(H,W,P){this.props=H,this.context=W,this.refs=c3,this.updater=P||l5}function F2(H){return""+H}function L1(H){try{F2(H);var W=!1}catch(b){W=!0}if(W){W=console;var P=W.error,E=typeof Symbol==="function"&&Symbol.toStringTag&&H[Symbol.toStringTag]||H.constructor.name||"Object";return P.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",E),F2(H)}}function C(H){if(H==null)return null;if(typeof H==="function")return H.$$typeof===y4?null:H.displayName||H.name||null;if(typeof H==="string")return H;switch(H){case Q1:return"Fragment";case f:return"Profiler";case F:return"StrictMode";case o1:return"Suspense";case P3:return"SuspenseList";case M3: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 d:return"Portal";case h:return(H.displayName||"Context")+".Provider";case z1:return(H._context.displayName||"Context")+".Consumer";case f1:var W=H.render;return H=H.displayName,H||(H=W.displayName||W.name||"",H=H!==""?"ForwardRef("+H+")":"ForwardRef"),H;case U1:return W=H.displayName||null,W!==null?W:C(H.type)||"Memo";case k1:W=H._payload,H=H._init;try{return C(H(W))}catch(P){}}return null}function q2(H){if(H===Q1)return"<>";if(typeof H==="object"&&H!==null&&H.$$typeof===k1)return"<...>";try{var W=C(H);return W?"<"+W+">":"<...>"}catch(P){return"<...>"}}function D(){var H=n.A;return H===null?null:H.getOwner()}function _(){return Error("react-stack-top-frame")}function v(H){if(m4.call(H,"key")){var W=Object.getOwnPropertyDescriptor(H,"key").get;if(W&&W.isReactWarning)return!1}return H.key!==void 0}function N1(H,W){function P(){c5||(c5=!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)",W))}P.isReactWarning=!0,Object.defineProperty(H,"key",{get:P,configurable:!0})}function W2(){var H=C(this.type);return j6[H]||(j6[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 x1(H,W,P,E,b,a,l,J1){return P=a.ref,H={$$typeof:m,type:H,key:W,props:a,_owner:b},(P!==void 0?P:null)!==null?Object.defineProperty(H,"ref",{enumerable:!1,get:W2}):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:l}),Object.defineProperty(H,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:J1}),Object.freeze&&(Object.freeze(H.props),Object.freeze(H)),H}function v1(H,W){return W=x1(H.type,W,void 0,void 0,H._owner,H.props,H._debugStack,H._debugTask),H._store&&(W._store.validated=H._store.validated),W}function t1(H){return typeof H==="object"&&H!==null&&H.$$typeof===m}function o2(H){var W={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(P){return W[P]})}function V2(H,W){return typeof H==="object"&&H!==null&&H.key!=null?(L1(H.key),o2(""+H.key)):W.toString(36)}function E3(){}function p3(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status==="string"?H.then(E3,E3):(H.status="pending",H.then(function(W){H.status==="pending"&&(H.status="fulfilled",H.value=W)},function(W){H.status==="pending"&&(H.status="rejected",H.reason=W)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function c1(H,W,P,E,b){var a=typeof H;if(a==="undefined"||a==="boolean")H=null;var l=!1;if(H===null)l=!0;else switch(a){case"bigint":case"string":case"number":l=!0;break;case"object":switch(H.$$typeof){case m:case d:l=!0;break;case k1:return l=H._init,c1(l(H._payload),W,P,E,b)}}if(l){l=H,b=b(l);var J1=E===""?"."+V2(l,0):E;return D3(b)?(P="",J1!=null&&(P=J1.replace(u4,"$&/")+"/"),c1(b,W,P,"",function(b2){return b2})):b!=null&&(t1(b)&&(b.key!=null&&(l&&l.key===b.key||L1(b.key)),P=v1(b,P+(b.key==null||l&&l.key===b.key?"":(""+b.key).replace(u4,"$&/")+"/")+J1),E!==""&&l!=null&&t1(l)&&l.key==null&&l._store&&!l._store.validated&&(P._store.validated=2),b=P),W.push(b)),1}if(l=0,J1=E===""?".":E+":",D3(H))for(var r=0;r import('./MyComponent')) + +Did you accidentally put curly braces around the import?`,W),"default"in W||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent'))`,W),W.default;throw H._result}function S(){var H=n.H;return H===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),H}function a1(){}function O1(H){if(_6===null)try{var W=("require"+Math.random()).slice(0,7);_6=(K9&&K9[W]).call(K9,"timers").setImmediate}catch(P){_6=function(E){n5===!1&&(n5=!0,typeof MessageChannel==="undefined"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var b=new MessageChannel;b.port1.onmessage=E,b.port2.postMessage(void 0)}}return _6(H)}function G1(H){return 1 ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(r,b2){b=!0,l.then(function(W3){if(e1(W,P),P===0){try{T(E),O1(function(){return k2(W3,r,b2)})}catch(I8){n.thrownErrors.push(I8)}if(0 ...)"))}),n.actQueue=null),0n.recentlyCreatedOwnerStacks++;return x1(H,b,void 0,void 0,D(),E,r?Error("react-stack-top-frame"):j9,r?p5(q2(H)):L8)},dM.createRef=function(){var H={current:null};return Object.seal(H),H},dM.forwardRef=function(H){H!=null&&H.$$typeof===U1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof H!=="function"?console.error("forwardRef requires a render function but was given %s.",H===null?"null":typeof H):H.length!==0&&H.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",H.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),H!=null&&H.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var W={$$typeof:f1,render:H},P;return Object.defineProperty(W,"displayName",{enumerable:!1,configurable:!0,get:function(){return P},set:function(E){P=E,H.name||H.displayName||(Object.defineProperty(H,"name",{value:E}),H.displayName=E)}}),W},dM.isValidElement=t1,dM.lazy=function(H){return{$$typeof:k1,_payload:{_status:-1,_result:H},_init:g2}},dM.memo=function(H,W){H==null&&console.error("memo: The first argument must be a component. Instead received: %s",H===null?"null":typeof H),W={$$typeof:U1,type:H,compare:W===void 0?null:W};var P;return Object.defineProperty(W,"displayName",{enumerable:!1,configurable:!0,get:function(){return P},set:function(E){P=E,H.name||H.displayName||(Object.defineProperty(H,"name",{value:E}),H.displayName=E)}}),W},dM.startTransition=function(H){var W=n.T,P={};n.T=P,P._updatedFibers=new Set;try{var E=H(),b=n.S;b!==null&&b(P,E),typeof E==="object"&&E!==null&&typeof E.then==="function"&&E.then(a1,o5)}catch(a){o5(a)}finally{W===null&&P._updatedFibers&&(H=P._updatedFibers.size,P._updatedFibers.clear(),10{(function(){function e(){if(E3=!1,g2){var T=lM.unstable_now();O1=T;var m=!0;try{G:{o2=!1,V2&&(V2=!1,c1(S),S=-1),t1=!0;var d=v1;try{B:{b1(T);for(x1=D1(v);x1!==null&&!(x1.expirationTime>T&&L1());){var Q1=x1.callback;if(typeof Q1==="function"){x1.callback=null,v1=x1.priorityLevel;var F=Q1(x1.expirationTime<=T);if(T=lM.unstable_now(),typeof F==="function"){x1.callback=F,b1(T),m=!0;break B}x1===D1(v)&&V1(v),b1(T)}else V1(v);x1=D1(v)}if(x1!==null)m=!0;else{var f=D1(N1);f!==null&&C(F2,f.startTime-T),m=!1}}break G}finally{x1=null,v1=d,t1=!1}m=void 0}}finally{m?G1():g2=!1}}}function F1(T,m){var d=T.length;T.push(m);G:for(;0>>1,F=T[Q1];if(0>>1;Q1W1(h,d))f1W1(o1,h)?(T[Q1]=o1,T[f1]=d,Q1=f1):(T[Q1]=h,T[z1]=d,Q1=z1);else if(f1W1(o1,d))T[Q1]=o1,T[f1]=d,Q1=f1;else break G}}return m}function W1(T,m){var d=T.sortIndex-m.sortIndex;return d!==0?d:T.id-m.id}function b1(T){for(var m=D1(N1);m!==null;){if(m.callback===null)V1(N1);else if(m.startTime<=T)V1(N1),m.sortIndex=m.expirationTime,F1(v,m);else break;m=D1(N1)}}function F2(T){if(V2=!1,b1(T),!o2)if(D1(v)!==null)o2=!0,g2||(g2=!0,G1());else{var m=D1(N1);m!==null&&C(F2,m.startTime-T)}}function L1(){return E3?!0:lM.unstable_now()-O1T||125Q1?(T.sortIndex=d,F1(N1,T),D1(v)===null&&T===D1(N1)&&(V2?(c1(S),S=-1):V2=!0,C(F2,d-Q1))):(T.sortIndex=F,F1(v,T),o2||t1||(o2=!0,g2||(g2=!0,G1()))),T},lM.unstable_shouldYield=L1,lM.unstable_wrapCallback=function(T){var m=v1;return function(){var d=v1;v1=m;try{return T.apply(this,arguments)}finally{v1=d}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ZQ=v4((sM)=>{var uX=A2(_8(),1);(function(){function e(){}function F1(D){return""+D}function D1(D,_,v){var N1=3` tag.%s',v),typeof D==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){v=_.as;var N1=V1(v,_.crossOrigin);L1.d.L(D,v,{crossOrigin:N1,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0,type:typeof _.type==="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority==="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy==="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet==="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes==="string"?_.imageSizes:void 0,media:typeof _.media==="string"?_.media:void 0})}},sM.preloadModule=function(D,_){var v="";typeof D==="string"&&D||(v+=" The `href` argument encountered was "+W1(D)+"."),_!==void 0&&typeof _!=="object"?v+=" The `options` argument encountered was "+W1(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(v+=" The `as` option encountered was "+W1(_.as)+"."),v&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `` tag.%s',v),typeof D==="string"&&(_?(v=V1(_.as,_.crossOrigin),L1.d.m(D,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:v,integrity:typeof _.integrity==="string"?_.integrity:void 0})):L1.d.m(D))},sM.requestFormReset=function(D){L1.d.r(D)},sM.unstable_batchedUpdates=function(D,_){return D(_)},sM.useFormState=function(D,_,v){return F2().useFormState(D,_,v)},sM.useFormStatus=function(){return F2().useHostTransitionStatus()},sM.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $Q=v4((_W,YQ)=>{var pM=A2(ZQ(),1);YQ.exports=pM});var zQ=v4((cM)=>{var H1=A2(XQ(),1),d5=A2(_8(),1),hX=A2($Q(),1);(function(){function e(G,B){for(G=G.memoizedState;G!==null&&0=B.length)return Z;var Y=B[X],$=z2(G)?G.slice():t({},G);return $[Y]=F1(G[Y],B,X+1,Z),$}function D1(G,B,X){if(B.length!==X.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Z=0;ZZ6?console.error("Unexpected pop."):(B!==EB[Z6]&&console.error("Unexpected Fiber popped."),G.current=VB[Z6],VB[Z6]=null,EB[Z6]=null,Z6--)}function G1(G,B,X){Z6++,VB[Z6]=G.current,EB[Z6]=X,G.current=B}function e1(G){return G===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),G}function k2(G,B){G1(C6,B,G),G1(x7,G,G),G1(T6,null,G);var X=B.nodeType;switch(X){case 9:case 11:X=X===9?"#document":"#fragment",B=(B=B.documentElement)?(B=B.namespaceURI)?r$(B):W6:W6;break;default:if(X=B.tagName,B=B.namespaceURI)B=r$(B),B=t$(B,X);else switch(X){case"svg":B=u5;break;case"math":B=H9;break;default:B=W6}}X=X.toLowerCase(),X=RZ(null,X),X={context:B,ancestorInfo:X},O1(T6,G),G1(T6,X,G)}function T(G){O1(T6,G),O1(x7,G),O1(C6,G)}function m(){return e1(T6.current)}function d(G){G.memoizedState!==null&&G1(F0,G,G);var B=e1(T6.current),X=G.type,Z=t$(B.context,X);X=RZ(B.ancestorInfo,X),Z={context:Z,ancestorInfo:X},B!==Z&&(G1(x7,G,G),G1(T6,Z,G))}function Q1(G){x7.current===G&&(O1(T6,G),O1(x7,G)),F0.current===G&&(O1(F0,G),K8._currentValue=x4)}function F(G){return typeof Symbol==="function"&&Symbol.toStringTag&&G[Symbol.toStringTag]||G.constructor.name||"Object"}function f(G){try{return z1(G),!1}catch(B){return!0}}function z1(G){return""+G}function h(G,B){if(f(G))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",B,F(G)),z1(G)}function f1(G,B){if(f(G))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",B,F(G)),z1(G)}function o1(G){if(f(G))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",F(G)),z1(G)}function P3(G){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==="undefined")return!1;var B=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(B.isDisabled)return!0;if(!B.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{R5=B.inject(G),J2=B}catch(X){console.error("React instrumentation encountered an error: %s.",X)}return B.checkDCE?!0:!1}function U1(G){if(typeof $U==="function"&&zU(G),J2&&typeof J2.setStrictMode==="function")try{J2.setStrictMode(R5,G)}catch(B){y3||(y3=!0,console.error("React instrumentation encountered an error: %s",B))}}function k1(G){x=G}function M3(){x!==null&&typeof x.markCommitStopped==="function"&&x.markCommitStopped()}function n2(G){x!==null&&typeof x.markComponentRenderStarted==="function"&&x.markComponentRenderStarted(G)}function q3(){x!==null&&typeof x.markComponentRenderStopped==="function"&&x.markComponentRenderStopped()}function l5(G){x!==null&&typeof x.markRenderStarted==="function"&&x.markRenderStarted(G)}function s5(){x!==null&&typeof x.markRenderStopped==="function"&&x.markRenderStopped()}function c3(G,B){x!==null&&typeof x.markStateUpdateScheduled==="function"&&x.markStateUpdateScheduled(G,B)}function E2(G){return G>>>=0,G===0?32:31-(RU(G)/HU|0)|0}function b4(G){if(G&1)return"SyncHydrationLane";if(G&2)return"Sync";if(G&4)return"InputContinuousHydration";if(G&8)return"InputContinuous";if(G&16)return"DefaultHydration";if(G&32)return"Default";if(G&128)return"TransitionHydration";if(G&4194048)return"Transition";if(G&62914560)return"Retry";if(G&67108864)return"SelectiveHydration";if(G&134217728)return"IdleHydration";if(G&268435456)return"Idle";if(G&536870912)return"Offscreen";if(G&1073741824)return"Deferred"}function D3(G){var B=G&42;if(B!==0)return B;switch(G&-G){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return G&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return G&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),G}}function y4(G,B,X){var Z=G.pendingLanes;if(Z===0)return 0;var Y=0,$=G.suspendedLanes,z=G.pingedLanes;G=G.warmLanes;var R=Z&134217727;return R!==0?(Z=R&~$,Z!==0?Y=D3(Z):(z&=R,z!==0?Y=D3(z):X||(X=R&~G,X!==0&&(Y=D3(X))))):(R=Z&~$,R!==0?Y=D3(R):z!==0?Y=D3(z):X||(X=Z&~G,X!==0&&(Y=D3(X)))),Y===0?0:B!==0&&B!==Y&&(B&$)===0&&($=Y&-Y,X=B&-B,$>=X||$===32&&(X&4194048)!==0)?B:Y}function n(G,B){return(G.pendingLanes&~(G.suspendedLanes&~G.pingedLanes)&B)===0}function m4(G,B){switch(G){case 1:case 2:case 4:case 8:case 64:return B+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return B+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function p5(){var G=V0;return V0<<=1,(V0&4194048)===0&&(V0=256),G}function c5(){var G=E0;return E0<<=1,(E0&62914560)===0&&(E0=4194304),G}function f4(G){for(var B=[],X=0;31>X;X++)B.push(G);return B}function j6(G,B){G.pendingLanes|=B,B!==268435456&&(G.suspendedLanes=0,G.pingedLanes=0,G.warmLanes=0)}function j9(G,B,X,Z,Y,$){var z=G.pendingLanes;G.pendingLanes=X,G.suspendedLanes=0,G.pingedLanes=0,G.warmLanes=0,G.expiredLanes&=X,G.entangledLanes&=X,G.errorRecoveryDisabledLanes&=X,G.shellSuspendCounter=0;var{entanglements:R,expirationTimes:Q,hiddenUpdates:J}=G;for(X=z&~X;0S7&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function i2(G){if(vB===void 0)try{throw Error()}catch(X){var B=X.stack.trim().match(/\n( *(at )?)/);vB=B&&B[1]||"",kz=-1)":-1z||J[$]!==O[z]){var I=` +`+J[$].replace(" at new "," at ");return G.displayName&&I.includes("")&&(I=I.replace("",G.displayName)),typeof G==="function"&&gB.set(G,I),I}while(1<=$&&0<=z);break}}}finally{SB=!1,L.H=Z,KQ(),Error.prepareStackTrace=X}return J=(J=G?G.displayName||G.name:"")?i2(J):"",typeof G==="function"&&gB.set(G,J),J}function sX(G){var B=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,G=G.stack,Error.prepareStackTrace=B,G.startsWith(`Error: react-stack-top-frame +`)&&(G=G.slice(29)),B=G.indexOf(` +`),B!==-1&&(G=G.slice(B+1)),B=G.indexOf("react_stack_bottom_frame"),B!==-1&&(B=G.lastIndexOf(` +`,B)),B!==-1)G=G.slice(0,B);else return"";return G}function OQ(G){switch(G.tag){case 26:case 27:case 5:return i2(G.type);case 16:return i2("Lazy");case 13:return i2("Suspense");case 19:return i2("SuspenseList");case 0:case 15:return _9(G.type,!1);case 11:return _9(G.type.render,!1);case 1:return _9(G.type,!0);case 31:return i2("Activity");default:return""}}function pX(G){try{var B="";do{B+=OQ(G);var X=G._debugInfo;if(X)for(var Z=X.length-1;0<=Z;Z--){var Y=X[Z];if(typeof Y.name==="string"){var $=B,z=Y.env,R=i2(Y.name+(z?" ["+z+"]":""));B=$+R}}G=G.return}while(G);return B}catch(Q){return` +Error generating stack: `+Q.message+` +`+Q.stack}}function cX(G){return(G=G?G.displayName||G.name:"")?i2(G):""}function w8(){if(s2===null)return null;var G=s2._debugOwner;return G!=null?g2(G):null}function jQ(){if(s2===null)return"";var G=s2;try{var B="";switch(G.tag===6&&(G=G.return),G.tag){case 26:case 27:case 5:B+=i2(G.type);break;case 13:B+=i2("Suspense");break;case 19:B+=i2("SuspenseList");break;case 31:B+=i2("Activity");break;case 30:case 0:case 15:case 1:G._debugOwner||B!==""||(B+=cX(G.type));break;case 11:G._debugOwner||B!==""||(B+=cX(G.type.render))}for(;G;)if(typeof G.tag==="number"){var X=G;G=X._debugOwner;var Z=X._debugStack;G&&Z&&(typeof Z!=="string"&&(X._debugStack=Z=sX(Z)),Z!==""&&(B+=` +`+Z))}else if(G.debugStack!=null){var Y=G.debugStack;(G=G.owner)&&Y&&(B+=` +`+sX(Y))}else break;var $=B}catch(z){$=` +Error generating stack: `+z.message+` +`+z.stack}return $}function y(G,B,X,Z,Y,$,z){var R=s2;L9(G);try{return G!==null&&G._debugTask?G._debugTask.run(B.bind(null,X,Z,Y,$,z)):B(X,Z,Y,$,z)}finally{L9(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function L9(G){L.getCurrentStack=G===null?null:jQ,f3=!1,s2=G}function r2(G){switch(typeof G){case"bigint":case"boolean":case"number":case"string":case"undefined":return G;case"object":return o1(G),G;default:return""}}function aX(G){var B=G.type;return(G=G.nodeName)&&G.toLowerCase()==="input"&&(B==="checkbox"||B==="radio")}function _Q(G){var B=aX(G)?"checked":"value",X=Object.getOwnPropertyDescriptor(G.constructor.prototype,B);o1(G[B]);var Z=""+G[B];if(!G.hasOwnProperty(B)&&typeof X!=="undefined"&&typeof X.get==="function"&&typeof X.set==="function"){var{get:Y,set:$}=X;return Object.defineProperty(G,B,{configurable:!0,get:function(){return Y.call(this)},set:function(z){o1(z),Z=""+z,$.call(this,z)}}),Object.defineProperty(G,B,{enumerable:X.enumerable}),{getValue:function(){return Z},setValue:function(z){o1(z),Z=""+z},stopTracking:function(){G._valueTracker=null,delete G[B]}}}}function A8(G){G._valueTracker||(G._valueTracker=_Q(G))}function oX(G){if(!G)return!1;var B=G._valueTracker;if(!B)return!0;var X=B.getValue(),Z="";return G&&(Z=aX(G)?G.checked?"true":"false":G.value),G=Z,G!==X?(B.setValue(G),!0):!1}function F8(G){if(G=G||(typeof document!=="undefined"?document:void 0),typeof G==="undefined")return null;try{return G.activeElement||G.body}catch(B){return G.body}}function t2(G){return G.replace(qU,function(B){return"\\"+B.charCodeAt(0).toString(16)+" "})}function nX(G,B){B.checked===void 0||B.defaultChecked===void 0||yz||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",w8()||"A component",B.type),yz=!0),B.value===void 0||B.defaultValue===void 0||bz||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",w8()||"A component",B.type),bz=!0)}function I9(G,B,X,Z,Y,$,z,R){if(G.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(h(z,"type"),G.type=z):G.removeAttribute("type"),B!=null)if(z==="number"){if(B===0&&G.value===""||G.value!=B)G.value=""+r2(B)}else G.value!==""+r2(B)&&(G.value=""+r2(B));else z!=="submit"&&z!=="reset"||G.removeAttribute("value");B!=null?w9(G,z,r2(B)):X!=null?w9(G,z,r2(X)):Z!=null&&G.removeAttribute("value"),Y==null&&$!=null&&(G.defaultChecked=!!$),Y!=null&&(G.checked=Y&&typeof Y!=="function"&&typeof Y!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(h(R,"name"),G.name=""+r2(R)):G.removeAttribute("name")}function iX(G,B,X,Z,Y,$,z,R){if($!=null&&typeof $!=="function"&&typeof $!=="symbol"&&typeof $!=="boolean"&&(h($,"type"),G.type=$),B!=null||X!=null){if(!($!=="submit"&&$!=="reset"||B!==void 0&&B!==null))return;X=X!=null?""+r2(X):"",B=B!=null?""+r2(B):X,R||B===G.value||(G.value=B),G.defaultValue=B}Z=Z!=null?Z:Y,Z=typeof Z!=="function"&&typeof Z!=="symbol"&&!!Z,G.checked=R?G.checked:!!Z,G.defaultChecked=!!Z,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(h(z,"name"),G.name=z)}function w9(G,B,X){B==="number"&&F8(G.ownerDocument)===G||G.defaultValue===""+X||(G.defaultValue=""+X)}function rX(G,B){B.value==null&&(typeof B.children==="object"&&B.children!==null?d5.Children.forEach(B.children,function(X){X==null||typeof X==="string"||typeof X==="number"||typeof X==="bigint"||fz||(fz=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to