@agents-shire/cli-linux-x64 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/shire +0 -0
- package/frontend/chunk-080ent60.js +0 -2
- package/frontend/chunk-08yrv2nn.js +0 -2
- package/frontend/chunk-0sevb013.js +0 -2
- package/frontend/chunk-0v5erpy0.js +0 -2
- package/frontend/chunk-19284fra.js +0 -2
- package/frontend/chunk-2kh30qex.js +0 -2
- package/frontend/chunk-4ny2qr6s.js +0 -2
- package/frontend/chunk-62c2ejc6.js +0 -2
- package/frontend/chunk-6zekv36x.js +0 -28
- package/frontend/chunk-9c81zaw2.js +0 -2
- package/frontend/chunk-9eadacms.js +0 -2
- package/frontend/chunk-9g67pqq7.js +0 -42
- package/frontend/chunk-abx95kyf.js +0 -2
- package/frontend/chunk-bdx9vjnz.js +0 -1
- package/frontend/chunk-bkfyhghz.js +0 -1
- package/frontend/chunk-bs8nhy4h.js +0 -2
- package/frontend/chunk-dpy2bnvw.js +0 -2
- package/frontend/chunk-gxhame5n.js +0 -2
- package/frontend/chunk-j7zegcep.js +0 -1
- package/frontend/chunk-jenng4z6.js +0 -12
- package/frontend/chunk-kwqbxj7m.js +0 -1
- package/frontend/chunk-p8qycd26.js +0 -30
- package/frontend/chunk-q1tqw02v.js +0 -1
- package/frontend/chunk-r19vjw47.js +0 -2
- package/frontend/chunk-sxzad3y5.js +0 -2
- package/frontend/chunk-vp3by99k.js +0 -2
- package/frontend/chunk-w24pb2qv.js +0 -2
- package/frontend/chunk-z92gr3sp.js +0 -3
- package/frontend/chunk-zkc6t7cc.js +0 -1
- package/frontend/index.html +0 -16
- package/frontend/main.js +0 -214
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var G8=Object.create;var{getPrototypeOf:A8,defineProperty:w$,getOwnPropertyNames:W8}=Object;var z8=Object.prototype.hasOwnProperty;function B8($){return this[$]}var V8,D8,i=($,H,X)=>{var Y=$!=null&&typeof $==="object";if(Y){var Z=H?V8??=new WeakMap:D8??=new WeakMap,J=Z.get($);if(J)return J}X=$!=null?G8(A8($)):{};let A=H||!$||!$.__esModule?w$(X,"default",{value:$,enumerable:!0}):X;for(let z of W8($))if(!z8.call(A,z))w$(A,z,{get:B8.bind($,z),enumerable:!0});if(Y)Z.set($,A);return A};var F1=($,H)=>()=>(H||$((H={exports:{}}).exports,H),H.exports);var U8=($)=>$;function w8($,H){this[$]=U8.bind(null,H)}var c7=($,H)=>{for(var X in H)w$($,X,{get:H[X],enumerable:!0,configurable:!0,set:w8.bind(H,X)})};var s7=(($)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy($,{get:(H,X)=>(typeof require<"u"?require:H)[X]}):$)(function($){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+$+'" is not supported')});var X0=F1((E8,g1)=>{(function(){function $(G,w){Object.defineProperty(Y.prototype,G,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",w[0],w[1])}})}function H(G){if(G===null||typeof G!=="object")return null;return G=T1&&G[T1]||G["@@iterator"],typeof G==="function"?G:null}function X(G,w){G=(G=G.constructor)&&(G.displayName||G.name)||"ReactClass";var K=G+"."+w;c0[K]||(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,G),c0[K]=!0)}function Y(G,w,K){this.props=G,this.context=w,this.refs=h0,this.updater=K||s0}function Z(){}function J(G,w,K){this.props=G,this.context=w,this.refs=h0,this.updater=K||s0}function A(){}function z(G){return""+G}function D(G){try{z(G);var w=!1}catch(v){w=!0}if(w){w=console;var K=w.error,x=typeof Symbol==="function"&&Symbol.toStringTag&&G[Symbol.toStringTag]||G.constructor.name||"Object";return K.call(w,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",x),z(G)}}function U(G){if(G==null)return null;if(typeof G==="function")return G.$$typeof===H8?null:G.displayName||G.name||null;if(typeof G==="string")return G;switch(G){case N0:return"Fragment";case N:return"Profiler";case B:return"StrictMode";case H0:return"Suspense";case k:return"SuspenseList";case Z0:return"Activity"}if(typeof G==="object")switch(typeof G.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),G.$$typeof){case R0:return"Portal";case f:return G.displayName||"Context";case j:return(G._context.displayName||"Context")+".Consumer";case U0:var w=G.render;return G=G.displayName,G||(G=w.displayName||w.name||"",G=G!==""?"ForwardRef("+G+")":"ForwardRef"),G;case W0:return w=G.displayName||null,w!==null?w:U(G.type)||"Memo";case K0:w=G._payload,G=G._init;try{return U(G(w))}catch(K){}}return null}function V(G){if(G===N0)return"<>";if(typeof G==="object"&&G!==null&&G.$$typeof===K0)return"<...>";try{var w=U(G);return w?"<"+w+">":"<...>"}catch(K){return"<...>"}}function W(){var G=d.A;return G===null?null:G.getOwner()}function E(){return Error("react-stack-top-frame")}function F(G){if(v1.call(G,"key")){var w=Object.getOwnPropertyDescriptor(G,"key").get;if(w&&w.isReactWarning)return!1}return G.key!==void 0}function L(G,w){function K(){j2||(j2=!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))}K.isReactWarning=!0,Object.defineProperty(G,"key",{get:K,configurable:!0})}function T(){var G=U(this.type);return b2[G]||(b2[G]=!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.")),G=this.props.ref,G!==void 0?G:null}function Q(G,w,K,x,v,p){var h=K.ref;return G={$$typeof:T0,type:G,key:w,props:K,_owner:x},(h!==void 0?h:null)!==null?Object.defineProperty(G,"ref",{enumerable:!1,get:T}):Object.defineProperty(G,"ref",{enumerable:!1,value:null}),G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(G,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(G,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:v}),Object.defineProperty(G,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:p}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G}function P(G,w){return w=Q(G.type,w,G.props,G._owner,G._debugStack,G._debugTask),G._store&&(w._store.validated=G._store.validated),w}function I(G){S(G)?G._store&&(G._store.validated=1):typeof G==="object"&&G!==null&&G.$$typeof===K0&&(G._payload.status==="fulfilled"?S(G._payload.value)&&G._payload.value._store&&(G._payload.value._store.validated=1):G._store&&(G._store.validated=1))}function S(G){return typeof G==="object"&&G!==null&&G.$$typeof===T0}function c(G){var w={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(K){return w[K]})}function m(G,w){return typeof G==="object"&&G!==null&&G.key!=null?(D(G.key),c(""+G.key)):w.toString(36)}function $0(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status==="string"?G.then(A,A):(G.status="pending",G.then(function(w){G.status==="pending"&&(G.status="fulfilled",G.value=w)},function(w){G.status==="pending"&&(G.status="rejected",G.reason=w)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function s(G,w,K,x,v){var p=typeof G;if(p==="undefined"||p==="boolean")G=null;var h=!1;if(G===null)h=!0;else switch(p){case"bigint":case"string":case"number":h=!0;break;case"object":switch(G.$$typeof){case T0:case R0:h=!0;break;case K0:return h=G._init,s(h(G._payload),w,K,x,v)}}if(h){h=G,v=v(h);var e=x===""?"."+m(h,0):x;return C2(v)?(K="",e!=null&&(K=e.replace(h2,"$&/")+"/"),s(v,w,K,"",function(m0){return m0})):v!=null&&(S(v)&&(v.key!=null&&(h&&h.key===v.key||D(v.key)),K=P(v,K+(v.key==null||h&&h.key===v.key?"":(""+v.key).replace(h2,"$&/")+"/")+e),x!==""&&h!=null&&S(h)&&h.key==null&&h._store&&!h._store.validated&&(K._store.validated=2),v=K),w.push(v)),1}if(h=0,e=x===""?".":x+":",C2(G))for(var l=0;l<G.length;l++)x=G[l],p=e+m(x,l),h+=s(x,w,K,p,v);else if(l=H(G),typeof l==="function")for(l===G.entries&&(g2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),g2=!0),G=l.call(G),l=0;!(x=G.next()).done;)x=x.value,p=e+m(x,l++),h+=s(x,w,K,p,v);else if(p==="object"){if(typeof G.then==="function")return s($0(G),w,K,x,v);throw w=String(G),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return h}function _(G,w,K){if(G==null)return G;var x=[],v=0;return s(G,x,"","",function(p){return w.call(K,p,v++)}),x}function r(G){if(G._status===-1){var w=G._ioInfo;w!=null&&(w.start=w.end=performance.now()),w=G._result;var K=w();if(K.then(function(v){if(G._status===0||G._status===-1){G._status=1,G._result=v;var p=G._ioInfo;p!=null&&(p.end=performance.now()),K.status===void 0&&(K.status="fulfilled",K.value=v)}},function(v){if(G._status===0||G._status===-1){G._status=2,G._result=v;var p=G._ioInfo;p!=null&&(p.end=performance.now()),K.status===void 0&&(K.status="rejected",K.reason=v)}}),w=G._ioInfo,w!=null){w.value=K;var x=K.displayName;typeof x==="string"&&(w.name=x)}G._status===-1&&(G._status=0,G._result=K)}if(G._status===1)return w=G._result,w===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
-
|
|
3
|
-
Your code should look like:
|
|
4
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
-
|
|
6
|
-
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
|
|
7
|
-
|
|
8
|
-
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,w),w.default;throw G._result}function u(){var G=d.H;return G===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:
|
|
10
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
-
2. You might be breaking the Rules of Hooks
|
|
12
|
-
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),G}function Q0(){d.asyncTransitions--}function A0(G){if(j1===null)try{var w=("require"+Math.random()).slice(0,7);j1=(g1&&g1[w]).call(g1,"timers").setImmediate}catch(K){j1=function(x){y2===!1&&(y2=!0,typeof MessageChannel>"u"&&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 v=new MessageChannel;v.port1.onmessage=x,v.port2.postMessage(void 0)}}return j1(G)}function V0(G){return 1<G.length&&typeof AggregateError==="function"?AggregateError(G):G[0]}function E0(G,w){w!==f1-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),f1=w}function Y0(G,w,K){var x=d.actQueue;if(x!==null)if(x.length!==0)try{B0(x),A0(function(){return Y0(G,w,K)});return}catch(v){d.thrownErrors.push(v)}else d.actQueue=null;0<d.thrownErrors.length?(x=V0(d.thrownErrors),d.thrownErrors.length=0,K(x)):w(G)}function B0(G){if(!U$){U$=!0;var w=0;try{for(;w<G.length;w++){var K=G[w];do{d.didUsePromise=!1;var x=K(!1);if(x!==null){if(d.didUsePromise){G[w]=K,G.splice(0,w);return}K=x}else break}while(1)}G.length=0}catch(v){G.splice(0,w+1),d.thrownErrors.push(v)}finally{U$=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var T0=Symbol.for("react.transitional.element"),R0=Symbol.for("react.portal"),N0=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),f=Symbol.for("react.context"),U0=Symbol.for("react.forward_ref"),H0=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),W0=Symbol.for("react.memo"),K0=Symbol.for("react.lazy"),Z0=Symbol.for("react.activity"),T1=Symbol.iterator,c0={},s0={isMounted:function(){return!1},enqueueForceUpdate:function(G){X(G,"forceUpdate")},enqueueReplaceState:function(G){X(G,"replaceState")},enqueueSetState:function(G){X(G,"setState")}},H1=Object.assign,h0={};Object.freeze(h0),Y.prototype.isReactComponent={},Y.prototype.setState=function(G,w){if(typeof G!=="object"&&typeof G!=="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,w,"setState")},Y.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};var P0={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(K1 in P0)P0.hasOwnProperty(K1)&&$(K1,P0[K1]);Z.prototype=Y.prototype,P0=J.prototype=new Z,P0.constructor=J,H1(P0,Y.prototype),P0.isPureReactComponent=!0;var C2=Array.isArray,H8=Symbol.for("react.client.reference"),d={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},v1=Object.prototype.hasOwnProperty,v2=console.createTask?console.createTask:function(){return null};P0={react_stack_bottom_frame:function(G){return G()}};var j2,f2,b2={},X8=P0.react_stack_bottom_frame.bind(P0,E)(),Y8=v2(V(E)),g2=!1,h2=/\/+/g,m2=typeof reportError==="function"?reportError:function(G){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof G==="object"&&G!==null&&typeof G.message==="string"?String(G.message):String(G),error:G});if(!window.dispatchEvent(w))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",G);return}console.error(G)},y2=!1,j1=null,f1=0,b1=!1,U$=!1,d2=typeof queueMicrotask==="function"?function(G){queueMicrotask(function(){return queueMicrotask(G)})}:A0;P0=Object.freeze({__proto__:null,c:function(G){return u().useMemoCache(G)}});var K1={map:_,forEach:function(G,w,K){_(G,function(){w.apply(this,arguments)},K)},count:function(G){var w=0;return _(G,function(){w++}),w},toArray:function(G){return _(G,function(w){return w})||[]},only:function(G){if(!S(G))throw Error("React.Children.only expected to receive a single React element child.");return G}};E8.Activity=Z0,E8.Children=K1,E8.Component=Y,E8.Fragment=N0,E8.Profiler=N,E8.PureComponent=J,E8.StrictMode=B,E8.Suspense=H0,E8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,E8.__COMPILER_RUNTIME=P0,E8.act=function(G){var w=d.actQueue,K=f1;f1++;var x=d.actQueue=w!==null?w:[],v=!1;try{var p=G()}catch(l){d.thrownErrors.push(l)}if(0<d.thrownErrors.length)throw E0(w,K),G=V0(d.thrownErrors),d.thrownErrors.length=0,G;if(p!==null&&typeof p==="object"&&typeof p.then==="function"){var h=p;return d2(function(){v||b1||(b1=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(l,m0){v=!0,h.then(function(X1){if(E0(w,K),K===0){try{B0(x),A0(function(){return Y0(X1,l,m0)})}catch(J8){d.thrownErrors.push(J8)}if(0<d.thrownErrors.length){var Z8=V0(d.thrownErrors);d.thrownErrors.length=0,m0(Z8)}}else l(X1)},function(X1){E0(w,K),0<d.thrownErrors.length?(X1=V0(d.thrownErrors),d.thrownErrors.length=0,m0(X1)):m0(X1)})}}}var e=p;if(E0(w,K),K===0&&(B0(x),x.length!==0&&d2(function(){v||b1||(b1=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),d.actQueue=null),0<d.thrownErrors.length)throw G=V0(d.thrownErrors),d.thrownErrors.length=0,G;return{then:function(l,m0){v=!0,K===0?(d.actQueue=x,A0(function(){return Y0(e,l,m0)})):l(e)}}},E8.cache=function(G){return function(){return G.apply(null,arguments)}},E8.cacheSignal=function(){return null},E8.captureOwnerStack=function(){var G=d.getCurrentStack;return G===null?null:G()},E8.cloneElement=function(G,w,K){if(G===null||G===void 0)throw Error("The argument must be a React element, but you passed "+G+".");var x=H1({},G.props),v=G.key,p=G._owner;if(w!=null){var h;$:{if(v1.call(w,"ref")&&(h=Object.getOwnPropertyDescriptor(w,"ref").get)&&h.isReactWarning){h=!1;break $}h=w.ref!==void 0}h&&(p=W()),F(w)&&(D(w.key),v=""+w.key);for(e in w)!v1.call(w,e)||e==="key"||e==="__self"||e==="__source"||e==="ref"&&w.ref===void 0||(x[e]=w[e])}var e=arguments.length-2;if(e===1)x.children=K;else if(1<e){h=Array(e);for(var l=0;l<e;l++)h[l]=arguments[l+2];x.children=h}x=Q(G.type,v,x,p,G._debugStack,G._debugTask);for(v=2;v<arguments.length;v++)I(arguments[v]);return x},E8.createContext=function(G){return G={$$typeof:f,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null},G.Provider=G,G.Consumer={$$typeof:j,_context:G},G._currentRenderer=null,G._currentRenderer2=null,G},E8.createElement=function(G,w,K){for(var x=2;x<arguments.length;x++)I(arguments[x]);x={};var v=null;if(w!=null)for(l in f2||!("__self"in w)||"key"in w||(f2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),F(w)&&(D(w.key),v=""+w.key),w)v1.call(w,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(x[l]=w[l]);var p=arguments.length-2;if(p===1)x.children=K;else if(1<p){for(var h=Array(p),e=0;e<p;e++)h[e]=arguments[e+2];Object.freeze&&Object.freeze(h),x.children=h}if(G&&G.defaultProps)for(l in p=G.defaultProps,p)x[l]===void 0&&(x[l]=p[l]);v&&L(x,typeof G==="function"?G.displayName||G.name||"Unknown":G);var l=1e4>d.recentlyCreatedOwnerStacks++;return Q(G,v,x,W(),l?Error("react-stack-top-frame"):X8,l?v2(V(G)):Y8)},E8.createRef=function(){var G={current:null};return Object.seal(G),G},E8.forwardRef=function(G){G!=null&&G.$$typeof===W0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof G!=="function"?console.error("forwardRef requires a render function but was given %s.",G===null?"null":typeof G):G.length!==0&&G.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",G.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),G!=null&&G.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var w={$$typeof:U0,render:G},K;return Object.defineProperty(w,"displayName",{enumerable:!1,configurable:!0,get:function(){return K},set:function(x){K=x,G.name||G.displayName||(Object.defineProperty(G,"name",{value:x}),G.displayName=x)}}),w},E8.isValidElement=S,E8.lazy=function(G){G={_status:-1,_result:G};var w={$$typeof:K0,_payload:G,_init:r},K={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return G._ioInfo=K,w._debugInfo=[{awaited:K}],w},E8.memo=function(G,w){G==null&&console.error("memo: The first argument must be a component. Instead received: %s",G===null?"null":typeof G),w={$$typeof:W0,type:G,compare:w===void 0?null:w};var K;return Object.defineProperty(w,"displayName",{enumerable:!1,configurable:!0,get:function(){return K},set:function(x){K=x,G.name||G.displayName||(Object.defineProperty(G,"name",{value:x}),G.displayName=x)}}),w},E8.startTransition=function(G){var w=d.T,K={};K._updatedFibers=new Set,d.T=K;try{var x=G(),v=d.S;v!==null&&v(K,x),typeof x==="object"&&x!==null&&typeof x.then==="function"&&(d.asyncTransitions++,x.then(Q0,Q0),x.then(A,m2))}catch(p){m2(p)}finally{w===null&&K._updatedFibers&&(G=K._updatedFibers.size,K._updatedFibers.clear(),10<G&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),w!==null&&K.types!==null&&(w.types!==null&&w.types!==K.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),w.types=K.types),d.T=w}},E8.unstable_useCacheRefresh=function(){return u().useCacheRefresh()},E8.use=function(G){return u().use(G)},E8.useActionState=function(G,w,K){return u().useActionState(G,w,K)},E8.useCallback=function(G,w){return u().useCallback(G,w)},E8.useContext=function(G){var w=u();return G.$$typeof===j&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),w.useContext(G)},E8.useDebugValue=function(G,w){return u().useDebugValue(G,w)},E8.useDeferredValue=function(G,w){return u().useDeferredValue(G,w)},E8.useEffect=function(G,w){return G==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),u().useEffect(G,w)},E8.useEffectEvent=function(G){return u().useEffectEvent(G)},E8.useId=function(){return u().useId()},E8.useImperativeHandle=function(G,w,K){return u().useImperativeHandle(G,w,K)},E8.useInsertionEffect=function(G,w){return G==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),u().useInsertionEffect(G,w)},E8.useLayoutEffect=function(G,w){return G==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),u().useLayoutEffect(G,w)},E8.useMemo=function(G,w){return u().useMemo(G,w)},E8.useOptimistic=function(G,w){return u().useOptimistic(G,w)},E8.useReducer=function(G,w,K){return u().useReducer(G,w,K)},E8.useRef=function(G){return u().useRef(G)},E8.useState=function(G){return u().useState(G)},E8.useSyncExternalStore=function(G,w,K){return u().useSyncExternalStore(G,w,K)},E8.useTransition=function(){return u().useTransition()},E8.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var e1=F1((t5)=>{var o0=i(X0());(function(){function $(B){if(B==null)return null;if(typeof B==="function")return B.$$typeof===u?null:B.displayName||B.name||null;if(typeof B==="string")return B;switch(B){case T:return"Fragment";case P:return"Profiler";case Q:return"StrictMode";case m:return"Suspense";case $0:return"SuspenseList";case r:return"Activity"}if(typeof B==="object")switch(typeof B.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),B.$$typeof){case L:return"Portal";case S:return B.displayName||"Context";case I:return(B._context.displayName||"Context")+".Consumer";case c:var N=B.render;return B=B.displayName,B||(B=N.displayName||N.name||"",B=B!==""?"ForwardRef("+B+")":"ForwardRef"),B;case s:return N=B.displayName||null,N!==null?N:$(B.type)||"Memo";case _:N=B._payload,B=B._init;try{return $(B(N))}catch(j){}}return null}function H(B){return""+B}function X(B){try{H(B);var N=!1}catch(U0){N=!0}if(N){N=console;var j=N.error,f=typeof Symbol==="function"&&Symbol.toStringTag&&B[Symbol.toStringTag]||B.constructor.name||"Object";return j.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",f),H(B)}}function Y(B){if(B===T)return"<>";if(typeof B==="object"&&B!==null&&B.$$typeof===_)return"<...>";try{var N=$(B);return N?"<"+N+">":"<...>"}catch(j){return"<...>"}}function Z(){var B=Q0.A;return B===null?null:B.getOwner()}function J(){return Error("react-stack-top-frame")}function A(B){if(A0.call(B,"key")){var N=Object.getOwnPropertyDescriptor(B,"key").get;if(N&&N.isReactWarning)return!1}return B.key!==void 0}function z(B,N){function j(){Y0||(Y0=!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)",N))}j.isReactWarning=!0,Object.defineProperty(B,"key",{get:j,configurable:!0})}function D(){var B=$(this.type);return B0[B]||(B0[B]=!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.")),B=this.props.ref,B!==void 0?B:null}function U(B,N,j,f,U0,H0){var k=j.ref;return B={$$typeof:F,type:B,key:N,props:j,_owner:f},(k!==void 0?k:null)!==null?Object.defineProperty(B,"ref",{enumerable:!1,get:D}):Object.defineProperty(B,"ref",{enumerable:!1,value:null}),B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(B,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(B,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:U0}),Object.defineProperty(B,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H0}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B}function V(B,N,j,f,U0,H0){var k=N.children;if(k!==void 0)if(f)if(V0(k)){for(f=0;f<k.length;f++)W(k[f]);Object.freeze&&Object.freeze(k)}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 W(k);if(A0.call(N,"key")){k=$(B);var W0=Object.keys(N).filter(function(Z0){return Z0!=="key"});f=0<W0.length?"{key: someKey, "+W0.join(": ..., ")+": ...}":"{key: someKey}",N0[k+f]||(W0=0<W0.length?"{"+W0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
14
|
-
let props = %s;
|
|
15
|
-
<%s {...props} />
|
|
16
|
-
React keys must be passed directly to JSX without using spread:
|
|
17
|
-
let props = %s;
|
|
18
|
-
<%s key={someKey} {...props} />`,f,k,W0,k),N0[k+f]=!0)}if(k=null,j!==void 0&&(X(j),k=""+j),A(N)&&(X(N.key),k=""+N.key),"key"in N){j={};for(var K0 in N)K0!=="key"&&(j[K0]=N[K0])}else j=N;return k&&z(j,typeof B==="function"?B.displayName||B.name||"Unknown":B),U(B,k,j,Z(),U0,H0)}function W(B){E(B)?B._store&&(B._store.validated=1):typeof B==="object"&&B!==null&&B.$$typeof===_&&(B._payload.status==="fulfilled"?E(B._payload.value)&&B._payload.value._store&&(B._payload.value._store.validated=1):B._store&&(B._store.validated=1))}function E(B){return typeof B==="object"&&B!==null&&B.$$typeof===F}var F=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),S=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),$0=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),r=Symbol.for("react.activity"),u=Symbol.for("react.client.reference"),Q0=o0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A0=Object.prototype.hasOwnProperty,V0=Array.isArray,E0=console.createTask?console.createTask:function(){return null};o0={react_stack_bottom_frame:function(B){return B()}};var Y0,B0={},T0=o0.react_stack_bottom_frame.bind(o0,J)(),R0=E0(Y(J)),N0={};t5.Fragment=T,t5.jsx=function(B,N,j){var f=1e4>Q0.recentlyCreatedOwnerStacks++;return V(B,N,j,!1,f?Error("react-stack-top-frame"):T0,f?E0(Y(B)):R0)},t5.jsxs=function(B,N,j){var f=1e4>Q0.recentlyCreatedOwnerStacks++;return V(B,N,j,!0,f?Error("react-stack-top-frame"):T0,f?E0(Y(B)):R0)}})()});var S1=F1((Y9)=>{var t0=i(X0());(function(){function $(B){if(B==null)return null;if(typeof B==="function")return B.$$typeof===u?null:B.displayName||B.name||null;if(typeof B==="string")return B;switch(B){case T:return"Fragment";case P:return"Profiler";case Q:return"StrictMode";case m:return"Suspense";case $0:return"SuspenseList";case r:return"Activity"}if(typeof B==="object")switch(typeof B.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),B.$$typeof){case L:return"Portal";case S:return B.displayName||"Context";case I:return(B._context.displayName||"Context")+".Consumer";case c:var N=B.render;return B=B.displayName,B||(B=N.displayName||N.name||"",B=B!==""?"ForwardRef("+B+")":"ForwardRef"),B;case s:return N=B.displayName||null,N!==null?N:$(B.type)||"Memo";case _:N=B._payload,B=B._init;try{return $(B(N))}catch(j){}}return null}function H(B){return""+B}function X(B){try{H(B);var N=!1}catch(U0){N=!0}if(N){N=console;var j=N.error,f=typeof Symbol==="function"&&Symbol.toStringTag&&B[Symbol.toStringTag]||B.constructor.name||"Object";return j.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",f),H(B)}}function Y(B){if(B===T)return"<>";if(typeof B==="object"&&B!==null&&B.$$typeof===_)return"<...>";try{var N=$(B);return N?"<"+N+">":"<...>"}catch(j){return"<...>"}}function Z(){var B=Q0.A;return B===null?null:B.getOwner()}function J(){return Error("react-stack-top-frame")}function A(B){if(A0.call(B,"key")){var N=Object.getOwnPropertyDescriptor(B,"key").get;if(N&&N.isReactWarning)return!1}return B.key!==void 0}function z(B,N){function j(){Y0||(Y0=!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)",N))}j.isReactWarning=!0,Object.defineProperty(B,"key",{get:j,configurable:!0})}function D(){var B=$(this.type);return B0[B]||(B0[B]=!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.")),B=this.props.ref,B!==void 0?B:null}function U(B,N,j,f,U0,H0){var k=j.ref;return B={$$typeof:F,type:B,key:N,props:j,_owner:f},(k!==void 0?k:null)!==null?Object.defineProperty(B,"ref",{enumerable:!1,get:D}):Object.defineProperty(B,"ref",{enumerable:!1,value:null}),B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(B,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(B,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:U0}),Object.defineProperty(B,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H0}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B}function V(B,N,j,f,U0,H0){var k=N.children;if(k!==void 0)if(f)if(V0(k)){for(f=0;f<k.length;f++)W(k[f]);Object.freeze&&Object.freeze(k)}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 W(k);if(A0.call(N,"key")){k=$(B);var W0=Object.keys(N).filter(function(Z0){return Z0!=="key"});f=0<W0.length?"{key: someKey, "+W0.join(": ..., ")+": ...}":"{key: someKey}",N0[k+f]||(W0=0<W0.length?"{"+W0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
19
|
-
let props = %s;
|
|
20
|
-
<%s {...props} />
|
|
21
|
-
React keys must be passed directly to JSX without using spread:
|
|
22
|
-
let props = %s;
|
|
23
|
-
<%s key={someKey} {...props} />`,f,k,W0,k),N0[k+f]=!0)}if(k=null,j!==void 0&&(X(j),k=""+j),A(N)&&(X(N.key),k=""+N.key),"key"in N){j={};for(var K0 in N)K0!=="key"&&(j[K0]=N[K0])}else j=N;return k&&z(j,typeof B==="function"?B.displayName||B.name||"Unknown":B),U(B,k,j,Z(),U0,H0)}function W(B){E(B)?B._store&&(B._store.validated=1):typeof B==="object"&&B!==null&&B.$$typeof===_&&(B._payload.status==="fulfilled"?E(B._payload.value)&&B._payload.value._store&&(B._payload.value._store.validated=1):B._store&&(B._store.validated=1))}function E(B){return typeof B==="object"&&B!==null&&B.$$typeof===F}var F=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),S=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),$0=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),r=Symbol.for("react.activity"),u=Symbol.for("react.client.reference"),Q0=t0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A0=Object.prototype.hasOwnProperty,V0=Array.isArray,E0=console.createTask?console.createTask:function(){return null};t0={react_stack_bottom_frame:function(B){return B()}};var Y0,B0={},T0=t0.react_stack_bottom_frame.bind(t0,J)(),R0=E0(Y(J)),N0={};Y9.Fragment=T,Y9.jsxDEV=function(B,N,j,f){var U0=1e4>Q0.recentlyCreatedOwnerStacks++;return V(B,N,j,f,U0?Error("react-stack-top-frame"):T0,U0?E0(Y(B)):R0)}})()});var l6=F1((C7)=>{var S2=i(X0());(function(){function $(){}function H(V){return""+V}function X(V,W,E){var F=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{H(F);var L=!1}catch(T){L=!0}return L&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&F[Symbol.toStringTag]||F.constructor.name||"Object"),H(F)),{$$typeof:D,key:F==null?null:""+F,children:V,containerInfo:W,implementation:E}}function Y(V,W){if(V==="font")return"";if(typeof W==="string")return W==="use-credentials"?W:""}function Z(V){return V===null?"`null`":V===void 0?"`undefined`":V===""?"an empty string":'something with type "'+typeof V+'"'}function J(V){return V===null?"`null`":V===void 0?"`undefined`":V===""?"an empty string":typeof V==="string"?JSON.stringify(V):typeof V==="number"?"`"+V+"`":'something with type "'+typeof V+'"'}function A(){var V=U.H;return V===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:
|
|
24
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
25
|
-
2. You might be breaking the Rules of Hooks
|
|
26
|
-
3. You might have more than one copy of React in the same app
|
|
27
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),V}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var z={d:{f:$,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:$,C:$,L:$,m:$,X:$,S:$,M:$},p:0,findDOMNode:null},D=Symbol.for("react.portal"),U=S2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),C7.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,C7.createPortal=function(V,W){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!W||W.nodeType!==1&&W.nodeType!==9&&W.nodeType!==11)throw Error("Target container is not a DOM element.");return X(V,W,null,E)},C7.flushSync=function(V){var W=U.T,E=z.p;try{if(U.T=null,z.p=2,V)return V()}finally{U.T=W,z.p=E,z.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},C7.preconnect=function(V,W){typeof V==="string"&&V?W!=null&&typeof W!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",J(W)):W!=null&&typeof W.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",Z(W.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Z(V)),typeof V==="string"&&(W?(W=W.crossOrigin,W=typeof W==="string"?W==="use-credentials"?W:"":void 0):W=null,z.d.C(V,W))},C7.prefetchDNS=function(V){if(typeof V!=="string"||!V)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Z(V));else if(1<arguments.length){var W=arguments[1];typeof W==="object"&&W.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",J(W)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",J(W))}typeof V==="string"&&z.d.D(V)},C7.preinit=function(V,W){if(typeof V==="string"&&V?W==null||typeof W!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",J(W)):W.as!=="style"&&W.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',J(W.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Z(V)),typeof V==="string"&&W&&typeof W.as==="string"){var E=W.as,F=Y(E,W.crossOrigin),L=typeof W.integrity==="string"?W.integrity:void 0,T=typeof W.fetchPriority==="string"?W.fetchPriority:void 0;E==="style"?z.d.S(V,typeof W.precedence==="string"?W.precedence:void 0,{crossOrigin:F,integrity:L,fetchPriority:T}):E==="script"&&z.d.X(V,{crossOrigin:F,integrity:L,fetchPriority:T,nonce:typeof W.nonce==="string"?W.nonce:void 0})}},C7.preinitModule=function(V,W){var E="";if(typeof V==="string"&&V||(E+=" The `href` argument encountered was "+Z(V)+"."),W!==void 0&&typeof W!=="object"?E+=" The `options` argument encountered was "+Z(W)+".":W&&("as"in W)&&W.as!=="script"&&(E+=" The `as` option encountered was "+J(W.as)+"."),E)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",E);else switch(E=W&&typeof W.as==="string"?W.as:"script",E){case"script":break;default:E=J(E),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',E,V)}if(typeof V==="string")if(typeof W==="object"&&W!==null){if(W.as==null||W.as==="script")E=Y(W.as,W.crossOrigin),z.d.M(V,{crossOrigin:E,integrity:typeof W.integrity==="string"?W.integrity:void 0,nonce:typeof W.nonce==="string"?W.nonce:void 0})}else W==null&&z.d.M(V)},C7.preload=function(V,W){var E="";if(typeof V==="string"&&V||(E+=" The `href` argument encountered was "+Z(V)+"."),W==null||typeof W!=="object"?E+=" The `options` argument encountered was "+Z(W)+".":typeof W.as==="string"&&W.as||(E+=" The `as` option encountered was "+Z(W.as)+"."),E&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',E),typeof V==="string"&&typeof W==="object"&&W!==null&&typeof W.as==="string"){E=W.as;var F=Y(E,W.crossOrigin);z.d.L(V,E,{crossOrigin:F,integrity:typeof W.integrity==="string"?W.integrity:void 0,nonce:typeof W.nonce==="string"?W.nonce:void 0,type:typeof W.type==="string"?W.type:void 0,fetchPriority:typeof W.fetchPriority==="string"?W.fetchPriority:void 0,referrerPolicy:typeof W.referrerPolicy==="string"?W.referrerPolicy:void 0,imageSrcSet:typeof W.imageSrcSet==="string"?W.imageSrcSet:void 0,imageSizes:typeof W.imageSizes==="string"?W.imageSizes:void 0,media:typeof W.media==="string"?W.media:void 0})}},C7.preloadModule=function(V,W){var E="";typeof V==="string"&&V||(E+=" The `href` argument encountered was "+Z(V)+"."),W!==void 0&&typeof W!=="object"?E+=" The `options` argument encountered was "+Z(W)+".":W&&("as"in W)&&typeof W.as!=="string"&&(E+=" The `as` option encountered was "+Z(W.as)+"."),E&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',E),typeof V==="string"&&(W?(E=Y(W.as,W.crossOrigin),z.d.m(V,{as:typeof W.as==="string"&&W.as!=="script"?W.as:void 0,crossOrigin:E,integrity:typeof W.integrity==="string"?W.integrity:void 0})):z.d.m(V))},C7.requestFormReset=function(V){z.d.r(V)},C7.unstable_batchedUpdates=function(V,W){return V(W)},C7.useFormState=function(V,W,E){return A().useFormState(V,W,E)},C7.useFormStatus=function(){return A().useHostTransitionStatus()},C7.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var j7=F1((mK1,c6)=>{var v7=i(l6());c6.exports=v7});var x0=i(X0(),1),R=i(X0(),1),G0=i(X0(),1),C$=i(X0(),1),L4=i(X0(),1),n=i(X0(),1),R5=i(X0(),1),I5=i(X0(),1),S5=i(X0(),1),C=i(X0(),1),f4=i(X0(),1);var u2="popstate";function p2($){return typeof $==="object"&&$!=null&&"pathname"in $&&"search"in $&&"hash"in $&&"state"in $&&"key"in $}function a2($={}){function H(Y,Z){let J=Z.state?.masked,{pathname:A,search:z,hash:D}=J||Y.location;return K$("",{pathname:A,search:z,hash:D},Z.state&&Z.state.usr||null,Z.state&&Z.state.key||"default",J?{pathname:Y.location.pathname,search:Y.location.search,hash:Y.location.hash}:void 0)}function X(Y,Z){return typeof Z==="string"?Z:Y1(Z)}return T8(H,X,null,$)}function J0($,H){if($===!1||$===null||typeof $>"u")throw Error(H)}function O0($,H){if(!$){if(typeof console<"u")console.warn(H);try{throw Error(H)}catch(X){}}}function Q8(){return Math.random().toString(36).substring(2,10)}function l2($,H){return{usr:$.state,key:$.key,idx:H,masked:$.unstable_mask?{pathname:$.pathname,search:$.search,hash:$.hash}:void 0}}function K$($,H,X=null,Y,Z){return{pathname:typeof $==="string"?$:$.pathname,search:"",hash:"",...typeof H==="string"?i0(H):H,state:X,key:H&&H.key||Y||Q8(),unstable_mask:Z}}function Y1({pathname:$="/",search:H="",hash:X=""}){if(H&&H!=="?")$+=H.charAt(0)==="?"?H:"?"+H;if(X&&X!=="#")$+=X.charAt(0)==="#"?X:"#"+X;return $}function i0($){let H={};if($){let X=$.indexOf("#");if(X>=0)H.hash=$.substring(X),$=$.substring(0,X);let Y=$.indexOf("?");if(Y>=0)H.search=$.substring(Y),$=$.substring(0,Y);if($)H.pathname=$}return H}function T8($,H,X,Y={}){let{window:Z=document.defaultView,v5Compat:J=!1}=Y,A=Z.history,z="POP",D=null,U=V();if(U==null)U=0,A.replaceState({...A.state,idx:U},"");function V(){return(A.state||{idx:null}).idx}function W(){z="POP";let Q=V(),P=Q==null?null:Q-U;if(U=Q,D)D({action:z,location:T.location,delta:P})}function E(Q,P){z="PUSH";let I=p2(Q)?Q:K$(T.location,Q,P);if(X)X(I,Q);U=V()+1;let S=l2(I,U),c=T.createHref(I.unstable_mask||I);try{A.pushState(S,"",c)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;Z.location.assign(c)}if(J&&D)D({action:z,location:T.location,delta:1})}function F(Q,P){z="REPLACE";let I=p2(Q)?Q:K$(T.location,Q,P);if(X)X(I,Q);U=V();let S=l2(I,U),c=T.createHref(I.unstable_mask||I);if(A.replaceState(S,"",c),J&&D)D({action:z,location:T.location,delta:0})}function L(Q){return K8(Q)}let T={get action(){return z},get location(){return $(Z,A)},listen(Q){if(D)throw Error("A history only accepts one active listener");return Z.addEventListener(u2,W),D=Q,()=>{Z.removeEventListener(u2,W),D=null}},createHref(Q){return H(Z,Q)},createURL:L,encodeLocation(Q){let P=L(Q);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:E,replace:F,go(Q){return A.go(Q)}};return T}function K8($,H=!1){let X="http://localhost";if(typeof window<"u")X=window.location.origin!=="null"?window.location.origin:window.location.href;J0(X,"No window.location.(origin|href) available to create URL");let Y=typeof $==="string"?$:Y1($);if(Y=Y.replace(/ $/,"%20"),!H&&Y.startsWith("//"))Y=X+Y;return new URL(Y,X)}var F8;F8=new WeakMap;function N$($,H,X="/"){return L8($,H,X,!1)}function L8($,H,X,Y){let Z=typeof H==="string"?i0(H):H,J=C0(Z.pathname||"/",X);if(J==null)return null;let A=o2($);N8(A);let z=null;for(let D=0;z==null&&D<A.length;++D){let U=v8(J);z=k8(A[D],U,Y)}return z}function _8($,H){let{route:X,pathname:Y,params:Z}=$;return{id:X.id,pathname:Y,params:Z,data:H[X.id],loaderData:H[X.id],handle:X.handle}}function o2($,H=[],X=[],Y="",Z=!1){let J=(A,z,D=Z,U)=>{let V={relativePath:U===void 0?A.path||"":U,caseSensitive:A.caseSensitive===!0,childrenIndex:z,route:A};if(V.relativePath.startsWith("/")){if(!V.relativePath.startsWith(Y)&&D)return;J0(V.relativePath.startsWith(Y),`Absolute route path "${V.relativePath}" nested under path "${Y}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),V.relativePath=V.relativePath.slice(Y.length)}let W=k0([Y,V.relativePath]),E=X.concat(V);if(A.children&&A.children.length>0)J0(A.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${W}".`),o2(A.children,H,E,W,D);if(A.path==null&&!A.index)return;H.push({path:W,score:I8(W,A.index),routesMeta:E})};return $.forEach((A,z)=>{if(A.path===""||!A.path?.includes("?"))J(A,z);else for(let D of t2(A.path))J(A,z,!0,D)}),H}function t2($){let H=$.split("/");if(H.length===0)return[];let[X,...Y]=H,Z=X.endsWith("?"),J=X.replace(/\?$/,"");if(Y.length===0)return Z?[J,""]:[J];let A=t2(Y.join("/")),z=[];if(z.push(...A.map((D)=>D===""?J:[J,D].join("/"))),Z)z.push(...A);return z.map((D)=>$.startsWith("/")&&D===""?"/":D)}function N8($){$.sort((H,X)=>H.score!==X.score?X.score-H.score:S8(H.routesMeta.map((Y)=>Y.childrenIndex),X.routesMeta.map((Y)=>Y.childrenIndex)))}var x8=/^:[\w-]+$/,P8=3,O8=2,M8=1,q8=10,R8=-2,c2=($)=>$==="*";function I8($,H){let X=$.split("/"),Y=X.length;if(X.some(c2))Y+=R8;if(H)Y+=O8;return X.filter((Z)=>!c2(Z)).reduce((Z,J)=>Z+(x8.test(J)?P8:J===""?M8:q8),Y)}function S8($,H){return $.length===H.length&&$.slice(0,-1).every((Y,Z)=>Y===H[Z])?$[$.length-1]-H[H.length-1]:0}function k8($,H,X=!1){let{routesMeta:Y}=$,Z={},J="/",A=[];for(let z=0;z<Y.length;++z){let D=Y[z],U=z===Y.length-1,V=J==="/"?H:H.slice(J.length)||"/",W=_1({path:D.relativePath,caseSensitive:D.caseSensitive,end:U},V),E=D.route;if(!W&&U&&X&&!Y[Y.length-1].route.index)W=_1({path:D.relativePath,caseSensitive:D.caseSensitive,end:!1},V);if(!W)return null;if(Object.assign(Z,W.params),A.push({params:Z,pathname:k0([J,W.pathname]),pathnameBase:b8(k0([J,W.pathnameBase])),route:E}),W.pathnameBase!=="/")J=k0([J,W.pathnameBase])}return A}function _1($,H){if(typeof $==="string")$={path:$,caseSensitive:!1,end:!0};let[X,Y]=C8($.path,$.caseSensitive,$.end),Z=H.match(X);if(!Z)return null;let J=Z[0],A=J.replace(/(.)\/+$/,"$1"),z=Z.slice(1);return{params:Y.reduce((U,{paramName:V,isOptional:W},E)=>{if(V==="*"){let L=z[E]||"";A=J.slice(0,J.length-L.length).replace(/(.)\/+$/,"$1")}let F=z[E];if(W&&!F)U[V]=void 0;else U[V]=(F||"").replace(/%2F/g,"/");return U},{}),pathname:J,pathnameBase:A,pattern:$}}function C8($,H=!1,X=!0){O0($==="*"||!$.endsWith("*")||$.endsWith("/*"),`Route path "${$}" will be treated as if it were "${$.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${$.replace(/\*$/,"/*")}".`);let Y=[],Z="^"+$.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(A,z,D,U,V)=>{if(Y.push({paramName:z,isOptional:D!=null}),D){let W=V.charAt(U+A.length);if(W&&W!=="/")return"/([^\\/]*)";return"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");if($.endsWith("*"))Y.push({paramName:"*"}),Z+=$==="*"||$==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$";else if(X)Z+="\\/*$";else if($!==""&&$!=="/")Z+="(?:(?=\\/|$))";return[new RegExp(Z,H?void 0:"i"),Y]}function v8($){try{return $.split("/").map((H)=>decodeURIComponent(H).replace(/\//g,"%2F")).join("/")}catch(H){return O0(!1,`The URL path "${$}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${H}).`),$}}function C0($,H){if(H==="/")return $;if(!$.toLowerCase().startsWith(H.toLowerCase()))return null;let X=H.endsWith("/")?H.length-1:H.length,Y=$.charAt(X);if(Y&&Y!=="/")return null;return $.slice(X)||"/"}var j8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function e2($,H="/"){let{pathname:X,search:Y="",hash:Z=""}=typeof $==="string"?i0($):$,J;if(X)if(X=X.replace(/\/\/+/g,"/"),X.startsWith("/"))J=s2(X.substring(1),"/");else J=s2(X,H);else J=H;return{pathname:J,search:g8(Y),hash:h8(Z)}}function s2($,H){let X=H.replace(/\/+$/,"").split("/");return $.split("/").forEach((Z)=>{if(Z===".."){if(X.length>1)X.pop()}else if(Z!==".")X.push(Z)}),X.length>1?X.join("/"):"/"}function E$($,H,X,Y){return`Cannot include a '${$}' character in a manually specified \`to.${H}\` field [${JSON.stringify(Y)}]. Please separate it out to the \`to.${X}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function f8($){return $.filter((H,X)=>X===0||H.route.path&&H.route.path.length>0)}function $4($){let H=f8($);return H.map((X,Y)=>Y===H.length-1?X.pathname:X.pathnameBase)}function x$($,H,X,Y=!1){let Z;if(typeof $==="string")Z=i0($);else Z={...$},J0(!Z.pathname||!Z.pathname.includes("?"),E$("?","pathname","search",Z)),J0(!Z.pathname||!Z.pathname.includes("#"),E$("#","pathname","hash",Z)),J0(!Z.search||!Z.search.includes("#"),E$("#","search","hash",Z));let J=$===""||Z.pathname==="",A=J?"/":Z.pathname,z;if(A==null)z=X;else{let W=H.length-1;if(!Y&&A.startsWith("..")){let E=A.split("/");while(E[0]==="..")E.shift(),W-=1;Z.pathname=E.join("/")}z=W>=0?H[W]:"/"}let D=e2(Z,z),U=A&&A!=="/"&&A.endsWith("/"),V=(J||A===".")&&X.endsWith("/");if(!D.pathname.endsWith("/")&&(U||V))D.pathname+="/";return D}var k0=($)=>$.join("/").replace(/\/\/+/g,"/"),b8=($)=>$.replace(/\/+$/,"").replace(/^\/*/,"/"),g8=($)=>!$||$==="?"?"":$.startsWith("?")?$:"?"+$,h8=($)=>!$||$==="#"?"":$.startsWith("#")?$:"#"+$;var H4=class{constructor($,H,X,Y=!1){if(this.status=$,this.statusText=H||"",this.internal=Y,X instanceof Error)this.data=X.toString(),this.error=X;else this.data=X}};function X4($){return $!=null&&typeof $.status==="number"&&typeof $.statusText==="string"&&typeof $.internal==="boolean"&&"data"in $}function m8($){return $.map((H)=>H.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Y4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Z4($,H){let X=$;if(typeof X!=="string"||!j8.test(X))return{absoluteURL:void 0,isExternal:!1,to:X};let Y=X,Z=!1;if(Y4)try{let J=new URL(window.location.href),A=X.startsWith("//")?new URL(J.protocol+X):new URL(X),z=C0(A.pathname,H);if(A.origin===J.origin&&z!=null)X=z+A.search+A.hash;else Z=!0}catch(J){O0(!1,`<Link to="${X}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:Y,isExternal:Z,to:X}}var hH=Symbol("Uninstrumented");var mH=Object.getOwnPropertyNames(Object.prototype).sort().join("\x00");var J4=["POST","PUT","PATCH","DELETE"],yH=new Set(J4),y8=["GET",...J4],dH=new Set(y8);var uH=Symbol("ResetLoaderData");var r0=x0.createContext(null);r0.displayName="DataRouter";var Z1=x0.createContext(null);Z1.displayName="DataRouterState";var d8=x0.createContext(!1);var P$=x0.createContext({isTransitioning:!1});P$.displayName="ViewTransition";var G4=x0.createContext(new Map);G4.displayName="Fetchers";var u8=x0.createContext(null);u8.displayName="Await";var L0=x0.createContext(null);L0.displayName="Navigation";var J1=x0.createContext(null);J1.displayName="Location";var M0=x0.createContext({outlet:null,matches:[],isDataRoute:!1});M0.displayName="Route";var O$=x0.createContext(null);O$.displayName="RouteError";var F$=!0,A4="REACT_ROUTER_ERROR",p8="REDIRECT",l8="ROUTE_ERROR_RESPONSE";function c8($){if($.startsWith(`${A4}:${p8}:{`))try{let H=JSON.parse($.slice(28));if(typeof H==="object"&&H&&typeof H.status==="number"&&typeof H.statusText==="string"&&typeof H.location==="string"&&typeof H.reloadDocument==="boolean"&&typeof H.replace==="boolean")return H}catch{}}function s8($){if($.startsWith(`${A4}:${l8}:{`))try{let H=JSON.parse($.slice(40));if(typeof H==="object"&&H&&typeof H.status==="number"&&typeof H.statusText==="string")return new H4(H.status,H.statusText,H.data)}catch{}}function W4($,{relative:H}={}){J0(G1(),"useHref() may be used only in the context of a <Router> component.");let{basename:X,navigator:Y}=R.useContext(L0),{hash:Z,pathname:J,search:A}=A1($,{relative:H}),z=J;if(X!=="/")z=J==="/"?X:k0([X,J]);return Y.createHref({pathname:z,search:A,hash:Z})}function G1(){return R.useContext(J1)!=null}function I0(){return J0(G1(),"useLocation() may be used only in the context of a <Router> component."),R.useContext(J1).location}var z4="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function B4($){if(!R.useContext(L0).static)R.useLayoutEffect($)}function V4(){let{isDataRoute:$}=R.useContext(M0);return $?Y5():i8()}function i8(){J0(G1(),"useNavigate() may be used only in the context of a <Router> component.");let $=R.useContext(r0),{basename:H,navigator:X}=R.useContext(L0),{matches:Y}=R.useContext(M0),{pathname:Z}=I0(),J=JSON.stringify($4(Y)),A=R.useRef(!1);return B4(()=>{A.current=!0}),R.useCallback((D,U={})=>{if(O0(A.current,z4),!A.current)return;if(typeof D==="number"){X.go(D);return}let V=x$(D,JSON.parse(J),Z,U.relative==="path");if($==null&&H!=="/")V.pathname=V.pathname==="/"?H:k0([H,V.pathname]);(U.replace?X.replace:X.push)(V,U.state,U)},[H,X,J,Z,$])}var r8=R.createContext(null);function D4($){let H=R.useContext(M0).outlet;return R.useMemo(()=>H&&R.createElement(r8.Provider,{value:$},H),[H,$])}function M$(){let{matches:$}=R.useContext(M0),H=$[$.length-1];return H?H.params:{}}function A1($,{relative:H}={}){let{matches:X}=R.useContext(M0),{pathname:Y}=I0(),Z=JSON.stringify($4(X));return R.useMemo(()=>x$($,JSON.parse(Z),Y,H==="path"),[$,Z,Y,H])}function U4($,H){return w4($,H)}function w4($,H,X){J0(G1(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:Y}=R.useContext(L0),{matches:Z}=R.useContext(M0),J=Z[Z.length-1],A=J?J.params:{},z=J?J.pathname:"/",D=J?J.pathnameBase:"/",U=J&&J.route;if(F$){let Q=U&&U.path||"";K4(z,!U||Q.endsWith("*")||Q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${z}" (under <Route path="${Q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
28
|
-
|
|
29
|
-
Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}/*`}">.`)}let V=I0(),W;if(H){let Q=typeof H==="string"?i0(H):H;J0(D==="/"||Q.pathname?.startsWith(D),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${D}" but pathname "${Q.pathname}" was given in the \`location\` prop.`),W=Q}else W=V;let E=W.pathname||"/",F=E;if(D!=="/"){let Q=D.replace(/^\//,"").split("/");F="/"+E.replace(/^\//,"").split("/").slice(Q.length).join("/")}let L=N$($,{pathname:F});if(F$)O0(U||L!=null,`No routes matched location "${W.pathname}${W.search}${W.hash}" `),O0(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${W.pathname}${W.search}${W.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=e8(L&&L.map((Q)=>Object.assign({},Q,{params:Object.assign({},A,Q.params),pathname:k0([D,Y.encodeLocation?Y.encodeLocation(Q.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathname]),pathnameBase:Q.pathnameBase==="/"?D:k0([D,Y.encodeLocation?Y.encodeLocation(Q.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathnameBase])})),Z,X);if(H&&T)return R.createElement(J1.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...W},navigationType:"POP"}},T);return T}function n8(){let $=T4(),H=X4($)?`${$.status} ${$.statusText}`:$ instanceof Error?$.message:JSON.stringify($),X=$ instanceof Error?$.stack:null,Y="rgba(200,200,200, 0.5)",Z={padding:"0.5rem",backgroundColor:Y},J={padding:"2px 4px",backgroundColor:Y},A=null;if(F$)console.error("Error handled by React Router default ErrorBoundary:",$),A=R.createElement(R.Fragment,null,R.createElement("p",null,"\uD83D\uDCBF Hey developer \uD83D\uDC4B"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:J},"ErrorBoundary")," or"," ",R.createElement("code",{style:J},"errorElement")," prop on your route."));return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},H),X?R.createElement("pre",{style:Z},X):null,A)}var a8=R.createElement(n8,null),E4=class extends R.Component{constructor($){super($);this.state={location:$.location,revalidation:$.revalidation,error:$.error}}static getDerivedStateFromError($){return{error:$}}static getDerivedStateFromProps($,H){if(H.location!==$.location||H.revalidation!=="idle"&&$.revalidation==="idle")return{error:$.error,location:$.location,revalidation:$.revalidation};return{error:$.error!==void 0?$.error:H.error,location:H.location,revalidation:$.revalidation||H.revalidation}}componentDidCatch($,H){if(this.props.onError)this.props.onError($,H);else console.error("React Router caught the following error during render",$)}render(){let $=this.state.error;if(this.context&&typeof $==="object"&&$&&"digest"in $&&typeof $.digest==="string"){let X=s8($.digest);if(X)$=X}let H=$!==void 0?R.createElement(M0.Provider,{value:this.props.routeContext},R.createElement(O$.Provider,{value:$,children:this.props.component})):this.props.children;if(this.context)return R.createElement(o8,{error:$},H);return H}};E4.contextType=d8;var Q$=new WeakMap;function o8({children:$,error:H}){let{basename:X}=R.useContext(L0);if(typeof H==="object"&&H&&"digest"in H&&typeof H.digest==="string"){let Y=c8(H.digest);if(Y){let Z=Q$.get(H);if(Z)throw Z;let J=Z4(Y.location,X);if(Y4&&!Q$.get(H))if(J.isExternal||Y.reloadDocument)window.location.href=J.absoluteURL||J.to;else{let A=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(J.to,{replace:Y.replace}));throw Q$.set(H,A),A}return R.createElement("meta",{httpEquiv:"refresh",content:`0;url=${J.absoluteURL||J.to}`})}}return $}function t8({routeContext:$,match:H,children:X}){let Y=R.useContext(r0);if(Y&&Y.static&&Y.staticContext&&(H.route.errorElement||H.route.ErrorBoundary))Y.staticContext._deepestRenderedBoundaryId=H.route.id;return R.createElement(M0.Provider,{value:$},X)}function e8($,H=[],X){let Y=X?.state;if($==null){if(!Y)return null;if(Y.errors)$=Y.matches;else if(H.length===0&&!Y.initialized&&Y.matches.length>0)$=Y.matches;else return null}let Z=$,J=Y?.errors;if(J!=null){let V=Z.findIndex((W)=>W.route.id&&J?.[W.route.id]!==void 0);J0(V>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(J).join(",")}`),Z=Z.slice(0,Math.min(Z.length,V+1))}let A=!1,z=-1;if(X&&Y){A=Y.renderFallback;for(let V=0;V<Z.length;V++){let W=Z[V];if(W.route.HydrateFallback||W.route.hydrateFallbackElement)z=V;if(W.route.id){let{loaderData:E,errors:F}=Y,L=W.route.loader&&!E.hasOwnProperty(W.route.id)&&(!F||F[W.route.id]===void 0);if(W.route.lazy||L){if(X.isStatic)A=!0;if(z>=0)Z=Z.slice(0,z+1);else Z=[Z[0]];break}}}}let D=X?.onError,U=Y&&D?(V,W)=>{D(V,{location:Y.location,params:Y.matches?.[0]?.params??{},unstable_pattern:m8(Y.matches),errorInfo:W})}:void 0;return Z.reduceRight((V,W,E)=>{let F,L=!1,T=null,Q=null;if(Y){if(F=J&&W.route.id?J[W.route.id]:void 0,T=W.route.errorElement||a8,A){if(z<0&&E===0)K4("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,Q=null;else if(z===E)L=!0,Q=W.route.hydrateFallbackElement||null}}let P=H.concat(Z.slice(0,E+1)),I=()=>{let S;if(F)S=T;else if(L)S=Q;else if(W.route.Component)S=R.createElement(W.route.Component,null);else if(W.route.element)S=W.route.element;else S=V;return R.createElement(t8,{match:W,routeContext:{outlet:V,matches:P,isDataRoute:Y!=null},children:S})};return Y&&(W.route.ErrorBoundary||W.route.errorElement||E===0)?R.createElement(E4,{location:Y.location,revalidation:Y.revalidation,component:T,error:F,children:I(),routeContext:{outlet:null,matches:P,isDataRoute:!0},onError:U}):I()},null)}function q$($){return`${$} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $5($){let H=R.useContext(r0);return J0(H,q$($)),H}function R$($){let H=R.useContext(Z1);return J0(H,q$($)),H}function H5($){let H=R.useContext(M0);return J0(H,q$($)),H}function I$($){let H=H5($),X=H.matches[H.matches.length-1];return J0(X.route.id,`${$} can only be used on routes that contain a unique "id"`),X.route.id}function X5(){return I$("useRouteId")}function Q4(){return R$("useNavigation").navigation}function S$(){let{matches:$,loaderData:H}=R$("useMatches");return R.useMemo(()=>$.map((X)=>_8(X,H)),[$,H])}function T4(){let $=R.useContext(O$),H=R$("useRouteError"),X=I$("useRouteError");if($!==void 0)return $;return H.errors?.[X]}function Y5(){let{router:$}=$5("useNavigate"),H=I$("useNavigate"),X=R.useRef(!1);return B4(()=>{X.current=!0}),R.useCallback(async(Z,J={})=>{if(O0(X.current,z4),!X.current)return;if(typeof Z==="number")await $.navigate(Z);else await $.navigate(Z,{fromRouteId:H,...J})},[$,H])}var i2={};function K4($,H,X){if(!H&&!i2[$])i2[$]=!0,O0(!1,X)}var Z5="useOptimistic",pH=G0[Z5];var lH=G0.memo(J5);function J5({routes:$,future:H,state:X,isStatic:Y,onError:Z}){return w4($,void 0,{state:X,isStatic:Y,onError:Z,future:H})}function G5($){return D4($.context)}function F4($){J0(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function k$({basename:$="/",children:H=null,location:X,navigationType:Y="POP",navigator:Z,static:J=!1,unstable_useTransitions:A}){J0(!G1(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let z=$.replace(/^\/*/,"/"),D=G0.useMemo(()=>({basename:z,navigator:Z,static:J,unstable_useTransitions:A,future:{}}),[z,Z,J,A]);if(typeof X==="string")X=i0(X);let{pathname:U="/",search:V="",hash:W="",state:E=null,key:F="default",unstable_mask:L}=X,T=G0.useMemo(()=>{let Q=C0(U,z);if(Q==null)return null;return{location:{pathname:Q,search:V,hash:W,state:E,key:F,unstable_mask:L},navigationType:Y}},[z,U,V,W,E,F,Y,L]);if(O0(T!=null,`<Router basename="${z}"> is not able to match the URL "${U}${V}${W}" because it does not start with the basename, so the <Router> won't render anything.`),T==null)return null;return G0.createElement(L0.Provider,{value:D},G0.createElement(J1.Provider,{children:H,value:T}))}function A5({children:$,location:H}){return U4(u1($),H)}function u1($,H=[]){let X=[];return G0.Children.forEach($,(Y,Z)=>{if(!G0.isValidElement(Y))return;let J=[...H,Z];if(Y.type===G0.Fragment){X.push.apply(X,u1(Y.props.children,J));return}J0(Y.type===F4,`[${typeof Y.type==="string"?Y.type:Y.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),J0(!Y.props.index||!Y.props.children,"An index route cannot have child routes.");let A={id:Y.props.id||J.join("-"),caseSensitive:Y.props.caseSensitive,element:Y.props.element,Component:Y.props.Component,index:Y.props.index,path:Y.props.path,middleware:Y.props.middleware,loader:Y.props.loader,action:Y.props.action,hydrateFallbackElement:Y.props.hydrateFallbackElement,HydrateFallback:Y.props.HydrateFallback,errorElement:Y.props.errorElement,ErrorBoundary:Y.props.ErrorBoundary,hasErrorBoundary:Y.props.hasErrorBoundary===!0||Y.props.ErrorBoundary!=null||Y.props.errorElement!=null,shouldRevalidate:Y.props.shouldRevalidate,handle:Y.props.handle,lazy:Y.props.lazy};if(Y.props.children)A.children=u1(Y.props.children,J);X.push(A)}),X}var y1="get",d1="application/x-www-form-urlencoded";function p1($){return typeof HTMLElement<"u"&&$ instanceof HTMLElement}function W5($){return p1($)&&$.tagName.toLowerCase()==="button"}function z5($){return p1($)&&$.tagName.toLowerCase()==="form"}function B5($){return p1($)&&$.tagName.toLowerCase()==="input"}function V5($){return!!($.metaKey||$.altKey||$.ctrlKey||$.shiftKey)}function D5($,H){return $.button===0&&(!H||H==="_self")&&!V5($)}var h1=null;function U5(){if(h1===null)try{new FormData(document.createElement("form"),0),h1=!1}catch($){h1=!0}return h1}var w5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function T$($){if($!=null&&!w5.has($))return O0(!1,`"${$}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${d1}"`),null;return $}function E5($,H){let X,Y,Z,J,A;if(z5($)){let z=$.getAttribute("action");Y=z?C0(z,H):null,X=$.getAttribute("method")||y1,Z=T$($.getAttribute("enctype"))||d1,J=new FormData($)}else if(W5($)||B5($)&&($.type==="submit"||$.type==="image")){let z=$.form;if(z==null)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let D=$.getAttribute("formaction")||z.getAttribute("action");if(Y=D?C0(D,H):null,X=$.getAttribute("formmethod")||z.getAttribute("method")||y1,Z=T$($.getAttribute("formenctype"))||T$(z.getAttribute("enctype"))||d1,J=new FormData(z,$),!U5()){let{name:U,type:V,value:W}=$;if(V==="image"){let E=U?`${U}.`:"";J.append(`${E}x`,"0"),J.append(`${E}y`,"0")}else if(U)J.append(U,W)}}else if(p1($))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else X=y1,Y=null,Z=d1,A=$;if(J&&Z==="text/plain")A=J,J=void 0;return{action:Y,method:X.toLowerCase(),encType:Z,formData:J,body:A}}var cH=Object.getOwnPropertyNames(Object.prototype).sort().join("\x00");var Q5={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},T5=/[&><\u2028\u2029]/g;function r2($){return $.replace(T5,(H)=>Q5[H])}function v$($,H){if($===!1||$===null||typeof $>"u")throw Error(H)}var K5=Symbol("SingleFetchRedirect");function F5($,H,X,Y){let Z=typeof $==="string"?new URL($,typeof window>"u"?"server://singlefetch/":window.location.origin):$;if(X)if(Z.pathname.endsWith("/"))Z.pathname=`${Z.pathname}_.${Y}`;else Z.pathname=`${Z.pathname}.${Y}`;else if(Z.pathname==="/")Z.pathname=`_root.${Y}`;else if(H&&C0(Z.pathname,H)==="/")Z.pathname=`${H.replace(/\/$/,"")}/_root.${Y}`;else Z.pathname=`${Z.pathname.replace(/\/$/,"")}.${Y}`;return Z}async function L5($,H){if($.id in H)return H[$.id];try{let X=await import($.module);return H[$.id]=X,X}catch(X){return console.error(`Error loading route module \`${$.module}\`, reloading page...`),console.error(X),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode&&void 0,window.location.reload(),new Promise(()=>{})}}function _5($){return $!=null&&typeof $.page==="string"}function N5($){if($==null)return!1;if($.href==null)return $.rel==="preload"&&typeof $.imageSrcSet==="string"&&typeof $.imageSizes==="string";return typeof $.rel==="string"&&typeof $.href==="string"}async function x5($,H,X){let Y=await Promise.all($.map(async(Z)=>{let J=H.routes[Z.route.id];if(J){let A=await L5(J,X);return A.links?A.links():[]}return[]}));return q5(Y.flat(1).filter(N5).filter((Z)=>Z.rel==="stylesheet"||Z.rel==="preload").map((Z)=>Z.rel==="stylesheet"?{...Z,rel:"prefetch",as:"style"}:{...Z,rel:"prefetch"}))}function n2($,H,X,Y,Z,J){let A=(D,U)=>{if(!X[U])return!0;return D.route.id!==X[U].route.id},z=(D,U)=>{return X[U].pathname!==D.pathname||X[U].route.path?.endsWith("*")&&X[U].params["*"]!==D.params["*"]};if(J==="assets")return H.filter((D,U)=>A(D,U)||z(D,U));if(J==="data")return H.filter((D,U)=>{let V=Y.routes[D.route.id];if(!V||!V.hasLoader)return!1;if(A(D,U)||z(D,U))return!0;if(D.route.shouldRevalidate){let W=D.route.shouldRevalidate({currentUrl:new URL(Z.pathname+Z.search+Z.hash,window.origin),currentParams:X[0]?.params||{},nextUrl:new URL($,window.origin),nextParams:D.params,defaultShouldRevalidate:!0});if(typeof W==="boolean")return W}return!0});return[]}function P5($,H,{includeHydrateFallback:X}={}){return O5($.map((Y)=>{let Z=H.routes[Y.route.id];if(!Z)return[];let J=[Z.module];if(Z.clientActionModule)J=J.concat(Z.clientActionModule);if(Z.clientLoaderModule)J=J.concat(Z.clientLoaderModule);if(X&&Z.hydrateFallbackModule)J=J.concat(Z.hydrateFallbackModule);if(Z.imports)J=J.concat(Z.imports);return J}).flat(1))}function O5($){return[...new Set($)]}function M5($){let H={},X=Object.keys($).sort();for(let Y of X)H[Y]=$[Y];return H}function q5($,H){let X=new Set,Y=new Set(H);return $.reduce((Z,J)=>{if(H&&!_5(J)&&J.as==="script"&&J.href&&Y.has(J.href))return Z;let z=JSON.stringify(M5(J));if(!X.has(z))X.add(z),Z.push({key:z,link:J});return Z},[])}function _4(){let $=n.useContext(r0);return v$($,"You must render this element inside a <DataRouterContext.Provider> element"),$}function k5(){let $=n.useContext(Z1);return v$($,"You must render this element inside a <DataRouterStateContext.Provider> element"),$}var N1=n.createContext(void 0);N1.displayName="FrameworkContext";function N4(){let $=n.useContext(N1);return v$($,"You must render this element inside a <HydratedRouter> element"),$}function C5($,H){let X=n.useContext(N1),[Y,Z]=n.useState(!1),[J,A]=n.useState(!1),{onFocus:z,onBlur:D,onMouseEnter:U,onMouseLeave:V,onTouchStart:W}=H,E=n.useRef(null);n.useEffect(()=>{if($==="render")A(!0);if($==="viewport"){let Q=new IntersectionObserver((P)=>{P.forEach((I)=>{A(I.isIntersecting)})},{threshold:0.5});if(E.current)Q.observe(E.current);return()=>{Q.disconnect()}}},[$]),n.useEffect(()=>{if(Y){let T=setTimeout(()=>{A(!0)},100);return()=>{clearTimeout(T)}}},[Y]);let F=()=>{Z(!0)},L=()=>{Z(!1),A(!1)};if(!X)return[!1,E,{}];if($!=="intent")return[J,E,{}];return[J,E,{onFocus:L1(z,F),onBlur:L1(D,L),onMouseEnter:L1(U,F),onMouseLeave:L1(V,L),onTouchStart:L1(W,F)}]}function L1($,H){return(X)=>{if($&&$(X),!X.defaultPrevented)H(X)}}function x4({page:$,...H}){let{router:X}=_4(),Y=n.useMemo(()=>N$(X.routes,$,X.basename),[X.routes,$,X.basename]);if(!Y)return null;return n.createElement(j5,{page:$,matches:Y,...H})}function v5($){let{manifest:H,routeModules:X}=N4(),[Y,Z]=n.useState([]);return n.useEffect(()=>{let J=!1;return x5($,H,X).then((A)=>{if(!J)Z(A)}),()=>{J=!0}},[$,H,X]),Y}function j5({page:$,matches:H,...X}){let Y=I0(),{future:Z,manifest:J,routeModules:A}=N4(),{basename:z}=_4(),{loaderData:D,matches:U}=k5(),V=n.useMemo(()=>n2($,H,U,J,Y,"data"),[$,H,U,J,Y]),W=n.useMemo(()=>n2($,H,U,J,Y,"assets"),[$,H,U,J,Y]),E=n.useMemo(()=>{if($===Y.pathname+Y.search+Y.hash)return[];let T=new Set,Q=!1;if(H.forEach((I)=>{let S=J.routes[I.route.id];if(!S||!S.hasLoader)return;if(!V.some((c)=>c.route.id===I.route.id)&&I.route.id in D&&A[I.route.id]?.shouldRevalidate)Q=!0;else if(S.hasClientLoader)Q=!0;else T.add(I.route.id)}),T.size===0)return[];let P=F5($,z,Z.unstable_trailingSlashAwareDataRequests,"data");if(Q&&T.size>0)P.searchParams.set("_routes",H.filter((I)=>T.has(I.route.id)).map((I)=>I.route.id).join(","));return[P.pathname+P.search]},[z,Z.unstable_trailingSlashAwareDataRequests,D,Y,J,V,H,$,A]),F=n.useMemo(()=>P5(W,J),[W,J]),L=v5(W);return n.createElement(n.Fragment,null,E.map((T)=>n.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...X})),F.map((T)=>n.createElement("link",{key:T,rel:"modulepreload",href:T,...X})),L.map(({key:T,link:Q})=>n.createElement("link",{key:T,nonce:X.nonce,...Q,crossOrigin:Q.crossOrigin??X.crossOrigin})))}function f5(...$){return(H)=>{$.forEach((X)=>{if(typeof X==="function")X(H);else if(X!=null)X.current=H})}}var b5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{if(b5)window.__reactRouterVersion="7.13.2"}catch($){}function g5({basename:$,children:H,unstable_useTransitions:X,window:Y}){let Z=C.useRef();if(Z.current==null)Z.current=a2({window:Y,v5Compat:!0});let J=Z.current,[A,z]=C.useState({action:J.action,location:J.location}),D=C.useCallback((U)=>{if(X===!1)z(U);else C.startTransition(()=>z(U))},[X]);return C.useLayoutEffect(()=>J.listen(D),[J,D]),C.createElement(k$,{basename:$,children:H,location:A.location,navigationType:A.action,navigator:J,unstable_useTransitions:X})}function P4({basename:$,children:H,history:X,unstable_useTransitions:Y}){let[Z,J]=C.useState({action:X.action,location:X.location}),A=C.useCallback((z)=>{if(Y===!1)J(z);else C.startTransition(()=>J(z))},[Y]);return C.useLayoutEffect(()=>X.listen(A),[X,A]),C.createElement(k$,{basename:$,children:H,location:Z.location,navigationType:Z.action,navigator:X,unstable_useTransitions:Y})}P4.displayName="unstable_HistoryRouter";var O4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j$=C.forwardRef(function({onClick:H,discover:X="render",prefetch:Y="none",relative:Z,reloadDocument:J,replace:A,unstable_mask:z,state:D,target:U,to:V,preventScrollReset:W,viewTransition:E,unstable_defaultShouldRevalidate:F,...L},T){let{basename:Q,navigator:P,unstable_useTransitions:I}=C.useContext(L0),S=typeof V==="string"&&O4.test(V),c=Z4(V,Q);V=c.to;let m=W4(V,{relative:Z}),$0=I0(),s=null;if(z){let Y0=x$(z,[],$0.unstable_mask?$0.unstable_mask.pathname:"/",!0);if(Q!=="/")Y0.pathname=Y0.pathname==="/"?Q:k0([Q,Y0.pathname]);s=P.createHref(Y0)}let[_,r,u]=C5(Y,L),Q0=S4(V,{replace:A,unstable_mask:z,state:D,target:U,preventScrollReset:W,relative:Z,viewTransition:E,unstable_defaultShouldRevalidate:F,unstable_useTransitions:I});function A0(Y0){if(H)H(Y0);if(!Y0.defaultPrevented)Q0(Y0)}let V0=!(c.isExternal||J),E0=C.createElement("a",{...L,...u,href:(V0?s:void 0)||c.absoluteURL||m,onClick:V0?A0:H,ref:f5(T,r),target:U,"data-discover":!S&&X==="render"?"true":void 0});return _&&!S?C.createElement(C.Fragment,null,E0,C.createElement(x4,{page:m})):E0});j$.displayName="Link";var M4=C.forwardRef(function({"aria-current":H="page",caseSensitive:X=!1,className:Y="",end:Z=!1,style:J,to:A,viewTransition:z,children:D,...U},V){let W=A1(A,{relative:U.relative}),E=I0(),F=C.useContext(Z1),{navigator:L,basename:T}=C.useContext(L0),Q=F!=null&&j4(W)&&z===!0,P=L.encodeLocation?L.encodeLocation(W).pathname:W.pathname,I=E.pathname,S=F&&F.navigation&&F.navigation.location?F.navigation.location.pathname:null;if(!X)I=I.toLowerCase(),S=S?S.toLowerCase():null,P=P.toLowerCase();if(S&&T)S=C0(S,T)||S;let c=P!=="/"&&P.endsWith("/")?P.length-1:P.length,m=I===P||!Z&&I.startsWith(P)&&I.charAt(c)==="/",$0=S!=null&&(S===P||!Z&&S.startsWith(P)&&S.charAt(P.length)==="/"),s={isActive:m,isPending:$0,isTransitioning:Q},_=m?H:void 0,r;if(typeof Y==="function")r=Y(s);else r=[Y,m?"active":null,$0?"pending":null,Q?"transitioning":null].filter(Boolean).join(" ");let u=typeof J==="function"?J(s):J;return C.createElement(j$,{...U,"aria-current":_,className:r,ref:V,style:u,to:A,viewTransition:z},typeof D==="function"?D(s):D)});M4.displayName="NavLink";var q4=C.forwardRef(({discover:$="render",fetcherKey:H,navigate:X,reloadDocument:Y,replace:Z,state:J,method:A=y1,action:z,onSubmit:D,relative:U,preventScrollReset:V,viewTransition:W,unstable_defaultShouldRevalidate:E,...F},L)=>{let{unstable_useTransitions:T}=C.useContext(L0),Q=k4(),P=C4(z,{relative:U}),I=A.toLowerCase()==="get"?"get":"post",S=typeof z==="string"&&O4.test(z);return C.createElement("form",{ref:L,method:I,action:P,onSubmit:Y?D:(m)=>{if(D&&D(m),m.defaultPrevented)return;m.preventDefault();let $0=m.nativeEvent.submitter,s=$0?.getAttribute("formmethod")||A,_=()=>Q($0||m.currentTarget,{fetcherKey:H,method:s,navigate:X,replace:Z,state:J,relative:U,preventScrollReset:V,viewTransition:W,unstable_defaultShouldRevalidate:E});if(T&&X!==!1)C.startTransition(()=>_());else _()},...F,"data-discover":!S&&$==="render"?"true":void 0})});q4.displayName="Form";function R4({getKey:$,storageKey:H,...X}){let Y=C.useContext(N1),{basename:Z}=C.useContext(L0),J=I0(),A=S$();v4({getKey:$,storageKey:H});let z=C.useMemo(()=>{if(!Y||!$)return null;let U=_$(J,A,Z,$);return U!==J.key?U:null},[]);if(!Y||Y.isSpaMode)return null;let D=((U,V)=>{if(!window.history.state||!window.history.state.key){let W=Math.random().toString(32).slice(2);window.history.replaceState({key:W},"")}try{let E=JSON.parse(sessionStorage.getItem(U)||"{}")[V||window.history.state.key];if(typeof E==="number")window.scrollTo(0,E)}catch(W){console.error(W),sessionStorage.removeItem(U)}}).toString();return C.createElement("script",{...X,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${D})(${r2(JSON.stringify(H||L$))}, ${r2(JSON.stringify(z))})`}})}R4.displayName="ScrollRestoration";function I4($){return`${$} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function f$($){let H=C.useContext(r0);return J0(H,I4($)),H}function h5($){let H=C.useContext(Z1);return J0(H,I4($)),H}function S4($,{target:H,replace:X,unstable_mask:Y,state:Z,preventScrollReset:J,relative:A,viewTransition:z,unstable_defaultShouldRevalidate:D,unstable_useTransitions:U}={}){let V=V4(),W=I0(),E=A1($,{relative:A});return C.useCallback((F)=>{if(D5(F,H)){F.preventDefault();let L=X!==void 0?X:Y1(W)===Y1(E),T=()=>V($,{replace:L,unstable_mask:Y,state:Z,preventScrollReset:J,relative:A,viewTransition:z,unstable_defaultShouldRevalidate:D});if(U)C.startTransition(()=>T());else T()}},[W,V,E,X,Y,Z,H,$,J,A,z,D,U])}var m5=0,y5=()=>`__${String(++m5)}__`;function k4(){let{router:$}=f$("useSubmit"),{basename:H}=C.useContext(L0),X=X5(),Y=$.fetch,Z=$.navigate;return C.useCallback(async(J,A={})=>{let{action:z,method:D,encType:U,formData:V,body:W}=E5(J,H);if(A.navigate===!1){let E=A.fetcherKey||y5();await Y(E,X,A.action||z,{unstable_defaultShouldRevalidate:A.unstable_defaultShouldRevalidate,preventScrollReset:A.preventScrollReset,formData:V,body:W,formMethod:A.method||D,formEncType:A.encType||U,flushSync:A.flushSync})}else await Z(A.action||z,{unstable_defaultShouldRevalidate:A.unstable_defaultShouldRevalidate,preventScrollReset:A.preventScrollReset,formData:V,body:W,formMethod:A.method||D,formEncType:A.encType||U,replace:A.replace,state:A.state,fromRouteId:X,flushSync:A.flushSync,viewTransition:A.viewTransition})},[Y,Z,H,X])}function C4($,{relative:H}={}){let{basename:X}=C.useContext(L0),Y=C.useContext(M0);J0(Y,"useFormAction must be used inside a RouteContext");let[Z]=Y.matches.slice(-1),J={...A1($?$:".",{relative:H})},A=I0();if($==null){J.search=A.search;let z=new URLSearchParams(J.search),D=z.getAll("index");if(D.some((V)=>V==="")){z.delete("index"),D.filter((W)=>W).forEach((W)=>z.append("index",W));let V=z.toString();J.search=V?`?${V}`:""}}if((!$||$===".")&&Z.route.index)J.search=J.search?J.search.replace(/^\?/,"?index&"):"?index";if(X!=="/")J.pathname=J.pathname==="/"?X:k0([X,J.pathname]);return Y1(J)}var L$="react-router-scroll-positions",m1={};function _$($,H,X,Y){let Z=null;if(Y)if(X!=="/")Z=Y({...$,pathname:C0($.pathname,X)||$.pathname},H);else Z=Y($,H);if(Z==null)Z=$.key;return Z}function v4({getKey:$,storageKey:H}={}){let{router:X}=f$("useScrollRestoration"),{restoreScrollPosition:Y,preventScrollReset:Z}=h5("useScrollRestoration"),{basename:J}=C.useContext(L0),A=I0(),z=S$(),D=Q4();if(C.useEffect(()=>{return window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}},[]),d5(C.useCallback(()=>{if(D.state==="idle"){let U=_$(A,z,J,$);m1[U]=window.scrollY}try{sessionStorage.setItem(H||L$,JSON.stringify(m1))}catch(U){O0(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${U}).`)}window.history.scrollRestoration="auto"},[D.state,$,J,A,z,H])),typeof document<"u")C.useLayoutEffect(()=>{try{let U=sessionStorage.getItem(H||L$);if(U)m1=JSON.parse(U)}catch(U){}},[H]),C.useLayoutEffect(()=>{let U=X?.enableScrollRestoration(m1,()=>window.scrollY,$?(V,W)=>_$(V,W,J,$):void 0);return()=>U&&U()},[X,J,$]),C.useLayoutEffect(()=>{if(Y===!1)return;if(typeof Y==="number"){window.scrollTo(0,Y);return}try{if(A.hash){let U=document.getElementById(decodeURIComponent(A.hash.slice(1)));if(U){U.scrollIntoView();return}}}catch{O0(!1,`"${A.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}if(Z===!0)return;window.scrollTo(0,0)},[A,Y,Z])}function d5($,H){let{capture:X}=H||{};C.useEffect(()=>{let Y=X!=null?{capture:X}:void 0;return window.addEventListener("pagehide",$,Y),()=>{window.removeEventListener("pagehide",$,Y)}},[$,X])}function j4($,{relative:H}={}){let X=C.useContext(P$);J0(X!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:Y}=f$("useViewTransitionState"),Z=A1($,{relative:H});if(!X.isTransitioning)return!1;let J=C0(X.currentLocation.pathname,Y)||X.currentLocation.pathname,A=C0(X.nextLocation.pathname,Y)||X.nextLocation.pathname;return _1(Z.pathname,A)!=null||_1(Z.pathname,J)!=null}var u5={setTimeout:($,H)=>setTimeout($,H),clearTimeout:($)=>clearTimeout($),setInterval:($,H)=>setInterval($,H),clearInterval:($)=>clearInterval($)},p5=class{#$=u5;#H=!1;setTimeoutProvider($){if(this.#H&&$!==this.#$)console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#$,provider:$});this.#$=$,this.#H=!1}setTimeout($,H){return this.#H=!0,this.#$.setTimeout($,H)}clearTimeout($){this.#$.clearTimeout($)}setInterval($,H){return this.#H=!0,this.#$.setInterval($,H)}clearInterval($){this.#$.clearInterval($)}},v0=new p5;function b4($){setTimeout($,0)}var g$=typeof window>"u"||"Deno"in globalThis;function z0(){}function m4($,H){return typeof $==="function"?$(H):$}function x1($){return typeof $==="number"&&$>=0&&$!==1/0}function c1($,H){return Math.max($+(H||0)-Date.now(),0)}function S0($,H){return typeof $==="function"?$(H):$}function _0($,H){return typeof $==="function"?$(H):$}function s1($,H){let{type:X="all",exact:Y,fetchStatus:Z,predicate:J,queryKey:A,stale:z}=$;if(A){if(Y){if(H.queryHash!==P1(A,H.options))return!1}else if(!a0(H.queryKey,A))return!1}if(X!=="all"){let D=H.isActive();if(X==="active"&&!D)return!1;if(X==="inactive"&&D)return!1}if(typeof z==="boolean"&&H.isStale()!==z)return!1;if(Z&&Z!==H.state.fetchStatus)return!1;if(J&&!J(H))return!1;return!0}function i1($,H){let{exact:X,status:Y,predicate:Z,mutationKey:J}=$;if(J){if(!H.options.mutationKey)return!1;if(X){if(j0(H.options.mutationKey)!==j0(J))return!1}else if(!a0(H.options.mutationKey,J))return!1}if(Y&&H.state.status!==Y)return!1;if(Z&&!Z(H))return!1;return!0}function P1($,H){return(H?.queryKeyHashFn||j0)($)}function j0($){return JSON.stringify($,(H,X)=>b$(X)?Object.keys(X).sort().reduce((Y,Z)=>{return Y[Z]=X[Z],Y},{}):X)}function a0($,H){if($===H)return!0;if(typeof $!==typeof H)return!1;if($&&H&&typeof $==="object"&&typeof H==="object")return Object.keys(H).every((X)=>a0($[X],H[X]));return!1}var l5=Object.prototype.hasOwnProperty;function l1($,H,X=0){if($===H)return $;if(X>500)return H;let Y=g4($)&&g4(H);if(!Y&&!(b$($)&&b$(H)))return H;let J=(Y?$:Object.keys($)).length,A=Y?H:Object.keys(H),z=A.length,D=Y?Array(z):{},U=0;for(let V=0;V<z;V++){let W=Y?V:A[V],E=$[W],F=H[W];if(E===F){if(D[W]=E,Y?V<J:l5.call($,W))U++;continue}if(E===null||F===null||typeof E!=="object"||typeof F!=="object"){D[W]=F;continue}let L=l1(E,F,X+1);if(D[W]=L,L===E)U++}return J===z&&U===J?$:D}function W1($,H){if(!H||Object.keys($).length!==Object.keys(H).length)return!1;for(let X in $)if($[X]!==H[X])return!1;return!0}function g4($){return Array.isArray($)&&$.length===Object.keys($).length}function b$($){if(!h4($))return!1;let H=$.constructor;if(H===void 0)return!0;let X=H.prototype;if(!h4(X))return!1;if(!X.hasOwnProperty("isPrototypeOf"))return!1;if(Object.getPrototypeOf($)!==Object.prototype)return!1;return!0}function h4($){return Object.prototype.toString.call($)==="[object Object]"}function y4($){return new Promise((H)=>{v0.setTimeout(H,$)})}function O1($,H,X){if(typeof X.structuralSharing==="function")return X.structuralSharing($,H);else if(X.structuralSharing!==!1){try{return l1($,H)}catch(Y){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${X.queryHash}]: ${Y}`),Y}return l1($,H)}return H}function d4($,H,X=0){let Y=[...$,H];return X&&Y.length>X?Y.slice(1):Y}function u4($,H,X=0){let Y=[H,...$];return X&&Y.length>X?Y.slice(0,-1):Y}var n0=Symbol();function r1($,H){if($.queryFn===n0)console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${$.queryHash}'`);if(!$.queryFn&&H?.initialPromise)return()=>H.initialPromise;if(!$.queryFn||$.queryFn===n0)return()=>Promise.reject(Error(`Missing queryFn: '${$.queryHash}'`));return $.queryFn}function z1($,H){if(typeof $==="function")return $(...H);return!!$}function p4($,H,X){let Y=!1,Z;return Object.defineProperty($,"signal",{enumerable:!0,get:()=>{if(Z??=H(),Y)return Z;if(Y=!0,Z.aborted)X();else Z.addEventListener("abort",X,{once:!0});return Z}}),$}var l4=b4;function c5(){let $=[],H=0,X=(z)=>{z()},Y=(z)=>{z()},Z=l4,J=(z)=>{if(H)$.push(z);else Z(()=>{X(z)})},A=()=>{let z=$;if($=[],z.length)Z(()=>{Y(()=>{z.forEach((D)=>{X(D)})})})};return{batch:(z)=>{let D;H++;try{D=z()}finally{if(H--,!H)A()}return D},batchCalls:(z)=>{return(...D)=>{J(()=>{z(...D)})}},schedule:J,setNotifyFunction:(z)=>{X=z},setBatchNotifyFunction:(z)=>{Y=z},setScheduler:(z)=>{Z=z}}}var a=c5();var q0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe($){return this.listeners.add($),this.onSubscribe(),()=>{this.listeners.delete($),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var s5=class extends q0{#$;#H;#X;constructor(){super();this.#X=($)=>{if(typeof window<"u"&&window.addEventListener){let H=()=>$();return window.addEventListener("visibilitychange",H,!1),()=>{window.removeEventListener("visibilitychange",H)}}return}}onSubscribe(){if(!this.#H)this.setEventListener(this.#X)}onUnsubscribe(){if(!this.hasListeners())this.#H?.(),this.#H=void 0}setEventListener($){this.#X=$,this.#H?.(),this.#H=$((H)=>{if(typeof H==="boolean")this.setFocused(H);else this.onFocus()})}setFocused($){if(this.#$!==$)this.#$=$,this.onFocus()}onFocus(){let $=this.isFocused();this.listeners.forEach((H)=>{H($)})}isFocused(){if(typeof this.#$==="boolean")return this.#$;return globalThis.document?.visibilityState!=="hidden"}},B1=new s5;var i5=class extends q0{#$=!0;#H;#X;constructor(){super();this.#X=($)=>{if(typeof window<"u"&&window.addEventListener){let H=()=>$(!0),X=()=>$(!1);return window.addEventListener("online",H,!1),window.addEventListener("offline",X,!1),()=>{window.removeEventListener("online",H),window.removeEventListener("offline",X)}}return}}onSubscribe(){if(!this.#H)this.setEventListener(this.#X)}onUnsubscribe(){if(!this.hasListeners())this.#H?.(),this.#H=void 0}setEventListener($){this.#X=$,this.#H?.(),this.#H=$(this.setOnline.bind(this))}setOnline($){if(this.#$!==$)this.#$=$,this.listeners.forEach((X)=>{X($)})}isOnline(){return this.#$}},V1=new i5;function M1(){let $,H,X=new Promise((Z,J)=>{$=Z,H=J});X.status="pending",X.catch(()=>{});function Y(Z){Object.assign(X,Z),delete X.resolve,delete X.reject}return X.resolve=(Z)=>{Y({status:"fulfilled",value:Z}),$(Z)},X.reject=(Z)=>{Y({status:"rejected",reason:Z}),H(Z)},X}var f0=(()=>{let $=()=>g$;return{isServer(){return $()},setIsServer(H){$=H}}})();function r5($){return Math.min(1000*2**$,30000)}function h$($){return($??"online")==="online"?V1.isOnline():!0}var n1=class extends Error{constructor($){super("CancelledError");this.revert=$?.revert,this.silent=$?.silent}};function a1($){let H=!1,X=0,Y,Z=M1(),J=()=>Z.status!=="pending",A=(T)=>{if(!J()){let Q=new n1(T);E(Q),$.onCancel?.(Q)}},z=()=>{H=!0},D=()=>{H=!1},U=()=>B1.isFocused()&&($.networkMode==="always"||V1.isOnline())&&$.canRun(),V=()=>h$($.networkMode)&&$.canRun(),W=(T)=>{if(!J())Y?.(),Z.resolve(T)},E=(T)=>{if(!J())Y?.(),Z.reject(T)},F=()=>{return new Promise((T)=>{Y=(Q)=>{if(J()||U())T(Q)},$.onPause?.()}).then(()=>{if(Y=void 0,!J())$.onContinue?.()})},L=()=>{if(J())return;let T,Q=X===0?$.initialPromise:void 0;try{T=Q??$.fn()}catch(P){T=Promise.reject(P)}Promise.resolve(T).then(W).catch((P)=>{if(J())return;let I=$.retry??(f0.isServer()?0:3),S=$.retryDelay??r5,c=typeof S==="function"?S(X,P):S,m=I===!0||typeof I==="number"&&X<I||typeof I==="function"&&I(X,P);if(H||!m){E(P);return}X++,$.onFail?.(X,P),y4(c).then(()=>{return U()?void 0:F()}).then(()=>{if(H)E(P);else L()})})};return{promise:Z,status:()=>Z.status,cancel:A,continue:()=>{return Y?.(),Z},cancelRetry:z,continueRetry:D,canStart:V,start:()=>{if(V())L();else F().then(L);return Z}}}var o1=class{#$;destroy(){this.clearGcTimeout()}scheduleGc(){if(this.clearGcTimeout(),x1(this.gcTime))this.#$=v0.setTimeout(()=>{this.optionalRemove()},this.gcTime)}updateGcTime($){this.gcTime=Math.max(this.gcTime||0,$??(f0.isServer()?1/0:300000))}clearGcTimeout(){if(this.#$)v0.clearTimeout(this.#$),this.#$=void 0}};var i4=class extends o1{#$;#H;#X;#Z;#Y;#J;#G;constructor($){super();this.#G=!1,this.#J=$.defaultOptions,this.setOptions($.options),this.observers=[],this.#Z=$.client,this.#X=this.#Z.getQueryCache(),this.queryKey=$.queryKey,this.queryHash=$.queryHash,this.#$=s4(this.options),this.state=$.state??this.#$,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#Y?.promise}setOptions($){if(this.options={...this.#J,...$},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let H=s4(this.options);if(H.data!==void 0)this.setState(c4(H.data,H.dataUpdatedAt)),this.#$=H}}optionalRemove(){if(!this.observers.length&&this.state.fetchStatus==="idle")this.#X.remove(this)}setData($,H){let X=O1(this.state.data,$,this.options);return this.#W({data:X,type:"success",dataUpdatedAt:H?.updatedAt,manual:H?.manual}),X}setState($,H){this.#W({type:"setState",state:$,setStateOptions:H})}cancel($){let H=this.#Y?.promise;return this.#Y?.cancel($),H?H.then(z0).catch(z0):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#$}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(($)=>_0($.options.enabled,this)!==!1)}isDisabled(){if(this.getObserversCount()>0)return!this.isActive();return this.options.queryFn===n0||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){if(this.getObserversCount()>0)return this.observers.some(($)=>S0($.options.staleTime,this)==="static");return!1}isStale(){if(this.getObserversCount()>0)return this.observers.some(($)=>$.getCurrentResult().isStale);return this.state.data===void 0||this.state.isInvalidated}isStaleByTime($=0){if(this.state.data===void 0)return!0;if($==="static")return!1;if(this.state.isInvalidated)return!0;return!c1(this.state.dataUpdatedAt,$)}onFocus(){this.observers.find((H)=>H.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#Y?.continue()}onOnline(){this.observers.find((H)=>H.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#Y?.continue()}addObserver($){if(!this.observers.includes($))this.observers.push($),this.clearGcTimeout(),this.#X.notify({type:"observerAdded",query:this,observer:$})}removeObserver($){if(this.observers.includes($)){if(this.observers=this.observers.filter((H)=>H!==$),!this.observers.length){if(this.#Y)if(this.#G||this.#A())this.#Y.cancel({revert:!0});else this.#Y.cancelRetry();this.scheduleGc()}this.#X.notify({type:"observerRemoved",query:this,observer:$})}}getObserversCount(){return this.observers.length}#A(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){if(!this.state.isInvalidated)this.#W({type:"invalidate"})}async fetch($,H){if(this.state.fetchStatus!=="idle"&&this.#Y?.status()!=="rejected"){if(this.state.data!==void 0&&H?.cancelRefetch)this.cancel({silent:!0});else if(this.#Y)return this.#Y.continueRetry(),this.#Y.promise}if($)this.setOptions($);if(!this.options.queryFn){let z=this.observers.find((D)=>D.options.queryFn);if(z)this.setOptions(z.options)}if(!Array.isArray(this.options.queryKey))console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");let X=new AbortController,Y=(z)=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>{return this.#G=!0,X.signal}})},Z=()=>{let z=r1(this.options,H),U=(()=>{let V={client:this.#Z,queryKey:this.queryKey,meta:this.meta};return Y(V),V})();if(this.#G=!1,this.options.persister)return this.options.persister(z,U,this);return z(U)},A=(()=>{let z={fetchOptions:H,options:this.options,queryKey:this.queryKey,client:this.#Z,state:this.state,fetchFn:Z};return Y(z),z})();if(this.options.behavior?.onFetch(A,this),this.#H=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==A.fetchOptions?.meta)this.#W({type:"fetch",meta:A.fetchOptions?.meta});this.#Y=a1({initialPromise:H?.initialPromise,fn:A.fetchFn,onCancel:(z)=>{if(z instanceof n1&&z.revert)this.setState({...this.#H,fetchStatus:"idle"});X.abort()},onFail:(z,D)=>{this.#W({type:"failed",failureCount:z,error:D})},onPause:()=>{this.#W({type:"pause"})},onContinue:()=>{this.#W({type:"continue"})},retry:A.options.retry,retryDelay:A.options.retryDelay,networkMode:A.options.networkMode,canRun:()=>!0});try{let z=await this.#Y.start();if(z===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),Error(`${this.queryHash} data is undefined`);return this.setData(z),this.#X.config.onSuccess?.(z,this),this.#X.config.onSettled?.(z,this.state.error,this),z}catch(z){if(z instanceof n1){if(z.silent)return this.#Y.promise;else if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw this.#W({type:"error",error:z}),this.#X.config.onError?.(z,this),this.#X.config.onSettled?.(this.state.data,z,this),z}finally{this.scheduleGc()}}#W($){let H=(X)=>{switch($.type){case"failed":return{...X,fetchFailureCount:$.failureCount,fetchFailureReason:$.error};case"pause":return{...X,fetchStatus:"paused"};case"continue":return{...X,fetchStatus:"fetching"};case"fetch":return{...X,...m$(X.data,this.options),fetchMeta:$.meta??null};case"success":let Y={...X,...c4($.data,$.dataUpdatedAt),dataUpdateCount:X.dataUpdateCount+1,...!$.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#H=$.manual?Y:void 0,Y;case"error":let Z=$.error;return{...X,error:Z,errorUpdateCount:X.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:X.fetchFailureCount+1,fetchFailureReason:Z,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...X,isInvalidated:!0};case"setState":return{...X,...$.state}}};this.state=H(this.state),a.batch(()=>{this.observers.forEach((X)=>{X.onQueryUpdate()}),this.#X.notify({query:this,type:"updated",action:$})})}};function m$($,H){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:h$(H.networkMode)?"fetching":"paused",...$===void 0&&{error:null,status:"pending"}}}function c4($,H){return{data:$,dataUpdatedAt:H??Date.now(),error:null,isInvalidated:!1,status:"success"}}function s4($){let H=typeof $.initialData==="function"?$.initialData():$.initialData,X=H!==void 0,Y=X?typeof $.initialDataUpdatedAt==="function"?$.initialDataUpdatedAt():$.initialDataUpdatedAt:0;return{data:H,dataUpdateCount:0,dataUpdatedAt:X?Y??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:X?"success":"pending",fetchStatus:"idle"}}var r4=class extends q0{constructor($={}){super();this.config=$,this.#$=new Map}#$;build($,H,X){let Y=H.queryKey,Z=H.queryHash??P1(Y,H),J=this.get(Z);if(!J)J=new i4({client:$,queryKey:Y,queryHash:Z,options:$.defaultQueryOptions(H),state:X,defaultOptions:$.getQueryDefaults(Y)}),this.add(J);return J}add($){if(!this.#$.has($.queryHash))this.#$.set($.queryHash,$),this.notify({type:"added",query:$})}remove($){let H=this.#$.get($.queryHash);if(H){if($.destroy(),H===$)this.#$.delete($.queryHash);this.notify({type:"removed",query:$})}}clear(){a.batch(()=>{this.getAll().forEach(($)=>{this.remove($)})})}get($){return this.#$.get($)}getAll(){return[...this.#$.values()]}find($){let H={exact:!0,...$};return this.getAll().find((X)=>s1(H,X))}findAll($={}){let H=this.getAll();return Object.keys($).length>0?H.filter((X)=>s1($,X)):H}notify($){a.batch(()=>{this.listeners.forEach((H)=>{H($)})})}onFocus(){a.batch(()=>{this.getAll().forEach(($)=>{$.onFocus()})})}onOnline(){a.batch(()=>{this.getAll().forEach(($)=>{$.onOnline()})})}};var n4=class extends o1{#$;#H;#X;#Z;constructor($){super();this.#$=$.client,this.mutationId=$.mutationId,this.#X=$.mutationCache,this.#H=[],this.state=$.state||y$(),this.setOptions($.options),this.scheduleGc()}setOptions($){this.options=$,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver($){if(!this.#H.includes($))this.#H.push($),this.clearGcTimeout(),this.#X.notify({type:"observerAdded",mutation:this,observer:$})}removeObserver($){this.#H=this.#H.filter((H)=>H!==$),this.scheduleGc(),this.#X.notify({type:"observerRemoved",mutation:this,observer:$})}optionalRemove(){if(!this.#H.length)if(this.state.status==="pending")this.scheduleGc();else this.#X.remove(this)}continue(){return this.#Z?.continue()??this.execute(this.state.variables)}async execute($){let H=()=>{this.#Y({type:"continue"})},X={client:this.#$,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#Z=a1({fn:()=>{if(!this.options.mutationFn)return Promise.reject(Error("No mutationFn found"));return this.options.mutationFn($,X)},onFail:(J,A)=>{this.#Y({type:"failed",failureCount:J,error:A})},onPause:()=>{this.#Y({type:"pause"})},onContinue:H,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#X.canRun(this)});let Y=this.state.status==="pending",Z=!this.#Z.canStart();try{if(Y)H();else{if(this.#Y({type:"pending",variables:$,isPaused:Z}),this.#X.config.onMutate)await this.#X.config.onMutate($,this,X);let A=await this.options.onMutate?.($,X);if(A!==this.state.context)this.#Y({type:"pending",context:A,variables:$,isPaused:Z})}let J=await this.#Z.start();return await this.#X.config.onSuccess?.(J,$,this.state.context,this,X),await this.options.onSuccess?.(J,$,this.state.context,X),await this.#X.config.onSettled?.(J,null,this.state.variables,this.state.context,this,X),await this.options.onSettled?.(J,null,$,this.state.context,X),this.#Y({type:"success",data:J}),J}catch(J){try{await this.#X.config.onError?.(J,$,this.state.context,this,X)}catch(A){Promise.reject(A)}try{await this.options.onError?.(J,$,this.state.context,X)}catch(A){Promise.reject(A)}try{await this.#X.config.onSettled?.(void 0,J,this.state.variables,this.state.context,this,X)}catch(A){Promise.reject(A)}try{await this.options.onSettled?.(void 0,J,$,this.state.context,X)}catch(A){Promise.reject(A)}throw this.#Y({type:"error",error:J}),J}finally{this.#X.runNext(this)}}#Y($){let H=(X)=>{switch($.type){case"failed":return{...X,failureCount:$.failureCount,failureReason:$.error};case"pause":return{...X,isPaused:!0};case"continue":return{...X,isPaused:!1};case"pending":return{...X,context:$.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:$.isPaused,status:"pending",variables:$.variables,submittedAt:Date.now()};case"success":return{...X,data:$.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...X,data:void 0,error:$.error,failureCount:X.failureCount+1,failureReason:$.error,isPaused:!1,status:"error"}}};this.state=H(this.state),a.batch(()=>{this.#H.forEach((X)=>{X.onMutationUpdate($)}),this.#X.notify({mutation:this,type:"updated",action:$})})}};function y$(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var a4=class extends q0{constructor($={}){super();this.config=$,this.#$=new Set,this.#H=new Map,this.#X=0}#$;#H;#X;build($,H,X){let Y=new n4({client:$,mutationCache:this,mutationId:++this.#X,options:$.defaultMutationOptions(H),state:X});return this.add(Y),Y}add($){this.#$.add($);let H=t1($);if(typeof H==="string"){let X=this.#H.get(H);if(X)X.push($);else this.#H.set(H,[$])}this.notify({type:"added",mutation:$})}remove($){if(this.#$.delete($)){let H=t1($);if(typeof H==="string"){let X=this.#H.get(H);if(X){if(X.length>1){let Y=X.indexOf($);if(Y!==-1)X.splice(Y,1)}else if(X[0]===$)this.#H.delete(H)}}}this.notify({type:"removed",mutation:$})}canRun($){let H=t1($);if(typeof H==="string"){let Y=this.#H.get(H)?.find((Z)=>Z.state.status==="pending");return!Y||Y===$}else return!0}runNext($){let H=t1($);if(typeof H==="string")return this.#H.get(H)?.find((Y)=>Y!==$&&Y.state.isPaused)?.continue()??Promise.resolve();else return Promise.resolve()}clear(){a.batch(()=>{this.#$.forEach(($)=>{this.notify({type:"removed",mutation:$})}),this.#$.clear(),this.#H.clear()})}getAll(){return Array.from(this.#$)}find($){let H={exact:!0,...$};return this.getAll().find((X)=>i1(H,X))}findAll($={}){return this.getAll().filter((H)=>i1($,H))}notify($){a.batch(()=>{this.listeners.forEach((H)=>{H($)})})}resumePausedMutations(){let $=this.getAll().filter((H)=>H.state.isPaused);return a.batch(()=>Promise.all($.map((H)=>H.continue().catch(z0))))}};function t1($){return $.options.scope?.id}function D1($){return{onFetch:(H,X)=>{let Y=H.options,Z=H.fetchOptions?.meta?.fetchMore?.direction,J=H.state.data?.pages||[],A=H.state.data?.pageParams||[],z={pages:[],pageParams:[]},D=0,U=async()=>{let V=!1,W=(L)=>{p4(L,()=>H.signal,()=>V=!0)},E=r1(H.options,H.fetchOptions),F=async(L,T,Q)=>{if(V)return Promise.reject();if(T==null&&L.pages.length)return Promise.resolve(L);let I=(()=>{let $0={client:H.client,queryKey:H.queryKey,pageParam:T,direction:Q?"backward":"forward",meta:H.options.meta};return W($0),$0})(),S=await E(I),{maxPages:c}=H.options,m=Q?u4:d4;return{pages:m(L.pages,S,c),pageParams:m(L.pageParams,T,c)}};if(Z&&J.length){let L=Z==="backward",T=L?o4:d$,Q={pages:J,pageParams:A},P=T(Y,Q);z=await F(Q,P,L)}else{let L=$??J.length;do{let T=D===0?A[0]??Y.initialPageParam:d$(Y,z);if(D>0&&T==null)break;z=await F(z,T),D++}while(D<L)}return z};if(H.options.persister)H.fetchFn=()=>{return H.options.persister?.(U,{client:H.client,queryKey:H.queryKey,meta:H.options.meta,signal:H.signal},X)};else H.fetchFn=U}}}function d$($,{pages:H,pageParams:X}){let Y=H.length-1;return H.length>0?$.getNextPageParam(H[Y],H,X[Y],X):void 0}function o4($,{pages:H,pageParams:X}){return H.length>0?$.getPreviousPageParam?.(H[0],H,X[0],X):void 0}function t4($,H){if(!H)return!1;return d$($,H)!=null}function e4($,H){if(!H||!$.getPreviousPageParam)return!1;return o4($,H)!=null}var n5=class{#$;#H;#X;#Z;#Y;#J;#G;#A;constructor($={}){this.#$=$.queryCache||new r4,this.#H=$.mutationCache||new a4,this.#X=$.defaultOptions||{},this.#Z=new Map,this.#Y=new Map,this.#J=0}mount(){if(this.#J++,this.#J!==1)return;this.#G=B1.subscribe(async($)=>{if($)await this.resumePausedMutations(),this.#$.onFocus()}),this.#A=V1.subscribe(async($)=>{if($)await this.resumePausedMutations(),this.#$.onOnline()})}unmount(){if(this.#J--,this.#J!==0)return;this.#G?.(),this.#G=void 0,this.#A?.(),this.#A=void 0}isFetching($){return this.#$.findAll({...$,fetchStatus:"fetching"}).length}isMutating($){return this.#H.findAll({...$,status:"pending"}).length}getQueryData($){let H=this.defaultQueryOptions({queryKey:$});return this.#$.get(H.queryHash)?.state.data}ensureQueryData($){let H=this.defaultQueryOptions($),X=this.#$.build(this,H),Y=X.state.data;if(Y===void 0)return this.fetchQuery($);if($.revalidateIfStale&&X.isStaleByTime(S0(H.staleTime,X)))this.prefetchQuery(H);return Promise.resolve(Y)}getQueriesData($){return this.#$.findAll($).map(({queryKey:H,state:X})=>{let Y=X.data;return[H,Y]})}setQueryData($,H,X){let Y=this.defaultQueryOptions({queryKey:$}),J=this.#$.get(Y.queryHash)?.state.data,A=m4(H,J);if(A===void 0)return;return this.#$.build(this,Y).setData(A,{...X,manual:!0})}setQueriesData($,H,X){return a.batch(()=>this.#$.findAll($).map(({queryKey:Y})=>[Y,this.setQueryData(Y,H,X)]))}getQueryState($){let H=this.defaultQueryOptions({queryKey:$});return this.#$.get(H.queryHash)?.state}removeQueries($){let H=this.#$;a.batch(()=>{H.findAll($).forEach((X)=>{H.remove(X)})})}resetQueries($,H){let X=this.#$;return a.batch(()=>{return X.findAll($).forEach((Y)=>{Y.reset()}),this.refetchQueries({type:"active",...$},H)})}cancelQueries($,H={}){let X={revert:!0,...H},Y=a.batch(()=>this.#$.findAll($).map((Z)=>Z.cancel(X)));return Promise.all(Y).then(z0).catch(z0)}invalidateQueries($,H={}){return a.batch(()=>{if(this.#$.findAll($).forEach((X)=>{X.invalidate()}),$?.refetchType==="none")return Promise.resolve();return this.refetchQueries({...$,type:$?.refetchType??$?.type??"active"},H)})}refetchQueries($,H={}){let X={...H,cancelRefetch:H.cancelRefetch??!0},Y=a.batch(()=>this.#$.findAll($).filter((Z)=>!Z.isDisabled()&&!Z.isStatic()).map((Z)=>{let J=Z.fetch(void 0,X);if(!X.throwOnError)J=J.catch(z0);return Z.state.fetchStatus==="paused"?Promise.resolve():J}));return Promise.all(Y).then(z0)}fetchQuery($){let H=this.defaultQueryOptions($);if(H.retry===void 0)H.retry=!1;let X=this.#$.build(this,H);return X.isStaleByTime(S0(H.staleTime,X))?X.fetch(H):Promise.resolve(X.state.data)}prefetchQuery($){return this.fetchQuery($).then(z0).catch(z0)}fetchInfiniteQuery($){return $.behavior=D1($.pages),this.fetchQuery($)}prefetchInfiniteQuery($){return this.fetchInfiniteQuery($).then(z0).catch(z0)}ensureInfiniteQueryData($){return $.behavior=D1($.pages),this.ensureQueryData($)}resumePausedMutations(){if(V1.isOnline())return this.#H.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#$}getMutationCache(){return this.#H}getDefaultOptions(){return this.#X}setDefaultOptions($){this.#X=$}setQueryDefaults($,H){this.#Z.set(j0($),{queryKey:$,defaultOptions:H})}getQueryDefaults($){let H=[...this.#Z.values()],X={};return H.forEach((Y)=>{if(a0($,Y.queryKey))Object.assign(X,Y.defaultOptions)}),X}setMutationDefaults($,H){this.#Y.set(j0($),{mutationKey:$,defaultOptions:H})}getMutationDefaults($){let H=[...this.#Y.values()],X={};return H.forEach((Y)=>{if(a0($,Y.mutationKey))Object.assign(X,Y.defaultOptions)}),X}defaultQueryOptions($){if($._defaulted)return $;let H={...this.#X.queries,...this.getQueryDefaults($.queryKey),...$,_defaulted:!0};if(!H.queryHash)H.queryHash=P1(H.queryKey,H);if(H.refetchOnReconnect===void 0)H.refetchOnReconnect=H.networkMode!=="always";if(H.throwOnError===void 0)H.throwOnError=!!H.suspense;if(!H.networkMode&&H.persister)H.networkMode="offlineFirst";if(H.queryFn===n0)H.enabled=!1;return H}defaultMutationOptions($){if($?._defaulted)return $;return{...this.#X.mutations,...$?.mutationKey&&this.getMutationDefaults($.mutationKey),...$,_defaulted:!0}}clear(){this.#$.clear(),this.#H.clear()}};var q1=class extends q0{constructor($,H){super();this.options=H,this.#$=$,this.#A=null,this.#G=M1(),this.bindMethods(),this.setOptions(H)}#$;#H=void 0;#X=void 0;#Z=void 0;#Y;#J;#G;#A;#W;#U;#w;#B;#V;#z;#E=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#H.addObserver(this),$6(this.#H,this.options))this.#D();else this.updateResult();this.#F()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return u$(this.#H,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u$(this.#H,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#L(),this.#_(),this.#H.removeObserver(this)}setOptions($){let H=this.options,X=this.#H;if(this.options=this.#$.defaultQueryOptions($),this.options.enabled!==void 0&&typeof this.options.enabled!=="boolean"&&typeof this.options.enabled!=="function"&&typeof _0(this.options.enabled,this.#H)!=="boolean")throw Error("Expected enabled to be a boolean or a callback that returns a boolean");if(this.#N(),this.#H.setOptions(this.options),H._defaulted&&!W1(this.options,H))this.#$.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#H,observer:this});let Y=this.hasListeners();if(Y&&H6(this.#H,X,this.options,H))this.#D();if(this.updateResult(),Y&&(this.#H!==X||_0(this.options.enabled,this.#H)!==_0(H.enabled,this.#H)||S0(this.options.staleTime,this.#H)!==S0(H.staleTime,this.#H)))this.#Q();let Z=this.#T();if(Y&&(this.#H!==X||_0(this.options.enabled,this.#H)!==_0(H.enabled,this.#H)||Z!==this.#z))this.#K(Z)}getOptimisticResult($){let H=this.#$.getQueryCache().build(this.#$,$),X=this.createResult(H,$);if(o5(this,X))this.#Z=X,this.#J=this.options,this.#Y=this.#H.state;return X}getCurrentResult(){return this.#Z}trackResult($,H){return new Proxy($,{get:(X,Y)=>{if(this.trackProp(Y),H?.(Y),Y==="promise"){if(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#G.status==="pending")this.#G.reject(Error("experimental_prefetchInRender feature flag is not enabled"))}return Reflect.get(X,Y)}})}trackProp($){this.#E.add($)}getCurrentQuery(){return this.#H}refetch({...$}={}){return this.fetch({...$})}fetchOptimistic($){let H=this.#$.defaultQueryOptions($),X=this.#$.getQueryCache().build(this.#$,H);return X.fetch().then(()=>this.createResult(X,H))}fetch($){return this.#D({...$,cancelRefetch:$.cancelRefetch??!0}).then(()=>{return this.updateResult(),this.#Z})}#D($){this.#N();let H=this.#H.fetch(this.options,$);if(!$?.throwOnError)H=H.catch(z0);return H}#Q(){this.#L();let $=S0(this.options.staleTime,this.#H);if(f0.isServer()||this.#Z.isStale||!x1($))return;let X=c1(this.#Z.dataUpdatedAt,$)+1;this.#B=v0.setTimeout(()=>{if(!this.#Z.isStale)this.updateResult()},X)}#T(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#H):this.options.refetchInterval)??!1}#K($){if(this.#_(),this.#z=$,f0.isServer()||_0(this.options.enabled,this.#H)===!1||!x1(this.#z)||this.#z===0)return;this.#V=v0.setInterval(()=>{if(this.options.refetchIntervalInBackground||B1.isFocused())this.#D()},this.#z)}#F(){this.#Q(),this.#K(this.#T())}#L(){if(this.#B)v0.clearTimeout(this.#B),this.#B=void 0}#_(){if(this.#V)v0.clearInterval(this.#V),this.#V=void 0}createResult($,H){let X=this.#H,Y=this.options,Z=this.#Z,J=this.#Y,A=this.#J,D=$!==X?$.state:this.#X,{state:U}=$,V={...U},W=!1,E;if(H._optimisticResults){let _=this.hasListeners(),r=!_&&$6($,H),u=_&&H6($,X,H,Y);if(r||u)V={...V,...m$(U.data,$.options)};if(H._optimisticResults==="isRestoring")V.fetchStatus="idle"}let{error:F,errorUpdatedAt:L,status:T}=V;E=V.data;let Q=!1;if(H.placeholderData!==void 0&&E===void 0&&T==="pending"){let _;if(Z?.isPlaceholderData&&H.placeholderData===A?.placeholderData)_=Z.data,Q=!0;else _=typeof H.placeholderData==="function"?H.placeholderData(this.#w?.state.data,this.#w):H.placeholderData;if(_!==void 0)T="success",E=O1(Z?.data,_,H),W=!0}if(H.select&&E!==void 0&&!Q)if(Z&&E===J?.data&&H.select===this.#W)E=this.#U;else try{this.#W=H.select,E=H.select(E),E=O1(Z?.data,E,H),this.#U=E,this.#A=null}catch(_){this.#A=_}if(this.#A)F=this.#A,E=this.#U,L=Date.now(),T="error";let P=V.fetchStatus==="fetching",I=T==="pending",S=T==="error",c=I&&P,m=E!==void 0,s={status:T,fetchStatus:V.fetchStatus,isPending:I,isSuccess:T==="success",isError:S,isInitialLoading:c,isLoading:c,data:E,dataUpdatedAt:V.dataUpdatedAt,error:F,errorUpdatedAt:L,failureCount:V.fetchFailureCount,failureReason:V.fetchFailureReason,errorUpdateCount:V.errorUpdateCount,isFetched:$.isFetched(),isFetchedAfterMount:V.dataUpdateCount>D.dataUpdateCount||V.errorUpdateCount>D.errorUpdateCount,isFetching:P,isRefetching:P&&!I,isLoadingError:S&&!m,isPaused:V.fetchStatus==="paused",isPlaceholderData:W,isRefetchError:S&&m,isStale:p$($,H),refetch:this.refetch,promise:this.#G,isEnabled:_0(H.enabled,$)!==!1};if(this.options.experimental_prefetchInRender){let _=s.data!==void 0,r=s.status==="error"&&!_,u=(V0)=>{if(r)V0.reject(s.error);else if(_)V0.resolve(s.data)},Q0=()=>{let V0=this.#G=s.promise=M1();u(V0)},A0=this.#G;switch(A0.status){case"pending":if($.queryHash===X.queryHash)u(A0);break;case"fulfilled":if(r||s.data!==A0.value)Q0();break;case"rejected":if(!r||s.error!==A0.reason)Q0();break}}return s}updateResult(){let $=this.#Z,H=this.createResult(this.#H,this.options);if(this.#Y=this.#H.state,this.#J=this.options,this.#Y.data!==void 0)this.#w=this.#H;if(W1(H,$))return;this.#Z=H;let X=()=>{if(!$)return!0;let{notifyOnChangeProps:Y}=this.options,Z=typeof Y==="function"?Y():Y;if(Z==="all"||!Z&&!this.#E.size)return!0;let J=new Set(Z??this.#E);if(this.options.throwOnError)J.add("error");return Object.keys(this.#Z).some((A)=>{let z=A;return this.#Z[z]!==$[z]&&J.has(z)})};this.#x({listeners:X()})}#N(){let $=this.#$.getQueryCache().build(this.#$,this.options);if($===this.#H)return;let H=this.#H;if(this.#H=$,this.#X=$.state,this.hasListeners())H?.removeObserver(this),$.addObserver(this)}onQueryUpdate(){if(this.updateResult(),this.hasListeners())this.#F()}#x($){a.batch(()=>{if($.listeners)this.listeners.forEach((H)=>{H(this.#Z)});this.#$.getQueryCache().notify({query:this.#H,type:"observerResultsUpdated"})})}};function a5($,H){return _0(H.enabled,$)!==!1&&$.state.data===void 0&&!($.state.status==="error"&&H.retryOnMount===!1)}function $6($,H){return a5($,H)||$.state.data!==void 0&&u$($,H,H.refetchOnMount)}function u$($,H,X){if(_0(H.enabled,$)!==!1&&S0(H.staleTime,$)!=="static"){let Y=typeof X==="function"?X($):X;return Y==="always"||Y!==!1&&p$($,H)}return!1}function H6($,H,X,Y){return($!==H||_0(Y.enabled,$)===!1)&&(!X.suspense||$.state.status!=="error")&&p$($,X)}function p$($,H){return _0(H.enabled,$)!==!1&&$.isStaleByTime(S0(H.staleTime,$))}function o5($,H){if(!W1($.getCurrentResult(),H))return!0;return!1}var l$=class extends q1{constructor($,H){super($,H)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions($){super.setOptions({...$,behavior:D1()})}getOptimisticResult($){return $.behavior=D1(),super.getOptimisticResult($)}fetchNextPage($){return this.fetch({...$,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage($){return this.fetch({...$,meta:{fetchMore:{direction:"backward"}}})}createResult($,H){let{state:X}=$,Y=super.createResult($,H),{isFetching:Z,isRefetching:J,isError:A,isRefetchError:z}=Y,D=X.fetchMeta?.fetchMore?.direction,U=A&&D==="forward",V=Z&&D==="forward",W=A&&D==="backward",E=Z&&D==="backward";return{...Y,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:t4(H,X.data),hasPreviousPage:e4(H,X.data),isFetchNextPageError:U,isFetchingNextPage:V,isFetchPreviousPageError:W,isFetchingPreviousPage:E,isRefetchError:z&&!U&&!W,isRefetching:J&&!V&&!E}}};var c$=class extends q0{#$;#H=void 0;#X;#Z;constructor($,H){super();this.#$=$,this.setOptions(H),this.bindMethods(),this.#Y()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions($){let H=this.options;if(this.options=this.#$.defaultMutationOptions($),!W1(this.options,H))this.#$.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#X,observer:this});if(H?.mutationKey&&this.options.mutationKey&&j0(H.mutationKey)!==j0(this.options.mutationKey))this.reset();else if(this.#X?.state.status==="pending")this.#X.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners())this.#X?.removeObserver(this)}onMutationUpdate($){this.#Y(),this.#J($)}getCurrentResult(){return this.#H}reset(){this.#X?.removeObserver(this),this.#X=void 0,this.#Y(),this.#J()}mutate($,H){return this.#Z=H,this.#X?.removeObserver(this),this.#X=this.#$.getMutationCache().build(this.#$,this.options),this.#X.addObserver(this),this.#X.execute($)}#Y(){let $=this.#X?.state??y$();this.#H={...$,isPending:$.status==="pending",isSuccess:$.status==="success",isError:$.status==="error",isIdle:$.status==="idle",mutate:this.mutate,reset:this.reset}}#J($){a.batch(()=>{if(this.#Z&&this.hasListeners()){let H=this.#H.variables,X=this.#H.context,Y={client:this.#$,meta:this.options.meta,mutationKey:this.options.mutationKey};if($?.type==="success"){try{this.#Z.onSuccess?.($.data,H,X,Y)}catch(Z){Promise.reject(Z)}try{this.#Z.onSettled?.($.data,null,H,X,Y)}catch(Z){Promise.reject(Z)}}else if($?.type==="error"){try{this.#Z.onError?.($.error,H,X,Y)}catch(Z){Promise.reject(Z)}try{this.#Z.onSettled?.(void 0,$.error,H,X,Y)}catch(Z){Promise.reject(Z)}}}this.listeners.forEach((H)=>{H(this.#H)})})}};var U1=i(X0(),1),X6=i(e1(),1),s$=U1.createContext(void 0),t=($)=>{let H=U1.useContext(s$);if($)return $;if(!H)throw Error("No QueryClient set, use QueryClientProvider to set one");return H},e5=({client:$,children:H})=>{return U1.useEffect(()=>{return $.mount(),()=>{$.unmount()}},[$]),X6.jsx(s$.Provider,{value:$,children:H})};var y0=i(X0(),1);var R1=i(X0(),1),$9=i(e1(),1);function H9(){let $=!1;return{clearReset:()=>{$=!1},reset:()=>{$=!0},isReset:()=>{return $}}}var X9=R1.createContext(H9()),Y6=()=>R1.useContext(X9);var Z6=i(X0(),1);var J6=($,H,X)=>{let Y=X?.state.error&&typeof $.throwOnError==="function"?z1($.throwOnError,[X.state.error,X]):$.throwOnError;if($.suspense||$.experimental_prefetchInRender||Y){if(!H.isReset())$.retryOnMount=!1}},G6=($)=>{Z6.useEffect(()=>{$.clearReset()},[$])},A6=({result:$,errorResetBoundary:H,throwOnError:X,query:Y,suspense:Z})=>{return $.isError&&!H.isReset()&&!$.isFetching&&Y&&(Z&&$.data===void 0||z1(X,[$.error,Y]))};var $$=i(X0(),1),W6=$$.createContext(!1),z6=()=>$$.useContext(W6),XJ=W6.Provider;var B6=($)=>{if($.suspense){let X=(Z)=>Z==="static"?Z:Math.max(Z??1000,1000),Y=$.staleTime;if($.staleTime=typeof Y==="function"?(...Z)=>X(Y(...Z)):X(Y),typeof $.gcTime==="number")$.gcTime=Math.max($.gcTime,1000)}},V6=($,H)=>$.isLoading&&$.isFetching&&!H,D6=($,H)=>$?.suspense&&H.isPending,i$=($,H,X)=>H.fetchOptimistic($).catch(()=>{X.clearReset()});function H$($,H,X){if(typeof $!=="object"||Array.isArray($))throw Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');let Y=z6(),Z=Y6(),J=t(X),A=J.defaultQueryOptions($);J.getDefaultOptions().queries?._experimental_beforeQuery?.(A);let z=J.getQueryCache().get(A.queryHash);if(!A.queryFn)console.error(`[${A.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`);A._optimisticResults=Y?"isRestoring":"optimistic",B6(A),J6(A,Z,z),G6(Z);let D=!J.getQueryCache().get(A.queryHash),[U]=y0.useState(()=>new H(J,A)),V=U.getOptimisticResult(A),W=!Y&&$.subscribed!==!1;if(y0.useSyncExternalStore(y0.useCallback((E)=>{let F=W?U.subscribe(a.batchCalls(E)):z0;return U.updateResult(),F},[U,W]),()=>U.getCurrentResult(),()=>U.getCurrentResult()),y0.useEffect(()=>{U.setOptions(A)},[A,U]),D6(A,V))throw i$(A,U,Z);if(A6({result:V,errorResetBoundary:Z,throwOnError:A.throwOnError,query:z,suspense:A.suspense}))throw V.error;if(J.getDefaultOptions().queries?._experimental_afterQuery?.(A,V),A.experimental_prefetchInRender&&!f0.isServer()&&V6(V,Y))(D?i$(A,U,Z):z?.promise)?.catch(z0).finally(()=>{U.updateResult()});return!A.notifyOnChangeProps?U.trackResult(V):V}function F0($,H){return H$($,q1,H)}var b0=i(X0(),1);function o($,H){let X=t(H),[Y]=b0.useState(()=>new c$(X,$));b0.useEffect(()=>{Y.setOptions($)},[Y,$]);let Z=b0.useSyncExternalStore(b0.useCallback((A)=>Y.subscribe(a.batchCalls(A)),[Y]),()=>Y.getCurrentResult(),()=>Y.getCurrentResult()),J=b0.useCallback((A,z)=>{Y.mutate(A,z).catch(z0)},[Y]);if(Z.error&&z1(Y.options.throwOnError,[Z.error]))throw Z.error;return{...Z,mutate:J,mutateAsync:Z.mutate}}function I1($,H){return H$($,l$,H)}var Y$=i(X0(),1);var X$=(...$)=>$.filter((H,X,Y)=>{return Boolean(H)&&H.trim()!==""&&Y.indexOf(H)===X}).join(" ").trim();var U6=($)=>$.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var w6=($)=>$.replace(/^([A-Z])|[\s-_]+(\w)/g,(H,X,Y)=>Y?Y.toUpperCase():X.toLowerCase());var r$=($)=>{let H=w6($);return H.charAt(0).toUpperCase()+H.slice(1)};var k1=i(X0(),1);var E6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Q6=($)=>{for(let H in $)if(H.startsWith("aria-")||H==="role"||H==="title")return!0;return!1};var T6=k1.forwardRef(({color:$="currentColor",size:H=24,strokeWidth:X=2,absoluteStrokeWidth:Y,className:Z="",children:J,iconNode:A,...z},D)=>k1.createElement("svg",{ref:D,...E6,width:H,height:H,stroke:$,strokeWidth:Y?Number(X)*24/Number(H):X,className:X$("lucide",Z),...!J&&!Q6(z)&&{"aria-hidden":"true"},...z},[...A.map(([U,V])=>k1.createElement(U,V)),...Array.isArray(J)?J:[J]]));var O=($,H)=>{let X=Y$.forwardRef(({className:Y,...Z},J)=>Y$.createElement(T6,{ref:J,iconNode:H,className:X$(`lucide-${U6(r$($))}`,`lucide-${$}`,Y),...Z}));return X.displayName=r$($),X};var Z9=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],w1=O("circle-alert",Z9);var J9=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],E1=O("ellipsis-vertical",J9);var G9=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Q1=O("ellipsis",G9);var A9=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],d0=O("loader-circle",A9);var W9=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],n$=O("check",W9);var z9=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],a$=O("chevron-down",z9);var B9=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],o$=O("chevron-left",B9);var V9=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],t$=O("chevron-right",V9);var D9=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],e$=O("chevron-up",D9);var U9=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],$2=O("circle",U9);var w9=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],H2=O("clock",w9);var E9=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],X2=O("download",E9);var Q9=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],Y2=O("eraser",Q9);var T9=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Z2=O("file-text",T9);var K9=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],J2=O("file",K9);var F9=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],G2=O("folder-open",F9);var L9=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],A2=O("folder",L9);var _9=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],W2=O("info",_9);var N9=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],z2=O("menu",N9);var x9=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],B2=O("message-square",x9);var P9=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],V2=O("monitor",P9);var O9=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],D2=O("moon",O9);var M9=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],U2=O("paperclip",M9);var q9=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],w2=O("pencil",q9);var R9=[["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"}]],E2=O("play",R9);var I9=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Q2=O("plus",I9);var S9=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],T2=O("settings",S9);var k9=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],K2=O("square",k9);var C9=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],F2=O("sun",C9);var v9=[["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"}]],L2=O("trash-2",v9);var j9=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],_2=O("users",j9);var f9=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],N2=O("x",f9);var b9=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],x2=O("zap",b9);function K6($){var H,X,Y="";if(typeof $=="string"||typeof $=="number")Y+=$;else if(typeof $=="object")if(Array.isArray($)){var Z=$.length;for(H=0;H<Z;H++)$[H]&&(X=K6($[H]))&&(Y&&(Y+=" "),Y+=X)}else for(X in $)$[X]&&(Y&&(Y+=" "),Y+=X);return Y}function Z$(){for(var $,H,X=0,Y="",Z=arguments.length;X<Z;X++)($=arguments[X])&&(H=K6($))&&(Y&&(Y+=" "),Y+=H);return Y}var g9=($,H)=>{let X=Array($.length+H.length);for(let Y=0;Y<$.length;Y++)X[Y]=$[Y];for(let Y=0;Y<H.length;Y++)X[$.length+Y]=H[Y];return X},h9=($,H)=>({classGroupId:$,validator:H}),P6=($=new Map,H=null,X)=>({nextPart:$,validators:H,classGroupId:X});var F6=[];var m9=($)=>{let H=d9($),{conflictingClassGroups:X,conflictingClassGroupModifiers:Y}=$;return{getClassGroupId:(A)=>{if(A.startsWith("[")&&A.endsWith("]"))return y9(A);let z=A.split("-"),D=z[0]===""&&z.length>1?1:0;return O6(z,D,H)},getConflictingClassGroupIds:(A,z)=>{if(z){let D=Y[A],U=X[A];if(D){if(U)return g9(U,D);return D}return U||F6}return X[A]||F6}}},O6=($,H,X)=>{if($.length-H===0)return X.classGroupId;let Z=$[H],J=X.nextPart.get(Z);if(J){let U=O6($,H+1,J);if(U)return U}let A=X.validators;if(A===null)return;let z=H===0?$.join("-"):$.slice(H).join("-"),D=A.length;for(let U=0;U<D;U++){let V=A[U];if(V.validator(z))return V.classGroupId}return},y9=($)=>$.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let H=$.slice(1,-1),X=H.indexOf(":"),Y=H.slice(0,X);return Y?"arbitrary.."+Y:void 0})(),d9=($)=>{let{theme:H,classGroups:X}=$;return u9(X,H)},u9=($,H)=>{let X=P6();for(let Y in $){let Z=$[Y];O2(Z,X,Y,H)}return X},O2=($,H,X,Y)=>{let Z=$.length;for(let J=0;J<Z;J++){let A=$[J];p9(A,H,X,Y)}},p9=($,H,X,Y)=>{if(typeof $==="string"){l9($,H,X);return}if(typeof $==="function"){c9($,H,X,Y);return}s9($,H,X,Y)},l9=($,H,X)=>{let Y=$===""?H:M6(H,$);Y.classGroupId=X},c9=($,H,X,Y)=>{if(i9($)){O2($(Y),H,X,Y);return}if(H.validators===null)H.validators=[];H.validators.push(h9(X,$))},s9=($,H,X,Y)=>{let Z=Object.entries($),J=Z.length;for(let A=0;A<J;A++){let[z,D]=Z[A];O2(D,M6(H,z),X,Y)}},M6=($,H)=>{let X=$,Y=H.split("-"),Z=Y.length;for(let J=0;J<Z;J++){let A=Y[J],z=X.nextPart.get(A);if(!z)z=P6(),X.nextPart.set(A,z);X=z}return X},i9=($)=>("isThemeGetter"in $)&&$.isThemeGetter===!0,r9=($)=>{if($<1)return{get:()=>{return},set:()=>{}};let H=0,X=Object.create(null),Y=Object.create(null),Z=(J,A)=>{if(X[J]=A,H++,H>$)H=0,Y=X,X=Object.create(null)};return{get(J){let A=X[J];if(A!==void 0)return A;if((A=Y[J])!==void 0)return Z(J,A),A},set(J,A){if(J in X)X[J]=A;else Z(J,A)}}};var n9=[],L6=($,H,X,Y,Z)=>({modifiers:$,hasImportantModifier:H,baseClassName:X,maybePostfixModifierPosition:Y,isExternal:Z}),a9=($)=>{let{prefix:H,experimentalParseClassName:X}=$,Y=(Z)=>{let J=[],A=0,z=0,D=0,U,V=Z.length;for(let T=0;T<V;T++){let Q=Z[T];if(A===0&&z===0){if(Q===":"){J.push(Z.slice(D,T)),D=T+1;continue}if(Q==="/"){U=T;continue}}if(Q==="[")A++;else if(Q==="]")A--;else if(Q==="(")z++;else if(Q===")")z--}let W=J.length===0?Z:Z.slice(D),E=W,F=!1;if(W.endsWith("!"))E=W.slice(0,-1),F=!0;else if(W.startsWith("!"))E=W.slice(1),F=!0;let L=U&&U>D?U-D:void 0;return L6(J,F,E,L)};if(H){let Z=H+":",J=Y;Y=(A)=>A.startsWith(Z)?J(A.slice(Z.length)):L6(n9,!1,A,void 0,!0)}if(X){let Z=Y;Y=(J)=>X({className:J,parseClassName:Z})}return Y},o9=($)=>{let H=new Map;return $.orderSensitiveModifiers.forEach((X,Y)=>{H.set(X,1e6+Y)}),(X)=>{let Y=[],Z=[];for(let J=0;J<X.length;J++){let A=X[J],z=A[0]==="[",D=H.has(A);if(z||D){if(Z.length>0)Z.sort(),Y.push(...Z),Z=[];Y.push(A)}else Z.push(A)}if(Z.length>0)Z.sort(),Y.push(...Z);return Y}},t9=($)=>({cache:r9($.cacheSize),parseClassName:a9($),sortModifiers:o9($),...m9($)}),e9=/\s+/,$7=($,H)=>{let{parseClassName:X,getClassGroupId:Y,getConflictingClassGroupIds:Z,sortModifiers:J}=H,A=[],z=$.trim().split(e9),D="";for(let U=z.length-1;U>=0;U-=1){let V=z[U],{isExternal:W,modifiers:E,hasImportantModifier:F,baseClassName:L,maybePostfixModifierPosition:T}=X(V);if(W){D=V+(D.length>0?" "+D:D);continue}let Q=!!T,P=Y(Q?L.substring(0,T):L);if(!P){if(!Q){D=V+(D.length>0?" "+D:D);continue}if(P=Y(L),!P){D=V+(D.length>0?" "+D:D);continue}Q=!1}let I=E.length===0?"":E.length===1?E[0]:J(E).join(":"),S=F?I+"!":I,c=S+P;if(A.indexOf(c)>-1)continue;A.push(c);let m=Z(P,Q);for(let $0=0;$0<m.length;++$0){let s=m[$0];A.push(S+s)}D=V+(D.length>0?" "+D:D)}return D},H7=(...$)=>{let H=0,X,Y,Z="";while(H<$.length)if(X=$[H++]){if(Y=q6(X))Z&&(Z+=" "),Z+=Y}return Z},q6=($)=>{if(typeof $==="string")return $;let H,X="";for(let Y=0;Y<$.length;Y++)if($[Y]){if(H=q6($[Y]))X&&(X+=" "),X+=H}return X},X7=($,...H)=>{let X,Y,Z,J,A=(D)=>{let U=H.reduce((V,W)=>W(V),$());return X=t9(U),Y=X.cache.get,Z=X.cache.set,J=z,z(D)},z=(D)=>{let U=Y(D);if(U)return U;let V=$7(D,X);return Z(D,V),V};return J=A,(...D)=>J(H7(...D))},Y7=[],w0=($)=>{let H=(X)=>X[$]||Y7;return H.isThemeGetter=!0,H},R6=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,I6=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Z7=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,J7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G7=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A7=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,W7=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,z7=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,u0=($)=>Z7.test($),y=($)=>!!$&&!Number.isNaN(Number($)),p0=($)=>!!$&&Number.isInteger(Number($)),P2=($)=>$.endsWith("%")&&y($.slice(0,-1)),g0=($)=>J7.test($),S6=()=>!0,B7=($)=>G7.test($)&&!A7.test($),M2=()=>!1,V7=($)=>W7.test($),D7=($)=>z7.test($),U7=($)=>!M($)&&!q($),w7=($)=>l0($,v6,M2),M=($)=>R6.test($),e0=($)=>l0($,j6,B7),_6=($)=>l0($,N7,y),E7=($)=>l0($,b6,S6),Q7=($)=>l0($,f6,M2),N6=($)=>l0($,k6,M2),T7=($)=>l0($,C6,D7),J$=($)=>l0($,g6,V7),q=($)=>I6.test($),C1=($)=>$1($,j6),K7=($)=>$1($,f6),x6=($)=>$1($,k6),F7=($)=>$1($,v6),L7=($)=>$1($,C6),G$=($)=>$1($,g6,!0),_7=($)=>$1($,b6,!0),l0=($,H,X)=>{let Y=R6.exec($);if(Y){if(Y[1])return H(Y[1]);return X(Y[2])}return!1},$1=($,H,X=!1)=>{let Y=I6.exec($);if(Y){if(Y[1])return H(Y[1]);return X}return!1},k6=($)=>$==="position"||$==="percentage",C6=($)=>$==="image"||$==="url",v6=($)=>$==="length"||$==="size"||$==="bg-size",j6=($)=>$==="length",N7=($)=>$==="number",f6=($)=>$==="family-name",b6=($)=>$==="number"||$==="weight",g6=($)=>$==="shadow";var x7=()=>{let $=w0("color"),H=w0("font"),X=w0("text"),Y=w0("font-weight"),Z=w0("tracking"),J=w0("leading"),A=w0("breakpoint"),z=w0("container"),D=w0("spacing"),U=w0("radius"),V=w0("shadow"),W=w0("inset-shadow"),E=w0("text-shadow"),F=w0("drop-shadow"),L=w0("blur"),T=w0("perspective"),Q=w0("aspect"),P=w0("ease"),I=w0("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],c=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],m=()=>[...c(),q,M],$0=()=>["auto","hidden","clip","visible","scroll"],s=()=>["auto","contain","none"],_=()=>[q,M,D],r=()=>[u0,"full","auto",..._()],u=()=>[p0,"none","subgrid",q,M],Q0=()=>["auto",{span:["full",p0,q,M]},p0,q,M],A0=()=>[p0,"auto",q,M],V0=()=>["auto","min","max","fr",q,M],E0=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y0=()=>["start","end","center","stretch","center-safe","end-safe"],B0=()=>["auto",..._()],T0=()=>[u0,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],R0=()=>[u0,"screen","full","dvw","lvw","svw","min","max","fit",..._()],N0=()=>[u0,"screen","full","lh","dvh","lvh","svh","min","max","fit",..._()],B=()=>[$,q,M],N=()=>[...c(),x6,N6,{position:[q,M]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],f=()=>["auto","cover","contain",F7,w7,{size:[q,M]}],U0=()=>[P2,C1,e0],H0=()=>["","none","full",U,q,M],k=()=>["",y,C1,e0],W0=()=>["solid","dashed","dotted","double"],K0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z0=()=>[y,P2,x6,N6],T1=()=>["","none",L,q,M],c0=()=>["none",y,q,M],s0=()=>["none",y,q,M],H1=()=>[y,q,M],h0=()=>[u0,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[g0],breakpoint:[g0],color:[S6],container:[g0],"drop-shadow":[g0],ease:["in","out","in-out"],font:[U7],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[g0],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[g0],shadow:[g0],spacing:["px",y],text:[g0],"text-shadow":[g0],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",u0,M,q,Q]}],container:["container"],columns:[{columns:[y,M,q,z]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:m()}],overflow:[{overflow:$0()}],"overflow-x":[{"overflow-x":$0()}],"overflow-y":[{"overflow-y":$0()}],overscroll:[{overscroll:s()}],"overscroll-x":[{"overscroll-x":s()}],"overscroll-y":[{"overscroll-y":s()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:r()}],"inset-x":[{"inset-x":r()}],"inset-y":[{"inset-y":r()}],start:[{"inset-s":r(),start:r()}],end:[{"inset-e":r(),end:r()}],"inset-bs":[{"inset-bs":r()}],"inset-be":[{"inset-be":r()}],top:[{top:r()}],right:[{right:r()}],bottom:[{bottom:r()}],left:[{left:r()}],visibility:["visible","invisible","collapse"],z:[{z:[p0,"auto",q,M]}],basis:[{basis:[u0,"full","auto",z,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,u0,"auto","initial","none",M]}],grow:[{grow:["",y,q,M]}],shrink:[{shrink:["",y,q,M]}],order:[{order:[p0,"first","last","none",q,M]}],"grid-cols":[{"grid-cols":u()}],"col-start-end":[{col:Q0()}],"col-start":[{"col-start":A0()}],"col-end":[{"col-end":A0()}],"grid-rows":[{"grid-rows":u()}],"row-start-end":[{row:Q0()}],"row-start":[{"row-start":A0()}],"row-end":[{"row-end":A0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V0()}],"auto-rows":[{"auto-rows":V0()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...E0(),"normal"]}],"justify-items":[{"justify-items":[...Y0(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y0()]}],"align-content":[{content:["normal",...E0()]}],"align-items":[{items:[...Y0(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y0(),{baseline:["","last"]}]}],"place-content":[{"place-content":E0()}],"place-items":[{"place-items":[...Y0(),"baseline"]}],"place-self":[{"place-self":["auto",...Y0()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:B0()}],mx:[{mx:B0()}],my:[{my:B0()}],ms:[{ms:B0()}],me:[{me:B0()}],mbs:[{mbs:B0()}],mbe:[{mbe:B0()}],mt:[{mt:B0()}],mr:[{mr:B0()}],mb:[{mb:B0()}],ml:[{ml:B0()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:T0()}],"inline-size":[{inline:["auto",...R0()]}],"min-inline-size":[{"min-inline":["auto",...R0()]}],"max-inline-size":[{"max-inline":["none",...R0()]}],"block-size":[{block:["auto",...N0()]}],"min-block-size":[{"min-block":["auto",...N0()]}],"max-block-size":[{"max-block":["none",...N0()]}],w:[{w:[z,"screen",...T0()]}],"min-w":[{"min-w":[z,"screen","none",...T0()]}],"max-w":[{"max-w":[z,"screen","none","prose",{screen:[A]},...T0()]}],h:[{h:["screen","lh",...T0()]}],"min-h":[{"min-h":["screen","lh","none",...T0()]}],"max-h":[{"max-h":["screen","lh",...T0()]}],"font-size":[{text:["base",X,C1,e0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[Y,_7,E7]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",P2,M]}],"font-family":[{font:[K7,Q7,H]}],"font-features":[{"font-features":[M]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[Z,q,M]}],"line-clamp":[{"line-clamp":[y,"none",q,_6]}],leading:[{leading:[J,..._()]}],"list-image":[{"list-image":["none",q,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W0(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",q,e0]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[y,"auto",q,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:f()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},p0,q,M],radial:["",q,M],conic:[p0,q,M]},L7,T7]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:U0()}],"gradient-via-pos":[{via:U0()}],"gradient-to-pos":[{to:U0()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:H0()}],"rounded-s":[{"rounded-s":H0()}],"rounded-e":[{"rounded-e":H0()}],"rounded-t":[{"rounded-t":H0()}],"rounded-r":[{"rounded-r":H0()}],"rounded-b":[{"rounded-b":H0()}],"rounded-l":[{"rounded-l":H0()}],"rounded-ss":[{"rounded-ss":H0()}],"rounded-se":[{"rounded-se":H0()}],"rounded-ee":[{"rounded-ee":H0()}],"rounded-es":[{"rounded-es":H0()}],"rounded-tl":[{"rounded-tl":H0()}],"rounded-tr":[{"rounded-tr":H0()}],"rounded-br":[{"rounded-br":H0()}],"rounded-bl":[{"rounded-bl":H0()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-bs":[{"border-bs":k()}],"border-w-be":[{"border-be":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W0(),"hidden","none"]}],"divide-style":[{divide:[...W0(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...W0(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,q,M]}],"outline-w":[{outline:["",y,C1,e0]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",V,G$,J$]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",W,G$,J$]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[y,e0]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",E,G$,J$]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[y,q,M]}],"mix-blend":[{"mix-blend":[...K0(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K0()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z0()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z0()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":Z0()}],"mask-image-t-to-pos":[{"mask-t-to":Z0()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":Z0()}],"mask-image-r-to-pos":[{"mask-r-to":Z0()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":Z0()}],"mask-image-b-to-pos":[{"mask-b-to":Z0()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":Z0()}],"mask-image-l-to-pos":[{"mask-l-to":Z0()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":Z0()}],"mask-image-x-to-pos":[{"mask-x-to":Z0()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":Z0()}],"mask-image-y-to-pos":[{"mask-y-to":Z0()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[q,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z0()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z0()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":c()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z0()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z0()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:f()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,M]}],filter:[{filter:["","none",q,M]}],blur:[{blur:T1()}],brightness:[{brightness:[y,q,M]}],contrast:[{contrast:[y,q,M]}],"drop-shadow":[{"drop-shadow":["","none",F,G$,J$]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",y,q,M]}],"hue-rotate":[{"hue-rotate":[y,q,M]}],invert:[{invert:["",y,q,M]}],saturate:[{saturate:[y,q,M]}],sepia:[{sepia:["",y,q,M]}],"backdrop-filter":[{"backdrop-filter":["","none",q,M]}],"backdrop-blur":[{"backdrop-blur":T1()}],"backdrop-brightness":[{"backdrop-brightness":[y,q,M]}],"backdrop-contrast":[{"backdrop-contrast":[y,q,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,q,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,q,M]}],"backdrop-invert":[{"backdrop-invert":["",y,q,M]}],"backdrop-opacity":[{"backdrop-opacity":[y,q,M]}],"backdrop-saturate":[{"backdrop-saturate":[y,q,M]}],"backdrop-sepia":[{"backdrop-sepia":["",y,q,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",q,M]}],ease:[{ease:["linear","initial",P,q,M]}],delay:[{delay:[y,q,M]}],animate:[{animate:["none",I,q,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,q,M]}],"perspective-origin":[{"perspective-origin":m()}],rotate:[{rotate:c0()}],"rotate-x":[{"rotate-x":c0()}],"rotate-y":[{"rotate-y":c0()}],"rotate-z":[{"rotate-z":c0()}],scale:[{scale:s0()}],"scale-x":[{"scale-x":s0()}],"scale-y":[{"scale-y":s0()}],"scale-z":[{"scale-z":s0()}],"scale-3d":["scale-3d"],skew:[{skew:H1()}],"skew-x":[{"skew-x":H1()}],"skew-y":[{"skew-y":H1()}],transform:[{transform:[q,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:m()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:h0()}],"translate-x":[{"translate-x":h0()}],"translate-y":[{"translate-y":h0()}],"translate-z":[{"translate-z":h0()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,M]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[y,C1,e0,_6]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var h6=X7(x7);function A$(...$){return h6(Z$($))}var W$=i(S1(),1),P7={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"};function O7({size:$="md",className:H}){return W$.jsxDEV(d0,{className:A$("animate-spin",P7[$],H)},void 0,!1,void 0,this)}function jQ1(){return W$.jsxDEV("div",{className:"flex items-center justify-center py-24",children:W$.jsxDEV(O7,{size:"lg",className:"text-muted-foreground"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var M7=($,H,X={})=>{let Y=`${$}=${H}`;if($.startsWith("__Secure-")&&!X.secure)throw Error("__Secure- Cookie must have Secure attributes");if($.startsWith("__Host-")){if(!X.secure)throw Error("__Host- Cookie must have Secure attributes");if(X.path!=="/")throw Error('__Host- Cookie must have Path attributes with "/"');if(X.domain)throw Error("__Host- Cookie must not have Domain attributes")}for(let Z of["domain","path"])if(X[Z]&&/[;\r\n]/.test(X[Z]))throw Error(`${Z} must not contain ";", "\\r", or "\\n"`);if(X&&typeof X.maxAge==="number"&&X.maxAge>=0){if(X.maxAge>34560000)throw Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");Y+=`; Max-Age=${X.maxAge|0}`}if(X.domain&&X.prefix!=="host")Y+=`; Domain=${X.domain}`;if(X.path)Y+=`; Path=${X.path}`;if(X.expires){if(X.expires.getTime()-Date.now()>34560000000)throw Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");Y+=`; Expires=${X.expires.toUTCString()}`}if(X.httpOnly)Y+="; HttpOnly";if(X.secure)Y+="; Secure";if(X.sameSite)Y+=`; SameSite=${X.sameSite.charAt(0).toUpperCase()+X.sameSite.slice(1)}`;if(X.priority)Y+=`; Priority=${X.priority.charAt(0).toUpperCase()+X.priority.slice(1)}`;if(X.partitioned){if(!X.secure)throw Error("Partitioned Cookie must have Secure attributes");Y+="; Partitioned"}return Y},m6=($,H,X)=>{return H=encodeURIComponent(H),M7($,H,X)};var y6=($,H)=>{return $=$.replace(/\/+$/,""),$=$+"/",H=H.replace(/^\/+/,""),$+H},B$=($,H)=>{for(let[X,Y]of Object.entries(H)){let Z=new RegExp("/:"+X+"(?:{[^/]+})?\\??");$=$.replace(Z,Y?`/${Y}`:"")}return $},d6=($)=>{let H=new URLSearchParams;for(let[X,Y]of Object.entries($)){if(Y===void 0)continue;if(Array.isArray(Y))for(let Z of Y)H.append(X,Z);else H.set(X,Y)}return H},u6=($,H)=>{switch(H){case"ws":return $.replace(/^http/,"ws");case"http":return $.replace(/^ws/,"http")}},q2=($)=>{if(/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test($))return $.replace(/\/index(?=\?|$)/,"/");return $.replace(/\/index(?=\?|$)/,"")};function z$($){return typeof $==="object"&&$!==null&&!Array.isArray($)}function R2($,H){if(!z$($)&&!z$(H))return H;let X={...$};for(let Y in H){let Z=H[Y];if(z$(X[Y])&&z$(Z))X[Y]=R2(X[Y],Z);else X[Y]=Z}return X}var p6=($,H)=>{return new Proxy(()=>{},{get(Y,Z){if(typeof Z!=="string"||Z==="then")return;return p6($,[...H,Z])},apply(Y,Z,J){return $({path:H,args:J})}})},R7=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor($,H,X){this.url=$,this.method=H,this.buildSearchParams=X.buildSearchParams}fetch=async($,H)=>{if($){if($.query)this.queryParams=this.buildSearchParams($.query);if($.form){let z=new FormData;for(let[D,U]of Object.entries($.form)){if(U===void 0)continue;if(Array.isArray(U))for(let V of U)z.append(D,V);else z.append(D,U)}this.rBody=z}if($.json)this.rBody=JSON.stringify($.json),this.cType="application/json";if($.param)this.pathParams=$.param}let X=this.method.toUpperCase(),Y={...$?.header,...typeof H?.headers==="function"?await H.headers():H?.headers};if($?.cookie){let z=[];for(let[D,U]of Object.entries($.cookie))z.push(m6(D,U,{path:"/"}));Y.Cookie=z.join(",")}if(this.cType)Y["Content-Type"]=this.cType;let Z=new Headers(Y??void 0),J=this.url;if(J=q2(J),J=B$(J,this.pathParams),this.queryParams)J=J+"?"+this.queryParams.toString();X=this.method.toUpperCase();let A=!(X==="GET"||X==="HEAD");return(H?.fetch||fetch)(J,{body:A?this.rBody:void 0,method:X,headers:Z,...H?.init})}},I2=($,H)=>p6(function X(Y){let Z=H?.buildSearchParams??d6,J=[...Y.path],A=J.slice(-3).reverse();if(A[0]==="toString"){if(A[1]==="name")return A[2]||"";return X.toString()}if(A[0]==="valueOf"){if(A[1]==="name")return A[2]||"";return X}let z="";if(/^\$/.test(A[0])){let W=J.pop();if(W)z=W.replace(/^\$/,"")}let D=J.join("/"),U=y6($,D);if(z==="url"||z==="path"){let W=U;if(Y.args[0]){if(Y.args[0].param)W=B$(U,Y.args[0].param);if(Y.args[0].query)W=W+"?"+Z(Y.args[0].query).toString()}if(W=q2(W),z==="url")return new URL(W);return W.slice($.replace(/\/+$/,"").length).replace(/^\/?/,"/")}if(z==="ws"){let W=u6(Y.args[0]&&Y.args[0].param?B$(U,Y.args[0].param):U,"ws"),E=new URL(W),F=Y.args[0]?.query;if(F)Object.entries(F).forEach(([T,Q])=>{if(Array.isArray(Q))Q.forEach((P)=>E.searchParams.append(T,P));else E.searchParams.set(T,Q)});return((...T)=>{if(H?.webSocket!==void 0&&typeof H.webSocket==="function")return H.webSocket(...T);return new WebSocket(...T)})(E.toString())}let V=new R7(U,z,{buildSearchParams:Z});if(z){H??={};let W=R2(H,{...Y.args[1]});return V.fetch(Y.args[0],W)}return V},[]);var I7=I2("/"),b=I7.api;async function g($){if(!$.ok){let H=await $.text().catch(()=>""),X=$.statusText||`${$.status}`;try{let Y=JSON.parse(H);if(Y.error)X=Y.error}catch{}throw Error(X)}return $.json()}function JT1($){return F0({queryKey:["agents",$],queryFn:async()=>g(await b.projects[":id"].agents.$get({param:{id:$}})),enabled:!!$})}function GT1($,H){return F0({queryKey:["agent-detail",$,H],queryFn:async()=>g(await b.projects[":id"].agents[":aid"].$get({param:{id:$,aid:H}})),enabled:!!$&&!!H})}function AT1($){let H=t();return o({mutationFn:async(X)=>g(await b.projects[":id"].agents.$post({param:{id:$},json:X})),onSuccess:()=>H.invalidateQueries({queryKey:["agents",$]})})}function WT1($){let H=t();return o({mutationFn:async({id:X,...Y})=>g(await b.projects[":id"].agents[":aid"].$patch({param:{id:$,aid:X},json:Y})),onSuccess:(X,Y)=>{H.invalidateQueries({queryKey:["agents",$]}),H.invalidateQueries({queryKey:["agent-detail",$,Y.id]})}})}function zT1($){let H=t();return o({mutationFn:async(X)=>g(await b.projects[":id"].agents[":aid"].$delete({param:{id:$,aid:X}})),onSuccess:()=>H.invalidateQueries({queryKey:["agents",$]})})}function BT1($){let H=t();return o({mutationFn:async(X)=>g(await b.projects[":id"].agents[":aid"].restart.$post({param:{id:$,aid:X}})),onSuccess:()=>H.invalidateQueries({queryKey:["agents",$]})})}function ET1($,H){return I1({queryKey:["messages",$,H],queryFn:async({pageParam:X})=>{let Y={};if(X!=null)Y.before=String(X);return g(await b.projects[":id"].agents[":aid"].messages.$get({param:{id:$,aid:H},query:Y}))},enabled:!!$&&!!H,initialPageParam:void 0,getNextPageParam:(X)=>{if(!X.hasMore||X.messages.length===0)return;return X.messages[0].id}})}function QT1($){let H=t();return o({mutationFn:async({agentId:X,text:Y,attachments:Z})=>g(await b.projects[":id"].agents[":aid"].message.$post({param:{id:$,aid:X},json:{text:Y,attachments:Z}})),onSuccess:(X,{agentId:Y})=>H.invalidateQueries({queryKey:["messages",$,Y]})})}function TT1($){return o({mutationFn:async(H)=>g(await b.projects[":id"].agents[":aid"].interrupt.$post({param:{id:$,aid:H}}))})}function KT1($){return o({mutationFn:async({agentId:H,messageId:X})=>g(await b.projects[":id"].agents[":aid"]["mark-read"].$post({param:{id:$,aid:H},json:{messageId:X}}))})}function FT1($){return o({mutationFn:async(H)=>g(await b.projects[":id"].agents[":aid"].clear.$post({param:{id:$,aid:H}}))})}function S7(){return F0({queryKey:["projects"],queryFn:async()=>g(await b.projects.$get())})}function k7($){let{data:H}=S7();return H?.find((Y)=>Y.name===$)?.id}function OT1(){let{projectName:$}=M$();return{projectId:k7($),projectName:$??""}}function MT1(){let $=t();return o({mutationFn:async(H)=>g(await b.projects.$post({json:{name:H}})),onSuccess:()=>$.invalidateQueries({queryKey:["projects"]})})}function qT1(){let $=t();return o({mutationFn:async(H)=>g(await b.projects[":id"].$delete({param:{id:H}})),onSuccess:()=>$.invalidateQueries({queryKey:["projects"]})})}function RT1(){let $=t();return o({mutationFn:async(H)=>g(await b.projects[":id"].restart.$post({param:{id:H}})),onSuccess:()=>$.invalidateQueries({queryKey:["projects"]})})}function IT1($){let H=t();return o({mutationFn:async(X)=>g(await b.projects[":id"].$patch({param:{id:$},json:{name:X}})),onSuccess:()=>H.invalidateQueries({queryKey:["projects"]})})}function jT1($){return I1({queryKey:["activity",$],queryFn:async({pageParam:H})=>{let X={};if(H!=null)X.before=String(H);return g(await b.projects[":id"].activity.$get({param:{id:$},query:X}))},enabled:!!$,initialPageParam:void 0,getNextPageParam:(H)=>{if(!H.hasMore||H.messages.length===0)return;return H.messages[H.messages.length-1].id}})}function mT1($=!1){return F0({queryKey:["catalog-agents"],queryFn:async()=>g(await b.catalog.agents.$get({query:{}})),enabled:$})}function yT1($=!1){return F0({queryKey:["catalog-categories"],queryFn:async()=>g(await b.catalog.categories.$get()),enabled:$})}function dT1($){return F0({queryKey:["catalog-agent",$],queryFn:async()=>g(await b.catalog.agents[":name"].$get({param:{name:$}})),enabled:!!$})}function sT1($){return F0({queryKey:["project-doc",$],queryFn:async()=>g(await b.projects[":id"].settings["project-doc"].$get({param:{id:$}})),enabled:!!$})}function iT1($){let H=t();return o({mutationFn:async(X)=>g(await b.projects[":id"].settings["project-doc"].$put({param:{id:$},json:{content:X}})),onSuccess:()=>H.invalidateQueries({queryKey:["project-doc",$]})})}function tT1($,H){return F0({queryKey:["shared-drive",$,H],queryFn:async()=>g(await b.projects[":id"]["shared-drive"].$get({param:{id:$},query:{path:H}})),enabled:!!$})}function eT1($){let H=t();return o({mutationFn:async({name:X,path:Y})=>g(await b.projects[":id"]["shared-drive"].directory.$post({param:{id:$},json:{name:X,path:Y}})),onSuccess:()=>H.invalidateQueries({queryKey:["shared-drive",$]})})}function $K1($){let H=t();return o({mutationFn:async(X)=>g(await b.projects[":id"]["shared-drive"].$delete({param:{id:$},query:{path:X}})),onSuccess:()=>H.invalidateQueries({queryKey:["shared-drive",$]})})}function HK1($){let H=t();return o({mutationFn:async({name:X,content:Y,path:Z})=>g(await b.projects[":id"]["shared-drive"].upload.$post({param:{id:$},json:{name:X,content:Y,path:Z}})),onSuccess:()=>H.invalidateQueries({queryKey:["shared-drive",$]})})}function XK1($){return o({mutationFn:async(H)=>g(await b.projects[":id"]["shared-drive"].preview.$get({param:{id:$},query:{path:H}}))})}function AK1($){return F0({queryKey:["schedules",$],queryFn:async()=>g(await b.projects[":id"].schedules.$get({param:{id:$}})),enabled:!!$})}function WK1($){let H=t();return o({mutationFn:async(X)=>g(await b.projects[":id"].schedules.$post({param:{id:$},json:X})),onSuccess:()=>H.invalidateQueries({queryKey:["schedules",$]})})}function zK1($){let H=t();return o({mutationFn:async({id:X,...Y})=>g(await b.projects[":id"].schedules[":sid"].$patch({param:{id:$,sid:X},json:Y})),onSuccess:()=>H.invalidateQueries({queryKey:["schedules",$]})})}function BK1($){let H=t();return o({mutationFn:async(X)=>g(await b.projects[":id"].schedules[":sid"].$delete({param:{id:$,sid:X}})),onSuccess:()=>H.invalidateQueries({queryKey:["schedules",$]})})}function VK1($){let H=t();return o({mutationFn:async({id:X,enabled:Y})=>g(await b.projects[":id"].schedules[":sid"].toggle.$post({param:{id:$,sid:X},json:{enabled:Y}})),onSuccess:()=>H.invalidateQueries({queryKey:["schedules",$]})})}function DK1($){return o({mutationFn:async(H)=>g(await b.projects[":id"].schedules[":sid"].run.$post({param:{id:$,sid:H}}))})}var e6=i(X0(),1);var D0=i(X0(),1);var i6=i(X0(),1);function s6($,H){if(typeof $==="function")return $(H);else if($!==null&&$!==void 0)$.current=H}function k2(...$){return(H)=>{let X=!1,Y=$.map((Z)=>{let J=s6(Z,H);if(!X&&typeof J=="function")X=!0;return J});if(X)return()=>{for(let Z=0;Z<Y.length;Z++){let J=Y[Z];if(typeof J=="function")J();else s6($[Z],null)}}}}function yK1(...$){return i6.useCallback(k2(...$),$)}var V$=i(e1(),1),f7=Symbol.for("react.lazy"),D$=D0[" use ".trim().toString()];function b7($){return typeof $==="object"&&$!==null&&"then"in $}function r6($){return $!=null&&typeof $==="object"&&"$$typeof"in $&&$.$$typeof===f7&&"_payload"in $&&b7($._payload)}function g7($){let H=h7($),X=D0.forwardRef((Y,Z)=>{let{children:J,...A}=Y;if(r6(J)&&typeof D$==="function")J=D$(J._payload);let z=D0.Children.toArray(J),D=z.find(y7);if(D){let U=D.props.children,V=z.map((W)=>{if(W===D){if(D0.Children.count(U)>1)return D0.Children.only(null);return D0.isValidElement(U)?U.props.children:null}else return W});return V$.jsx(H,{...A,ref:Z,children:D0.isValidElement(U)?D0.cloneElement(U,void 0,V):null})}return V$.jsx(H,{...A,ref:Z,children:J})});return X.displayName=`${$}.Slot`,X}var n6=g7("Slot");function h7($){let H=D0.forwardRef((X,Y)=>{let{children:Z,...J}=X;if(r6(Z)&&typeof D$==="function")Z=D$(Z._payload);if(D0.isValidElement(Z)){let A=u7(Z),z=d7(J,Z.props);if(Z.type!==D0.Fragment)z.ref=Y?k2(Y,A):A;return D0.cloneElement(Z,z)}return D0.Children.count(Z)>1?D0.Children.only(null):null});return H.displayName=`${$}.SlotClone`,H}var m7=Symbol("radix.slottable");function y7($){return D0.isValidElement($)&&typeof $.type==="function"&&"__radixId"in $.type&&$.type.__radixId===m7}function d7($,H){let X={...H};for(let Y in H){let Z=$[Y],J=H[Y];if(/^on[A-Z]/.test(Y)){if(Z&&J)X[Y]=(...z)=>{let D=J(...z);return Z(...z),D};else if(Z)X[Y]=Z}else if(Y==="style")X[Y]={...Z,...J};else if(Y==="className")X[Y]=[Z,J].filter(Boolean).join(" ")}return{...$,...X}}function u7($){let H=Object.getOwnPropertyDescriptor($.props,"ref")?.get,X=H&&"isReactWarning"in H&&H.isReactWarning;if(X)return $.ref;if(H=Object.getOwnPropertyDescriptor($,"ref")?.get,X=H&&"isReactWarning"in H&&H.isReactWarning,X)return $.props.ref;return $.props.ref||$.ref}var a6=($)=>typeof $==="boolean"?`${$}`:$===0?"0":$,o6=Z$,t6=($,H)=>(X)=>{var Y;if((H===null||H===void 0?void 0:H.variants)==null)return o6($,X===null||X===void 0?void 0:X.class,X===null||X===void 0?void 0:X.className);let{variants:Z,defaultVariants:J}=H,A=Object.keys(Z).map((U)=>{let V=X===null||X===void 0?void 0:X[U],W=J===null||J===void 0?void 0:J[U];if(V===null)return null;let E=a6(V)||a6(W);return Z[U][E]}),z=X&&Object.entries(X).reduce((U,V)=>{let[W,E]=V;if(E===void 0)return U;return U[W]=E,U},{}),D=H===null||H===void 0?void 0:(Y=H.compoundVariants)===null||Y===void 0?void 0:Y.reduce((U,V)=>{let{class:W,className:E,...F}=V;return Object.entries(F).every((L)=>{let[T,Q]=L;return Array.isArray(Q)?Q.includes({...J,...z}[T]):{...J,...z}[T]===Q})?[...U,W,E]:U},[]);return o6($,A,D,X===null||X===void 0?void 0:X.class,X===null||X===void 0?void 0:X.className)};var $8=i(S1(),1),p7=t6("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l7=e6.forwardRef(({className:$,variant:H,size:X,asChild:Y=!1,...Z},J)=>{return $8.jsxDEV(Y?n6:"button",{className:A$(p7({variant:H,size:X,className:$})),ref:J,...Z},void 0,!1,void 0,this)});l7.displayName="Button";
|
|
30
|
-
export{i as Aa,F1 as Ba,c7 as Ca,s7 as Da,X0 as Ea,j7 as Fa,V4 as Ga,M$ as Ha,G5 as Ia,F4 as Ja,A5 as Ka,g5 as La,n5 as Ma,e1 as Na,t as Oa,e5 as Pa,S1 as Qa,k2 as Ra,yK1 as Sa,g7 as Ta,t6 as Ua,A$ as Va,p7 as Wa,l7 as Xa,w1 as Ya,E1 as Za,Q1 as _a,n$ as $a,a$ as ab,o$ as bb,t$ as cb,e$ as db,$2 as eb,H2 as fb,X2 as gb,Y2 as hb,Z2 as ib,J2 as jb,G2 as kb,A2 as lb,W2 as mb,z2 as nb,B2 as ob,V2 as pb,D2 as qb,U2 as rb,w2 as sb,E2 as tb,Q2 as ub,T2 as vb,K2 as wb,F2 as xb,L2 as yb,_2 as zb,N2 as Ab,x2 as Bb,O7 as Cb,jQ1 as Db,S7 as Eb,k7 as Fb,OT1 as Gb,MT1 as Hb,qT1 as Ib,RT1 as Jb,IT1 as Kb,JT1 as Lb,GT1 as Mb,AT1 as Nb,WT1 as Ob,zT1 as Pb,BT1 as Qb,ET1 as Rb,QT1 as Sb,TT1 as Tb,KT1 as Ub,FT1 as Vb,jT1 as Wb,mT1 as Xb,yT1 as Yb,dT1 as Zb,sT1 as _b,iT1 as $b,tT1 as ac,eT1 as bc,$K1 as cc,HK1 as dc,XK1 as ec,AK1 as fc,WK1 as gc,zK1 as hc,BK1 as ic,VK1 as jc,DK1 as kc};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as fN}from"/chunk-9c81zaw2.js";import{i as JN}from"/chunk-r19vjw47.js";import{k as oN,l as zN,m as UN,n as BN,o as l}from"/chunk-0v5erpy0.js";import{p as S}from"/chunk-6zekv36x.js";import"/chunk-abx95kyf.js";import"/chunk-19284fra.js";import{H as hN}from"/chunk-vp3by99k.js";import{I as qN}from"/chunk-62c2ejc6.js";import{R as yN}from"/chunk-9eadacms.js";import"/chunk-9g67pqq7.js";import"/chunk-08yrv2nn.js";import{Aa as X,Ab as $N,Bb as kN,Cb as V,Ea as s,Gb as r,Ha as PN,Lb as uN,Oa as x,Qa as k,Qb as QN,Rb as D,Sb as XN,Tb as _N,Ub as LN,Vb as GN,Xa as Y,Za as bN,gb as KN,hb as WN,jb as e,nb as i,ob as HN,rb as YN,wb as ZN,zb as ON}from"/chunk-p8qycd26.js";var y=X(s(),1),E=X(s(),1);var $=X(k(),1);function t({agent:W,onMenuToggle:v}){let{projectId:b}=r(),G=GN(b??"");return $.jsxDEV("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-border",children:[v&&$.jsxDEV(Y,{variant:"ghost",size:"icon",className:"md:hidden","aria-label":"Open menu",onClick:v,children:$.jsxDEV(i,{className:"h-5 w-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.jsxDEV("h2",{className:"text-lg font-semibold",children:W.name},void 0,!1,void 0,this),$.jsxDEV(l,{variant:JN(W.status),children:W.status},void 0,!1,void 0,this),$.jsxDEV("div",{className:"ml-auto",children:$.jsxDEV(oN,{children:[$.jsxDEV(zN,{asChild:!0,children:$.jsxDEV(Y,{variant:"ghost",size:"icon","aria-label":"Agent options",children:$.jsxDEV(bN,{className:"h-4 w-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),$.jsxDEV(UN,{align:"end",children:$.jsxDEV(BN,{onClick:()=>G.mutate(W.id),children:[$.jsxDEV(WN,{className:"h-4 w-4 mr-2"},void 0,!1,void 0,this),"Clear Session"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var o=X(s(),1);var N=X(k(),1),RN=52428800;function CN(W){if(W<1024)return`${W} B`;if(W<1048576)return`${(W/1024).toFixed(1)} KB`;return`${(W/1048576).toFixed(1)} MB`}var lN=o.memo(function({attachments:v,projectName:b,agentId:G}){if(!v.length)return null;return N.jsxDEV("div",{className:"flex flex-wrap gap-2 mt-2",children:v.map((J)=>{let K=`/api/projects/${b}/agents/${G}/attachments/${J.id}/${J.filename}`;return J.content_type.startsWith("image/")?N.jsxDEV("a",{href:K,target:"_blank",rel:"noopener noreferrer",className:"block rounded-md border border-border overflow-hidden hover:opacity-90 transition-opacity",children:N.jsxDEV("img",{src:K,alt:J.filename,loading:"lazy",className:"max-w-48 max-h-32 object-cover"},void 0,!1,void 0,this)},J.id,!1,void 0,this):N.jsxDEV("a",{href:K,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-3 py-2 rounded-md border border-border hover:bg-muted/50 text-sm",children:[N.jsxDEV(e,{className:"h-4 w-4 shrink-0 text-muted-foreground"},void 0,!1,void 0,this),N.jsxDEV("span",{className:"truncate max-w-40",children:J.filename},void 0,!1,void 0,this),N.jsxDEV("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:["(",CN(J.size),")"]},void 0,!0,void 0,this),N.jsxDEV(KN,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"},void 0,!1,void 0,this)]},J.id,!0,void 0,this)})},void 0,!1,void 0,this)}),SN=o.memo(function({msg:v}){let[b,G]=o.useState(!1),J=v.input?JSON.stringify(v.input,null,2):"",K=v.output!=null;return N.jsxDEV("div",{className:"max-w-[80%] rounded-lg border border-border text-sm w-fit",children:[N.jsxDEV("button",{type:"button",onClick:()=>G(!b),"aria-expanded":b,className:"flex w-full items-center gap-2 px-3 py-2 text-left hover:bg-muted/50 rounded-lg",children:[N.jsxDEV("span",{className:"text-muted-foreground",children:b?"▼":"▶"},void 0,!1,void 0,this),N.jsxDEV(l,{variant:"outline",className:"font-mono text-xs",children:v.tool},void 0,!1,void 0,this),K?N.jsxDEV(l,{variant:v.isError?"destructive":"secondary",className:"text-xs",children:v.isError?"error":"done"},void 0,!1,void 0,this):N.jsxDEV("span",{className:"text-xs text-muted-foreground animate-pulse",children:"running..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b&&N.jsxDEV("div",{className:"border-t border-border px-3 py-2 space-y-2",children:[J&&N.jsxDEV("div",{children:[N.jsxDEV("div",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Input"},void 0,!1,void 0,this),N.jsxDEV("pre",{className:"whitespace-pre-wrap font-mono text-xs bg-muted/50 rounded p-2 max-h-40 overflow-y-auto",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K&&N.jsxDEV("div",{children:[N.jsxDEV("div",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Output"},void 0,!1,void 0,this),N.jsxDEV("pre",{className:"whitespace-pre-wrap font-mono text-xs bg-muted/50 rounded p-2 max-h-40 overflow-y-auto",children:v.output},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}),dN=o.memo(function({msg:v}){let[b,G]=o.useState(!1);return N.jsxDEV("div",{className:"max-w-[80%] rounded-lg border border-border text-sm w-fit",children:[N.jsxDEV("button",{type:"button",onClick:()=>G(!b),"aria-expanded":b,className:"flex w-full items-center gap-2 px-3 py-1.5 text-left hover:bg-muted/50 rounded-lg italic",children:[N.jsxDEV("span",{className:"text-muted-foreground",children:b?"▼":"▶"},void 0,!1,void 0,this),N.jsxDEV("span",{className:"text-muted-foreground",children:["Message from ",v.fromAgent]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),b&&N.jsxDEV("div",{className:"border-t border-border px-3 py-2",children:N.jsxDEV(S,{children:v.text??""},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}),mN=o.memo(function({msg:v}){let[b,G]=o.useState(!1);return N.jsxDEV("div",{className:"max-w-[80%] rounded-lg border border-border text-sm w-fit",children:[N.jsxDEV(Y,{variant:"ghost",onClick:()=>G(!b),"aria-expanded":b,className:"flex w-full items-center gap-2 px-3 py-1.5 text-left italic h-auto justify-start",children:[N.jsxDEV("span",{className:"text-muted-foreground",children:b?"▼":"▶"},void 0,!1,void 0,this),N.jsxDEV("span",{className:"text-muted-foreground",children:"System notification"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b&&N.jsxDEV("div",{className:"border-t border-border px-3 py-2",children:N.jsxDEV(S,{children:v.text??""},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});function IN(W){return W.map((v)=>{let{content:b}=v;return{id:v.id,role:v.role,ts:v.createdAt,text:b.text,tool:b.tool,tool_use_id:b.tool_use_id,input:b.input,output:b.output,isError:b.isError,fromAgent:b.fromAgent,attachments:b.attachments}})}function NN({agent:W,streamingText:v}){let{projectId:b,projectName:G}=r(),J=x(),K=()=>J.setQueryData(["agents",b],(w)=>w?.map((U)=>U.id===W.id?{...U,busy:!0}:U)),{data:_,isLoading:P,fetchNextPage:d,hasNextPage:a,isFetchingNextPage:j}=D(b,W.id),M=XN(b??""),q=_N(b??""),B=QN(b??""),h=o.useMemo(()=>{if(!_)return[];let w=[..._.pages].reverse().flatMap((U)=>U.messages);return IN(w)},[_]),T=a??!1,u=j,[L,m]=o.useState(""),[C,f]=o.useState(""),[H,O]=o.useState([]),F=o.useRef(null),A=o.useRef(null),p=o.useRef(null),I=o.useRef(null),n=o.useRef(0),g=o.useRef(0),c=o.useRef(!1);o.useEffect(()=>{f(""),c.current=!1,n.current=0,g.current=0},[W.id]),o.useEffect(()=>{f(v??"")},[v]),o.useEffect(()=>{let w=n.current,U=I.current;if(U&&h.length>0){if(!c.current)c.current=!0,p.current?.scrollIntoView();else if(h.length>w){let Z=g.current;if(Z>0&&U.scrollHeight>Z&&U.scrollTop<50)U.scrollTop=U.scrollHeight-Z;else p.current?.scrollIntoView({behavior:"smooth"})}}n.current=h.length},[h]),o.useEffect(()=>{if(C&&c.current)p.current?.scrollIntoView()},[C]),o.useEffect(()=>{if(W.busy&&c.current)p.current?.scrollIntoView({behavior:"smooth"})},[W.busy]),o.useEffect(()=>{let w=I.current;if(w)g.current=w.scrollHeight});let MN=o.useCallback(()=>{let w=I.current;if(!w||!T||u)return;if(w.scrollTop===0&&h.length>0)d()},[T,u,d,h.length]),TN=o.useCallback((w)=>{let U=w.target.files;if(!U)return;Array.from(U).forEach((Z)=>{if(Z.size>RN)return;let R=new FileReader;R.onload=()=>{let pN=R.result;O((cN)=>[...cN,{name:Z.name,size:Z.size,base64:pN,content_type:Z.type||"application/octet-stream"}])},R.readAsDataURL(Z)}),w.target.value=""},[]),FN=o.useCallback((w)=>{O((U)=>U.filter((Z,R)=>R!==w))},[]),vN=()=>{let w=L.trim();if(!w&&H.length===0)return;let U=H.length>0?H.map((Z)=>({name:Z.name,content:Z.base64,content_type:Z.content_type})):void 0;if(K(),M.mutate({agentId:W.id,text:w||"",attachments:U}),m(""),O([]),A.current)A.current.style.height="auto"},AN=h.length>0||C.length>0;return N.jsxDEV("div",{className:"flex flex-col h-full",children:[N.jsxDEV("div",{ref:I,onScroll:MN,className:"flex-1 overflow-y-auto p-4 space-y-3",children:[u&&N.jsxDEV("div",{className:"flex justify-center py-2",children:N.jsxDEV("span",{className:"text-xs text-muted-foreground animate-pulse",children:"Loading older messages..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),P&&N.jsxDEV("div",{className:"flex items-center justify-center h-full",children:N.jsxDEV(V,{size:"md",className:"text-muted-foreground"},void 0,!1,void 0,this)},void 0,!1,void 0,this),!P&&!AN&&N.jsxDEV("div",{className:"flex flex-col items-center justify-center h-full gap-4 max-w-sm mx-auto text-center",children:[N.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Send a message to start working with this agent."},void 0,!1,void 0,this),W.status==="active"&&N.jsxDEV("div",{className:"flex flex-wrap justify-center gap-2",children:["What can you help me with?","What tools do you have?"].map((w)=>N.jsxDEV(Y,{variant:"outline",size:"sm",className:"rounded-full",onClick:()=>{K(),M.mutate({agentId:W.id,text:w})},children:w},w,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.map((w,U)=>w.role==="tool_use"?N.jsxDEV(SN,{msg:w},w.id??`msg-${U}`,!1,void 0,this):w.role==="inter_agent"?N.jsxDEV(dN,{msg:w},w.id??`msg-${U}`,!1,void 0,this):w.role==="system"?N.jsxDEV(mN,{msg:w},w.id??`msg-${U}`,!1,void 0,this):N.jsxDEV("div",{className:`flex ${w.role==="user"?"justify-end":"justify-start"}`,children:N.jsxDEV("div",{className:`px-3 py-1.5 rounded-lg text-sm w-fit max-w-[80%] ${w.role==="user"?"bg-primary/10 text-foreground":"bg-muted"}`,children:[w.text?N.jsxDEV(S,{children:w.text},void 0,!1,void 0,this):null,w.attachments&&w.attachments.length>0&&N.jsxDEV(lN,{attachments:w.attachments,projectName:G,agentId:W.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},w.id??`msg-${U}`,!1,void 0,this)),C&&N.jsxDEV("div",{className:"flex justify-start",children:N.jsxDEV("div",{className:"px-3 py-1.5 rounded-lg text-sm w-fit max-w-[80%] bg-muted",children:N.jsxDEV(S,{children:C},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),W.busy&&!C&&N.jsxDEV("div",{className:"flex items-center gap-2 px-3 py-2 text-xs text-muted-foreground",role:"status","aria-live":"polite",children:[N.jsxDEV("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-status-active animate-pulse","aria-hidden":"true"},void 0,!1,void 0,this),"Thinking..."]},void 0,!0,void 0,this),N.jsxDEV("div",{ref:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.status==="active"?N.jsxDEV("div",{className:"border-t border-border p-4",children:[N.jsxDEV("input",{ref:F,type:"file",multiple:!0,className:"hidden",onChange:TN},void 0,!1,void 0,this),H.length>0&&N.jsxDEV("div",{className:"flex flex-wrap gap-2 mb-2",children:H.map((w,U)=>N.jsxDEV("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border border-border bg-muted/50 text-xs",children:[N.jsxDEV(e,{className:"h-3 w-3 text-muted-foreground"},void 0,!1,void 0,this),N.jsxDEV("span",{className:"truncate max-w-32",children:w.name},void 0,!1,void 0,this),N.jsxDEV("span",{className:"text-muted-foreground",children:["(",CN(w.size),")"]},void 0,!0,void 0,this),N.jsxDEV("button",{type:"button",onClick:()=>FN(U),className:"text-muted-foreground hover:text-foreground",children:N.jsxDEV($N,{className:"h-3 w-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${w.name}-${U}`,!0,void 0,this))},void 0,!1,void 0,this),N.jsxDEV("div",{className:"flex gap-2 items-end",children:[N.jsxDEV(Y,{variant:"ghost",size:"icon",className:"shrink-0",onClick:()=>F.current?.click(),"aria-label":"Attach file",children:N.jsxDEV(YN,{className:"h-4 w-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(hN,{ref:A,value:L,onChange:(w)=>{m(w.target.value),w.target.style.height="auto",w.target.style.height=Math.min(w.target.scrollHeight,150)+"px"},placeholder:"Type a message...",rows:1,className:"min-h-0 resize-none",onKeyDown:(w)=>{if(w.key==="Enter"&&!w.shiftKey)w.preventDefault(),vN()}},void 0,!1,void 0,this),W.busy?N.jsxDEV(Y,{variant:"destructive",size:"icon",onClick:()=>q.mutate(W.id),"aria-label":"Stop",children:N.jsxDEV(ZN,{className:"h-4 w-4 fill-current"},void 0,!1,void 0,this)},void 0,!1,void 0,this):N.jsxDEV(Y,{onClick:vN,disabled:M.isPending,children:"Send"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):W.status==="idle"?N.jsxDEV("div",{className:"border-t border-border p-4",children:N.jsxDEV("div",{className:"flex items-center justify-between gap-3",children:[N.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Agent is idle. It will restart automatically when the VM wakes up."},void 0,!1,void 0,this),N.jsxDEV(Y,{variant:"outline",size:"sm",onClick:()=>B.mutate(W.id),disabled:B.isPending,children:B.isPending?"Restarting...":"Restart"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var z=X(k(),1);function wN({onNewAgent:W,onBrowseCatalog:v,onMenuToggle:b,hasAgents:G}){return z.jsxDEV("div",{className:"flex flex-col h-full",children:[b&&z.jsxDEV("div",{className:"px-4 py-3 border-b border-border md:hidden",children:z.jsxDEV(Y,{variant:"ghost",size:"icon","aria-label":"Open menu",onClick:b,children:z.jsxDEV(i,{className:"h-5 w-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("div",{className:"flex flex-col items-center justify-center flex-1 p-8 max-w-lg mx-auto",children:[z.jsxDEV("h1",{className:"text-2xl font-bold mb-2",children:"Shire"},void 0,!1,void 0,this),G?z.jsxDEV(z.Fragment,{children:[z.jsxDEV("p",{className:"text-muted-foreground text-center mb-6",children:"Select an agent from the sidebar to start chatting."},void 0,!1,void 0,this),z.jsxDEV(Y,{onClick:W,children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z.jsxDEV(z.Fragment,{children:[z.jsxDEV("p",{className:"text-muted-foreground text-center mb-8",children:"Create AI agents that work together. Each agent runs in its own sandbox and can collaborate with others through messaging."},void 0,!1,void 0,this),z.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 w-full mb-8",children:[z.jsxDEV("div",{className:"flex flex-col items-center text-center gap-2 p-3",children:[z.jsxDEV("div",{className:"rounded-full bg-primary/10 p-2.5",children:z.jsxDEV(HN,{className:"h-5 w-5 text-primary"},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Chat with agents directly"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"flex flex-col items-center text-center gap-2 p-3",children:[z.jsxDEV("div",{className:"rounded-full bg-primary/10 p-2.5",children:z.jsxDEV(ON,{className:"h-5 w-5 text-primary"},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Agents collaborate autonomously"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"flex flex-col items-center text-center gap-2 p-3",children:[z.jsxDEV("div",{className:"rounded-full bg-primary/10 p-2.5",children:z.jsxDEV(kN,{className:"h-5 w-5 text-primary"},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Isolated VMs per project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"flex flex-col sm:flex-row gap-3",children:[v&&z.jsxDEV(Y,{variant:"outline",onClick:v,children:"Browse Catalog"},void 0,!1,void 0,this),z.jsxDEV(Y,{onClick:W,children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Q=X(k(),1);function iN(W,v,b,G){W.setQueryData(["agents",v],(J)=>J?.map((K)=>K.id===b?{...K,...G}:K))}function rN(){let{agentName:W}=PN(),{projectId:v,sidebarOpen:b,setSidebarOpen:G,onNewAgent:J,onBrowseCatalog:K}=fN(),_=x(),{data:P=[],isLoading:d,isError:a,error:j,refetch:M}=uN(v),q=W?P.find((O)=>O.name===W):P[0],B=q?.id,{data:h}=D(v,B),T=LN(v??""),[u,L]=E.useState(""),m=E.useCallback((O)=>{switch(O.type){case"text_delta":{let{delta:F}=O.payload;if(F)L((A)=>A+F);break}case"text":case"turn_complete":{if(L(""),B)_.invalidateQueries({queryKey:["messages",v,B]});break}case"tool_use":case"tool_result":case"inter_agent_message":case"attachment":case"error":case"system_message":{if(B)_.invalidateQueries({queryKey:["messages",v,B]});break}}},[v,B,_]);qN(v&&B?`project:${v}:agent:${B}`:null,m);let C=y.useRef(B);if(C.current!==B){if(C.current=B,u!=="")L("")}let f=h?.pages?.[0]?.messages?.at(-1)?.id,H=y.useRef(T);if(y.useEffect(()=>{H.current=T}),y.useEffect(()=>{if(!v||!B||!f)return;H.current.mutate({agentId:B,messageId:f}),iN(_,v,B,{unreadCount:0})},[v,B,f,_]),q)return Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV(t,{agent:q,onMenuToggle:()=>G(!b)},void 0,!1,void 0,this),Q.jsxDEV("div",{className:"flex-1 min-h-0",children:Q.jsxDEV(NN,{agent:q,streamingText:u},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(d)return Q.jsxDEV("div",{className:"flex items-center justify-center flex-1",children:Q.jsxDEV(V,{size:"lg",className:"text-muted-foreground"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(a)return Q.jsxDEV("div",{className:"flex items-center justify-center flex-1",children:Q.jsxDEV(yN,{message:j?.message||"Failed to load agents",onRetry:()=>M()},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Q.jsxDEV(wN,{onNewAgent:J,onBrowseCatalog:K,onMenuToggle:()=>G(!b),hasAgents:P.length>0},void 0,!1,void 0,this)}export{rN as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=(e)=>{switch(e){case"active":return"default";case"starting":case"bootstrapping":return"secondary";case"idle":return"outline";case"crashed":return"destructive";default:return"secondary"}},r=(e)=>{switch(e){case"claude_code":return"Claude Code";case"pi":return"Pi"}};
|
|
2
|
-
export{t as i,r as j};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Aa as b,Ea as m,Fa as Y,Na as R,Qa as B,Ta as V,Ua as F,Va as G}from"/chunk-p8qycd26.js";var H=b(m(),1);var k=b(m(),1);var o=b(m(),1),Z=b(Y(),1);var L=b(R(),1),_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W=_.reduce((y,a)=>{let l=V(`Primitive.${a}`),f=o.forwardRef((J,K)=>{let{asChild:Q,...T}=J,X=Q?l:a;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return L.jsx(X,{...T,ref:K})});return f.displayName=`Primitive.${a}`,{...y,[a]:f}},{});var q=b(R(),1),$="Label",z=k.forwardRef((y,a)=>{return q.jsx(W.label,{...y,ref:a,onMouseDown:(l)=>{if(l.target.closest("button, input, select, textarea"))return;if(y.onMouseDown?.(l),!l.defaultPrevented&&l.detail>1)l.preventDefault()}})});z.displayName=$;var P=z;var I=b(B(),1),A=F("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),N=H.forwardRef(({className:y,...a},l)=>I.jsxDEV(P,{ref:l,className:G(A(),y),...a},void 0,!1,void 0,this));N.displayName=P.displayName;
|
|
2
|
-
export{N as K};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Aa as e,Ea as d,Qa as r,Va as t}from"/chunk-p8qycd26.js";var a=e(d(),1);var o=e(r(),1),l=a.forwardRef(({className:n,...s},i)=>{return o.jsxDEV("textarea",{className:t("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:i,...s},void 0,!1,void 0,this)});l.displayName="Textarea";
|
|
2
|
-
export{l as H};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Aa as o,Ea as l,Qa as c,Va as r}from"/chunk-p8qycd26.js";var d=o(l(),1);var i=o(c(),1),n=d.forwardRef(({className:e,...t},a)=>i.jsxDEV("div",{ref:a,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...t},void 0,!1,void 0,this));n.displayName="Card";var m=d.forwardRef(({className:e,...t},a)=>i.jsxDEV("div",{ref:a,className:r("flex flex-col space-y-1.5 p-6",e),...t},void 0,!1,void 0,this));m.displayName="CardHeader";var s=d.forwardRef(({className:e,...t},a)=>i.jsxDEV("div",{ref:a,className:r("font-semibold leading-none tracking-tight",e),...t},void 0,!1,void 0,this));s.displayName="CardTitle";var f=d.forwardRef(({className:e,...t},a)=>i.jsxDEV("div",{ref:a,className:r("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));f.displayName="CardDescription";var H=d.forwardRef(({className:e,...t},a)=>i.jsxDEV("div",{ref:a,className:r("p-6 pt-0",e),...t},void 0,!1,void 0,this));H.displayName="CardContent";var T=d.forwardRef(({className:e,...t},a)=>i.jsxDEV("div",{ref:a,className:r("flex items-center p-6 pt-0",e),...t},void 0,!1,void 0,this));T.displayName="CardFooter";
|
|
2
|
-
export{n as d,m as e,s as f,f as g,H as h};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{H as I}from"/chunk-vp3by99k.js";import{K as u}from"/chunk-sxzad3y5.js";import{ka as B}from"/chunk-4ny2qr6s.js";import{xa as A}from"/chunk-dpy2bnvw.js";import{za as R}from"/chunk-0sevb013.js";import{$b as z,Aa as n,Cb as P,Db as S,Ea as _,Gb as C,Kb as k,Qa as l,Xa as m,_b as w,bb as L}from"/chunk-p8qycd26.js";var a=n(_(),1);var e=n(l(),1);function g(){let{projectId:c,projectName:o}=C(),{data:T,isLoading:U}=w(c),f=k(c??""),v=z(c??""),r=T?.content??"",h=f.isPending,N=v.isPending,[t,y]=a.useState(o),[d,b]=a.useState(r),$=/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,i=t.length>=1&&t.length<=63&&$.test(t),s=t!==o,J=d!==r;a.useEffect(()=>{y(o)},[o]),a.useEffect(()=>{b(r)},[r]);let M=()=>{f.mutate(t)},O=()=>{v.mutate(d)};if(!c)return e.jsxDEV(S,{},void 0,!1,void 0,this);return e.jsxDEV(A,{children:e.jsxDEV("div",{className:"space-y-6",children:[e.jsxDEV("div",{className:"flex items-center gap-3",children:[e.jsxDEV(m,{variant:"ghost",size:"icon","aria-label":"Back",onClick:()=>R(`/projects/${o}`),children:e.jsxDEV(L,{className:"h-5 w-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("h1",{className:"text-2xl font-bold",children:"Project Details"},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Manage project name and documentation."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(u,{htmlFor:"project-name",children:"Project Name"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"flex gap-2",children:[e.jsxDEV(B,{id:"project-name",value:t,onChange:(p)=>y(p.target.value),placeholder:"project-name",className:"max-w-sm","aria-describedby":s&&!i&&t.length>0?"project-name-error":void 0,"aria-invalid":s&&!i&&t.length>0},void 0,!1,void 0,this),e.jsxDEV(m,{onClick:M,disabled:!s||!i||h,children:h?"Renaming...":"Rename"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&!i&&t.length>0&&e.jsxDEV("p",{id:"project-name-error",className:"text-xs text-destructive",children:"Invalid name. Use lowercase letters, numbers, and hyphens (1-63 chars)."},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-xs text-muted-foreground",children:"Lowercase letters, numbers, and hyphens only. Renaming will change the project URL."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?e.jsxDEV("div",{className:"flex items-center justify-center py-8",children:e.jsxDEV(P,{size:"md",className:"text-muted-foreground"},void 0,!1,void 0,this)},void 0,!1,void 0,this):e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(u,{htmlFor:"project-doc",children:"PROJECT.md"},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-xs text-muted-foreground",children:"Shared project context visible to all agents. Agents check this before starting and after completing tasks."},void 0,!1,void 0,this),e.jsxDEV(I,{id:"project-doc",value:d,onChange:(p)=>b(p.target.value),className:"min-h-[400px] font-mono text-sm",placeholder:`# Project
|
|
2
|
-
|
|
3
|
-
Describe your project here...`},void 0,!1,void 0,this),e.jsxDEV("div",{className:"flex justify-end",children:e.jsxDEV(m,{onClick:O,disabled:!J||N,children:N?"Saving...":"Save Document"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var F=n(l(),1);function q(){return F.jsxDEV(g,{},void 0,!1,void 0,this)}export{q as default};
|