@ag-eco/agentplate-cli 0.13.0 → 0.13.1

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.
@@ -1,300 +0,0 @@
1
- var $h=Object.create;var{getPrototypeOf:Zh,defineProperty:xg,getOwnPropertyNames:Xh}=Object;var Jh=Object.prototype.hasOwnProperty;function Yh(Z){return this[Z]}var zh,Gh,P=(Z,J,z)=>{var G=Z!=null&&typeof Z==="object";if(G){var v=J?zh??=new WeakMap:Gh??=new WeakMap,Q=v.get(Z);if(Q)return Q}z=Z!=null?$h(Zh(Z)):{};let b=J||!Z||!Z.__esModule?xg(z,"default",{value:Z,enumerable:!0}):z;for(let g of Xh(Z))if(!Jh.call(b,g))xg(b,g,{get:Yh.bind(Z,g),enumerable:!0});if(G)v.set(Z,b);return b};var G9=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var Bh=(Z)=>Z;function vh(Z,J){this[Z]=Bh.bind(null,J)}var Hh=(Z,J)=>{for(var z in J)xg(Z,z,{get:J[z],enumerable:!0,configurable:!0,set:vh.bind(J,z)})};var K0=G9((Th,BG)=>{(function(){function Z(O,c){Object.defineProperty(G.prototype,O,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",c[0],c[1])}})}function J(O){if(O===null||typeof O!=="object")return null;return O=p0&&O[p0]||O["@@iterator"],typeof O==="function"?O:null}function z(O,c){O=(O=O.constructor)&&(O.displayName||O.name)||"ReactClass";var U0=O+"."+c;g0[U0]||(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.",c,O),g0[U0]=!0)}function G(O,c,U0){this.props=O,this.context=c,this.refs=N1,this.updater=U0||L5}function v(){}function Q(O,c,U0){this.props=O,this.context=c,this.refs=N1,this.updater=U0||L5}function b(){}function g(O){return""+O}function K(O){try{g(O);var c=!1}catch(C0){c=!0}if(c){c=console;var U0=c.error,k0=typeof Symbol==="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return U0.call(c,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k0),g(O)}}function F(O){if(O==null)return null;if(typeof O==="function")return O.$$typeof===iw?null:O.displayName||O.name||null;if(typeof O==="string")return O;switch(O){case l:return"Fragment";case z0:return"Profiler";case M:return"StrictMode";case X0:return"Suspense";case J0:return"SuspenseList";case N0:return"Activity"}if(typeof O==="object")switch(typeof O.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case o:return"Portal";case r:return O.displayName||"Context";case m:return(O._context.displayName||"Context")+".Consumer";case a:var c=O.render;return O=O.displayName,O||(O=c.displayName||c.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case w0:return c=O.displayName||null,c!==null?c:F(O.type)||"Memo";case b0:c=O._payload,O=O._init;try{return F(O(c))}catch(U0){}}return null}function L(O){if(O===l)return"<>";if(typeof O==="object"&&O!==null&&O.$$typeof===b0)return"<...>";try{var c=F(O);return c?"<"+c+">":"<...>"}catch(U0){return"<...>"}}function U(){var O=E0.A;return O===null?null:O.getOwner()}function k(){return Error("react-stack-top-frame")}function N(O){if(F5.call(O,"key")){var c=Object.getOwnPropertyDescriptor(O,"key").get;if(c&&c.isReactWarning)return!1}return O.key!==void 0}function A(O,c){function U0(){pw||(pw=!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)",c))}U0.isReactWarning=!0,Object.defineProperty(O,"key",{get:U0,configurable:!0})}function _(){var O=F(this.type);return G2[O]||(G2[O]=!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.")),O=this.props.ref,O!==void 0?O:null}function C(O,c,U0,k0,C0,c0){var u0=U0.ref;return O={$$typeof:u,type:O,key:c,props:U0,_owner:k0},(u0!==void 0?u0:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:_}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:C0}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:c0}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function x(O,c){return c=C(O.type,c,O.props,O._owner,O._debugStack,O._debugTask),O._store&&(c._store.validated=O._store.validated),c}function S(O){d(O)?O._store&&(O._store.validated=1):typeof O==="object"&&O!==null&&O.$$typeof===b0&&(O._payload.status==="fulfilled"?d(O._payload.value)&&O._payload.value._store&&(O._payload.value._store.validated=1):O._store&&(O._store.validated=1))}function d(O){return typeof O==="object"&&O!==null&&O.$$typeof===u}function i(O){var c={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(U0){return c[U0]})}function Z0(O,c){return typeof O==="object"&&O!==null&&O.key!=null?(K(O.key),i(""+O.key)):c.toString(36)}function p(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status==="string"?O.then(b,b):(O.status="pending",O.then(function(c){O.status==="pending"&&(O.status="fulfilled",O.value=c)},function(c){O.status==="pending"&&(O.status="rejected",O.reason=c)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function j(O,c,U0,k0,C0){var c0=typeof O;if(c0==="undefined"||c0==="boolean")O=null;var u0=!1;if(O===null)u0=!0;else switch(c0){case"bigint":case"string":case"number":u0=!0;break;case"object":switch(O.$$typeof){case u:case o:u0=!0;break;case b0:return u0=O._init,j(u0(O._payload),c,U0,k0,C0)}}if(u0){u0=O,C0=C0(u0);var o0=k0===""?"."+Z0(u0,0):k0;return W1(C0)?(U0="",o0!=null&&(U0=o0.replace(Iw,"$&/")+"/"),j(C0,c,U0,"",function(V0){return V0})):C0!=null&&(d(C0)&&(C0.key!=null&&(u0&&u0.key===C0.key||K(C0.key)),U0=x(C0,U0+(C0.key==null||u0&&u0.key===C0.key?"":(""+C0.key).replace(Iw,"$&/")+"/")+o0),k0!==""&&u0!=null&&d(u0)&&u0.key==null&&u0._store&&!u0._store.validated&&(U0._store.validated=2),C0=U0),c.push(C0)),1}if(u0=0,o0=k0===""?".":k0+":",W1(O))for(var h0=0;h0<O.length;h0++)k0=O[h0],c0=o0+Z0(k0,h0),u0+=j(k0,c,U0,c0,C0);else if(h0=J(O),typeof h0==="function")for(h0===O.entries&&(i5||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),i5=!0),O=h0.call(O),h0=0;!(k0=O.next()).done;)k0=k0.value,c0=o0+Z0(k0,h0++),u0+=j(k0,c,U0,c0,C0);else if(c0==="object"){if(typeof O.then==="function")return j(p(O),c,U0,k0,C0);throw c=String(O),Error("Objects are not valid as a React child (found: "+(c==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":c)+"). If you meant to render a collection of children, use an array instead.")}return u0}function $0(O,c,U0){if(O==null)return O;var k0=[],C0=0;return j(O,k0,"","",function(c0){return c.call(U0,c0,C0++)}),k0}function s(O){if(O._status===-1){var c=O._ioInfo;c!=null&&(c.start=c.end=performance.now()),c=O._result;var U0=c();if(U0.then(function(C0){if(O._status===0||O._status===-1){O._status=1,O._result=C0;var c0=O._ioInfo;c0!=null&&(c0.end=performance.now()),U0.status===void 0&&(U0.status="fulfilled",U0.value=C0)}},function(C0){if(O._status===0||O._status===-1){O._status=2,O._result=C0;var c0=O._ioInfo;c0!=null&&(c0.end=performance.now()),U0.status===void 0&&(U0.status="rejected",U0.reason=C0)}}),c=O._ioInfo,c!=null){c.value=U0;var k0=U0.displayName;typeof k0==="string"&&(c.name=k0)}O._status===-1&&(O._status=0,O._result=U0)}if(O._status===1)return c=O._result,c===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?`,c),"default"in c||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'))`,c),c.default;throw O._result}function E(){var O=E0.H;return O===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.`),O}function Q0(){E0.asyncTransitions--}function G0(O){if(rw===null)try{var c=("require"+Math.random()).slice(0,7);rw=(BG&&BG[c]).call(BG,"timers").setImmediate}catch(U0){rw=function(k0){J3===!1&&(J3=!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 C0=new MessageChannel;C0.port1.onmessage=k0,C0.port2.postMessage(void 0)}}return rw(O)}function q0(O){return 1<O.length&&typeof AggregateError==="function"?AggregateError(O):O[0]}function F0(O,c){c!==j6-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. "),j6=c}function e(O,c,U0){var k0=E0.actQueue;if(k0!==null)if(k0.length!==0)try{B0(k0),G0(function(){return e(O,c,U0)});return}catch(C0){E0.thrownErrors.push(C0)}else E0.actQueue=null;0<E0.thrownErrors.length?(k0=q0(E0.thrownErrors),E0.thrownErrors.length=0,U0(k0)):c(O)}function B0(O){if(!_4){_4=!0;var c=0;try{for(;c<O.length;c++){var U0=O[c];do{E0.didUsePromise=!1;var k0=U0(!1);if(k0!==null){if(E0.didUsePromise){O[c]=U0,O.splice(0,c);return}U0=k0}else break}while(1)}O.length=0}catch(C0){O.splice(0,c+1),E0.thrownErrors.push(C0)}finally{_4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),z0=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),r=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),X0=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),w0=Symbol.for("react.memo"),b0=Symbol.for("react.lazy"),N0=Symbol.for("react.activity"),p0=Symbol.iterator,g0={},L5={isMounted:function(){return!1},enqueueForceUpdate:function(O){z(O,"forceUpdate")},enqueueReplaceState:function(O){z(O,"replaceState")},enqueueSetState:function(O){z(O,"setState")}},p1=Object.assign,N1={};Object.freeze(N1),G.prototype.isReactComponent={},G.prototype.setState=function(O,c){if(typeof O!=="object"&&typeof O!=="function"&&O!=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,O,c,"setState")},G.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};var _1={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(O4 in _1)_1.hasOwnProperty(O4)&&Z(O4,_1[O4]);v.prototype=G.prototype,_1=Q.prototype=new v,_1.constructor=Q,p1(_1,G.prototype),_1.isPureReactComponent=!0;var W1=Array.isArray,iw=Symbol.for("react.client.reference"),E0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},F5=Object.prototype.hasOwnProperty,T1=console.createTask?console.createTask:function(){return null};_1={react_stack_bottom_frame:function(O){return O()}};var pw,a5,G2={},I4=_1.react_stack_bottom_frame.bind(_1,k)(),p$=T1(L(k)),i5=!1,Iw=/\/+/g,r4=typeof reportError==="function"?reportError:function(O){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O==="object"&&O!==null&&typeof O.message==="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(c))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",O);return}console.error(O)},J3=!1,rw=null,j6=0,n4=!1,_4=!1,nw=typeof queueMicrotask==="function"?function(O){queueMicrotask(function(){return queueMicrotask(O)})}:G0;_1=Object.freeze({__proto__:null,c:function(O){return E().useMemoCache(O)}});var O4={map:$0,forEach:function(O,c,U0){$0(O,function(){c.apply(this,arguments)},U0)},count:function(O){var c=0;return $0(O,function(){c++}),c},toArray:function(O){return $0(O,function(c){return c})||[]},only:function(O){if(!d(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};Th.Activity=N0,Th.Children=O4,Th.Component=G,Th.Fragment=l,Th.Profiler=z0,Th.PureComponent=Q,Th.StrictMode=M,Th.Suspense=X0,Th.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E0,Th.__COMPILER_RUNTIME=_1,Th.act=function(O){var c=E0.actQueue,U0=j6;j6++;var k0=E0.actQueue=c!==null?c:[],C0=!1;try{var c0=O()}catch(h0){E0.thrownErrors.push(h0)}if(0<E0.thrownErrors.length)throw F0(c,U0),O=q0(E0.thrownErrors),E0.thrownErrors.length=0,O;if(c0!==null&&typeof c0==="object"&&typeof c0.then==="function"){var u0=c0;return nw(function(){C0||n4||(n4=!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(h0,V0){C0=!0,u0.then(function(e0){if(F0(c,U0),U0===0){try{B0(k0),G0(function(){return e(e0,h0,V0)})}catch(q2){E0.thrownErrors.push(q2)}if(0<E0.thrownErrors.length){var I1=q0(E0.thrownErrors);E0.thrownErrors.length=0,V0(I1)}}else h0(e0)},function(e0){F0(c,U0),0<E0.thrownErrors.length?(e0=q0(E0.thrownErrors),E0.thrownErrors.length=0,V0(e0)):V0(e0)})}}}var o0=c0;if(F0(c,U0),U0===0&&(B0(k0),k0.length!==0&&nw(function(){C0||n4||(n4=!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(() => ...)"))}),E0.actQueue=null),0<E0.thrownErrors.length)throw O=q0(E0.thrownErrors),E0.thrownErrors.length=0,O;return{then:function(h0,V0){C0=!0,U0===0?(E0.actQueue=k0,G0(function(){return e(o0,h0,V0)})):h0(o0)}}},Th.cache=function(O){return function(){return O.apply(null,arguments)}},Th.cacheSignal=function(){return null},Th.captureOwnerStack=function(){var O=E0.getCurrentStack;return O===null?null:O()},Th.cloneElement=function(O,c,U0){if(O===null||O===void 0)throw Error("The argument must be a React element, but you passed "+O+".");var k0=p1({},O.props),C0=O.key,c0=O._owner;if(c!=null){var u0;w:{if(F5.call(c,"ref")&&(u0=Object.getOwnPropertyDescriptor(c,"ref").get)&&u0.isReactWarning){u0=!1;break w}u0=c.ref!==void 0}u0&&(c0=U()),N(c)&&(K(c.key),C0=""+c.key);for(o0 in c)!F5.call(c,o0)||o0==="key"||o0==="__self"||o0==="__source"||o0==="ref"&&c.ref===void 0||(k0[o0]=c[o0])}var o0=arguments.length-2;if(o0===1)k0.children=U0;else if(1<o0){u0=Array(o0);for(var h0=0;h0<o0;h0++)u0[h0]=arguments[h0+2];k0.children=u0}k0=C(O.type,C0,k0,c0,O._debugStack,O._debugTask);for(C0=2;C0<arguments.length;C0++)S(arguments[C0]);return k0},Th.createContext=function(O){return O={$$typeof:r,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:m,_context:O},O._currentRenderer=null,O._currentRenderer2=null,O},Th.createElement=function(O,c,U0){for(var k0=2;k0<arguments.length;k0++)S(arguments[k0]);k0={};var C0=null;if(c!=null)for(h0 in a5||!("__self"in c)||"key"in c||(a5=!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")),N(c)&&(K(c.key),C0=""+c.key),c)F5.call(c,h0)&&h0!=="key"&&h0!=="__self"&&h0!=="__source"&&(k0[h0]=c[h0]);var c0=arguments.length-2;if(c0===1)k0.children=U0;else if(1<c0){for(var u0=Array(c0),o0=0;o0<c0;o0++)u0[o0]=arguments[o0+2];Object.freeze&&Object.freeze(u0),k0.children=u0}if(O&&O.defaultProps)for(h0 in c0=O.defaultProps,c0)k0[h0]===void 0&&(k0[h0]=c0[h0]);C0&&A(k0,typeof O==="function"?O.displayName||O.name||"Unknown":O);var h0=1e4>E0.recentlyCreatedOwnerStacks++;return C(O,C0,k0,U(),h0?Error("react-stack-top-frame"):I4,h0?T1(L(O)):p$)},Th.createRef=function(){var O={current:null};return Object.seal(O),O},Th.forwardRef=function(O){O!=null&&O.$$typeof===w0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof O!=="function"?console.error("forwardRef requires a render function but was given %s.",O===null?"null":typeof O):O.length!==0&&O.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",O.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),O!=null&&O.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var c={$$typeof:a,render:O},U0;return Object.defineProperty(c,"displayName",{enumerable:!1,configurable:!0,get:function(){return U0},set:function(k0){U0=k0,O.name||O.displayName||(Object.defineProperty(O,"name",{value:k0}),O.displayName=k0)}}),c},Th.isValidElement=d,Th.lazy=function(O){O={_status:-1,_result:O};var c={$$typeof:b0,_payload:O,_init:s},U0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return O._ioInfo=U0,c._debugInfo=[{awaited:U0}],c},Th.memo=function(O,c){O==null&&console.error("memo: The first argument must be a component. Instead received: %s",O===null?"null":typeof O),c={$$typeof:w0,type:O,compare:c===void 0?null:c};var U0;return Object.defineProperty(c,"displayName",{enumerable:!1,configurable:!0,get:function(){return U0},set:function(k0){U0=k0,O.name||O.displayName||(Object.defineProperty(O,"name",{value:k0}),O.displayName=k0)}}),c},Th.startTransition=function(O){var c=E0.T,U0={};U0._updatedFibers=new Set,E0.T=U0;try{var k0=O(),C0=E0.S;C0!==null&&C0(U0,k0),typeof k0==="object"&&k0!==null&&typeof k0.then==="function"&&(E0.asyncTransitions++,k0.then(Q0,Q0),k0.then(b,r4))}catch(c0){r4(c0)}finally{c===null&&U0._updatedFibers&&(O=U0._updatedFibers.size,U0._updatedFibers.clear(),10<O&&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.")),c!==null&&U0.types!==null&&(c.types!==null&&c.types!==U0.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."),c.types=U0.types),E0.T=c}},Th.unstable_useCacheRefresh=function(){return E().useCacheRefresh()},Th.use=function(O){return E().use(O)},Th.useActionState=function(O,c,U0){return E().useActionState(O,c,U0)},Th.useCallback=function(O,c){return E().useCallback(O,c)},Th.useContext=function(O){var c=E();return O.$$typeof===m&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),c.useContext(O)},Th.useDebugValue=function(O,c){return E().useDebugValue(O,c)},Th.useDeferredValue=function(O,c){return E().useDeferredValue(O,c)},Th.useEffect=function(O,c){return O==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useEffect(O,c)},Th.useEffectEvent=function(O){return E().useEffectEvent(O)},Th.useId=function(){return E().useId()},Th.useImperativeHandle=function(O,c,U0){return E().useImperativeHandle(O,c,U0)},Th.useInsertionEffect=function(O,c){return O==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useInsertionEffect(O,c)},Th.useLayoutEffect=function(O,c){return O==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useLayoutEffect(O,c)},Th.useMemo=function(O,c){return E().useMemo(O,c)},Th.useOptimistic=function(O,c){return E().useOptimistic(O,c)},Th.useReducer=function(O,c,U0){return E().useReducer(O,c,U0)},Th.useRef=function(O){return E().useRef(O)},Th.useState=function(O){return E().useState(O)},Th.useSyncExternalStore=function(O,c,U0){return E().useSyncExternalStore(O,c,U0)},Th.useTransition=function(){return E().useTransition()},Th.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var z5=G9((Ih)=>{var O7=P(K0());(function(){function Z(M){if(M==null)return null;if(typeof M==="function")return M.$$typeof===E?null:M.displayName||M.name||null;if(typeof M==="string")return M;switch(M){case _:return"Fragment";case x:return"Profiler";case C:return"StrictMode";case Z0:return"Suspense";case p:return"SuspenseList";case s:return"Activity"}if(typeof M==="object")switch(typeof M.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case A:return"Portal";case d:return M.displayName||"Context";case S:return(M._context.displayName||"Context")+".Consumer";case i:var z0=M.render;return M=M.displayName,M||(M=z0.displayName||z0.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case j:return z0=M.displayName||null,z0!==null?z0:Z(M.type)||"Memo";case $0:z0=M._payload,M=M._init;try{return Z(M(z0))}catch(m){}}return null}function J(M){return""+M}function z(M){try{J(M);var z0=!1}catch(a){z0=!0}if(z0){z0=console;var m=z0.error,r=typeof Symbol==="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return m.call(z0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),J(M)}}function G(M){if(M===_)return"<>";if(typeof M==="object"&&M!==null&&M.$$typeof===$0)return"<...>";try{var z0=Z(M);return z0?"<"+z0+">":"<...>"}catch(m){return"<...>"}}function v(){var M=Q0.A;return M===null?null:M.getOwner()}function Q(){return Error("react-stack-top-frame")}function b(M){if(G0.call(M,"key")){var z0=Object.getOwnPropertyDescriptor(M,"key").get;if(z0&&z0.isReactWarning)return!1}return M.key!==void 0}function g(M,z0){function m(){e||(e=!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)",z0))}m.isReactWarning=!0,Object.defineProperty(M,"key",{get:m,configurable:!0})}function K(){var M=Z(this.type);return B0[M]||(B0[M]=!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.")),M=this.props.ref,M!==void 0?M:null}function F(M,z0,m,r,a,X0){var J0=m.ref;return M={$$typeof:N,type:M,key:z0,props:m,_owner:r},(J0!==void 0?J0:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:K}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X0}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function L(M,z0,m,r,a,X0){var J0=z0.children;if(J0!==void 0)if(r)if(q0(J0)){for(r=0;r<J0.length;r++)U(J0[r]);Object.freeze&&Object.freeze(J0)}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 U(J0);if(G0.call(z0,"key")){J0=Z(M);var w0=Object.keys(z0).filter(function(N0){return N0!=="key"});r=0<w0.length?"{key: someKey, "+w0.join(": ..., ")+": ...}":"{key: someKey}",l[J0+r]||(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} />`,r,J0,w0,J0),l[J0+r]=!0)}if(J0=null,m!==void 0&&(z(m),J0=""+m),b(z0)&&(z(z0.key),J0=""+z0.key),"key"in z0){m={};for(var b0 in z0)b0!=="key"&&(m[b0]=z0[b0])}else m=z0;return J0&&g(m,typeof M==="function"?M.displayName||M.name||"Unknown":M),F(M,J0,m,v(),a,X0)}function U(M){k(M)?M._store&&(M._store.validated=1):typeof M==="object"&&M!==null&&M.$$typeof===$0&&(M._payload.status==="fulfilled"?k(M._payload.value)&&M._payload.value._store&&(M._payload.value._store.validated=1):M._store&&(M._store.validated=1))}function k(M){return typeof M==="object"&&M!==null&&M.$$typeof===N}var N=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),d=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),Z0=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),$0=Symbol.for("react.lazy"),s=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),Q0=O7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G0=Object.prototype.hasOwnProperty,q0=Array.isArray,F0=console.createTask?console.createTask:function(){return null};O7={react_stack_bottom_frame:function(M){return M()}};var e,B0={},u=O7.react_stack_bottom_frame.bind(O7,Q)(),o=F0(G(Q)),l={};Ih.Fragment=_,Ih.jsx=function(M,z0,m){var r=1e4>Q0.recentlyCreatedOwnerStacks++;return L(M,z0,m,!1,r?Error("react-stack-top-frame"):u,r?F0(G(M)):o)},Ih.jsxs=function(M,z0,m){var r=1e4>Q0.recentlyCreatedOwnerStacks++;return L(M,z0,m,!0,r?Error("react-stack-top-frame"):u,r?F0(G(M)):o)}})()});var MT=G9((Ch)=>{(function(){function Z(){if(i=!1,$0){var e=Ch.unstable_now();Q0=e;var B0=!0;try{w:{S=!1,d&&(d=!1,p(s),s=-1),x=!0;var u=C;try{$:{Q(e);for(_=z(k);_!==null&&!(_.expirationTime>e&&g());){var o=_.callback;if(typeof o==="function"){_.callback=null,C=_.priorityLevel;var l=o(_.expirationTime<=e);if(e=Ch.unstable_now(),typeof l==="function"){_.callback=l,Q(e),B0=!0;break $}_===z(k)&&G(k),Q(e)}else G(k);_=z(k)}if(_!==null)B0=!0;else{var M=z(N);M!==null&&K(b,M.startTime-e),B0=!1}}break w}finally{_=null,C=u,x=!1}B0=void 0}}finally{B0?G0():$0=!1}}}function J(e,B0){var u=e.length;e.push(B0);w:for(;0<u;){var o=u-1>>>1,l=e[o];if(0<v(l,B0))e[o]=B0,e[u]=l,u=o;else break w}}function z(e){return e.length===0?null:e[0]}function G(e){if(e.length===0)return null;var B0=e[0],u=e.pop();if(u!==B0){e[0]=u;w:for(var o=0,l=e.length,M=l>>>1;o<M;){var z0=2*(o+1)-1,m=e[z0],r=z0+1,a=e[r];if(0>v(m,u))r<l&&0>v(a,m)?(e[o]=a,e[r]=u,o=r):(e[o]=m,e[z0]=u,o=z0);else if(r<l&&0>v(a,u))e[o]=a,e[r]=u,o=r;else break w}}return B0}function v(e,B0){var u=e.sortIndex-B0.sortIndex;return u!==0?u:e.id-B0.id}function Q(e){for(var B0=z(N);B0!==null;){if(B0.callback===null)G(N);else if(B0.startTime<=e)G(N),B0.sortIndex=B0.expirationTime,J(k,B0);else break;B0=z(N)}}function b(e){if(d=!1,Q(e),!S)if(z(k)!==null)S=!0,$0||($0=!0,G0());else{var B0=z(N);B0!==null&&K(b,B0.startTime-e)}}function g(){return i?!0:Ch.unstable_now()-Q0<E?!1:!0}function K(e,B0){s=Z0(function(){e(Ch.unstable_now())},B0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ch.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var F=performance;Ch.unstable_now=function(){return F.now()}}else{var L=Date,U=L.now();Ch.unstable_now=function(){return L.now()-U}}var k=[],N=[],A=1,_=null,C=3,x=!1,S=!1,d=!1,i=!1,Z0=typeof setTimeout==="function"?setTimeout:null,p=typeof clearTimeout==="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null,$0=!1,s=-1,E=5,Q0=-1;if(typeof j==="function")var G0=function(){j(Z)};else if(typeof MessageChannel<"u"){var q0=new MessageChannel,F0=q0.port2;q0.port1.onmessage=Z,G0=function(){F0.postMessage(null)}}else G0=function(){Z0(Z,0)};Ch.unstable_IdlePriority=5,Ch.unstable_ImmediatePriority=1,Ch.unstable_LowPriority=4,Ch.unstable_NormalPriority=3,Ch.unstable_Profiling=null,Ch.unstable_UserBlockingPriority=2,Ch.unstable_cancelCallback=function(e){e.callback=null},Ch.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1000/e):5},Ch.unstable_getCurrentPriorityLevel=function(){return C},Ch.unstable_next=function(e){switch(C){case 1:case 2:case 3:var B0=3;break;default:B0=C}var u=C;C=B0;try{return e()}finally{C=u}},Ch.unstable_requestPaint=function(){i=!0},Ch.unstable_runWithPriority=function(e,B0){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var u=C;C=e;try{return B0()}finally{C=u}},Ch.unstable_scheduleCallback=function(e,B0,u){var o=Ch.unstable_now();switch(typeof u==="object"&&u!==null?(u=u.delay,u=typeof u==="number"&&0<u?o+u:o):u=o,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5000}return l=u+l,e={id:A++,callback:B0,priorityLevel:e,startTime:u,expirationTime:l,sortIndex:-1},u>o?(e.sortIndex=u,J(N,e),z(k)===null&&e===z(N)&&(d?(p(s),s=-1):d=!0,K(b,u-o))):(e.sortIndex=l,J(k,e),S||x||(S=!0,$0||($0=!0,G0()))),e},Ch.unstable_shouldYield=g,Ch.unstable_wrapCallback=function(e){var B0=C;return function(){var u=C;C=B0;try{return e.apply(this,arguments)}finally{C=u}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xT=G9((Mh)=>{var Eg=P(K0());(function(){function Z(){}function J(L){return""+L}function z(L,U,k){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(N);var A=!1}catch(_){A=!0}return A&&(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&&N[Symbol.toStringTag]||N.constructor.name||"Object"),J(N)),{$$typeof:K,key:N==null?null:""+N,children:L,containerInfo:U,implementation:k}}function G(L,U){if(L==="font")return"";if(typeof U==="string")return U==="use-credentials"?U:""}function v(L){return L===null?"`null`":L===void 0?"`undefined`":L===""?"an empty string":'something with type "'+typeof L+'"'}function Q(L){return L===null?"`null`":L===void 0?"`undefined`":L===""?"an empty string":typeof L==="string"?JSON.stringify(L):typeof L==="number"?"`"+L+"`":'something with type "'+typeof L+'"'}function b(){var L=F.H;return L===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:
19
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
20
- 2. You might be breaking the Rules of Hooks
21
- 3. You might have more than one copy of React in the same app
22
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),L}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g={d:{f:Z,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Z,C:Z,L:Z,m:Z,X:Z,S:Z,M:Z},p:0,findDOMNode:null},K=Symbol.for("react.portal"),F=Eg.__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"),Mh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=g,Mh.createPortal=function(L,U){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!U||U.nodeType!==1&&U.nodeType!==9&&U.nodeType!==11)throw Error("Target container is not a DOM element.");return z(L,U,null,k)},Mh.flushSync=function(L){var U=F.T,k=g.p;try{if(F.T=null,g.p=2,L)return L()}finally{F.T=U,g.p=k,g.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.")}},Mh.preconnect=function(L,U){typeof L==="string"&&L?U!=null&&typeof U!=="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.",Q(U)):U!=null&&typeof U.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.",v(U.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",v(L)),typeof L==="string"&&(U?(U=U.crossOrigin,U=typeof U==="string"?U==="use-credentials"?U:"":void 0):U=null,g.d.C(L,U))},Mh.prefetchDNS=function(L){if(typeof L!=="string"||!L)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",v(L));else if(1<arguments.length){var U=arguments[1];typeof U==="object"&&U.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`.",Q(U)):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`.",Q(U))}typeof L==="string"&&g.d.D(L)},Mh.preinit=function(L,U){if(typeof L==="string"&&L?U==null||typeof U!=="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.",Q(U)):U.as!=="style"&&U.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".',Q(U.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",v(L)),typeof L==="string"&&U&&typeof U.as==="string"){var k=U.as,N=G(k,U.crossOrigin),A=typeof U.integrity==="string"?U.integrity:void 0,_=typeof U.fetchPriority==="string"?U.fetchPriority:void 0;k==="style"?g.d.S(L,typeof U.precedence==="string"?U.precedence:void 0,{crossOrigin:N,integrity:A,fetchPriority:_}):k==="script"&&g.d.X(L,{crossOrigin:N,integrity:A,fetchPriority:_,nonce:typeof U.nonce==="string"?U.nonce:void 0})}},Mh.preinitModule=function(L,U){var k="";if(typeof L==="string"&&L||(k+=" The `href` argument encountered was "+v(L)+"."),U!==void 0&&typeof U!=="object"?k+=" The `options` argument encountered was "+v(U)+".":U&&("as"in U)&&U.as!=="script"&&(k+=" The `as` option encountered was "+Q(U.as)+"."),k)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",k);else switch(k=U&&typeof U.as==="string"?U.as:"script",k){case"script":break;default:k=Q(k),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)',k,L)}if(typeof L==="string")if(typeof U==="object"&&U!==null){if(U.as==null||U.as==="script")k=G(U.as,U.crossOrigin),g.d.M(L,{crossOrigin:k,integrity:typeof U.integrity==="string"?U.integrity:void 0,nonce:typeof U.nonce==="string"?U.nonce:void 0})}else U==null&&g.d.M(L)},Mh.preload=function(L,U){var k="";if(typeof L==="string"&&L||(k+=" The `href` argument encountered was "+v(L)+"."),U==null||typeof U!=="object"?k+=" The `options` argument encountered was "+v(U)+".":typeof U.as==="string"&&U.as||(k+=" The `as` option encountered was "+v(U.as)+"."),k&&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',k),typeof L==="string"&&typeof U==="object"&&U!==null&&typeof U.as==="string"){k=U.as;var N=G(k,U.crossOrigin);g.d.L(L,k,{crossOrigin:N,integrity:typeof U.integrity==="string"?U.integrity:void 0,nonce:typeof U.nonce==="string"?U.nonce:void 0,type:typeof U.type==="string"?U.type:void 0,fetchPriority:typeof U.fetchPriority==="string"?U.fetchPriority:void 0,referrerPolicy:typeof U.referrerPolicy==="string"?U.referrerPolicy:void 0,imageSrcSet:typeof U.imageSrcSet==="string"?U.imageSrcSet:void 0,imageSizes:typeof U.imageSizes==="string"?U.imageSizes:void 0,media:typeof U.media==="string"?U.media:void 0})}},Mh.preloadModule=function(L,U){var k="";typeof L==="string"&&L||(k+=" The `href` argument encountered was "+v(L)+"."),U!==void 0&&typeof U!=="object"?k+=" The `options` argument encountered was "+v(U)+".":U&&("as"in U)&&typeof U.as!=="string"&&(k+=" The `as` option encountered was "+v(U.as)+"."),k&&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',k),typeof L==="string"&&(U?(k=G(U.as,U.crossOrigin),g.d.m(L,{as:typeof U.as==="string"&&U.as!=="script"?U.as:void 0,crossOrigin:k,integrity:typeof U.integrity==="string"?U.integrity:void 0})):g.d.m(L))},Mh.requestFormReset=function(L){g.d.r(L)},Mh.unstable_batchedUpdates=function(L,U){return L(U)},Mh.useFormState=function(L,U,k){return b().useFormState(L,U,k)},Mh.useFormStatus=function(){return b().useHostTransitionStatus()},Mh.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var v9=G9((ip,mT)=>{var xh=P(xT());mT.exports=xh});var PT=G9((mh)=>{var k1=P(MT()),v$=P(K0()),ug=P(v9());(function(){function Z(w,$){for(w=w.memoizedState;w!==null&&0<$;)w=w.next,$--;return w}function J(w,$,X,Y){if(X>=$.length)return Y;var B=$[X],H=p5(w)?w.slice():B1({},w);return H[B]=J(w[B],$,X+1,Y),H}function z(w,$,X){if($.length!==X.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<X.length-1;Y++)if($[Y]!==X[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return G(w,$,X,0)}}function G(w,$,X,Y){var B=$[Y],H=p5(w)?w.slice():B1({},w);return Y+1===$.length?(H[X[Y]]=H[B],p5(H)?H.splice(B,1):delete H[B]):H[B]=G(w[B],$,X,Y+1),H}function v(w,$,X){var Y=$[X],B=p5(w)?w.slice():B1({},w);if(X+1===$.length)return p5(B)?B.splice(Y,1):delete B[Y],B;return B[Y]=v(w[Y],$,X+1),B}function Q(){return!1}function b(){return null}function g(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function K(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function F(){}function L(){}function U(w){var $=[];return w.forEach(function(X){$.push(X)}),$.sort().join(", ")}function k(w,$,X,Y){return new lm(w,$,X,Y)}function N(w,$){w.context===j8&&(nH(w.current,2,$,w,null,null),q3())}function A(w,$){if($4!==null){var X=$.staleFamilies;$=$.updatedFamilies,FZ(),XU(w.current,$,X),q3()}}function _(w){$4=w}function C(w){return!(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)}function x(w){var $=w,X=w;if(w.alternate)for(;$.return;)$=$.return;else{w=$;do $=w,($.flags&4098)!==0&&(X=$.return),w=$.return;while(w)}return $.tag===3?X:null}function S(w){if(w.tag===13){var $=w.memoizedState;if($===null&&(w=w.alternate,w!==null&&($=w.memoizedState)),$!==null)return $.dehydrated}return null}function d(w){if(w.tag===31){var $=w.memoizedState;if($===null&&(w=w.alternate,w!==null&&($=w.memoizedState)),$!==null)return $.dehydrated}return null}function i(w){if(x(w)!==w)throw Error("Unable to find node on an unmounted component.")}function Z0(w){var $=w.alternate;if(!$){if($=x(w),$===null)throw Error("Unable to find node on an unmounted component.");return $!==w?null:w}for(var X=w,Y=$;;){var B=X.return;if(B===null)break;var H=B.alternate;if(H===null){if(Y=B.return,Y!==null){X=Y;continue}break}if(B.child===H.child){for(H=B.child;H;){if(H===X)return i(B),w;if(H===Y)return i(B),$;H=H.sibling}throw Error("Unable to find node on an unmounted component.")}if(X.return!==Y.return)X=B,Y=H;else{for(var W=!1,q=B.child;q;){if(q===X){W=!0,X=B,Y=H;break}if(q===Y){W=!0,Y=B,X=H;break}q=q.sibling}if(!W){for(q=H.child;q;){if(q===X){W=!0,X=H,Y=B;break}if(q===Y){W=!0,Y=H,X=B;break}q=q.sibling}if(!W)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(X.alternate!==Y)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(X.tag!==3)throw Error("Unable to find node on an unmounted component.");return X.stateNode.current===X?w:$}function p(w){var $=w.tag;if($===5||$===26||$===27||$===6)return w;for(w=w.child;w!==null;){if($=p(w),$!==null)return $;w=w.sibling}return null}function j(w){if(w===null||typeof w!=="object")return null;return w=HF&&w[HF]||w["@@iterator"],typeof w==="function"?w:null}function $0(w){if(w==null)return null;if(typeof w==="function")return w.$$typeof===Hf?null:w.displayName||w.name||null;if(typeof w==="string")return w;switch(w){case _3:return"Fragment";case $Q:return"Profiler";case aY:return"StrictMode";case XQ:return"Suspense";case JQ:return"SuspenseList";case YQ:return"Activity"}if(typeof w==="object")switch(typeof w.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case I3:return"Portal";case b6:return w.displayName||"Context";case ZQ:return(w._context.displayName||"Context")+".Consumer";case xZ:var $=w.render;return w=w.displayName,w||(w=$.displayName||$.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case iY:return $=w.displayName||null,$!==null?$:$0(w.type)||"Memo";case Vw:$=w._payload,w=w._init;try{return $0(w($))}catch(X){}}return null}function s(w){return typeof w.tag==="number"?E(w):typeof w.name==="string"?w.name:null}function E(w){var $=w.type;switch(w.tag){case 31:return"Activity";case 24:return"Cache";case 9:return($._context.displayName||"Context")+".Consumer";case 10:return $.displayName||"Context";case 18:return"DehydratedFragment";case 11:return w=$.render,w=w.displayName||w.name||"",$.displayName||(w!==""?"ForwardRef("+w+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return $;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $0($);case 8:return $===aY?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof $==="function")return $.displayName||$.name||null;if(typeof $==="string")return $;break;case 29:if($=w._debugInfo,$!=null){for(var X=$.length-1;0<=X;X--)if(typeof $[X].name==="string")return $[X].name}if(w.return!==null)return E(w.return)}return null}function Q0(w){return{current:w}}function G0(w,$){0>n6?console.error("Unexpected pop."):($!==GQ[n6]&&console.error("Unexpected Fiber popped."),w.current=zQ[n6],zQ[n6]=null,GQ[n6]=null,n6--)}function q0(w,$,X){n6++,zQ[n6]=w.current,GQ[n6]=X,w.current=$}function F0(w){return w===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),w}function e(w,$){q0(h8,$,w),q0(mZ,w,w),q0(V8,null,w);var X=$.nodeType;switch(X){case 9:case 11:X=X===9?"#document":"#fragment",$=($=$.documentElement)?($=$.namespaceURI)?hL($):v8:v8;break;default:if(X=$.tagName,$=$.namespaceURI)$=hL($),$=RL($,X);else switch(X){case"svg":$=J$;break;case"math":$=cz;break;default:$=v8}}X=X.toLowerCase(),X=MK(null,X),X={context:$,ancestorInfo:X},G0(V8,w),q0(V8,X,w)}function B0(w){G0(V8,w),G0(mZ,w),G0(h8,w)}function u(){return F0(V8.current)}function o(w){w.memoizedState!==null&&q0(pY,w,w);var $=F0(V8.current),X=w.type,Y=RL($.context,X);X=MK($.ancestorInfo,X),Y={context:Y,ancestorInfo:X},$!==Y&&(q0(mZ,w,w),q0(V8,Y,w))}function l(w){mZ.current===w&&(G0(V8,w),G0(mZ,w)),pY.current===w&&(G0(pY,w),NX._currentValue=N7)}function M(){}function z0(){if(PZ===0){QF=console.log,gF=console.info,bF=console.warn,WF=console.error,KF=console.group,UF=console.groupCollapsed,qF=console.groupEnd;var w={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}PZ++}function m(){if(PZ--,PZ===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B1({},w,{value:QF}),info:B1({},w,{value:gF}),warn:B1({},w,{value:bF}),error:B1({},w,{value:WF}),group:B1({},w,{value:KF}),groupCollapsed:B1({},w,{value:UF}),groupEnd:B1({},w,{value:qF})})}0>PZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function r(w){var $=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,w=w.stack,Error.prepareStackTrace=$,w.startsWith(`Error: react-stack-top-frame
23
- `)&&(w=w.slice(29)),$=w.indexOf(`
24
- `),$!==-1&&(w=w.slice($+1)),$=w.indexOf("react_stack_bottom_frame"),$!==-1&&($=w.lastIndexOf(`
25
- `,$)),$!==-1)w=w.slice(0,$);else return"";return w}function a(w){if(BQ===void 0)try{throw Error()}catch(X){var $=X.stack.trim().match(/\n( *(at )?)/);BQ=$&&$[1]||"",LF=-1<X.stack.indexOf(`
26
- at`)?" (<anonymous>)":-1<X.stack.indexOf("@")?"@unknown:0:0":""}return`
27
- `+BQ+w+LF}function X0(w,$){if(!w||vQ)return"";var X=HQ.get(w);if(X!==void 0)return X;vQ=!0,X=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=Y0.H,Y0.H=null,z0();try{var B={DetermineComponentFrameRoot:function(){try{if($){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(L0){var n=L0}Reflect.construct(w,[],V)}else{try{V.call()}catch(L0){n=L0}w.call(V.prototype)}}else{try{throw Error()}catch(L0){n=L0}(V=w())&&typeof V.catch==="function"&&V.catch(function(){})}}catch(L0){if(L0&&n&&typeof L0.stack==="string")return[L0.stack,n.stack]}return[null,null]}};B.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var H=Object.getOwnPropertyDescriptor(B.DetermineComponentFrameRoot,"name");H&&H.configurable&&Object.defineProperty(B.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var W=B.DetermineComponentFrameRoot(),q=W[0],T=W[1];if(q&&T){var I=q.split(`
28
- `),y=T.split(`
29
- `);for(W=H=0;H<I.length&&!I[H].includes("DetermineComponentFrameRoot");)H++;for(;W<y.length&&!y[W].includes("DetermineComponentFrameRoot");)W++;if(H===I.length||W===y.length)for(H=I.length-1,W=y.length-1;1<=H&&0<=W&&I[H]!==y[W];)W--;for(;1<=H&&0<=W;H--,W--)if(I[H]!==y[W]){if(H!==1||W!==1)do if(H--,W--,0>W||I[H]!==y[W]){var D=`
30
- `+I[H].replace(" at new "," at ");return w.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",w.displayName)),typeof w==="function"&&HQ.set(w,D),D}while(1<=H&&0<=W);break}}}finally{vQ=!1,Y0.H=Y,m(),Error.prepareStackTrace=X}return I=(I=w?w.displayName||w.name:"")?a(I):"",typeof w==="function"&&HQ.set(w,I),I}function J0(w,$){switch(w.tag){case 26:case 27:case 5:return a(w.type);case 16:return a("Lazy");case 13:return w.child!==$&&$!==null?a("Suspense Fallback"):a("Suspense");case 19:return a("SuspenseList");case 0:case 15:return X0(w.type,!1);case 11:return X0(w.type.render,!1);case 1:return X0(w.type,!0);case 31:return a("Activity");default:return""}}function w0(w){try{var $="",X=null;do{$+=J0(w,X);var Y=w._debugInfo;if(Y)for(var B=Y.length-1;0<=B;B--){var H=Y[B];if(typeof H.name==="string"){var W=$;w:{var{name:q,env:T,debugLocation:I}=H;if(I!=null){var y=r(I),D=y.lastIndexOf(`
31
- `),V=D===-1?y:y.slice(D+1);if(V.indexOf(q)!==-1){var n=`
32
- `+V;break w}}n=a(q+(T?" ["+T+"]":""))}$=W+n}}X=w,w=w.return}while(w);return $}catch(L0){return`
33
- Error generating stack: `+L0.message+`
34
- `+L0.stack}}function b0(w){return(w=w?w.displayName||w.name:"")?a(w):""}function N0(){if(hw===null)return null;var w=hw._debugOwner;return w!=null?s(w):null}function p0(){if(hw===null)return"";var w=hw;try{var $="";switch(w.tag===6&&(w=w.return),w.tag){case 26:case 27:case 5:$+=a(w.type);break;case 13:$+=a("Suspense");break;case 19:$+=a("SuspenseList");break;case 31:$+=a("Activity");break;case 30:case 0:case 15:case 1:w._debugOwner||$!==""||($+=b0(w.type));break;case 11:w._debugOwner||$!==""||($+=b0(w.type.render))}for(;w;)if(typeof w.tag==="number"){var X=w;w=X._debugOwner;var Y=X._debugStack;if(w&&Y){var B=r(Y);B!==""&&($+=`
35
- `+B)}}else if(w.debugStack!=null){var H=w.debugStack;(w=w.owner)&&H&&($+=`
36
- `+r(H))}else break;var W=$}catch(q){W=`
37
- Error generating stack: `+q.message+`
38
- `+q.stack}return W}function g0(w,$,X,Y,B,H,W){var q=hw;L5(w);try{return w!==null&&w._debugTask?w._debugTask.run($.bind(null,X,Y,B,H,W)):$(X,Y,B,H,W)}finally{L5(q)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function L5(w){Y0.getCurrentStack=w===null?null:p0,W6=!1,hw=w}function p1(w){return typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"}function N1(w){try{return _1(w),!1}catch($){return!0}}function _1(w){return""+w}function W1(w,$){if(N1(w))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",$,p1(w)),_1(w)}function iw(w,$){if(N1(w))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",$,p1(w)),_1(w)}function E0(w){if(N1(w))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",p1(w)),_1(w)}function F5(w){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var $=__REACT_DEVTOOLS_GLOBAL_HOOK__;if($.isDisabled)return!0;if(!$.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{A3=$.inject(w),m2=$}catch(X){console.error("React instrumentation encountered an error: %o.",X)}return $.checkDCE?!0:!1}function T1(w){if(typeof qf==="function"&&Lf(w),m2&&typeof m2.setStrictMode==="function")try{m2.setStrictMode(A3,w)}catch($){K6||(K6=!0,console.error("React instrumentation encountered an error: %o",$))}}function pw(w){return w>>>=0,w===0?32:31-(Ff(w)/kf|0)|0}function a5(w){var $=w&42;if($!==0)return $;switch(w&-w){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return w&261888;case 262144:case 524288:case 1048576:case 2097152:return w&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return w&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),w}}function G2(w,$,X){var Y=w.pendingLanes;if(Y===0)return 0;var B=0,H=w.suspendedLanes,W=w.pingedLanes;w=w.warmLanes;var q=Y&134217727;return q!==0?(Y=q&~H,Y!==0?B=a5(Y):(W&=q,W!==0?B=a5(W):X||(X=q&~w,X!==0&&(B=a5(X))))):(q=Y&~H,q!==0?B=a5(q):W!==0?B=a5(W):X||(X=Y&~w,X!==0&&(B=a5(X)))),B===0?0:$!==0&&$!==B&&($&H)===0&&(H=B&-B,X=$&-$,H>=X||H===32&&(X&4194048)!==0)?$:B}function I4(w,$){return(w.pendingLanes&~(w.suspendedLanes&~w.pingedLanes)&$)===0}function p$(w,$){switch(w){case 1:case 2:case 4:case 8:case 64:return $+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return $+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function i5(){var w=oY;return oY<<=1,(oY&62914560)===0&&(oY=4194304),w}function Iw(w){for(var $=[],X=0;31>X;X++)$.push(w);return $}function r4(w,$){w.pendingLanes|=$,$!==268435456&&(w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0)}function J3(w,$,X,Y,B,H){var W=w.pendingLanes;w.pendingLanes=X,w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0,w.expiredLanes&=X,w.entangledLanes&=X,w.errorRecoveryDisabledLanes&=X,w.shellSuspendCounter=0;var{entanglements:q,expirationTimes:T,hiddenUpdates:I}=w;for(X=W&~X;0<X;){var y=31-j2(X),D=1<<y;q[y]=0,T[y]=-1;var V=I[y];if(V!==null)for(I[y]=null,y=0;y<V.length;y++){var n=V[y];n!==null&&(n.lane&=-536870913)}X&=~D}Y!==0&&rw(w,Y,0),H!==0&&B===0&&w.tag!==0&&(w.suspendedLanes|=H&~(W&~$))}function rw(w,$,X){w.pendingLanes|=$,w.suspendedLanes&=~$;var Y=31-j2($);w.entangledLanes|=$,w.entanglements[Y]=w.entanglements[Y]|1073741824|X&261930}function j6(w,$){var X=w.entangledLanes|=$;for(w=w.entanglements;X;){var Y=31-j2(X),B=1<<Y;B&$|w[Y]&$&&(w[Y]|=$),X&=~B}}function n4(w,$){var X=$&-$;return X=(X&42)!==0?1:_4(X),(X&(w.suspendedLanes|$))!==0?0:X}function _4(w){switch(w){case 2:w=1;break;case 8:w=4;break;case 32:w=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:w=128;break;case 268435456:w=134217728;break;default:w=0}return w}function nw(w,$,X){if(U6)for(w=w.pendingUpdatersLaneMap;0<X;){var Y=31-j2(X),B=1<<Y;w[Y].add($),X&=~B}}function O4(w,$){if(U6)for(var{pendingUpdatersLaneMap:X,memoizedUpdaters:Y}=w;0<$;){var B=31-j2($);w=1<<B,B=X[B],0<B.size&&(B.forEach(function(H){var W=H.alternate;W!==null&&Y.has(W)||Y.add(H)}),B.clear()),$&=~w}}function O(w){return w&=-w,Rw!==0&&Rw<w?m4!==0&&m4<w?(w&134217727)!==0?q6:sY:m4:Rw}function c(){var w=M1.p;if(w!==0)return w;return w=window.event,w===void 0?q6:XF(w.type)}function U0(w,$){var X=M1.p;try{return M1.p=w,$()}finally{M1.p=X}}function k0(w){delete w[N2],delete w[E2],delete w[KQ],delete w[Nf],delete w[Tf]}function C0(w){var $=w[N2];if($)return $;for(var X=w.parentNode;X;){if($=X[y8]||X[N2]){if(X=$.alternate,$.child!==null||X!==null&&X.child!==null)for(w=lL(w);w!==null;){if(X=w[N2])return X;w=lL(w)}return $}w=X,X=w.parentNode}return null}function c0(w){if(w=w[N2]||w[y8]){var $=w.tag;if($===5||$===6||$===13||$===31||$===26||$===27||$===3)return w}return null}function u0(w){var $=w.tag;if($===5||$===26||$===27||$===6)return w.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function o0(w){var $=w[FF];return $||($=w[FF]={hoistableStyles:new Map,hoistableScripts:new Map}),$}function h0(w){w[fZ]=!0}function V0(w,$){e0(w,$),e0(w+"Capture",$)}function e0(w,$){e9[w]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",w),e9[w]=$;var X=w.toLowerCase();UQ[X]=w,w==="onDoubleClick"&&(UQ.ondblclick=w);for(w=0;w<$.length;w++)kF.add($[w])}function I1(w,$){If[$.type]||$.onChange||$.onInput||$.readOnly||$.disabled||$.value==null||(w==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),$.onChange||$.readOnly||$.disabled||$.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function q2(w){if(x4.call(TF,w))return!0;if(x4.call(NF,w))return!1;if(_f.test(w))return TF[w]=!0;return NF[w]=!0,console.error("Invalid attribute name: `%s`",w),!1}function $w(w,$,X){if(q2($)){if(!w.hasAttribute($)){switch(typeof X){case"symbol":case"object":return X;case"function":return X;case"boolean":if(X===!1)return X}return X===void 0?void 0:null}if(w=w.getAttribute($),w===""&&X===!0)return!0;return W1(X,$),w===""+X?X:w}}function _w(w,$,X){if(q2($))if(X===null)w.removeAttribute($);else{switch(typeof X){case"undefined":case"function":case"symbol":w.removeAttribute($);return;case"boolean":var Y=$.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){w.removeAttribute($);return}}W1(X,$),w.setAttribute($,""+X)}}function ow(w,$,X){if(X===null)w.removeAttribute($);else{switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute($);return}W1(X,$),w.setAttribute($,""+X)}}function M5(w,$,X,Y){if(Y===null)w.removeAttribute(X);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(X);return}W1(Y,X),w.setAttributeNS($,X,""+Y)}}function x5(w){switch(typeof w){case"bigint":case"boolean":case"number":case"string":case"undefined":return w;case"object":return E0(w),w;default:return""}}function WK(w){var $=w.type;return(w=w.nodeName)&&w.toLowerCase()==="input"&&($==="checkbox"||$==="radio")}function km(w,$,X){var Y=Object.getOwnPropertyDescriptor(w.constructor.prototype,$);if(!w.hasOwnProperty($)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:B,set:H}=Y;return Object.defineProperty(w,$,{configurable:!0,get:function(){return B.call(this)},set:function(W){E0(W),X=""+W,H.call(this,W)}}),Object.defineProperty(w,$,{enumerable:Y.enumerable}),{getValue:function(){return X},setValue:function(W){E0(W),X=""+W},stopTracking:function(){w._valueTracker=null,delete w[$]}}}}function oB(w){if(!w._valueTracker){var $=WK(w)?"checked":"value";w._valueTracker=km(w,$,""+w[$])}}function KK(w){if(!w)return!1;var $=w._valueTracker;if(!$)return!0;var X=$.getValue(),Y="";return w&&(Y=WK(w)?w.checked?"true":"false":w.value),w=Y,w!==X?($.setValue(w),!0):!1}function dJ(w){if(w=w||(typeof document<"u"?document:void 0),typeof w>"u")return null;try{return w.activeElement||w.body}catch($){return w.body}}function sw(w){return w.replace(Of,function($){return"\\"+$.charCodeAt(0).toString(16)+" "})}function UK(w,$){$.checked===void 0||$.defaultChecked===void 0||_F||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",N0()||"A component",$.type),_F=!0),$.value===void 0||$.defaultValue===void 0||IF||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",N0()||"A component",$.type),IF=!0)}function sB(w,$,X,Y,B,H,W,q){if(w.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(W1(W,"type"),w.type=W):w.removeAttribute("type"),$!=null)if(W==="number"){if($===0&&w.value===""||w.value!=$)w.value=""+x5($)}else w.value!==""+x5($)&&(w.value=""+x5($));else W!=="submit"&&W!=="reset"||w.removeAttribute("value");$!=null?tB(w,W,x5($)):X!=null?tB(w,W,x5(X)):Y!=null&&w.removeAttribute("value"),B==null&&H!=null&&(w.defaultChecked=!!H),B!=null&&(w.checked=B&&typeof B!=="function"&&typeof B!=="symbol"),q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&typeof q!=="boolean"?(W1(q,"name"),w.name=""+x5(q)):w.removeAttribute("name")}function qK(w,$,X,Y,B,H,W,q){if(H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&typeof H!=="boolean"&&(W1(H,"type"),w.type=H),$!=null||X!=null){if(!(H!=="submit"&&H!=="reset"||$!==void 0&&$!==null)){oB(w);return}X=X!=null?""+x5(X):"",$=$!=null?""+x5($):X,q||$===w.value||(w.value=$),w.defaultValue=$}Y=Y!=null?Y:B,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,w.checked=q?w.checked:!!Y,w.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(W1(W,"name"),w.name=W),oB(w)}function tB(w,$,X){$==="number"&&dJ(w.ownerDocument)===w||w.defaultValue===""+X||(w.defaultValue=""+X)}function LK(w,$){$.value==null&&(typeof $.children==="object"&&$.children!==null?v$.Children.forEach($.children,function(X){X==null||typeof X==="string"||typeof X==="number"||typeof X==="bigint"||AF||(AF=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):$.dangerouslySetInnerHTML==null||CF||(CF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),$.selected==null||OF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),OF=!0)}function FK(){var w=N0();return w?`
39
-
40
- Check the render method of \``+w+"`.":""}function Y3(w,$,X,Y){if(w=w.options,$){$={};for(var B=0;B<X.length;B++)$["$"+X[B]]=!0;for(X=0;X<w.length;X++)B=$.hasOwnProperty("$"+w[X].value),w[X].selected!==B&&(w[X].selected=B),B&&Y&&(w[X].defaultSelected=!0)}else{X=""+x5(X),$=null;for(B=0;B<w.length;B++){if(w[B].value===X){w[B].selected=!0,Y&&(w[B].defaultSelected=!0);return}$!==null||w[B].disabled||($=w[B])}$!==null&&($.selected=!0)}}function kK(w,$){for(w=0;w<xF.length;w++){var X=xF[w];if($[X]!=null){var Y=p5($[X]);$.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",X,FK()):!$.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",X,FK())}}$.value===void 0||$.defaultValue===void 0||MF||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),MF=!0)}function NK(w,$){$.value===void 0||$.defaultValue===void 0||mF||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",N0()||"A component"),mF=!0),$.children!=null&&$.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function TK(w,$,X){if($!=null&&($=""+x5($),$!==w.value&&(w.value=$),X==null)){w.defaultValue!==$&&(w.defaultValue=$);return}w.defaultValue=X!=null?""+x5(X):""}function IK(w,$,X,Y){if($==null){if(Y!=null){if(X!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(p5(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}X=Y}X==null&&(X=""),$=X}X=x5($),w.defaultValue=X,Y=w.textContent,Y===X&&Y!==""&&Y!==null&&(w.value=Y),oB(w)}function _K(w,$){return w.serverProps===void 0&&w.serverTail.length===0&&w.children.length===1&&3<w.distanceFromLeaf&&w.distanceFromLeaf>15-$?_K(w.children[0],$):w}function Ow(w){return" "+" ".repeat(w)}function z3(w){return"+ "+" ".repeat(w)}function D9(w){return"- "+" ".repeat(w)}function OK(w){switch(w.tag){case 26:case 27:case 5:return w.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return w=w.type,w.displayName||w.name||null;case 11:return w=w.type.render,w.displayName||w.name||null;case 1:return w=w.type,w.displayName||w.name||null;default:return null}}function r$(w,$){return PF.test(w)?(w=JSON.stringify(w),w.length>$-2?8>$?'{"..."}':"{"+w.slice(0,$-7)+'..."}':"{"+w+"}"):w.length>$?5>$?'{"..."}':w.slice(0,$-3)+"...":w}function jJ(w,$,X){var Y=120-2*X;if($===null)return z3(X)+r$(w,Y)+`
41
- `;if(typeof $==="string"){for(var B=0;B<$.length&&B<w.length&&$.charCodeAt(B)===w.charCodeAt(B);B++);return B>Y-8&&10<B&&(w="..."+w.slice(B-8),$="..."+$.slice(B-8)),z3(X)+r$(w,Y)+`
42
- `+D9(X)+r$($,Y)+`
43
- `}return Ow(X)+r$(w,Y)+`
44
- `}function eB(w){return Object.prototype.toString.call(w).replace(/^\[object (.*)\]$/,function($,X){return X})}function n$(w,$){switch(typeof w){case"string":return w=JSON.stringify(w),w.length>$?5>$?'"..."':w.slice(0,$-4)+'..."':w;case"object":if(w===null)return"null";if(p5(w))return"[...]";if(w.$$typeof===g6)return($=$0(w.type))?"<"+$+">":"<...>";var X=eB(w);if(X==="Object"){X="",$-=2;for(var Y in w)if(w.hasOwnProperty(Y)){var B=JSON.stringify(Y);if(B!=='"'+Y+'"'&&(Y=B),$-=Y.length-2,B=n$(w[Y],15>$?$:15),$-=B.length,0>$){X+=X===""?"...":", ...";break}X+=(X===""?"":",")+Y+":"+B}return"{"+X+"}"}return X;case"function":return($=w.displayName||w.name)?"function "+$:"function";default:return String(w)}}function G3(w,$){return typeof w!=="string"||PF.test(w)?"{"+n$(w,$-2)+"}":w.length>$-2?5>$?'"..."':'"'+w.slice(0,$-5)+'..."':'"'+w+'"'}function wv(w,$,X){var Y=120-X.length-w.length,B=[],H;for(H in $)if($.hasOwnProperty(H)&&H!=="children"){var W=G3($[H],120-X.length-H.length-1);Y-=H.length+W.length+2,B.push(H+"="+W)}return B.length===0?X+"<"+w+`>
45
- `:0<Y?X+"<"+w+" "+B.join(" ")+`>
46
- `:X+"<"+w+`
47
- `+X+" "+B.join(`
48
- `+X+" ")+`
49
- `+X+`>
50
- `}function Nm(w,$,X){var Y="",B=B1({},$),H;for(H in w)if(w.hasOwnProperty(H)){delete B[H];var W=120-2*X-H.length-2,q=n$(w[H],W);$.hasOwnProperty(H)?(W=n$($[H],W),Y+=z3(X)+H+": "+q+`
51
- `,Y+=D9(X)+H+": "+W+`
52
- `):Y+=z3(X)+H+": "+q+`
53
- `}for(var T in B)B.hasOwnProperty(T)&&(w=n$(B[T],120-2*X-T.length-2),Y+=D9(X)+T+": "+w+`
54
- `);return Y}function Tm(w,$,X,Y){var B="",H=new Map;for(I in X)X.hasOwnProperty(I)&&H.set(I.toLowerCase(),I);if(H.size===1&&H.has("children"))B+=wv(w,$,Ow(Y));else{for(var W in $)if($.hasOwnProperty(W)&&W!=="children"){var q=120-2*(Y+1)-W.length-1,T=H.get(W.toLowerCase());if(T!==void 0){H.delete(W.toLowerCase());var I=$[W];T=X[T];var y=G3(I,q);q=G3(T,q),typeof I==="object"&&I!==null&&typeof T==="object"&&T!==null&&eB(I)==="Object"&&eB(T)==="Object"&&(2<Object.keys(I).length||2<Object.keys(T).length||-1<y.indexOf("...")||-1<q.indexOf("..."))?B+=Ow(Y+1)+W+`={{
55
- `+Nm(I,T,Y+2)+Ow(Y+1)+`}}
56
- `:(B+=z3(Y+1)+W+"="+y+`
57
- `,B+=D9(Y+1)+W+"="+q+`
58
- `)}else B+=Ow(Y+1)+W+"="+G3($[W],q)+`
59
- `}H.forEach(function(D){if(D!=="children"){var V=120-2*(Y+1)-D.length-1;B+=D9(Y+1)+D+"="+G3(X[D],V)+`
60
- `}}),B=B===""?Ow(Y)+"<"+w+`>
61
- `:Ow(Y)+"<"+w+`
62
- `+B+Ow(Y)+`>
63
- `}if(w=X.children,$=$.children,typeof w==="string"||typeof w==="number"||typeof w==="bigint"){if(H="",typeof $==="string"||typeof $==="number"||typeof $==="bigint")H=""+$;B+=jJ(H,""+w,Y+1)}else if(typeof $==="string"||typeof $==="number"||typeof $==="bigint")B=w==null?B+jJ(""+$,null,Y+1):B+jJ(""+$,void 0,Y+1);return B}function AK(w,$){var X=OK(w);if(X===null){X="";for(w=w.child;w;)X+=AK(w,$),w=w.sibling;return X}return Ow($)+"<"+X+`>
64
- `}function $v(w,$){var X=_K(w,$);if(X!==w&&(w.children.length!==1||w.children[0]!==X))return Ow($)+`...
65
- `+$v(X,$+1);X="";var Y=w.fiber._debugInfo;if(Y)for(var B=0;B<Y.length;B++){var H=Y[B].name;typeof H==="string"&&(X+=Ow($)+"<"+H+`>
66
- `,$++)}if(Y="",B=w.fiber.pendingProps,w.fiber.tag===6)Y=jJ(B,w.serverProps,$),$++;else if(H=OK(w.fiber),H!==null)if(w.serverProps===void 0){Y=$;var W=120-2*Y-H.length-2,q="";for(I in B)if(B.hasOwnProperty(I)&&I!=="children"){var T=G3(B[I],15);if(W-=I.length+T.length+2,0>W){q+=" ...";break}q+=" "+I+"="+T}Y=Ow(Y)+"<"+H+q+`>
67
- `,$++}else w.serverProps===null?(Y=wv(H,B,z3($)),$++):typeof w.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(Y=Tm(H,B,w.serverProps,$),$++);var I="";B=w.fiber.child;for(H=0;B&&H<w.children.length;)W=w.children[H],W.fiber===B?(I+=$v(W,$),H++):I+=AK(B,$),B=B.sibling;B&&0<w.children.length&&(I+=Ow($)+`...
68
- `),B=w.serverTail,w.serverProps===null&&$--;for(w=0;w<B.length;w++)H=B[w],I=typeof H==="string"?I+(D9($)+r$(H,120-2*$)+`
69
- `):I+wv(H.type,H.props,D9($));return X+Y+I}function Zv(w){try{return`
70
-
71
- `+$v(w,0)}catch($){return""}}function CK(w,$,X){for(var Y=$,B=null,H=0;Y;)Y===w&&(H=0),B={fiber:Y,children:B!==null?[B]:[],serverProps:Y===$?X:Y===w?null:void 0,serverTail:[],distanceFromLeaf:H},H++,Y=Y.return;return B!==null?Zv(B).replaceAll(/^[+-]/gm,">"):""}function MK(w,$){var X=B1({},w||VF),Y={tag:$};if(fF.indexOf($)!==-1&&(X.aTagInScope=null,X.buttonTagInScope=null,X.nobrTagInScope=null),Cf.indexOf($)!==-1&&(X.pTagInButtonScope=null),Af.indexOf($)!==-1&&$!=="address"&&$!=="div"&&$!=="p"&&(X.listItemTagAutoclosing=null,X.dlItemTagAutoclosing=null),X.current=Y,$==="form"&&(X.formTag=Y),$==="a"&&(X.aTagInScope=Y),$==="button"&&(X.buttonTagInScope=Y),$==="nobr"&&(X.nobrTagInScope=Y),$==="p"&&(X.pTagInButtonScope=Y),$==="li"&&(X.listItemTagAutoclosing=Y),$==="dd"||$==="dt")X.dlItemTagAutoclosing=Y;return $==="#document"||$==="html"?X.containerTagInScope=null:X.containerTagInScope||(X.containerTagInScope=Y),w!==null||$!=="#document"&&$!=="html"&&$!=="body"?X.implicitRootScope===!0&&(X.implicitRootScope=!1):X.implicitRootScope=!0,X}function xK(w,$,X){switch($){case"select":return w==="hr"||w==="option"||w==="optgroup"||w==="script"||w==="template"||w==="#text";case"optgroup":return w==="option"||w==="#text";case"option":return w==="#text";case"tr":return w==="th"||w==="td"||w==="style"||w==="script"||w==="template";case"tbody":case"thead":case"tfoot":return w==="tr"||w==="style"||w==="script"||w==="template";case"colgroup":return w==="col"||w==="template";case"table":return w==="caption"||w==="colgroup"||w==="tbody"||w==="tfoot"||w==="thead"||w==="style"||w==="script"||w==="template";case"head":return w==="base"||w==="basefont"||w==="bgsound"||w==="link"||w==="meta"||w==="title"||w==="noscript"||w==="noframes"||w==="style"||w==="script"||w==="template";case"html":if(X)break;return w==="head"||w==="body"||w==="frameset";case"frameset":return w==="frame";case"#document":if(!X)return w==="html"}switch(w){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return $!=="h1"&&$!=="h2"&&$!=="h3"&&$!=="h4"&&$!=="h5"&&$!=="h6";case"rp":case"rt":return Mf.indexOf($)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return $==null;case"head":return X||$===null;case"html":return X&&$==="#document"||$===null;case"body":return X&&($==="#document"||$==="html")||$===null}return!0}function Im(w,$){switch(w){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return $.pTagInButtonScope;case"form":return $.formTag||$.pTagInButtonScope;case"li":return $.listItemTagAutoclosing;case"dd":case"dt":return $.dlItemTagAutoclosing;case"button":return $.buttonTagInScope;case"a":return $.aTagInScope;case"nobr":return $.nobrTagInScope}return null}function mK(w,$){for(;w;){switch(w.tag){case 5:case 26:case 27:if(w.type===$)return w}w=w.return}return null}function Xv(w,$){$=$||VF;var X=$.current;if($=(X=xK(w,X&&X.tag,$.implicitRootScope)?null:X)?null:Im(w,$),$=X||$,!$)return!0;var Y=$.tag;if($=String(!!X)+"|"+w+"|"+Y,tY[$])return!1;tY[$]=!0;var B=($=hw)?mK($.return,Y):null,H=$!==null&&B!==null?CK(B,$,null):"",W="<"+w+">";return X?(X="",Y==="table"&&w==="tr"&&(X+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
72
- This will cause a hydration error.%s`,W,Y,X,H)):console.error(`In HTML, %s cannot be a descendant of <%s>.
73
- This will cause a hydration error.%s`,W,Y,H),$&&(w=$.return,B===null||w===null||B===w&&w._debugOwner===$._debugOwner||g0(B,function(){console.error(`<%s> cannot contain a nested %s.
74
- See this log for the ancestor stack trace.`,Y,W)})),!1}function EJ(w,$,X){if(X||xK("#text",$,!1))return!0;if(X="#text|"+$,tY[X])return!1;tY[X]=!0;var Y=(X=hw)?mK(X,$):null;return X=X!==null&&Y!==null?CK(Y,X,X.tag!==6?{children:null}:null):"",/\S/.test(w)?console.error(`In HTML, text nodes cannot be a child of <%s>.
75
- This will cause a hydration error.%s`,$,X):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
76
- This will cause a hydration error.%s`,$,X),!1}function o$(w,$){if($){var X=w.firstChild;if(X&&X===w.lastChild&&X.nodeType===3){X.nodeValue=$;return}}w.textContent=$}function _m(w){return w.replace(Pf,function($,X){return X.toUpperCase()})}function PK(w,$,X){var Y=$.indexOf("--")===0;Y||(-1<$.indexOf("-")?C3.hasOwnProperty($)&&C3[$]||(C3[$]=!0,console.error("Unsupported style property %s. Did you mean %s?",$,_m($.replace(mf,"ms-")))):xf.test($)?C3.hasOwnProperty($)&&C3[$]||(C3[$]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",$,$.charAt(0).toUpperCase()+$.slice(1))):!yF.test(X)||LQ.hasOwnProperty(X)&&LQ[X]||(LQ[X]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,$,X.replace(yF,""))),typeof X==="number"&&(isNaN(X)?SF||(SF=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",$)):isFinite(X)||DF||(DF=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",$)))),X==null||typeof X==="boolean"||X===""?Y?w.setProperty($,""):$==="float"?w.cssFloat="":w[$]="":Y?w.setProperty($,X):typeof X!=="number"||X===0||dF.has($)?$==="float"?w.cssFloat=X:(iw(X,$),w[$]=(""+X).trim()):w[$]=X+"px"}function fK(w,$,X){if($!=null&&typeof $!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if($&&Object.freeze($),w=w.style,X!=null){if($){var Y={};if(X){for(var B in X)if(X.hasOwnProperty(B)&&!$.hasOwnProperty(B))for(var H=qQ[B]||[B],W=0;W<H.length;W++)Y[H[W]]=B}for(var q in $)if($.hasOwnProperty(q)&&(!X||X[q]!==$[q]))for(B=qQ[q]||[q],H=0;H<B.length;H++)Y[B[H]]=q;q={};for(var T in $)for(B=qQ[T]||[T],H=0;H<B.length;H++)q[B[H]]=T;T={};for(var I in Y)if(B=Y[I],(H=q[I])&&B!==H&&(W=B+","+H,!T[W])){T[W]=!0,W=console;var y=$[B];W.error.call(W,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",y==null||typeof y==="boolean"||y===""?"Removing":"Updating",B,H)}}for(var D in X)!X.hasOwnProperty(D)||$!=null&&$.hasOwnProperty(D)||(D.indexOf("--")===0?w.setProperty(D,""):D==="float"?w.cssFloat="":w[D]="");for(var V in $)I=$[V],$.hasOwnProperty(V)&&X[V]!==I&&PK(w,V,I)}else for(Y in $)$.hasOwnProperty(Y)&&PK(w,Y,$[Y])}function s$(w){if(w.indexOf("-")===-1)return!1;switch(w){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function VK(w){return ff.get(w)||w}function Om(w,$){if(x4.call(x3,$)&&x3[$])return!0;if(hf.test($)){if(w="aria-"+$.slice(4).toLowerCase(),w=jF.hasOwnProperty(w)?w:null,w==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",$),x3[$]=!0;if($!==w)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",$,w),x3[$]=!0}if(Vf.test($)){if(w=$.toLowerCase(),w=jF.hasOwnProperty(w)?w:null,w==null)return x3[$]=!0,!1;$!==w&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",$,w),x3[$]=!0)}return!0}function Am(w,$){var X=[],Y;for(Y in $)Om(w,Y)||X.push(Y);$=X.map(function(B){return"`"+B+"`"}).join(", "),X.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",$,w):1<X.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",$,w)}function Cm(w,$,X,Y){if(x4.call(u2,$)&&u2[$])return!0;var B=$.toLowerCase();if(B==="onfocusin"||B==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),u2[$]=!0;if(typeof X==="function"&&(w==="form"&&$==="action"||w==="input"&&$==="formAction"||w==="button"&&$==="formAction"))return!0;if(Y!=null){if(w=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty($))return!0;if(Y=w.hasOwnProperty(B)?w[B]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",$,Y),u2[$]=!0;if(uF.test($))return console.error("Unknown event handler property `%s`. It will be ignored.",$),u2[$]=!0}else if(uF.test($))return Rf.test($)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",$),u2[$]=!0;if(yf.test($)||Sf.test($))return!0;if(B==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),u2[$]=!0;if(B==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),u2[$]=!0;if(B==="is"&&X!==null&&X!==void 0&&typeof X!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof X),u2[$]=!0;if(typeof X==="number"&&isNaN(X))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",$),u2[$]=!0;if(wz.hasOwnProperty(B)){if(B=wz[B],B!==$)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",$,B),u2[$]=!0}else if($!==B)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",$,B),u2[$]=!0;switch($){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof X){case"boolean":switch($){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(B=$.toLowerCase().slice(0,5),B==="data-"||B==="aria-")return!0;return X?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',X,$,$,X,$):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',X,$,$,X,$,$,$),u2[$]=!0}case"function":case"symbol":return u2[$]=!0,!1;case"string":if(X==="false"||X==="true"){switch($){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",X,$,X==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',$,X),u2[$]=!0}}return!0}function Mm(w,$,X){var Y=[],B;for(B in $)Cm(w,B,$[B],X)||Y.push(B);$=Y.map(function(H){return"`"+H+"`"}).join(", "),Y.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",$,w):1<Y.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",$,w)}function t$(w){return Df.test(""+w)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":w}function E6(){}function Jv(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}function hK(w){var $=c0(w);if($&&(w=$.stateNode)){var X=w[E2]||null;w:switch(w=$.stateNode,$.type){case"input":if(sB(w,X.value,X.defaultValue,X.defaultValue,X.checked,X.defaultChecked,X.type,X.name),$=X.name,X.type==="radio"&&$!=null){for(X=w;X.parentNode;)X=X.parentNode;W1($,"name"),X=X.querySelectorAll('input[name="'+sw(""+$)+'"][type="radio"]');for($=0;$<X.length;$++){var Y=X[$];if(Y!==w&&Y.form===w.form){var B=Y[E2]||null;if(!B)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");sB(Y,B.value,B.defaultValue,B.defaultValue,B.checked,B.defaultChecked,B.type,B.name)}}for($=0;$<X.length;$++)Y=X[$],Y.form===w.form&&KK(Y)}break w;case"textarea":TK(w,X.value,X.defaultValue);break w;case"select":$=X.value,$!=null&&Y3(w,!!X.multiple,$,!1)}}}function RK(w,$,X){if(FQ)return w($,X);FQ=!0;try{var Y=w($);return Y}finally{if(FQ=!1,m3!==null||P3!==null){if(q3(),m3&&($=m3,w=P3,P3=m3=null,hK($),w))for($=0;$<w.length;$++)hK(w[$])}}}function e$(w,$){var X=w.stateNode;if(X===null)return null;var Y=X[E2]||null;if(Y===null)return null;X=Y[$];w:switch($){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||(w=w.type,Y=!(w==="button"||w==="input"||w==="select"||w==="textarea")),w=!Y;break w;default:w=!1}if(w)return null;if(X&&typeof X!=="function")throw Error("Expected `"+$+"` listener to be a function, instead got a value of `"+typeof X+"` type.");return X}function yK(){if($z)return $z;var w,$=NQ,X=$.length,Y,B="value"in S8?S8.value:S8.textContent,H=B.length;for(w=0;w<X&&$[w]===B[w];w++);var W=X-w;for(Y=1;Y<=W&&$[X-Y]===B[H-Y];Y++);return $z=B.slice(w,1<Y?1-Y:void 0)}function uJ(w){var $=w.keyCode;return"charCode"in w?(w=w.charCode,w===0&&$===13&&(w=13)):w=$,w===10&&(w=13),32<=w||w===13?w:0}function lJ(){return!0}function SK(){return!1}function Zw(w){function $(X,Y,B,H,W){this._reactName=X,this._targetInst=B,this.type=Y,this.nativeEvent=H,this.target=W,this.currentTarget=null;for(var q in w)w.hasOwnProperty(q)&&(X=w[q],this[q]=X?X(H):H[q]);return this.isDefaultPrevented=(H.defaultPrevented!=null?H.defaultPrevented:H.returnValue===!1)?lJ:SK,this.isPropagationStopped=SK,this}return B1($.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;X&&(X.preventDefault?X.preventDefault():typeof X.returnValue!=="unknown"&&(X.returnValue=!1),this.isDefaultPrevented=lJ)},stopPropagation:function(){var X=this.nativeEvent;X&&(X.stopPropagation?X.stopPropagation():typeof X.cancelBubble!=="unknown"&&(X.cancelBubble=!0),this.isPropagationStopped=lJ)},persist:function(){},isPersistent:lJ}),$}function xm(w){var $=this.nativeEvent;return $.getModifierState?$.getModifierState(w):(w=tf[w])?!!$[w]:!1}function Yv(){return xm}function DK(w,$){switch(w){case"keyup":return HV.indexOf($.keyCode)!==-1;case"keydown":return $.keyCode!==iF;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dK(w){return w=w.detail,typeof w==="object"&&"data"in w?w.data:null}function mm(w,$){switch(w){case"compositionend":return dK($);case"keypress":if($.which!==rF)return null;return oF=!0,nF;case"textInput":return w=$.data,w===nF&&oF?null:w;default:return null}}function Pm(w,$){if(f3)return w==="compositionend"||!OQ&&DK(w,$)?(w=yK(),$z=NQ=S8=null,f3=!1,w):null;switch(w){case"paste":return null;case"keypress":if(!($.ctrlKey||$.altKey||$.metaKey)||$.ctrlKey&&$.altKey){if($.char&&1<$.char.length)return $.char;if($.which)return String.fromCharCode($.which)}return null;case"compositionend":return pF&&$.locale!=="ko"?null:$.data;default:return null}}function jK(w){var $=w&&w.nodeName&&w.nodeName.toLowerCase();return $==="input"?!!gV[w.type]:$==="textarea"?!0:!1}function fm(w){if(!L6)return!1;w="on"+w;var $=w in document;return $||($=document.createElement("div"),$.setAttribute(w,"return;"),$=typeof $[w]==="function"),$}function EK(w,$,X,Y){m3?P3?P3.push(Y):P3=[Y]:m3=Y,$=RY($,"onChange"),0<$.length&&(X=new Zz("onChange","change",null,X,Y),w.push({event:X,listeners:$}))}function Vm(w){IL(w,0)}function cJ(w){var $=u0(w);if(KK($))return w}function uK(w,$){if(w==="change")return $}function lK(){DZ&&(DZ.detachEvent("onpropertychange",cK),dZ=DZ=null)}function cK(w){if(w.propertyName==="value"&&cJ(dZ)){var $=[];EK($,dZ,w,Jv(w)),RK(Vm,$)}}function hm(w,$,X){w==="focusin"?(lK(),DZ=$,dZ=X,DZ.attachEvent("onpropertychange",cK)):w==="focusout"&&lK()}function Rm(w){if(w==="selectionchange"||w==="keyup"||w==="keydown")return cJ(dZ)}function ym(w,$){if(w==="click")return cJ($)}function Sm(w,$){if(w==="input"||w==="change")return cJ($)}function Dm(w,$){return w===$&&(w!==0||1/w===1/$)||w!==w&&$!==$}function wZ(w,$){if(l2(w,$))return!0;if(typeof w!=="object"||w===null||typeof $!=="object"||$===null)return!1;var X=Object.keys(w),Y=Object.keys($);if(X.length!==Y.length)return!1;for(Y=0;Y<X.length;Y++){var B=X[Y];if(!x4.call($,B)||!l2(w[B],$[B]))return!1}return!0}function aK(w){for(;w&&w.firstChild;)w=w.firstChild;return w}function iK(w,$){var X=aK(w);w=0;for(var Y;X;){if(X.nodeType===3){if(Y=w+X.textContent.length,w<=$&&Y>=$)return{node:X,offset:$-w};w=Y}w:{for(;X;){if(X.nextSibling){X=X.nextSibling;break w}X=X.parentNode}X=void 0}X=aK(X)}}function pK(w,$){return w&&$?w===$?!0:w&&w.nodeType===3?!1:$&&$.nodeType===3?pK(w,$.parentNode):("contains"in w)?w.contains($):w.compareDocumentPosition?!!(w.compareDocumentPosition($)&16):!1:!1}function rK(w){w=w!=null&&w.ownerDocument!=null&&w.ownerDocument.defaultView!=null?w.ownerDocument.defaultView:window;for(var $=dJ(w.document);$ instanceof w.HTMLIFrameElement;){try{var X=typeof $.contentWindow.location.href==="string"}catch(Y){X=!1}if(X)w=$.contentWindow;else break;$=dJ(w.document)}return $}function zv(w){var $=w&&w.nodeName&&w.nodeName.toLowerCase();return $&&($==="input"&&(w.type==="text"||w.type==="search"||w.type==="tel"||w.type==="url"||w.type==="password")||$==="textarea"||w.contentEditable==="true")}function nK(w,$,X){var Y=X.window===X?X.document:X.nodeType===9?X:X.ownerDocument;CQ||V3==null||V3!==dJ(Y)||(Y=V3,("selectionStart"in Y)&&zv(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),jZ&&wZ(jZ,Y)||(jZ=Y,Y=RY(AQ,"onSelect"),0<Y.length&&($=new Zz("onSelect","select",null,$,X),w.push({event:$,listeners:Y}),$.target=V3)))}function d9(w,$){var X={};return X[w.toLowerCase()]=$.toLowerCase(),X["Webkit"+w]="webkit"+$,X["Moz"+w]="moz"+$,X}function j9(w){if(MQ[w])return MQ[w];if(!h3[w])return w;var $=h3[w],X;for(X in $)if($.hasOwnProperty(X)&&X in tF)return MQ[w]=$[X];return w}function A4(w,$){Xk.set(w,$),V0($,[w])}function dm(w){for(var $=Jz,X=0;X<w.length;X++){var Y=w[X];if(typeof Y==="object"&&Y!==null)if(p5(Y)&&Y.length===2&&typeof Y[0]==="string"){if($!==Jz&&$!==VQ)return PQ;$=VQ}else return PQ;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||$!==Jz&&$!==fQ)return PQ;$=fQ}}return $}function Gv(w,$,X,Y){for(var B in w)x4.call(w,B)&&B[0]!=="_"&&o4(B,w[B],$,X,Y)}function o4(w,$,X,Y,B){switch(typeof $){case"object":if($===null){$="null";break}else{if($.$$typeof===g6){var H=$0($.type)||"…",W=$.key;$=$.props;var q=Object.keys($),T=q.length;if(W==null&&T===0){$="<"+H+" />";break}if(3>Y||T===1&&q[0]==="children"&&W==null){$="<"+H+" … />";break}X.push([B+"  ".repeat(Y)+w,"<"+H]),W!==null&&o4("key",W,X,Y+1,B),w=!1;for(var I in $)I==="children"?$.children!=null&&(!p5($.children)||0<$.children.length)&&(w=!0):x4.call($,I)&&I[0]!=="_"&&o4(I,$[I],X,Y+1,B);X.push(["",w?">…</"+H+">":"/>"]);return}if(H=Object.prototype.toString.call($),H=H.slice(8,H.length-1),H==="Array"){if(I=dm($),I===fQ||I===Jz){$=JSON.stringify($);break}else if(I===VQ){X.push([B+"  ".repeat(Y)+w,""]);for(w=0;w<$.length;w++)H=$[w],o4(H[0],H[1],X,Y+1,B);return}}if(H==="Promise"){if($.status==="fulfilled"){if(H=X.length,o4(w,$.value,X,Y,B),X.length>H){X=X[H],X[1]="Promise<"+(X[1]||"Object")+">";return}}else if($.status==="rejected"&&(H=X.length,o4(w,$.reason,X,Y,B),X.length>H)){X=X[H],X[1]="Rejected Promise<"+X[1]+">";return}X.push(["  ".repeat(Y)+w,"Promise"]);return}H==="Object"&&(I=Object.getPrototypeOf($))&&typeof I.constructor==="function"&&(H=I.constructor.name),X.push([B+"  ".repeat(Y)+w,H==="Object"?3>Y?"":"…":H]),3>Y&&Gv($,X,Y+1,B);return}case"function":$=$.name===""?"() => {}":$.name+"() {}";break;case"string":$=$===FV?"…":JSON.stringify($);break;case"undefined":$="undefined";break;case"boolean":$=$?"true":"false";break;default:$=String($)}X.push([B+"  ".repeat(Y)+w,$])}function oK(w,$,X,Y){var B=!0;for(W in w)W in $||(X.push([Yz+"  ".repeat(Y)+W,"…"]),B=!1);for(var H in $)if(H in w){var W=w[H],q=$[H];if(W!==q){if(Y===0&&H==="children")B="  ".repeat(Y)+H,X.push([Yz+B,"…"],[zz+B,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof q==="object"&&W!==null&&q!==null&&W.$$typeof===q.$$typeof)if(q.$$typeof===g6){if(W.type===q.type&&W.key===q.key){W=$0(q.type)||"…",B="  ".repeat(Y)+H,W="<"+W+" … />",X.push([Yz+B,W],[zz+B,W]),B=!1;continue}}else{var T=Object.prototype.toString.call(W),I=Object.prototype.toString.call(q);if(T===I&&(I==="[object Object]"||I==="[object Array]")){T=[zk+"  ".repeat(Y)+H,I==="[object Array]"?"Array":""],X.push(T),I=X.length,oK(W,q,X,Y+1)?I===X.length&&(T[1]="Referentially unequal but deeply equal objects. Consider memoization."):B=!1;continue}}else if(typeof W==="function"&&typeof q==="function"&&W.name===q.name&&W.length===q.length&&(T=Function.prototype.toString.call(W),I=Function.prototype.toString.call(q),T===I)){W=q.name===""?"() => {}":q.name+"() {}",X.push([zk+"  ".repeat(Y)+H,W+" Referentially unequal function closure. Consider memoization."]);continue}}o4(H,W,X,Y,Yz),o4(H,q,X,Y,zz)}B=!1}}else X.push([zz+"  ".repeat(Y)+H,"…"]),B=!1;return B}function Aw(w){g1=w&63?"Blocking":w&64?"Gesture":w&4194176?"Transition":w&62914560?"Suspense":w&2080374784?"Idle":"Other"}function s4(w,$,X,Y){r1&&(d8.start=$,d8.end=X,o6.color="warning",o6.tooltipText=Y,o6.properties=null,(w=w._debugTask)?w.run(performance.measure.bind(performance,Y,d8)):performance.measure(Y,d8))}function aJ(w,$,X){s4(w,$,X,"Reconnect")}function iJ(w,$,X,Y,B){var H=E(w);if(H!==null&&r1){var{alternate:W,actualDuration:q}=w;if(W===null||W.child!==w.child)for(var T=w.child;T!==null;T=T.sibling)q-=T.actualDuration;Y=0.5>q?Y?"tertiary-light":"primary-light":10>q?Y?"tertiary":"primary":100>q?Y?"tertiary-dark":"primary-dark":"error";var I=w.memoizedProps;q=w._debugTask,I!==null&&W!==null&&W.memoizedProps!==I?(T=[kV],I=oK(W.memoizedProps,I,T,0),1<T.length&&(I&&!D8&&(W.lanes&B)===0&&100<w.actualDuration?(D8=!0,T[0]=NV,o6.color="warning",o6.tooltipText=Gk):(o6.color=Y,o6.tooltipText=H),o6.properties=T,d8.start=$,d8.end=X,q!=null?q.run(performance.measure.bind(performance,"​"+H,d8)):performance.measure("​"+H,d8))):q!=null?q.run(console.timeStamp.bind(console,H,$,X,ew,void 0,Y)):console.timeStamp(H,$,X,ew,void 0,Y)}}function Bv(w,$,X,Y){if(r1){var B=E(w);if(B!==null){for(var H=null,W=[],q=0;q<Y.length;q++){var T=Y[q];H==null&&T.source!==null&&(H=T.source._debugTask),T=T.value,W.push(["Error",typeof T==="object"&&T!==null&&typeof T.message==="string"?String(T.message):String(T)])}w.key!==null&&o4("key",w.key,W,0,""),w.memoizedProps!==null&&Gv(w.memoizedProps,W,0,""),H==null&&(H=w._debugTask),w={start:$,end:X,detail:{devtools:{color:"error",track:ew,tooltipText:w.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},H?H.run(performance.measure.bind(performance,"​"+B,w)):performance.measure("​"+B,w)}}}function t4(w,$,X,Y,B){if(B!==null){if(r1){var H=E(w);if(H!==null){Y=[];for(var W=0;W<B.length;W++){var q=B[W].value;Y.push(["Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}w.key!==null&&o4("key",w.key,Y,0,""),w.memoizedProps!==null&&Gv(w.memoizedProps,Y,0,""),$={start:$,end:X,detail:{devtools:{color:"error",track:ew,tooltipText:"A lifecycle or effect errored",properties:Y}}},(w=w._debugTask)?w.run(performance.measure.bind(performance,"​"+H,$)):performance.measure("​"+H,$)}}}else H=E(w),H!==null&&r1&&(B=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",(w=w._debugTask)?w.run(console.timeStamp.bind(console,H,$,X,ew,void 0,B)):console.timeStamp(H,$,X,ew,void 0,B))}function jm(w,$,X,Y){if(r1&&!($<=w)){var B=(X&738197653)===X?"tertiary-dark":"primary-dark";X=(X&536870912)===X?"Prepared":(X&201326741)===X?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,X,w,$,g1,v1,B)):console.timeStamp(X,w,$,g1,v1,B)}}function sK(w,$,X,Y){!r1||$<=w||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",w,$,g1,v1,X)):console.timeStamp("Prewarm",w,$,g1,v1,X))}function tK(w,$,X,Y){!r1||$<=w||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",w,$,g1,v1,X)):console.timeStamp("Suspended",w,$,g1,v1,X))}function Em(w,$,X,Y,B,H){if(r1&&!($<=w)){X=[];for(var W=0;W<Y.length;W++){var q=Y[W].value;X.push(["Recoverable Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}w={start:w,end:$,detail:{devtools:{color:"primary-dark",track:g1,trackGroup:v1,tooltipText:B?"Hydration Failed":"Recovered after Error",properties:X}}},H?H.run(performance.measure.bind(performance,"Recovered",w)):performance.measure("Recovered",w)}}function vv(w,$,X,Y){!r1||$<=w||(Y?Y.run(console.timeStamp.bind(console,"Errored",w,$,g1,v1,"error")):console.timeStamp("Errored",w,$,g1,v1,"error"))}function um(w,$,X,Y){!r1||$<=w||(Y?Y.run(console.timeStamp.bind(console,X,w,$,g1,v1,"secondary-light")):console.timeStamp(X,w,$,g1,v1,"secondary-light"))}function eK(w,$,X,Y,B){if(r1&&!($<=w)){for(var H=[],W=0;W<X.length;W++){var q=X[W].value;H.push(["Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}w={start:w,end:$,detail:{devtools:{color:"error",track:g1,trackGroup:v1,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:H}}},B?B.run(performance.measure.bind(performance,"Errored",w)):performance.measure("Errored",w)}}function $Z(w,$,X){!r1||$<=w||(X?X.run(console.timeStamp.bind(console,"Animating",w,$,g1,v1,"secondary-dark")):console.timeStamp("Animating",w,$,g1,v1,"secondary-dark"))}function pJ(){for(var w=R3,$=hQ=R3=0;$<w;){var X=w4[$];w4[$++]=null;var Y=w4[$];w4[$++]=null;var B=w4[$];w4[$++]=null;var H=w4[$];if(w4[$++]=null,Y!==null&&B!==null){var W=Y.pending;W===null?B.next=B:(B.next=W.next,W.next=B),Y.pending=B}H!==0&&wU(X,B,H)}}function rJ(w,$,X,Y){w4[R3++]=w,w4[R3++]=$,w4[R3++]=X,w4[R3++]=Y,hQ|=Y,w.lanes|=Y,w=w.alternate,w!==null&&(w.lanes|=Y)}function Hv(w,$,X,Y){return rJ(w,$,X,Y),nJ(w)}function x2(w,$){return rJ(w,null,null,$),nJ(w)}function wU(w,$,X){w.lanes|=X;var Y=w.alternate;Y!==null&&(Y.lanes|=X);for(var B=!1,H=w.return;H!==null;)H.childLanes|=X,Y=H.alternate,Y!==null&&(Y.childLanes|=X),H.tag===22&&(w=H.stateNode,w===null||w._visibility&EZ||(B=!0)),w=H,H=H.return;return w.tag===3?(H=w.stateNode,B&&$!==null&&(B=31-j2(X),w=H.hiddenUpdates,Y=w[B],Y===null?w[B]=[$]:Y.push($),$.lane=X|536870912),H):null}function nJ(w){if(WX>yV)throw K7=WX=0,KX=bg=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");K7>SV&&(K7=0,KX=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),w.alternate===null&&(w.flags&4098)!==0&&UL(w);for(var $=w,X=$.return;X!==null;)$.alternate===null&&($.flags&4098)!==0&&UL(w),$=X,X=$.return;return $.tag===3?$.stateNode:null}function E9(w){if($4===null)return w;var $=$4(w);return $===void 0?w:$.current}function Qv(w){if($4===null)return w;var $=$4(w);return $===void 0?w!==null&&w!==void 0&&typeof w.render==="function"&&($=E9(w.render),w.render!==$)?($={$$typeof:xZ,render:$},w.displayName!==void 0&&($.displayName=w.displayName),$):w:$.current}function $U(w,$){if($4===null)return!1;var X=w.elementType;$=$.type;var Y=!1,B=typeof $==="object"&&$!==null?$.$$typeof:null;switch(w.tag){case 1:typeof $==="function"&&(Y=!0);break;case 0:typeof $==="function"?Y=!0:B===Vw&&(Y=!0);break;case 11:B===xZ?Y=!0:B===Vw&&(Y=!0);break;case 14:case 15:B===iY?Y=!0:B===Vw&&(Y=!0);break;default:return!1}return Y&&(w=$4(X),w!==void 0&&w===$4($))?!0:!1}function ZU(w){$4!==null&&typeof WeakSet==="function"&&(y3===null&&(y3=new WeakSet),y3.add(w))}function XU(w,$,X){do{var Y=w,B=Y.alternate,H=Y.child,W=Y.sibling,q=Y.tag;Y=Y.type;var T=null;switch(q){case 0:case 15:case 1:T=Y;break;case 11:T=Y.render}if($4===null)throw Error("Expected resolveFamily to be set during hot reload.");var I=!1;if(Y=!1,T!==null&&(T=$4(T),T!==void 0&&(X.has(T)?Y=!0:$.has(T)&&(q===1?Y=!0:I=!0))),y3!==null&&(y3.has(w)||B!==null&&y3.has(B))&&(Y=!0),Y&&(w._debugNeedsRemount=!0),Y||I)B=x2(w,2),B!==null&&k5(B,w,2);if(H===null||Y||XU(H,$,X),W===null)break;w=W}while(1)}function lm(w,$,X,Y){this.tag=w,this.key=X,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=$,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Bk||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function gv(w){return w=w.prototype,!(!w||!w.isReactComponent)}function u6(w,$){var X=w.alternate;switch(X===null?(X=k(w.tag,$,w.key,w.mode),X.elementType=w.elementType,X.type=w.type,X.stateNode=w.stateNode,X._debugOwner=w._debugOwner,X._debugStack=w._debugStack,X._debugTask=w._debugTask,X._debugHookTypes=w._debugHookTypes,X.alternate=w,w.alternate=X):(X.pendingProps=$,X.type=w.type,X.flags=0,X.subtreeFlags=0,X.deletions=null,X.actualDuration=-0,X.actualStartTime=-1.1),X.flags=w.flags&65011712,X.childLanes=w.childLanes,X.lanes=w.lanes,X.child=w.child,X.memoizedProps=w.memoizedProps,X.memoizedState=w.memoizedState,X.updateQueue=w.updateQueue,$=w.dependencies,X.dependencies=$===null?null:{lanes:$.lanes,firstContext:$.firstContext,_debugThenableState:$._debugThenableState},X.sibling=w.sibling,X.index=w.index,X.ref=w.ref,X.refCleanup=w.refCleanup,X.selfBaseDuration=w.selfBaseDuration,X.treeBaseDuration=w.treeBaseDuration,X._debugInfo=w._debugInfo,X._debugNeedsRemount=w._debugNeedsRemount,X.tag){case 0:case 15:X.type=E9(w.type);break;case 1:X.type=E9(w.type);break;case 11:X.type=Qv(w.type)}return X}function JU(w,$){w.flags&=65011714;var X=w.alternate;return X===null?(w.childLanes=0,w.lanes=$,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null,w.selfBaseDuration=0,w.treeBaseDuration=0):(w.childLanes=X.childLanes,w.lanes=X.lanes,w.child=X.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=X.memoizedProps,w.memoizedState=X.memoizedState,w.updateQueue=X.updateQueue,w.type=X.type,$=X.dependencies,w.dependencies=$===null?null:{lanes:$.lanes,firstContext:$.firstContext,_debugThenableState:$._debugThenableState},w.selfBaseDuration=X.selfBaseDuration,w.treeBaseDuration=X.treeBaseDuration),w}function bv(w,$,X,Y,B,H){var W=0,q=w;if(typeof w==="function")gv(w)&&(W=1),q=E9(q);else if(typeof w==="string")W=u(),W=tP(w,X,W)?26:w==="html"||w==="head"||w==="body"?27:5;else w:switch(w){case YQ:return $=k(31,X,$,B),$.elementType=YQ,$.lanes=H,$;case _3:return u9(X.children,B,H,$);case aY:W=8,B|=P2,B|=P4;break;case $Q:return w=X,Y=B,typeof w.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof w.id),$=k(12,w,$,Y|w1),$.elementType=$Q,$.lanes=H,$.stateNode={effectDuration:0,passiveEffectDuration:0},$;case XQ:return $=k(13,X,$,B),$.elementType=XQ,$.lanes=H,$;case JQ:return $=k(19,X,$,B),$.elementType=JQ,$.lanes=H,$;default:if(typeof w==="object"&&w!==null)switch(w.$$typeof){case b6:W=10;break w;case ZQ:W=9;break w;case xZ:W=11,q=Qv(q);break w;case iY:W=14;break w;case Vw:W=16,q=null;break w}if(q="",w===void 0||typeof w==="object"&&w!==null&&Object.keys(w).length===0)q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";w===null?X="null":p5(w)?X="array":w!==void 0&&w.$$typeof===g6?(X="<"+($0(w.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):X=typeof w,(W=Y?s(Y):null)&&(q+=`
77
-
78
- Check the render method of \``+W+"`."),W=29,X=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(X+"."+q)),q=null}return $=k(W,X,$,B),$.elementType=w,$.type=q,$.lanes=H,$._debugOwner=Y,$}function oJ(w,$,X){return $=bv(w.type,w.key,w.props,w._owner,$,X),$._debugOwner=w._owner,$._debugStack=w._debugStack,$._debugTask=w._debugTask,$}function u9(w,$,X,Y){return w=k(7,w,Y,$),w.lanes=X,w}function Wv(w,$,X){return w=k(6,w,null,$),w.lanes=X,w}function YU(w){var $=k(18,null,null,l0);return $.stateNode=w,$}function Kv(w,$,X){return $=k(4,w.children!==null?w.children:[],w.key,$),$.lanes=X,$.stateNode={containerInfo:w.containerInfo,pendingChildren:null,implementation:w.implementation},$}function Cw(w,$){if(typeof w==="object"&&w!==null){var X=RQ.get(w);if(X!==void 0)return X;return $={value:w,source:$,stack:w0($)},RQ.set(w,$),$}return{value:w,source:$,stack:w0($)}}function l6(w,$){N8(),S3[D3++]=uZ,S3[D3++]=Gz,Gz=w,uZ=$}function zU(w,$,X){N8(),Z4[X4++]=t6,Z4[X4++]=e6,Z4[X4++]=$7,$7=w;var Y=t6;w=e6;var B=32-j2(Y)-1;Y&=~(1<<B),X+=1;var H=32-j2($)+B;if(30<H){var W=B-B%5;H=(Y&(1<<W)-1).toString(32),Y>>=W,B-=W,t6=1<<32-j2($)+B|X<<B|Y,e6=H+w}else t6=1<<H|X<<B|Y,e6=w}function Uv(w){N8(),w.return!==null&&(l6(w,1),zU(w,1,0))}function qv(w){for(;w===Gz;)Gz=S3[--D3],S3[D3]=null,uZ=S3[--D3],S3[D3]=null;for(;w===$7;)$7=Z4[--X4],Z4[X4]=null,e6=Z4[--X4],Z4[X4]=null,t6=Z4[--X4],Z4[X4]=null}function GU(){return N8(),$7!==null?{id:t6,overflow:e6}:null}function BU(w,$){N8(),Z4[X4++]=t6,Z4[X4++]=e6,Z4[X4++]=$7,t6=$.id,e6=$.overflow,$7=w}function N8(){K1||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function l9(w,$){if(w.return===null){if(yw===null)yw={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:$};else{if(yw.fiber!==w)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");yw.distanceFromLeaf>$&&(yw.distanceFromLeaf=$)}return yw}var X=l9(w.return,$+1).children;if(0<X.length&&X[X.length-1].fiber===w)return X=X[X.length-1],X.distanceFromLeaf>$&&(X.distanceFromLeaf=$),X;return $={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:$},X.push($),$}function vU(){K1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function sJ(w,$){F6||(w=l9(w,0),w.serverProps=null,$!==null&&($=EL($),w.serverTail.push($)))}function T8(w){var $=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,X="",Y=yw;throw Y!==null&&(yw=null,X=Zv(Y)),ZZ(Cw(Error("Hydration failed because the server rendered "+($?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
79
-
80
- - A server/client branch \`if (typeof window !== 'undefined')\`.
81
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
82
- - Date formatting in a user's locale which doesn't match the server.
83
- - External changing data without sending a snapshot of it along with the HTML.
84
- - Invalid HTML tag nesting.
85
-
86
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
87
-
88
- https://react.dev/link/hydration-mismatch`+X),w)),yQ}function HU(w){var{stateNode:$,type:X,memoizedProps:Y}=w;switch($[N2]=w,$[E2]=Y,SH(X,Y),X){case"dialog":U1("cancel",$),U1("close",$);break;case"iframe":case"object":case"embed":U1("load",$);break;case"video":case"audio":for(X=0;X<UX.length;X++)U1(UX[X],$);break;case"source":U1("error",$);break;case"img":case"image":case"link":U1("error",$),U1("load",$);break;case"details":U1("toggle",$);break;case"input":I1("input",Y),U1("invalid",$),UK($,Y),qK($,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":LK($,Y);break;case"select":I1("select",Y),U1("invalid",$),kK($,Y);break;case"textarea":I1("textarea",Y),U1("invalid",$),NK($,Y),IK($,Y.value,Y.defaultValue,Y.children)}X=Y.children,typeof X!=="string"&&typeof X!=="number"&&typeof X!=="bigint"||$.textContent===""+X||Y.suppressHydrationWarning===!0||CL($.textContent,X)?(Y.popover!=null&&(U1("beforetoggle",$),U1("toggle",$)),Y.onScroll!=null&&U1("scroll",$),Y.onScrollEnd!=null&&U1("scrollend",$),Y.onClick!=null&&($.onclick=E6),$=!0):$=!1,$||T8(w,!0)}function QU(w){for(T2=w.return;T2;)switch(T2.tag){case 5:case 31:case 13:J4=!1;return;case 27:case 3:J4=!0;return;default:T2=T2.return}}function B3(w){if(w!==T2)return!1;if(!K1)return QU(w),K1=!0,!1;var $=w.tag,X;if(X=$!==3&&$!==27){if(X=$===5)X=w.type,X=!(X!=="form"&&X!=="button")||uH(w.type,w.memoizedProps);X=!X}if(X&&n1){for(X=n1;X;){var Y=l9(w,0),B=EL(X);Y.serverTail.push(B),X=B.type==="Suspense"?iH(X):fw(X.nextSibling)}T8(w)}if(QU(w),$===13){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n1=iH(w)}else if($===31){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n1=iH(w)}else $===27?($=n1,f8(w.type)?(w=Og,Og=null,n1=w):n1=$):n1=T2?fw(w.stateNode.nextSibling):null;return!0}function c9(){n1=T2=null,F6=K1=!1}function Lv(){var w=E8;return w!==null&&(p2===null?p2=w:p2.push.apply(p2,w),E8=null),w}function ZZ(w){E8===null?E8=[w]:E8.push(w)}function Fv(){var w=yw;if(w!==null){yw=null;for(var $=Zv(w);0<w.children.length;)w=w.children[0];g0(w.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
89
-
90
- - A server/client branch \`if (typeof window !== 'undefined')\`.
91
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
92
- - Date formatting in a user's locale which doesn't match the server.
93
- - External changing data without sending a snapshot of it along with the HTML.
94
- - Invalid HTML tag nesting.
95
-
96
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
97
-
98
- %s%s`,"https://react.dev/link/hydration-mismatch",$)})}}function tJ(){d3=Bz=null,j3=!1}function I8(w,$,X){q0(SQ,$._currentValue,w),$._currentValue=X,q0(DQ,$._currentRenderer,w),$._currentRenderer!==void 0&&$._currentRenderer!==null&&$._currentRenderer!==Hk&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),$._currentRenderer=Hk}function c6(w,$){w._currentValue=SQ.current;var X=DQ.current;G0(DQ,$),w._currentRenderer=X,G0(SQ,$)}function kv(w,$,X){for(;w!==null;){var Y=w.alternate;if((w.childLanes&$)!==$?(w.childLanes|=$,Y!==null&&(Y.childLanes|=$)):Y!==null&&(Y.childLanes&$)!==$&&(Y.childLanes|=$),w===X)break;w=w.return}w!==X&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Nv(w,$,X,Y){var B=w.child;B!==null&&(B.return=w);for(;B!==null;){var H=B.dependencies;if(H!==null){var W=B.child;H=H.firstContext;w:for(;H!==null;){var q=H;H=B;for(var T=0;T<$.length;T++)if(q.context===$[T]){H.lanes|=X,q=H.alternate,q!==null&&(q.lanes|=X),kv(H.return,X,w),Y||(W=null);break w}H=q.next}}else if(B.tag===18){if(W=B.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=X,H=W.alternate,H!==null&&(H.lanes|=X),kv(W,X,w),W=null}else W=B.child;if(W!==null)W.return=B;else for(W=B;W!==null;){if(W===w){W=null;break}if(B=W.sibling,B!==null){B.return=W.return,W=B;break}W=W.return}B=W}}function v3(w,$,X,Y){w=null;for(var B=$,H=!1;B!==null;){if(!H){if((B.flags&524288)!==0)H=!0;else if((B.flags&262144)!==0)break}if(B.tag===10){var W=B.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var q=B.type;l2(B.pendingProps.value,W.value)||(w!==null?w.push(q):w=[q])}}else if(B===pY.current){if(W=B.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==B.memoizedState.memoizedState&&(w!==null?w.push(NX):w=[NX])}B=B.return}w!==null&&Nv($,w,X,Y),$.flags|=262144}function eJ(w){for(w=w.firstContext;w!==null;){if(!l2(w.context._currentValue,w.memoizedValue))return!0;w=w.next}return!1}function a9(w){Bz=w,d3=null,w=w.dependencies,w!==null&&(w.firstContext=null)}function X5(w){return j3&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),gU(Bz,w)}function wY(w,$){return Bz===null&&a9(w),gU(w,$)}function gU(w,$){var X=$._currentValue;if($={context:$,memoizedValue:X,next:null},d3===null){if(w===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");d3=$,w.dependencies={lanes:0,firstContext:$,_debugThenableState:null},w.flags|=524288}else d3=d3.next=$;return X}function Tv(){return{controller:new _V,data:new Map,refCount:0}}function i9(w){w.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),w.refCount++}function XZ(w){w.refCount--,0>w.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),w.refCount===0&&OV(AV,function(){w.controller.abort()})}function e4(w,$,X){if((w&127)!==0)0>k6&&(k6=R5(),cZ=vz($),dQ=$,X!=null&&(jQ=E(X)),(F1&(n5|dw))!==g2&&(N5=!0,c8=lZ),w=_Z(),$=IZ(),w!==E3||$!==aZ?E3=-1.1:$!==null&&(c8=lZ),X7=w,aZ=$);else if((w&4194048)!==0&&0>Y4&&(Y4=R5(),iZ=vz($),Qk=$,X!=null&&(gk=E(X)),0>Z8)){if(w=_Z(),$=IZ(),w!==i8||$!==J7)i8=-1.1;a8=w,J7=$}}function cm(w){if(0>k6){k6=R5(),cZ=w._debugTask!=null?w._debugTask:null,(F1&(n5|dw))!==g2&&(c8=lZ);var $=_Z(),X=IZ();$!==E3||X!==aZ?E3=-1.1:X!==null&&(c8=lZ),X7=$,aZ=X}if(0>Y4&&(Y4=R5(),iZ=w._debugTask!=null?w._debugTask:null,0>Z8)){if(w=_Z(),$=IZ(),w!==i8||$!==J7)i8=-1.1;a8=w,J7=$}}function a6(){var w=Z7;return Z7=0,w}function $Y(w){var $=Z7;return Z7=w,$}function JZ(w){var $=Z7;return Z7+=w,$}function ZY(){j0=S0=-1.1}function Mw(){var w=S0;return S0=-1.1,w}function xw(w){0<=w&&(S0=w)}function w6(){var w=Q5;return Q5=-0,w}function $6(w){0<=w&&(Q5=w)}function Z6(){var w=J5;return J5=null,w}function X6(){var w=N5;return N5=!1,w}function Iv(w){c2=R5(),0>w.actualStartTime&&(w.actualStartTime=c2)}function _v(w){if(0<=c2){var $=R5()-c2;w.actualDuration+=$,w.selfBaseDuration=$,c2=-1}}function bU(w){if(0<=c2){var $=R5()-c2;w.actualDuration+=$,c2=-1}}function J6(){if(0<=c2){var w=R5(),$=w-c2;c2=-1,Z7+=$,Q5+=$,j0=w}}function WU(w){J5===null&&(J5=[]),J5.push(w),$8===null&&($8=[]),$8.push(w)}function Y6(){c2=R5(),0>S0&&(S0=c2)}function YZ(w){for(var $=w.child;$;)w.actualDuration+=$.actualDuration,$=$.sibling}function am(w,$){if(rZ===null){var X=rZ=[];uQ=0,Y7=VH(),u3={status:"pending",value:void 0,then:function(Y){X.push(Y)}}}return uQ++,$.then(KU,KU),$}function KU(){if(--uQ===0&&(-1<Y4||(Z8=-1.1),rZ!==null)){u3!==null&&(u3.status="fulfilled");var w=rZ;rZ=null,Y7=0,u3=null;for(var $=0;$<w.length;$++)(0,w[$])()}}function im(w,$){var X=[],Y={status:"pending",value:null,reason:null,then:function(B){X.push(B)}};return w.then(function(){Y.status="fulfilled",Y.value=$;for(var B=0;B<X.length;B++)(0,X[B])($)},function(B){Y.status="rejected",Y.reason=B;for(B=0;B<X.length;B++)(0,X[B])(void 0)}),Y}function Ov(){var w=z7.current;return w!==null?w:u1.pooledCache}function XY(w,$){$===null?q0(z7,z7.current,w):q0(z7,$.pool,w)}function UU(){var w=Ov();return w===null?null:{parent:h5._currentValue,pool:w}}function qU(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function LU(w){return w=w.status,w==="fulfilled"||w==="rejected"}function FU(w,$,X){Y0.actQueue!==null&&(Y0.didUsePromise=!0);var Y=w.thenables;if(X=Y[X],X===void 0?Y.push($):X!==$&&(w.didWarnAboutUncachedPromise||(w.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),$.then(E6,E6),$=X),$._debugInfo===void 0){w=performance.now(),Y=$.displayName;var B={name:typeof Y==="string"?Y:"Promise",start:w,end:w,value:$};$._debugInfo=[{awaited:B}],$.status!=="fulfilled"&&$.status!=="rejected"&&(w=function(){B.end=performance.now()},$.then(w,w))}switch($.status){case"fulfilled":return $.value;case"rejected":throw w=$.reason,NU(w),w;default:if(typeof $.status==="string")$.then(E6,E6);else{if(w=u1,w!==null&&100<w.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");w=$,w.status="pending",w.then(function(H){if($.status==="pending"){var W=$;W.status="fulfilled",W.value=H}},function(H){if($.status==="pending"){var W=$;W.status="rejected",W.reason=H}})}switch($.status){case"fulfilled":return $.value;case"rejected":throw w=$.reason,NU(w),w}throw B7=$,$X=!0,l3}}function _8(w){try{return mV(w)}catch($){if($!==null&&typeof $==="object"&&typeof $.then==="function")throw B7=$,$X=!0,l3;throw $}}function kU(){if(B7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var w=B7;return B7=null,$X=!1,w}function NU(w){if(w===l3||w===qz)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function L2(w){var $=$1;return w!=null&&($1=$===null?w:$.concat(w)),$}function Av(){var w=$1;if(w!=null){for(var $=w.length-1;0<=$;$--)if(w[$].name!=null){var X=w[$].debugTask;if(X!=null)return X}}return null}function JY(w,$,X){for(var Y=Object.keys(w.props),B=0;B<Y.length;B++){var H=Y[B];if(H!=="children"&&H!=="key"){$===null&&($=oJ(w,X.mode,0),$._debugInfo=$1,$.return=X),g0($,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},H);break}}}function YY(w){var $=ZX;return ZX+=1,c3===null&&(c3=qU()),FU(c3,w,$)}function zZ(w,$){$=$.props.ref,w.ref=$!==void 0?$:null}function TU(w,$){if($.$$typeof===Bf)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
99
- - Multiple copies of the "react" package is used.
100
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
101
- - A compiler tries to "inline" JSX instead of using the runtime.`);throw w=Object.prototype.toString.call($),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}function zY(w,$){var X=Av();X!==null?X.run(TU.bind(null,w,$)):TU(w,$)}function IU(w,$){var X=E(w)||"Component";fk[X]||(fk[X]=!0,$=$.displayName||$.name||"Component",w.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
- root.render(%s)`,$,$,$):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
103
- <%s>{%s}</%s>`,$,$,X,$,X))}function GY(w,$){var X=Av();X!==null?X.run(IU.bind(null,w,$)):IU(w,$)}function _U(w,$){var X=E(w)||"Component";Vk[X]||(Vk[X]=!0,$=String($),w.tag===3?console.error(`Symbols are not valid as a React child.
104
- root.render(%s)`,$):console.error(`Symbols are not valid as a React child.
105
- <%s>%s</%s>`,X,$,X))}function BY(w,$){var X=Av();X!==null?X.run(_U.bind(null,w,$)):_U(w,$)}function OU(w){function $(f,h){if(w){var R=f.deletions;R===null?(f.deletions=[h],f.flags|=16):R.push(h)}}function X(f,h){if(!w)return null;for(;h!==null;)$(f,h),h=h.sibling;return null}function Y(f){for(var h=new Map;f!==null;)f.key!==null?h.set(f.key,f):h.set(f.index,f),f=f.sibling;return h}function B(f,h){return f=u6(f,h),f.index=0,f.sibling=null,f}function H(f,h,R){if(f.index=R,!w)return f.flags|=1048576,h;if(R=f.alternate,R!==null)return R=R.index,R<h?(f.flags|=67108866,h):R;return f.flags|=67108866,h}function W(f){return w&&f.alternate===null&&(f.flags|=67108866),f}function q(f,h,R,v0){if(h===null||h.tag!==6)return h=Wv(R,f.mode,v0),h.return=f,h._debugOwner=f,h._debugTask=f._debugTask,h._debugInfo=$1,h;return h=B(h,R),h.return=f,h._debugInfo=$1,h}function T(f,h,R,v0){var T0=R.type;if(T0===_3)return h=y(f,h,R.props.children,v0,R.key),JY(R,h,f),h;if(h!==null&&(h.elementType===T0||$U(h,R)||typeof T0==="object"&&T0!==null&&T0.$$typeof===Vw&&_8(T0)===h.type))return h=B(h,R.props),zZ(h,R),h.return=f,h._debugOwner=R._owner,h._debugInfo=$1,h;return h=oJ(R,f.mode,v0),zZ(h,R),h.return=f,h._debugInfo=$1,h}function I(f,h,R,v0){if(h===null||h.tag!==4||h.stateNode.containerInfo!==R.containerInfo||h.stateNode.implementation!==R.implementation)return h=Kv(R,f.mode,v0),h.return=f,h._debugInfo=$1,h;return h=B(h,R.children||[]),h.return=f,h._debugInfo=$1,h}function y(f,h,R,v0,T0){if(h===null||h.tag!==7)return h=u9(R,f.mode,v0,T0),h.return=f,h._debugOwner=f,h._debugTask=f._debugTask,h._debugInfo=$1,h;return h=B(h,R),h.return=f,h._debugInfo=$1,h}function D(f,h,R){if(typeof h==="string"&&h!==""||typeof h==="number"||typeof h==="bigint")return h=Wv(""+h,f.mode,R),h.return=f,h._debugOwner=f,h._debugTask=f._debugTask,h._debugInfo=$1,h;if(typeof h==="object"&&h!==null){switch(h.$$typeof){case g6:return R=oJ(h,f.mode,R),zZ(R,h),R.return=f,f=L2(h._debugInfo),R._debugInfo=$1,$1=f,R;case I3:return h=Kv(h,f.mode,R),h.return=f,h._debugInfo=$1,h;case Vw:var v0=L2(h._debugInfo);return h=_8(h),f=D(f,h,R),$1=v0,f}if(p5(h)||j(h))return R=u9(h,f.mode,R,null),R.return=f,R._debugOwner=f,R._debugTask=f._debugTask,f=L2(h._debugInfo),R._debugInfo=$1,$1=f,R;if(typeof h.then==="function")return v0=L2(h._debugInfo),f=D(f,YY(h),R),$1=v0,f;if(h.$$typeof===b6)return D(f,wY(f,h),R);zY(f,h)}return typeof h==="function"&&GY(f,h),typeof h==="symbol"&&BY(f,h),null}function V(f,h,R,v0){var T0=h!==null?h.key:null;if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return T0!==null?null:q(f,h,""+R,v0);if(typeof R==="object"&&R!==null){switch(R.$$typeof){case g6:return R.key===T0?(T0=L2(R._debugInfo),f=T(f,h,R,v0),$1=T0,f):null;case I3:return R.key===T0?I(f,h,R,v0):null;case Vw:return T0=L2(R._debugInfo),R=_8(R),f=V(f,h,R,v0),$1=T0,f}if(p5(R)||j(R)){if(T0!==null)return null;return T0=L2(R._debugInfo),f=y(f,h,R,v0,null),$1=T0,f}if(typeof R.then==="function")return T0=L2(R._debugInfo),f=V(f,h,YY(R),v0),$1=T0,f;if(R.$$typeof===b6)return V(f,h,wY(f,R),v0);zY(f,R)}return typeof R==="function"&&GY(f,R),typeof R==="symbol"&&BY(f,R),null}function n(f,h,R,v0,T0){if(typeof v0==="string"&&v0!==""||typeof v0==="number"||typeof v0==="bigint")return f=f.get(R)||null,q(h,f,""+v0,T0);if(typeof v0==="object"&&v0!==null){switch(v0.$$typeof){case g6:return R=f.get(v0.key===null?R:v0.key)||null,f=L2(v0._debugInfo),h=T(h,R,v0,T0),$1=f,h;case I3:return f=f.get(v0.key===null?R:v0.key)||null,I(h,f,v0,T0);case Vw:var i0=L2(v0._debugInfo);return v0=_8(v0),h=n(f,h,R,v0,T0),$1=i0,h}if(p5(v0)||j(v0))return R=f.get(R)||null,f=L2(v0._debugInfo),h=y(h,R,v0,T0,null),$1=f,h;if(typeof v0.then==="function")return i0=L2(v0._debugInfo),h=n(f,h,R,YY(v0),T0),$1=i0,h;if(v0.$$typeof===b6)return n(f,h,R,wY(h,v0),T0);zY(h,v0)}return typeof v0==="function"&&GY(h,v0),typeof v0==="symbol"&&BY(h,v0),null}function L0(f,h,R,v0){if(typeof R!=="object"||R===null)return v0;switch(R.$$typeof){case g6:case I3:L(f,h,R);var T0=R.key;if(typeof T0!=="string")break;if(v0===null){v0=new Set,v0.add(T0);break}if(!v0.has(T0)){v0.add(T0);break}g0(h,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",T0)});break;case Vw:R=_8(R),L0(f,h,R,v0)}return v0}function I0(f,h,R,v0){for(var T0=null,i0=null,y0=null,P0=h,s0=h=0,o1=null;P0!==null&&s0<R.length;s0++){P0.index>s0?(o1=P0,P0=null):o1=P0.sibling;var P5=V(f,P0,R[s0],v0);if(P5===null){P0===null&&(P0=o1);break}T0=L0(f,P5,R[s0],T0),w&&P0&&P5.alternate===null&&$(f,P0),h=H(P5,h,s0),y0===null?i0=P5:y0.sibling=P5,y0=P5,P0=o1}if(s0===R.length)return X(f,P0),K1&&l6(f,s0),i0;if(P0===null){for(;s0<R.length;s0++)P0=D(f,R[s0],v0),P0!==null&&(T0=L0(f,P0,R[s0],T0),h=H(P0,h,s0),y0===null?i0=P0:y0.sibling=P0,y0=P0);return K1&&l6(f,s0),i0}for(P0=Y(P0);s0<R.length;s0++)o1=n(P0,f,s0,R[s0],v0),o1!==null&&(T0=L0(f,o1,R[s0],T0),w&&o1.alternate!==null&&P0.delete(o1.key===null?s0:o1.key),h=H(o1,h,s0),y0===null?i0=o1:y0.sibling=o1,y0=o1);return w&&P0.forEach(function(Q8){return $(f,Q8)}),K1&&l6(f,s0),i0}function a1(f,h,R,v0){if(R==null)throw Error("An iterable object provided no iterator.");for(var T0=null,i0=null,y0=h,P0=h=0,s0=null,o1=null,P5=R.next();y0!==null&&!P5.done;P0++,P5=R.next()){y0.index>P0?(s0=y0,y0=null):s0=y0.sibling;var Q8=V(f,y0,P5.value,v0);if(Q8===null){y0===null&&(y0=s0);break}o1=L0(f,Q8,P5.value,o1),w&&y0&&Q8.alternate===null&&$(f,y0),h=H(Q8,h,P0),i0===null?T0=Q8:i0.sibling=Q8,i0=Q8,y0=s0}if(P5.done)return X(f,y0),K1&&l6(f,P0),T0;if(y0===null){for(;!P5.done;P0++,P5=R.next())y0=D(f,P5.value,v0),y0!==null&&(o1=L0(f,y0,P5.value,o1),h=H(y0,h,P0),i0===null?T0=y0:i0.sibling=y0,i0=y0);return K1&&l6(f,P0),T0}for(y0=Y(y0);!P5.done;P0++,P5=R.next())s0=n(y0,f,P0,P5.value,v0),s0!==null&&(o1=L0(f,s0,P5.value,o1),w&&s0.alternate!==null&&y0.delete(s0.key===null?P0:s0.key),h=H(s0,h,P0),i0===null?T0=s0:i0.sibling=s0,i0=s0);return w&&y0.forEach(function(wh){return $(f,wh)}),K1&&l6(f,P0),T0}function q1(f,h,R,v0){if(typeof R==="object"&&R!==null&&R.type===_3&&R.key===null&&(JY(R,null,f),R=R.props.children),typeof R==="object"&&R!==null){switch(R.$$typeof){case g6:var T0=L2(R._debugInfo);w:{for(var i0=R.key;h!==null;){if(h.key===i0){if(i0=R.type,i0===_3){if(h.tag===7){X(f,h.sibling),v0=B(h,R.props.children),v0.return=f,v0._debugOwner=R._owner,v0._debugInfo=$1,JY(R,v0,f),f=v0;break w}}else if(h.elementType===i0||$U(h,R)||typeof i0==="object"&&i0!==null&&i0.$$typeof===Vw&&_8(i0)===h.type){X(f,h.sibling),v0=B(h,R.props),zZ(v0,R),v0.return=f,v0._debugOwner=R._owner,v0._debugInfo=$1,f=v0;break w}X(f,h);break}else $(f,h);h=h.sibling}R.type===_3?(v0=u9(R.props.children,f.mode,v0,R.key),v0.return=f,v0._debugOwner=f,v0._debugTask=f._debugTask,v0._debugInfo=$1,JY(R,v0,f),f=v0):(v0=oJ(R,f.mode,v0),zZ(v0,R),v0.return=f,v0._debugInfo=$1,f=v0)}return f=W(f),$1=T0,f;case I3:w:{T0=R;for(R=T0.key;h!==null;){if(h.key===R)if(h.tag===4&&h.stateNode.containerInfo===T0.containerInfo&&h.stateNode.implementation===T0.implementation){X(f,h.sibling),v0=B(h,T0.children||[]),v0.return=f,f=v0;break w}else{X(f,h);break}else $(f,h);h=h.sibling}v0=Kv(T0,f.mode,v0),v0.return=f,f=v0}return W(f);case Vw:return T0=L2(R._debugInfo),R=_8(R),f=q1(f,h,R,v0),$1=T0,f}if(p5(R))return T0=L2(R._debugInfo),f=I0(f,h,R,v0),$1=T0,f;if(j(R)){if(T0=L2(R._debugInfo),i0=j(R),typeof i0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var y0=i0.call(R);if(y0===R){if(f.tag!==0||Object.prototype.toString.call(f.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(y0)!=="[object Generator]")mk||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),mk=!0}else R.entries!==i0||iQ||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),iQ=!0);return f=a1(f,h,y0,v0),$1=T0,f}if(typeof R.then==="function")return T0=L2(R._debugInfo),f=q1(f,h,YY(R),v0),$1=T0,f;if(R.$$typeof===b6)return q1(f,h,wY(f,R),v0);zY(f,R)}if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return T0=""+R,h!==null&&h.tag===6?(X(f,h.sibling),v0=B(h,T0),v0.return=f,f=v0):(X(f,h),v0=Wv(T0,f.mode,v0),v0.return=f,v0._debugOwner=f,v0._debugTask=f._debugTask,v0._debugInfo=$1,f=v0),W(f);return typeof R==="function"&&GY(f,R),typeof R==="symbol"&&BY(f,R),X(f,h)}return function(f,h,R,v0){var T0=$1;$1=null;try{ZX=0;var i0=q1(f,h,R,v0);return c3=null,i0}catch(o1){if(o1===l3||o1===qz)throw o1;var y0=k(29,o1,null,f.mode);y0.lanes=v0,y0.return=f;var P0=y0._debugInfo=$1;if(y0._debugOwner=f._debugOwner,y0._debugTask=f._debugTask,P0!=null){for(var s0=P0.length-1;0<=s0;s0--)if(typeof P0[s0].stack==="string"){y0._debugOwner=P0[s0],y0._debugTask=P0[s0].debugTask;break}}return y0}finally{$1=T0}}}function AU(w,$){var X=p5(w);return w=!X&&typeof j(w)==="function",X||w?(X=X?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",X,$,X),!1):!0}function Cv(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mv(w,$){w=w.updateQueue,$.updateQueue===w&&($.updateQueue={baseState:w.baseState,firstBaseUpdate:w.firstBaseUpdate,lastBaseUpdate:w.lastBaseUpdate,shared:w.shared,callbacks:null})}function O8(w){return{lane:w,tag:Rk,payload:null,callback:null,next:null}}function A8(w,$,X){var Y=w.updateQueue;if(Y===null)return null;if(Y=Y.shared,rQ===Y&&!Dk){var B=E(w);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
106
-
107
- Please update the following component: %s`,B),Dk=!0}if((F1&n5)!==g2)return B=Y.pending,B===null?$.next=$:($.next=B.next,B.next=$),Y.pending=$,$=nJ(w),wU(w,null,X),$;return rJ(w,Y,$,X),nJ(w)}function GZ(w,$,X){if($=$.updateQueue,$!==null&&($=$.shared,(X&4194048)!==0)){var Y=$.lanes;Y&=w.pendingLanes,X|=Y,$.lanes=X,j6(w,X)}}function vY(w,$){var{updateQueue:X,alternate:Y}=w;if(Y!==null&&(Y=Y.updateQueue,X===Y)){var B=null,H=null;if(X=X.firstBaseUpdate,X!==null){do{var W={lane:X.lane,tag:X.tag,payload:X.payload,callback:null,next:null};H===null?B=H=W:H=H.next=W,X=X.next}while(X!==null);H===null?B=H=$:H=H.next=$}else B=H=$;X={baseState:Y.baseState,firstBaseUpdate:B,lastBaseUpdate:H,shared:Y.shared,callbacks:Y.callbacks},w.updateQueue=X;return}w=X.lastBaseUpdate,w===null?X.firstBaseUpdate=$:w.next=$,X.lastBaseUpdate=$}function BZ(){if(nQ){var w=u3;if(w!==null)throw w}}function vZ(w,$,X,Y){nQ=!1;var B=w.updateQueue;p8=!1,rQ=B.shared;var{firstBaseUpdate:H,lastBaseUpdate:W}=B,q=B.shared.pending;if(q!==null){B.shared.pending=null;var T=q,I=T.next;T.next=null,W===null?H=I:W.next=I,W=T;var y=w.alternate;y!==null&&(y=y.updateQueue,q=y.lastBaseUpdate,q!==W&&(q===null?y.firstBaseUpdate=I:q.next=I,y.lastBaseUpdate=T))}if(H!==null){var D=B.baseState;W=0,y=I=T=null,q=H;do{var V=q.lane&-536870913,n=V!==q.lane;if(n?(Z1&V)===V:(Y&V)===V){V!==0&&V===Y7&&(nQ=!0),y!==null&&(y=y.next={lane:0,tag:q.tag,payload:q.payload,callback:null,next:null});w:{V=w;var L0=q,I0=$,a1=X;switch(L0.tag){case yk:if(L0=L0.payload,typeof L0==="function"){j3=!0;var q1=L0.call(a1,D,I0);if(V.mode&P2){T1(!0);try{L0.call(a1,D,I0)}finally{T1(!1)}}j3=!1,D=q1;break w}D=L0;break w;case pQ:V.flags=V.flags&-65537|128;case Rk:if(q1=L0.payload,typeof q1==="function"){if(j3=!0,L0=q1.call(a1,D,I0),V.mode&P2){T1(!0);try{q1.call(a1,D,I0)}finally{T1(!1)}}j3=!1}else L0=q1;if(L0===null||L0===void 0)break w;D=B1({},D,L0);break w;case Sk:p8=!0}}V=q.callback,V!==null&&(w.flags|=64,n&&(w.flags|=8192),n=B.callbacks,n===null?B.callbacks=[V]:n.push(V))}else n={lane:V,tag:q.tag,payload:q.payload,callback:q.callback,next:null},y===null?(I=y=n,T=D):y=y.next=n,W|=V;if(q=q.next,q===null)if(q=B.shared.pending,q===null)break;else n=q,q=n.next,n.next=null,B.lastBaseUpdate=n,B.shared.pending=null}while(1);y===null&&(T=D),B.baseState=T,B.firstBaseUpdate=I,B.lastBaseUpdate=y,H===null&&(B.shared.lanes=0),o8|=W,w.lanes=W,w.memoizedState=D}rQ=null}function CU(w,$){if(typeof w!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+w);w.call($)}function pm(w,$){var X=w.shared.hiddenCallbacks;if(X!==null)for(w.shared.hiddenCallbacks=null,w=0;w<X.length;w++)CU(X[w],$)}function MU(w,$){var X=w.callbacks;if(X!==null)for(w.callbacks=null,w=0;w<X.length;w++)CU(X[w],$)}function xU(w,$){var X=I6;q0(Fz,X,w),q0(a3,$,w),I6=X|$.baseLanes}function xv(w){q0(Fz,I6,w),q0(a3,a3.current,w)}function mv(w){I6=Fz.current,G0(a3,w),G0(Fz,w)}function C8(w){var $=w.alternate;q0(m5,m5.current&i3,w),q0(Sw,w,w),z4===null&&($===null||a3.current!==null?z4=w:$.memoizedState!==null&&(z4=w))}function Pv(w){q0(m5,m5.current,w),q0(Sw,w,w),z4===null&&(z4=w)}function mU(w){w.tag===22?(q0(m5,m5.current,w),q0(Sw,w,w),z4===null&&(z4=w)):M8(w)}function M8(w){q0(m5,m5.current,w),q0(Sw,Sw.current,w)}function mw(w){G0(Sw,w),z4===w&&(z4=null),G0(m5,w)}function HY(w){for(var $=w;$!==null;){if($.tag===13){var X=$.memoizedState;if(X!==null&&(X=X.dehydrated,X===null||cH(X)||aH(X)))return $}else if($.tag===19&&($.memoizedProps.revealOrder==="forwards"||$.memoizedProps.revealOrder==="backwards"||$.memoizedProps.revealOrder==="unstable_legacy-backwards"||$.memoizedProps.revealOrder==="together")){if(($.flags&128)!==0)return $}else if($.child!==null){$.child.return=$,$=$.child;continue}if($===w)break;for(;$.sibling===null;){if($.return===null||$.return===w)return null;$=$.return}$.sibling.return=$.return,$=$.sibling}return null}function G1(){var w=t;B4===null?B4=[w]:B4.push(w)}function W0(){var w=t;if(B4!==null&&(z8++,B4[z8]!==w)){var $=E(a0);if(!dk.has($)&&(dk.add($),B4!==null)){for(var X="",Y=0;Y<=z8;Y++){var B=B4[Y],H=Y===z8?w:B;for(B=Y+1+". "+B;30>B.length;)B+=" ";B+=H+`
108
- `,X+=B}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
109
-
110
- Previous render Next render
111
- ------------------------------------------------------
112
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
- `,$,X)}}}function H3(w){w===void 0||w===null||p5(w)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",t,typeof w)}function QY(){var w=E(a0);Ek.has(w)||(Ek.add(w),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",w))}function _5(){throw 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:
114
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
115
- 2. You might be breaking the Rules of Hooks
116
- 3. You might have more than one copy of React in the same app
117
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function fv(w,$){if(YX)return!1;if($===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",t),!1;w.length!==$.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
118
-
119
- Previous: %s
120
- Incoming: %s`,t,"["+$.join(", ")+"]","["+w.join(", ")+"]");for(var X=0;X<$.length&&X<w.length;X++)if(!l2(w[X],$[X]))return!1;return!0}function Vv(w,$,X,Y,B,H){if(J8=H,a0=$,B4=w!==null?w._debugHookTypes:null,z8=-1,YX=w!==null&&w.type!==$.type,Object.prototype.toString.call(X)==="[object AsyncFunction]"||Object.prototype.toString.call(X)==="[object AsyncGeneratorFunction]")H=E(a0),oQ.has(H)||(oQ.add(H),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",H===null?"An unknown Component":"<"+H+">"));$.memoizedState=null,$.updateQueue=null,$.lanes=0,Y0.H=w!==null&&w.memoizedState!==null?tQ:B4!==null?uk:sQ,H7=H=($.mode&P2)!==l0;var W=lQ(X,Y,B);if(H7=!1,r3&&(W=hv($,X,Y,B)),H){T1(!0);try{W=hv($,X,Y,B)}finally{T1(!1)}}return PU(w,$),W}function PU(w,$){$._debugHookTypes=B4,$.dependencies===null?Y8!==null&&($.dependencies={lanes:0,firstContext:null,_debugThenableState:Y8}):$.dependencies._debugThenableState=Y8,Y0.H=zX;var X=E1!==null&&E1.next!==null;if(J8=0,B4=t=y5=E1=a0=null,z8=-1,w!==null&&(w.flags&65011712)!==($.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Nz=!1,JX=0,Y8=null,X)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");w===null||S5||(w=w.dependencies,w!==null&&eJ(w)&&(S5=!0)),$X?($X=!1,w=!0):w=!1,w&&($=E($)||"Unknown",jk.has($)||oQ.has($)||(jk.add($),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function hv(w,$,X,Y){a0=w;var B=0;do{if(r3&&(Y8=null),JX=0,r3=!1,B>=fV)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(B+=1,YX=!1,y5=E1=null,w.updateQueue!=null){var H=w.updateQueue;H.lastEffect=null,H.events=null,H.stores=null,H.memoCache!=null&&(H.memoCache.index=0)}z8=-1,Y0.H=lk,H=lQ($,X,Y)}while(r3);return H}function rm(){var w=Y0.H,$=w.useState()[0];return $=typeof $.then==="function"?HZ($):$,w=w.useState()[0],(E1!==null?E1.memoizedState:null)!==w&&(a0.flags|=1024),$}function Rv(){var w=Tz!==0;return Tz=0,w}function yv(w,$,X){$.updateQueue=w.updateQueue,$.flags=($.mode&P4)!==l0?$.flags&-402655237:$.flags&-2053,w.lanes&=~X}function Sv(w){if(Nz){for(w=w.memoizedState;w!==null;){var $=w.queue;$!==null&&($.pending=null),w=w.next}Nz=!1}J8=0,B4=y5=E1=a0=null,z8=-1,t=null,r3=!1,JX=Tz=0,Y8=null}function d2(){var w={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return y5===null?a0.memoizedState=y5=w:y5=y5.next=w,y5}function f1(){if(E1===null){var w=a0.alternate;w=w!==null?w.memoizedState:null}else w=E1.next;var $=y5===null?a0.memoizedState:y5.next;if($!==null)y5=$,E1=w;else{if(w===null){if(a0.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}E1=w,w={memoizedState:E1.memoizedState,baseState:E1.baseState,baseQueue:E1.baseQueue,queue:E1.queue,next:null},y5===null?a0.memoizedState=y5=w:y5=y5.next=w}return y5}function gY(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function HZ(w){var $=JX;return JX+=1,Y8===null&&(Y8=qU()),w=FU(Y8,w,$),$=a0,(y5===null?$.memoizedState:y5.next)===null&&($=$.alternate,Y0.H=$!==null&&$.memoizedState!==null?tQ:sQ),w}function x8(w){if(w!==null&&typeof w==="object"){if(typeof w.then==="function")return HZ(w);if(w.$$typeof===b6)return X5(w)}throw Error("An unsupported type was passed to use(): "+String(w))}function p9(w){var $=null,X=a0.updateQueue;if(X!==null&&($=X.memoCache),$==null){var Y=a0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&($={data:Y.data.map(function(B){return B.slice()}),index:0})))}if($==null&&($={data:[],index:0}),X===null&&(X=gY(),a0.updateQueue=X),X.memoCache=$,X=$.data[$.index],X===void 0||YX)for(X=$.data[$.index]=Array(w),Y=0;Y<w;Y++)X[Y]=vf;else X.length!==w&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",X.length,w);return $.index++,X}function C4(w,$){return typeof $==="function"?$(w):$}function Dv(w,$,X){var Y=d2();if(X!==void 0){var B=X($);if(H7){T1(!0);try{X($)}finally{T1(!1)}}}else B=$;return Y.memoizedState=Y.baseState=B,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:w,lastRenderedState:B},Y.queue=w,w=w.dispatch=em.bind(null,a0,w),[Y.memoizedState,w]}function Q3(w){var $=f1();return dv($,E1,w)}function dv(w,$,X){var Y=w.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=X;var B=w.baseQueue,H=Y.pending;if(H!==null){if(B!==null){var W=B.next;B.next=H.next,H.next=W}$.baseQueue!==B&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),$.baseQueue=B=H,Y.pending=null}if(H=w.baseState,B===null)w.memoizedState=H;else{$=B.next;var q=W=null,T=null,I=$,y=!1;do{var D=I.lane&-536870913;if(D!==I.lane?(Z1&D)===D:(J8&D)===D){var V=I.revertLane;if(V===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),D===Y7&&(y=!0);else if((J8&V)===V){I=I.next,V===Y7&&(y=!0);continue}else D={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},T===null?(q=T=D,W=H):T=T.next=D,a0.lanes|=V,o8|=V;D=I.action,H7&&X(H,D),H=I.hasEagerState?I.eagerState:X(H,D)}else V={lane:D,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},T===null?(q=T=V,W=H):T=T.next=V,a0.lanes|=D,o8|=D;I=I.next}while(I!==null&&I!==$);if(T===null?W=H:T.next=q,!l2(H,w.memoizedState)&&(S5=!0,y&&(X=u3,X!==null)))throw X;w.memoizedState=H,w.baseState=W,w.baseQueue=T,Y.lastRenderedState=H}return B===null&&(Y.lanes=0),[w.memoizedState,Y.dispatch]}function QZ(w){var $=f1(),X=$.queue;if(X===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");X.lastRenderedReducer=w;var{dispatch:Y,pending:B}=X,H=$.memoizedState;if(B!==null){X.pending=null;var W=B=B.next;do H=w(H,W.action),W=W.next;while(W!==B);l2(H,$.memoizedState)||(S5=!0),$.memoizedState=H,$.baseQueue===null&&($.baseState=H),X.lastRenderedState=H}return[H,Y]}function jv(w,$,X){var Y=a0,B=d2();if(K1){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var H=X();p3||H===X()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),p3=!0)}else{if(H=$(),p3||(X=$(),l2(H,X)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p3=!0)),u1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Z1&127)!==0||fU(Y,$,H)}return B.memoizedState=H,X={value:H,getSnapshot:$},B.queue=X,UY(hU.bind(null,Y,X,w),[w]),Y.flags|=2048,b3(G4|i2,{destroy:void 0},VU.bind(null,Y,X,H,$),null),H}function bY(w,$,X){var Y=a0,B=f1(),H=K1;if(H){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");X=X()}else if(X=$(),!p3){var W=$();l2(X,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p3=!0)}if(W=!l2((E1||B).memoizedState,X))B.memoizedState=X,S5=!0;B=B.queue;var q=hU.bind(null,Y,B,w);if(Xw(2048,i2,q,[w]),B.getSnapshot!==$||W||y5!==null&&y5.memoizedState.tag&G4){if(Y.flags|=2048,b3(G4|i2,{destroy:void 0},VU.bind(null,Y,B,X,$),null),u1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");H||(J8&127)!==0||fU(Y,$,X)}return X}function fU(w,$,X){w.flags|=16384,w={getSnapshot:$,value:X},$=a0.updateQueue,$===null?($=gY(),a0.updateQueue=$,$.stores=[w]):(X=$.stores,X===null?$.stores=[w]:X.push(w))}function VU(w,$,X,Y){$.value=X,$.getSnapshot=Y,RU($)&&yU(w)}function hU(w,$,X){return X(function(){RU($)&&(e4(2,"updateSyncExternalStore()",w),yU(w))})}function RU(w){var $=w.getSnapshot;w=w.value;try{var X=$();return!l2(w,X)}catch(Y){return!0}}function yU(w){var $=x2(w,2);$!==null&&k5($,w,2)}function Ev(w){var $=d2();if(typeof w==="function"){var X=w;if(w=X(),H7){T1(!0);try{X()}finally{T1(!1)}}}return $.memoizedState=$.baseState=w,$.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:C4,lastRenderedState:w},$}function uv(w){w=Ev(w);var $=w.queue,X=$q.bind(null,a0,$);return $.dispatch=X,[w.memoizedState,X]}function lv(w){var $=d2();$.memoizedState=$.baseState=w;var X={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return $.queue=X,$=XH.bind(null,a0,!0,X),X.dispatch=$,[w,$]}function SU(w,$){var X=f1();return DU(X,E1,w,$)}function DU(w,$,X,Y){return w.baseState=X,dv(w,E1,typeof Y==="function"?Y:C4)}function dU(w,$){var X=f1();if(E1!==null)return DU(X,E1,w,$);return X.baseState=w,[w,X.queue.dispatch]}function nm(w,$,X,Y,B){if(TY(w))throw Error("Cannot update form state while rendering.");if(w=$.action,w!==null){var H={payload:B,action:w,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){H.listeners.push(W)}};Y0.T!==null?X(!0):H.isTransition=!1,Y(H),X=$.pending,X===null?(H.next=$.pending=H,jU($,H)):(H.next=X.next,$.pending=X.next=H)}}function jU(w,$){var{action:X,payload:Y}=$,B=w.state;if($.isTransition){var H=Y0.T,W={};W._updatedFibers=new Set,Y0.T=W;try{var q=X(B,Y),T=Y0.S;T!==null&&T(W,q),EU(w,$,q)}catch(I){cv(w,$,I)}finally{H!==null&&W.types!==null&&(H.types!==null&&H.types!==W.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."),H.types=W.types),Y0.T=H,H===null&&W._updatedFibers&&(w=W._updatedFibers.size,W._updatedFibers.clear(),10<w&&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."))}}else try{W=X(B,Y),EU(w,$,W)}catch(I){cv(w,$,I)}}function EU(w,$,X){X!==null&&typeof X==="object"&&typeof X.then==="function"?(Y0.asyncTransitions++,X.then(NY,NY),X.then(function(Y){uU(w,$,Y)},function(Y){return cv(w,$,Y)}),$.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):uU(w,$,X)}function uU(w,$,X){$.status="fulfilled",$.value=X,lU($),w.state=X,$=w.pending,$!==null&&(X=$.next,X===$?w.pending=null:(X=X.next,$.next=X,jU(w,X)))}function cv(w,$,X){var Y=w.pending;if(w.pending=null,Y!==null){Y=Y.next;do $.status="rejected",$.reason=X,lU($),$=$.next;while($!==Y)}w.action=null}function lU(w){w=w.listeners;for(var $=0;$<w.length;$++)(0,w[$])()}function cU(w,$){return $}function g3(w,$){if(K1){var X=u1.formState;if(X!==null){w:{var Y=a0;if(K1){if(n1){$:{var B=n1;for(var H=J4;B.nodeType!==8;){if(!H){B=null;break $}if(B=fw(B.nextSibling),B===null){B=null;break $}}H=B.data,B=H===Ng||H===MN?B:null}if(B){n1=fw(B.nextSibling),Y=B.data===Ng;break w}}T8(Y)}Y=!1}Y&&($=X[0])}}return X=d2(),X.memoizedState=X.baseState=$,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cU,lastRenderedState:$},X.queue=Y,X=$q.bind(null,a0,Y),Y.dispatch=X,Y=Ev(!1),H=XH.bind(null,a0,!1,Y.queue),Y=d2(),B={state:$,dispatch:null,action:w,pending:null},Y.queue=B,X=nm.bind(null,a0,B,H,X),B.dispatch=X,Y.memoizedState=w,[$,X,!1]}function WY(w){var $=f1();return aU($,E1,w)}function aU(w,$,X){if($=dv(w,$,cU)[0],w=Q3(C4)[0],typeof $==="object"&&$!==null&&typeof $.then==="function")try{var Y=HZ($)}catch(W){if(W===l3)throw qz;throw W}else Y=$;$=f1();var B=$.queue,H=B.dispatch;return X!==$.memoizedState&&(a0.flags|=2048,b3(G4|i2,{destroy:void 0},om.bind(null,B,X),null)),[Y,H,w]}function om(w,$){w.action=$}function KY(w){var $=f1(),X=E1;if(X!==null)return aU($,X,w);f1(),$=$.memoizedState,X=f1();var Y=X.queue.dispatch;return X.memoizedState=w,[$,Y,!1]}function b3(w,$,X,Y){return w={tag:w,create:X,deps:Y,inst:$,next:null},$=a0.updateQueue,$===null&&($=gY(),a0.updateQueue=$),X=$.lastEffect,X===null?$.lastEffect=w.next=w:(Y=X.next,X.next=w,w.next=Y,$.lastEffect=w),w}function av(w){var $=d2();return w={current:w},$.memoizedState=w}function r9(w,$,X,Y){var B=d2();a0.flags|=w,B.memoizedState=b3(G4|$,{destroy:void 0},X,Y===void 0?null:Y)}function Xw(w,$,X,Y){var B=f1();Y=Y===void 0?null:Y;var H=B.memoizedState.inst;E1!==null&&Y!==null&&fv(Y,E1.memoizedState.deps)?B.memoizedState=b3($,H,X,Y):(a0.flags|=w,B.memoizedState=b3(G4|$,H,X,Y))}function UY(w,$){(a0.mode&P4)!==l0?r9(276826112,i2,w,$):r9(8390656,i2,w,$)}function sm(w){a0.flags|=4;var $=a0.updateQueue;if($===null)$=gY(),a0.updateQueue=$,$.events=[w];else{var X=$.events;X===null?$.events=[w]:X.push(w)}}function iv(w){var $=d2(),X={impl:w};return $.memoizedState=X,function(){if((F1&n5)!==g2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return X.impl.apply(void 0,arguments)}}function qY(w){var $=f1().memoizedState;return sm({ref:$,nextImpl:w}),function(){if((F1&n5)!==g2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function pv(w,$){var X=4194308;return(a0.mode&P4)!==l0&&(X|=134217728),r9(X,Dw,w,$)}function iU(w,$){if(typeof $==="function"){w=w();var X=$(w);return function(){typeof X==="function"?X():$(null)}}if($!==null&&$!==void 0)return $.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys($).join(", ")+"}"),w=w(),$.current=w,function(){$.current=null}}function rv(w,$,X){typeof $!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",$!==null?typeof $:"null"),X=X!==null&&X!==void 0?X.concat([w]):null;var Y=4194308;(a0.mode&P4)!==l0&&(Y|=134217728),r9(Y,Dw,iU.bind(null,$,w),X)}function LY(w,$,X){typeof $!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",$!==null?typeof $:"null"),X=X!==null&&X!==void 0?X.concat([w]):null,Xw(4,Dw,iU.bind(null,$,w),X)}function nv(w,$){return d2().memoizedState=[w,$===void 0?null:$],w}function FY(w,$){var X=f1();$=$===void 0?null:$;var Y=X.memoizedState;if($!==null&&fv($,Y[1]))return Y[0];return X.memoizedState=[w,$],w}function ov(w,$){var X=d2();$=$===void 0?null:$;var Y=w();if(H7){T1(!0);try{w()}finally{T1(!1)}}return X.memoizedState=[Y,$],Y}function kY(w,$){var X=f1();$=$===void 0?null:$;var Y=X.memoizedState;if($!==null&&fv($,Y[1]))return Y[0];if(Y=w(),H7){T1(!0);try{w()}finally{T1(!1)}}return X.memoizedState=[Y,$],Y}function sv(w,$){var X=d2();return tv(X,w,$)}function pU(w,$){var X=f1();return nU(X,E1.memoizedState,w,$)}function rU(w,$){var X=f1();return E1===null?tv(X,w,$):nU(X,E1.memoizedState,w,$)}function tv(w,$,X){if(X===void 0||(J8&1073741824)!==0&&(Z1&261930)===0)return w.memoizedState=$;return w.memoizedState=X,w=oq(),a0.lanes|=w,o8|=w,X}function nU(w,$,X,Y){if(l2(X,$))return X;if(a3.current!==null)return w=tv(w,X,Y),l2(w,$)||(S5=!0),w;if((J8&42)===0||(J8&1073741824)!==0&&(Z1&261930)===0)return S5=!0,w.memoizedState=X;return w=oq(),a0.lanes|=w,o8|=w,$}function NY(){Y0.asyncTransitions--}function oU(w,$,X,Y,B){var H=M1.p;M1.p=H!==0&&H<m4?H:m4;var W=Y0.T,q={};q._updatedFibers=new Set,Y0.T=q,XH(w,!1,$,X);try{var T=B(),I=Y0.S;if(I!==null&&I(q,T),T!==null&&typeof T==="object"&&typeof T.then==="function"){Y0.asyncTransitions++,T.then(NY,NY);var y=im(T,Y);gZ(w,$,y,Pw(w))}else gZ(w,$,Y,Pw(w))}catch(D){gZ(w,$,{then:function(){},status:"rejected",reason:D},Pw(w))}finally{M1.p=H,W!==null&&q.types!==null&&(W.types!==null&&W.types!==q.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=q.types),Y0.T=W,W===null&&q._updatedFibers&&(w=q._updatedFibers.size,q._updatedFibers.clear(),10<w&&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."))}}function ev(w,$,X,Y){if(w.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var B=sU(w).queue;cm(w),oU(w,B,$,N7,X===null?F:function(){return tU(w),X(Y)})}function sU(w){var $=w.memoizedState;if($!==null)return $;$={memoizedState:N7,baseState:N7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:C4,lastRenderedState:N7},next:null};var X={};return $.next={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:C4,lastRenderedState:X},next:null},w.memoizedState=$,w=w.alternate,w!==null&&(w.memoizedState=$),$}function tU(w){Y0.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var $=sU(w);$.next===null&&($=w.alternate.memoizedState),gZ(w,$.next.queue,{},Pw(w))}function wH(){var w=Ev(!1);return w=oU.bind(null,a0,w.queue,!0,!1),d2().memoizedState=w,[!1,w]}function eU(){var w=Q3(C4)[0],$=f1().memoizedState;return[typeof w==="boolean"?w:HZ(w),$]}function wq(){var w=QZ(C4)[0],$=f1().memoizedState;return[typeof w==="boolean"?w:HZ(w),$]}function n9(){return X5(NX)}function $H(){var w=d2(),$=u1.identifierPrefix;if(K1){var X=e6,Y=t6;X=(Y&~(1<<32-j2(Y)-1)).toString(32)+X,$="_"+$+"R_"+X,X=Tz++,0<X&&($+="H"+X.toString(32)),$+="_"}else X=PV++,$="_"+$+"r_"+X.toString(32)+"_";return w.memoizedState=$}function ZH(){return d2().memoizedState=tm.bind(null,a0)}function tm(w,$){for(var X=w.return;X!==null;){switch(X.tag){case 24:case 3:var Y=Pw(X),B=O8(Y),H=A8(X,B,Y);H!==null&&(e4(Y,"refresh()",w),k5(H,X,Y),GZ(H,X,Y)),w=Tv(),$!==null&&$!==void 0&&H!==null&&console.error("The seed argument is not enabled outside experimental channels."),B.payload={cache:w};return}X=X.return}}function em(w,$,X){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=Pw(w);var B={lane:Y,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};TY(w)?Zq($,B):(B=Hv(w,$,B,Y),B!==null&&(e4(Y,"dispatch()",w),k5(B,w,Y),Xq(B,$,Y)))}function $q(w,$,X){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=Pw(w),gZ(w,$,X,Y)&&e4(Y,"setState()",w)}function gZ(w,$,X,Y){var B={lane:Y,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};if(TY(w))Zq($,B);else{var H=w.alternate;if(w.lanes===0&&(H===null||H.lanes===0)&&(H=$.lastRenderedReducer,H!==null)){var W=Y0.H;Y0.H=V4;try{var q=$.lastRenderedState,T=H(q,X);if(B.hasEagerState=!0,B.eagerState=T,l2(T,q))return rJ(w,$,B,0),u1===null&&pJ(),!1}catch(I){}finally{Y0.H=W}}if(X=Hv(w,$,B,Y),X!==null)return k5(X,w,Y),Xq(X,$,Y),!0}return!1}function XH(w,$,X,Y){if(Y0.T===null&&Y7===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),Y={lane:2,revertLane:VH(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},TY(w)){if($)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else $=Hv(w,X,Y,2),$!==null&&(e4(2,"setOptimistic()",w),k5($,w,2))}function TY(w){var $=w.alternate;return w===a0||$!==null&&$===a0}function Zq(w,$){r3=Nz=!0;var X=w.pending;X===null?$.next=$:($.next=X.next,X.next=$),w.pending=$}function Xq(w,$,X){if((X&4194048)!==0){var Y=$.lanes;Y&=w.pendingLanes,X|=Y,$.lanes=X,j6(w,X)}}function JH(w){if(w!==null&&typeof w!=="function"){var $=String(w);wN.has($)||(wN.add($),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",w))}}function YH(w,$,X,Y){var B=w.memoizedState,H=X(Y,B);if(w.mode&P2){T1(!0);try{H=X(Y,B)}finally{T1(!1)}}H===void 0&&($=$0($)||"Component",ok.has($)||(ok.add($),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",$))),B=H===null||H===void 0?B:B1({},B,H),w.memoizedState=B,w.lanes===0&&(w.updateQueue.baseState=B)}function Jq(w,$,X,Y,B,H,W){var q=w.stateNode;if(typeof q.shouldComponentUpdate==="function"){if(X=q.shouldComponentUpdate(Y,H,W),w.mode&P2){T1(!0);try{X=q.shouldComponentUpdate(Y,H,W)}finally{T1(!1)}}return X===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",$0($)||"Component"),X}return $.prototype&&$.prototype.isPureReactComponent?!wZ(X,Y)||!wZ(B,H):!0}function Yq(w,$,X,Y){var B=$.state;typeof $.componentWillReceiveProps==="function"&&$.componentWillReceiveProps(X,Y),typeof $.UNSAFE_componentWillReceiveProps==="function"&&$.UNSAFE_componentWillReceiveProps(X,Y),$.state!==B&&(w=E(w)||"Component",ak.has(w)||(ak.add(w),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",w)),eQ.enqueueReplaceState($,$.state,null))}function o9(w,$){var X=$;if("ref"in $){X={};for(var Y in $)Y!=="ref"&&(X[Y]=$[Y])}if(w=w.defaultProps){X===$&&(X=B1({},X));for(var B in w)X[B]===void 0&&(X[B]=w[B])}return X}function zq(w){mQ(w),console.warn(`%s
121
-
122
- %s
123
- `,n3?"An error occurred in the <"+n3+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
124
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Gq(w){var $=n3?"The above error occurred in the <"+n3+"> component.":"The above error occurred in one of your React components.",X="React will try to recreate this component tree from scratch using the error boundary you provided, "+((wg||"Anonymous")+".");if(typeof w==="object"&&w!==null&&typeof w.environmentName==="string"){var Y=w.environmentName;w=[`%o
125
-
126
- %s
127
-
128
- %s
129
- `,w,$,X].slice(0),typeof w[0]==="string"?w.splice(0,1,yN+" "+w[0],SN,pz+Y+pz,DN):w.splice(0,0,yN,SN,pz+Y+pz,DN),w.unshift(console),Y=tV.apply(console.error,w),Y()}else console.error(`%o
130
-
131
- %s
132
-
133
- %s
134
- `,w,$,X)}function Bq(w){mQ(w)}function IY(w,$){try{n3=$.source?E($.source):null,wg=null;var X=$.value;if(Y0.actQueue!==null)Y0.thrownErrors.push(X);else{var Y=w.onUncaughtError;Y(X,{componentStack:$.stack})}}catch(B){setTimeout(function(){throw B})}}function vq(w,$,X){try{n3=X.source?E(X.source):null,wg=E($);var Y=w.onCaughtError;Y(X.value,{componentStack:X.stack,errorBoundary:$.tag===1?$.stateNode:null})}catch(B){setTimeout(function(){throw B})}}function zH(w,$,X){return X=O8(X),X.tag=pQ,X.payload={element:null},X.callback=function(){g0($.source,IY,w,$)},X}function GH(w){return w=O8(w),w.tag=pQ,w}function BH(w,$,X,Y){var B=X.type.getDerivedStateFromError;if(typeof B==="function"){var H=Y.value;w.payload=function(){return B(H)},w.callback=function(){ZU(X),g0(Y.source,vq,$,X,Y)}}var W=X.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&(w.callback=function(){ZU(X),g0(Y.source,vq,$,X,Y),typeof B!=="function"&&(t8===null?t8=new Set([this]):t8.add(this)),CV(this,Y),typeof B==="function"||(X.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",E(X)||"Unknown")})}function wP(w,$,X,Y,B){if(X.flags|=32768,U6&&kZ(w,B),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if($=X.alternate,$!==null&&v3($,X,B,!0),K1&&(F6=!0),X=Sw.current,X!==null){switch(X.tag){case 31:case 13:return z4===null?fY():X.alternate===null&&g5===B8&&(g5=Oz),X.flags&=-257,X.flags|=65536,X.lanes=B,Y===Lz?X.flags|=16384:($=X.updateQueue,$===null?X.updateQueue=new Set([Y]):$.add(Y),xH(w,Y,B)),!1;case 22:return X.flags|=65536,Y===Lz?X.flags|=16384:($=X.updateQueue,$===null?($={transitions:null,markerInstances:null,retryQueue:new Set([Y])},X.updateQueue=$):(X=$.retryQueue,X===null?$.retryQueue=new Set([Y]):X.add(Y)),xH(w,Y,B)),!1}throw Error("Unexpected Suspense handler tag ("+X.tag+"). This is a bug in React.")}return xH(w,Y,B),fY(),!1}if(K1)return F6=!0,$=Sw.current,$!==null?(($.flags&65536)===0&&($.flags|=256),$.flags|=65536,$.lanes=B,Y!==yQ&&ZZ(Cw(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),X))):(Y!==yQ&&ZZ(Cw(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),X)),w=w.current.alternate,w.flags|=65536,B&=-B,w.lanes|=B,Y=Cw(Y,X),B=zH(w.stateNode,Y,B),vY(w,B),g5!==r8&&(g5=Q7)),!1;var H=Cw(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),X);if(gX===null?gX=[H]:gX.push(H),g5!==r8&&(g5=Q7),$===null)return!0;Y=Cw(Y,X),X=$;do{switch(X.tag){case 3:return X.flags|=65536,w=B&-B,X.lanes|=w,w=zH(X.stateNode,Y,w),vY(X,w),!1;case 1:if($=X.type,H=X.stateNode,(X.flags&128)===0&&(typeof $.getDerivedStateFromError==="function"||H!==null&&typeof H.componentDidCatch==="function"&&(t8===null||!t8.has(H))))return X.flags|=65536,B&=-B,X.lanes|=B,B=GH(B),BH(B,w,X,Y),vY(X,B),!1}X=X.return}while(X!==null);return!1}function F2(w,$,X,Y){$.child=w===null?hk($,null,X,Y):v7($,w.child,X,Y)}function Hq(w,$,X,Y,B){X=X.render;var H=$.ref;if("ref"in Y){var W={};for(var q in Y)q!=="ref"&&(W[q]=Y[q])}else W=Y;if(a9($),Y=Vv(w,$,X,W,H,B),q=Rv(),w!==null&&!S5)return yv(w,$,B),i6(w,$,B);return K1&&q&&Uv($),$.flags|=1,F2(w,$,Y,B),$.child}function Qq(w,$,X,Y,B){if(w===null){var H=X.type;if(typeof H==="function"&&!gv(H)&&H.defaultProps===void 0&&X.compare===null)return X=E9(H),$.tag=15,$.type=X,HH($,H),gq(w,$,X,Y,B);return w=bv(X.type,null,Y,$,$.mode,B),w.ref=$.ref,w.return=$,$.child=w}if(H=w.child,!UH(w,B)){var W=H.memoizedProps;if(X=X.compare,X=X!==null?X:wZ,X(W,Y)&&w.ref===$.ref)return i6(w,$,B)}return $.flags|=1,w=u6(H,Y),w.ref=$.ref,w.return=$,$.child=w}function gq(w,$,X,Y,B){if(w!==null){var H=w.memoizedProps;if(wZ(H,Y)&&w.ref===$.ref&&$.type===w.type)if(S5=!1,$.pendingProps=Y=H,UH(w,B))(w.flags&131072)!==0&&(S5=!0);else return $.lanes=w.lanes,i6(w,$,B)}return vH(w,$,X,Y,B)}function bq(w,$,X,Y){var B=Y.children,H=w!==null?w.memoizedState:null;if(w===null&&$.stateNode===null&&($.stateNode={_visibility:EZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if(($.flags&128)!==0){if(H=H!==null?H.baseLanes|X:X,w!==null){Y=$.child=w.child;for(B=0;Y!==null;)B=B|Y.lanes|Y.childLanes,Y=Y.sibling;Y=B&~H}else Y=0,$.child=null;return Wq(w,$,H,X,Y)}if((X&536870912)!==0)$.memoizedState={baseLanes:0,cachePool:null},w!==null&&XY($,H!==null?H.cachePool:null),H!==null?xU($,H):xv($),mU($);else return Y=$.lanes=536870912,Wq(w,$,H!==null?H.baseLanes|X:X,X,Y)}else H!==null?(XY($,H.cachePool),xU($,H),M8($),$.memoizedState=null):(w!==null&&XY($,null),xv($),M8($));return F2(w,$,B,X),$.child}function bZ(w,$){return w!==null&&w.tag===22||$.stateNode!==null||($.stateNode={_visibility:EZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),$.sibling}function Wq(w,$,X,Y,B){var H=Ov();return H=H===null?null:{parent:h5._currentValue,pool:H},$.memoizedState={baseLanes:X,cachePool:H},w!==null&&XY($,null),xv($),mU($),w!==null&&v3(w,$,Y,!0),$.childLanes=B,null}function _Y(w,$){var X=$.hidden;return X!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
135
- - <Activity %s>
136
- + <Activity %s>`,X===!0?"hidden":X===!1?"hidden={false}":"hidden={...}",X?'mode="hidden"':'mode="visible"'),$=AY({mode:$.mode,children:$.children},w.mode),$.ref=w.ref,w.child=$,$.return=w,$}function Kq(w,$,X){return v7($,w.child,null,X),w=_Y($,$.pendingProps),w.flags|=2,mw($),$.memoizedState=null,w}function $P(w,$,X){var Y=$.pendingProps,B=($.flags&128)!==0;if($.flags&=-129,w===null){if(K1){if(Y.mode==="hidden")return w=_Y($,Y),$.lanes=536870912,bZ(null,w);if(Pv($),(w=n1)?(X=jL(w,J4),X=X!==null&&X.data===q7?X:null,X!==null&&(Y={dehydrated:X,treeContext:GU(),retryLane:536870912,hydrationErrors:null},$.memoizedState=Y,Y=YU(X),Y.return=$,$.child=Y,T2=$,n1=null)):X=null,X===null)throw sJ($,w),T8($);return $.lanes=536870912,null}return _Y($,Y)}var H=w.memoizedState;if(H!==null){var W=H.dehydrated;if(Pv($),B)if($.flags&256)$.flags&=-257,$=Kq(w,$,X);else if($.memoizedState!==null)$.child=w.child,$.flags|=128,$=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(vU(),(X&536870912)!==0&&PY($),S5||v3(w,$,X,!1),B=(X&w.childLanes)!==0,S5||B){if(Y=u1,Y!==null&&(W=n4(Y,X),W!==0&&W!==H.retryLane))throw H.retryLane=W,x2(w,W),k5(Y,w,W),$g;fY(),$=Kq(w,$,X)}else w=H.treeContext,n1=fw(W.nextSibling),T2=$,K1=!0,E8=null,F6=!1,yw=null,J4=!1,w!==null&&BU($,w),$=_Y($,Y),$.flags|=4096;return $}return H=w.child,Y={mode:Y.mode,children:Y.children},(X&536870912)!==0&&(X&w.lanes)!==0&&PY($),w=u6(H,Y),w.ref=$.ref,$.child=w,w.return=$,w}function OY(w,$){var X=$.ref;if(X===null)w!==null&&w.ref!==null&&($.flags|=4194816);else{if(typeof X!=="function"&&typeof X!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(w===null||w.ref!==X)$.flags|=4194816}}function vH(w,$,X,Y,B){if(X.prototype&&typeof X.prototype.render==="function"){var H=$0(X)||"Unknown";$N[H]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",H,H),$N[H]=!0)}if($.mode&P2&&f4.recordLegacyContextWarning($,null),w===null&&(HH($,$.type),X.contextTypes&&(H=$0(X)||"Unknown",XN[H]||(XN[H]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",H)))),a9($),X=Vv(w,$,X,Y,void 0,B),Y=Rv(),w!==null&&!S5)return yv(w,$,B),i6(w,$,B);return K1&&Y&&Uv($),$.flags|=1,F2(w,$,X,B),$.child}function Uq(w,$,X,Y,B,H){if(a9($),z8=-1,YX=w!==null&&w.type!==$.type,$.updateQueue=null,X=hv($,Y,X,B),PU(w,$),Y=Rv(),w!==null&&!S5)return yv(w,$,H),i6(w,$,H);return K1&&Y&&Uv($),$.flags|=1,F2(w,$,X,H),$.child}function qq(w,$,X,Y,B){switch(b($)){case!1:var H=$.stateNode,W=new $.type($.memoizedProps,H.context).state;H.updater.enqueueSetState(H,W,null);break;case!0:$.flags|=128,$.flags|=65536,H=Error("Simulated error coming from DevTools");var q=B&-B;if($.lanes|=q,W=u1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");q=GH(q),BH(q,W,$,Cw(H,$)),vY($,q)}if(a9($),$.stateNode===null){if(W=j8,H=X.contextType,"contextType"in X&&H!==null&&(H===void 0||H.$$typeof!==b6)&&!ek.has(X)&&(ek.add(X),q=H===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof H!=="object"?" However, it is set to a "+typeof H+".":H.$$typeof===ZQ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(H).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",$0(X)||"Component",q)),typeof H==="object"&&H!==null&&(W=X5(H)),H=new X(Y,W),$.mode&P2){T1(!0);try{H=new X(Y,W)}finally{T1(!1)}}if(W=$.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,H.updater=eQ,$.stateNode=H,H._reactInternals=$,H._reactInternalInstance=ck,typeof X.getDerivedStateFromProps==="function"&&W===null&&(W=$0(X)||"Component",ik.has(W)||(ik.add(W),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",W,H.state===null?"null":"undefined",W))),typeof X.getDerivedStateFromProps==="function"||typeof H.getSnapshotBeforeUpdate==="function"){var T=q=W=null;if(typeof H.componentWillMount==="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof H.UNSAFE_componentWillMount==="function"&&(W="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps==="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?q="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps==="function"&&(q="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate==="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?T="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate==="function"&&(T="UNSAFE_componentWillUpdate"),W!==null||q!==null||T!==null){H=$0(X)||"Component";var I=typeof X.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";rk.has(H)||(rk.add(H),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
137
-
138
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
139
-
140
- The above lifecycles should be removed. Learn more about this warning here:
141
- https://react.dev/link/unsafe-component-lifecycles`,H,I,W!==null?`
142
- `+W:"",q!==null?`
143
- `+q:"",T!==null?`
144
- `+T:""))}}H=$.stateNode,W=$0(X)||"Component",H.render||(X.prototype&&typeof X.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!H.getInitialState||H.getInitialState.isReactClassApproved||H.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",W),H.getDefaultProps&&!H.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",W),H.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),X.childContextTypes&&!tk.has(X)&&(tk.add(X),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),X.contextTypes&&!sk.has(X)&&(sk.add(X),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",W)),typeof H.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",W),X.prototype&&X.prototype.isPureReactComponent&&typeof H.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",$0(X)||"A pure component"),typeof H.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",W),typeof H.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",W),typeof H.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof H.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),q=H.props!==Y,H.props!==void 0&&q&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",W),H.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",W,W),typeof H.getSnapshotBeforeUpdate!=="function"||typeof H.componentDidUpdate==="function"||pk.has(X)||(pk.add(X),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",$0(X))),typeof H.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof H.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof X.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(q=H.state)&&(typeof q!=="object"||p5(q))&&console.error("%s.state: must be set to an object or null",W),typeof H.getChildContext==="function"&&typeof X.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),H=$.stateNode,H.props=Y,H.state=$.memoizedState,H.refs={},Cv($),W=X.contextType,H.context=typeof W==="object"&&W!==null?X5(W):j8,H.state===Y&&(W=$0(X)||"Component",nk.has(W)||(nk.add(W),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",W))),$.mode&P2&&f4.recordLegacyContextWarning($,H),f4.recordUnsafeLifecycleWarnings($,H),H.state=$.memoizedState,W=X.getDerivedStateFromProps,typeof W==="function"&&(YH($,X,W,Y),H.state=$.memoizedState),typeof X.getDerivedStateFromProps==="function"||typeof H.getSnapshotBeforeUpdate==="function"||typeof H.UNSAFE_componentWillMount!=="function"&&typeof H.componentWillMount!=="function"||(W=H.state,typeof H.componentWillMount==="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount==="function"&&H.UNSAFE_componentWillMount(),W!==H.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",E($)||"Component"),eQ.enqueueReplaceState(H,H.state,null)),vZ($,Y,H,B),BZ(),H.state=$.memoizedState),typeof H.componentDidMount==="function"&&($.flags|=4194308),($.mode&P4)!==l0&&($.flags|=134217728),H=!0}else if(w===null){H=$.stateNode;var y=$.memoizedProps;q=o9(X,y),H.props=q;var D=H.context;T=X.contextType,W=j8,typeof T==="object"&&T!==null&&(W=X5(T)),I=X.getDerivedStateFromProps,T=typeof I==="function"||typeof H.getSnapshotBeforeUpdate==="function",y=$.pendingProps!==y,T||typeof H.UNSAFE_componentWillReceiveProps!=="function"&&typeof H.componentWillReceiveProps!=="function"||(y||D!==W)&&Yq($,H,Y,W),p8=!1;var V=$.memoizedState;H.state=V,vZ($,Y,H,B),BZ(),D=$.memoizedState,y||V!==D||p8?(typeof I==="function"&&(YH($,X,I,Y),D=$.memoizedState),(q=p8||Jq($,X,q,Y,V,D,W))?(T||typeof H.UNSAFE_componentWillMount!=="function"&&typeof H.componentWillMount!=="function"||(typeof H.componentWillMount==="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount==="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount==="function"&&($.flags|=4194308),($.mode&P4)!==l0&&($.flags|=134217728)):(typeof H.componentDidMount==="function"&&($.flags|=4194308),($.mode&P4)!==l0&&($.flags|=134217728),$.memoizedProps=Y,$.memoizedState=D),H.props=Y,H.state=D,H.context=W,H=q):(typeof H.componentDidMount==="function"&&($.flags|=4194308),($.mode&P4)!==l0&&($.flags|=134217728),H=!1)}else{H=$.stateNode,Mv(w,$),W=$.memoizedProps,T=o9(X,W),H.props=T,I=$.pendingProps,V=H.context,D=X.contextType,q=j8,typeof D==="object"&&D!==null&&(q=X5(D)),y=X.getDerivedStateFromProps,(D=typeof y==="function"||typeof H.getSnapshotBeforeUpdate==="function")||typeof H.UNSAFE_componentWillReceiveProps!=="function"&&typeof H.componentWillReceiveProps!=="function"||(W!==I||V!==q)&&Yq($,H,Y,q),p8=!1,V=$.memoizedState,H.state=V,vZ($,Y,H,B),BZ();var n=$.memoizedState;W!==I||V!==n||p8||w!==null&&w.dependencies!==null&&eJ(w.dependencies)?(typeof y==="function"&&(YH($,X,y,Y),n=$.memoizedState),(T=p8||Jq($,X,T,Y,V,n,q)||w!==null&&w.dependencies!==null&&eJ(w.dependencies))?(D||typeof H.UNSAFE_componentWillUpdate!=="function"&&typeof H.componentWillUpdate!=="function"||(typeof H.componentWillUpdate==="function"&&H.componentWillUpdate(Y,n,q),typeof H.UNSAFE_componentWillUpdate==="function"&&H.UNSAFE_componentWillUpdate(Y,n,q)),typeof H.componentDidUpdate==="function"&&($.flags|=4),typeof H.getSnapshotBeforeUpdate==="function"&&($.flags|=1024)):(typeof H.componentDidUpdate!=="function"||W===w.memoizedProps&&V===w.memoizedState||($.flags|=4),typeof H.getSnapshotBeforeUpdate!=="function"||W===w.memoizedProps&&V===w.memoizedState||($.flags|=1024),$.memoizedProps=Y,$.memoizedState=n),H.props=Y,H.state=n,H.context=q,H=T):(typeof H.componentDidUpdate!=="function"||W===w.memoizedProps&&V===w.memoizedState||($.flags|=4),typeof H.getSnapshotBeforeUpdate!=="function"||W===w.memoizedProps&&V===w.memoizedState||($.flags|=1024),H=!1)}if(q=H,OY(w,$),W=($.flags&128)!==0,q||W){if(q=$.stateNode,L5($),W&&typeof X.getDerivedStateFromError!=="function")X=null,c2=-1;else if(X=kk(q),$.mode&P2){T1(!0);try{kk(q)}finally{T1(!1)}}$.flags|=1,w!==null&&W?($.child=v7($,w.child,null,B),$.child=v7($,null,X,B)):F2(w,$,X,B),$.memoizedState=q.state,w=$.child}else w=i6(w,$,B);return B=$.stateNode,H&&B.props!==Y&&(o3||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",E($)||"a component"),o3=!0),w}function Lq(w,$,X,Y){return c9(),$.flags|=256,F2(w,$,X,Y),$.child}function HH(w,$){$&&$.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
145
- %s.childContextTypes = ...`,$.displayName||$.name||"Component"),typeof $.getDerivedStateFromProps==="function"&&(w=$0($)||"Unknown",JN[w]||(console.error("%s: Function components do not support getDerivedStateFromProps.",w),JN[w]=!0)),typeof $.contextType==="object"&&$.contextType!==null&&($=$0($)||"Unknown",ZN[$]||(console.error("%s: Function components do not support contextType.",$),ZN[$]=!0))}function QH(w){return{baseLanes:w,cachePool:UU()}}function gH(w,$,X){return w=w!==null?w.childLanes&~X:0,$&&(w|=Bw),w}function Fq(w,$,X){var Y,B=$.pendingProps;Q($)&&($.flags|=128);var H=!1,W=($.flags&128)!==0;if((Y=W)||(Y=w!==null&&w.memoizedState===null?!1:(m5.current&XX)!==0),Y&&(H=!0,$.flags&=-129),Y=($.flags&32)!==0,$.flags&=-33,w===null){if(K1){if(H?C8($):M8($),(w=n1)?(X=jL(w,J4),X=X!==null&&X.data!==q7?X:null,X!==null&&(Y={dehydrated:X,treeContext:GU(),retryLane:536870912,hydrationErrors:null},$.memoizedState=Y,Y=YU(X),Y.return=$,$.child=Y,T2=$,n1=null)):X=null,X===null)throw sJ($,w),T8($);return aH(X)?$.lanes=32:$.lanes=536870912,null}var q=B.children;if(B=B.fallback,H){M8($);var T=$.mode;return q=AY({mode:"hidden",children:q},T),B=u9(B,T,X,null),q.return=$,B.return=$,q.sibling=B,$.child=q,B=$.child,B.memoizedState=QH(X),B.childLanes=gH(w,Y,X),$.memoizedState=Zg,bZ(null,B)}return C8($),bH($,q)}var I=w.memoizedState;if(I!==null){var y=I.dehydrated;if(y!==null){if(W)$.flags&256?(C8($),$.flags&=-257,$=WH(w,$,X)):$.memoizedState!==null?(M8($),$.child=w.child,$.flags|=128,$=null):(M8($),q=B.fallback,T=$.mode,B=AY({mode:"visible",children:B.children},T),q=u9(q,T,X,null),q.flags|=2,B.return=$,q.return=$,B.sibling=q,$.child=B,v7($,w.child,null,X),B=$.child,B.memoizedState=QH(X),B.childLanes=gH(w,Y,X),$.memoizedState=Zg,$=bZ(null,B));else if(C8($),vU(),(X&536870912)!==0&&PY($),aH(y)){if(Y=y.nextSibling&&y.nextSibling.dataset,Y){q=Y.dgst;var D=Y.msg;T=Y.stck;var V=Y.cstck}H=D,Y=q,B=T,y=V,q=H,T=y,q=q?Error(q):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),q.stack=B||"",q.digest=Y,Y=T===void 0?null:T,B={value:q,source:null,stack:Y},typeof Y==="string"&&RQ.set(q,B),ZZ(B),$=WH(w,$,X)}else if(S5||v3(w,$,X,!1),Y=(X&w.childLanes)!==0,S5||Y){if(Y=u1,Y!==null&&(B=n4(Y,X),B!==0&&B!==I.retryLane))throw I.retryLane=B,x2(w,B),k5(Y,w,B),$g;cH(y)||fY(),$=WH(w,$,X)}else cH(y)?($.flags|=192,$.child=w.child,$=null):(w=I.treeContext,n1=fw(y.nextSibling),T2=$,K1=!0,E8=null,F6=!1,yw=null,J4=!1,w!==null&&BU($,w),$=bH($,B.children),$.flags|=4096);return $}}if(H)return M8($),q=B.fallback,T=$.mode,V=w.child,y=V.sibling,B=u6(V,{mode:"hidden",children:B.children}),B.subtreeFlags=V.subtreeFlags&65011712,y!==null?q=u6(y,q):(q=u9(q,T,X,null),q.flags|=2),q.return=$,B.return=$,B.sibling=q,$.child=B,bZ(null,B),B=$.child,q=w.child.memoizedState,q===null?q=QH(X):(T=q.cachePool,T!==null?(V=h5._currentValue,T=T.parent!==V?{parent:V,pool:V}:T):T=UU(),q={baseLanes:q.baseLanes|X,cachePool:T}),B.memoizedState=q,B.childLanes=gH(w,Y,X),$.memoizedState=Zg,bZ(w.child,B);return I!==null&&(X&62914560)===X&&(X&w.lanes)!==0&&PY($),C8($),X=w.child,w=X.sibling,X=u6(X,{mode:"visible",children:B.children}),X.return=$,X.sibling=null,w!==null&&(Y=$.deletions,Y===null?($.deletions=[w],$.flags|=16):Y.push(w)),$.child=X,$.memoizedState=null,X}function bH(w,$){return $=AY({mode:"visible",children:$},w.mode),$.return=w,w.child=$}function AY(w,$){return w=k(22,w,null,$),w.lanes=0,w}function WH(w,$,X){return v7($,w.child,null,X),w=bH($,$.pendingProps.children),w.flags|=2,$.memoizedState=null,w}function kq(w,$,X){w.lanes|=$;var Y=w.alternate;Y!==null&&(Y.lanes|=$),kv(w.return,$,X)}function KH(w,$,X,Y,B,H){var W=w.memoizedState;W===null?w.memoizedState={isBackwards:$,rendering:null,renderingStartTime:0,last:Y,tail:X,tailMode:B,treeForkCount:H}:(W.isBackwards=$,W.rendering=null,W.renderingStartTime=0,W.last=Y,W.tail=X,W.tailMode=B,W.treeForkCount=H)}function Nq(w,$,X){var Y=$.pendingProps,B=Y.revealOrder,H=Y.tail,W=Y.children,q=m5.current;if((Y=(q&XX)!==0)?(q=q&i3|XX,$.flags|=128):q&=i3,q0(m5,q,$),q=B==null?"null":B,B!=="forwards"&&B!=="unstable_legacy-backwards"&&B!=="together"&&B!=="independent"&&!YN[q])if(YN[q]=!0,B==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(B==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof B==="string")switch(B.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',B,B.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',B,B.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',B)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',B);if(q=H==null?"null":H,!_z[q])if(H==null){if(B==="forwards"||B==="backwards"||B==="unstable_legacy-backwards")_z[q]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else H!=="visible"&&H!=="collapsed"&&H!=="hidden"?(_z[q]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',H)):B!=="forwards"&&B!=="backwards"&&B!=="unstable_legacy-backwards"&&(_z[q]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',H));w:if((B==="forwards"||B==="backwards"||B==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(p5(W)){for(q=0;q<W.length;q++)if(!AU(W[q],q))break w}else if(q=j(W),typeof q==="function"){if(q=q.call(W))for(var T=q.next(),I=0;!T.done;T=q.next()){if(!AU(T.value,I))break w;I++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',B);if(F2(w,$,W,X),K1?(N8(),W=uZ):W=0,!Y&&w!==null&&(w.flags&128)!==0)w:for(w=$.child;w!==null;){if(w.tag===13)w.memoizedState!==null&&kq(w,X,$);else if(w.tag===19)kq(w,X,$);else if(w.child!==null){w.child.return=w,w=w.child;continue}if(w===$)break w;for(;w.sibling===null;){if(w.return===null||w.return===$)break w;w=w.return}w.sibling.return=w.return,w=w.sibling}switch(B){case"forwards":X=$.child;for(B=null;X!==null;)w=X.alternate,w!==null&&HY(w)===null&&(B=X),X=X.sibling;X=B,X===null?(B=$.child,$.child=null):(B=X.sibling,X.sibling=null),KH($,!1,B,X,H,W);break;case"backwards":case"unstable_legacy-backwards":X=null,B=$.child;for($.child=null;B!==null;){if(w=B.alternate,w!==null&&HY(w)===null){$.child=B;break}w=B.sibling,B.sibling=X,X=B,B=w}KH($,!0,X,null,H,W);break;case"together":KH($,!1,null,null,void 0,W);break;default:$.memoizedState=null}return $.child}function i6(w,$,X){if(w!==null&&($.dependencies=w.dependencies),c2=-1,o8|=$.lanes,(X&$.childLanes)===0)if(w!==null){if(v3(w,$,X,!1),(X&$.childLanes)===0)return null}else return null;if(w!==null&&$.child!==w.child)throw Error("Resuming work not yet implemented.");if($.child!==null){w=$.child,X=u6(w,w.pendingProps),$.child=X;for(X.return=$;w.sibling!==null;)w=w.sibling,X=X.sibling=u6(w,w.pendingProps),X.return=$;X.sibling=null}return $.child}function UH(w,$){if((w.lanes&$)!==0)return!0;return w=w.dependencies,w!==null&&eJ(w)?!0:!1}function ZP(w,$,X){switch($.tag){case 3:e($,$.stateNode.containerInfo),I8($,h5,w.memoizedState.cache),c9();break;case 27:case 5:o($);break;case 4:e($,$.stateNode.containerInfo);break;case 10:I8($,$.type,$.memoizedProps.value);break;case 12:(X&$.childLanes)!==0&&($.flags|=4),$.flags|=2048;var Y=$.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if($.memoizedState!==null)return $.flags|=128,Pv($),null;break;case 13:if(Y=$.memoizedState,Y!==null){if(Y.dehydrated!==null)return C8($),$.flags|=128,null;if((X&$.child.childLanes)!==0)return Fq(w,$,X);return C8($),w=i6(w,$,X),w!==null?w.sibling:null}C8($);break;case 19:var B=(w.flags&128)!==0;if(Y=(X&$.childLanes)!==0,Y||(v3(w,$,X,!1),Y=(X&$.childLanes)!==0),B){if(Y)return Nq(w,$,X);$.flags|=128}if(B=$.memoizedState,B!==null&&(B.rendering=null,B.tail=null,B.lastEffect=null),q0(m5,m5.current,$),Y)break;else return null;case 22:return $.lanes=0,bq(w,$,X,$.pendingProps);case 24:I8($,h5,w.memoizedState.cache)}return i6(w,$,X)}function qH(w,$,X){if($._debugNeedsRemount&&w!==null){X=bv($.type,$.key,$.pendingProps,$._debugOwner||null,$.mode,$.lanes),X._debugStack=$._debugStack,X._debugTask=$._debugTask;var Y=$.return;if(Y===null)throw Error("Cannot swap the root fiber.");if(w.alternate=null,$.alternate=null,X.index=$.index,X.sibling=$.sibling,X.return=$.return,X.ref=$.ref,X._debugInfo=$._debugInfo,$===Y.child)Y.child=X;else{var B=Y.child;if(B===null)throw Error("Expected parent to have a child.");for(;B.sibling!==$;)if(B=B.sibling,B===null)throw Error("Expected to find the previous sibling.");B.sibling=X}return $=Y.deletions,$===null?(Y.deletions=[w],Y.flags|=16):$.push(w),X.flags|=2,X}if(w!==null)if(w.memoizedProps!==$.pendingProps||$.type!==w.type)S5=!0;else{if(!UH(w,X)&&($.flags&128)===0)return S5=!1,ZP(w,$,X);S5=(w.flags&131072)!==0?!0:!1}else{if(S5=!1,Y=K1)N8(),Y=($.flags&1048576)!==0;Y&&(Y=$.index,N8(),zU($,uZ,Y))}switch($.lanes=0,$.tag){case 16:w:if(Y=$.pendingProps,w=_8($.elementType),$.type=w,typeof w==="function")gv(w)?(Y=o9(w,Y),$.tag=1,$.type=w=E9(w),$=qq(null,$,w,Y,X)):($.tag=0,HH($,w),$.type=w=E9(w),$=vH(null,$,w,Y,X));else{if(w!==void 0&&w!==null){if(B=w.$$typeof,B===xZ){$.tag=11,$.type=w=Qv(w),$=Hq(null,$,w,Y,X);break w}else if(B===iY){$.tag=14,$=Qq(null,$,w,Y,X);break w}}throw $="",w!==null&&typeof w==="object"&&w.$$typeof===Vw&&($=" Did you wrap a component in React.lazy() more than once?"),X=$0(w)||w,Error("Element type is invalid. Received a promise that resolves to: "+X+". Lazy element type must resolve to a class or function."+$)}return $;case 0:return vH(w,$,$.type,$.pendingProps,X);case 1:return Y=$.type,B=o9(Y,$.pendingProps),qq(w,$,Y,B,X);case 3:w:{if(e($,$.stateNode.containerInfo),w===null)throw Error("Should have a current fiber. This is a bug in React.");Y=$.pendingProps;var H=$.memoizedState;B=H.element,Mv(w,$),vZ($,Y,null,X);var W=$.memoizedState;if(Y=W.cache,I8($,h5,Y),Y!==H.cache&&Nv($,[h5],X,!0),BZ(),Y=W.element,H.isDehydrated)if(H={element:Y,isDehydrated:!1,cache:W.cache},$.updateQueue.baseState=H,$.memoizedState=H,$.flags&256){$=Lq(w,$,Y,X);break w}else if(Y!==B){B=Cw(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),$),ZZ(B),$=Lq(w,$,Y,X);break w}else{switch(w=$.stateNode.containerInfo,w.nodeType){case 9:w=w.body;break;default:w=w.nodeName==="HTML"?w.ownerDocument.body:w}n1=fw(w.firstChild),T2=$,K1=!0,E8=null,F6=!1,yw=null,J4=!0,X=hk($,null,Y,X);for($.child=X;X;)X.flags=X.flags&-3|4096,X=X.sibling}else{if(c9(),Y===B){$=i6(w,$,X);break w}F2(w,$,Y,X)}$=$.child}return $;case 26:return OY(w,$),w===null?(X=iL($.type,null,$.pendingProps,null))?$.memoizedState=X:K1||(X=$.type,w=$.pendingProps,Y=F0(h8.current),Y=yY(Y).createElement(X),Y[N2]=$,Y[E2]=w,k2(Y,X,w),h0(Y),$.stateNode=Y):$.memoizedState=iL($.type,w.memoizedProps,$.pendingProps,w.memoizedState),null;case 27:return o($),w===null&&K1&&(Y=F0(h8.current),B=u(),Y=$.stateNode=cL($.type,$.pendingProps,Y,B,!1),F6||(B=fL(Y,$.type,$.pendingProps,B),B!==null&&(l9($,0).serverProps=B)),T2=$,J4=!0,B=n1,f8($.type)?(Og=B,n1=fw(Y.firstChild)):n1=B),F2(w,$,$.pendingProps.children,X),OY(w,$),w===null&&($.flags|=4194304),$.child;case 5:return w===null&&K1&&(H=u(),Y=Xv($.type,H.ancestorInfo),B=n1,(W=!B)||(W=cP(B,$.type,$.pendingProps,J4),W!==null?($.stateNode=W,F6||(H=fL(W,$.type,$.pendingProps,H),H!==null&&(l9($,0).serverProps=H)),T2=$,n1=fw(W.firstChild),J4=!1,H=!0):H=!1,W=!H),W&&(Y&&sJ($,B),T8($))),o($),B=$.type,H=$.pendingProps,W=w!==null?w.memoizedProps:null,Y=H.children,uH(B,H)?Y=null:W!==null&&uH(B,W)&&($.flags|=32),$.memoizedState!==null&&(B=Vv(w,$,rm,null,null,X),NX._currentValue=B),OY(w,$),F2(w,$,Y,X),$.child;case 6:return w===null&&K1&&(X=$.pendingProps,w=u(),Y=w.ancestorInfo.current,X=Y!=null?EJ(X,Y.tag,w.ancestorInfo.implicitRootScope):!0,w=n1,(Y=!w)||(Y=aP(w,$.pendingProps,J4),Y!==null?($.stateNode=Y,T2=$,n1=null,Y=!0):Y=!1,Y=!Y),Y&&(X&&sJ($,w),T8($))),null;case 13:return Fq(w,$,X);case 4:return e($,$.stateNode.containerInfo),Y=$.pendingProps,w===null?$.child=v7($,null,Y,X):F2(w,$,Y,X),$.child;case 11:return Hq(w,$,$.type,$.pendingProps,X);case 7:return F2(w,$,$.pendingProps,X),$.child;case 8:return F2(w,$,$.pendingProps.children,X),$.child;case 12:return $.flags|=4,$.flags|=2048,Y=$.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,F2(w,$,$.pendingProps.children,X),$.child;case 10:return Y=$.type,B=$.pendingProps,H=B.value,"value"in B||zN||(zN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),I8($,Y,H),F2(w,$,B.children,X),$.child;case 9:return B=$.type._context,Y=$.pendingProps.children,typeof Y!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),a9($),B=X5(B),Y=lQ(Y,B,void 0),$.flags|=1,F2(w,$,Y,X),$.child;case 14:return Qq(w,$,$.type,$.pendingProps,X);case 15:return gq(w,$,$.type,$.pendingProps,X);case 19:return Nq(w,$,X);case 31:return $P(w,$,X);case 22:return bq(w,$,X,$.pendingProps);case 24:return a9($),Y=X5(h5),w===null?(B=Ov(),B===null&&(B=u1,H=Tv(),B.pooledCache=H,i9(H),H!==null&&(B.pooledCacheLanes|=X),B=H),$.memoizedState={parent:Y,cache:B},Cv($),I8($,h5,B)):((w.lanes&X)!==0&&(Mv(w,$),vZ($,null,null,X),BZ()),B=w.memoizedState,H=$.memoizedState,B.parent!==Y?(B={parent:Y,cache:Y},$.memoizedState=B,$.lanes===0&&($.memoizedState=$.updateQueue.baseState=B),I8($,h5,Y)):(Y=H.cache,I8($,h5,Y),Y!==B.cache&&Nv($,[h5],X,!0))),F2(w,$,$.pendingProps.children,X),$.child;case 29:throw $.pendingProps}throw Error("Unknown unit of work tag ("+$.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function p6(w){w.flags|=4}function LH(w,$,X,Y,B){if($=(w.mode&IV)!==l0)$=!1;if($){if(w.flags|=16777216,(B&335544128)===B)if(w.stateNode.complete)w.flags|=8192;else if(wL())w.flags|=8192;else throw B7=Lz,aQ}else w.flags&=-16777217}function Tq(w,$){if($.type!=="stylesheet"||($.state.loading&v4)!==k7)w.flags&=-16777217;else if(w.flags|=16777216,!sL($))if(wL())w.flags|=8192;else throw B7=Lz,aQ}function CY(w,$){$!==null&&(w.flags|=4),w.flags&16384&&($=w.tag!==22?i5():536870912,w.lanes|=$,W7|=$)}function WZ(w,$){if(!K1)switch(w.tailMode){case"hidden":$=w.tail;for(var X=null;$!==null;)$.alternate!==null&&(X=$),$=$.sibling;X===null?w.tail=null:X.sibling=null;break;case"collapsed":X=w.tail;for(var Y=null;X!==null;)X.alternate!==null&&(Y=X),X=X.sibling;Y===null?$||w.tail===null?w.tail=null:w.tail.sibling=null:Y.sibling=null}}function c1(w){var $=w.alternate!==null&&w.alternate.child===w.child,X=0,Y=0;if($)if((w.mode&w1)!==l0){for(var{selfBaseDuration:B,child:H}=w;H!==null;)X|=H.lanes|H.childLanes,Y|=H.subtreeFlags&65011712,Y|=H.flags&65011712,B+=H.treeBaseDuration,H=H.sibling;w.treeBaseDuration=B}else for(B=w.child;B!==null;)X|=B.lanes|B.childLanes,Y|=B.subtreeFlags&65011712,Y|=B.flags&65011712,B.return=w,B=B.sibling;else if((w.mode&w1)!==l0){B=w.actualDuration,H=w.selfBaseDuration;for(var W=w.child;W!==null;)X|=W.lanes|W.childLanes,Y|=W.subtreeFlags,Y|=W.flags,B+=W.actualDuration,H+=W.treeBaseDuration,W=W.sibling;w.actualDuration=B,w.treeBaseDuration=H}else for(B=w.child;B!==null;)X|=B.lanes|B.childLanes,Y|=B.subtreeFlags,Y|=B.flags,B.return=w,B=B.sibling;return w.subtreeFlags|=Y,w.childLanes=X,$}function XP(w,$,X){var Y=$.pendingProps;switch(qv($),$.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return c1($),null;case 1:return c1($),null;case 3:if(X=$.stateNode,Y=null,w!==null&&(Y=w.memoizedState.cache),$.memoizedState.cache!==Y&&($.flags|=2048),c6(h5,$),B0($),X.pendingContext&&(X.context=X.pendingContext,X.pendingContext=null),w===null||w.child===null)B3($)?(Fv(),p6($)):w===null||w.memoizedState.isDehydrated&&($.flags&256)===0||($.flags|=1024,Lv());return c1($),null;case 26:var{type:B,memoizedState:H}=$;return w===null?(p6($),H!==null?(c1($),Tq($,H)):(c1($),LH($,B,null,Y,X))):H?H!==w.memoizedState?(p6($),c1($),Tq($,H)):(c1($),$.flags&=-16777217):(w=w.memoizedProps,w!==Y&&p6($),c1($),LH($,B,w,Y,X)),null;case 27:if(l($),X=F0(h8.current),B=$.type,w!==null&&$.stateNode!=null)w.memoizedProps!==Y&&p6($);else{if(!Y){if($.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return c1($),null}w=u(),B3($)?HU($,w):(w=cL(B,Y,X,w,!0),$.stateNode=w,p6($))}return c1($),null;case 5:if(l($),B=$.type,w!==null&&$.stateNode!=null)w.memoizedProps!==Y&&p6($);else{if(!Y){if($.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return c1($),null}var W=u();if(B3($))HU($,W);else{switch(H=F0(h8.current),Xv(B,W.ancestorInfo),W=W.context,H=yY(H),W){case J$:H=H.createElementNS(M3,B);break;case cz:H=H.createElementNS(eY,B);break;default:switch(B){case"svg":H=H.createElementNS(M3,B);break;case"math":H=H.createElementNS(eY,B);break;case"script":H=H.createElement("div"),H.innerHTML="<script></script>",H=H.removeChild(H.firstChild);break;case"select":H=typeof Y.is==="string"?H.createElement("select",{is:Y.is}):H.createElement("select"),Y.multiple?H.multiple=!0:Y.size&&(H.size=Y.size);break;default:H=typeof Y.is==="string"?H.createElement(B,{is:Y.is}):H.createElement(B),B.indexOf("-")===-1&&(B!==B.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",B),Object.prototype.toString.call(H)!=="[object HTMLUnknownElement]"||x4.call(mN,B)||(mN[B]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",B)))}}H[N2]=$,H[E2]=Y;w:for(W=$.child;W!==null;){if(W.tag===5||W.tag===6)H.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===$)break w;for(;W.sibling===null;){if(W.return===null||W.return===$)break w;W=W.return}W.sibling.return=W.return,W=W.sibling}$.stateNode=H;w:switch(k2(H,B,Y),B){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break w;case"img":Y=!0;break w;default:Y=!1}Y&&p6($)}}return c1($),LH($,$.type,w===null?null:w.memoizedProps,$.pendingProps,X),null;case 6:if(w&&$.stateNode!=null)w.memoizedProps!==Y&&p6($);else{if(typeof Y!=="string"&&$.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(w=F0(h8.current),X=u(),B3($)){if(w=$.stateNode,X=$.memoizedProps,B=!F6,Y=null,H=T2,H!==null)switch(H.tag){case 3:B&&(B=uL(w,X,Y),B!==null&&(l9($,0).serverProps=B));break;case 27:case 5:Y=H.memoizedProps,B&&(B=uL(w,X,Y),B!==null&&(l9($,0).serverProps=B))}w[N2]=$,w=w.nodeValue===X||Y!==null&&Y.suppressHydrationWarning===!0||CL(w.nodeValue,X)?!0:!1,w||T8($,!0)}else B=X.ancestorInfo.current,B!=null&&EJ(Y,B.tag,X.ancestorInfo.implicitRootScope),w=yY(w).createTextNode(Y),w[N2]=$,$.stateNode=w}return c1($),null;case 31:if(X=$.memoizedState,w===null||w.memoizedState!==null){if(Y=B3($),X!==null){if(w===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=$.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");w[N2]=$,c1($),($.mode&w1)!==l0&&X!==null&&(w=$.child,w!==null&&($.treeBaseDuration-=w.treeBaseDuration))}else Fv(),c9(),($.flags&128)===0&&(X=$.memoizedState=null),$.flags|=4,c1($),($.mode&w1)!==l0&&X!==null&&(w=$.child,w!==null&&($.treeBaseDuration-=w.treeBaseDuration));w=!1}else X=Lv(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=X),w=!0;if(!w){if($.flags&256)return mw($),$;return mw($),null}if(($.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return c1($),null;case 13:if(Y=$.memoizedState,w===null||w.memoizedState!==null&&w.memoizedState.dehydrated!==null){if(B=Y,H=B3($),B!==null&&B.dehydrated!==null){if(w===null){if(!H)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(H=$.memoizedState,H=H!==null?H.dehydrated:null,!H)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");H[N2]=$,c1($),($.mode&w1)!==l0&&B!==null&&(B=$.child,B!==null&&($.treeBaseDuration-=B.treeBaseDuration))}else Fv(),c9(),($.flags&128)===0&&(B=$.memoizedState=null),$.flags|=4,c1($),($.mode&w1)!==l0&&B!==null&&(B=$.child,B!==null&&($.treeBaseDuration-=B.treeBaseDuration));B=!1}else B=Lv(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=B),B=!0;if(!B){if($.flags&256)return mw($),$;return mw($),null}}if(mw($),($.flags&128)!==0)return $.lanes=X,($.mode&w1)!==l0&&YZ($),$;return X=Y!==null,w=w!==null&&w.memoizedState!==null,X&&(Y=$.child,B=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(B=Y.alternate.memoizedState.cachePool.pool),H=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(H=Y.memoizedState.cachePool.pool),H!==B&&(Y.flags|=2048)),X!==w&&X&&($.child.flags|=8192),CY($,$.updateQueue),c1($),($.mode&w1)!==l0&&X&&(w=$.child,w!==null&&($.treeBaseDuration-=w.treeBaseDuration)),null;case 4:return B0($),w===null&&RH($.stateNode.containerInfo),c1($),null;case 10:return c6($.type,$),c1($),null;case 19:if(G0(m5,$),Y=$.memoizedState,Y===null)return c1($),null;if(B=($.flags&128)!==0,H=Y.rendering,H===null)if(B)WZ(Y,!1);else{if(g5!==B8||w!==null&&(w.flags&128)!==0)for(w=$.child;w!==null;){if(H=HY(w),H!==null){$.flags|=128,WZ(Y,!1),w=H.updateQueue,$.updateQueue=w,CY($,w),$.subtreeFlags=0,w=X;for(X=$.child;X!==null;)JU(X,w),X=X.sibling;return q0(m5,m5.current&i3|XX,$),K1&&l6($,Y.treeForkCount),$.child}w=w.sibling}Y.tail!==null&&v2()>Pz&&($.flags|=128,B=!0,WZ(Y,!1),$.lanes=4194304)}else{if(!B)if(w=HY(H),w!==null){if($.flags|=128,B=!0,w=w.updateQueue,$.updateQueue=w,CY($,w),WZ(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!H.alternate&&!K1)return c1($),null}else 2*v2()-Y.renderingStartTime>Pz&&X!==536870912&&($.flags|=128,B=!0,WZ(Y,!1),$.lanes=4194304);Y.isBackwards?(H.sibling=$.child,$.child=H):(w=Y.last,w!==null?w.sibling=H:$.child=H,Y.last=H)}if(Y.tail!==null)return w=Y.tail,Y.rendering=w,Y.tail=w.sibling,Y.renderingStartTime=v2(),w.sibling=null,X=m5.current,X=B?X&i3|XX:X&i3,q0(m5,X,$),K1&&l6($,Y.treeForkCount),w;return c1($),null;case 22:case 23:return mw($),mv($),Y=$.memoizedState!==null,w!==null?w.memoizedState!==null!==Y&&($.flags|=8192):Y&&($.flags|=8192),Y?(X&536870912)!==0&&($.flags&128)===0&&(c1($),$.subtreeFlags&6&&($.flags|=8192)):c1($),X=$.updateQueue,X!==null&&CY($,X.retryQueue),X=null,w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(X=w.memoizedState.cachePool.pool),Y=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Y=$.memoizedState.cachePool.pool),Y!==X&&($.flags|=2048),w!==null&&G0(z7,$),null;case 24:return X=null,w!==null&&(X=w.memoizedState.cache),$.memoizedState.cache!==X&&($.flags|=2048),c6(h5,$),c1($),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+$.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function JP(w,$){switch(qv($),$.tag){case 1:return w=$.flags,w&65536?($.flags=w&-65537|128,($.mode&w1)!==l0&&YZ($),$):null;case 3:return c6(h5,$),B0($),w=$.flags,(w&65536)!==0&&(w&128)===0?($.flags=w&-65537|128,$):null;case 26:case 27:case 5:return l($),null;case 31:if($.memoizedState!==null){if(mw($),$.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");c9()}return w=$.flags,w&65536?($.flags=w&-65537|128,($.mode&w1)!==l0&&YZ($),$):null;case 13:if(mw($),w=$.memoizedState,w!==null&&w.dehydrated!==null){if($.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");c9()}return w=$.flags,w&65536?($.flags=w&-65537|128,($.mode&w1)!==l0&&YZ($),$):null;case 19:return G0(m5,$),null;case 4:return B0($),null;case 10:return c6($.type,$),null;case 22:case 23:return mw($),mv($),w!==null&&G0(z7,$),w=$.flags,w&65536?($.flags=w&-65537|128,($.mode&w1)!==l0&&YZ($),$):null;case 24:return c6(h5,$),null;case 25:return null;default:return null}}function Iq(w,$){switch(qv($),$.tag){case 3:c6(h5,$),B0($);break;case 26:case 27:case 5:l($);break;case 4:B0($);break;case 31:$.memoizedState!==null&&mw($);break;case 13:mw($);break;case 19:G0(m5,$);break;case 10:c6($.type,$);break;case 22:case 23:mw($),mv($),w!==null&&G0(z7,$);break;case 24:c6(h5,$)}}function z6(w){return(w.mode&w1)!==l0}function _q(w,$){z6(w)?(Y6(),KZ($,w),J6()):KZ($,w)}function FH(w,$,X){z6(w)?(Y6(),W3(X,w,$),J6()):W3(X,w,$)}function KZ(w,$){try{var X=$.updateQueue,Y=X!==null?X.lastEffect:null;if(Y!==null){var B=Y.next;X=B;do{if((X.tag&w)===w&&(Y=void 0,(w&a2)!==kz&&($$=!0),Y=g0($,MV,X),(w&a2)!==kz&&($$=!1),Y!==void 0&&typeof Y!=="function")){var H=void 0;H=(X.tag&Dw)!==0?"useLayoutEffect":(X.tag&a2)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
146
-
147
- It looks like you wrote `+H+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
148
-
149
- `+H+`(() => {
150
- async function fetchData() {
151
- // You can await here
152
- const response = await MyAPI.getData(someId);
153
- // ...
154
- }
155
- fetchData();
156
- }, [someId]); // Or [] if effect doesn't need props or state
157
-
158
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Y,g0($,function(q,T){console.error("%s must not return anything besides a function, which is used for clean-up.%s",q,T)},H,W)}X=X.next}while(X!==B)}}catch(q){C1($,$.return,q)}}function W3(w,$,X){try{var Y=$.updateQueue,B=Y!==null?Y.lastEffect:null;if(B!==null){var H=B.next;Y=H;do{if((Y.tag&w)===w){var W=Y.inst,q=W.destroy;q!==void 0&&(W.destroy=void 0,(w&a2)!==kz&&($$=!0),B=$,g0(B,xV,B,X,q),(w&a2)!==kz&&($$=!1))}Y=Y.next}while(Y!==H)}}catch(T){C1($,$.return,T)}}function Oq(w,$){z6(w)?(Y6(),KZ($,w),J6()):KZ($,w)}function kH(w,$,X){z6(w)?(Y6(),W3(X,w,$),J6()):W3(X,w,$)}function Aq(w){var $=w.updateQueue;if($!==null){var X=w.stateNode;w.type.defaultProps||"ref"in w.memoizedProps||o3||(X.props!==w.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",E(w)||"instance"),X.state!==w.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",E(w)||"instance"));try{g0(w,MU,$,X)}catch(Y){C1(w,w.return,Y)}}}function YP(w,$,X){return w.getSnapshotBeforeUpdate($,X)}function zP(w,$){var{memoizedProps:X,memoizedState:Y}=$;$=w.stateNode,w.type.defaultProps||"ref"in w.memoizedProps||o3||($.props!==w.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",E(w)||"instance"),$.state!==w.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",E(w)||"instance"));try{var B=o9(w.type,X),H=g0(w,YP,$,B,Y);X=GN,H!==void 0||X.has(w.type)||(X.add(w.type),g0(w,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",E(w))})),$.__reactInternalSnapshotBeforeUpdate=H}catch(W){C1(w,w.return,W)}}function Cq(w,$,X){X.props=o9(w.type,w.memoizedProps),X.state=w.memoizedState,z6(w)?(Y6(),g0(w,Ak,w,$,X),J6()):g0(w,Ak,w,$,X)}function GP(w){var $=w.ref;if($!==null){switch(w.tag){case 26:case 27:case 5:var X=w.stateNode;break;case 30:X=w.stateNode;break;default:X=w.stateNode}if(typeof $==="function")if(z6(w))try{Y6(),w.refCleanup=$(X)}finally{J6()}else w.refCleanup=$(X);else typeof $==="string"?console.error("String refs are no longer supported."):$.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",E(w)),$.current=X}}function UZ(w,$){try{g0(w,GP,w)}catch(X){C1(w,$,X)}}function G6(w,$){var{ref:X,refCleanup:Y}=w;if(X!==null)if(typeof Y==="function")try{if(z6(w))try{Y6(),g0(w,Y)}finally{J6(w)}else g0(w,Y)}catch(B){C1(w,$,B)}finally{w.refCleanup=null,w=w.alternate,w!=null&&(w.refCleanup=null)}else if(typeof X==="function")try{if(z6(w))try{Y6(),g0(w,X,null)}finally{J6(w)}else g0(w,X,null)}catch(B){C1(w,$,B)}else X.current=null}function Mq(w,$,X,Y){var B=w.memoizedProps,H=B.id,W=B.onCommit;B=B.onRender,$=$===null?"mount":"update",Wz&&($="nested-update"),typeof B==="function"&&B(H,$,w.actualDuration,w.treeBaseDuration,w.actualStartTime,X),typeof W==="function"&&W(H,$,Y,X)}function BP(w,$,X,Y){var B=w.memoizedProps;w=B.id,B=B.onPostCommit,$=$===null?"mount":"update",Wz&&($="nested-update"),typeof B==="function"&&B(w,$,Y,X)}function xq(w){var{type:$,memoizedProps:X,stateNode:Y}=w;try{g0(w,fP,Y,$,X,w)}catch(B){C1(w,w.return,B)}}function NH(w,$,X){try{g0(w,hP,w.stateNode,w.type,X,$,w)}catch(Y){C1(w,w.return,Y)}}function mq(w){return w.tag===5||w.tag===3||w.tag===26||w.tag===27&&f8(w.type)||w.tag===4}function TH(w){w:for(;;){for(;w.sibling===null;){if(w.return===null||mq(w.return))return null;w=w.return}w.sibling.return=w.return;for(w=w.sibling;w.tag!==5&&w.tag!==6&&w.tag!==18;){if(w.tag===27&&f8(w.type))continue w;if(w.flags&2)continue w;if(w.child===null||w.tag===4)continue w;else w.child.return=w,w=w.child}if(!(w.flags&2))return w.stateNode}}function IH(w,$,X){var Y=w.tag;if(Y===5||Y===6)w=w.stateNode,$?(SL(X),(X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X).insertBefore(w,$)):(SL(X),$=X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X,$.appendChild(w),X=X._reactRootContainer,X!==null&&X!==void 0||$.onclick!==null||($.onclick=E6));else if(Y!==4&&(Y===27&&f8(w.type)&&(X=w.stateNode,$=null),w=w.child,w!==null))for(IH(w,$,X),w=w.sibling;w!==null;)IH(w,$,X),w=w.sibling}function MY(w,$,X){var Y=w.tag;if(Y===5||Y===6)w=w.stateNode,$?X.insertBefore(w,$):X.appendChild(w);else if(Y!==4&&(Y===27&&f8(w.type)&&(X=w.stateNode),w=w.child,w!==null))for(MY(w,$,X),w=w.sibling;w!==null;)MY(w,$,X),w=w.sibling}function vP(w){for(var $,X=w.return;X!==null;){if(mq(X)){$=X;break}X=X.return}if($==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch($.tag){case 27:$=$.stateNode,X=TH(w),MY(w,X,$);break;case 5:X=$.stateNode,$.flags&32&&(yL(X),$.flags&=-33),$=TH(w),MY(w,$,X);break;case 3:case 4:$=$.stateNode.containerInfo,X=TH(w),IH(w,X,$);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Pq(w){var{stateNode:$,memoizedProps:X}=w;try{g0(w,oP,w.type,X,$,w)}catch(Y){C1(w,w.return,Y)}}function fq(w,$){return $.tag===31?($=$.memoizedState,w.memoizedState!==null&&$===null):$.tag===13?(w=w.memoizedState,$=$.memoizedState,w!==null&&w.dehydrated!==null&&($===null||$.dehydrated===null)):$.tag===3?w.memoizedState.isDehydrated&&($.flags&256)===0:!1}function HP(w,$){if(w=w.containerInfo,Tg=rz,w=rK(w),zv(w)){if("selectionStart"in w)var X={start:w.selectionStart,end:w.selectionEnd};else w:{X=(X=w.ownerDocument)&&X.defaultView||window;var Y=X.getSelection&&X.getSelection();if(Y&&Y.rangeCount!==0){X=Y.anchorNode;var{anchorOffset:B,focusNode:H}=Y;Y=Y.focusOffset;try{X.nodeType,H.nodeType}catch(L0){X=null;break w}var W=0,q=-1,T=-1,I=0,y=0,D=w,V=null;$:for(;;){for(var n;;){if(D!==X||B!==0&&D.nodeType!==3||(q=W+B),D!==H||Y!==0&&D.nodeType!==3||(T=W+Y),D.nodeType===3&&(W+=D.nodeValue.length),(n=D.firstChild)===null)break;V=D,D=n}for(;;){if(D===w)break $;if(V===X&&++I===B&&(q=W),V===H&&++y===Y&&(T=W),(n=D.nextSibling)!==null)break;D=V,V=D.parentNode}D=n}X=q===-1||T===-1?null:{start:q,end:T}}else X=null}X=X||{start:0,end:0}}else X=null;Ig={focusedElem:w,selectionRange:X},rz=!1;for(Q2=$;Q2!==null;)if($=Q2,w=$.child,($.subtreeFlags&1028)!==0&&w!==null)w.return=$,Q2=w;else for(;Q2!==null;){switch(w=$=Q2,X=w.alternate,B=w.flags,w.tag){case 0:if((B&4)!==0&&(w=w.updateQueue,w=w!==null?w.events:null,w!==null))for(X=0;X<w.length;X++)B=w[X],B.ref.impl=B.nextImpl;break;case 11:case 15:break;case 1:(B&1024)!==0&&X!==null&&zP(w,X);break;case 3:if((B&1024)!==0){if(w=w.stateNode.containerInfo,X=w.nodeType,X===9)lH(w);else if(X===1)switch(w.nodeName){case"HEAD":case"HTML":case"BODY":lH(w);break;default:w.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((B&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(w=$.sibling,w!==null){w.return=$.return,Q2=w;break}Q2=$.return}}function Vq(w,$,X){var Y=Mw(),B=w6(),H=Z6(),W=X6(),q=X.flags;switch(X.tag){case 0:case 11:case 15:B6(w,X),q&4&&_q(X,Dw|G4);break;case 1:if(B6(w,X),q&4)if(w=X.stateNode,$===null)X.type.defaultProps||"ref"in X.memoizedProps||o3||(w.props!==X.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",E(X)||"instance"),w.state!==X.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",E(X)||"instance")),z6(X)?(Y6(),g0(X,cQ,X,w),J6()):g0(X,cQ,X,w);else{var T=o9(X.type,$.memoizedProps);$=$.memoizedState,X.type.defaultProps||"ref"in X.memoizedProps||o3||(w.props!==X.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",E(X)||"instance"),w.state!==X.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",E(X)||"instance")),z6(X)?(Y6(),g0(X,Ik,X,w,T,$,w.__reactInternalSnapshotBeforeUpdate),J6()):g0(X,Ik,X,w,T,$,w.__reactInternalSnapshotBeforeUpdate)}q&64&&Aq(X),q&512&&UZ(X,X.return);break;case 3:if($=a6(),B6(w,X),q&64&&(q=X.updateQueue,q!==null)){if(T=null,X.child!==null)switch(X.child.tag){case 27:case 5:T=X.child.stateNode;break;case 1:T=X.child.stateNode}try{g0(X,MU,q,T)}catch(y){C1(X,X.return,y)}}w.effectDuration+=$Y($);break;case 27:$===null&&q&4&&Pq(X);case 26:case 5:if(B6(w,X),$===null){if(q&4)xq(X);else if(q&64){w=X.type,$=X.memoizedProps,T=X.stateNode;try{g0(X,VP,T,w,$,X)}catch(y){C1(X,X.return,y)}}}q&512&&UZ(X,X.return);break;case 12:if(q&4){q=a6(),B6(w,X),w=X.stateNode,w.effectDuration+=JZ(q);try{g0(X,Mq,X,$,u8,w.effectDuration)}catch(y){C1(X,X.return,y)}}else B6(w,X);break;case 31:B6(w,X),q&4&&yq(w,X);break;case 13:B6(w,X),q&4&&Sq(w,X),q&64&&(w=X.memoizedState,w!==null&&(w=w.dehydrated,w!==null&&(q=FP.bind(null,X),iP(w,q))));break;case 22:if(q=X.memoizedState!==null||G8,!q){$=$!==null&&$.memoizedState!==null||D5,T=G8;var I=D5;G8=q,(D5=$)&&!I?(v6(w,X,(X.subtreeFlags&8772)!==0),(X.mode&w1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&aJ(X,S0,j0)):B6(w,X),G8=T,D5=I}break;case 30:break;default:B6(w,X)}(X.mode&w1)!==l0&&0<=S0&&0<=j0&&((N5||0.05<Q5)&&t4(X,S0,j0,Q5,J5),X.alternate===null&&X.return!==null&&X.return.alternate!==null&&0.05<j0-S0&&(fq(X.return.alternate,X.return)||s4(X,S0,j0,"Mount"))),xw(Y),$6(B),J5=H,N5=W}function hq(w){var $=w.alternate;$!==null&&(w.alternate=null,hq($)),w.child=null,w.deletions=null,w.sibling=null,w.tag===5&&($=w.stateNode,$!==null&&k0($)),w.stateNode=null,w._debugOwner=null,w.return=null,w.dependencies=null,w.memoizedProps=null,w.memoizedState=null,w.pendingProps=null,w.stateNode=null,w.updateQueue=null}function r6(w,$,X){for(X=X.child;X!==null;)Rq(w,$,X),X=X.sibling}function Rq(w,$,X){if(m2&&typeof m2.onCommitFiberUnmount==="function")try{m2.onCommitFiberUnmount(A3,X)}catch(I){K6||(K6=!0,console.error("React instrumentation encountered an error: %o",I))}var Y=Mw(),B=w6(),H=Z6(),W=X6();switch(X.tag){case 26:D5||G6(X,$),r6(w,$,X),X.memoizedState?X.memoizedState.count--:X.stateNode&&(w=X.stateNode,w.parentNode.removeChild(w));break;case 27:D5||G6(X,$);var q=d5,T=zw;f8(X.type)&&(d5=X.stateNode,zw=!1),r6(w,$,X),g0(X,OZ,X.stateNode),d5=q,zw=T;break;case 5:D5||G6(X,$);case 6:if(q=d5,T=zw,d5=null,r6(w,$,X),d5=q,zw=T,d5!==null)if(zw)try{g0(X,SP,d5,X.stateNode)}catch(I){C1(X,$,I)}else try{g0(X,yP,d5,X.stateNode)}catch(I){C1(X,$,I)}break;case 18:d5!==null&&(zw?(w=d5,DL(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w,X.stateNode),T3(w)):DL(d5,X.stateNode));break;case 4:q=d5,T=zw,d5=X.stateNode.containerInfo,zw=!0,r6(w,$,X),d5=q,zw=T;break;case 0:case 11:case 14:case 15:W3(a2,X,$),D5||FH(X,$,Dw),r6(w,$,X);break;case 1:D5||(G6(X,$),q=X.stateNode,typeof q.componentWillUnmount==="function"&&Cq(X,$,q)),r6(w,$,X);break;case 21:r6(w,$,X);break;case 22:D5=(q=D5)||X.memoizedState!==null,r6(w,$,X),D5=q;break;default:r6(w,$,X)}(X.mode&w1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<Q5)&&t4(X,S0,j0,Q5,J5),xw(Y),$6(B),J5=H,N5=W}function yq(w,$){if($.memoizedState===null&&(w=$.alternate,w!==null&&(w=w.memoizedState,w!==null))){w=w.dehydrated;try{g0($,rP,w)}catch(X){C1($,$.return,X)}}}function Sq(w,$){if($.memoizedState===null&&(w=$.alternate,w!==null&&(w=w.memoizedState,w!==null&&(w=w.dehydrated,w!==null))))try{g0($,nP,w)}catch(X){C1($,$.return,X)}}function QP(w){switch(w.tag){case 31:case 13:case 19:var $=w.stateNode;return $===null&&($=w.stateNode=new BN),$;case 22:return w=w.stateNode,$=w._retryCache,$===null&&($=w._retryCache=new BN),$;default:throw Error("Unexpected Suspense handler tag ("+w.tag+"). This is a bug in React.")}}function xY(w,$){var X=QP(w);$.forEach(function(Y){if(!X.has(Y)){if(X.add(Y),U6)if(s3!==null&&t3!==null)kZ(t3,s3);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var B=kP.bind(null,w,Y);Y.then(B,B)}})}function Jw(w,$){var X=$.deletions;if(X!==null)for(var Y=0;Y<X.length;Y++){var B=w,H=$,W=X[Y],q=Mw(),T=H;w:for(;T!==null;){switch(T.tag){case 27:if(f8(T.type)){d5=T.stateNode,zw=!1;break w}break;case 5:d5=T.stateNode,zw=!1;break w;case 3:case 4:d5=T.stateNode.containerInfo,zw=!0;break w}T=T.return}if(d5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Rq(B,H,W),d5=null,zw=!1,(W.mode&w1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&s4(W,S0,j0,"Unmount"),xw(q),B=W,H=B.alternate,H!==null&&(H.return=null),B.return=null}if($.subtreeFlags&13886)for($=$.child;$!==null;)Dq($,w),$=$.sibling}function Dq(w,$){var X=Mw(),Y=w6(),B=Z6(),H=X6(),W=w.alternate,q=w.flags;switch(w.tag){case 0:case 11:case 14:case 15:Jw($,w),Yw(w),q&4&&(W3(a2|G4,w,w.return),KZ(a2|G4,w),FH(w,w.return,Dw|G4));break;case 1:if(Jw($,w),Yw(w),q&512&&(D5||W===null||G6(W,W.return)),q&64&&G8&&(q=w.updateQueue,q!==null&&(W=q.callbacks,W!==null))){var T=q.shared.hiddenCallbacks;q.shared.hiddenCallbacks=T===null?W:T.concat(W)}break;case 26:if(T=h4,Jw($,w),Yw(w),q&512&&(D5||W===null||G6(W,W.return)),q&4){var I=W!==null?W.memoizedState:null;if(q=w.memoizedState,W===null)if(q===null)if(w.stateNode===null){w:{q=w.type,W=w.memoizedProps,T=T.ownerDocument||T;$:switch(q){case"title":if(I=T.getElementsByTagName("title")[0],!I||I[fZ]||I[N2]||I.namespaceURI===M3||I.hasAttribute("itemprop"))I=T.createElement(q),T.head.insertBefore(I,T.querySelector("head > title"));k2(I,q,W),I[N2]=w,h0(I),q=I;break w;case"link":var y=nL("link","href",T).get(q+(W.href||""));if(y){for(var D=0;D<y.length;D++)if(I=y[D],I.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&I.getAttribute("rel")===(W.rel==null?null:W.rel)&&I.getAttribute("title")===(W.title==null?null:W.title)&&I.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){y.splice(D,1);break $}}I=T.createElement(q),k2(I,q,W),T.head.appendChild(I);break;case"meta":if(y=nL("meta","content",T).get(q+(W.content||""))){for(D=0;D<y.length;D++)if(I=y[D],W1(W.content,"content"),I.getAttribute("content")===(W.content==null?null:""+W.content)&&I.getAttribute("name")===(W.name==null?null:W.name)&&I.getAttribute("property")===(W.property==null?null:W.property)&&I.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&I.getAttribute("charset")===(W.charSet==null?null:W.charSet)){y.splice(D,1);break $}}I=T.createElement(q),k2(I,q,W),T.head.appendChild(I);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+q+'". This is a bug in React.')}I[N2]=w,h0(I),q=I}w.stateNode=q}else oL(T,w.type,w.stateNode);else w.stateNode=rL(T,q,w.memoizedProps);else I!==q?(I===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):I.count--,q===null?oL(T,w.type,w.stateNode):rL(T,q,w.memoizedProps)):q===null&&w.stateNode!==null&&NH(w,w.memoizedProps,W.memoizedProps)}break;case 27:Jw($,w),Yw(w),q&512&&(D5||W===null||G6(W,W.return)),W!==null&&q&4&&NH(w,w.memoizedProps,W.memoizedProps);break;case 5:if(Jw($,w),Yw(w),q&512&&(D5||W===null||G6(W,W.return)),w.flags&32){T=w.stateNode;try{g0(w,yL,T)}catch(I0){C1(w,w.return,I0)}}q&4&&w.stateNode!=null&&(T=w.memoizedProps,NH(w,T,W!==null?W.memoizedProps:T)),q&1024&&(Xg=!0,w.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Jw($,w),Yw(w),q&4){if(w.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");q=w.memoizedProps,W=W!==null?W.memoizedProps:q,T=w.stateNode;try{g0(w,RP,T,W,q)}catch(I0){C1(w,w.return,I0)}}break;case 3:if(T=a6(),az=null,I=h4,h4=SY($.containerInfo),Jw($,w),h4=I,Yw(w),q&4&&W!==null&&W.memoizedState.isDehydrated)try{g0(w,pP,$.containerInfo)}catch(I0){C1(w,w.return,I0)}Xg&&(Xg=!1,dq(w)),$.effectDuration+=$Y(T);break;case 4:q=h4,h4=SY(w.stateNode.containerInfo),Jw($,w),Yw(w),h4=q;break;case 12:q=a6(),Jw($,w),Yw(w),w.stateNode.effectDuration+=JZ(q);break;case 31:Jw($,w),Yw(w),q&4&&(q=w.updateQueue,q!==null&&(w.updateQueue=null,xY(w,q)));break;case 13:Jw($,w),Yw(w),w.child.flags&8192&&w.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(mz=v2()),q&4&&(q=w.updateQueue,q!==null&&(w.updateQueue=null,xY(w,q)));break;case 22:T=w.memoizedState!==null;var V=W!==null&&W.memoizedState!==null,n=G8,L0=D5;if(G8=n||T,D5=L0||V,Jw($,w),D5=L0,G8=n,V&&!T&&!n&&!L0&&(w.mode&w1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&aJ(w,S0,j0),Yw(w),q&8192)w:for($=w.stateNode,$._visibility=T?$._visibility&~EZ:$._visibility|EZ,!T||W===null||V||G8||D5||(s9(w),(w.mode&w1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&s4(w,S0,j0,"Disconnect")),W=null,$=w;;){if($.tag===5||$.tag===26){if(W===null){V=W=$;try{I=V.stateNode,T?g0(V,dP,I):g0(V,uP,V.stateNode,V.memoizedProps)}catch(I0){C1(V,V.return,I0)}}}else if($.tag===6){if(W===null){V=$;try{y=V.stateNode,T?g0(V,jP,y):g0(V,lP,y,V.memoizedProps)}catch(I0){C1(V,V.return,I0)}}}else if($.tag===18){if(W===null){V=$;try{D=V.stateNode,T?g0(V,DP,D):g0(V,EP,V.stateNode)}catch(I0){C1(V,V.return,I0)}}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===w)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===w)break w;for(;$.sibling===null;){if($.return===null||$.return===w)break w;W===$&&(W=null),$=$.return}W===$&&(W=null),$.sibling.return=$.return,$=$.sibling}q&4&&(q=w.updateQueue,q!==null&&(W=q.retryQueue,W!==null&&(q.retryQueue=null,xY(w,W))));break;case 19:Jw($,w),Yw(w),q&4&&(q=w.updateQueue,q!==null&&(w.updateQueue=null,xY(w,q)));break;case 30:break;case 21:break;default:Jw($,w),Yw(w)}(w.mode&w1)!==l0&&0<=S0&&0<=j0&&((N5||0.05<Q5)&&t4(w,S0,j0,Q5,J5),w.alternate===null&&w.return!==null&&w.return.alternate!==null&&0.05<j0-S0&&(fq(w.return.alternate,w.return)||s4(w,S0,j0,"Mount"))),xw(X),$6(Y),J5=B,N5=H}function Yw(w){var $=w.flags;if($&2){try{g0(w,vP,w)}catch(X){C1(w,w.return,X)}w.flags&=-3}$&4096&&(w.flags&=-4097)}function dq(w){if(w.subtreeFlags&1024)for(w=w.child;w!==null;){var $=w;dq($),$.tag===5&&$.flags&1024&&$.stateNode.reset(),w=w.sibling}}function B6(w,$){if($.subtreeFlags&8772)for($=$.child;$!==null;)Vq(w,$.alternate,$),$=$.sibling}function jq(w){var $=Mw(),X=w6(),Y=Z6(),B=X6();switch(w.tag){case 0:case 11:case 14:case 15:FH(w,w.return,Dw),s9(w);break;case 1:G6(w,w.return);var H=w.stateNode;typeof H.componentWillUnmount==="function"&&Cq(w,w.return,H),s9(w);break;case 27:g0(w,OZ,w.stateNode);case 26:case 5:G6(w,w.return),s9(w);break;case 22:w.memoizedState===null&&s9(w);break;case 30:s9(w);break;default:s9(w)}(w.mode&w1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<Q5)&&t4(w,S0,j0,Q5,J5),xw($),$6(X),J5=Y,N5=B}function s9(w){for(w=w.child;w!==null;)jq(w),w=w.sibling}function Eq(w,$,X,Y){var B=Mw(),H=w6(),W=Z6(),q=X6(),T=X.flags;switch(X.tag){case 0:case 11:case 15:v6(w,X,Y),_q(X,Dw);break;case 1:if(v6(w,X,Y),$=X.stateNode,typeof $.componentDidMount==="function"&&g0(X,cQ,X,$),$=X.updateQueue,$!==null){w=X.stateNode;try{g0(X,pm,$,w)}catch(I){C1(X,X.return,I)}}Y&&T&64&&Aq(X),UZ(X,X.return);break;case 27:Pq(X);case 26:case 5:v6(w,X,Y),Y&&$===null&&T&4&&xq(X),UZ(X,X.return);break;case 12:if(Y&&T&4){T=a6(),v6(w,X,Y),Y=X.stateNode,Y.effectDuration+=JZ(T);try{g0(X,Mq,X,$,u8,Y.effectDuration)}catch(I){C1(X,X.return,I)}}else v6(w,X,Y);break;case 31:v6(w,X,Y),Y&&T&4&&yq(w,X);break;case 13:v6(w,X,Y),Y&&T&4&&Sq(w,X);break;case 22:X.memoizedState===null&&v6(w,X,Y),UZ(X,X.return);break;case 30:break;default:v6(w,X,Y)}(X.mode&w1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<Q5)&&t4(X,S0,j0,Q5,J5),xw(B),$6(H),J5=W,N5=q}function v6(w,$,X){X=X&&($.subtreeFlags&8772)!==0;for($=$.child;$!==null;)Eq(w,$.alternate,$,X),$=$.sibling}function _H(w,$){var X=null;w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(X=w.memoizedState.cachePool.pool),w=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(w=$.memoizedState.cachePool.pool),w!==X&&(w!=null&&i9(w),X!=null&&XZ(X))}function OH(w,$){w=null,$.alternate!==null&&(w=$.alternate.memoizedState.cache),$=$.memoizedState.cache,$!==w&&(i9($),w!=null&&XZ(w))}function M4(w,$,X,Y,B){if($.subtreeFlags&10256||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child))for($=$.child;$!==null;){var H=$.sibling;uq(w,$,X,Y,H!==null?H.actualStartTime:B),$=H}}function uq(w,$,X,Y,B){var H=Mw(),W=w6(),q=Z6(),T=X6(),I=D8,y=$.flags;switch($.tag){case 0:case 11:case 15:($.mode&w1)!==l0&&0<$.actualStartTime&&($.flags&1)!==0&&iJ($,$.actualStartTime,B,r5,X),M4(w,$,X,Y,B),y&2048&&Oq($,i2|G4);break;case 1:($.mode&w1)!==l0&&0<$.actualStartTime&&(($.flags&128)!==0?Bv($,$.actualStartTime,B,[]):($.flags&1)!==0&&iJ($,$.actualStartTime,B,r5,X)),M4(w,$,X,Y,B);break;case 3:var D=a6(),V=r5;r5=$.alternate!==null&&$.alternate.memoizedState.isDehydrated&&($.flags&256)===0,M4(w,$,X,Y,B),r5=V,y&2048&&(X=null,$.alternate!==null&&(X=$.alternate.memoizedState.cache),Y=$.memoizedState.cache,Y!==X&&(i9(Y),X!=null&&XZ(X))),w.passiveEffectDuration+=$Y(D);break;case 12:if(y&2048){y=a6(),M4(w,$,X,Y,B),w=$.stateNode,w.passiveEffectDuration+=JZ(y);try{g0($,BP,$,$.alternate,u8,w.passiveEffectDuration)}catch(n){C1($,$.return,n)}}else M4(w,$,X,Y,B);break;case 31:y=r5,D=$.alternate!==null?$.alternate.memoizedState:null,V=$.memoizedState,D!==null&&V===null?(V=$.deletions,V!==null&&0<V.length&&V[0].tag===18?(r5=!1,D=D.hydrationErrors,D!==null&&Bv($,$.actualStartTime,B,D)):r5=!0):r5=!1,M4(w,$,X,Y,B),r5=y;break;case 13:y=r5,D=$.alternate!==null?$.alternate.memoizedState:null,V=$.memoizedState,D===null||D.dehydrated===null||V!==null&&V.dehydrated!==null?r5=!1:(V=$.deletions,V!==null&&0<V.length&&V[0].tag===18?(r5=!1,D=D.hydrationErrors,D!==null&&Bv($,$.actualStartTime,B,D)):r5=!0),M4(w,$,X,Y,B),r5=y;break;case 23:break;case 22:V=$.stateNode,D=$.alternate,$.memoizedState!==null?V._visibility&s6?M4(w,$,X,Y,B):qZ(w,$,X,Y,B):V._visibility&s6?M4(w,$,X,Y,B):(V._visibility|=s6,K3(w,$,X,Y,($.subtreeFlags&10256)!==0||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child),B),($.mode&w1)===l0||r5||(w=$.actualStartTime,0<=w&&0.05<B-w&&aJ($,w,B),0<=S0&&0<=j0&&0.05<j0-S0&&aJ($,S0,j0))),y&2048&&_H(D,$);break;case 24:M4(w,$,X,Y,B),y&2048&&OH($.alternate,$);break;default:M4(w,$,X,Y,B)}if(($.mode&w1)!==l0){if(w=!r5&&$.alternate===null&&$.return!==null&&$.return.alternate!==null)X=$.actualStartTime,0<=X&&0.05<B-X&&s4($,X,B,"Mount");0<=S0&&0<=j0&&((N5||0.05<Q5)&&t4($,S0,j0,Q5,J5),w&&0.05<j0-S0&&s4($,S0,j0,"Mount"))}xw(H),$6(W),J5=q,N5=T,D8=I}function K3(w,$,X,Y,B,H){B=B&&(($.subtreeFlags&10256)!==0||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child));for($=$.child;$!==null;){var W=$.sibling;lq(w,$,X,Y,B,W!==null?W.actualStartTime:H),$=W}}function lq(w,$,X,Y,B,H){var W=Mw(),q=w6(),T=Z6(),I=X6(),y=D8;B&&($.mode&w1)!==l0&&0<$.actualStartTime&&($.flags&1)!==0&&iJ($,$.actualStartTime,H,r5,X);var D=$.flags;switch($.tag){case 0:case 11:case 15:K3(w,$,X,Y,B,H),Oq($,i2);break;case 23:break;case 22:var V=$.stateNode;$.memoizedState!==null?V._visibility&s6?K3(w,$,X,Y,B,H):qZ(w,$,X,Y,H):(V._visibility|=s6,K3(w,$,X,Y,B,H)),B&&D&2048&&_H($.alternate,$);break;case 24:K3(w,$,X,Y,B,H),B&&D&2048&&OH($.alternate,$);break;default:K3(w,$,X,Y,B,H)}($.mode&w1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<Q5)&&t4($,S0,j0,Q5,J5),xw(W),$6(q),J5=T,N5=I,D8=y}function qZ(w,$,X,Y,B){if($.subtreeFlags&10256||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child))for(var H=$.child;H!==null;){$=H.sibling;var W=w,q=X,T=Y,I=$!==null?$.actualStartTime:B,y=D8;(H.mode&w1)!==l0&&0<H.actualStartTime&&(H.flags&1)!==0&&iJ(H,H.actualStartTime,I,r5,q);var D=H.flags;switch(H.tag){case 22:qZ(W,H,q,T,I),D&2048&&_H(H.alternate,H);break;case 24:qZ(W,H,q,T,I),D&2048&&OH(H.alternate,H);break;default:qZ(W,H,q,T,I)}D8=y,H=$}}function U3(w,$,X){if(w.subtreeFlags&GX)for(w=w.child;w!==null;)cq(w,$,X),w=w.sibling}function cq(w,$,X){switch(w.tag){case 26:U3(w,$,X),w.flags&GX&&w.memoizedState!==null&&eP(X,h4,w.memoizedState,w.memoizedProps);break;case 5:U3(w,$,X);break;case 3:case 4:var Y=h4;h4=SY(w.stateNode.containerInfo),U3(w,$,X),h4=Y;break;case 22:w.memoizedState===null&&(Y=w.alternate,Y!==null&&Y.memoizedState!==null?(Y=GX,GX=16777216,U3(w,$,X),GX=Y):U3(w,$,X));break;default:U3(w,$,X)}}function aq(w){var $=w.alternate;if($!==null&&(w=$.child,w!==null)){$.child=null;do $=w.sibling,w.sibling=null,w=$;while(w!==null)}}function LZ(w){var $=w.deletions;if((w.flags&16)!==0){if($!==null)for(var X=0;X<$.length;X++){var Y=$[X],B=Mw();Q2=Y,rq(Y,w),(Y.mode&w1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&s4(Y,S0,j0,"Unmount"),xw(B)}aq(w)}if(w.subtreeFlags&10256)for(w=w.child;w!==null;)iq(w),w=w.sibling}function iq(w){var $=Mw(),X=w6(),Y=Z6(),B=X6();switch(w.tag){case 0:case 11:case 15:LZ(w),w.flags&2048&&kH(w,w.return,i2|G4);break;case 3:var H=a6();LZ(w),w.stateNode.passiveEffectDuration+=$Y(H);break;case 12:H=a6(),LZ(w),w.stateNode.passiveEffectDuration+=JZ(H);break;case 22:H=w.stateNode,w.memoizedState!==null&&H._visibility&s6&&(w.return===null||w.return.tag!==13)?(H._visibility&=~s6,mY(w),(w.mode&w1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&s4(w,S0,j0,"Disconnect")):LZ(w);break;default:LZ(w)}(w.mode&w1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<Q5)&&t4(w,S0,j0,Q5,J5),xw($),$6(X),N5=B,J5=Y}function mY(w){var $=w.deletions;if((w.flags&16)!==0){if($!==null)for(var X=0;X<$.length;X++){var Y=$[X],B=Mw();Q2=Y,rq(Y,w),(Y.mode&w1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&s4(Y,S0,j0,"Unmount"),xw(B)}aq(w)}for(w=w.child;w!==null;)pq(w),w=w.sibling}function pq(w){var $=Mw(),X=w6(),Y=Z6(),B=X6();switch(w.tag){case 0:case 11:case 15:kH(w,w.return,i2),mY(w);break;case 22:var H=w.stateNode;H._visibility&s6&&(H._visibility&=~s6,mY(w));break;default:mY(w)}(w.mode&w1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<Q5)&&t4(w,S0,j0,Q5,J5),xw($),$6(X),N5=B,J5=Y}function rq(w,$){for(;Q2!==null;){var X=Q2,Y=X,B=$,H=Mw(),W=w6(),q=Z6(),T=X6();switch(Y.tag){case 0:case 11:case 15:kH(Y,B,i2);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(B=Y.memoizedState.cachePool.pool,B!=null&&i9(B));break;case 24:XZ(Y.memoizedState.cache)}if((Y.mode&w1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<Q5)&&t4(Y,S0,j0,Q5,J5),xw(H),$6(W),N5=T,J5=q,Y=X.child,Y!==null)Y.return=X,Q2=Y;else w:for(X=w;Q2!==null;){if(Y=Q2,H=Y.sibling,W=Y.return,hq(Y),Y===X){Q2=null;break w}if(H!==null){H.return=W,Q2=H;break w}Q2=W}}}function gP(){hV.forEach(function(w){return w()})}function nq(){var w=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return w||Y0.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),w}function Pw(w){if((F1&n5)!==g2&&Z1!==0)return Z1&-Z1;var $=Y0.T;return $!==null?($._updatedFibers||($._updatedFibers=new Set),$._updatedFibers.add(w),VH()):c()}function oq(){if(Bw===0)if((Z1&536870912)===0||K1){var w=nY;nY<<=1,(nY&3932160)===0&&(nY=262144),Bw=w}else Bw=536870912;return w=Sw.current,w!==null&&(w.flags|=32),Bw}function k5(w,$,X){if($$&&console.error("useInsertionEffect must not schedule updates."),Wg&&(hz=!0),w===u1&&(V1===g7||V1===b7)||w.cancelPendingCommit!==null)L3(w,0),m8(w,Z1,Bw,!1);if(r4(w,X),(F1&n5)!==g2&&w===u1){if(W6)switch($.tag){case 0:case 11:case 15:w=Y1&&E(Y1)||"Unknown",IN.has(w)||(IN.add(w),$=E($)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",$,w,w));break;case 1:TN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),TN=!0)}}else U6&&nw(w,$,X),TP($),w===u1&&((F1&n5)===g2&&(s8|=X),g5===r8&&m8(w,Z1,Bw,!1)),H6(w)}function sq(w,$,X){if((F1&(n5|dw))!==g2)throw Error("Should not already be working.");if(Z1!==0&&Y1!==null){var Y=Y1,B=v2();switch(Kk){case HX:case g7:var H=pZ;r1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",H,B,ew,void 0,"primary-light")):console.timeStamp("Suspended",H,B,ew,void 0,"primary-light"));break;case b7:H=pZ,r1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",H,B,ew,void 0,"primary-light")):console.timeStamp("Action",H,B,ew,void 0,"primary-light"));break;default:r1&&(Y=B-pZ,3>Y||console.timeStamp("Blocked",pZ,B,ew,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}H=(X=!X&&($&127)===0&&($&w.expiredLanes)===0||I4(w,$))?WP(w,$):CH(w,$,!0);var W=X;do{if(H===B8){e3&&!X&&m8(w,$,0,!1),$=V1,pZ=R5(),Kk=$;break}else{if(Y=v2(),B=w.current.alternate,W&&!bP(B)){Aw($),B=H2,H=Y,!r1||H<=B||(O5?O5.run(console.timeStamp.bind(console,"Teared Render",B,H,g1,v1,"error")):console.timeStamp("Teared Render",B,H,g1,v1,"error")),t9($,Y),H=CH(w,$,!1),W=!1;continue}if(H===Q7){if(W=$,w.errorRecoveryDisabledLanes&W)var q=0;else q=w.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){Aw($),vv(H2,Y,$,O5),t9($,Y),$=q;w:{Y=w,H=W,W=gX;var T=Y.current.memoizedState.isDehydrated;if(T&&(L3(Y,q).flags|=256),q=CH(Y,q,!1),q!==Q7){if(zg&&!T){Y.errorRecoveryDisabledLanes|=H,s8|=H,H=r8;break w}Y=p2,p2=W,Y!==null&&(p2===null?p2=Y:p2.push.apply(p2,Y))}H=q}if(W=!1,H!==Q7)continue;else Y=v2()}}if(H===vX){Aw($),vv(H2,Y,$,O5),t9($,Y),L3(w,0),m8(w,$,0,!0);break}w:{switch(X=w,H){case B8:case vX:throw Error("Root did not complete. This is a bug in React.");case r8:if(($&4194048)!==$)break;case Az:Aw($),sK(H2,Y,$,O5),t9($,Y),B=$,(B&127)!==0?Qz=Y:(B&4194048)!==0&&(gz=Y),m8(X,$,Bw,!n8);break w;case Q7:p2=null;break;case Oz:case vN:break;default:throw Error("Unknown root exit status.")}if(Y0.actQueue!==null)MH(X,B,$,p2,bX,xz,Bw,s8,W7,H,null,null,H2,Y);else{if(($&62914560)===$&&(W=mz+gN-v2(),10<W)){if(m8(X,$,Bw,!n8),G2(X,0,!0)!==0)break w;R4=$,X.timeoutHandle=PN(tq.bind(null,X,B,p2,bX,xz,$,Bw,s8,W7,n8,H,"Throttled",H2,Y),W);break w}tq(X,B,p2,bX,xz,$,Bw,s8,W7,n8,H,null,H2,Y)}}}break}while(1);H6(w)}function tq(w,$,X,Y,B,H,W,q,T,I,y,D,V,n){w.timeoutHandle=F7;var L0=$.subtreeFlags,I0=null;if(L0&8192||(L0&16785408)===16785408){if(I0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:E6},cq($,H,I0),L0=(H&62914560)===H?mz-v2():(H&4194048)===H?QN-v2():0,L0=wf(I0,L0),L0!==null){R4=H,w.cancelPendingCommit=L0(MH.bind(null,w,$,H,X,Y,B,W,q,T,y,I0,I0.waitingForViewTransition?"Waiting for the previous Animation":0<I0.count?0<I0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":I0.imgCount===1?"Suspended on an Image":0<I0.imgCount?"Suspended on Images":null,V,n)),m8(w,H,W,!I);return}}MH(w,$,H,X,Y,B,W,q,T,y,I0,D,V,n)}function bP(w){for(var $=w;;){var X=$.tag;if((X===0||X===11||X===15)&&$.flags&16384&&(X=$.updateQueue,X!==null&&(X=X.stores,X!==null)))for(var Y=0;Y<X.length;Y++){var B=X[Y],H=B.getSnapshot;B=B.value;try{if(!l2(H(),B))return!1}catch(W){return!1}}if(X=$.child,$.subtreeFlags&16384&&X!==null)X.return=$,$=X;else{if($===w)break;for(;$.sibling===null;){if($.return===null||$.return===w)return!0;$=$.return}$.sibling.return=$.return,$=$.sibling}}return!0}function m8(w,$,X,Y){$&=~Gg,$&=~s8,w.suspendedLanes|=$,w.pingedLanes&=~$,Y&&(w.warmLanes|=$),Y=w.expirationTimes;for(var B=$;0<B;){var H=31-j2(B),W=1<<H;Y[H]=-1,B&=~W}X!==0&&rw(w,X,$)}function q3(){return(F1&(n5|dw))===g2?(NZ(0,!1),!1):!0}function AH(){if(Y1!==null){if(V1===Gw)var w=Y1.return;else w=Y1,tJ(),Sv(w),c3=null,ZX=0,w=Y1;for(;w!==null;)Iq(w.alternate,w),w=w.return;Y1=null}}function t9(w,$){(w&127)!==0&&(l8=$),(w&4194048)!==0&&(N6=$),(w&62914560)!==0&&(bk=$),(w&2080374784)!==0&&(Wk=$)}function L3(w,$){r1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",v1,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",v1,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",v1,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",v1,"primary-light"));var X=H2;if(H2=R5(),Z1!==0&&0<X){if(Aw(Z1),g5===Oz||g5===r8)sK(X,H2,$,O5);else{var Y=H2,B=O5;if(r1&&!(Y<=X)){var H=($&738197653)===$?"tertiary-dark":"primary-dark",W=($&536870912)===$?"Prewarm":($&201326741)===$?"Interrupted Hydration":"Interrupted Render";B?B.run(console.timeStamp.bind(console,W,X,Y,g1,v1,H)):console.timeStamp(W,X,Y,g1,v1,H)}}t9(Z1,H2)}if(X=O5,O5=null,($&127)!==0){O5=cZ,B=0<=k6&&k6<l8?l8:k6,Y=0<=X7&&X7<l8?l8:X7,H=0<=Y?Y:0<=B?B:H2,0<=Qz?(Aw(2),tK(Qz,H,$,X)):(bz&127)!==0&&(Aw(2),$Z(l8,H,X8)),X=B;var q=Y,T=aZ,I=0<E3,y=c8===lZ,D=c8===Hz;if(B=H2,Y=cZ,H=dQ,W=jQ,r1){if(g1="Blocking",0<X?X>B&&(X=B):X=B,0<q?q>X&&(q=X):q=X,T!==null&&X>q){var V=I?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+T,q,X,g1,v1,V)):console.timeStamp(I?"Consecutive":"Event: "+T,q,X,g1,v1,V)}B>X&&(q=y?"error":($&738197653)===$?"tertiary-light":"primary-light",y=D?"Promise Resolved":y?"Cascading Update":5<B-X?"Update Blocked":"Update",D=[],W!=null&&D.push(["Component name",W]),H!=null&&D.push(["Method name",H]),X={start:X,end:B,detail:{devtools:{properties:D,track:g1,trackGroup:v1,color:q}}},Y?Y.run(performance.measure.bind(performance,y,X)):performance.measure(y,X))}k6=-1.1,c8=0,jQ=dQ=null,Qz=-1.1,E3=X7,X7=-1.1,l8=R5()}if(($&4194048)!==0&&(O5=iZ,B=0<=Z8&&Z8<N6?N6:Z8,X=0<=Y4&&Y4<N6?N6:Y4,Y=0<=a8&&a8<N6?N6:a8,H=0<=Y?Y:0<=X?X:H2,0<=gz?(Aw(256),tK(gz,H,$,O5)):(bz&4194048)!==0&&(Aw(256),$Z(N6,H,X8)),D=Y,q=J7,T=0<i8,I=EQ===Hz,H=H2,Y=iZ,W=Qk,y=gk,r1&&(g1="Transition",0<X?X>H&&(X=H):X=H,0<B?B>X&&(B=X):B=X,0<D?D>B&&(D=B):D=B,B>D&&q!==null&&(V=T?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+q,D,B,g1,v1,V)):console.timeStamp(T?"Consecutive":"Event: "+q,D,B,g1,v1,V)),X>B&&(Y?Y.run(console.timeStamp.bind(console,"Action",B,X,g1,v1,"primary-dark")):console.timeStamp("Action",B,X,g1,v1,"primary-dark")),H>X&&(B=I?"Promise Resolved":5<H-X?"Update Blocked":"Update",D=[],y!=null&&D.push(["Component name",y]),W!=null&&D.push(["Method name",W]),X={start:X,end:H,detail:{devtools:{properties:D,track:g1,trackGroup:v1,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,B,X)):performance.measure(B,X))),Y4=Z8=-1.1,EQ=0,gz=-1.1,i8=a8,a8=-1.1,N6=R5()),($&62914560)!==0&&(bz&62914560)!==0&&(Aw(4194304),$Z(bk,H2,X8)),($&2080374784)!==0&&(bz&2080374784)!==0&&(Aw(268435456),$Z(Wk,H2,X8)),X=w.timeoutHandle,X!==F7&&(w.timeoutHandle=F7,pV(X)),X=w.cancelPendingCommit,X!==null&&(w.cancelPendingCommit=null,X()),R4=0,AH(),u1=w,Y1=X=u6(w.current,null),Z1=$,V1=Gw,jw=null,n8=!1,e3=I4(w,$),zg=!1,g5=B8,W7=Bw=Gg=s8=o8=0,p2=gX=null,xz=!1,($&8)!==0&&($|=$&32),Y=w.entangledLanes,Y!==0)for(w=w.entanglements,Y&=$;0<Y;)B=31-j2(Y),H=1<<B,$|=w[B],Y&=~H;return I6=$,pJ(),w=Yk(),1000<w-Jk&&(Y0.recentlyCreatedOwnerStacks=0,Jk=w),f4.discardPendingWarnings(),X}function eq(w,$){a0=null,Y0.H=zX,Y0.getCurrentStack=null,W6=!1,hw=null,$===l3||$===qz?($=kU(),V1=HX):$===aQ?($=kU(),V1=HN):V1=$===$g?Yg:$!==null&&typeof $==="object"&&typeof $.then==="function"?QX:Cz,jw=$;var X=Y1;X===null?(g5=vX,IY(w,Cw($,w.current))):X.mode&w1&&_v(X)}function wL(){var w=Sw.current;return w===null?!0:(Z1&4194048)===Z1?z4===null?!0:!1:(Z1&62914560)===Z1||(Z1&536870912)!==0?w===z4:!1}function $L(){var w=Y0.H;return Y0.H=zX,w===null?zX:w}function ZL(){var w=Y0.A;return Y0.A=VV,w}function PY(w){O5===null&&(O5=w._debugTask==null?null:w._debugTask)}function fY(){g5=r8,n8||(Z1&4194048)!==Z1&&Sw.current!==null||(e3=!0),(o8&134217727)===0&&(s8&134217727)===0||u1===null||m8(u1,Z1,Bw,!1)}function CH(w,$,X){var Y=F1;F1|=n5;var B=$L(),H=ZL();if(u1!==w||Z1!==$){if(U6){var W=w.memoizedUpdaters;0<W.size&&(kZ(w,Z1),W.clear()),O4(w,$)}bX=null,L3(w,$)}$=!1,W=g5;w:do try{if(V1!==Gw&&Y1!==null){var q=Y1,T=jw;switch(V1){case Yg:AH(),W=Az;break w;case HX:case g7:case b7:case QX:Sw.current===null&&($=!0);var I=V1;if(V1=Gw,jw=null,F3(w,q,T,I),X&&e3){W=B8;break w}break;default:I=V1,V1=Gw,jw=null,F3(w,q,T,I)}}XL(),W=g5;break}catch(y){eq(w,y)}while(1);return $&&w.shellSuspendCounter++,tJ(),F1=Y,Y0.H=B,Y0.A=H,Y1===null&&(u1=null,Z1=0,pJ()),W}function XL(){for(;Y1!==null;)JL(Y1)}function WP(w,$){var X=F1;F1|=n5;var Y=$L(),B=ZL();if(u1!==w||Z1!==$){if(U6){var H=w.memoizedUpdaters;0<H.size&&(kZ(w,Z1),H.clear()),O4(w,$)}bX=null,Pz=v2()+bN,L3(w,$)}else e3=I4(w,$);w:do try{if(V1!==Gw&&Y1!==null)$:switch($=Y1,H=jw,V1){case Cz:V1=Gw,jw=null,F3(w,$,H,Cz);break;case g7:case b7:if(LU(H)){V1=Gw,jw=null,YL($);break}$=function(){V1!==g7&&V1!==b7||u1!==w||(V1=Mz),H6(w)},H.then($,$);break w;case HX:V1=Mz;break w;case HN:V1=Jg;break w;case Mz:LU(H)?(V1=Gw,jw=null,YL($)):(V1=Gw,jw=null,F3(w,$,H,Mz));break;case Jg:var W=null;switch(Y1.tag){case 26:W=Y1.memoizedState;case 5:case 27:var q=Y1;if(W?sL(W):q.stateNode.complete){V1=Gw,jw=null;var T=q.sibling;if(T!==null)Y1=T;else{var I=q.return;I!==null?(Y1=I,VY(I)):Y1=null}break $}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}V1=Gw,jw=null,F3(w,$,H,Jg);break;case QX:V1=Gw,jw=null,F3(w,$,H,QX);break;case Yg:AH(),g5=Az;break w;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y0.actQueue!==null?XL():KP();break}catch(y){eq(w,y)}while(1);if(tJ(),Y0.H=Y,Y0.A=B,F1=X,Y1!==null)return B8;return u1=null,Z1=0,pJ(),g5}function KP(){for(;Y1!==null&&!bf();)JL(Y1)}function JL(w){var $=w.alternate;(w.mode&w1)!==l0?(Iv(w),$=g0(w,qH,$,w,I6),_v(w)):$=g0(w,qH,$,w,I6),w.memoizedProps=w.pendingProps,$===null?VY(w):Y1=$}function YL(w){var $=g0(w,UP,w);w.memoizedProps=w.pendingProps,$===null?VY(w):Y1=$}function UP(w){var $=w.alternate,X=(w.mode&w1)!==l0;switch(X&&Iv(w),w.tag){case 15:case 0:$=Uq($,w,w.pendingProps,w.type,void 0,Z1);break;case 11:$=Uq($,w,w.pendingProps,w.type.render,w.ref,Z1);break;case 5:Sv(w);default:Iq($,w),w=Y1=JU(w,I6),$=qH($,w,I6)}return X&&_v(w),$}function F3(w,$,X,Y){tJ(),Sv($),c3=null,ZX=0;var B=$.return;try{if(wP(w,B,$,X,Z1)){g5=vX,IY(w,Cw(X,w.current)),Y1=null;return}}catch(H){if(B!==null)throw Y1=B,H;g5=vX,IY(w,Cw(X,w.current)),Y1=null;return}if($.flags&32768){if(K1||Y===Cz)w=!0;else if(e3||(Z1&536870912)!==0)w=!1;else if(n8=w=!0,Y===g7||Y===b7||Y===HX||Y===QX)Y=Sw.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);zL($,w)}else VY($)}function VY(w){var $=w;do{if(($.flags&32768)!==0){zL($,n8);return}var X=$.alternate;if(w=$.return,Iv($),X=g0($,XP,X,$,I6),($.mode&w1)!==l0&&bU($),X!==null){Y1=X;return}if($=$.sibling,$!==null){Y1=$;return}Y1=$=w}while($!==null);g5===B8&&(g5=vN)}function zL(w,$){do{var X=JP(w.alternate,w);if(X!==null){X.flags&=32767,Y1=X;return}if((w.mode&w1)!==l0){bU(w),X=w.actualDuration;for(var Y=w.child;Y!==null;)X+=Y.actualDuration,Y=Y.sibling;w.actualDuration=X}if(X=w.return,X!==null&&(X.flags|=32768,X.subtreeFlags=0,X.deletions=null),!$&&(w=w.sibling,w!==null)){Y1=w;return}Y1=w=X}while(w!==null);g5=Az,Y1=null}function MH(w,$,X,Y,B,H,W,q,T,I,y,D,V,n){w.cancelPendingCommit=null;do FZ();while(j5!==e8);if(f4.flushLegacyContextWarning(),f4.flushPendingUnsafeLifecycleWarnings(),(F1&(n5|dw))!==g2)throw Error("Should not already be working.");if(Aw(X),I===Q7?vv(V,n,X,O5):Y!==null?Em(V,n,X,Y,$!==null&&$.alternate!==null&&$.alternate.memoizedState.isDehydrated&&($.flags&256)!==0,O5):jm(V,n,X,O5),$!==null){if(X===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),$===w.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(H=$.lanes|$.childLanes,H|=hQ,J3(w,X,H,W,q,T),w===u1&&(Y1=u1=null,Z1=0),w$=$,w9=w,R4=X,Hg=H,gg=B,FN=Y,Qg=n,kN=D,y4=fz,NN=null,$.actualDuration!==0||($.subtreeFlags&10256)!==0||($.flags&10256)!==0?(w.callbackNode=null,w.callbackPriority=0,NP(O3,function(){return FX=window.event,y4===fz&&(y4=vg),QL(),null})):(w.callbackNode=null,w.callbackPriority=0),$8=null,u8=R5(),D!==null&&um(n,u8,D,O5),Y=($.flags&13878)!==0,($.subtreeFlags&13878)!==0||Y){Y=Y0.T,Y0.T=null,B=M1.p,M1.p=Rw,W=F1,F1|=dw;try{HP(w,$,X)}finally{F1=W,M1.p=B,Y0.T=Y}}j5=KN,GL(),BL(),vL()}}function GL(){if(j5===KN){j5=e8;var w=w9,$=w$,X=R4,Y=($.flags&13878)!==0;if(($.subtreeFlags&13878)!==0||Y){Y=Y0.T,Y0.T=null;var B=M1.p;M1.p=Rw;var H=F1;F1|=dw;try{s3=X,t3=w,ZY(),Dq($,w),t3=s3=null,X=Ig;var W=rK(w.containerInfo),q=X.focusedElem,T=X.selectionRange;if(W!==q&&q&&q.ownerDocument&&pK(q.ownerDocument.documentElement,q)){if(T!==null&&zv(q)){var{start:I,end:y}=T;if(y===void 0&&(y=I),"selectionStart"in q)q.selectionStart=I,q.selectionEnd=Math.min(y,q.value.length);else{var D=q.ownerDocument||document,V=D&&D.defaultView||window;if(V.getSelection){var n=V.getSelection(),L0=q.textContent.length,I0=Math.min(T.start,L0),a1=T.end===void 0?I0:Math.min(T.end,L0);!n.extend&&I0>a1&&(W=a1,a1=I0,I0=W);var q1=iK(q,I0),f=iK(q,a1);if(q1&&f&&(n.rangeCount!==1||n.anchorNode!==q1.node||n.anchorOffset!==q1.offset||n.focusNode!==f.node||n.focusOffset!==f.offset)){var h=D.createRange();h.setStart(q1.node,q1.offset),n.removeAllRanges(),I0>a1?(n.addRange(h),n.extend(f.node,f.offset)):(h.setEnd(f.node,f.offset),n.addRange(h))}}}}D=[];for(n=q;n=n.parentNode;)n.nodeType===1&&D.push({element:n,left:n.scrollLeft,top:n.scrollTop});typeof q.focus==="function"&&q.focus();for(q=0;q<D.length;q++){var R=D[q];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}rz=!!Tg,Ig=Tg=null}finally{F1=H,M1.p=B,Y0.T=Y}}w.current=$,j5=UN}}function BL(){if(j5===UN){j5=e8;var w=NN;if(w!==null){u8=R5();var $=w8,X=u8;!r1||X<=$||(X8?X8.run(console.timeStamp.bind(console,w,$,X,g1,v1,"secondary-light")):console.timeStamp(w,$,X,g1,v1,"secondary-light"))}w=w9,$=w$,X=R4;var Y=($.flags&8772)!==0;if(($.subtreeFlags&8772)!==0||Y){Y=Y0.T,Y0.T=null;var B=M1.p;M1.p=Rw;var H=F1;F1|=dw;try{s3=X,t3=w,ZY(),Vq(w,$.alternate,$),t3=s3=null}finally{F1=H,M1.p=B,Y0.T=Y}}w=Qg,$=kN,w8=R5(),w=$===null?w:u8,$=w8,X=y4===Bg,Y=O5,$8!==null?eK(w,$,$8,!1,Y):!r1||$<=w||(Y?Y.run(console.timeStamp.bind(console,X?"Commit Interrupted View Transition":"Commit",w,$,g1,v1,X?"error":"secondary-dark")):console.timeStamp(X?"Commit Interrupted View Transition":"Commit",w,$,g1,v1,X?"error":"secondary-dark")),j5=qN}}function vL(){if(j5===LN||j5===qN){if(j5===LN){var w=w8;w8=R5();var $=w8,X=y4===Bg;!r1||$<=w||(X8?X8.run(console.timeStamp.bind(console,X?"Interrupted View Transition":"Starting Animation",w,$,g1,v1,X?"error":"secondary-light")):console.timeStamp(X?"Interrupted View Transition":"Starting Animation",w,$,g1,v1,X?" error":"secondary-light")),y4!==Bg&&(y4=WN)}j5=e8,Wf(),w=w9;var Y=w$;$=R4,X=FN;var B=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;B?j5=Vz:(j5=e8,w$=w9=null,HL(w,w.pendingLanes),K7=0,KX=null);var H=w.pendingLanes;if(H===0&&(t8=null),B||KL(w),H=O($),Y=Y.stateNode,m2&&typeof m2.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(H){case Rw:var q=gQ;break;case m4:q=bQ;break;case q6:q=O3;break;case sY:q=WQ;break;default:q=O3}m2.onCommitFiberRoot(A3,Y,q,W)}catch(D){K6||(K6=!0,console.error("React instrumentation encountered an error: %o",D))}if(U6&&w.memoizedUpdaters.clear(),gP(),X!==null){W=Y0.T,q=M1.p,M1.p=Rw,Y0.T=null;try{var T=w.onRecoverableError;for(Y=0;Y<X.length;Y++){var I=X[Y],y=qP(I.stack);g0(I.source,T,I.value,y)}}finally{Y0.T=W,M1.p=q}}(R4&3)!==0&&FZ(),H6(w),H=w.pendingLanes,($&261930)!==0&&(H&42)!==0?(Kz=!0,w===bg?WX++:(WX=0,bg=w)):WX=0,B||t9($,w8),NZ(0,!1)}}function qP(w){return w={componentStack:w},Object.defineProperty(w,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),w}function HL(w,$){(w.pooledCacheLanes&=$)===0&&($=w.pooledCache,$!=null&&(w.pooledCache=null,XZ($)))}function FZ(){return GL(),BL(),vL(),QL()}function QL(){if(j5!==Vz)return!1;var w=w9,$=Hg;Hg=0;var X=O(R4),Y=q6===0||q6>X?q6:X;X=Y0.T;var B=M1.p;try{M1.p=Y,Y0.T=null;var H=gg;gg=null,Y=w9;var W=R4;if(j5=e8,w$=w9=null,R4=0,(F1&(n5|dw))!==g2)throw Error("Cannot flush passive effects while already rendering.");Aw(W),Wg=!0,hz=!1;var q=0;if($8=null,q=v2(),y4===WN)$Z(w8,q,X8);else{var T=w8,I=q,y=y4===vg;!r1||I<=T||(O5?O5.run(console.timeStamp.bind(console,y?"Waiting for Paint":"Waiting",T,I,g1,v1,"secondary-light")):console.timeStamp(y?"Waiting for Paint":"Waiting",T,I,g1,v1,"secondary-light"))}T=F1,F1|=dw;var D=Y.current;ZY(),iq(D);var V=Y.current;D=Qg,ZY(),uq(Y,V,W,H,D),KL(Y),F1=T;var n=v2();if(V=q,D=O5,$8!==null?eK(V,n,$8,!0,D):!r1||n<=V||(D?D.run(console.timeStamp.bind(console,"Remaining Effects",V,n,g1,v1,"secondary-dark")):console.timeStamp("Remaining Effects",V,n,g1,v1,"secondary-dark")),t9(W,n),NZ(0,!1),hz?Y===KX?K7++:(K7=0,KX=Y):K7=0,hz=Wg=!1,m2&&typeof m2.onPostCommitFiberRoot==="function")try{m2.onPostCommitFiberRoot(A3,Y)}catch(I0){K6||(K6=!0,console.error("React instrumentation encountered an error: %o",I0))}var L0=Y.current.stateNode;return L0.effectDuration=0,L0.passiveEffectDuration=0,!0}finally{M1.p=B,Y0.T=X,HL(w,$)}}function gL(w,$,X){$=Cw(X,$),WU($),$=zH(w.stateNode,$,2),w=A8(w,$,2),w!==null&&(r4(w,2),H6(w))}function C1(w,$,X){if($$=!1,w.tag===3)gL(w,w,X);else{for(;$!==null;){if($.tag===3){gL($,w,X);return}if($.tag===1){var Y=$.stateNode;if(typeof $.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(t8===null||!t8.has(Y))){w=Cw(X,w),WU(w),X=GH(2),Y=A8($,X,2),Y!==null&&(BH(X,Y,$,w),r4(Y,2),H6(Y));return}}$=$.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
159
-
160
- Error message:
161
-
162
- %s`,X)}}function xH(w,$,X){var Y=w.pingCache;if(Y===null){Y=w.pingCache=new RV;var B=new Set;Y.set($,B)}else B=Y.get($),B===void 0&&(B=new Set,Y.set($,B));B.has(X)||(zg=!0,B.add(X),Y=LP.bind(null,w,$,X),U6&&kZ(w,X),$.then(Y,Y))}function LP(w,$,X){var Y=w.pingCache;Y!==null&&Y.delete($),w.pingedLanes|=w.suspendedLanes&X,w.warmLanes&=~X,(X&127)!==0?0>k6&&(l8=k6=R5(),cZ=vz("Promise Resolved"),c8=Hz):(X&4194048)!==0&&0>Y4&&(N6=Y4=R5(),iZ=vz("Promise Resolved"),EQ=Hz),nq()&&Y0.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
163
-
164
- When testing, code that resolves suspended data should be wrapped into act(...):
165
-
166
- act(() => {
167
- /* finish loading suspended data */
168
- });
169
- /* assert on the output */
170
-
171
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),u1===w&&(Z1&X)===X&&(g5===r8||g5===Oz&&(Z1&62914560)===Z1&&v2()-mz<gN?(F1&n5)===g2&&L3(w,0):Gg|=X,W7===Z1&&(W7=0)),H6(w)}function bL(w,$){$===0&&($=i5()),w=x2(w,$),w!==null&&(r4(w,$),H6(w))}function FP(w){var $=w.memoizedState,X=0;$!==null&&(X=$.retryLane),bL(w,X)}function kP(w,$){var X=0;switch(w.tag){case 31:case 13:var{stateNode:Y,memoizedState:B}=w;B!==null&&(X=B.retryLane);break;case 19:Y=w.stateNode;break;case 22:Y=w.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}Y!==null&&Y.delete($),bL(w,X)}function mH(w,$,X){if(($.subtreeFlags&67117056)!==0)for($=$.child;$!==null;){var Y=w,B=$,H=B.type===aY;H=X||H,B.tag!==22?B.flags&67108864?H&&g0(B,WL,Y,B):mH(Y,B,H):B.memoizedState===null&&(H&&B.flags&8192?g0(B,WL,Y,B):B.subtreeFlags&67108864&&g0(B,mH,Y,B,H)),$=$.sibling}}function WL(w,$){T1(!0);try{jq($),pq($),Eq(w,$.alternate,$,!1),lq(w,$,0,null,!1,0)}finally{T1(!1)}}function KL(w){var $=!0;w.current.mode&(P2|P4)||($=!1),mH(w,w.current,$)}function UL(w){if((F1&n5)===g2){var $=w.tag;if($===3||$===1||$===0||$===11||$===14||$===15){if($=E(w)||"ReactComponent",Rz!==null){if(Rz.has($))return;Rz.add($)}else Rz=new Set([$]);g0(w,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function kZ(w,$){U6&&w.memoizedUpdaters.forEach(function(X){nw(w,X,$)})}function NP(w,$){var X=Y0.actQueue;return X!==null?(X.push($),DV):QQ(w,$)}function TP(w){nq()&&Y0.actQueue===null&&g0(w,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
172
-
173
- When testing, code that causes React state updates should be wrapped into act(...):
174
-
175
- act(() => {
176
- /* fire events that update state */
177
- });
178
- /* assert on the output */
179
-
180
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,E(w))})}function H6(w){w!==Z$&&w.next===null&&(Z$===null?yz=Z$=w:Z$=Z$.next=w),Sz=!0,Y0.actQueue!==null?Ug||(Ug=!0,kL()):Kg||(Kg=!0,kL())}function NZ(w,$){if(!qg&&Sz){qg=!0;do{var X=!1;for(var Y=yz;Y!==null;){if(!$)if(w!==0){var B=Y.pendingLanes;if(B===0)var H=0;else{var{suspendedLanes:W,pingedLanes:q}=Y;H=(1<<31-j2(42|w)+1)-1,H&=B&~(W&~q),H=H&201326741?H&201326741|1:H?H|2:0}H!==0&&(X=!0,FL(Y,H))}else H=Z1,H=G2(Y,Y===u1?H:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==F7),(H&3)===0||I4(Y,H)||(X=!0,FL(Y,H));Y=Y.next}}while(X);qg=!1}}function IP(){FX=window.event,PH()}function PH(){Sz=Ug=Kg=!1;var w=0;$9!==0&&mP()&&(w=$9);for(var $=v2(),X=null,Y=yz;Y!==null;){var B=Y.next,H=qL(Y,$);if(H===0)Y.next=null,X===null?yz=B:X.next=B,B===null&&(Z$=X);else if(X=Y,w!==0||(H&3)!==0)Sz=!0;Y=B}j5!==e8&&j5!==Vz||NZ(w,!1),$9!==0&&($9=0)}function qL(w,$){for(var{suspendedLanes:X,pingedLanes:Y,expirationTimes:B}=w,H=w.pendingLanes&-62914561;0<H;){var W=31-j2(H),q=1<<W,T=B[W];if(T===-1){if((q&X)===0||(q&Y)!==0)B[W]=p$(q,$)}else T<=$&&(w.expiredLanes|=q);H&=~q}if($=u1,X=Z1,X=G2(w,w===$?X:0,w.cancelPendingCommit!==null||w.timeoutHandle!==F7),Y=w.callbackNode,X===0||w===$&&(V1===g7||V1===b7)||w.cancelPendingCommit!==null)return Y!==null&&fH(Y),w.callbackNode=null,w.callbackPriority=0;if((X&3)===0||I4(w,X)){if($=X&-X,$!==w.callbackPriority||Y0.actQueue!==null&&Y!==Lg)fH(Y);else return $;switch(O(X)){case Rw:case m4:X=bQ;break;case q6:X=O3;break;case sY:X=WQ;break;default:X=O3}return Y=LL.bind(null,w),Y0.actQueue!==null?(Y0.actQueue.push(Y),X=Lg):X=QQ(X,Y),w.callbackPriority=$,w.callbackNode=X,$}return Y!==null&&fH(Y),w.callbackPriority=2,w.callbackNode=null,2}function LL(w,$){if(Kz=Wz=!1,FX=window.event,j5!==e8&&j5!==Vz)return w.callbackNode=null,w.callbackPriority=0,null;var X=w.callbackNode;if(y4===fz&&(y4=vg),FZ()&&w.callbackNode!==X)return null;var Y=Z1;if(Y=G2(w,w===u1?Y:0,w.cancelPendingCommit!==null||w.timeoutHandle!==F7),Y===0)return null;return sq(w,Y,$),qL(w,v2()),w.callbackNode!=null&&w.callbackNode===X?LL.bind(null,w):null}function FL(w,$){if(FZ())return null;Wz=Kz,Kz=!1,sq(w,$,!0)}function fH(w){w!==Lg&&w!==null&&gf(w)}function kL(){Y0.actQueue!==null&&Y0.actQueue.push(function(){return PH(),null}),rV(function(){(F1&(n5|dw))!==g2?QQ(gQ,IP):PH()})}function VH(){if($9===0){var w=Y7;w===0&&(w=rY,rY<<=1,(rY&261888)===0&&(rY=256)),$9=w}return $9}function NL(w){if(w==null||typeof w==="symbol"||typeof w==="boolean")return null;if(typeof w==="function")return w;return W1(w,"action"),t$(""+w)}function TL(w,$){var X=$.ownerDocument.createElement("input");return X.name=$.name,X.value=$.value,w.id&&X.setAttribute("form",w.id),$.parentNode.insertBefore(X,$),w=new FormData(w),X.parentNode.removeChild(X),w}function _P(w,$,X,Y,B){if($==="submit"&&X&&X.stateNode===B){var H=NL((B[E2]||null).action),W=Y.submitter;W&&($=($=W[E2]||null)?NL($.formAction):W.getAttribute("formAction"),$!==null&&(H=$,W=null));var q=new Zz("action","action",null,Y,B);w.push({event:q,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if($9!==0){var T=W?TL(B,W):new FormData(B),I={pending:!0,data:T,method:B.method,action:H};Object.freeze(I),ev(X,I,null,T)}}else typeof H==="function"&&(q.preventDefault(),T=W?TL(B,W):new FormData(B),I={pending:!0,data:T,method:B.method,action:H},Object.freeze(I),ev(X,I,H,T))},currentTarget:B}]})}}function hY(w,$,X){w.currentTarget=X;try{$(w)}catch(Y){mQ(Y)}w.currentTarget=null}function IL(w,$){$=($&4)!==0;for(var X=0;X<w.length;X++){var Y=w[X];w:{var B=void 0,H=Y.event;if(Y=Y.listeners,$)for(var W=Y.length-1;0<=W;W--){var q=Y[W],T=q.instance,I=q.currentTarget;if(q=q.listener,T!==B&&H.isPropagationStopped())break w;T!==null?g0(T,hY,H,q,I):hY(H,q,I),B=T}else for(W=0;W<Y.length;W++){if(q=Y[W],T=q.instance,I=q.currentTarget,q=q.listener,T!==B&&H.isPropagationStopped())break w;T!==null?g0(T,hY,H,q,I):hY(H,q,I),B=T}}}}function U1(w,$){Fg.has(w)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',w);var X=$[KQ];X===void 0&&(X=$[KQ]=new Set);var Y=w+"__bubble";X.has(Y)||(_L($,w,2,!1),X.add(Y))}function hH(w,$,X){Fg.has(w)&&!$&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',w);var Y=0;$&&(Y|=4),_L(X,w,Y,$)}function RH(w){if(!w[Dz]){w[Dz]=!0,kF.forEach(function(X){X!=="selectionchange"&&(Fg.has(X)||hH(X,!1,w),hH(X,!0,w))});var $=w.nodeType===9?w:w.ownerDocument;$===null||$[Dz]||($[Dz]=!0,hH("selectionchange",!1,$))}}function _L(w,$,X,Y){switch(XF($)){case Rw:var B=Jf;break;case m4:B=Yf;break;default:B=sH}X=B.bind(null,$,X,w),B=void 0,!kQ||$!=="touchstart"&&$!=="touchmove"&&$!=="wheel"||(B=!0),Y?B!==void 0?w.addEventListener($,X,{capture:!0,passive:B}):w.addEventListener($,X,!0):B!==void 0?w.addEventListener($,X,{passive:B}):w.addEventListener($,X,!1)}function yH(w,$,X,Y,B){var H=Y;if(($&1)===0&&($&2)===0&&Y!==null)w:for(;;){if(Y===null)return;var W=Y.tag;if(W===3||W===4){var q=Y.stateNode.containerInfo;if(q===B)break;if(W===4)for(W=Y.return;W!==null;){var T=W.tag;if((T===3||T===4)&&W.stateNode.containerInfo===B)return;W=W.return}for(;q!==null;){if(W=C0(q),W===null)return;if(T=W.tag,T===5||T===6||T===26||T===27){Y=H=W;continue w}q=q.parentNode}}Y=Y.return}RK(function(){var I=H,y=Jv(X),D=[];w:{var V=Xk.get(w);if(V!==void 0){var n=Zz,L0=w;switch(w){case"keypress":if(uJ(X)===0)break w;case"keydown":case"keyup":n=wV;break;case"focusin":L0="focus",n=_Q;break;case"focusout":L0="blur",n=_Q;break;case"beforeblur":case"afterblur":n=_Q;break;case"click":if(X.button===2)break w;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":n=lF;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":n=Ef;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":n=XV;break;case eF:case wk:case $k:n=cf;break;case Zk:n=YV;break;case"scroll":case"scrollend":n=df;break;case"wheel":n=GV;break;case"copy":case"cut":case"paste":n=pf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":n=aF;break;case"toggle":case"beforetoggle":n=vV}var I0=($&4)!==0,a1=!I0&&(w==="scroll"||w==="scrollend"),q1=I0?V!==null?V+"Capture":null:V;I0=[];for(var f=I,h;f!==null;){var R=f;if(h=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||h===null||q1===null||(R=e$(f,q1),R!=null&&I0.push(TZ(f,R,h))),a1)break;f=f.return}0<I0.length&&(V=new n(V,L0,null,X,y),D.push({event:V,listeners:I0}))}}if(($&7)===0){w:{if(V=w==="mouseover"||w==="pointerover",n=w==="mouseout"||w==="pointerout",V&&X!==VZ&&(L0=X.relatedTarget||X.fromElement)&&(C0(L0)||L0[y8]))break w;if(n||V){if(V=y.window===y?y:(V=y.ownerDocument)?V.defaultView||V.parentWindow:window,n){if(L0=X.relatedTarget||X.toElement,n=I,L0=L0?C0(L0):null,L0!==null&&(a1=x(L0),I0=L0.tag,L0!==a1||I0!==5&&I0!==27&&I0!==6))L0=null}else n=null,L0=I;if(n!==L0){if(I0=lF,R="onMouseLeave",q1="onMouseEnter",f="mouse",w==="pointerout"||w==="pointerover")I0=aF,R="onPointerLeave",q1="onPointerEnter",f="pointer";if(a1=n==null?V:u0(n),h=L0==null?V:u0(L0),V=new I0(R,f+"leave",n,X,y),V.target=a1,V.relatedTarget=h,R=null,C0(y)===I&&(I0=new I0(q1,f+"enter",L0,X,y),I0.target=h,I0.relatedTarget=a1,R=I0),a1=R,n&&L0)$:{I0=OP,q1=n,f=L0,h=0;for(R=q1;R;R=I0(R))h++;R=0;for(var v0=f;v0;v0=I0(v0))R++;for(;0<h-R;)q1=I0(q1),h--;for(;0<R-h;)f=I0(f),R--;for(;h--;){if(q1===f||f!==null&&q1===f.alternate){I0=q1;break $}q1=I0(q1),f=I0(f)}I0=null}else I0=null;n!==null&&OL(D,V,n,I0,!1),L0!==null&&a1!==null&&OL(D,a1,L0,I0,!0)}}}w:{if(V=I?u0(I):window,n=V.nodeName&&V.nodeName.toLowerCase(),n==="select"||n==="input"&&V.type==="file")var T0=uK;else if(jK(V))if(sF)T0=Sm;else{T0=Rm;var i0=hm}else n=V.nodeName,!n||n.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?I&&s$(I.elementType)&&(T0=uK):T0=ym;if(T0&&(T0=T0(w,I))){EK(D,T0,X,y);break w}i0&&i0(w,V,I),w==="focusout"&&I&&V.type==="number"&&I.memoizedProps.value!=null&&tB(V,"number",V.value)}switch(i0=I?u0(I):window,w){case"focusin":if(jK(i0)||i0.contentEditable==="true")V3=i0,AQ=I,jZ=null;break;case"focusout":jZ=AQ=V3=null;break;case"mousedown":CQ=!0;break;case"contextmenu":case"mouseup":case"dragend":CQ=!1,nK(D,X,y);break;case"selectionchange":if(bV)break;case"keydown":case"keyup":nK(D,X,y)}var y0;if(OQ)w:{switch(w){case"compositionstart":var P0="onCompositionStart";break w;case"compositionend":P0="onCompositionEnd";break w;case"compositionupdate":P0="onCompositionUpdate";break w}P0=void 0}else f3?DK(w,X)&&(P0="onCompositionEnd"):w==="keydown"&&X.keyCode===iF&&(P0="onCompositionStart");if(P0&&(pF&&X.locale!=="ko"&&(f3||P0!=="onCompositionStart"?P0==="onCompositionEnd"&&f3&&(y0=yK()):(S8=y,NQ=("value"in S8)?S8.value:S8.textContent,f3=!0)),i0=RY(I,P0),0<i0.length&&(P0=new cF(P0,w,null,X,y),D.push({event:P0,listeners:i0}),y0?P0.data=y0:(y0=dK(X),y0!==null&&(P0.data=y0)))),y0=QV?mm(w,X):Pm(w,X))P0=RY(I,"onBeforeInput"),0<P0.length&&(i0=new nf("onBeforeInput","beforeinput",null,X,y),D.push({event:i0,listeners:P0}),i0.data=y0);_P(D,w,I,X,y)}IL(D,$)})}function TZ(w,$,X){return{instance:w,listener:$,currentTarget:X}}function RY(w,$){for(var X=$+"Capture",Y=[];w!==null;){var B=w,H=B.stateNode;if(B=B.tag,B!==5&&B!==26&&B!==27||H===null||(B=e$(w,X),B!=null&&Y.unshift(TZ(w,B,H)),B=e$(w,$),B!=null&&Y.push(TZ(w,B,H))),w.tag===3)return Y;w=w.return}return[]}function OP(w){if(w===null)return null;do w=w.return;while(w&&w.tag!==5&&w.tag!==27);return w?w:null}function OL(w,$,X,Y,B){for(var H=$._reactName,W=[];X!==null&&X!==Y;){var q=X,T=q.alternate,I=q.stateNode;if(q=q.tag,T!==null&&T===Y)break;q!==5&&q!==26&&q!==27||I===null||(T=I,B?(I=e$(X,H),I!=null&&W.unshift(TZ(X,I,T))):B||(I=e$(X,H),I!=null&&W.push(TZ(X,I,T)))),X=X.return}W.length!==0&&w.push({event:$,listeners:W})}function SH(w,$){Am(w,$),w!=="input"&&w!=="textarea"&&w!=="select"||$==null||$.value!==null||EF||(EF=!0,w==="select"&&$.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",w):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",w));var X={registrationNameDependencies:e9,possibleRegistrationNames:UQ};s$(w)||typeof $.is==="string"||Mm(w,$,X),$.contentEditable&&!$.suppressContentEditableWarning&&$.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function B2(w,$,X,Y){$!==X&&(X=P8(X),P8($)!==X&&(Y[w]=$))}function AP(w,$,X){$.forEach(function(Y){X[ML(Y)]=Y==="style"?dH(w):w.getAttribute(Y)})}function Q6(w,$){$===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",w,w,w):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",w,typeof $)}function AL(w,$){return w=w.namespaceURI===eY||w.namespaceURI===M3?w.ownerDocument.createElementNS(w.namespaceURI,w.tagName):w.ownerDocument.createElement(w.tagName),w.innerHTML=$,w.innerHTML}function P8(w){return N1(w)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",p1(w)),_1(w)),(typeof w==="string"?w:""+w).replace(dV,`
181
- `).replace(jV,"")}function CL(w,$){return $=P8($),P8(w)===$?!0:!1}function j1(w,$,X,Y,B,H){switch(X){case"children":if(typeof Y==="string")EJ(Y,$,!1),$==="body"||$==="textarea"&&Y===""||o$(w,Y);else if(typeof Y==="number"||typeof Y==="bigint")EJ(""+Y,$,!1),$!=="body"&&o$(w,""+Y);break;case"className":ow(w,"class",Y);break;case"tabIndex":ow(w,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":ow(w,X,Y);break;case"style":fK(w,Y,H);break;case"data":if($!=="object"){ow(w,"data",Y);break}case"src":case"href":if(Y===""&&($!=="a"||X!=="href")){X==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',X,X):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',X,X),w.removeAttribute(X);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){w.removeAttribute(X);break}W1(Y,X),Y=t$(""+Y),w.setAttribute(X,Y);break;case"action":case"formAction":if(Y!=null&&($==="form"?X==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(B.encType==null&&B.method==null||Ez||(Ez=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),B.target==null||jz||(jz=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):$==="input"||$==="button"?X==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):$!=="input"||B.type==="submit"||B.type==="image"||dz?$!=="button"||B.type==null||B.type==="submit"||dz?typeof Y==="function"&&(B.name==null||AN||(AN=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),B.formEncType==null&&B.formMethod==null||Ez||(Ez=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),B.formTarget==null||jz||(jz=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(dz=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(dz=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):X==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof Y==="function"){w.setAttribute(X,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof H==="function"&&(X==="formAction"?($!=="input"&&j1(w,$,"name",B.name,B,null),j1(w,$,"formEncType",B.formEncType,B,null),j1(w,$,"formMethod",B.formMethod,B,null),j1(w,$,"formTarget",B.formTarget,B,null)):(j1(w,$,"encType",B.encType,B,null),j1(w,$,"method",B.method,B,null),j1(w,$,"target",B.target,B,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){w.removeAttribute(X);break}W1(Y,X),Y=t$(""+Y),w.setAttribute(X,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&Q6(X,Y),w.onclick=E6);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&Q6(X,Y),U1("scroll",w));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&Q6(X,Y),U1("scrollend",w));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=Y.__html,X!=null){if(B.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=X}}break;case"multiple":w.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":w.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){w.removeAttribute("xlink:href");break}W1(Y,X),X=t$(""+Y),w.setAttributeNS(U7,"xlink:href",X);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,X),w.setAttribute(X,""+Y)):w.removeAttribute(X);break;case"inert":Y!==""||uz[X]||(uz[X]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",X));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?w.setAttribute(X,""):w.removeAttribute(X);break;case"capture":case"download":Y===!0?w.setAttribute(X,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,X),w.setAttribute(X,Y)):w.removeAttribute(X);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(W1(Y,X),w.setAttribute(X,Y)):w.removeAttribute(X);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?w.removeAttribute(X):(W1(Y,X),w.setAttribute(X,Y));break;case"popover":U1("beforetoggle",w),U1("toggle",w),_w(w,"popover",Y);break;case"xlinkActuate":M5(w,U7,"xlink:actuate",Y);break;case"xlinkArcrole":M5(w,U7,"xlink:arcrole",Y);break;case"xlinkRole":M5(w,U7,"xlink:role",Y);break;case"xlinkShow":M5(w,U7,"xlink:show",Y);break;case"xlinkTitle":M5(w,U7,"xlink:title",Y);break;case"xlinkType":M5(w,U7,"xlink:type",Y);break;case"xmlBase":M5(w,kg,"xml:base",Y);break;case"xmlLang":M5(w,kg,"xml:lang",Y);break;case"xmlSpace":M5(w,kg,"xml:space",Y);break;case"is":H!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),_w(w,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":CN||Y==null||typeof Y!=="object"||(CN=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"?(X=VK(X),_w(w,X,Y)):e9.hasOwnProperty(X)&&Y!=null&&typeof Y!=="function"&&Q6(X,Y)}}function DH(w,$,X,Y,B,H){switch(X){case"style":fK(w,Y,H);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=Y.__html,X!=null){if(B.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=X}}break;case"children":typeof Y==="string"?o$(w,Y):(typeof Y==="number"||typeof Y==="bigint")&&o$(w,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&Q6(X,Y),U1("scroll",w));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&Q6(X,Y),U1("scrollend",w));break;case"onClick":Y!=null&&(typeof Y!=="function"&&Q6(X,Y),w.onclick=E6);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(e9.hasOwnProperty(X))Y!=null&&typeof Y!=="function"&&Q6(X,Y);else w:{if(X[0]==="o"&&X[1]==="n"&&(B=X.endsWith("Capture"),$=X.slice(2,B?X.length-7:void 0),H=w[E2]||null,H=H!=null?H[X]:null,typeof H==="function"&&w.removeEventListener($,H,B),typeof Y==="function")){typeof H!=="function"&&H!==null&&(X in w?w[X]=null:w.hasAttribute(X)&&w.removeAttribute(X)),w.addEventListener($,Y,B);break w}X in w?w[X]=Y:Y===!0?w.setAttribute(X,""):_w(w,X,Y)}}}function k2(w,$,X){switch(SH($,X),$){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":U1("error",w),U1("load",w);var Y=!1,B=!1,H;for(H in X)if(X.hasOwnProperty(H)){var W=X[H];if(W!=null)switch(H){case"src":Y=!0;break;case"srcSet":B=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:j1(w,$,H,W,X,null)}}B&&j1(w,$,"srcSet",X.srcSet,X,null),Y&&j1(w,$,"src",X.src,X,null);return;case"input":I1("input",X),U1("invalid",w);var q=H=W=B=null,T=null,I=null;for(Y in X)if(X.hasOwnProperty(Y)){var y=X[Y];if(y!=null)switch(Y){case"name":B=y;break;case"type":W=y;break;case"checked":T=y;break;case"defaultChecked":I=y;break;case"value":H=y;break;case"defaultValue":q=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:j1(w,$,Y,y,X,null)}}UK(w,X),qK(w,H,q,T,I,W,B,!1);return;case"select":I1("select",X),U1("invalid",w),Y=W=H=null;for(B in X)if(X.hasOwnProperty(B)&&(q=X[B],q!=null))switch(B){case"value":H=q;break;case"defaultValue":W=q;break;case"multiple":Y=q;default:j1(w,$,B,q,X,null)}kK(w,X),$=H,X=W,w.multiple=!!Y,$!=null?Y3(w,!!Y,$,!1):X!=null&&Y3(w,!!Y,X,!0);return;case"textarea":I1("textarea",X),U1("invalid",w),H=B=Y=null;for(W in X)if(X.hasOwnProperty(W)&&(q=X[W],q!=null))switch(W){case"value":Y=q;break;case"defaultValue":B=q;break;case"children":H=q;break;case"dangerouslySetInnerHTML":if(q!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:j1(w,$,W,q,X,null)}NK(w,X),IK(w,Y,B,H);return;case"option":LK(w,X);for(T in X)if(X.hasOwnProperty(T)&&(Y=X[T],Y!=null))switch(T){case"selected":w.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:j1(w,$,T,Y,X,null)}return;case"dialog":U1("beforetoggle",w),U1("toggle",w),U1("cancel",w),U1("close",w);break;case"iframe":case"object":U1("load",w);break;case"video":case"audio":for(Y=0;Y<UX.length;Y++)U1(UX[Y],w);break;case"image":U1("error",w),U1("load",w);break;case"details":U1("toggle",w);break;case"embed":case"source":case"link":U1("error",w),U1("load",w);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in X)if(X.hasOwnProperty(I)&&(Y=X[I],Y!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:j1(w,$,I,Y,X,null)}return;default:if(s$($)){for(y in X)X.hasOwnProperty(y)&&(Y=X[y],Y!==void 0&&DH(w,$,y,Y,X,void 0));return}}for(q in X)X.hasOwnProperty(q)&&(Y=X[q],Y!=null&&j1(w,$,q,Y,X,null))}function CP(w,$,X,Y){switch(SH($,Y),$){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var B=null,H=null,W=null,q=null,T=null,I=null,y=null;for(n in X){var D=X[n];if(X.hasOwnProperty(n)&&D!=null)switch(n){case"checked":break;case"value":break;case"defaultValue":T=D;default:Y.hasOwnProperty(n)||j1(w,$,n,null,Y,D)}}for(var V in Y){var n=Y[V];if(D=X[V],Y.hasOwnProperty(V)&&(n!=null||D!=null))switch(V){case"type":H=n;break;case"name":B=n;break;case"checked":I=n;break;case"defaultChecked":y=n;break;case"value":W=n;break;case"defaultValue":q=n;break;case"children":case"dangerouslySetInnerHTML":if(n!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:n!==D&&j1(w,$,V,n,Y,D)}}$=X.type==="checkbox"||X.type==="radio"?X.checked!=null:X.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,$||!Y||ON||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),ON=!0),!$||Y||_N||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),_N=!0),sB(w,W,q,T,I,y,H,B);return;case"select":n=W=q=V=null;for(H in X)if(T=X[H],X.hasOwnProperty(H)&&T!=null)switch(H){case"value":break;case"multiple":n=T;default:Y.hasOwnProperty(H)||j1(w,$,H,null,Y,T)}for(B in Y)if(H=Y[B],T=X[B],Y.hasOwnProperty(B)&&(H!=null||T!=null))switch(B){case"value":V=H;break;case"defaultValue":q=H;break;case"multiple":W=H;default:H!==T&&j1(w,$,B,H,Y,T)}Y=q,$=W,X=n,V!=null?Y3(w,!!$,V,!1):!!X!==!!$&&(Y!=null?Y3(w,!!$,Y,!0):Y3(w,!!$,$?[]:"",!1));return;case"textarea":n=V=null;for(q in X)if(B=X[q],X.hasOwnProperty(q)&&B!=null&&!Y.hasOwnProperty(q))switch(q){case"value":break;case"children":break;default:j1(w,$,q,null,Y,B)}for(W in Y)if(B=Y[W],H=X[W],Y.hasOwnProperty(W)&&(B!=null||H!=null))switch(W){case"value":V=B;break;case"defaultValue":n=B;break;case"children":break;case"dangerouslySetInnerHTML":if(B!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:B!==H&&j1(w,$,W,B,Y,H)}TK(w,V,n);return;case"option":for(var L0 in X)if(V=X[L0],X.hasOwnProperty(L0)&&V!=null&&!Y.hasOwnProperty(L0))switch(L0){case"selected":w.selected=!1;break;default:j1(w,$,L0,null,Y,V)}for(T in Y)if(V=Y[T],n=X[T],Y.hasOwnProperty(T)&&V!==n&&(V!=null||n!=null))switch(T){case"selected":w.selected=V&&typeof V!=="function"&&typeof V!=="symbol";break;default:j1(w,$,T,V,Y,n)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var I0 in X)V=X[I0],X.hasOwnProperty(I0)&&V!=null&&!Y.hasOwnProperty(I0)&&j1(w,$,I0,null,Y,V);for(I in Y)if(V=Y[I],n=X[I],Y.hasOwnProperty(I)&&V!==n&&(V!=null||n!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:j1(w,$,I,V,Y,n)}return;default:if(s$($)){for(var a1 in X)V=X[a1],X.hasOwnProperty(a1)&&V!==void 0&&!Y.hasOwnProperty(a1)&&DH(w,$,a1,void 0,Y,V);for(y in Y)V=Y[y],n=X[y],!Y.hasOwnProperty(y)||V===n||V===void 0&&n===void 0||DH(w,$,y,V,Y,n);return}}for(var q1 in X)V=X[q1],X.hasOwnProperty(q1)&&V!=null&&!Y.hasOwnProperty(q1)&&j1(w,$,q1,null,Y,V);for(D in Y)V=Y[D],n=X[D],!Y.hasOwnProperty(D)||V===n||V==null&&n==null||j1(w,$,D,V,Y,n)}function ML(w){switch(w){case"class":return"className";case"for":return"htmlFor";default:return w}}function dH(w){var $={};w=w.style;for(var X=0;X<w.length;X++){var Y=w[X];$[Y]=w.getPropertyValue(Y)}return $}function xL(w,$,X){if($!=null&&typeof $!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var Y,B=Y="",H;for(H in $)if($.hasOwnProperty(H)){var W=$[H];W!=null&&typeof W!=="boolean"&&W!==""&&(H.indexOf("--")===0?(iw(W,H),Y+=B+H+":"+(""+W).trim()):typeof W!=="number"||W===0||dF.has(H)?(iw(W,H),Y+=B+H.replace(hF,"-$1").toLowerCase().replace(RF,"-ms-")+":"+(""+W).trim()):Y+=B+H.replace(hF,"-$1").toLowerCase().replace(RF,"-ms-")+":"+W+"px",B=";")}Y=Y||null,$=w.getAttribute("style"),$!==Y&&(Y=P8(Y),P8($)!==Y&&(X.style=dH(w)))}}function tw(w,$,X,Y,B,H){if(B.delete(X),w=w.getAttribute(X),w===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,$),w===""+Y)return}B2($,w,Y,H)}function mL(w,$,X,Y,B,H){if(B.delete(X),w=w.getAttribute(X),w===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}B2($,w,Y,H)}function jH(w,$,X,Y,B,H){if(B.delete(X),w=w.getAttribute(X),w===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(W1(Y,X),w===""+Y)return}B2($,w,Y,H)}function PL(w,$,X,Y,B,H){if(B.delete(X),w=w.getAttribute(X),w===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(W1(Y,$),w===""+Y))return}B2($,w,Y,H)}function EH(w,$,X,Y,B,H){if(B.delete(X),w=w.getAttribute(X),w===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,$),X=t$(""+Y),w===X)return}B2($,w,Y,H)}function fL(w,$,X,Y){for(var B={},H=new Set,W=w.attributes,q=0;q<W.length;q++)switch(W[q].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:H.add(W[q].name)}if(s$($)){for(var T in X)if(X.hasOwnProperty(T)){var I=X[T];if(I!=null){if(e9.hasOwnProperty(T))typeof I!=="function"&&Q6(T,I);else if(X.suppressHydrationWarning!==!0)switch(T){case"children":typeof I!=="string"&&typeof I!=="number"||B2("children",w.textContent,I,B);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=w.innerHTML,I=I?I.__html:void 0,I!=null&&(I=AL(w,I),B2(T,W,I,B));continue;case"style":H.delete(T),xL(w,I,B);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":H.delete(T.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",T);continue;case"className":H.delete("class"),W=$w(w,"class",I),B2("className",W,I,B);continue;default:Y.context===v8&&$!=="svg"&&$!=="math"?H.delete(T.toLowerCase()):H.delete(T),W=$w(w,T,I),B2(T,W,I,B)}}}}else for(I in X)if(X.hasOwnProperty(I)&&(T=X[I],T!=null)){if(e9.hasOwnProperty(I))typeof T!=="function"&&Q6(I,T);else if(X.suppressHydrationWarning!==!0)switch(I){case"children":typeof T!=="string"&&typeof T!=="number"||B2("children",w.textContent,T,B);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=w.innerHTML,T=T?T.__html:void 0,T!=null&&(T=AL(w,T),W!==T&&(B[I]={__html:W}));continue;case"className":tw(w,I,"class",T,H,B);continue;case"tabIndex":tw(w,I,"tabindex",T,H,B);continue;case"style":H.delete(I),xL(w,T,B);continue;case"multiple":H.delete(I),B2(I,w.multiple,T,B);continue;case"muted":H.delete(I),B2(I,w.muted,T,B);continue;case"autoFocus":H.delete("autofocus"),B2(I,w.autofocus,T,B);continue;case"data":if($!=="object"){H.delete(I),W=w.getAttribute("data"),B2(I,W,T,B);continue}case"src":case"href":if(!(T!==""||$==="a"&&I==="href"||$==="object"&&I==="data")){I==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',I,I):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',I,I);continue}EH(w,I,I,T,H,B);continue;case"action":case"formAction":if(W=w.getAttribute(I),typeof T==="function"){H.delete(I.toLowerCase()),I==="formAction"?(H.delete("name"),H.delete("formenctype"),H.delete("formmethod"),H.delete("formtarget")):(H.delete("enctype"),H.delete("method"),H.delete("target"));continue}else if(W===EV){H.delete(I.toLowerCase()),B2(I,"function",T,B);continue}EH(w,I,I.toLowerCase(),T,H,B);continue;case"xlinkHref":EH(w,I,"xlink:href",T,H,B);continue;case"contentEditable":jH(w,I,"contenteditable",T,H,B);continue;case"spellCheck":jH(w,I,"spellcheck",T,H,B);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":jH(w,I,I,T,H,B);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":mL(w,I,I.toLowerCase(),T,H,B);continue;case"capture":case"download":w:{q=w;var y=W=I,D=B;if(H.delete(y),q=q.getAttribute(y),q===null)switch(typeof T){case"undefined":case"function":case"symbol":break w;default:if(T===!1)break w}else if(T!=null)switch(typeof T){case"function":case"symbol":break;case"boolean":if(T===!0&&q==="")break w;break;default:if(W1(T,W),q===""+T)break w}B2(W,q,T,D)}continue;case"cols":case"rows":case"size":case"span":w:{if(q=w,y=W=I,D=B,H.delete(y),q=q.getAttribute(y),q===null)switch(typeof T){case"undefined":case"function":case"symbol":case"boolean":break w;default:if(isNaN(T)||1>T)break w}else if(T!=null)switch(typeof T){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(T)||1>T)&&(W1(T,W),q===""+T))break w}B2(W,q,T,D)}continue;case"rowSpan":PL(w,I,"rowspan",T,H,B);continue;case"start":PL(w,I,I,T,H,B);continue;case"xHeight":tw(w,I,"x-height",T,H,B);continue;case"xlinkActuate":tw(w,I,"xlink:actuate",T,H,B);continue;case"xlinkArcrole":tw(w,I,"xlink:arcrole",T,H,B);continue;case"xlinkRole":tw(w,I,"xlink:role",T,H,B);continue;case"xlinkShow":tw(w,I,"xlink:show",T,H,B);continue;case"xlinkTitle":tw(w,I,"xlink:title",T,H,B);continue;case"xlinkType":tw(w,I,"xlink:type",T,H,B);continue;case"xmlBase":tw(w,I,"xml:base",T,H,B);continue;case"xmlLang":tw(w,I,"xml:lang",T,H,B);continue;case"xmlSpace":tw(w,I,"xml:space",T,H,B);continue;case"inert":T!==""||uz[I]||(uz[I]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",I)),mL(w,I,I,T,H,B);continue;default:if(!(2<I.length)||I[0]!=="o"&&I[0]!=="O"||I[1]!=="n"&&I[1]!=="N"){q=VK(I),W=!1,Y.context===v8&&$!=="svg"&&$!=="math"?H.delete(q.toLowerCase()):(y=I.toLowerCase(),y=wz.hasOwnProperty(y)?wz[y]||null:null,y!==null&&y!==I&&(W=!0,H.delete(y)),H.delete(q));w:if(y=w,D=q,q=T,q2(D))if(y.hasAttribute(D))y=y.getAttribute(D),W1(q,D),q=y===""+q?q:y;else{switch(typeof q){case"function":case"symbol":break w;case"boolean":if(y=D.toLowerCase().slice(0,5),y!=="data-"&&y!=="aria-")break w}q=q===void 0?void 0:null}else q=void 0;W||B2(I,q,T,B)}}}return 0<H.size&&X.suppressHydrationWarning!==!0&&AP(w,H,B),Object.keys(B).length===0?null:B}function MP(w,$){switch(w.length){case 0:return"";case 1:return w[0];case 2:return w[0]+" "+$+" "+w[1];default:return w.slice(0,-1).join(", ")+", "+$+" "+w[w.length-1]}}function VL(w){switch(w){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xP(){if(typeof performance.getEntriesByType==="function"){for(var w=0,$=0,X=performance.getEntriesByType("resource"),Y=0;Y<X.length;Y++){var B=X[Y],H=B.transferSize,W=B.initiatorType,q=B.duration;if(H&&q&&VL(W)){W=0,q=B.responseEnd;for(Y+=1;Y<X.length;Y++){var T=X[Y],I=T.startTime;if(I>q)break;var{transferSize:y,initiatorType:D}=T;y&&VL(D)&&(T=T.responseEnd,W+=y*(T<q?1:(q-I)/(T-I)))}if(--Y,$+=8*(H+W)/(B.duration/1000),w++,10<w)break}}if(0<w)return $/w/1e6}return navigator.connection&&(w=navigator.connection.downlink,typeof w==="number")?w:5}function yY(w){return w.nodeType===9?w:w.ownerDocument}function hL(w){switch(w){case M3:return J$;case eY:return cz;default:return v8}}function RL(w,$){if(w===v8)switch($){case"svg":return J$;case"math":return cz;default:return v8}return w===J$&&$==="foreignObject"?v8:w}function uH(w,$){return w==="textarea"||w==="noscript"||typeof $.children==="string"||typeof $.children==="number"||typeof $.children==="bigint"||typeof $.dangerouslySetInnerHTML==="object"&&$.dangerouslySetInnerHTML!==null&&$.dangerouslySetInnerHTML.__html!=null}function mP(){var w=window.event;if(w&&w.type==="popstate"){if(w===_g)return!1;return _g=w,!0}return _g=null,!1}function IZ(){var w=window.event;return w&&w!==FX?w.type:null}function _Z(){var w=window.event;return w&&w!==FX?w.timeStamp:-1.1}function PP(w){setTimeout(function(){throw w})}function fP(w,$,X){switch($){case"button":case"input":case"select":case"textarea":X.autoFocus&&w.focus();break;case"img":X.src?w.src=X.src:X.srcSet&&(w.srcset=X.srcSet)}}function VP(){}function hP(w,$,X,Y){CP(w,$,X,Y),w[E2]=Y}function yL(w){o$(w,"")}function RP(w,$,X){w.nodeValue=X}function SL(w){if(!w.__reactWarnedAboutChildrenConflict){var $=w[E2]||null;if($!==null){var X=c0(w);X!==null&&(typeof $.children==="string"||typeof $.children==="number"?(w.__reactWarnedAboutChildrenConflict=!0,g0(X,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):$.dangerouslySetInnerHTML!=null&&(w.__reactWarnedAboutChildrenConflict=!0,g0(X,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function f8(w){return w==="head"}function yP(w,$){w.removeChild($)}function SP(w,$){(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w).removeChild($)}function DL(w,$){var X=$,Y=0;do{var B=X.nextSibling;if(w.removeChild(X),B&&B.nodeType===8)if(X=B.data,X===LX||X===lz){if(Y===0){w.removeChild(B),T3($);return}Y--}else if(X===qX||X===Z9||X===L7||X===X$||X===q7)Y++;else if(X===lV)OZ(w.ownerDocument.documentElement);else if(X===aV){X=w.ownerDocument.head,OZ(X);for(var H=X.firstChild;H;){var{nextSibling:W,nodeName:q}=H;H[fZ]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&H.rel.toLowerCase()==="stylesheet"||X.removeChild(H),H=W}}else X===cV&&OZ(w.ownerDocument.body);X=B}while(X);T3($)}function dL(w,$){var X=w;w=0;do{var Y=X.nextSibling;if(X.nodeType===1?$?(X._stashedDisplay=X.style.display,X.style.display="none"):(X.style.display=X._stashedDisplay||"",X.getAttribute("style")===""&&X.removeAttribute("style")):X.nodeType===3&&($?(X._stashedText=X.nodeValue,X.nodeValue=""):X.nodeValue=X._stashedText||""),Y&&Y.nodeType===8)if(X=Y.data,X===LX)if(w===0)break;else w--;else X!==qX&&X!==Z9&&X!==L7&&X!==X$||w++;X=Y}while(X)}function DP(w){dL(w,!0)}function dP(w){w=w.style,typeof w.setProperty==="function"?w.setProperty("display","none","important"):w.display="none"}function jP(w){w.nodeValue=""}function EP(w){dL(w,!1)}function uP(w,$){$=$[iV],$=$!==void 0&&$!==null&&$.hasOwnProperty("display")?$.display:null,w.style.display=$==null||typeof $==="boolean"?"":(""+$).trim()}function lP(w,$){w.nodeValue=$}function lH(w){var $=w.firstChild;$&&$.nodeType===10&&($=$.nextSibling);for(;$;){var X=$;switch($=$.nextSibling,X.nodeName){case"HTML":case"HEAD":case"BODY":lH(X),k0(X);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(X.rel.toLowerCase()==="stylesheet")continue}w.removeChild(X)}}function cP(w,$,X,Y){for(;w.nodeType===1;){var B=X;if(w.nodeName.toLowerCase()!==$.toLowerCase()){if(!Y&&(w.nodeName!=="INPUT"||w.type!=="hidden"))break}else if(!Y)if($==="input"&&w.type==="hidden"){W1(B.name,"name");var H=B.name==null?null:""+B.name;if(B.type==="hidden"&&w.getAttribute("name")===H)return w}else return w;else if(!w[fZ])switch($){case"meta":if(!w.hasAttribute("itemprop"))break;return w;case"link":if(H=w.getAttribute("rel"),H==="stylesheet"&&w.hasAttribute("data-precedence"))break;else if(H!==B.rel||w.getAttribute("href")!==(B.href==null||B.href===""?null:B.href)||w.getAttribute("crossorigin")!==(B.crossOrigin==null?null:B.crossOrigin)||w.getAttribute("title")!==(B.title==null?null:B.title))break;return w;case"style":if(w.hasAttribute("data-precedence"))break;return w;case"script":if(H=w.getAttribute("src"),(H!==(B.src==null?null:B.src)||w.getAttribute("type")!==(B.type==null?null:B.type)||w.getAttribute("crossorigin")!==(B.crossOrigin==null?null:B.crossOrigin))&&H&&w.hasAttribute("async")&&!w.hasAttribute("itemprop"))break;return w;default:return w}if(w=fw(w.nextSibling),w===null)break}return null}function aP(w,$,X){if($==="")return null;for(;w.nodeType!==3;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!X)return null;if(w=fw(w.nextSibling),w===null)return null}return w}function jL(w,$){for(;w.nodeType!==8;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!$)return null;if(w=fw(w.nextSibling),w===null)return null}return w}function cH(w){return w.data===Z9||w.data===L7}function aH(w){return w.data===X$||w.data===Z9&&w.ownerDocument.readyState!==xN}function iP(w,$){var X=w.ownerDocument;if(w.data===L7)w._reactRetry=$;else if(w.data!==Z9||X.readyState!==xN)$();else{var Y=function(){$(),X.removeEventListener("DOMContentLoaded",Y)};X.addEventListener("DOMContentLoaded",Y),w._reactRetry=Y}}function fw(w){for(;w!=null;w=w.nextSibling){var $=w.nodeType;if($===1||$===3)break;if($===8){if($=w.data,$===qX||$===X$||$===Z9||$===L7||$===q7||$===Ng||$===MN)break;if($===LX||$===lz)return null}}return w}function EL(w){if(w.nodeType===1){for(var $=w.nodeName.toLowerCase(),X={},Y=w.attributes,B=0;B<Y.length;B++){var H=Y[B];X[ML(H.name)]=H.name.toLowerCase()==="style"?dH(w):H.value}return{type:$,props:X}}return w.nodeType===8?w.data===q7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:w.nodeValue}function uL(w,$,X){return X===null||X[uV]!==!0?(w.nodeValue===$?w=null:($=P8($),w=P8(w.nodeValue)===$?null:w.nodeValue),w):null}function iH(w){w=w.nextSibling;for(var $=0;w;){if(w.nodeType===8){var X=w.data;if(X===LX||X===lz){if($===0)return fw(w.nextSibling);$--}else X!==qX&&X!==X$&&X!==Z9&&X!==L7&&X!==q7||$++}w=w.nextSibling}return null}function lL(w){w=w.previousSibling;for(var $=0;w;){if(w.nodeType===8){var X=w.data;if(X===qX||X===X$||X===Z9||X===L7||X===q7){if($===0)return w;$--}else X!==LX&&X!==lz||$++}w=w.previousSibling}return null}function pP(w){T3(w)}function rP(w){T3(w)}function nP(w){T3(w)}function cL(w,$,X,Y,B){switch(B&&Xv(w,Y.ancestorInfo),$=yY(X),w){case"html":if(w=$.documentElement,!w)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return w;case"head":if(w=$.head,!w)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return w;case"body":if(w=$.body,!w)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return w;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function oP(w,$,X,Y){if(!X[y8]&&c0(X)){var B=X.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",B,B,B)}switch(w){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(B=X.attributes;B.length;)X.removeAttributeNode(B[0]);k2(X,w,$),X[N2]=Y,X[E2]=$}function OZ(w){for(var $=w.attributes;$.length;)w.removeAttributeNode($[0]);k0(w)}function SY(w){return typeof w.getRootNode==="function"?w.getRootNode():w.nodeType===9?w:w.ownerDocument}function aL(w,$,X){var Y=Y$;if(Y&&typeof $==="string"&&$){var B=sw($);B='link[rel="'+w+'"][href="'+B+'"]',typeof X==="string"&&(B+='[crossorigin="'+X+'"]'),RN.has(B)||(RN.add(B),w={rel:w,crossOrigin:X,href:$},Y.querySelector(B)===null&&($=Y.createElement("link"),k2($,"link",w),h0($),Y.head.appendChild($)))}}function iL(w,$,X,Y){var B=(B=h8.current)?SY(B):null;if(!B)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(w){case"meta":case"title":return null;case"style":return typeof X.precedence==="string"&&typeof X.href==="string"?(X=k3(X.href),$=o0(B).hoistableStyles,Y=$.get(X),Y||(Y={type:"style",instance:null,count:0,state:null},$.set(X,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(X.rel==="stylesheet"&&typeof X.href==="string"&&typeof X.precedence==="string"){w=k3(X.href);var H=o0(B).hoistableStyles,W=H.get(w);if(!W&&(B=B.ownerDocument||B,W={type:"stylesheet",instance:null,count:0,state:{loading:k7,preload:null}},H.set(w,W),(H=B.querySelector(AZ(w)))&&!H._p&&(W.instance=H,W.state.loading=kX|v4),!H4.has(w))){var q={rel:"preload",as:"style",href:X.href,crossOrigin:X.crossOrigin,integrity:X.integrity,media:X.media,hrefLang:X.hrefLang,referrerPolicy:X.referrerPolicy};H4.set(w,q),H||sP(B,w,q,W.state)}if($&&Y===null)throw X=`
182
-
183
- - `+DY($)+`
184
- + `+DY(X),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+X);return W}if($&&Y!==null)throw X=`
185
-
186
- - `+DY($)+`
187
- + `+DY(X),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+X);return null;case"script":return $=X.async,X=X.src,typeof X==="string"&&$&&typeof $!=="function"&&typeof $!=="symbol"?(X=N3(X),$=o0(B).hoistableScripts,Y=$.get(X),Y||(Y={type:"script",instance:null,count:0,state:null},$.set(X,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+w+'". this is a bug in React.')}}function DY(w){var $=0,X="<link";return typeof w.rel==="string"?($++,X+=' rel="'+w.rel+'"'):x4.call(w,"rel")&&($++,X+=' rel="'+(w.rel===null?"null":"invalid type "+typeof w.rel)+'"'),typeof w.href==="string"?($++,X+=' href="'+w.href+'"'):x4.call(w,"href")&&($++,X+=' href="'+(w.href===null?"null":"invalid type "+typeof w.href)+'"'),typeof w.precedence==="string"?($++,X+=' precedence="'+w.precedence+'"'):x4.call(w,"precedence")&&($++,X+=" precedence={"+(w.precedence===null?"null":"invalid type "+typeof w.precedence)+"}"),Object.getOwnPropertyNames(w).length>$&&(X+=" ..."),X+" />"}function k3(w){return'href="'+sw(w)+'"'}function AZ(w){return'link[rel="stylesheet"]['+w+"]"}function pL(w){return B1({},w,{"data-precedence":w.precedence,precedence:null})}function sP(w,$,X,Y){w.querySelector('link[rel="preload"][as="style"]['+$+"]")?Y.loading=kX:($=w.createElement("link"),Y.preload=$,$.addEventListener("load",function(){return Y.loading|=kX}),$.addEventListener("error",function(){return Y.loading|=VN}),k2($,"link",X),h0($),w.head.appendChild($))}function N3(w){return'[src="'+sw(w)+'"]'}function CZ(w){return"script[async]"+w}function rL(w,$,X){if($.count++,$.instance===null)switch($.type){case"style":var Y=w.querySelector('style[data-href~="'+sw(X.href)+'"]');if(Y)return $.instance=Y,h0(Y),Y;var B=B1({},X,{"data-href":X.href,"data-precedence":X.precedence,href:null,precedence:null});return Y=(w.ownerDocument||w).createElement("style"),h0(Y),k2(Y,"style",B),dY(Y,X.precedence,w),$.instance=Y;case"stylesheet":B=k3(X.href);var H=w.querySelector(AZ(B));if(H)return $.state.loading|=v4,$.instance=H,h0(H),H;Y=pL(X),(B=H4.get(B))&&pH(Y,B),H=(w.ownerDocument||w).createElement("link"),h0(H);var W=H;return W._p=new Promise(function(q,T){W.onload=q,W.onerror=T}),k2(H,"link",Y),$.state.loading|=v4,dY(H,X.precedence,w),$.instance=H;case"script":if(H=N3(X.src),B=w.querySelector(CZ(H)))return $.instance=B,h0(B),B;if(Y=X,B=H4.get(H))Y=B1({},X),rH(Y,B);return w=w.ownerDocument||w,B=w.createElement("script"),h0(B),k2(B,"link",Y),w.head.appendChild(B),$.instance=B;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+$.type+'". this is a bug in React.')}else $.type==="stylesheet"&&($.state.loading&v4)===k7&&(Y=$.instance,$.state.loading|=v4,dY(Y,X.precedence,w));return $.instance}function dY(w,$,X){for(var Y=X.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),B=Y.length?Y[Y.length-1]:null,H=B,W=0;W<Y.length;W++){var q=Y[W];if(q.dataset.precedence===$)H=q;else if(H!==B)break}H?H.parentNode.insertBefore(w,H.nextSibling):($=X.nodeType===9?X.head:X,$.insertBefore(w,$.firstChild))}function pH(w,$){w.crossOrigin==null&&(w.crossOrigin=$.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=$.referrerPolicy),w.title==null&&(w.title=$.title)}function rH(w,$){w.crossOrigin==null&&(w.crossOrigin=$.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=$.referrerPolicy),w.integrity==null&&(w.integrity=$.integrity)}function nL(w,$,X){if(az===null){var Y=new Map,B=az=new Map;B.set(X,Y)}else B=az,Y=B.get(X),Y||(Y=new Map,B.set(X,Y));if(Y.has(w))return Y;Y.set(w,null),X=X.getElementsByTagName(w);for(B=0;B<X.length;B++){var H=X[B];if(!(H[fZ]||H[N2]||w==="link"&&H.getAttribute("rel")==="stylesheet")&&H.namespaceURI!==M3){var W=H.getAttribute($)||"";W=w+W;var q=Y.get(W);q?q.push(H):Y.set(W,[H])}}return Y}function oL(w,$,X){w=w.ownerDocument||w,w.head.insertBefore(X,$==="title"?w.querySelector("head > title"):null)}function tP(w,$,X){var Y=!X.ancestorInfo.containerTagInScope;if(X.context===J$||$.itemProp!=null)return!Y||$.itemProp==null||w!=="meta"&&w!=="title"&&w!=="style"&&w!=="link"&&w!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",w,w),!1;switch(w){case"meta":case"title":return!0;case"style":if(typeof $.precedence!=="string"||typeof $.href!=="string"||$.href===""){Y&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof $.rel!=="string"||typeof $.href!=="string"||$.href===""||$.onLoad||$.onError){if($.rel==="stylesheet"&&typeof $.precedence==="string"){w=$.href;var{onError:B,disabled:H}=$;X=[],$.onLoad&&X.push("`onLoad`"),B&&X.push("`onError`"),H!=null&&X.push("`disabled`"),B=MP(X,"and"),B+=X.length===1?" prop":" props",H=X.length===1?"an "+B:"the "+B,X.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',w,H,B)}Y&&(typeof $.rel!=="string"||typeof $.href!=="string"||$.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):($.onError||$.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch($.rel){case"stylesheet":return w=$.precedence,$=$.disabled,typeof w!=="string"&&Y&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof w==="string"&&$==null;default:return!0}case"script":if(w=$.async&&typeof $.async!=="function"&&typeof $.async!=="symbol",!w||$.onLoad||$.onError||!$.src||typeof $.src!=="string"){Y&&(w?$.onLoad||$.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",w)}return!1}function sL(w){return w.type==="stylesheet"&&(w.state.loading&hN)===k7?!1:!0}function eP(w,$,X,Y){if(X.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(X.state.loading&v4)===k7){if(X.instance===null){var B=k3(Y.href),H=$.querySelector(AZ(B));if(H){$=H._p,$!==null&&typeof $==="object"&&typeof $.then==="function"&&(w.count++,w=jY.bind(w),$.then(w,w)),X.state.loading|=v4,X.instance=H,h0(H);return}H=$.ownerDocument||$,Y=pL(Y),(B=H4.get(B))&&pH(Y,B),H=H.createElement("link"),h0(H);var W=H;W._p=new Promise(function(q,T){W.onload=q,W.onerror=T}),k2(H,"link",Y),X.instance=H}w.stylesheets===null&&(w.stylesheets=new Map),w.stylesheets.set(X,$),($=X.state.preload)&&(X.state.loading&hN)===k7&&(w.count++,X=jY.bind(w),$.addEventListener("load",X),$.addEventListener("error",X))}}function wf(w,$){return w.stylesheets&&w.count===0&&EY(w,w.stylesheets),0<w.count||0<w.imgCount?function(X){var Y=setTimeout(function(){if(w.stylesheets&&EY(w,w.stylesheets),w.unsuspend){var H=w.unsuspend;w.unsuspend=null,H()}},nV+$);0<w.imgBytes&&Ag===0&&(Ag=125*xP()*sV);var B=setTimeout(function(){if(w.waitingForImages=!1,w.count===0&&(w.stylesheets&&EY(w,w.stylesheets),w.unsuspend)){var H=w.unsuspend;w.unsuspend=null,H()}},(w.imgBytes>Ag?50:oV)+$);return w.unsuspend=X,function(){w.unsuspend=null,clearTimeout(Y),clearTimeout(B)}}:null}function jY(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)EY(this,this.stylesheets);else if(this.unsuspend){var w=this.unsuspend;this.unsuspend=null,w()}}}function EY(w,$){w.stylesheets=null,w.unsuspend!==null&&(w.count++,iz=new Map,$.forEach($f,w),iz=null,jY.call(w))}function $f(w,$){if(!($.state.loading&v4)){var X=iz.get(w);if(X)var Y=X.get(Cg);else{X=new Map,iz.set(w,X);for(var B=w.querySelectorAll("link[data-precedence],style[data-precedence]"),H=0;H<B.length;H++){var W=B[H];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")X.set(W.dataset.precedence,W),Y=W}Y&&X.set(Cg,Y)}B=$.instance,W=B.getAttribute("data-precedence"),H=X.get(W)||Y,H===Y&&X.set(Cg,B),X.set(W,B),this.count++,Y=jY.bind(this),B.addEventListener("load",Y),B.addEventListener("error",Y),H?H.parentNode.insertBefore(B,H.nextSibling):(w=w.nodeType===9?w.head:w,w.insertBefore(B,w.firstChild)),$.state.loading|=v4}}function Zf(w,$,X,Y,B,H,W,q,T){this.tag=1,this.containerInfo=w,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=F7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Iw(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iw(0),this.hiddenUpdates=Iw(null),this.identifierPrefix=Y,this.onUncaughtError=B,this.onCaughtError=H,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,w=this.pendingUpdatersLaneMap=[];for($=0;31>$;$++)w.push(new Set);this._debugRootType=X?"hydrateRoot()":"createRoot()"}function tL(w,$,X,Y,B,H,W,q,T,I,y,D){return w=new Zf(w,$,X,W,T,I,y,D,q),$=TV,H===!0&&($|=P2|P4),$|=w1,H=k(3,null,null,$),w.current=H,H.stateNode=w,$=Tv(),i9($),w.pooledCache=$,i9($),H.memoizedState={element:Y,isDehydrated:X,cache:$},Cv(H),w}function eL(w){if(!w)return j8;return w=j8,w}function nH(w,$,X,Y,B,H){if(m2&&typeof m2.onScheduleFiberRoot==="function")try{m2.onScheduleFiberRoot(A3,Y,X)}catch(W){K6||(K6=!0,console.error("React instrumentation encountered an error: %o",W))}B=eL(B),Y.context===null?Y.context=B:Y.pendingContext=B,W6&&hw!==null&&!dN&&(dN=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
188
-
189
- Check the render method of %s.`,E(hw)||"Unknown")),Y=O8($),Y.payload={element:X},H=H===void 0?null:H,H!==null&&(typeof H!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",H),Y.callback=H),X=A8(w,Y,$),X!==null&&(e4($,"root.render()",null),k5(X,w,$),GZ(X,w,$))}function wF(w,$){if(w=w.memoizedState,w!==null&&w.dehydrated!==null){var X=w.retryLane;w.retryLane=X!==0&&X<$?X:$}}function oH(w,$){wF(w,$),(w=w.alternate)&&wF(w,$)}function $F(w){if(w.tag===13||w.tag===31){var $=x2(w,67108864);$!==null&&k5($,w,67108864),oH(w,67108864)}}function ZF(w){if(w.tag===13||w.tag===31){var $=Pw(w);$=_4($);var X=x2(w,$);X!==null&&k5(X,w,$),oH(w,$)}}function Xf(){return hw}function Jf(w,$,X,Y){var B=Y0.T;Y0.T=null;var H=M1.p;try{M1.p=Rw,sH(w,$,X,Y)}finally{M1.p=H,Y0.T=B}}function Yf(w,$,X,Y){var B=Y0.T;Y0.T=null;var H=M1.p;try{M1.p=m4,sH(w,$,X,Y)}finally{M1.p=H,Y0.T=B}}function sH(w,$,X,Y){if(rz){var B=tH(Y);if(B===null)yH(w,$,Y,nz,X),JF(w,Y);else if(zf(B,w,$,X,Y))Y.stopPropagation();else if(JF(w,Y),$&4&&-1<eV.indexOf(w)){for(;B!==null;){var H=c0(B);if(H!==null)switch(H.tag){case 3:if(H=H.stateNode,H.current.memoizedState.isDehydrated){var W=a5(H.pendingLanes);if(W!==0){var q=H;q.pendingLanes|=2;for(q.entangledLanes|=2;W;){var T=1<<31-j2(W);q.entanglements[1]|=T,W&=~T}H6(H),(F1&(n5|dw))===g2&&(Pz=v2()+bN,NZ(0,!1))}}break;case 31:case 13:q=x2(H,2),q!==null&&k5(q,H,2),q3(),oH(H,2)}if(H=tH(Y),H===null&&yH(w,$,Y,nz,X),H===B)break;B=H}B!==null&&Y.stopPropagation()}else yH(w,$,Y,null,X)}}function tH(w){return w=Jv(w),eH(w)}function eH(w){if(nz=null,w=C0(w),w!==null){var $=x(w);if($===null)w=null;else{var X=$.tag;if(X===13){if(w=S($),w!==null)return w;w=null}else if(X===31){if(w=d($),w!==null)return w;w=null}else if(X===3){if($.stateNode.current.memoizedState.isDehydrated)return $.tag===3?$.stateNode.containerInfo:null;w=null}else $!==w&&(w=null)}}return nz=w,null}function XF(w){switch(w){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Rw;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return m4;case"message":switch(Kf()){case gQ:return Rw;case bQ:return m4;case O3:case Uf:return q6;case WQ:return sY;default:return q6}default:return q6}}function JF(w,$){switch(w){case"focusin":case"focusout":X9=null;break;case"dragenter":case"dragleave":J9=null;break;case"mouseover":case"mouseout":Y9=null;break;case"pointerover":case"pointerout":TX.delete($.pointerId);break;case"gotpointercapture":case"lostpointercapture":IX.delete($.pointerId)}}function MZ(w,$,X,Y,B,H){if(w===null||w.nativeEvent!==H)return w={blockedOn:$,domEventName:X,eventSystemFlags:Y,nativeEvent:H,targetContainers:[B]},$!==null&&($=c0($),$!==null&&$F($)),w;return w.eventSystemFlags|=Y,$=w.targetContainers,B!==null&&$.indexOf(B)===-1&&$.push(B),w}function zf(w,$,X,Y,B){switch($){case"focusin":return X9=MZ(X9,w,$,X,Y,B),!0;case"dragenter":return J9=MZ(J9,w,$,X,Y,B),!0;case"mouseover":return Y9=MZ(Y9,w,$,X,Y,B),!0;case"pointerover":var H=B.pointerId;return TX.set(H,MZ(TX.get(H)||null,w,$,X,Y,B)),!0;case"gotpointercapture":return H=B.pointerId,IX.set(H,MZ(IX.get(H)||null,w,$,X,Y,B)),!0}return!1}function YF(w){var $=C0(w.target);if($!==null){var X=x($);if(X!==null){if($=X.tag,$===13){if($=S(X),$!==null){w.blockedOn=$,U0(w.priority,function(){ZF(X)});return}}else if($===31){if($=d(X),$!==null){w.blockedOn=$,U0(w.priority,function(){ZF(X)});return}}else if($===3&&X.stateNode.current.memoizedState.isDehydrated){w.blockedOn=X.tag===3?X.stateNode.containerInfo:null;return}}}w.blockedOn=null}function uY(w){if(w.blockedOn!==null)return!1;for(var $=w.targetContainers;0<$.length;){var X=tH(w.nativeEvent);if(X===null){X=w.nativeEvent;var Y=new X.constructor(X.type,X),B=Y;VZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),VZ=B,X.target.dispatchEvent(Y),VZ===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),VZ=null}else return $=c0(X),$!==null&&$F($),w.blockedOn=X,!1;$.shift()}return!0}function zF(w,$,X){uY(w)&&X.delete($)}function Gf(){Mg=!1,X9!==null&&uY(X9)&&(X9=null),J9!==null&&uY(J9)&&(J9=null),Y9!==null&&uY(Y9)&&(Y9=null),TX.forEach(zF),IX.forEach(zF)}function lY(w,$){w.blockedOn===$&&(w.blockedOn=null,Mg||(Mg=!0,k1.unstable_scheduleCallback(k1.unstable_NormalPriority,Gf)))}function GF(w){oz!==w&&(oz=w,k1.unstable_scheduleCallback(k1.unstable_NormalPriority,function(){oz===w&&(oz=null);for(var $=0;$<w.length;$+=3){var X=w[$],Y=w[$+1],B=w[$+2];if(typeof Y!=="function")if(eH(Y||X)===null)continue;else break;var H=c0(X);H!==null&&(w.splice($,3),$-=3,X={pending:!0,data:B,method:X.method,action:Y},Object.freeze(X),ev(H,X,Y,B))}}))}function T3(w){function $(T){return lY(T,w)}X9!==null&&lY(X9,w),J9!==null&&lY(J9,w),Y9!==null&&lY(Y9,w),TX.forEach($),IX.forEach($);for(var X=0;X<z9.length;X++){var Y=z9[X];Y.blockedOn===w&&(Y.blockedOn=null)}for(;0<z9.length&&(X=z9[0],X.blockedOn===null);)YF(X),X.blockedOn===null&&z9.shift();if(X=(w.ownerDocument||w).$$reactFormReplay,X!=null)for(Y=0;Y<X.length;Y+=3){var B=X[Y],H=X[Y+1],W=B[E2]||null;if(typeof H==="function")W||GF(X);else if(W){var q=null;if(H&&H.hasAttribute("formAction")){if(B=H,W=H[E2]||null)q=W.formAction;else if(eH(B)!==null)continue}else q=W.action;typeof q==="function"?X[Y+1]=q:(X.splice(Y,3),Y-=3),GF(X)}}}function BF(){function w(H){H.canIntercept&&H.info==="react-transition"&&H.intercept({handler:function(){return new Promise(function(W){return B=W})},focusReset:"manual",scroll:"manual"})}function $(){B!==null&&(B(),B=null),Y||setTimeout(X,20)}function X(){if(!Y&&!navigation.transition){var H=navigation.currentEntry;H&&H.url!=null&&navigation.navigate(H.url,{state:H.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Y=!1,B=null;return navigation.addEventListener("navigate",w),navigation.addEventListener("navigatesuccess",$),navigation.addEventListener("navigateerror",$),setTimeout(X,100),function(){Y=!0,navigation.removeEventListener("navigate",w),navigation.removeEventListener("navigatesuccess",$),navigation.removeEventListener("navigateerror",$),B!==null&&(B(),B=null)}}}function wQ(w){this._internalRoot=w}function cY(w){this._internalRoot=w}function vF(w){w[y8]&&(w._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B1=Object.assign,Bf=Symbol.for("react.element"),g6=Symbol.for("react.transitional.element"),I3=Symbol.for("react.portal"),_3=Symbol.for("react.fragment"),aY=Symbol.for("react.strict_mode"),$Q=Symbol.for("react.profiler"),ZQ=Symbol.for("react.consumer"),b6=Symbol.for("react.context"),xZ=Symbol.for("react.forward_ref"),XQ=Symbol.for("react.suspense"),JQ=Symbol.for("react.suspense_list"),iY=Symbol.for("react.memo"),Vw=Symbol.for("react.lazy"),YQ=Symbol.for("react.activity"),vf=Symbol.for("react.memo_cache_sentinel"),HF=Symbol.iterator,Hf=Symbol.for("react.client.reference"),p5=Array.isArray,Y0=v$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M1=ug.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qf=Object.freeze({pending:!1,data:null,method:null,action:null}),zQ=[],GQ=[],n6=-1,V8=Q0(null),mZ=Q0(null),h8=Q0(null),pY=Q0(null),PZ=0,QF,gF,bF,WF,KF,UF,qF;M.__reactDisabledLog=!0;var BQ,LF,vQ=!1,HQ=new(typeof WeakMap==="function"?WeakMap:Map),hw=null,W6=!1,x4=Object.prototype.hasOwnProperty,QQ=k1.unstable_scheduleCallback,gf=k1.unstable_cancelCallback,bf=k1.unstable_shouldYield,Wf=k1.unstable_requestPaint,v2=k1.unstable_now,Kf=k1.unstable_getCurrentPriorityLevel,gQ=k1.unstable_ImmediatePriority,bQ=k1.unstable_UserBlockingPriority,O3=k1.unstable_NormalPriority,Uf=k1.unstable_LowPriority,WQ=k1.unstable_IdlePriority,qf=k1.log,Lf=k1.unstable_setDisableYieldValue,A3=null,m2=null,K6=!1,U6=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",j2=Math.clz32?Math.clz32:pw,Ff=Math.log,kf=Math.LN2,rY=256,nY=262144,oY=4194304,Rw=2,m4=8,q6=32,sY=268435456,R8=Math.random().toString(36).slice(2),N2="__reactFiber$"+R8,E2="__reactProps$"+R8,y8="__reactContainer$"+R8,KQ="__reactEvents$"+R8,Nf="__reactListeners$"+R8,Tf="__reactHandles$"+R8,FF="__reactResources$"+R8,fZ="__reactMarker$"+R8,kF=new Set,e9={},UQ={},If={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},_f=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),NF={},TF={},Of=/[\n"\\]/g,IF=!1,_F=!1,OF=!1,AF=!1,CF=!1,MF=!1,xF=["value","defaultValue"],mF=!1,PF=/["'&<>\n\t]|^\s|\s$/,Af="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),fF="applet caption html table td th marquee object template foreignObject desc title".split(" "),Cf=fF.concat(["button"]),Mf="dd dt li option optgroup p rp rt".split(" "),VF={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},tY={},qQ={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},hF=/([A-Z])/g,RF=/^ms-/,xf=/^(?:webkit|moz|o)[A-Z]/,mf=/^-ms-/,Pf=/-(.)/g,yF=/;\s*$/,C3={},LQ={},SF=!1,DF=!1,dF=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),eY="http://www.w3.org/1998/Math/MathML",M3="http://www.w3.org/2000/svg",ff=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),wz={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},jF={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},x3={},Vf=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),hf=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),EF=!1,u2={},uF=/^on./,Rf=/^on[^A-Z]/,yf=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sf=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Df=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,VZ=null,m3=null,P3=null,FQ=!1,L6=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kQ=!1;if(L6)try{var hZ={};Object.defineProperty(hZ,"passive",{get:function(){kQ=!0}}),window.addEventListener("test",hZ,hZ),window.removeEventListener("test",hZ,hZ)}catch(w){kQ=!1}var S8=null,NQ=null,$z=null,w7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(w){return w.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zz=Zw(w7),RZ=B1({},w7,{view:0,detail:0}),df=Zw(RZ),TQ,IQ,yZ,Xz=B1({},RZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yv,button:0,buttons:0,relatedTarget:function(w){return w.relatedTarget===void 0?w.fromElement===w.srcElement?w.toElement:w.fromElement:w.relatedTarget},movementX:function(w){if("movementX"in w)return w.movementX;return w!==yZ&&(yZ&&w.type==="mousemove"?(TQ=w.screenX-yZ.screenX,IQ=w.screenY-yZ.screenY):IQ=TQ=0,yZ=w),TQ},movementY:function(w){return"movementY"in w?w.movementY:IQ}}),lF=Zw(Xz),jf=B1({},Xz,{dataTransfer:0}),Ef=Zw(jf),uf=B1({},RZ,{relatedTarget:0}),_Q=Zw(uf),lf=B1({},w7,{animationName:0,elapsedTime:0,pseudoElement:0}),cf=Zw(lf),af=B1({},w7,{clipboardData:function(w){return"clipboardData"in w?w.clipboardData:window.clipboardData}}),pf=Zw(af),rf=B1({},w7,{data:0}),cF=Zw(rf),nf=cF,of={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sf={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},ef=B1({},RZ,{key:function(w){if(w.key){var $=of[w.key]||w.key;if($!=="Unidentified")return $}return w.type==="keypress"?(w=uJ(w),w===13?"Enter":String.fromCharCode(w)):w.type==="keydown"||w.type==="keyup"?sf[w.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yv,charCode:function(w){return w.type==="keypress"?uJ(w):0},keyCode:function(w){return w.type==="keydown"||w.type==="keyup"?w.keyCode:0},which:function(w){return w.type==="keypress"?uJ(w):w.type==="keydown"||w.type==="keyup"?w.keyCode:0}}),wV=Zw(ef),$V=B1({},Xz,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),aF=Zw($V),ZV=B1({},RZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yv}),XV=Zw(ZV),JV=B1({},w7,{propertyName:0,elapsedTime:0,pseudoElement:0}),YV=Zw(JV),zV=B1({},Xz,{deltaX:function(w){return"deltaX"in w?w.deltaX:("wheelDeltaX"in w)?-w.wheelDeltaX:0},deltaY:function(w){return"deltaY"in w?w.deltaY:("wheelDeltaY"in w)?-w.wheelDeltaY:("wheelDelta"in w)?-w.wheelDelta:0},deltaZ:0,deltaMode:0}),GV=Zw(zV),BV=B1({},w7,{newState:0,oldState:0}),vV=Zw(BV),HV=[9,13,27,32],iF=229,OQ=L6&&"CompositionEvent"in window,SZ=null;L6&&"documentMode"in document&&(SZ=document.documentMode);var QV=L6&&"TextEvent"in window&&!SZ,pF=L6&&(!OQ||SZ&&8<SZ&&11>=SZ),rF=32,nF=String.fromCharCode(rF),oF=!1,f3=!1,gV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},DZ=null,dZ=null,sF=!1;L6&&(sF=fm("input")&&(!document.documentMode||9<document.documentMode));var l2=typeof Object.is==="function"?Object.is:Dm,bV=L6&&"documentMode"in document&&11>=document.documentMode,V3=null,AQ=null,jZ=null,CQ=!1,h3={animationend:d9("Animation","AnimationEnd"),animationiteration:d9("Animation","AnimationIteration"),animationstart:d9("Animation","AnimationStart"),transitionrun:d9("Transition","TransitionRun"),transitionstart:d9("Transition","TransitionStart"),transitioncancel:d9("Transition","TransitionCancel"),transitionend:d9("Transition","TransitionEnd")},MQ={},tF={};L6&&(tF=document.createElement("div").style,("AnimationEvent"in window)||(delete h3.animationend.animation,delete h3.animationiteration.animation,delete h3.animationstart.animation),("TransitionEvent"in window)||delete h3.transitionend.transition);var eF=j9("animationend"),wk=j9("animationiteration"),$k=j9("animationstart"),WV=j9("transitionrun"),KV=j9("transitionstart"),UV=j9("transitioncancel"),Zk=j9("transitionend"),Xk=new Map,xQ="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");xQ.push("scrollEnd");var Jk=0;if(typeof performance==="object"&&typeof performance.now==="function")var qV=performance,Yk=function(){return qV.now()};else{var LV=Date;Yk=function(){return LV.now()}}var mQ=typeof reportError==="function"?reportError:function(w){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent($))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",w);return}console.error(w)},FV="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Jz=0,PQ=1,fQ=2,VQ=3,Yz="– ",zz="+ ",zk="  ",r1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",ew="Components ⚛",v1="Scheduler ⚛",g1="Blocking",D8=!1,o6={color:"primary",properties:null,tooltipText:"",track:ew},d8={start:-0,end:-0,detail:{devtools:o6}},kV=["Changed Props",""],Gk="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",NV=["Changed Props",Gk],EZ=1,s6=2,w4=[],R3=0,hQ=0,j8={};Object.freeze(j8);var $4=null,y3=null,l0=0,TV=1,w1=2,P2=8,P4=16,IV=32,Bk=!1;try{var vk=Object.preventExtensions({})}catch(w){Bk=!0}var RQ=new WeakMap,S3=[],D3=0,Gz=null,uZ=0,Z4=[],X4=0,$7=null,t6=1,e6="",T2=null,n1=null,K1=!1,F6=!1,yw=null,E8=null,J4=!1,yQ=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),SQ=Q0(null),DQ=Q0(null),Hk={},Bz=null,d3=null,j3=!1,_V=typeof AbortController<"u"?AbortController:function(){var w=[],$=this.signal={aborted:!1,addEventListener:function(X,Y){w.push(Y)}};this.abort=function(){$.aborted=!0,w.forEach(function(X){return X()})}},OV=k1.unstable_scheduleCallback,AV=k1.unstable_NormalPriority,h5={$$typeof:b6,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},R5=k1.unstable_now,vz=console.createTask?console.createTask:function(){return null},lZ=1,Hz=2,H2=-0,u8=-0,w8=-0,$8=null,c2=-1.1,Z7=-0,Q5=-0,S0=-1.1,j0=-1.1,J5=null,N5=!1,l8=-0,k6=-1.1,cZ=null,c8=0,dQ=null,jQ=null,X7=-1.1,aZ=null,E3=-1.1,Qz=-1.1,N6=-0,Z8=-1.1,Y4=-1.1,EQ=0,iZ=null,Qk=null,gk=null,a8=-1.1,J7=null,i8=-1.1,gz=-1.1,bk=-0,Wk=-0,bz=0,X8=null,Kk=0,pZ=-1.1,Wz=!1,Kz=!1,rZ=null,uQ=0,Y7=0,u3=null,Uk=Y0.S;Y0.S=function(w,$){if(QN=v2(),typeof $==="object"&&$!==null&&typeof $.then==="function"){if(0>Z8&&0>Y4){Z8=R5();var X=_Z(),Y=IZ();if(X!==i8||Y!==J7)i8=-1.1;a8=X,J7=Y}am(w,$)}Uk!==null&&Uk(w,$)};var z7=Q0(null),f4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},nZ=[],oZ=[],sZ=[],tZ=[],eZ=[],wX=[],G7=new Set;f4.recordUnsafeLifecycleWarnings=function(w,$){G7.has(w.type)||(typeof $.componentWillMount==="function"&&$.componentWillMount.__suppressDeprecationWarning!==!0&&nZ.push(w),w.mode&P2&&typeof $.UNSAFE_componentWillMount==="function"&&oZ.push(w),typeof $.componentWillReceiveProps==="function"&&$.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&sZ.push(w),w.mode&P2&&typeof $.UNSAFE_componentWillReceiveProps==="function"&&tZ.push(w),typeof $.componentWillUpdate==="function"&&$.componentWillUpdate.__suppressDeprecationWarning!==!0&&eZ.push(w),w.mode&P2&&typeof $.UNSAFE_componentWillUpdate==="function"&&wX.push(w))},f4.flushPendingUnsafeLifecycleWarnings=function(){var w=new Set;0<nZ.length&&(nZ.forEach(function(q){w.add(E(q)||"Component"),G7.add(q.type)}),nZ=[]);var $=new Set;0<oZ.length&&(oZ.forEach(function(q){$.add(E(q)||"Component"),G7.add(q.type)}),oZ=[]);var X=new Set;0<sZ.length&&(sZ.forEach(function(q){X.add(E(q)||"Component"),G7.add(q.type)}),sZ=[]);var Y=new Set;0<tZ.length&&(tZ.forEach(function(q){Y.add(E(q)||"Component"),G7.add(q.type)}),tZ=[]);var B=new Set;0<eZ.length&&(eZ.forEach(function(q){B.add(E(q)||"Component"),G7.add(q.type)}),eZ=[]);var H=new Set;if(0<wX.length&&(wX.forEach(function(q){H.add(E(q)||"Component"),G7.add(q.type)}),wX=[]),0<$.size){var W=U($);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
190
-
191
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
192
-
193
- Please update the following components: %s`,W)}0<Y.size&&(W=U(Y),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
-
195
- * Move data fetching code or side effects to componentDidUpdate.
196
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
197
-
198
- Please update the following components: %s`,W)),0<H.size&&(W=U(H),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
-
200
- * Move data fetching code or side effects to componentDidUpdate.
201
-
202
- Please update the following components: %s`,W)),0<w.size&&(W=U(w),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
-
204
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
205
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
206
-
207
- Please update the following components: %s`,W)),0<X.size&&(W=U(X),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
-
209
- * Move data fetching code or side effects to componentDidUpdate.
210
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
211
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
-
213
- Please update the following components: %s`,W)),0<B.size&&(W=U(B),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
214
-
215
- * Move data fetching code or side effects to componentDidUpdate.
216
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
-
218
- Please update the following components: %s`,W))};var Uz=new Map,qk=new Set;f4.recordLegacyContextWarning=function(w,$){var X=null;for(var Y=w;Y!==null;)Y.mode&P2&&(X=Y),Y=Y.return;X===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!qk.has(w.type)&&(Y=Uz.get(X),w.type.contextTypes!=null||w.type.childContextTypes!=null||$!==null&&typeof $.getChildContext==="function")&&(Y===void 0&&(Y=[],Uz.set(X,Y)),Y.push(w))},f4.flushLegacyContextWarning=function(){Uz.forEach(function(w){if(w.length!==0){var $=w[0],X=new Set;w.forEach(function(B){X.add(E(B)||"Component"),qk.add(B.type)});var Y=U(X);g0($,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
219
-
220
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
221
-
222
- Please update the following components: %s
223
-
224
- Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},f4.discardPendingWarnings=function(){nZ=[],oZ=[],sZ=[],tZ=[],eZ=[],wX=[],Uz=new Map};var Lk={react_stack_bottom_frame:function(w,$,X){var Y=W6;W6=!0;try{return w($,X)}finally{W6=Y}}},lQ=Lk.react_stack_bottom_frame.bind(Lk),Fk={react_stack_bottom_frame:function(w){var $=W6;W6=!0;try{return w.render()}finally{W6=$}}},kk=Fk.react_stack_bottom_frame.bind(Fk),Nk={react_stack_bottom_frame:function(w,$){try{$.componentDidMount()}catch(X){C1(w,w.return,X)}}},cQ=Nk.react_stack_bottom_frame.bind(Nk),Tk={react_stack_bottom_frame:function(w,$,X,Y,B){try{$.componentDidUpdate(X,Y,B)}catch(H){C1(w,w.return,H)}}},Ik=Tk.react_stack_bottom_frame.bind(Tk),_k={react_stack_bottom_frame:function(w,$){var X=$.stack;w.componentDidCatch($.value,{componentStack:X!==null?X:""})}},CV=_k.react_stack_bottom_frame.bind(_k),Ok={react_stack_bottom_frame:function(w,$,X){try{X.componentWillUnmount()}catch(Y){C1(w,$,Y)}}},Ak=Ok.react_stack_bottom_frame.bind(Ok),Ck={react_stack_bottom_frame:function(w){var $=w.create;return w=w.inst,$=$(),w.destroy=$}},MV=Ck.react_stack_bottom_frame.bind(Ck),Mk={react_stack_bottom_frame:function(w,$,X){try{X()}catch(Y){C1(w,$,Y)}}},xV=Mk.react_stack_bottom_frame.bind(Mk),xk={react_stack_bottom_frame:function(w){var $=w._init;return $(w._payload)}},mV=xk.react_stack_bottom_frame.bind(xk),l3=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),aQ=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),qz=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Lz={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},B7=null,$X=!1,c3=null,ZX=0,$1=null,iQ,mk=iQ=!1,Pk={},fk={},Vk={};L=function(w,$,X){if(X!==null&&typeof X==="object"&&X._store&&(!X._store.validated&&X.key==null||X._store.validated===2)){if(typeof X._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");X._store.validated=1;var Y=E(w),B=Y||"null";if(!Pk[B]){Pk[B]=!0,X=X._owner,w=w._debugOwner;var H="";w&&typeof w.tag==="number"&&(B=E(w))&&(H=`
225
-
226
- Check the render method of \``+B+"`."),H||Y&&(H=`
227
-
228
- Check the top-level render call using <`+Y+">.");var W="";X!=null&&w!==X&&(Y=null,typeof X.tag==="number"?Y=E(X):typeof X.name==="string"&&(Y=X.name),Y&&(W=" It was passed a child from "+Y+".")),g0($,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',H,W)})}}};var v7=OU(!0),hk=OU(!1),Rk=0,yk=1,Sk=2,pQ=3,p8=!1,Dk=!1,rQ=null,nQ=!1,a3=Q0(null),Fz=Q0(0),Sw=Q0(null),z4=null,i3=1,XX=2,m5=Q0(0),kz=0,G4=1,a2=2,Dw=4,i2=8,p3,dk=new Set,jk=new Set,oQ=new Set,Ek=new Set,J8=0,a0=null,E1=null,y5=null,Nz=!1,r3=!1,H7=!1,Tz=0,JX=0,Y8=null,PV=0,fV=25,t=null,B4=null,z8=-1,YX=!1,zX={readContext:X5,use:x8,useCallback:_5,useContext:_5,useEffect:_5,useImperativeHandle:_5,useLayoutEffect:_5,useInsertionEffect:_5,useMemo:_5,useReducer:_5,useRef:_5,useState:_5,useDebugValue:_5,useDeferredValue:_5,useTransition:_5,useSyncExternalStore:_5,useId:_5,useHostTransitionStatus:_5,useFormState:_5,useActionState:_5,useOptimistic:_5,useMemoCache:_5,useCacheRefresh:_5};zX.useEffectEvent=_5;var sQ=null,uk=null,tQ=null,lk=null,T6=null,V4=null,Iz=null;sQ={readContext:function(w){return X5(w)},use:x8,useCallback:function(w,$){return t="useCallback",G1(),H3($),nv(w,$)},useContext:function(w){return t="useContext",G1(),X5(w)},useEffect:function(w,$){return t="useEffect",G1(),H3($),UY(w,$)},useImperativeHandle:function(w,$,X){return t="useImperativeHandle",G1(),H3(X),rv(w,$,X)},useInsertionEffect:function(w,$){t="useInsertionEffect",G1(),H3($),r9(4,a2,w,$)},useLayoutEffect:function(w,$){return t="useLayoutEffect",G1(),H3($),pv(w,$)},useMemo:function(w,$){t="useMemo",G1(),H3($);var X=Y0.H;Y0.H=T6;try{return ov(w,$)}finally{Y0.H=X}},useReducer:function(w,$,X){t="useReducer",G1();var Y=Y0.H;Y0.H=T6;try{return Dv(w,$,X)}finally{Y0.H=Y}},useRef:function(w){return t="useRef",G1(),av(w)},useState:function(w){t="useState",G1();var $=Y0.H;Y0.H=T6;try{return uv(w)}finally{Y0.H=$}},useDebugValue:function(){t="useDebugValue",G1()},useDeferredValue:function(w,$){return t="useDeferredValue",G1(),sv(w,$)},useTransition:function(){return t="useTransition",G1(),wH()},useSyncExternalStore:function(w,$,X){return t="useSyncExternalStore",G1(),jv(w,$,X)},useId:function(){return t="useId",G1(),$H()},useFormState:function(w,$){return t="useFormState",G1(),QY(),g3(w,$)},useActionState:function(w,$){return t="useActionState",G1(),g3(w,$)},useOptimistic:function(w){return t="useOptimistic",G1(),lv(w)},useHostTransitionStatus:n9,useMemoCache:p9,useCacheRefresh:function(){return t="useCacheRefresh",G1(),ZH()},useEffectEvent:function(w){return t="useEffectEvent",G1(),iv(w)}},uk={readContext:function(w){return X5(w)},use:x8,useCallback:function(w,$){return t="useCallback",W0(),nv(w,$)},useContext:function(w){return t="useContext",W0(),X5(w)},useEffect:function(w,$){return t="useEffect",W0(),UY(w,$)},useImperativeHandle:function(w,$,X){return t="useImperativeHandle",W0(),rv(w,$,X)},useInsertionEffect:function(w,$){t="useInsertionEffect",W0(),r9(4,a2,w,$)},useLayoutEffect:function(w,$){return t="useLayoutEffect",W0(),pv(w,$)},useMemo:function(w,$){t="useMemo",W0();var X=Y0.H;Y0.H=T6;try{return ov(w,$)}finally{Y0.H=X}},useReducer:function(w,$,X){t="useReducer",W0();var Y=Y0.H;Y0.H=T6;try{return Dv(w,$,X)}finally{Y0.H=Y}},useRef:function(w){return t="useRef",W0(),av(w)},useState:function(w){t="useState",W0();var $=Y0.H;Y0.H=T6;try{return uv(w)}finally{Y0.H=$}},useDebugValue:function(){t="useDebugValue",W0()},useDeferredValue:function(w,$){return t="useDeferredValue",W0(),sv(w,$)},useTransition:function(){return t="useTransition",W0(),wH()},useSyncExternalStore:function(w,$,X){return t="useSyncExternalStore",W0(),jv(w,$,X)},useId:function(){return t="useId",W0(),$H()},useActionState:function(w,$){return t="useActionState",W0(),g3(w,$)},useFormState:function(w,$){return t="useFormState",W0(),QY(),g3(w,$)},useOptimistic:function(w){return t="useOptimistic",W0(),lv(w)},useHostTransitionStatus:n9,useMemoCache:p9,useCacheRefresh:function(){return t="useCacheRefresh",W0(),ZH()},useEffectEvent:function(w){return t="useEffectEvent",W0(),iv(w)}},tQ={readContext:function(w){return X5(w)},use:x8,useCallback:function(w,$){return t="useCallback",W0(),FY(w,$)},useContext:function(w){return t="useContext",W0(),X5(w)},useEffect:function(w,$){t="useEffect",W0(),Xw(2048,i2,w,$)},useImperativeHandle:function(w,$,X){return t="useImperativeHandle",W0(),LY(w,$,X)},useInsertionEffect:function(w,$){return t="useInsertionEffect",W0(),Xw(4,a2,w,$)},useLayoutEffect:function(w,$){return t="useLayoutEffect",W0(),Xw(4,Dw,w,$)},useMemo:function(w,$){t="useMemo",W0();var X=Y0.H;Y0.H=V4;try{return kY(w,$)}finally{Y0.H=X}},useReducer:function(w,$,X){t="useReducer",W0();var Y=Y0.H;Y0.H=V4;try{return Q3(w,$,X)}finally{Y0.H=Y}},useRef:function(){return t="useRef",W0(),f1().memoizedState},useState:function(){t="useState",W0();var w=Y0.H;Y0.H=V4;try{return Q3(C4)}finally{Y0.H=w}},useDebugValue:function(){t="useDebugValue",W0()},useDeferredValue:function(w,$){return t="useDeferredValue",W0(),pU(w,$)},useTransition:function(){return t="useTransition",W0(),eU()},useSyncExternalStore:function(w,$,X){return t="useSyncExternalStore",W0(),bY(w,$,X)},useId:function(){return t="useId",W0(),f1().memoizedState},useFormState:function(w){return t="useFormState",W0(),QY(),WY(w)},useActionState:function(w){return t="useActionState",W0(),WY(w)},useOptimistic:function(w,$){return t="useOptimistic",W0(),SU(w,$)},useHostTransitionStatus:n9,useMemoCache:p9,useCacheRefresh:function(){return t="useCacheRefresh",W0(),f1().memoizedState},useEffectEvent:function(w){return t="useEffectEvent",W0(),qY(w)}},lk={readContext:function(w){return X5(w)},use:x8,useCallback:function(w,$){return t="useCallback",W0(),FY(w,$)},useContext:function(w){return t="useContext",W0(),X5(w)},useEffect:function(w,$){t="useEffect",W0(),Xw(2048,i2,w,$)},useImperativeHandle:function(w,$,X){return t="useImperativeHandle",W0(),LY(w,$,X)},useInsertionEffect:function(w,$){return t="useInsertionEffect",W0(),Xw(4,a2,w,$)},useLayoutEffect:function(w,$){return t="useLayoutEffect",W0(),Xw(4,Dw,w,$)},useMemo:function(w,$){t="useMemo",W0();var X=Y0.H;Y0.H=Iz;try{return kY(w,$)}finally{Y0.H=X}},useReducer:function(w,$,X){t="useReducer",W0();var Y=Y0.H;Y0.H=Iz;try{return QZ(w,$,X)}finally{Y0.H=Y}},useRef:function(){return t="useRef",W0(),f1().memoizedState},useState:function(){t="useState",W0();var w=Y0.H;Y0.H=Iz;try{return QZ(C4)}finally{Y0.H=w}},useDebugValue:function(){t="useDebugValue",W0()},useDeferredValue:function(w,$){return t="useDeferredValue",W0(),rU(w,$)},useTransition:function(){return t="useTransition",W0(),wq()},useSyncExternalStore:function(w,$,X){return t="useSyncExternalStore",W0(),bY(w,$,X)},useId:function(){return t="useId",W0(),f1().memoizedState},useFormState:function(w){return t="useFormState",W0(),QY(),KY(w)},useActionState:function(w){return t="useActionState",W0(),KY(w)},useOptimistic:function(w,$){return t="useOptimistic",W0(),dU(w,$)},useHostTransitionStatus:n9,useMemoCache:p9,useCacheRefresh:function(){return t="useCacheRefresh",W0(),f1().memoizedState},useEffectEvent:function(w){return t="useEffectEvent",W0(),qY(w)}},T6={readContext:function(w){return K(),X5(w)},use:function(w){return g(),x8(w)},useCallback:function(w,$){return t="useCallback",g(),G1(),nv(w,$)},useContext:function(w){return t="useContext",g(),G1(),X5(w)},useEffect:function(w,$){return t="useEffect",g(),G1(),UY(w,$)},useImperativeHandle:function(w,$,X){return t="useImperativeHandle",g(),G1(),rv(w,$,X)},useInsertionEffect:function(w,$){t="useInsertionEffect",g(),G1(),r9(4,a2,w,$)},useLayoutEffect:function(w,$){return t="useLayoutEffect",g(),G1(),pv(w,$)},useMemo:function(w,$){t="useMemo",g(),G1();var X=Y0.H;Y0.H=T6;try{return ov(w,$)}finally{Y0.H=X}},useReducer:function(w,$,X){t="useReducer",g(),G1();var Y=Y0.H;Y0.H=T6;try{return Dv(w,$,X)}finally{Y0.H=Y}},useRef:function(w){return t="useRef",g(),G1(),av(w)},useState:function(w){t="useState",g(),G1();var $=Y0.H;Y0.H=T6;try{return uv(w)}finally{Y0.H=$}},useDebugValue:function(){t="useDebugValue",g(),G1()},useDeferredValue:function(w,$){return t="useDeferredValue",g(),G1(),sv(w,$)},useTransition:function(){return t="useTransition",g(),G1(),wH()},useSyncExternalStore:function(w,$,X){return t="useSyncExternalStore",g(),G1(),jv(w,$,X)},useId:function(){return t="useId",g(),G1(),$H()},useFormState:function(w,$){return t="useFormState",g(),G1(),g3(w,$)},useActionState:function(w,$){return t="useActionState",g(),G1(),g3(w,$)},useOptimistic:function(w){return t="useOptimistic",g(),G1(),lv(w)},useMemoCache:function(w){return g(),p9(w)},useHostTransitionStatus:n9,useCacheRefresh:function(){return t="useCacheRefresh",G1(),ZH()},useEffectEvent:function(w){return t="useEffectEvent",g(),G1(),iv(w)}},V4={readContext:function(w){return K(),X5(w)},use:function(w){return g(),x8(w)},useCallback:function(w,$){return t="useCallback",g(),W0(),FY(w,$)},useContext:function(w){return t="useContext",g(),W0(),X5(w)},useEffect:function(w,$){t="useEffect",g(),W0(),Xw(2048,i2,w,$)},useImperativeHandle:function(w,$,X){return t="useImperativeHandle",g(),W0(),LY(w,$,X)},useInsertionEffect:function(w,$){return t="useInsertionEffect",g(),W0(),Xw(4,a2,w,$)},useLayoutEffect:function(w,$){return t="useLayoutEffect",g(),W0(),Xw(4,Dw,w,$)},useMemo:function(w,$){t="useMemo",g(),W0();var X=Y0.H;Y0.H=V4;try{return kY(w,$)}finally{Y0.H=X}},useReducer:function(w,$,X){t="useReducer",g(),W0();var Y=Y0.H;Y0.H=V4;try{return Q3(w,$,X)}finally{Y0.H=Y}},useRef:function(){return t="useRef",g(),W0(),f1().memoizedState},useState:function(){t="useState",g(),W0();var w=Y0.H;Y0.H=V4;try{return Q3(C4)}finally{Y0.H=w}},useDebugValue:function(){t="useDebugValue",g(),W0()},useDeferredValue:function(w,$){return t="useDeferredValue",g(),W0(),pU(w,$)},useTransition:function(){return t="useTransition",g(),W0(),eU()},useSyncExternalStore:function(w,$,X){return t="useSyncExternalStore",g(),W0(),bY(w,$,X)},useId:function(){return t="useId",g(),W0(),f1().memoizedState},useFormState:function(w){return t="useFormState",g(),W0(),WY(w)},useActionState:function(w){return t="useActionState",g(),W0(),WY(w)},useOptimistic:function(w,$){return t="useOptimistic",g(),W0(),SU(w,$)},useMemoCache:function(w){return g(),p9(w)},useHostTransitionStatus:n9,useCacheRefresh:function(){return t="useCacheRefresh",W0(),f1().memoizedState},useEffectEvent:function(w){return t="useEffectEvent",g(),W0(),qY(w)}},Iz={readContext:function(w){return K(),X5(w)},use:function(w){return g(),x8(w)},useCallback:function(w,$){return t="useCallback",g(),W0(),FY(w,$)},useContext:function(w){return t="useContext",g(),W0(),X5(w)},useEffect:function(w,$){t="useEffect",g(),W0(),Xw(2048,i2,w,$)},useImperativeHandle:function(w,$,X){return t="useImperativeHandle",g(),W0(),LY(w,$,X)},useInsertionEffect:function(w,$){return t="useInsertionEffect",g(),W0(),Xw(4,a2,w,$)},useLayoutEffect:function(w,$){return t="useLayoutEffect",g(),W0(),Xw(4,Dw,w,$)},useMemo:function(w,$){t="useMemo",g(),W0();var X=Y0.H;Y0.H=V4;try{return kY(w,$)}finally{Y0.H=X}},useReducer:function(w,$,X){t="useReducer",g(),W0();var Y=Y0.H;Y0.H=V4;try{return QZ(w,$,X)}finally{Y0.H=Y}},useRef:function(){return t="useRef",g(),W0(),f1().memoizedState},useState:function(){t="useState",g(),W0();var w=Y0.H;Y0.H=V4;try{return QZ(C4)}finally{Y0.H=w}},useDebugValue:function(){t="useDebugValue",g(),W0()},useDeferredValue:function(w,$){return t="useDeferredValue",g(),W0(),rU(w,$)},useTransition:function(){return t="useTransition",g(),W0(),wq()},useSyncExternalStore:function(w,$,X){return t="useSyncExternalStore",g(),W0(),bY(w,$,X)},useId:function(){return t="useId",g(),W0(),f1().memoizedState},useFormState:function(w){return t="useFormState",g(),W0(),KY(w)},useActionState:function(w){return t="useActionState",g(),W0(),KY(w)},useOptimistic:function(w,$){return t="useOptimistic",g(),W0(),dU(w,$)},useMemoCache:function(w){return g(),p9(w)},useHostTransitionStatus:n9,useCacheRefresh:function(){return t="useCacheRefresh",W0(),f1().memoizedState},useEffectEvent:function(w){return t="useEffectEvent",g(),W0(),qY(w)}};var ck={},ak=new Set,ik=new Set,pk=new Set,rk=new Set,nk=new Set,ok=new Set,sk=new Set,tk=new Set,ek=new Set,wN=new Set;Object.freeze(ck);var eQ={enqueueSetState:function(w,$,X){w=w._reactInternals;var Y=Pw(w),B=O8(Y);B.payload=$,X!==void 0&&X!==null&&(JH(X),B.callback=X),$=A8(w,B,Y),$!==null&&(e4(Y,"this.setState()",w),k5($,w,Y),GZ($,w,Y))},enqueueReplaceState:function(w,$,X){w=w._reactInternals;var Y=Pw(w),B=O8(Y);B.tag=yk,B.payload=$,X!==void 0&&X!==null&&(JH(X),B.callback=X),$=A8(w,B,Y),$!==null&&(e4(Y,"this.replaceState()",w),k5($,w,Y),GZ($,w,Y))},enqueueForceUpdate:function(w,$){w=w._reactInternals;var X=Pw(w),Y=O8(X);Y.tag=Sk,$!==void 0&&$!==null&&(JH($),Y.callback=$),$=A8(w,Y,X),$!==null&&(e4(X,"this.forceUpdate()",w),k5($,w,X),GZ($,w,X))}},n3=null,wg=null,$g=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),S5=!1,$N={},ZN={},XN={},JN={},o3=!1,YN={},_z={},Zg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},zN=!1,GN=null;GN=new Set;var G8=!1,D5=!1,Xg=!1,BN=typeof WeakSet==="function"?WeakSet:Set,Q2=null,s3=null,t3=null,d5=null,zw=!1,h4=null,r5=!1,GX=8192,VV={getCacheForType:function(w){var $=X5(h5),X=$.data.get(w);return X===void 0&&(X=w(),$.data.set(w,X)),X},cacheSignal:function(){return X5(h5).controller.signal},getOwner:function(){return hw}};if(typeof Symbol==="function"&&Symbol.for){var BX=Symbol.for;BX("selector.component"),BX("selector.has_pseudo_class"),BX("selector.role"),BX("selector.test_id"),BX("selector.text")}var hV=[],RV=typeof WeakMap==="function"?WeakMap:Map,g2=0,n5=2,dw=4,B8=0,vX=1,Q7=2,Oz=3,r8=4,Az=6,vN=5,F1=g2,u1=null,Y1=null,Z1=0,Gw=0,Cz=1,g7=2,HX=3,HN=4,Jg=5,QX=6,Mz=7,Yg=8,b7=9,V1=Gw,jw=null,n8=!1,e3=!1,zg=!1,I6=0,g5=B8,o8=0,s8=0,Gg=0,Bw=0,W7=0,gX=null,p2=null,xz=!1,mz=0,QN=0,gN=300,Pz=1/0,bN=500,bX=null,O5=null,t8=null,fz=0,Bg=1,vg=2,WN=3,e8=0,KN=1,UN=2,qN=3,LN=4,Vz=5,j5=0,w9=null,w$=null,R4=0,Hg=0,Qg=-0,gg=null,FN=null,kN=null,y4=fz,NN=null,yV=50,WX=0,bg=null,Wg=!1,hz=!1,SV=50,K7=0,KX=null,$$=!1,Rz=null,TN=!1,IN=new Set,DV={},yz=null,Z$=null,Kg=!1,Ug=!1,Sz=!1,qg=!1,$9=0,Lg={};(function(){for(var w=0;w<xQ.length;w++){var $=xQ[w],X=$.toLowerCase();$=$[0].toUpperCase()+$.slice(1),A4(X,"on"+$)}A4(eF,"onAnimationEnd"),A4(wk,"onAnimationIteration"),A4($k,"onAnimationStart"),A4("dblclick","onDoubleClick"),A4("focusin","onFocus"),A4("focusout","onBlur"),A4(WV,"onTransitionRun"),A4(KV,"onTransitionStart"),A4(UV,"onTransitionCancel"),A4(Zk,"onTransitionEnd")})(),e0("onMouseEnter",["mouseout","mouseover"]),e0("onMouseLeave",["mouseout","mouseover"]),e0("onPointerEnter",["pointerout","pointerover"]),e0("onPointerLeave",["pointerout","pointerover"]),V0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),V0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),V0("onBeforeInput",["compositionend","keypress","textInput","paste"]),V0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),V0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),V0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var UX="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(UX)),Dz="_reactListening"+Math.random().toString(36).slice(2),_N=!1,ON=!1,dz=!1,AN=!1,jz=!1,Ez=!1,CN=!1,uz={},dV=/\r\n?/g,jV=/\u0000|\uFFFD/g,U7="http://www.w3.org/1999/xlink",kg="http://www.w3.org/XML/1998/namespace",EV="javascript:throw new Error('React form unexpectedly submitted.')",uV="suppressHydrationWarning",q7="&",lz="/&",qX="$",LX="/$",Z9="$?",L7="$~",X$="$!",lV="html",cV="body",aV="head",Ng="F!",MN="F",xN="loading",iV="style",v8=0,J$=1,cz=2,Tg=null,Ig=null,mN={dialog:!0,webview:!0},_g=null,FX=void 0,PN=typeof setTimeout==="function"?setTimeout:void 0,pV=typeof clearTimeout==="function"?clearTimeout:void 0,F7=-1,fN=typeof Promise==="function"?Promise:void 0,rV=typeof queueMicrotask==="function"?queueMicrotask:typeof fN<"u"?function(w){return fN.resolve(null).then(w).catch(PP)}:PN,Og=null,k7=0,kX=1,VN=2,hN=3,v4=4,H4=new Map,RN=new Set,H8=M1.d;M1.d={f:function(){var w=H8.f(),$=q3();return w||$},r:function(w){var $=c0(w);$!==null&&$.tag===5&&$.type==="form"?tU($):H8.r(w)},D:function(w){H8.D(w),aL("dns-prefetch",w,null)},C:function(w,$){H8.C(w,$),aL("preconnect",w,$)},L:function(w,$,X){H8.L(w,$,X);var Y=Y$;if(Y&&w&&$){var B='link[rel="preload"][as="'+sw($)+'"]';$==="image"?X&&X.imageSrcSet?(B+='[imagesrcset="'+sw(X.imageSrcSet)+'"]',typeof X.imageSizes==="string"&&(B+='[imagesizes="'+sw(X.imageSizes)+'"]')):B+='[href="'+sw(w)+'"]':B+='[href="'+sw(w)+'"]';var H=B;switch($){case"style":H=k3(w);break;case"script":H=N3(w)}H4.has(H)||(w=B1({rel:"preload",href:$==="image"&&X&&X.imageSrcSet?void 0:w,as:$},X),H4.set(H,w),Y.querySelector(B)!==null||$==="style"&&Y.querySelector(AZ(H))||$==="script"&&Y.querySelector(CZ(H))||($=Y.createElement("link"),k2($,"link",w),h0($),Y.head.appendChild($)))}},m:function(w,$){H8.m(w,$);var X=Y$;if(X&&w){var Y=$&&typeof $.as==="string"?$.as:"script",B='link[rel="modulepreload"][as="'+sw(Y)+'"][href="'+sw(w)+'"]',H=B;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":H=N3(w)}if(!H4.has(H)&&(w=B1({rel:"modulepreload",href:w},$),H4.set(H,w),X.querySelector(B)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(X.querySelector(CZ(H)))return}Y=X.createElement("link"),k2(Y,"link",w),h0(Y),X.head.appendChild(Y)}}},X:function(w,$){H8.X(w,$);var X=Y$;if(X&&w){var Y=o0(X).hoistableScripts,B=N3(w),H=Y.get(B);H||(H=X.querySelector(CZ(B)),H||(w=B1({src:w,async:!0},$),($=H4.get(B))&&rH(w,$),H=X.createElement("script"),h0(H),k2(H,"link",w),X.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},Y.set(B,H))}},S:function(w,$,X){H8.S(w,$,X);var Y=Y$;if(Y&&w){var B=o0(Y).hoistableStyles,H=k3(w);$=$||"default";var W=B.get(H);if(!W){var q={loading:k7,preload:null};if(W=Y.querySelector(AZ(H)))q.loading=kX|v4;else{w=B1({rel:"stylesheet",href:w,"data-precedence":$},X),(X=H4.get(H))&&pH(w,X);var T=W=Y.createElement("link");h0(T),k2(T,"link",w),T._p=new Promise(function(I,y){T.onload=I,T.onerror=y}),T.addEventListener("load",function(){q.loading|=kX}),T.addEventListener("error",function(){q.loading|=VN}),q.loading|=v4,dY(W,$,Y)}W={type:"stylesheet",instance:W,count:1,state:q},B.set(H,W)}}},M:function(w,$){H8.M(w,$);var X=Y$;if(X&&w){var Y=o0(X).hoistableScripts,B=N3(w),H=Y.get(B);H||(H=X.querySelector(CZ(B)),H||(w=B1({src:w,async:!0,type:"module"},$),($=H4.get(B))&&rH(w,$),H=X.createElement("script"),h0(H),k2(H,"link",w),X.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},Y.set(B,H))}}};var Y$=typeof document>"u"?null:document,az=null,nV=60000,oV=800,sV=500,Ag=0,Cg=null,iz=null,N7=Qf,NX={$$typeof:b6,Provider:null,Consumer:null,_currentValue:N7,_currentValue2:N7,_threadCount:0},yN="%c%s%c",SN="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",DN="",pz=" ",tV=Function.prototype.bind,dN=!1,jN=null,EN=null,uN=null,lN=null,cN=null,aN=null,iN=null,pN=null,rN=null,nN=null;jN=function(w,$,X,Y){$=Z(w,$),$!==null&&(X=J($.memoizedState,X,0,Y),$.memoizedState=X,$.baseState=X,w.memoizedProps=B1({},w.memoizedProps),X=x2(w,2),X!==null&&k5(X,w,2))},EN=function(w,$,X){$=Z(w,$),$!==null&&(X=v($.memoizedState,X,0),$.memoizedState=X,$.baseState=X,w.memoizedProps=B1({},w.memoizedProps),X=x2(w,2),X!==null&&k5(X,w,2))},uN=function(w,$,X,Y){$=Z(w,$),$!==null&&(X=z($.memoizedState,X,Y),$.memoizedState=X,$.baseState=X,w.memoizedProps=B1({},w.memoizedProps),X=x2(w,2),X!==null&&k5(X,w,2))},lN=function(w,$,X){w.pendingProps=J(w.memoizedProps,$,0,X),w.alternate&&(w.alternate.pendingProps=w.pendingProps),$=x2(w,2),$!==null&&k5($,w,2)},cN=function(w,$){w.pendingProps=v(w.memoizedProps,$,0),w.alternate&&(w.alternate.pendingProps=w.pendingProps),$=x2(w,2),$!==null&&k5($,w,2)},aN=function(w,$,X){w.pendingProps=z(w.memoizedProps,$,X),w.alternate&&(w.alternate.pendingProps=w.pendingProps),$=x2(w,2),$!==null&&k5($,w,2)},iN=function(w){var $=x2(w,2);$!==null&&k5($,w,2)},pN=function(w){var $=i5(),X=x2(w,$);X!==null&&k5(X,w,$)},rN=function(w){b=w},nN=function(w){Q=w};var rz=!0,nz=null,Mg=!1,X9=null,J9=null,Y9=null,TX=new Map,IX=new Map,z9=[],eV="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),oz=null;if(cY.prototype.render=wQ.prototype.render=function(w){var $=this._internalRoot;if($===null)throw Error("Cannot update an unmounted root.");var X=arguments;typeof X[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):C(X[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof X[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),X=w;var Y=$.current,B=Pw(Y);nH(Y,B,X,$,null,null)},cY.prototype.unmount=wQ.prototype.unmount=function(){var w=arguments;if(typeof w[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),w=this._internalRoot,w!==null){this._internalRoot=null;var $=w.containerInfo;(F1&(n5|dw))!==g2&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),nH(w.current,2,null,w,null,null),q3(),$[y8]=null}},cY.prototype.unstable_scheduleHydration=function(w){if(w){var $=c();w={blockedOn:null,target:w,priority:$};for(var X=0;X<z9.length&&$!==0&&$<z9[X].priority;X++);z9.splice(X,0,w),X===0&&YF(w)}},function(){var w=v$.version;if(w!=="19.2.6")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
229
- - react: `+(w+`
230
- - react-dom: 19.2.6
231
- Learn more: https://react.dev/warnings/version-mismatch`))}(),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://react.dev/link/react-polyfills"),M1.findDOMNode=function(w){var $=w._reactInternals;if($===void 0){if(typeof w.render==="function")throw Error("Unable to find node on an unmounted component.");throw w=Object.keys(w).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+w)}return w=Z0($),w=w!==null?p(w):null,w=w===null?null:w.stateNode,w},!function(){var w={bundleType:1,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:Y0,reconcilerVersion:"19.2.6"};return w.overrideHookState=jN,w.overrideHookStateDeletePath=EN,w.overrideHookStateRenamePath=uN,w.overrideProps=lN,w.overridePropsDeletePath=cN,w.overridePropsRenamePath=aN,w.scheduleUpdate=iN,w.scheduleRetry=pN,w.setErrorHandler=rN,w.setSuspenseHandler=nN,w.scheduleRefresh=A,w.scheduleRoot=N,w.setRefreshHandler=_,w.getCurrentFiber=Xf,F5(w)}()&&L6&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var oN=window.location.protocol;/^(https?|file):$/.test(oN)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(oN==="file:"?`
232
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}mh.createRoot=function(w,$){if(!C(w))throw Error("Target container is not a DOM element.");vF(w);var X=!1,Y="",B=zq,H=Gq,W=Bq;return $!==null&&$!==void 0&&($.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof $==="object"&&$!==null&&$.$$typeof===g6&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
233
-
234
- let root = createRoot(domContainer);
235
- root.render(<App />);`),$.unstable_strictMode===!0&&(X=!0),$.identifierPrefix!==void 0&&(Y=$.identifierPrefix),$.onUncaughtError!==void 0&&(B=$.onUncaughtError),$.onCaughtError!==void 0&&(H=$.onCaughtError),$.onRecoverableError!==void 0&&(W=$.onRecoverableError)),$=tL(w,1,!1,null,null,X,Y,null,B,H,W,BF),w[y8]=$.current,RH(w),new wQ($)},mh.hydrateRoot=function(w,$,X){if(!C(w))throw Error("Target container is not a DOM element.");vF(w),$===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,B="",H=zq,W=Gq,q=Bq,T=null;return X!==null&&X!==void 0&&(X.unstable_strictMode===!0&&(Y=!0),X.identifierPrefix!==void 0&&(B=X.identifierPrefix),X.onUncaughtError!==void 0&&(H=X.onUncaughtError),X.onCaughtError!==void 0&&(W=X.onCaughtError),X.onRecoverableError!==void 0&&(q=X.onRecoverableError),X.formState!==void 0&&(T=X.formState)),$=tL(w,1,!0,$,X!=null?X:null,Y,B,T,H,W,q,BF),$.context=eL(null),X=$.current,Y=Pw(X),Y=_4(Y),B=O8(Y),B.callback=null,A8(X,B,Y),e4(Y,"hydrateRoot()",null),X=Y,$.current.lanes=X,r4($,X),H6($),w[y8]=$.current,RH(w),new cY($)},mh.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var VT=G9((wr,fT)=>{var Ph=P(PT());fT.exports=Ph});var H0=G9((mD)=>{var j7=P(K0());(function(){function Z(M){if(M==null)return null;if(typeof M==="function")return M.$$typeof===E?null:M.displayName||M.name||null;if(typeof M==="string")return M;switch(M){case _:return"Fragment";case x:return"Profiler";case C:return"StrictMode";case Z0:return"Suspense";case p:return"SuspenseList";case s:return"Activity"}if(typeof M==="object")switch(typeof M.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case A:return"Portal";case d:return M.displayName||"Context";case S:return(M._context.displayName||"Context")+".Consumer";case i:var z0=M.render;return M=M.displayName,M||(M=z0.displayName||z0.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case j:return z0=M.displayName||null,z0!==null?z0:Z(M.type)||"Memo";case $0:z0=M._payload,M=M._init;try{return Z(M(z0))}catch(m){}}return null}function J(M){return""+M}function z(M){try{J(M);var z0=!1}catch(a){z0=!0}if(z0){z0=console;var m=z0.error,r=typeof Symbol==="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return m.call(z0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),J(M)}}function G(M){if(M===_)return"<>";if(typeof M==="object"&&M!==null&&M.$$typeof===$0)return"<...>";try{var z0=Z(M);return z0?"<"+z0+">":"<...>"}catch(m){return"<...>"}}function v(){var M=Q0.A;return M===null?null:M.getOwner()}function Q(){return Error("react-stack-top-frame")}function b(M){if(G0.call(M,"key")){var z0=Object.getOwnPropertyDescriptor(M,"key").get;if(z0&&z0.isReactWarning)return!1}return M.key!==void 0}function g(M,z0){function m(){e||(e=!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)",z0))}m.isReactWarning=!0,Object.defineProperty(M,"key",{get:m,configurable:!0})}function K(){var M=Z(this.type);return B0[M]||(B0[M]=!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.")),M=this.props.ref,M!==void 0?M:null}function F(M,z0,m,r,a,X0){var J0=m.ref;return M={$$typeof:N,type:M,key:z0,props:m,_owner:r},(J0!==void 0?J0:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:K}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X0}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function L(M,z0,m,r,a,X0){var J0=z0.children;if(J0!==void 0)if(r)if(q0(J0)){for(r=0;r<J0.length;r++)U(J0[r]);Object.freeze&&Object.freeze(J0)}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 U(J0);if(G0.call(z0,"key")){J0=Z(M);var w0=Object.keys(z0).filter(function(N0){return N0!=="key"});r=0<w0.length?"{key: someKey, "+w0.join(": ..., ")+": ...}":"{key: someKey}",l[J0+r]||(w0=0<w0.length?"{"+w0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
- let props = %s;
237
- <%s {...props} />
238
- React keys must be passed directly to JSX without using spread:
239
- let props = %s;
240
- <%s key={someKey} {...props} />`,r,J0,w0,J0),l[J0+r]=!0)}if(J0=null,m!==void 0&&(z(m),J0=""+m),b(z0)&&(z(z0.key),J0=""+z0.key),"key"in z0){m={};for(var b0 in z0)b0!=="key"&&(m[b0]=z0[b0])}else m=z0;return J0&&g(m,typeof M==="function"?M.displayName||M.name||"Unknown":M),F(M,J0,m,v(),a,X0)}function U(M){k(M)?M._store&&(M._store.validated=1):typeof M==="object"&&M!==null&&M.$$typeof===$0&&(M._payload.status==="fulfilled"?k(M._payload.value)&&M._payload.value._store&&(M._payload.value._store.validated=1):M._store&&(M._store.validated=1))}function k(M){return typeof M==="object"&&M!==null&&M.$$typeof===N}var N=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),d=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),Z0=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),$0=Symbol.for("react.lazy"),s=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),Q0=j7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G0=Object.prototype.hasOwnProperty,q0=Array.isArray,F0=console.createTask?console.createTask:function(){return null};j7={react_stack_bottom_frame:function(M){return M()}};var e,B0={},u=j7.react_stack_bottom_frame.bind(j7,Q)(),o=F0(G(Q)),l={};mD.Fragment=_,mD.jsxDEV=function(M,z0,m,r){var a=1e4>Q0.recentlyCreatedOwnerStacks++;return L(M,z0,m,r,a?Error("react-stack-top-frame"):u,a?F0(G(M)):o)}})()});var KO={};Hh(KO,{stopAgent:()=>$W,slingAgent:()=>wW,sendMail:()=>ob,runMerge:()=>XW,replyMail:()=>sb,markRead:()=>DD,formatTokens:()=>m6,formatDuration:()=>x$,formatCost:()=>M$,fetchWorktrees:()=>YW,fetchSpecs:()=>vW,fetchSpec:()=>HW,fetchRuns:()=>W8,fetchRun:()=>RD,fetchMetrics:()=>bJ,fetchMessage:()=>nb,fetchMergeQueue:()=>JW,fetchMergePreview:()=>ZW,fetchMailAgents:()=>gJ,fetchMail:()=>rb,fetchLogs:()=>zW,fetchGroups:()=>BW,fetchEvents:()=>SD,fetchErrors:()=>WJ,fetchDoctor:()=>GW,fetchAgents:()=>QJ,fetchAgent:()=>yD,deleteMail:()=>tb});async function W2(Z){let J=await fetch(Z),z=await J.json();if(!J.ok||z.success!==!0||z.data===void 0)throw Error(z.error??`Request failed: ${J.status}`);return{data:z.data,nextCursor:z.nextCursor??null}}async function W8(Z=50){let{data:J}=await W2(`/api/runs?limit=${Z}`);return J}async function RD(Z){let{data:J}=await W2(`/api/runs/${encodeURIComponent(Z)}`);return J}async function QJ(Z){let J=new URLSearchParams;if(Z?.runId)J.set("run",Z.runId);if(Z?.limit!==void 0)J.set("limit",String(Z.limit));let z=J.size>0?`?${J.toString()}`:"",{data:G}=await W2(`/api/agents${z}`);return G}async function yD(Z){let{data:J}=await W2(`/api/agents/${encodeURIComponent(Z)}`);return J}async function SD(Z){let J=new URLSearchParams;if(Z?.runId)J.set("run",Z.runId);if(Z?.agent)J.set("agent",Z.agent);if(Z?.since)J.set("since",Z.since);if(Z?.limit!==void 0)J.set("limit",String(Z.limit));let z=J.size>0?`?${J.toString()}`:"";return W2(`/api/events${z}`)}async function rb(Z){let J=new URLSearchParams;if(Z?.unread)J.set("unread","true");if(Z?.from)J.set("from",Z.from);if(Z?.to)J.set("to",Z.to);let z=J.toString(),{data:G}=await W2(`/api/mail${z?`?${z}`:""}`);return G}async function nb(Z){let{data:J}=await W2(`/api/mail/${encodeURIComponent(Z)}`);return J}async function DD(Z){let J=await fetch(`/api/mail/${encodeURIComponent(Z)}/read`,{method:"POST"}),z=await J.json();if(!J.ok||z.success!==!0)throw Error(z.error??"mark read failed")}async function gJ(){let{data:Z}=await W2("/api/agents"),J=Z.map((z)=>z.agentName);return[...new Set(J)].sort()}async function ob(Z){let J=await fetch("/api/mail",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Z)}),z=await J.json();if(!J.ok||z.success!==!0||z.data===void 0)throw Error(z.error??"send mail failed");return z.data}async function sb(Z,J){let z=await fetch(`/api/mail/${encodeURIComponent(Z)}/reply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(J)}),G=await z.json();if(!z.ok||G.success!==!0||G.data===void 0)throw Error(G.error??"reply mail failed");return G.data}async function tb(Z){let J=await fetch(`/api/mail/${encodeURIComponent(Z)}`,{method:"DELETE"}),z=await J.json();if(!J.ok||z.success!==!0)throw Error(z.error??"delete mail failed")}async function bJ(Z=50){let{data:J}=await W2(`/api/metrics?limit=${Z}`);return J}async function WJ(Z){let J=new URLSearchParams;if(Z?.agent)J.set("agent",Z.agent);if(Z?.runId)J.set("run",Z.runId);if(Z?.limit!==void 0)J.set("limit",String(Z.limit));let z=J.toString(),{data:G}=await W2(`/api/errors${z?`?${z}`:""}`);return G}async function eb(Z,J){let z=await fetch(Z,{method:"POST",headers:{"Content-Type":"application/json"},...J!==void 0?{body:JSON.stringify(J)}:{}}),G=await z.json();if(!z.ok||G.success!==!0||G.data===void 0)throw Error(G.error??`Request failed: ${z.status}`);return G.data}async function wW(Z){return eb("/api/agents/sling",Z)}async function $W(Z,J){return eb(`/api/agents/${encodeURIComponent(Z)}/stop`,{cleanWorktree:J?.cleanWorktree??!1})}async function ZW(Z,J){let z=new URLSearchParams({branch:Z});if(J)z.set("into",J);let{data:G}=await W2(`/api/merge/preview?${z.toString()}`);return G}async function XW(Z){return eb("/api/merge",Z)}function M$(Z){if(Z===0)return"$0.00";if(Z<0.01)return`$${Z.toFixed(4)}`;return`$${Z.toFixed(2)}`}function m6(Z){if(Z>=1e6)return`${(Z/1e6).toFixed(1)}M`;if(Z>=1000)return`${(Z/1000).toFixed(1)}k`;return String(Z)}function x$(Z){if(Z<=0)return"—";let J=Math.round(Z/1000);if(J<60)return`${J}s`;let z=Math.floor(J/60);if(z<60)return`${z}m ${J%60}s`;return`${Math.floor(z/60)}h ${z%60}m`}async function JW(Z){let J=Z?`?status=${Z}`:"",{data:z}=await W2(`/api/merge/queue${J}`);return z}async function YW(){let{data:Z}=await W2("/api/worktrees");return Z}async function zW(Z){let J=new URLSearchParams;if(Z?.agent)J.set("agent",Z.agent);if(Z?.level)J.set("level",Z.level);if(Z?.since)J.set("since",Z.since);if(Z?.limit!==void 0)J.set("limit",String(Z.limit));let z=J.toString(),{data:G}=await W2(`/api/logs${z?`?${z}`:""}`);return G}async function GW(Z){let J=Z?`?category=${encodeURIComponent(Z)}`:"",{data:z}=await W2(`/api/doctor${J}`);return z}async function BW(){let{data:Z}=await W2("/api/groups");return Z}async function vW(){let{data:Z}=await W2("/api/specs");return Z}async function HW(Z){let{data:J}=await W2(`/api/specs/${encodeURIComponent(Z)}`);return J}var _6=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(Z){return this.listeners.add(Z),this.onSubscribe(),()=>{this.listeners.delete(Z),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var Qh=class extends _6{#w;#$;#Z;constructor(){super();this.#Z=(Z)=>{if(typeof window<"u"&&window.addEventListener){let J=()=>Z();return window.addEventListener("visibilitychange",J,!1),()=>{window.removeEventListener("visibilitychange",J)}}return}}onSubscribe(){if(!this.#$)this.setEventListener(this.#Z)}onUnsubscribe(){if(!this.hasListeners())this.#$?.(),this.#$=void 0}setEventListener(Z){this.#Z=Z,this.#$?.(),this.#$=Z((J)=>{if(typeof J==="boolean")this.setFocused(J);else this.onFocus()})}setFocused(Z){if(this.#w!==Z)this.#w=Z,this.onFocus()}onFocus(){let Z=this.isFocused();this.listeners.forEach((J)=>{J(Z)})}isFocused(){if(typeof this.#w==="boolean")return this.#w;return globalThis.document?.visibilityState!=="hidden"}},z$=new Qh;var gh={setTimeout:(Z,J)=>setTimeout(Z,J),clearTimeout:(Z)=>clearTimeout(Z),setInterval:(Z,J)=>setInterval(Z,J),clearInterval:(Z)=>clearInterval(Z)},bh=class{#w=gh;#$=!1;setTimeoutProvider(Z){if(this.#$&&Z!==this.#w)console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#w,provider:Z});this.#w=Z,this.#$=!1}setTimeout(Z,J){return this.#$=!0,this.#w.setTimeout(Z,J)}clearTimeout(Z){this.#w.clearTimeout(Z)}setInterval(Z,J){return this.#$=!0,this.#w.setInterval(Z,J)}clearInterval(Z){this.#w.clearInterval(Z)}},O6=new bh;function sN(Z){setTimeout(Z,0)}var Pg=typeof window>"u"||"Deno"in globalThis;function E5(){}function wT(Z,J){return typeof Z==="function"?Z(J):Z}function _X(Z){return typeof Z==="number"&&Z>=0&&Z!==1/0}function tz(Z,J){return Math.max(Z+(J||0)-Date.now(),0)}function S4(Z,J){return typeof Z==="function"?Z(J):Z}function r2(Z,J){return typeof Z==="function"?Z(J):Z}function ez(Z,J){let{type:z="all",exact:G,fetchStatus:v,predicate:Q,queryKey:b,stale:g}=Z;if(b){if(G){if(J.queryHash!==OX(b,J.options))return!1}else if(!_7(J.queryKey,b))return!1}if(z!=="all"){let K=J.isActive();if(z==="active"&&!K)return!1;if(z==="inactive"&&K)return!1}if(typeof g==="boolean"&&J.isStale()!==g)return!1;if(v&&v!==J.state.fetchStatus)return!1;if(Q&&!Q(J))return!1;return!0}function wG(Z,J){let{exact:z,status:G,predicate:v,mutationKey:Q}=Z;if(Q){if(!J.options.mutationKey)return!1;if(z){if(T7(J.options.mutationKey)!==T7(Q))return!1}else if(!_7(J.options.mutationKey,Q))return!1}if(G&&J.state.status!==G)return!1;if(v&&!v(J))return!1;return!0}function OX(Z,J){return(J?.queryKeyHashFn||T7)(Z)}function T7(Z){return JSON.stringify(Z,(J,z)=>mg(z)?Object.keys(z).sort().reduce((G,v)=>{return G[v]=z[v],G},{}):z)}function _7(Z,J){if(Z===J)return!0;if(typeof Z!==typeof J)return!1;if(Z&&J&&typeof Z==="object"&&typeof J==="object")return Object.keys(J).every((z)=>_7(Z[z],J[z]));return!1}var Wh=Object.prototype.hasOwnProperty;function sz(Z,J,z=0){if(Z===J)return Z;if(z>500)return J;let G=tN(Z)&&tN(J);if(!G&&!(mg(Z)&&mg(J)))return J;let Q=(G?Z:Object.keys(Z)).length,b=G?J:Object.keys(J),g=b.length,K=G?Array(g):{},F=0;for(let L=0;L<g;L++){let U=G?L:b[L],k=Z[U],N=J[U];if(k===N){if(K[U]=k,G?L<Q:Wh.call(Z,U))F++;continue}if(k===null||N===null||typeof k!=="object"||typeof N!=="object"){K[U]=N;continue}let A=sz(k,N,z+1);if(K[U]=A,A===k)F++}return Q===g&&F===Q?Z:K}function $G(Z,J){if(!J||Object.keys(Z).length!==Object.keys(J).length)return!1;for(let z in Z)if(Z[z]!==J[z])return!1;return!0}function tN(Z){return Array.isArray(Z)&&Z.length===Object.keys(Z).length}function mg(Z){if(!eN(Z))return!1;let J=Z.constructor;if(J===void 0)return!0;let z=J.prototype;if(!eN(z))return!1;if(!z.hasOwnProperty("isPrototypeOf"))return!1;if(Object.getPrototypeOf(Z)!==Object.prototype)return!1;return!0}function eN(Z){return Object.prototype.toString.call(Z)==="[object Object]"}function $T(Z){return new Promise((J)=>{O6.setTimeout(J,Z)})}function AX(Z,J,z){if(typeof z.structuralSharing==="function")return z.structuralSharing(Z,J);else if(z.structuralSharing!==!1){try{return sz(Z,J)}catch(G){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. [${z.queryHash}]: ${G}`),G}return sz(Z,J)}return J}function ZT(Z,J,z=0){let G=[...Z,J];return z&&G.length>z?G.slice(1):G}function XT(Z,J,z=0){let G=[J,...Z];return z&&G.length>z?G.slice(0,-1):G}var I7=Symbol();function ZG(Z,J){if(Z.queryFn===I7)console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${Z.queryHash}'`);if(!Z.queryFn&&J?.initialPromise)return()=>J.initialPromise;if(!Z.queryFn||Z.queryFn===I7)return()=>Promise.reject(Error(`Missing queryFn: '${Z.queryHash}'`));return Z.queryFn}function XG(Z,J){if(typeof Z==="function")return Z(...J);return!!Z}function JT(Z,J,z){let G=!1,v;return Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>{if(v??=J(),G)return v;if(G=!0,v.aborted)z();else v.addEventListener("abort",z,{once:!0});return v}}),Z}var A6=(()=>{let Z=()=>Pg;return{isServer(){return Z()},setIsServer(J){Z=J}}})();function CX(){let Z,J,z=new Promise((v,Q)=>{Z=v,J=Q});z.status="pending",z.catch(()=>{});function G(v){Object.assign(z,v),delete z.resolve,delete z.reject}return z.resolve=(v)=>{G({status:"fulfilled",value:v}),Z(v)},z.reject=(v)=>{G({status:"rejected",reason:v}),J(v)},z}var YT=sN;function Kh(){let Z=[],J=0,z=(g)=>{g()},G=(g)=>{g()},v=YT,Q=(g)=>{if(J)Z.push(g);else v(()=>{z(g)})},b=()=>{let g=Z;if(Z=[],g.length)v(()=>{G(()=>{g.forEach((K)=>{z(K)})})})};return{batch:(g)=>{let K;J++;try{K=g()}finally{if(J--,!J)b()}return K},batchCalls:(g)=>{return(...K)=>{Q(()=>{g(...K)})}},schedule:Q,setNotifyFunction:(g)=>{z=g},setBatchNotifyFunction:(g)=>{G=g},setScheduler:(g)=>{v=g}}}var Y5=Kh();var Uh=class extends _6{#w=!0;#$;#Z;constructor(){super();this.#Z=(Z)=>{if(typeof window<"u"&&window.addEventListener){let J=()=>Z(!0),z=()=>Z(!1);return window.addEventListener("online",J,!1),window.addEventListener("offline",z,!1),()=>{window.removeEventListener("online",J),window.removeEventListener("offline",z)}}return}}onSubscribe(){if(!this.#$)this.setEventListener(this.#Z)}onUnsubscribe(){if(!this.hasListeners())this.#$?.(),this.#$=void 0}setEventListener(Z){this.#Z=Z,this.#$?.(),this.#$=Z(this.setOnline.bind(this))}setOnline(Z){if(this.#w!==Z)this.#w=Z,this.listeners.forEach((z)=>{z(Z)})}isOnline(){return this.#w}},G$=new Uh;function qh(Z){return Math.min(1000*2**Z,30000)}function fg(Z){return(Z??"online")==="online"?G$.isOnline():!0}var JG=class extends Error{constructor(Z){super("CancelledError");this.revert=Z?.revert,this.silent=Z?.silent}};function YG(Z){let J=!1,z=0,G,v=CX(),Q=()=>v.status!=="pending",b=(_)=>{if(!Q()){let C=new JG(_);k(C),Z.onCancel?.(C)}},g=()=>{J=!0},K=()=>{J=!1},F=()=>z$.isFocused()&&(Z.networkMode==="always"||G$.isOnline())&&Z.canRun(),L=()=>fg(Z.networkMode)&&Z.canRun(),U=(_)=>{if(!Q())G?.(),v.resolve(_)},k=(_)=>{if(!Q())G?.(),v.reject(_)},N=()=>{return new Promise((_)=>{G=(C)=>{if(Q()||F())_(C)},Z.onPause?.()}).then(()=>{if(G=void 0,!Q())Z.onContinue?.()})},A=()=>{if(Q())return;let _,C=z===0?Z.initialPromise:void 0;try{_=C??Z.fn()}catch(x){_=Promise.reject(x)}Promise.resolve(_).then(U).catch((x)=>{if(Q())return;let S=Z.retry??(A6.isServer()?0:3),d=Z.retryDelay??qh,i=typeof d==="function"?d(z,x):d,Z0=S===!0||typeof S==="number"&&z<S||typeof S==="function"&&S(z,x);if(J||!Z0){k(x);return}z++,Z.onFail?.(z,x),$T(i).then(()=>{return F()?void 0:N()}).then(()=>{if(J)k(x);else A()})})};return{promise:v,status:()=>v.status,cancel:b,continue:()=>{return G?.(),v},cancelRetry:g,continueRetry:K,canStart:L,start:()=>{if(L())A();else N().then(A);return v}}}var zG=class{#w;destroy(){this.clearGcTimeout()}scheduleGc(){if(this.clearGcTimeout(),_X(this.gcTime))this.#w=O6.setTimeout(()=>{this.optionalRemove()},this.gcTime)}updateGcTime(Z){this.gcTime=Math.max(this.gcTime||0,Z??(A6.isServer()?1/0:300000))}clearGcTimeout(){if(this.#w!==void 0)O6.clearTimeout(this.#w),this.#w=void 0}};function GT(Z){return{onFetch:(J,z)=>{let G=J.options,v=J.fetchOptions?.meta?.fetchMore?.direction,Q=J.state.data?.pages||[],b=J.state.data?.pageParams||[],g={pages:[],pageParams:[]},K=0,F=async()=>{let L=!1,U=(A)=>{JT(A,()=>J.signal,()=>L=!0)},k=ZG(J.options,J.fetchOptions),N=async(A,_,C)=>{if(L)return Promise.reject(J.signal.reason);if(_==null&&A.pages.length)return Promise.resolve(A);let S=(()=>{let p={client:J.client,queryKey:J.queryKey,pageParam:_,direction:C?"backward":"forward",meta:J.options.meta};return U(p),p})(),d=await k(S),{maxPages:i}=J.options,Z0=C?XT:ZT;return{pages:Z0(A.pages,d,i),pageParams:Z0(A.pageParams,_,i)}};if(v&&Q.length){let A=v==="backward",_=A?Lh:zT,C={pages:Q,pageParams:b},x=_(G,C);g=await N(C,x,A)}else{let A=Z??Q.length;do{let _=K===0?b[0]??G.initialPageParam:zT(G,g);if(K>0&&_==null)break;g=await N(g,_),K++}while(K<A)}return g};if(J.options.persister)J.fetchFn=()=>{return J.options.persister?.(F,{client:J.client,queryKey:J.queryKey,meta:J.options.meta,signal:J.signal},z)};else J.fetchFn=F}}}function zT(Z,{pages:J,pageParams:z}){let G=J.length-1;return J.length>0?Z.getNextPageParam(J[G],J,z[G],z):void 0}function Lh(Z,{pages:J,pageParams:z}){return J.length>0?Z.getPreviousPageParam?.(J[0],J,z[0],z):void 0}var HT=class extends zG{#w;#$;#Z;#X;#Y;#J;#G;#z;constructor(Z){super();this.#z=!1,this.#G=Z.defaultOptions,this.setOptions(Z.options),this.observers=[],this.#Y=Z.client,this.#X=this.#Y.getQueryCache(),this.queryKey=Z.queryKey,this.queryHash=Z.queryHash,this.#$=vT(this.options),this.state=Z.state??this.#$,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#w}get promise(){return this.#J?.promise}setOptions(Z){if(this.options={...this.#G,...Z},Z?._type)this.#w=Z._type;if(this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let J=vT(this.options);if(J.data!==void 0)this.setState(BT(J.data,J.dataUpdatedAt)),this.#$=J}}optionalRemove(){if(!this.observers.length&&this.state.fetchStatus==="idle")this.#X.remove(this)}setData(Z,J){let z=AX(this.state.data,Z,this.options);return this.#B({data:z,type:"success",dataUpdatedAt:J?.updatedAt,manual:J?.manual}),z}setState(Z){this.#B({type:"setState",state:Z})}cancel(Z){let J=this.#J?.promise;return this.#J?.cancel(Z),J?J.then(E5).catch(E5):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((Z)=>r2(Z.options.enabled,this)!==!1)}isDisabled(){if(this.getObserversCount()>0)return!this.isActive();return this.options.queryFn===I7||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){if(this.getObserversCount()>0)return this.observers.some((Z)=>S4(Z.options.staleTime,this)==="static");return!1}isStale(){if(this.getObserversCount()>0)return this.observers.some((Z)=>Z.getCurrentResult().isStale);return this.state.data===void 0||this.state.isInvalidated}isStaleByTime(Z=0){if(this.state.data===void 0)return!0;if(Z==="static")return!1;if(this.state.isInvalidated)return!0;return!tz(this.state.dataUpdatedAt,Z)}onFocus(){this.observers.find((J)=>J.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#J?.continue()}onOnline(){this.observers.find((J)=>J.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#J?.continue()}addObserver(Z){if(!this.observers.includes(Z))this.observers.push(Z),this.clearGcTimeout(),this.#X.notify({type:"observerAdded",query:this,observer:Z})}removeObserver(Z){if(this.observers.includes(Z)){if(this.observers=this.observers.filter((J)=>J!==Z),!this.observers.length){if(this.#J)if(this.#z||this.#H())this.#J.cancel({revert:!0});else this.#J.cancelRetry();this.scheduleGc()}this.#X.notify({type:"observerRemoved",query:this,observer:Z})}}getObserversCount(){return this.observers.length}#H(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){if(!this.state.isInvalidated)this.#B({type:"invalidate"})}async fetch(Z,J){if(this.state.fetchStatus!=="idle"&&this.#J?.status()!=="rejected"){if(this.state.data!==void 0&&J?.cancelRefetch)this.cancel({silent:!0});else if(this.#J)return this.#J.continueRetry(),this.#J.promise}if(Z)this.setOptions(Z);if(!this.options.queryFn){let K=this.observers.find((F)=>F.options.queryFn);if(K)this.setOptions(K.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 z=new AbortController,G=(K)=>{Object.defineProperty(K,"signal",{enumerable:!0,get:()=>{return this.#z=!0,z.signal}})},v=()=>{let K=ZG(this.options,J),L=(()=>{let U={client:this.#Y,queryKey:this.queryKey,meta:this.meta};return G(U),U})();if(this.#z=!1,this.options.persister)return this.options.persister(K,L,this);return K(L)},b=(()=>{let K={fetchOptions:J,options:this.options,queryKey:this.queryKey,client:this.#Y,state:this.state,fetchFn:v};return G(K),K})();if((this.#w==="infinite"?GT(this.options.pages):this.options.behavior)?.onFetch(b,this),this.#Z=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==b.fetchOptions?.meta)this.#B({type:"fetch",meta:b.fetchOptions?.meta});this.#J=YG({initialPromise:J?.initialPromise,fn:b.fetchFn,onCancel:(K)=>{if(K instanceof JG&&K.revert)this.setState({...this.#Z,fetchStatus:"idle"});z.abort()},onFail:(K,F)=>{this.#B({type:"failed",failureCount:K,error:F})},onPause:()=>{this.#B({type:"pause"})},onContinue:()=>{this.#B({type:"continue"})},retry:b.options.retry,retryDelay:b.options.retryDelay,networkMode:b.options.networkMode,canRun:()=>!0});try{let K=await this.#J.start();if(K===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(K),this.#X.config.onSuccess?.(K,this),this.#X.config.onSettled?.(K,this.state.error,this),K}catch(K){if(K instanceof JG){if(K.silent)return this.#J.promise;else if(K.revert){if(this.state.data===void 0)throw K;return this.state.data}}throw this.#B({type:"error",error:K}),this.#X.config.onError?.(K,this),this.#X.config.onSettled?.(this.state.data,K,this),K}finally{this.scheduleGc()}}#B(Z){let J=(z)=>{switch(Z.type){case"failed":return{...z,fetchFailureCount:Z.failureCount,fetchFailureReason:Z.error};case"pause":return{...z,fetchStatus:"paused"};case"continue":return{...z,fetchStatus:"fetching"};case"fetch":return{...z,...Vg(z.data,this.options),fetchMeta:Z.meta??null};case"success":let G={...z,...BT(Z.data,Z.dataUpdatedAt),dataUpdateCount:z.dataUpdateCount+1,...!Z.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#Z=Z.manual?G:void 0,G;case"error":let v=Z.error;return{...z,error:v,errorUpdateCount:z.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:z.fetchFailureCount+1,fetchFailureReason:v,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...z,isInvalidated:!0};case"setState":return{...z,...Z.state}}};this.state=J(this.state),Y5.batch(()=>{this.observers.forEach((z)=>{z.onQueryUpdate()}),this.#X.notify({query:this,type:"updated",action:Z})})}};function Vg(Z,J){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fg(J.networkMode)?"fetching":"paused",...Z===void 0&&{error:null,status:"pending"}}}function BT(Z,J){return{data:Z,dataUpdatedAt:J??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vT(Z){let J=typeof Z.initialData==="function"?Z.initialData():Z.initialData,z=J!==void 0,G=z?typeof Z.initialDataUpdatedAt==="function"?Z.initialDataUpdatedAt():Z.initialDataUpdatedAt:0;return{data:J,dataUpdateCount:0,dataUpdatedAt:z?G??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:z?"success":"pending",fetchStatus:"idle"}}var Rg=class extends _6{constructor(Z,J){super();this.options=J,this.#w=Z,this.#z=null,this.#G=CX(),this.bindMethods(),this.setOptions(J)}#w;#$=void 0;#Z=void 0;#X=void 0;#Y;#J;#G;#z;#H;#B;#W;#Q;#g;#v;#K=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#$.addObserver(this),QT(this.#$,this.options))this.#b();else this.updateResult();this.#F()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return hg(this.#$,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hg(this.#$,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#k(),this.#N(),this.#$.removeObserver(this)}setOptions(Z){let J=this.options,z=this.#$;if(this.options=this.#w.defaultQueryOptions(Z),this.options.enabled!==void 0&&typeof this.options.enabled!=="boolean"&&typeof this.options.enabled!=="function"&&typeof r2(this.options.enabled,this.#$)!=="boolean")throw Error("Expected enabled to be a boolean or a callback that returns a boolean");if(this.#T(),this.#$.setOptions(this.options),J._defaulted&&!$G(this.options,J))this.#w.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#$,observer:this});let G=this.hasListeners();if(G&&gT(this.#$,z,this.options,J))this.#b();if(this.updateResult(),G&&(this.#$!==z||r2(this.options.enabled,this.#$)!==r2(J.enabled,this.#$)||S4(this.options.staleTime,this.#$)!==S4(J.staleTime,this.#$)))this.#U();let v=this.#q();if(G&&(this.#$!==z||r2(this.options.enabled,this.#$)!==r2(J.enabled,this.#$)||v!==this.#v))this.#L(v)}getOptimisticResult(Z){let J=this.#w.getQueryCache().build(this.#w,Z),z=this.createResult(J,Z);if(kh(this,z))this.#X=z,this.#J=this.options,this.#Y=this.#$.state;return z}getCurrentResult(){return this.#X}trackResult(Z,J){return new Proxy(Z,{get:(z,G)=>{if(this.trackProp(G),J?.(G),G==="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(z,G)}})}trackProp(Z){this.#K.add(Z)}getCurrentQuery(){return this.#$}refetch({...Z}={}){return this.fetch({...Z})}fetchOptimistic(Z){let J=this.#w.defaultQueryOptions(Z),z=this.#w.getQueryCache().build(this.#w,J);return z.fetch().then(()=>this.createResult(z,J))}fetch(Z){return this.#b({...Z,cancelRefetch:Z.cancelRefetch??!0}).then(()=>{return this.updateResult(),this.#X})}#b(Z){this.#T();let J=this.#$.fetch(this.options,Z);if(!Z?.throwOnError)J=J.catch(E5);return J}#U(){this.#k();let Z=S4(this.options.staleTime,this.#$);if(A6.isServer()||this.#X.isStale||!_X(Z))return;let z=tz(this.#X.dataUpdatedAt,Z)+1;this.#Q=O6.setTimeout(()=>{if(!this.#X.isStale)this.updateResult()},z)}#q(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#$):this.options.refetchInterval)??!1}#L(Z){if(this.#N(),this.#v=Z,A6.isServer()||r2(this.options.enabled,this.#$)===!1||!_X(this.#v)||this.#v===0)return;this.#g=O6.setInterval(()=>{if(this.options.refetchIntervalInBackground||z$.isFocused())this.#b()},this.#v)}#F(){this.#U(),this.#L(this.#q())}#k(){if(this.#Q!==void 0)O6.clearTimeout(this.#Q),this.#Q=void 0}#N(){if(this.#g!==void 0)O6.clearInterval(this.#g),this.#g=void 0}createResult(Z,J){let z=this.#$,G=this.options,v=this.#X,Q=this.#Y,b=this.#J,K=Z!==z?Z.state:this.#Z,{state:F}=Z,L={...F},U=!1,k;if(J._optimisticResults){let $0=this.hasListeners(),s=!$0&&QT(Z,J),E=$0&&gT(Z,z,J,G);if(s||E)L={...L,...Vg(F.data,Z.options)};if(J._optimisticResults==="isRestoring")L.fetchStatus="idle"}let{error:N,errorUpdatedAt:A,status:_}=L;k=L.data;let C=!1;if(J.placeholderData!==void 0&&k===void 0&&_==="pending"){let $0;if(v?.isPlaceholderData&&J.placeholderData===b?.placeholderData)$0=v.data,C=!0;else $0=typeof J.placeholderData==="function"?J.placeholderData(this.#W?.state.data,this.#W):J.placeholderData;if($0!==void 0)_="success",k=AX(v?.data,$0,J),U=!0}if(J.select&&k!==void 0&&!C)if(v&&k===Q?.data&&J.select===this.#H)k=this.#B;else try{this.#H=J.select,k=J.select(k),k=AX(v?.data,k,J),this.#B=k,this.#z=null}catch($0){this.#z=$0}if(this.#z)N=this.#z,k=this.#B,A=Date.now(),_="error";let x=L.fetchStatus==="fetching",S=_==="pending",d=_==="error",i=S&&x,Z0=k!==void 0,j={status:_,fetchStatus:L.fetchStatus,isPending:S,isSuccess:_==="success",isError:d,isInitialLoading:i,isLoading:i,data:k,dataUpdatedAt:L.dataUpdatedAt,error:N,errorUpdatedAt:A,failureCount:L.fetchFailureCount,failureReason:L.fetchFailureReason,errorUpdateCount:L.errorUpdateCount,isFetched:Z.isFetched(),isFetchedAfterMount:L.dataUpdateCount>K.dataUpdateCount||L.errorUpdateCount>K.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:d&&!Z0,isPaused:L.fetchStatus==="paused",isPlaceholderData:U,isRefetchError:d&&Z0,isStale:yg(Z,J),refetch:this.refetch,promise:this.#G,isEnabled:r2(J.enabled,Z)!==!1};if(this.options.experimental_prefetchInRender){let $0=j.data!==void 0,s=j.status==="error"&&!$0,E=(q0)=>{if(s)q0.reject(j.error);else if($0)q0.resolve(j.data)},Q0=()=>{let q0=this.#G=j.promise=CX();E(q0)},G0=this.#G;switch(G0.status){case"pending":if(Z.queryHash===z.queryHash)E(G0);break;case"fulfilled":if(s||j.data!==G0.value)Q0();break;case"rejected":if(!s||j.error!==G0.reason)Q0();break}}return j}updateResult(){let Z=this.#X,J=this.createResult(this.#$,this.options);if(this.#Y=this.#$.state,this.#J=this.options,this.#Y.data!==void 0)this.#W=this.#$;if($G(J,Z))return;this.#X=J;let z=()=>{if(!Z)return!0;let{notifyOnChangeProps:G}=this.options,v=typeof G==="function"?G():G;if(v==="all"||!v&&!this.#K.size)return!0;let Q=new Set(v??this.#K);if(this.options.throwOnError)Q.add("error");return Object.keys(this.#X).some((b)=>{let g=b;return this.#X[g]!==Z[g]&&Q.has(g)})};this.#I({listeners:z()})}#T(){let Z=this.#w.getQueryCache().build(this.#w,this.options);if(Z===this.#$)return;let J=this.#$;if(this.#$=Z,this.#Z=Z.state,this.hasListeners())J?.removeObserver(this),Z.addObserver(this)}onQueryUpdate(){if(this.updateResult(),this.hasListeners())this.#F()}#I(Z){Y5.batch(()=>{if(Z.listeners)this.listeners.forEach((J)=>{J(this.#X)});this.#w.getQueryCache().notify({query:this.#$,type:"observerResultsUpdated"})})}};function Fh(Z,J){return r2(J.enabled,Z)!==!1&&Z.state.data===void 0&&!(Z.state.status==="error"&&r2(J.retryOnMount,Z)===!1)}function QT(Z,J){return Fh(Z,J)||Z.state.data!==void 0&&hg(Z,J,J.refetchOnMount)}function hg(Z,J,z){if(r2(J.enabled,Z)!==!1&&S4(J.staleTime,Z)!=="static"){let G=typeof z==="function"?z(Z):z;return G==="always"||G!==!1&&yg(Z,J)}return!1}function gT(Z,J,z,G){return(Z!==J||r2(G.enabled,Z)===!1)&&(!z.suspense||Z.state.status!=="error")&&yg(Z,z)}function yg(Z,J){return r2(J.enabled,Z)!==!1&&Z.isStaleByTime(S4(J.staleTime,Z))}function kh(Z,J){if(!$G(Z.getCurrentResult(),J))return!0;return!1}var bT=class extends zG{#w;#$;#Z;#X;constructor(Z){super();this.#w=Z.client,this.mutationId=Z.mutationId,this.#Z=Z.mutationCache,this.#$=[],this.state=Z.state||Nh(),this.setOptions(Z.options),this.scheduleGc()}setOptions(Z){this.options=Z,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(Z){if(!this.#$.includes(Z))this.#$.push(Z),this.clearGcTimeout(),this.#Z.notify({type:"observerAdded",mutation:this,observer:Z})}removeObserver(Z){this.#$=this.#$.filter((J)=>J!==Z),this.scheduleGc(),this.#Z.notify({type:"observerRemoved",mutation:this,observer:Z})}optionalRemove(){if(!this.#$.length)if(this.state.status==="pending")this.scheduleGc();else this.#Z.remove(this)}continue(){return this.#X?.continue()??this.execute(this.state.variables)}async execute(Z){let J=()=>{this.#Y({type:"continue"})},z={client:this.#w,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#X=YG({fn:()=>{if(!this.options.mutationFn)return Promise.reject(Error("No mutationFn found"));return this.options.mutationFn(Z,z)},onFail:(Q,b)=>{this.#Y({type:"failed",failureCount:Q,error:b})},onPause:()=>{this.#Y({type:"pause"})},onContinue:J,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#Z.canRun(this)});let G=this.state.status==="pending",v=!this.#X.canStart();try{if(G)J();else{if(this.#Y({type:"pending",variables:Z,isPaused:v}),this.#Z.config.onMutate)await this.#Z.config.onMutate(Z,this,z);let b=await this.options.onMutate?.(Z,z);if(b!==this.state.context)this.#Y({type:"pending",context:b,variables:Z,isPaused:v})}let Q=await this.#X.start();return await this.#Z.config.onSuccess?.(Q,Z,this.state.context,this,z),await this.options.onSuccess?.(Q,Z,this.state.context,z),await this.#Z.config.onSettled?.(Q,null,this.state.variables,this.state.context,this,z),await this.options.onSettled?.(Q,null,Z,this.state.context,z),this.#Y({type:"success",data:Q}),Q}catch(Q){try{await this.#Z.config.onError?.(Q,Z,this.state.context,this,z)}catch(b){Promise.reject(b)}try{await this.options.onError?.(Q,Z,this.state.context,z)}catch(b){Promise.reject(b)}try{await this.#Z.config.onSettled?.(void 0,Q,this.state.variables,this.state.context,this,z)}catch(b){Promise.reject(b)}try{await this.options.onSettled?.(void 0,Q,Z,this.state.context,z)}catch(b){Promise.reject(b)}throw this.#Y({type:"error",error:Q}),Q}finally{this.#Z.runNext(this)}}#Y(Z){let J=(z)=>{switch(Z.type){case"failed":return{...z,failureCount:Z.failureCount,failureReason:Z.error};case"pause":return{...z,isPaused:!0};case"continue":return{...z,isPaused:!1};case"pending":return{...z,context:Z.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:Z.isPaused,status:"pending",variables:Z.variables,submittedAt:Date.now()};case"success":return{...z,data:Z.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...z,data:void 0,error:Z.error,failureCount:z.failureCount+1,failureReason:Z.error,isPaused:!1,status:"error"}}};this.state=J(this.state),Y5.batch(()=>{this.#$.forEach((z)=>{z.onMutationUpdate(Z)}),this.#Z.notify({mutation:this,type:"updated",action:Z})})}};function Nh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var WT=class extends _6{constructor(Z={}){super();this.config=Z,this.#w=new Set,this.#$=new Map,this.#Z=0}#w;#$;#Z;build(Z,J,z){let G=new bT({client:Z,mutationCache:this,mutationId:++this.#Z,options:Z.defaultMutationOptions(J),state:z});return this.add(G),G}add(Z){this.#w.add(Z);let J=GG(Z);if(typeof J==="string"){let z=this.#$.get(J);if(z)z.push(Z);else this.#$.set(J,[Z])}this.notify({type:"added",mutation:Z})}remove(Z){if(this.#w.delete(Z)){let J=GG(Z);if(typeof J==="string"){let z=this.#$.get(J);if(z){if(z.length>1){let G=z.indexOf(Z);if(G!==-1)z.splice(G,1)}else if(z[0]===Z)this.#$.delete(J)}}}this.notify({type:"removed",mutation:Z})}canRun(Z){let J=GG(Z);if(typeof J==="string"){let G=this.#$.get(J)?.find((v)=>v.state.status==="pending");return!G||G===Z}else return!0}runNext(Z){let J=GG(Z);if(typeof J==="string")return this.#$.get(J)?.find((G)=>G!==Z&&G.state.isPaused)?.continue()??Promise.resolve();else return Promise.resolve()}clear(){Y5.batch(()=>{this.#w.forEach((Z)=>{this.notify({type:"removed",mutation:Z})}),this.#w.clear(),this.#$.clear()})}getAll(){return Array.from(this.#w)}find(Z){let J={exact:!0,...Z};return this.getAll().find((z)=>wG(J,z))}findAll(Z={}){return this.getAll().filter((J)=>wG(Z,J))}notify(Z){Y5.batch(()=>{this.listeners.forEach((J)=>{J(Z)})})}resumePausedMutations(){let Z=this.getAll().filter((J)=>J.state.isPaused);return Y5.batch(()=>Promise.all(Z.map((J)=>J.continue().catch(E5))))}};function GG(Z){return Z.options.scope?.id}var KT=class extends _6{constructor(Z={}){super();this.config=Z,this.#w=new Map}#w;build(Z,J,z){let G=J.queryKey,v=J.queryHash??OX(G,J),Q=this.get(v);if(!Q)Q=new HT({client:Z,queryKey:G,queryHash:v,options:Z.defaultQueryOptions(J),state:z,defaultOptions:Z.getQueryDefaults(G)}),this.add(Q);return Q}add(Z){if(!this.#w.has(Z.queryHash))this.#w.set(Z.queryHash,Z),this.notify({type:"added",query:Z})}remove(Z){let J=this.#w.get(Z.queryHash);if(J){if(Z.destroy(),J===Z)this.#w.delete(Z.queryHash);this.notify({type:"removed",query:Z})}}clear(){Y5.batch(()=>{this.getAll().forEach((Z)=>{this.remove(Z)})})}get(Z){return this.#w.get(Z)}getAll(){return[...this.#w.values()]}find(Z){let J={exact:!0,...Z};return this.getAll().find((z)=>ez(J,z))}findAll(Z={}){let J=this.getAll();return Object.keys(Z).length>0?J.filter((z)=>ez(Z,z)):J}notify(Z){Y5.batch(()=>{this.listeners.forEach((J)=>{J(Z)})})}onFocus(){Y5.batch(()=>{this.getAll().forEach((Z)=>{Z.onFocus()})})}onOnline(){Y5.batch(()=>{this.getAll().forEach((Z)=>{Z.onOnline()})})}};var Sg=class{#w;#$;#Z;#X;#Y;#J;#G;#z;constructor(Z={}){this.#w=Z.queryCache||new KT,this.#$=Z.mutationCache||new WT,this.#Z=Z.defaultOptions||{},this.#X=new Map,this.#Y=new Map,this.#J=0}mount(){if(this.#J++,this.#J!==1)return;this.#G=z$.subscribe(async(Z)=>{if(Z)await this.resumePausedMutations(),this.#w.onFocus()}),this.#z=G$.subscribe(async(Z)=>{if(Z)await this.resumePausedMutations(),this.#w.onOnline()})}unmount(){if(this.#J--,this.#J!==0)return;this.#G?.(),this.#G=void 0,this.#z?.(),this.#z=void 0}isFetching(Z){return this.#w.findAll({...Z,fetchStatus:"fetching"}).length}isMutating(Z){return this.#$.findAll({...Z,status:"pending"}).length}getQueryData(Z){let J=this.defaultQueryOptions({queryKey:Z});return this.#w.get(J.queryHash)?.state.data}ensureQueryData(Z){let J=this.defaultQueryOptions(Z),z=this.#w.build(this,J),G=z.state.data;if(G===void 0)return this.fetchQuery(Z);if(Z.revalidateIfStale&&z.isStaleByTime(S4(J.staleTime,z)))this.prefetchQuery(J);return Promise.resolve(G)}getQueriesData(Z){return this.#w.findAll(Z).map(({queryKey:J,state:z})=>{let G=z.data;return[J,G]})}setQueryData(Z,J,z){let G=this.defaultQueryOptions({queryKey:Z}),Q=this.#w.get(G.queryHash)?.state.data,b=wT(J,Q);if(b===void 0)return;return this.#w.build(this,G).setData(b,{...z,manual:!0})}setQueriesData(Z,J,z){return Y5.batch(()=>this.#w.findAll(Z).map(({queryKey:G})=>[G,this.setQueryData(G,J,z)]))}getQueryState(Z){let J=this.defaultQueryOptions({queryKey:Z});return this.#w.get(J.queryHash)?.state}removeQueries(Z){let J=this.#w;Y5.batch(()=>{J.findAll(Z).forEach((z)=>{J.remove(z)})})}resetQueries(Z,J){let z=this.#w;return Y5.batch(()=>{return z.findAll(Z).forEach((G)=>{G.reset()}),this.refetchQueries({type:"active",...Z},J)})}cancelQueries(Z,J={}){let z={revert:!0,...J},G=Y5.batch(()=>this.#w.findAll(Z).map((v)=>v.cancel(z)));return Promise.all(G).then(E5).catch(E5)}invalidateQueries(Z,J={}){return Y5.batch(()=>{if(this.#w.findAll(Z).forEach((z)=>{z.invalidate()}),Z?.refetchType==="none")return Promise.resolve();return this.refetchQueries({...Z,type:Z?.refetchType??Z?.type??"active"},J)})}refetchQueries(Z,J={}){let z={...J,cancelRefetch:J.cancelRefetch??!0},G=Y5.batch(()=>this.#w.findAll(Z).filter((v)=>!v.isDisabled()&&!v.isStatic()).map((v)=>{let Q=v.fetch(void 0,z);if(!z.throwOnError)Q=Q.catch(E5);return v.state.fetchStatus==="paused"?Promise.resolve():Q}));return Promise.all(G).then(E5)}fetchQuery(Z){let J=this.defaultQueryOptions(Z);if(J.retry===void 0)J.retry=!1;let z=this.#w.build(this,J);return z.isStaleByTime(S4(J.staleTime,z))?z.fetch(J):Promise.resolve(z.state.data)}prefetchQuery(Z){return this.fetchQuery(Z).then(E5).catch(E5)}fetchInfiniteQuery(Z){return Z._type="infinite",this.fetchQuery(Z)}prefetchInfiniteQuery(Z){return this.fetchInfiniteQuery(Z).then(E5).catch(E5)}ensureInfiniteQueryData(Z){return Z._type="infinite",this.ensureQueryData(Z)}resumePausedMutations(){if(G$.isOnline())return this.#$.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#w}getMutationCache(){return this.#$}getDefaultOptions(){return this.#Z}setDefaultOptions(Z){this.#Z=Z}setQueryDefaults(Z,J){this.#X.set(T7(Z),{queryKey:Z,defaultOptions:J})}getQueryDefaults(Z){let J=[...this.#X.values()],z={};return J.forEach((G)=>{if(_7(Z,G.queryKey))Object.assign(z,G.defaultOptions)}),z}setMutationDefaults(Z,J){this.#Y.set(T7(Z),{mutationKey:Z,defaultOptions:J})}getMutationDefaults(Z){let J=[...this.#Y.values()],z={};return J.forEach((G)=>{if(_7(Z,G.mutationKey))Object.assign(z,G.defaultOptions)}),z}defaultQueryOptions(Z){if(Z._defaulted)return Z;let J={...this.#Z.queries,...this.getQueryDefaults(Z.queryKey),...Z,_defaulted:!0};if(!J.queryHash)J.queryHash=OX(J.queryKey,J);if(J.refetchOnReconnect===void 0)J.refetchOnReconnect=J.networkMode!=="always";if(J.throwOnError===void 0)J.throwOnError=!!J.suspense;if(!J.networkMode&&J.persister)J.networkMode="offlineFirst";if(J.queryFn===I7)J.enabled=!1;return J}defaultMutationOptions(Z){if(Z?._defaulted)return Z;return{...this.#Z.mutations,...Z?.mutationKey&&this.getMutationDefaults(Z.mutationKey),...Z,_defaulted:!0}}clear(){this.#w.clear(),this.#$.clear()}};var B9=P(K0(),1);var B$=P(K0(),1),UT=P(z5(),1),Dg=B$.createContext(void 0),Ew=(Z)=>{let J=B$.useContext(Dg);if(Z)return Z;if(!J)throw Error("No QueryClient set, use QueryClientProvider to set one");return J},dg=({client:Z,children:J})=>{return B$.useEffect(()=>{return Z.mount(),()=>{Z.unmount()}},[Z]),UT.jsx(Dg.Provider,{value:Z,children:J})};var MX=P(K0(),1),_h=P(z5(),1);function Oh(){let Z=!1;return{clearReset:()=>{Z=!1},reset:()=>{Z=!0},isReset:()=>{return Z}}}var Ah=MX.createContext(Oh()),qT=()=>MX.useContext(Ah);var LT=P(K0(),1);var FT=(Z,J,z)=>{let G=z?.state.error&&typeof Z.throwOnError==="function"?XG(Z.throwOnError,[z.state.error,z]):Z.throwOnError;if(Z.suspense||Z.experimental_prefetchInRender||G){if(!J.isReset())Z.retryOnMount=!1}},kT=(Z)=>{LT.useEffect(()=>{Z.clearReset()},[Z])},NT=({result:Z,errorResetBoundary:J,throwOnError:z,query:G,suspense:v})=>{return Z.isError&&!J.isReset()&&!Z.isFetching&&G&&(v&&Z.data===void 0||XG(z,[Z.error,G]))};var vG=P(K0(),1),TT=vG.createContext(!1),IT=()=>vG.useContext(TT),Ki=TT.Provider;var _T=(Z)=>{if(Z.suspense){let z=(v)=>v==="static"?v:Math.max(v??1000,1000),G=Z.staleTime;if(Z.staleTime=typeof G==="function"?(...v)=>z(G(...v)):z(G),typeof Z.gcTime==="number")Z.gcTime=Math.max(Z.gcTime,1000)}},OT=(Z,J)=>Z.isLoading&&Z.isFetching&&!J,AT=(Z,J)=>Z?.suspense&&J.isPending,jg=(Z,J,z)=>J.fetchOptimistic(Z).catch(()=>{z.clearReset()});function CT(Z,J,z){if(typeof Z!=="object"||Array.isArray(Z))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 G=IT(),v=qT(),Q=Ew(z),b=Q.defaultQueryOptions(Z);Q.getDefaultOptions().queries?._experimental_beforeQuery?.(b);let g=Q.getQueryCache().get(b.queryHash);if(!b.queryFn)console.error(`[${b.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`);let K=Z.subscribed!==!1;b._optimisticResults=G?"isRestoring":K?"optimistic":void 0,_T(b),FT(b,v,g),kT(v);let F=!Q.getQueryCache().get(b.queryHash),[L]=B9.useState(()=>new J(Q,b)),U=L.getOptimisticResult(b),k=!G&&K;if(B9.useSyncExternalStore(B9.useCallback((N)=>{let A=k?L.subscribe(Y5.batchCalls(N)):E5;return L.updateResult(),A},[L,k]),()=>L.getCurrentResult(),()=>L.getCurrentResult()),B9.useEffect(()=>{L.setOptions(b)},[b,L]),AT(b,U))throw jg(b,L,v);if(NT({result:U,errorResetBoundary:v,throwOnError:b.throwOnError,query:g,suspense:b.suspense}))throw U.error;if(Q.getDefaultOptions().queries?._experimental_afterQuery?.(b,U),b.experimental_prefetchInRender&&!A6.isServer()&&OT(U,G))(F?jg(b,L,v):g?.promise)?.catch(E5).finally(()=>{L.updateResult()});return!b.notifyOnChangeProps?L.trackResult(U):U}function n0(Z,J){return CT(Z,Rg,J)}var qm=P(K0(),1),Lm=P(VT(),1);var vw=P(K0(),1),m0=P(K0(),1),b5=P(K0(),1),Bb=P(K0(),1),bI=P(K0(),1),L1=P(K0(),1),pR=P(K0(),1),rR=P(K0(),1),nR=P(K0(),1),f0=P(K0(),1),OI=P(K0(),1);var hT="popstate";function RT(Z){return typeof Z==="object"&&Z!=null&&"pathname"in Z&&"search"in Z&&"hash"in Z&&"state"in Z&&"key"in Z}function uT(Z={}){function J(G,v){let Q=v.state?.masked,{pathname:b,search:g,hash:K}=Q||G.location;return ig("",{pathname:b,search:g,hash:K},v.state&&v.state.usr||null,v.state&&v.state.key||"default",Q?{pathname:G.location.pathname,search:G.location.search,hash:G.location.hash}:void 0)}function z(G,v){return typeof v==="string"?v:H$(v)}return Vh(J,z,null,Z)}function G5(Z,J){if(Z===!1||Z===null||typeof Z>"u")throw Error(J)}function uw(Z,J){if(!Z){if(typeof console<"u")console.warn(J);try{throw Error(J)}catch(z){}}}function fh(){return Math.random().toString(36).substring(2,10)}function yT(Z,J){return{usr:Z.state,key:Z.key,idx:J,masked:Z.mask?{pathname:Z.pathname,search:Z.search,hash:Z.hash}:void 0}}function ig(Z,J,z=null,G,v){return{pathname:typeof Z==="string"?Z:Z.pathname,search:"",hash:"",...typeof J==="string"?C7(J):J,state:z,key:J&&J.key||G||fh(),mask:v}}function H$({pathname:Z="/",search:J="",hash:z=""}){if(J&&J!=="?")Z+=J.charAt(0)==="?"?J:"?"+J;if(z&&z!=="#")Z+=z.charAt(0)==="#"?z:"#"+z;return Z}function C7(Z){let J={};if(Z){let z=Z.indexOf("#");if(z>=0)J.hash=Z.substring(z),Z=Z.substring(0,z);let G=Z.indexOf("?");if(G>=0)J.search=Z.substring(G),Z=Z.substring(0,G);if(Z)J.pathname=Z}return J}function Vh(Z,J,z,G={}){let{window:v=document.defaultView,v5Compat:Q=!1}=G,b=v.history,g="POP",K=null,F=L();if(F==null)F=0,b.replaceState({...b.state,idx:F},"");function L(){return(b.state||{idx:null}).idx}function U(){g="POP";let C=L(),x=C==null?null:C-F;if(F=C,K)K({action:g,location:_.location,delta:x})}function k(C,x){g="PUSH";let S=RT(C)?C:ig(_.location,C,x);if(z)z(S,C);F=L()+1;let d=yT(S,F),i=_.createHref(S.mask||S);try{b.pushState(d,"",i)}catch(Z0){if(Z0 instanceof DOMException&&Z0.name==="DataCloneError")throw Z0;v.location.assign(i)}if(Q&&K)K({action:g,location:_.location,delta:1})}function N(C,x){g="REPLACE";let S=RT(C)?C:ig(_.location,C,x);if(z)z(S,C);F=L();let d=yT(S,F),i=_.createHref(S.mask||S);if(b.replaceState(d,"",i),Q&&K)K({action:g,location:_.location,delta:0})}function A(C){return hh(v,C)}let _={get action(){return g},get location(){return Z(v,b)},listen(C){if(K)throw Error("A history only accepts one active listener");return v.addEventListener(hT,U),K=C,()=>{v.removeEventListener(hT,U),K=null}},createHref(C){return J(v,C)},createURL:A,encodeLocation(C){let x=A(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:k,replace:N,go(C){return b.go(C)}};return _}function hh(Z,J,z=!1){let G="http://localhost";if(Z)G=Z.location.origin!=="null"?Z.location.origin:Z.location.href;G5(G,"No window.location.(origin|href) available to create URL");let v=typeof J==="string"?J:H$(J);if(v=v.replace(/ $/,"%20"),!z&&v.startsWith("//"))v=G+v;return new URL(v,G)}var Rh;Rh=new WeakMap;function og(Z,J,z="/"){return yh(Z,J,z,!1)}function yh(Z,J,z,G,v){let Q=typeof J==="string"?C7(J):J,b=C6(Q.pathname||"/",z);if(b==null)return null;let g=v??Dh(Z),K=null,F=oh(b);for(let L=0;K==null&&L<g.length;++L)K=rh(g[L],F,G);return K}function Sh(Z,J){let{route:z,pathname:G,params:v}=Z;return{id:z.id,pathname:G,params:v,data:J[z.id],loaderData:J[z.id],handle:z.handle}}function Dh(Z){let J=lT(Z);return dh(J),J}function lT(Z,J=[],z=[],G="",v=!1){let Q=(b,g,K=v,F)=>{let L={relativePath:F===void 0?b.path||"":F,caseSensitive:b.caseSensitive===!0,childrenIndex:g,route:b};if(L.relativePath.startsWith("/")){if(!L.relativePath.startsWith(G)&&K)return;G5(L.relativePath.startsWith(G),`Absolute route path "${L.relativePath}" nested under path "${G}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),L.relativePath=L.relativePath.slice(G.length)}let U=D4([G,L.relativePath]),k=z.concat(L);if(b.children&&b.children.length>0)G5(b.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${U}".`),lT(b.children,J,k,U,K);if(b.path==null&&!b.index)return;J.push({path:U,score:ih(U,b.index),routesMeta:k})};return Z.forEach((b,g)=>{if(b.path===""||!b.path?.includes("?"))Q(b,g);else for(let K of cT(b.path))Q(b,g,!0,K)}),J}function cT(Z){let J=Z.split("/");if(J.length===0)return[];let[z,...G]=J,v=z.endsWith("?"),Q=z.replace(/\?$/,"");if(G.length===0)return v?[Q,""]:[Q];let b=cT(G.join("/")),g=[];if(g.push(...b.map((K)=>K===""?Q:[Q,K].join("/"))),v)g.push(...b);return g.map((K)=>Z.startsWith("/")&&K===""?"/":K)}function dh(Z){Z.sort((J,z)=>J.score!==z.score?z.score-J.score:ph(J.routesMeta.map((G)=>G.childrenIndex),z.routesMeta.map((G)=>G.childrenIndex)))}var jh=/^:[\w-]+$/,Eh=3,uh=2,lh=1,ch=10,ah=-2,ST=(Z)=>Z==="*";function ih(Z,J){let z=Z.split("/"),G=z.length;if(z.some(ST))G+=ah;if(J)G+=uh;return z.filter((v)=>!ST(v)).reduce((v,Q)=>v+(jh.test(Q)?Eh:Q===""?lh:ch),G)}function ph(Z,J){return Z.length===J.length&&Z.slice(0,-1).every((G,v)=>G===J[v])?Z[Z.length-1]-J[J.length-1]:0}function rh(Z,J,z=!1){let{routesMeta:G}=Z,v={},Q="/",b=[];for(let g=0;g<G.length;++g){let K=G[g],F=g===G.length-1,L=Q==="/"?J:J.slice(Q.length)||"/",U=mX({path:K.relativePath,caseSensitive:K.caseSensitive,end:F},L),k=K.route;if(!U&&F&&z&&!G[G.length-1].route.index)U=mX({path:K.relativePath,caseSensitive:K.caseSensitive,end:!1},L);if(!U)return null;if(Object.assign(v,U.params),b.push({params:v,pathname:D4([Q,U.pathname]),pathnameBase:eh(D4([Q,U.pathnameBase])),route:k}),U.pathnameBase!=="/")Q=D4([Q,U.pathnameBase])}return b}function mX(Z,J){if(typeof Z==="string")Z={path:Z,caseSensitive:!1,end:!0};let[z,G]=nh(Z.path,Z.caseSensitive,Z.end),v=J.match(z);if(!v)return null;let Q=v[0],b=Q.replace(/(.)\/+$/,"$1"),g=v.slice(1);return{params:G.reduce((F,{paramName:L,isOptional:U},k)=>{if(L==="*"){let A=g[k]||"";b=Q.slice(0,Q.length-A.length).replace(/(.)\/+$/,"$1")}let N=g[k];if(U&&!N)F[L]=void 0;else F[L]=(N||"").replace(/%2F/g,"/");return F},{}),pathname:Q,pathnameBase:b,pattern:Z}}function nh(Z,J=!1,z=!0){uw(Z==="*"||!Z.endsWith("*")||Z.endsWith("/*"),`Route path "${Z}" will be treated as if it were "${Z.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${Z.replace(/\*$/,"/*")}".`);let G=[],v="^"+Z.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(b,g,K,F,L)=>{if(G.push({paramName:g,isOptional:K!=null}),K){let U=L.charAt(F+b.length);if(U&&U!=="/")return"/([^\\/]*)";return"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");if(Z.endsWith("*"))G.push({paramName:"*"}),v+=Z==="*"||Z==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$";else if(z)v+="\\/*$";else if(Z!==""&&Z!=="/")v+="(?:(?=\\/|$))";return[new RegExp(v,J?void 0:"i"),G]}function oh(Z){try{return Z.split("/").map((J)=>decodeURIComponent(J).replace(/\//g,"%2F")).join("/")}catch(J){return uw(!1,`The URL path "${Z}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${J}).`),Z}}function C6(Z,J){if(J==="/")return Z;if(!Z.toLowerCase().startsWith(J.toLowerCase()))return null;let z=J.endsWith("/")?J.length-1:J.length,G=Z.charAt(z);if(G&&G!=="/")return null;return Z.slice(z)||"/"}var sh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function aT(Z,J="/"){let{pathname:z,search:G="",hash:v=""}=typeof Z==="string"?C7(Z):Z,Q;if(z)if(z=pT(z),z.startsWith("/"))Q=DT(z.substring(1),"/");else Q=DT(z,J);else Q=J;return{pathname:Q,search:wR(G),hash:$R(v)}}function DT(Z,J){let z=WG(J).split("/");return Z.split("/").forEach((v)=>{if(v===".."){if(z.length>1)z.pop()}else if(v!==".")z.push(v)}),z.length>1?z.join("/"):"/"}function lg(Z,J,z,G){return`Cannot include a '${Z}' character in a manually specified \`to.${J}\` field [${JSON.stringify(G)}]. Please separate it out to the \`to.${z}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function th(Z){return Z.filter((J,z)=>z===0||J.route.path&&J.route.path.length>0)}function iT(Z){let J=th(Z);return J.map((z,G)=>G===J.length-1?z.pathname:z.pathnameBase)}function sg(Z,J,z,G=!1){let v;if(typeof Z==="string")v=C7(Z);else v={...Z},G5(!v.pathname||!v.pathname.includes("?"),lg("?","pathname","search",v)),G5(!v.pathname||!v.pathname.includes("#"),lg("#","pathname","hash",v)),G5(!v.search||!v.search.includes("#"),lg("#","search","hash",v));let Q=Z===""||v.pathname==="",b=Q?"/":v.pathname,g;if(b==null)g=z;else{let U=J.length-1;if(!G&&b.startsWith("..")){let k=b.split("/");while(k[0]==="..")k.shift(),U-=1;v.pathname=k.join("/")}g=U>=0?J[U]:"/"}let K=aT(v,g),F=b&&b!=="/"&&b.endsWith("/"),L=(Q||b===".")&&z.endsWith("/");if(!K.pathname.endsWith("/")&&(F||L))K.pathname+="/";return K}var pT=(Z)=>Z.replace(/\/\/+/g,"/"),D4=(Z)=>pT(Z.join("/")),WG=(Z)=>Z.replace(/\/+$/,""),eh=(Z)=>WG(Z).replace(/^\/*/,"/"),wR=(Z)=>!Z||Z==="?"?"":Z.startsWith("?")?Z:"?"+Z,$R=(Z)=>!Z||Z==="#"?"":Z.startsWith("#")?Z:"#"+Z;var rT=class{constructor(Z,J,z,G=!1){if(this.status=Z,this.statusText=J||"",this.internal=G,z instanceof Error)this.data=z.toString(),this.error=z;else this.data=z}};function nT(Z){return Z!=null&&typeof Z.status==="number"&&typeof Z.statusText==="string"&&typeof Z.internal==="boolean"&&"data"in Z}function ZR(Z){let J=Z.map((z)=>z.route.path).filter(Boolean);return D4(J)||"/"}var oT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sT(Z,J){let z=Z;if(typeof z!=="string"||!sh.test(z))return{absoluteURL:void 0,isExternal:!1,to:z};let G=z,v=!1;if(oT)try{let Q=new URL(window.location.href),b=z.startsWith("//")?new URL(Q.protocol+z):new URL(z),g=C6(b.pathname,J);if(b.origin===Q.origin&&g!=null)z=g+b.search+b.hash;else v=!0}catch(Q){uw(!1,`<Link to="${z}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:G,isExternal:v,to:z}}var $r=Symbol("Uninstrumented");var Zr=Object.getOwnPropertyNames(Object.prototype).sort().join("\x00");var tT=["POST","PUT","PATCH","DELETE"],Xr=new Set(tT),XR=["GET",...tT],Jr=new Set(XR);var Yr=Symbol("ResetLoaderData"),JR,YR,zR,GR;JR=new WeakMap;YR=new WeakMap;zR=new WeakMap;GR=new WeakMap;var M7=vw.createContext(null);M7.displayName="DataRouter";var Q$=vw.createContext(null);Q$.displayName="DataRouterState";var eT=vw.createContext(!1);function BR(){return vw.useContext(eT)}var tg=vw.createContext({isTransitioning:!1});tg.displayName="ViewTransition";var wI=vw.createContext(new Map);wI.displayName="Fetchers";var vR=vw.createContext(null);vR.displayName="Await";var n2=vw.createContext(null);n2.displayName="Navigation";var g$=vw.createContext(null);g$.displayName="Location";var Q4=vw.createContext({outlet:null,matches:[],isDataRoute:!1});Q4.displayName="Route";var eg=vw.createContext(null);eg.displayName="RouteError";var pg=!0,$I="REACT_ROUTER_ERROR",HR="REDIRECT",QR="ROUTE_ERROR_RESPONSE";function gR(Z){if(Z.startsWith(`${$I}:${HR}:{`))try{let J=JSON.parse(Z.slice(28));if(typeof J==="object"&&J&&typeof J.status==="number"&&typeof J.statusText==="string"&&typeof J.location==="string"&&typeof J.reloadDocument==="boolean"&&typeof J.replace==="boolean")return J}catch{}}function bR(Z){if(Z.startsWith(`${$I}:${QR}:{`))try{let J=JSON.parse(Z.slice(40));if(typeof J==="object"&&J&&typeof J.status==="number"&&typeof J.statusText==="string")return new rT(J.status,J.statusText,J.data)}catch{}}function ZI(Z,{relative:J}={}){G5(b$(),"useHref() may be used only in the context of a <Router> component.");let{basename:z,navigator:G}=m0.useContext(n2),{hash:v,pathname:Q,search:b}=W$(Z,{relative:J}),g=Q;if(z!=="/")g=Q==="/"?z:D4([z,Q]);return G.createHref({pathname:g,search:b,hash:v})}function b$(){return m0.useContext(g$)!=null}function lw(){return G5(b$(),"useLocation() may be used only in the context of a <Router> component."),m0.useContext(g$).location}var XI="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function JI(Z){if(!m0.useContext(n2).static)m0.useLayoutEffect(Z)}function d4(){let{isDataRoute:Z}=m0.useContext(Q4);return Z?_R():WR()}function WR(){G5(b$(),"useNavigate() may be used only in the context of a <Router> component.");let Z=m0.useContext(M7),{basename:J,navigator:z}=m0.useContext(n2),{matches:G}=m0.useContext(Q4),{pathname:v}=lw(),Q=JSON.stringify(iT(G)),b=m0.useRef(!1);return JI(()=>{b.current=!0}),m0.useCallback((K,F={})=>{if(uw(b.current,XI),!b.current)return;if(typeof K==="number"){z.go(K);return}let L=sg(K,JSON.parse(Q),v,F.relative==="path");if(Z==null&&J!=="/")L.pathname=L.pathname==="/"?J:D4([J,L.pathname]);(F.replace?z.replace:z.push)(L,F.state,F)},[J,z,Q,v,Z])}var KR=m0.createContext(null);function YI(Z){let J=m0.useContext(Q4).outlet;return m0.useMemo(()=>J&&m0.createElement(KR.Provider,{value:Z},J),[J,Z])}function wb(){let{matches:Z}=m0.useContext(Q4);return Z[Z.length-1]?.params??{}}function W$(Z,{relative:J}={}){let{matches:z}=m0.useContext(Q4),{pathname:G}=lw(),v=JSON.stringify(iT(z));return m0.useMemo(()=>sg(Z,JSON.parse(v),G,J==="path"),[Z,v,G,J])}function zI(Z,J){return GI(Z,J)}function GI(Z,J,z){G5(b$(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:G}=m0.useContext(n2),{matches:v}=m0.useContext(Q4),Q=v[v.length-1],b=Q?Q.params:{},g=Q?Q.pathname:"/",K=Q?Q.pathnameBase:"/",F=Q&&Q.route;if(pg){let C=F&&F.path||"";QI(g,!F||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${C}">) 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.
241
-
242
- Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let L=lw(),U;if(J){let C=typeof J==="string"?C7(J):J;G5(K==="/"||C.pathname?.startsWith(K),`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 "${K}" but pathname "${C.pathname}" was given in the \`location\` prop.`),U=C}else U=L;let k=U.pathname||"/",N=k;if(K!=="/"){let C=K.replace(/^\//,"").split("/");N="/"+k.replace(/^\//,"").split("/").slice(C.length).join("/")}let A=z&&z.state.matches.length?z.state.matches.map((C)=>Object.assign(C,{route:z.manifest[C.route.id]||C.route})):og(Z,{pathname:N});if(pg)uw(F||A!=null,`No routes matched location "${U.pathname}${U.search}${U.hash}" `),uw(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${U.pathname}${U.search}${U.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 _=kR(A&&A.map((C)=>Object.assign({},C,{params:Object.assign({},b,C.params),pathname:D4([K,G.encodeLocation?G.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?K:D4([K,G.encodeLocation?G.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),v,z);if(J&&_)return m0.createElement(g$.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...U},navigationType:"POP"}},_);return _}function UR(){let Z=HI(),J=nT(Z)?`${Z.status} ${Z.statusText}`:Z instanceof Error?Z.message:JSON.stringify(Z),z=Z instanceof Error?Z.stack:null,G="rgba(200,200,200, 0.5)",v={padding:"0.5rem",backgroundColor:G},Q={padding:"2px 4px",backgroundColor:G},b=null;if(pg)console.error("Error handled by React Router default ErrorBoundary:",Z),b=m0.createElement(m0.Fragment,null,m0.createElement("p",null,"\uD83D\uDCBF Hey developer \uD83D\uDC4B"),m0.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m0.createElement("code",{style:Q},"ErrorBoundary")," or"," ",m0.createElement("code",{style:Q},"errorElement")," prop on your route."));return m0.createElement(m0.Fragment,null,m0.createElement("h2",null,"Unexpected Application Error!"),m0.createElement("h3",{style:{fontStyle:"italic"}},J),z?m0.createElement("pre",{style:v},z):null,b)}var qR=m0.createElement(UR,null),BI=class extends m0.Component{constructor(Z){super(Z);this.state={location:Z.location,revalidation:Z.revalidation,error:Z.error}}static getDerivedStateFromError(Z){return{error:Z}}static getDerivedStateFromProps(Z,J){if(J.location!==Z.location||J.revalidation!=="idle"&&Z.revalidation==="idle")return{error:Z.error,location:Z.location,revalidation:Z.revalidation};return{error:Z.error!==void 0?Z.error:J.error,location:J.location,revalidation:Z.revalidation||J.revalidation}}componentDidCatch(Z,J){if(this.props.onError)this.props.onError(Z,J);else console.error("React Router caught the following error during render",Z)}render(){let Z=this.state.error;if(this.context&&typeof Z==="object"&&Z&&"digest"in Z&&typeof Z.digest==="string"){let z=bR(Z.digest);if(z)Z=z}let J=Z!==void 0?m0.createElement(Q4.Provider,{value:this.props.routeContext},m0.createElement(eg.Provider,{value:Z,children:this.props.component})):this.props.children;if(this.context)return m0.createElement(LR,{error:Z},J);return J}};BI.contextType=eT;var cg=new WeakMap;function LR({children:Z,error:J}){let{basename:z}=m0.useContext(n2);if(typeof J==="object"&&J&&"digest"in J&&typeof J.digest==="string"){let G=gR(J.digest);if(G){let v=cg.get(J);if(v)throw v;let Q=sT(G.location,z);if(oT&&!cg.get(J))if(Q.isExternal||G.reloadDocument)window.location.href=Q.absoluteURL||Q.to;else{let b=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(Q.to,{replace:G.replace}));throw cg.set(J,b),b}return m0.createElement("meta",{httpEquiv:"refresh",content:`0;url=${Q.absoluteURL||Q.to}`})}}return Z}function FR({routeContext:Z,match:J,children:z}){let G=m0.useContext(M7);if(G&&G.static&&G.staticContext&&(J.route.errorElement||J.route.ErrorBoundary))G.staticContext._deepestRenderedBoundaryId=J.route.id;return m0.createElement(Q4.Provider,{value:Z},z)}function kR(Z,J=[],z){let G=z?.state;if(Z==null){if(!G)return null;if(G.errors)Z=G.matches;else if(J.length===0&&!G.initialized&&G.matches.length>0)Z=G.matches;else return null}let v=Z,Q=G?.errors;if(Q!=null){let L=v.findIndex((U)=>U.route.id&&Q?.[U.route.id]!==void 0);G5(L>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(Q).join(",")}`),v=v.slice(0,Math.min(v.length,L+1))}let b=!1,g=-1;if(z&&G){b=G.renderFallback;for(let L=0;L<v.length;L++){let U=v[L];if(U.route.HydrateFallback||U.route.hydrateFallbackElement)g=L;if(U.route.id){let{loaderData:k,errors:N}=G,A=U.route.loader&&!k.hasOwnProperty(U.route.id)&&(!N||N[U.route.id]===void 0);if(U.route.lazy||A){if(z.isStatic)b=!0;if(g>=0)v=v.slice(0,g+1);else v=[v[0]];break}}}}let K=z?.onError,F=G&&K?(L,U)=>{K(L,{location:G.location,params:G.matches?.[0]?.params??{},pattern:ZR(G.matches),errorInfo:U})}:void 0;return v.reduceRight((L,U,k)=>{let N,A=!1,_=null,C=null;if(G){if(N=Q&&U.route.id?Q[U.route.id]:void 0,_=U.route.errorElement||qR,b){if(g<0&&k===0)QI("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,C=null;else if(g===k)A=!0,C=U.route.hydrateFallbackElement||null}}let x=J.concat(v.slice(0,k+1)),S=()=>{let d;if(N)d=_;else if(A)d=C;else if(U.route.Component)d=m0.createElement(U.route.Component,null);else if(U.route.element)d=U.route.element;else d=L;return m0.createElement(FR,{match:U,routeContext:{outlet:L,matches:x,isDataRoute:G!=null},children:d})};return G&&(U.route.ErrorBoundary||U.route.errorElement||k===0)?m0.createElement(BI,{location:G.location,revalidation:G.revalidation,component:_,error:N,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:F}):S()},null)}function $b(Z){return`${Z} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function NR(Z){let J=m0.useContext(M7);return G5(J,$b(Z)),J}function Zb(Z){let J=m0.useContext(Q$);return G5(J,$b(Z)),J}function TR(Z){let J=m0.useContext(Q4);return G5(J,$b(Z)),J}function Xb(Z){let J=TR(Z),z=J.matches[J.matches.length-1];return G5(z.route.id,`${Z} can only be used on routes that contain a unique "id"`),z.route.id}function IR(){return Xb("useRouteId")}function vI(){let Z=Zb("useNavigation");return m0.useMemo(()=>{let{matches:J,historyAction:z,...G}=Z.navigation;return G},[Z.navigation])}function Jb(){let{matches:Z,loaderData:J}=Zb("useMatches");return m0.useMemo(()=>Z.map((z)=>Sh(z,J)),[Z,J])}function HI(){let Z=m0.useContext(eg),J=Zb("useRouteError"),z=Xb("useRouteError");if(Z!==void 0)return Z;return J.errors?.[z]}function _R(){let{router:Z}=NR("useNavigate"),J=Xb("useNavigate"),z=m0.useRef(!1);return JI(()=>{z.current=!0}),m0.useCallback(async(v,Q={})=>{if(uw(z.current,XI),!z.current)return;if(typeof v==="number")await Z.navigate(v);else await Z.navigate(v,{fromRouteId:J,...Q})},[Z,J])}var dT={};function QI(Z,J,z){if(!J&&!dT[Z])dT[Z]=!0,uw(!1,z)}var OR="useOptimistic",zr=b5[OR];var Gr=b5.memo(AR);function AR({routes:Z,manifest:J,future:z,state:G,isStatic:v,onError:Q}){return GI(Z,void 0,{manifest:J,state:G,isStatic:v,onError:Q,future:z})}function Yb(Z){return YI(Z.context)}function b2(Z){G5(!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 zb({basename:Z="/",children:J=null,location:z,navigationType:G="POP",navigator:v,static:Q=!1,useTransitions:b}){G5(!b$(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=Z.replace(/^\/*/,"/"),K=b5.useMemo(()=>({basename:g,navigator:v,static:Q,useTransitions:b,future:{}}),[g,v,Q,b]);if(typeof z==="string")z=C7(z);let{pathname:F="/",search:L="",hash:U="",state:k=null,key:N="default",mask:A}=z,_=b5.useMemo(()=>{let C=C6(F,g);if(C==null)return null;return{location:{pathname:C,search:L,hash:U,state:k,key:N,mask:A},navigationType:G}},[g,F,L,U,k,N,G,A]);if(uw(_!=null,`<Router basename="${g}"> is not able to match the URL "${F}${L}${U}" because it does not start with the basename, so the <Router> won't render anything.`),_==null)return null;return b5.createElement(n2.Provider,{value:K},b5.createElement(g$.Provider,{children:J,value:_}))}function Gb({children:Z,location:J}){return zI(KG(Z),J)}function KG(Z,J=[]){let z=[];return b5.Children.forEach(Z,(G,v)=>{if(!b5.isValidElement(G))return;let Q=[...J,v];if(G.type===b5.Fragment){z.push.apply(z,KG(G.props.children,Q));return}G5(G.type===b2,`[${typeof G.type==="string"?G.type:G.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),G5(!G.props.index||!G.props.children,"An index route cannot have child routes.");let b={id:G.props.id||Q.join("-"),caseSensitive:G.props.caseSensitive,element:G.props.element,Component:G.props.Component,index:G.props.index,path:G.props.path,middleware:G.props.middleware,loader:G.props.loader,action:G.props.action,hydrateFallbackElement:G.props.hydrateFallbackElement,HydrateFallback:G.props.HydrateFallback,errorElement:G.props.errorElement,ErrorBoundary:G.props.ErrorBoundary,hasErrorBoundary:G.props.hasErrorBoundary===!0||G.props.ErrorBoundary!=null||G.props.errorElement!=null,shouldRevalidate:G.props.shouldRevalidate,handle:G.props.handle,lazy:G.props.lazy};if(G.props.children)b.children=KG(G.props.children,Q);z.push(b)}),z}var gG="get",bG="application/x-www-form-urlencoded";function qG(Z){return typeof HTMLElement<"u"&&Z instanceof HTMLElement}function CR(Z){return qG(Z)&&Z.tagName.toLowerCase()==="button"}function MR(Z){return qG(Z)&&Z.tagName.toLowerCase()==="form"}function xR(Z){return qG(Z)&&Z.tagName.toLowerCase()==="input"}function mR(Z){return!!(Z.metaKey||Z.altKey||Z.ctrlKey||Z.shiftKey)}function PR(Z,J){return Z.button===0&&(!J||J==="_self")&&!mR(Z)}function UG(Z=""){return new URLSearchParams(typeof Z==="string"||Array.isArray(Z)||Z instanceof URLSearchParams?Z:Object.keys(Z).reduce((J,z)=>{let G=Z[z];return J.concat(Array.isArray(G)?G.map((v)=>[z,v]):[[z,G]])},[]))}function fR(Z,J){let z=UG(Z);if(J)J.forEach((G,v)=>{if(!z.has(v))J.getAll(v).forEach((Q)=>{z.append(v,Q)})});return z}var HG=null;function VR(){if(HG===null)try{new FormData(document.createElement("form"),0),HG=!1}catch(Z){HG=!0}return HG}var hR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ag(Z){if(Z!=null&&!hR.has(Z))return uw(!1,`"${Z}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bG}"`),null;return Z}function RR(Z,J){let z,G,v,Q,b;if(MR(Z)){let g=Z.getAttribute("action");G=g?C6(g,J):null,z=Z.getAttribute("method")||gG,v=ag(Z.getAttribute("enctype"))||bG,Q=new FormData(Z)}else if(CR(Z)||xR(Z)&&(Z.type==="submit"||Z.type==="image")){let g=Z.form;if(g==null)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let K=Z.getAttribute("formaction")||g.getAttribute("action");if(G=K?C6(K,J):null,z=Z.getAttribute("formmethod")||g.getAttribute("method")||gG,v=ag(Z.getAttribute("formenctype"))||ag(g.getAttribute("enctype"))||bG,Q=new FormData(g,Z),!VR()){let{name:F,type:L,value:U}=Z;if(L==="image"){let k=F?`${F}.`:"";Q.append(`${k}x`,"0"),Q.append(`${k}y`,"0")}else if(F)Q.append(F,U)}}else if(qG(Z))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else z=gG,G=null,v=bG,b=Z;if(Q&&v==="text/plain")b=Q,Q=void 0;return{action:G,method:z.toLowerCase(),encType:v,formData:Q,body:b}}var Br=Object.getOwnPropertyNames(Object.prototype).sort().join("\x00");var yR={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},SR=/[&><\u2028\u2029]/g;function jT(Z){return Z.replace(SR,(J)=>yR[J])}function vb(Z,J){if(Z===!1||Z===null||typeof Z>"u")throw Error(J)}var DR=Symbol("SingleFetchRedirect");function gI(Z,J,z,G){let v=typeof Z==="string"?new URL(Z,typeof window>"u"?"server://singlefetch/":window.location.origin):Z;if(z)if(v.pathname.endsWith("/"))v.pathname=`${v.pathname}_.${G}`;else v.pathname=`${v.pathname}.${G}`;else if(v.pathname==="/")v.pathname=`_root.${G}`;else if(J&&C6(v.pathname,J)==="/")v.pathname=`${WG(J)}/_root.${G}`;else v.pathname=`${WG(v.pathname)}.${G}`;return v}async function dR(Z,J){if(Z.id in J)return J[Z.id];try{let z=await import(Z.module);return J[Z.id]=z,z}catch(z){return console.error(`Error loading route module \`${Z.module}\`, reloading page...`),console.error(z),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode&&void 0,window.location.reload(),new Promise(()=>{})}}function jR(Z){return Z!=null&&typeof Z.page==="string"}function ER(Z){if(Z==null)return!1;if(Z.href==null)return Z.rel==="preload"&&typeof Z.imageSrcSet==="string"&&typeof Z.imageSizes==="string";return typeof Z.rel==="string"&&typeof Z.href==="string"}async function uR(Z,J,z){let G=await Promise.all(Z.map(async(v)=>{let Q=J.routes[v.route.id];if(Q){let b=await dR(Q,z);return b.links?b.links():[]}return[]}));return iR(G.flat(1).filter(ER).filter((v)=>v.rel==="stylesheet"||v.rel==="preload").map((v)=>v.rel==="stylesheet"?{...v,rel:"prefetch",as:"style"}:{...v,rel:"prefetch"}))}function ET(Z,J,z,G,v,Q){let b=(K,F)=>{if(!z[F])return!0;return K.route.id!==z[F].route.id},g=(K,F)=>{return z[F].pathname!==K.pathname||z[F].route.path?.endsWith("*")&&z[F].params["*"]!==K.params["*"]};if(Q==="assets")return J.filter((K,F)=>b(K,F)||g(K,F));if(Q==="data")return J.filter((K,F)=>{let L=G.routes[K.route.id];if(!L||!L.hasLoader)return!1;if(b(K,F)||g(K,F))return!0;if(K.route.shouldRevalidate){let U=K.route.shouldRevalidate({currentUrl:new URL(v.pathname+v.search+v.hash,window.origin),currentParams:z[0]?.params||{},nextUrl:new URL(Z,window.origin),nextParams:K.params,defaultShouldRevalidate:!0});if(typeof U==="boolean")return U}return!0});return[]}function lR(Z,J,{includeHydrateFallback:z}={}){return cR(Z.map((G)=>{let v=J.routes[G.route.id];if(!v)return[];let Q=[v.module];if(v.clientActionModule)Q=Q.concat(v.clientActionModule);if(v.clientLoaderModule)Q=Q.concat(v.clientLoaderModule);if(z&&v.hydrateFallbackModule)Q=Q.concat(v.hydrateFallbackModule);if(v.imports)Q=Q.concat(v.imports);return Q}).flat(1))}function cR(Z){return[...new Set(Z)]}function aR(Z){let J={},z=Object.keys(Z).sort();for(let G of z)J[G]=Z[G];return J}function iR(Z,J){let z=new Set,G=new Set(J);return Z.reduce((v,Q)=>{if(J&&!jR(Q)&&Q.as==="script"&&Q.href&&G.has(Q.href))return v;let g=JSON.stringify(aR(Q));if(!z.has(g))z.add(g),v.push({key:g,link:Q});return v},[])}function Hb(){let Z=L1.useContext(M7);return vb(Z,"You must render this element inside a <DataRouterContext.Provider> element"),Z}function oR(){let Z=L1.useContext(Q$);return vb(Z,"You must render this element inside a <DataRouterStateContext.Provider> element"),Z}var PX=L1.createContext(void 0);PX.displayName="FrameworkContext";function Qb(){let Z=L1.useContext(PX);return vb(Z,"You must render this element inside a <HydratedRouter> element"),Z}function sR(Z,J){let z=L1.useContext(PX),[G,v]=L1.useState(!1),[Q,b]=L1.useState(!1),{onFocus:g,onBlur:K,onMouseEnter:F,onMouseLeave:L,onTouchStart:U}=J,k=L1.useRef(null);L1.useEffect(()=>{if(Z==="render")b(!0);if(Z==="viewport"){let C=new IntersectionObserver((x)=>{x.forEach((S)=>{b(S.isIntersecting)})},{threshold:0.5});if(k.current)C.observe(k.current);return()=>{C.disconnect()}}},[Z]),L1.useEffect(()=>{if(G){let _=setTimeout(()=>{b(!0)},100);return()=>{clearTimeout(_)}}},[G]);let N=()=>{v(!0)},A=()=>{v(!1),b(!1)};if(!z)return[!1,k,{}];if(Z!=="intent")return[Q,k,{}];return[Q,k,{onFocus:xX(g,N),onBlur:xX(K,A),onMouseEnter:xX(F,N),onMouseLeave:xX(L,A),onTouchStart:xX(U,N)}]}function xX(Z,J){return(z)=>{if(Z&&Z(z),!z.defaultPrevented)J(z)}}function WI({page:Z,...J}){let z=BR(),{router:G}=Hb(),v=L1.useMemo(()=>og(G.routes,Z,G.basename),[G.routes,Z,G.basename]);if(!v)return null;if(z)return L1.createElement(eR,{page:Z,matches:v,...J});return L1.createElement(wy,{page:Z,matches:v,...J})}function tR(Z){let{manifest:J,routeModules:z}=Qb(),[G,v]=L1.useState([]);return L1.useEffect(()=>{let Q=!1;return uR(Z,J,z).then((b)=>{if(!Q)v(b)}),()=>{Q=!0}},[Z,J,z]),G}function eR({page:Z,matches:J,...z}){let G=lw(),{future:v}=Qb(),{basename:Q}=Hb(),b=L1.useMemo(()=>{if(Z===G.pathname+G.search+G.hash)return[];let g=gI(Z,Q,v.v8_trailingSlashAwareDataRequests,"rsc"),K=!1,F=[];for(let L of J)if(typeof L.route.shouldRevalidate==="function")K=!0;else F.push(L.route.id);if(K&&F.length>0)g.searchParams.set("_routes",F.join(","));return[g.pathname+g.search]},[Q,v.v8_trailingSlashAwareDataRequests,Z,G,J]);return L1.createElement(L1.Fragment,null,b.map((g)=>L1.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...z})))}function wy({page:Z,matches:J,...z}){let G=lw(),{future:v,manifest:Q,routeModules:b}=Qb(),{basename:g}=Hb(),{loaderData:K,matches:F}=oR(),L=L1.useMemo(()=>ET(Z,J,F,Q,G,"data"),[Z,J,F,Q,G]),U=L1.useMemo(()=>ET(Z,J,F,Q,G,"assets"),[Z,J,F,Q,G]),k=L1.useMemo(()=>{if(Z===G.pathname+G.search+G.hash)return[];let _=new Set,C=!1;if(J.forEach((S)=>{let d=Q.routes[S.route.id];if(!d||!d.hasLoader)return;if(!L.some((i)=>i.route.id===S.route.id)&&S.route.id in K&&b[S.route.id]?.shouldRevalidate)C=!0;else if(d.hasClientLoader)C=!0;else _.add(S.route.id)}),_.size===0)return[];let x=gI(Z,g,v.v8_trailingSlashAwareDataRequests,"data");if(C&&_.size>0)x.searchParams.set("_routes",J.filter((S)=>_.has(S.route.id)).map((S)=>S.route.id).join(","));return[x.pathname+x.search]},[g,v.v8_trailingSlashAwareDataRequests,K,G,Q,L,J,Z,b]),N=L1.useMemo(()=>lR(U,Q),[U,Q]),A=tR(U);return L1.createElement(L1.Fragment,null,k.map((_)=>L1.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...z})),N.map((_)=>L1.createElement("link",{key:_,rel:"modulepreload",href:_,...z})),A.map(({key:_,link:C})=>L1.createElement("link",{key:_,nonce:z.nonce,...C,crossOrigin:C.crossOrigin??z.crossOrigin})))}function $y(...Z){return(J)=>{Z.forEach((z)=>{if(typeof z==="function")z(J);else if(z!=null)z.current=J})}}var Zy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{if(Zy)window.__reactRouterVersion="7.16.0"}catch(Z){}function gb({basename:Z,children:J,useTransitions:z,window:G}){let v=f0.useRef();if(v.current==null)v.current=uT({window:G,v5Compat:!0});let Q=v.current,[b,g]=f0.useState({action:Q.action,location:Q.location}),K=f0.useCallback((F)=>{if(z===!1)g(F);else f0.startTransition(()=>g(F))},[z]);return f0.useLayoutEffect(()=>Q.listen(K),[Q,K]),f0.createElement(zb,{basename:Z,children:J,location:b.location,navigationType:b.action,navigator:Q,useTransitions:z})}function KI({basename:Z,children:J,history:z,useTransitions:G}){let[v,Q]=f0.useState({action:z.action,location:z.location}),b=f0.useCallback((g)=>{if(G===!1)Q(g);else f0.startTransition(()=>Q(g))},[G]);return f0.useLayoutEffect(()=>z.listen(b),[z,b]),f0.createElement(zb,{basename:Z,children:J,location:v.location,navigationType:v.action,navigator:z,useTransitions:G})}KI.displayName="unstable_HistoryRouter";var UI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H9=f0.forwardRef(function({onClick:J,discover:z="render",prefetch:G="none",relative:v,reloadDocument:Q,replace:b,mask:g,state:K,target:F,to:L,preventScrollReset:U,viewTransition:k,defaultShouldRevalidate:N,...A},_){let{basename:C,navigator:x,useTransitions:S}=f0.useContext(n2),d=typeof L==="string"&&UI.test(L),i=sT(L,C);L=i.to;let Z0=ZI(L,{relative:v}),p=lw(),j=null;if(g){let e=sg(g,[],p.mask?p.mask.pathname:"/",!0);if(C!=="/")e.pathname=e.pathname==="/"?C:D4([C,e.pathname]);j=x.createHref(e)}let[$0,s,E]=sR(G,A),Q0=kI(L,{replace:b,mask:g,state:K,target:F,preventScrollReset:U,relative:v,viewTransition:k,defaultShouldRevalidate:N,useTransitions:S});function G0(e){if(J)J(e);if(!e.defaultPrevented)Q0(e)}let q0=!(i.isExternal||Q),F0=f0.createElement("a",{...A,...E,href:(q0?j:void 0)||i.absoluteURL||Z0,onClick:q0?G0:J,ref:$y(_,s),target:F,"data-discover":!d&&z==="render"?"true":void 0});return $0&&!d?f0.createElement(f0.Fragment,null,F0,f0.createElement(WI,{page:Z0})):F0});H9.displayName="Link";var LG=f0.forwardRef(function({"aria-current":J="page",caseSensitive:z=!1,className:G="",end:v=!1,style:Q,to:b,viewTransition:g,children:K,...F},L){let U=W$(b,{relative:F.relative}),k=lw(),N=f0.useContext(Q$),{navigator:A,basename:_}=f0.useContext(n2),C=N!=null&&_I(U)&&g===!0,x=A.encodeLocation?A.encodeLocation(U).pathname:U.pathname,S=k.pathname,d=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;if(!z)S=S.toLowerCase(),d=d?d.toLowerCase():null,x=x.toLowerCase();if(d&&_)d=C6(d,_)||d;let i=x!=="/"&&x.endsWith("/")?x.length-1:x.length,Z0=S===x||!v&&S.startsWith(x)&&S.charAt(i)==="/",p=d!=null&&(d===x||!v&&d.startsWith(x)&&d.charAt(x.length)==="/"),j={isActive:Z0,isPending:p,isTransitioning:C},$0=Z0?J:void 0,s;if(typeof G==="function")s=G(j);else s=[G,Z0?"active":null,p?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let E=typeof Q==="function"?Q(j):Q;return f0.createElement(H9,{...F,"aria-current":$0,className:s,ref:L,style:E,to:b,viewTransition:g},typeof K==="function"?K(j):K)});LG.displayName="NavLink";var qI=f0.forwardRef(({discover:Z="render",fetcherKey:J,navigate:z,reloadDocument:G,replace:v,state:Q,method:b=gG,action:g,onSubmit:K,relative:F,preventScrollReset:L,viewTransition:U,defaultShouldRevalidate:k,...N},A)=>{let{useTransitions:_}=f0.useContext(n2),C=NI(),x=TI(g,{relative:F}),S=b.toLowerCase()==="get"?"get":"post",d=typeof g==="string"&&UI.test(g);return f0.createElement("form",{ref:A,method:S,action:x,onSubmit:G?K:(Z0)=>{if(K&&K(Z0),Z0.defaultPrevented)return;Z0.preventDefault();let p=Z0.nativeEvent.submitter,j=p?.getAttribute("formmethod")||b,$0=()=>C(p||Z0.currentTarget,{fetcherKey:J,method:j,navigate:z,replace:v,state:Q,relative:F,preventScrollReset:L,viewTransition:U,defaultShouldRevalidate:k});if(_&&z!==!1)f0.startTransition(()=>$0());else $0()},...N,"data-discover":!d&&Z==="render"?"true":void 0})});qI.displayName="Form";function LI({getKey:Z,storageKey:J,...z}){let G=f0.useContext(PX),{basename:v}=f0.useContext(n2),Q=lw(),b=Jb();II({getKey:Z,storageKey:J});let g=f0.useMemo(()=>{if(!G||!Z)return null;let F=ng(Q,b,v,Z);return F!==Q.key?F:null},[]);if(!G||G.isSpaMode)return null;let K=((F,L)=>{if(!window.history.state||!window.history.state.key){let U=Math.random().toString(32).slice(2);window.history.replaceState({key:U},"")}try{let k=JSON.parse(sessionStorage.getItem(F)||"{}")[L||window.history.state.key];if(typeof k==="number")window.scrollTo(0,k)}catch(U){console.error(U),sessionStorage.removeItem(F)}}).toString();return f0.createElement("script",{...z,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${K})(${jT(JSON.stringify(J||rg))}, ${jT(JSON.stringify(g))})`}})}LI.displayName="ScrollRestoration";function FI(Z){return`${Z} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bb(Z){let J=f0.useContext(M7);return G5(J,FI(Z)),J}function Xy(Z){let J=f0.useContext(Q$);return G5(J,FI(Z)),J}function kI(Z,{target:J,replace:z,mask:G,state:v,preventScrollReset:Q,relative:b,viewTransition:g,defaultShouldRevalidate:K,useTransitions:F}={}){let L=d4(),U=lw(),k=W$(Z,{relative:b});return f0.useCallback((N)=>{if(PR(N,J)){N.preventDefault();let A=z!==void 0?z:H$(U)===H$(k),_=()=>L(Z,{replace:A,mask:G,state:v,preventScrollReset:Q,relative:b,viewTransition:g,defaultShouldRevalidate:K});if(F)f0.startTransition(()=>_());else _()}},[U,L,k,z,G,v,J,Z,Q,b,g,K,F])}function x7(Z){uw(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let J=f0.useRef(UG(Z)),z=f0.useRef(!1),G=lw(),v=f0.useMemo(()=>fR(G.search,z.current?null:J.current),[G.search]),Q=d4(),b=f0.useCallback((g,K)=>{let F=UG(typeof g==="function"?g(new URLSearchParams(v)):g);z.current=!0,Q("?"+F,K)},[Q,v]);return[v,b]}var Jy=0,Yy=()=>`__${String(++Jy)}__`;function NI(){let{router:Z}=bb("useSubmit"),{basename:J}=f0.useContext(n2),z=IR(),G=Z.fetch,v=Z.navigate;return f0.useCallback(async(Q,b={})=>{let{action:g,method:K,encType:F,formData:L,body:U}=RR(Q,J);if(b.navigate===!1){let k=b.fetcherKey||Yy();await G(k,z,b.action||g,{defaultShouldRevalidate:b.defaultShouldRevalidate,preventScrollReset:b.preventScrollReset,formData:L,body:U,formMethod:b.method||K,formEncType:b.encType||F,flushSync:b.flushSync})}else await v(b.action||g,{defaultShouldRevalidate:b.defaultShouldRevalidate,preventScrollReset:b.preventScrollReset,formData:L,body:U,formMethod:b.method||K,formEncType:b.encType||F,replace:b.replace,state:b.state,fromRouteId:z,flushSync:b.flushSync,viewTransition:b.viewTransition})},[G,v,J,z])}function TI(Z,{relative:J}={}){let{basename:z}=f0.useContext(n2),G=f0.useContext(Q4);G5(G,"useFormAction must be used inside a RouteContext");let[v]=G.matches.slice(-1),Q={...W$(Z?Z:".",{relative:J})},b=lw();if(Z==null){Q.search=b.search;let g=new URLSearchParams(Q.search),K=g.getAll("index");if(K.some((L)=>L==="")){g.delete("index"),K.filter((U)=>U).forEach((U)=>g.append("index",U));let L=g.toString();Q.search=L?`?${L}`:""}}if((!Z||Z===".")&&v.route.index)Q.search=Q.search?Q.search.replace(/^\?/,"?index&"):"?index";if(z!=="/")Q.pathname=Q.pathname==="/"?z:D4([z,Q.pathname]);return H$(Q)}var rg="react-router-scroll-positions",QG={};function ng(Z,J,z,G){let v=null;if(G)if(z!=="/")v=G({...Z,pathname:C6(Z.pathname,z)||Z.pathname},J);else v=G(Z,J);if(v==null)v=Z.key;return v}function II({getKey:Z,storageKey:J}={}){let{router:z}=bb("useScrollRestoration"),{restoreScrollPosition:G,preventScrollReset:v}=Xy("useScrollRestoration"),{basename:Q}=f0.useContext(n2),b=lw(),g=Jb(),K=vI();if(f0.useEffect(()=>{return window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}},[]),zy(f0.useCallback(()=>{if(K.state==="idle"){let F=ng(b,g,Q,Z);QG[F]=window.scrollY}try{sessionStorage.setItem(J||rg,JSON.stringify(QG))}catch(F){uw(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${F}).`)}window.history.scrollRestoration="auto"},[K.state,Z,Q,b,g,J])),typeof document<"u")f0.useLayoutEffect(()=>{try{let F=sessionStorage.getItem(J||rg);if(F)QG=JSON.parse(F)}catch(F){}},[J]),f0.useLayoutEffect(()=>{let F=z?.enableScrollRestoration(QG,()=>window.scrollY,Z?(L,U)=>ng(L,U,Q,Z):void 0);return()=>F&&F()},[z,Q,Z]),f0.useLayoutEffect(()=>{if(G===!1)return;if(typeof G==="number"){window.scrollTo(0,G);return}try{if(b.hash){let F=document.getElementById(decodeURIComponent(b.hash.slice(1)));if(F){F.scrollIntoView();return}}}catch{uw(!1,`"${b.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}if(v===!0)return;window.scrollTo(0,0)},[b,G,v])}function zy(Z,J){let{capture:z}=J||{};f0.useEffect(()=>{let G=z!=null?{capture:z}:void 0;return window.addEventListener("pagehide",Z,G),()=>{window.removeEventListener("pagehide",Z,G)}},[Z,z])}function _I(Z,{relative:J}={}){let z=f0.useContext(tg);G5(z!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:G}=bb("useViewTransitionState"),v=W$(Z,{relative:J});if(!z.isTransitioning)return!1;let Q=C6(z.currentLocation.pathname,G)||z.currentLocation.pathname,b=C6(z.nextLocation.pathname,G)||z.nextLocation.pathname;return mX(v.pathname,b)!=null||mX(v.pathname,Q)!=null}var E4=P(K0(),1);var AI=1,Gy=0.9,By=0.8,vy=0.17,Wb=0.1,Kb=0.999,Hy=0.9999,Qy=0.99,gy=/[\\\/_+.#"@\[\(\{&]/,by=/[\\\/_+.#"@\[\(\{&]/g,Wy=/[\s-]/,MI=/[\s-]/g;function Ub(Z,J,z,G,v,Q,b){if(Q===J.length)return v===Z.length?AI:Qy;var g=`${v},${Q}`;if(b[g]!==void 0)return b[g];for(var K=G.charAt(Q),F=z.indexOf(K,v),L=0,U,k,N,A;F>=0;)U=Ub(Z,J,z,G,F+1,Q+1,b),U>L&&(F===v?U*=AI:gy.test(Z.charAt(F-1))?(U*=By,N=Z.slice(v,F-1).match(by),N&&v>0&&(U*=Math.pow(Kb,N.length))):Wy.test(Z.charAt(F-1))?(U*=Gy,A=Z.slice(v,F-1).match(MI),A&&v>0&&(U*=Math.pow(Kb,A.length))):(U*=vy,v>0&&(U*=Math.pow(Kb,F-v))),Z.charAt(F)!==J.charAt(Q)&&(U*=Hy)),(U<Wb&&z.charAt(F-1)===G.charAt(Q+1)||G.charAt(Q+1)===G.charAt(Q)&&z.charAt(F-1)!==G.charAt(Q))&&(k=Ub(Z,J,z,G,F+1,Q+2,b),k*Wb>U&&(U=k*Wb)),U>L&&(L=U),F=z.indexOf(K,F+1);return b[g]=L,L}function CI(Z){return Z.toLowerCase().replace(MI," ")}function xI(Z,J,z){return Z=z&&z.length>0?`${Z+" "+z.join(" ")}`:Z,Ub(Z,J,CI(Z),CI(J),0,0,{})}var s1=P(K0(),1);var On=!!(typeof window<"u"&&window.document&&window.document.createElement);function D0(Z,J,{checkForDefaultPrevented:z=!0}={}){return function(v){if(Z?.(v),z===!1||!v.defaultPrevented)return J?.(v)}}var PI=P(K0(),1);function mI(Z,J){if(typeof Z==="function")return Z(J);else if(Z!==null&&Z!==void 0)Z.current=J}function f5(...Z){return(J)=>{let z=!1,G=Z.map((v)=>{let Q=mI(v,J);if(!z&&typeof Q=="function")z=!0;return Q});if(z)return()=>{for(let v=0;v<G.length;v++){let Q=G[v];if(typeof Q=="function")Q();else mI(Z[v],null)}}}}function O1(...Z){return PI.useCallback(f5(...Z),Z)}var g4=P(K0(),1),qb=P(z5(),1);function fI(Z,J){let z=g4.createContext(J),G=(Q)=>{let{children:b,...g}=Q,K=g4.useMemo(()=>g,Object.values(g));return qb.jsx(z.Provider,{value:K,children:b})};G.displayName=Z+"Provider";function v(Q){let b=g4.useContext(z);if(b)return b;if(J!==void 0)return J;throw Error(`\`${Q}\` must be used within \`${Z}\``)}return[G,v]}function f2(Z,J=[]){let z=[];function G(Q,b){let g=g4.createContext(b),K=z.length;z=[...z,b];let F=(U)=>{let{scope:k,children:N,...A}=U,_=k?.[Z]?.[K]||g,C=g4.useMemo(()=>A,Object.values(A));return qb.jsx(_.Provider,{value:C,children:N})};F.displayName=Q+"Provider";function L(U,k){let N=k?.[Z]?.[K]||g,A=g4.useContext(N);if(A)return A;if(b!==void 0)return b;throw Error(`\`${U}\` must be used within \`${Q}\``)}return[F,L]}let v=()=>{let Q=z.map((b)=>{return g4.createContext(b)});return function(g){let K=g?.[Z]||Q;return g4.useMemo(()=>({[`__scope${Z}`]:{...g,[Z]:K}}),[g,K])}};return v.scopeName=Z,[G,Ky(v,...J)]}function Ky(...Z){let J=Z[0];if(Z.length===1)return J;let z=()=>{let G=Z.map((v)=>({useScope:v(),scopeName:v.scopeName}));return function(Q){let b=G.reduce((g,{useScope:K,scopeName:F})=>{let U=K(Q)[`__scope${F}`];return{...g,...U}},{});return g4.useMemo(()=>({[`__scope${J.scopeName}`]:b}),[b])}};return z.scopeName=J.scopeName,z}var Lb=P(K0(),1);var VI=P(K0(),1),V2=globalThis?.document?VI.useLayoutEffect:()=>{};var Uy=Lb[" useId ".trim().toString()]||(()=>{return}),qy=0;function V5(Z){let[J,z]=Lb.useState(Uy());return V2(()=>{if(!Z)z((G)=>G??String(qy++))},[Z]),Z||(J?`radix-${J}`:"")}var b4=P(K0(),1);var FG=P(K0(),1);var Ly=b4[" useInsertionEffect ".trim().toString()]||V2;function Q9({prop:Z,defaultProp:J,onChange:z=()=>{},caller:G}){let[v,Q,b]=Fy({defaultProp:J,onChange:z}),g=Z!==void 0,K=g?Z:v;{let L=b4.useRef(Z!==void 0);b4.useEffect(()=>{let U=L.current;if(U!==g)console.warn(`${G} is changing from ${U?"controlled":"uncontrolled"} to ${g?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);L.current=g},[g,G])}let F=b4.useCallback((L)=>{if(g){let U=ky(L)?L(Z):L;if(U!==Z)b.current?.(U)}else Q(L)},[g,Z,Q,b]);return[K,F]}function Fy({defaultProp:Z,onChange:J}){let[z,G]=b4.useState(Z),v=b4.useRef(z),Q=b4.useRef(J);return Ly(()=>{Q.current=J},[J]),b4.useEffect(()=>{if(v.current!==z)Q.current?.(z),v.current=z},[z,v]),[z,G,Q]}function ky(Z){return typeof Z==="function"}var Vn=Symbol("RADIX:SYNC_STATE");var T5=P(K0(),1);var RI=P(K0(),1),yI=P(v9(),1);var o5=P(K0(),1);var kG=P(z5(),1);function hI(Z){let J=Ny(Z),z=o5.forwardRef((G,v)=>{let{children:Q,...b}=G,g=o5.Children.toArray(Q),K=g.find(Iy);if(K){let F=K.props.children,L=g.map((U)=>{if(U===K){if(o5.Children.count(F)>1)return o5.Children.only(null);return o5.isValidElement(F)?F.props.children:null}else return U});return kG.jsx(J,{...b,ref:v,children:o5.isValidElement(F)?o5.cloneElement(F,void 0,L):null})}return kG.jsx(J,{...b,ref:v,children:Q})});return z.displayName=`${Z}.Slot`,z}function Ny(Z){let J=o5.forwardRef((z,G)=>{let{children:v,...Q}=z;if(o5.isValidElement(v)){let b=Oy(v),g=_y(Q,v.props);if(v.type!==o5.Fragment)g.ref=G?f5(G,b):b;return o5.cloneElement(v,g)}return o5.Children.count(v)>1?o5.Children.only(null):null});return J.displayName=`${Z}.SlotClone`,J}var Ty=Symbol("radix.slottable");function Iy(Z){return o5.isValidElement(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===Ty}function _y(Z,J){let z={...J};for(let G in J){let v=Z[G],Q=J[G];if(/^on[A-Z]/.test(G)){if(v&&Q)z[G]=(...g)=>{let K=Q(...g);return v(...g),K};else if(v)z[G]=v}else if(G==="style")z[G]={...v,...Q};else if(G==="className")z[G]=[v,Q].filter(Boolean).join(" ")}return{...Z,...z}}function Oy(Z){let J=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning;if(z)return Z.ref;if(J=Object.getOwnPropertyDescriptor(Z,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning,z)return Z.props.ref;return Z.props.ref||Z.ref}var SI=P(z5(),1),Ay=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H1=Ay.reduce((Z,J)=>{let z=hI(`Primitive.${J}`),G=RI.forwardRef((v,Q)=>{let{asChild:b,...g}=v,K=b?z:J;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return SI.jsx(K,{...g,ref:Q})});return G.displayName=`Primitive.${J}`,{...Z,[J]:G}},{});function NG(Z,J){if(Z)yI.flushSync(()=>Z.dispatchEvent(J))}var K$=P(K0(),1);function W5(Z){let J=K$.useRef(Z);return K$.useEffect(()=>{J.current=Z}),K$.useMemo(()=>(...z)=>J.current?.(...z),[])}var DI=P(K0(),1);function dI(Z,J=globalThis?.document){let z=W5(Z);DI.useEffect(()=>{let G=(v)=>{if(v.key==="Escape")z(v)};return J.addEventListener("keydown",G,{capture:!0}),()=>J.removeEventListener("keydown",G,{capture:!0})},[z,J])}var kb=P(z5(),1),Cy="DismissableLayer",Fb="dismissableLayer.update",My="dismissableLayer.pointerDownOutside",xy="dismissableLayer.focusOutside",jI,uI=T5.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fX=T5.forwardRef((Z,J)=>{let{disableOutsidePointerEvents:z=!1,onEscapeKeyDown:G,onPointerDownOutside:v,onFocusOutside:Q,onInteractOutside:b,onDismiss:g,...K}=Z,F=T5.useContext(uI),[L,U]=T5.useState(null),k=L?.ownerDocument??globalThis?.document,[,N]=T5.useState({}),A=O1(J,(j)=>U(j)),_=Array.from(F.layers),[C]=[...F.layersWithOutsidePointerEventsDisabled].slice(-1),x=_.indexOf(C),S=L?_.indexOf(L):-1,d=F.layersWithOutsidePointerEventsDisabled.size>0,i=S>=x,Z0=fy((j)=>{let $0=j.target,s=[...F.branches].some((E)=>E.contains($0));if(!i||s)return;if(v?.(j),b?.(j),!j.defaultPrevented)g?.()},k),p=Vy((j)=>{let $0=j.target;if([...F.branches].some((E)=>E.contains($0)))return;if(Q?.(j),b?.(j),!j.defaultPrevented)g?.()},k);return dI((j)=>{if(S!==F.layers.size-1)return;if(G?.(j),!j.defaultPrevented&&g)j.preventDefault(),g()},k),T5.useEffect(()=>{if(!L)return;if(z){if(F.layersWithOutsidePointerEventsDisabled.size===0)jI=k.body.style.pointerEvents,k.body.style.pointerEvents="none";F.layersWithOutsidePointerEventsDisabled.add(L)}return F.layers.add(L),EI(),()=>{if(z&&F.layersWithOutsidePointerEventsDisabled.size===1)k.body.style.pointerEvents=jI}},[L,k,z,F]),T5.useEffect(()=>{return()=>{if(!L)return;F.layers.delete(L),F.layersWithOutsidePointerEventsDisabled.delete(L),EI()}},[L,F]),T5.useEffect(()=>{let j=()=>N({});return document.addEventListener(Fb,j),()=>document.removeEventListener(Fb,j)},[]),kb.jsx(H1.div,{...K,ref:A,style:{pointerEvents:d?i?"auto":"none":void 0,...Z.style},onFocusCapture:D0(Z.onFocusCapture,p.onFocusCapture),onBlurCapture:D0(Z.onBlurCapture,p.onBlurCapture),onPointerDownCapture:D0(Z.onPointerDownCapture,Z0.onPointerDownCapture)})});fX.displayName=Cy;var my="DismissableLayerBranch",Py=T5.forwardRef((Z,J)=>{let z=T5.useContext(uI),G=T5.useRef(null),v=O1(J,G);return T5.useEffect(()=>{let Q=G.current;if(Q)return z.branches.add(Q),()=>{z.branches.delete(Q)}},[z.branches]),kb.jsx(H1.div,{...Z,ref:v})});Py.displayName=my;function fy(Z,J=globalThis?.document){let z=W5(Z),G=T5.useRef(!1),v=T5.useRef(()=>{});return T5.useEffect(()=>{let Q=(g)=>{if(g.target&&!G.current){let F=function(){lI(My,z,L,{discrete:!0})};var K=F;let L={originalEvent:g};if(g.pointerType==="touch")J.removeEventListener("click",v.current),v.current=F,J.addEventListener("click",v.current,{once:!0});else F()}else J.removeEventListener("click",v.current);G.current=!1},b=window.setTimeout(()=>{J.addEventListener("pointerdown",Q)},0);return()=>{window.clearTimeout(b),J.removeEventListener("pointerdown",Q),J.removeEventListener("click",v.current)}},[J,z]),{onPointerDownCapture:()=>G.current=!0}}function Vy(Z,J=globalThis?.document){let z=W5(Z),G=T5.useRef(!1);return T5.useEffect(()=>{let v=(Q)=>{if(Q.target&&!G.current)lI(xy,z,{originalEvent:Q},{discrete:!1})};return J.addEventListener("focusin",v),()=>J.removeEventListener("focusin",v)},[J,z]),{onFocusCapture:()=>G.current=!0,onBlurCapture:()=>G.current=!1}}function EI(){let Z=new CustomEvent(Fb);document.dispatchEvent(Z)}function lI(Z,J,z,{discrete:G}){let v=z.originalEvent.target,Q=new CustomEvent(Z,{bubbles:!1,cancelable:!0,detail:z});if(J)v.addEventListener(Z,J,{once:!0});if(G)NG(v,Q);else v.dispatchEvent(Q)}var W4=P(K0(),1);var rI=P(z5(),1),Nb="focusScope.autoFocusOnMount",Tb="focusScope.autoFocusOnUnmount",cI={bubbles:!1,cancelable:!0},hy="FocusScope",VX=W4.forwardRef((Z,J)=>{let{loop:z=!1,trapped:G=!1,onMountAutoFocus:v,onUnmountAutoFocus:Q,...b}=Z,[g,K]=W4.useState(null),F=W5(v),L=W5(Q),U=W4.useRef(null),k=O1(J,(_)=>K(_)),N=W4.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;W4.useEffect(()=>{if(G){let S=function(p){if(N.paused||!g)return;let j=p.target;if(g.contains(j))U.current=j;else g9(U.current,{select:!0})},d=function(p){if(N.paused||!g)return;let j=p.relatedTarget;if(j===null)return;if(!g.contains(j))g9(U.current,{select:!0})},i=function(p){if(document.activeElement!==document.body)return;for(let $0 of p)if($0.removedNodes.length>0)g9(g)};var _=S,C=d,x=i;document.addEventListener("focusin",S),document.addEventListener("focusout",d);let Z0=new MutationObserver(i);if(g)Z0.observe(g,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",d),Z0.disconnect()}}},[G,g,N.paused]),W4.useEffect(()=>{if(g){iI.add(N);let _=document.activeElement;if(!g.contains(_)){let x=new CustomEvent(Nb,cI);if(g.addEventListener(Nb,F),g.dispatchEvent(x),!x.defaultPrevented){if(Ry(jy(nI(g)),{select:!0}),document.activeElement===_)g9(g)}}return()=>{g.removeEventListener(Nb,F),setTimeout(()=>{let x=new CustomEvent(Tb,cI);if(g.addEventListener(Tb,L),g.dispatchEvent(x),!x.defaultPrevented)g9(_??document.body,{select:!0});g.removeEventListener(Tb,L),iI.remove(N)},0)}}},[g,F,L,N]);let A=W4.useCallback((_)=>{if(!z&&!G)return;if(N.paused)return;let C=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,x=document.activeElement;if(C&&x){let S=_.currentTarget,[d,i]=yy(S);if(!(d&&i)){if(x===S)_.preventDefault()}else if(!_.shiftKey&&x===i){if(_.preventDefault(),z)g9(d,{select:!0})}else if(_.shiftKey&&x===d){if(_.preventDefault(),z)g9(i,{select:!0})}}},[z,G,N.paused]);return rI.jsx(H1.div,{tabIndex:-1,...b,ref:k,onKeyDown:A})});VX.displayName=hy;function Ry(Z,{select:J=!1}={}){let z=document.activeElement;for(let G of Z)if(g9(G,{select:J}),document.activeElement!==z)return}function yy(Z){let J=nI(Z),z=aI(J,Z),G=aI(J.reverse(),Z);return[z,G]}function nI(Z){let J=[],z=document.createTreeWalker(Z,NodeFilter.SHOW_ELEMENT,{acceptNode:(G)=>{let v=G.tagName==="INPUT"&&G.type==="hidden";if(G.disabled||G.hidden||v)return NodeFilter.FILTER_SKIP;return G.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(z.nextNode())J.push(z.currentNode);return J}function aI(Z,J){for(let z of Z)if(!Sy(z,{upTo:J}))return z}function Sy(Z,{upTo:J}){if(getComputedStyle(Z).visibility==="hidden")return!0;while(Z){if(J!==void 0&&Z===J)return!1;if(getComputedStyle(Z).display==="none")return!0;Z=Z.parentElement}return!1}function Dy(Z){return Z instanceof HTMLInputElement&&"select"in Z}function g9(Z,{select:J=!1}={}){if(Z&&Z.focus){let z=document.activeElement;if(Z.focus({preventScroll:!0}),Z!==z&&Dy(Z)&&J)Z.select()}}var iI=dy();function dy(){let Z=[];return{add(J){let z=Z[0];if(J!==z)z?.pause();Z=pI(Z,J),Z.unshift(J)},remove(J){Z=pI(Z,J),Z[0]?.resume()}}}function pI(Z,J){let z=[...Z],G=z.indexOf(J);if(G!==-1)z.splice(G,1);return z}function jy(Z){return Z.filter((J)=>J.tagName!=="A")}var TG=P(K0(),1),oI=P(v9(),1);var sI=P(z5(),1),Ey="Portal",hX=TG.forwardRef((Z,J)=>{let{container:z,...G}=Z,[v,Q]=TG.useState(!1);V2(()=>Q(!0),[]);let b=z||v&&globalThis?.document?.body;return b?oI.default.createPortal(sI.jsx(H1.div,{...G,ref:J}),b):null});hX.displayName=Ey;var Hw=P(K0(),1);var tI=P(K0(),1);function uy(Z,J){return tI.useReducer((z,G)=>{return J[z][G]??z},Z)}var I2=(Z)=>{let{present:J,children:z}=Z,G=ly(J),v=typeof z==="function"?z({present:G.isPresent}):Hw.Children.only(z),Q=O1(G.ref,cy(v));return typeof z==="function"||G.isPresent?Hw.cloneElement(v,{ref:Q}):null};I2.displayName="Presence";function ly(Z){let[J,z]=Hw.useState(),G=Hw.useRef(null),v=Hw.useRef(Z),Q=Hw.useRef("none"),b=Z?"mounted":"unmounted",[g,K]=uy(b,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Hw.useEffect(()=>{let F=IG(G.current);Q.current=g==="mounted"?F:"none"},[g]),V2(()=>{let F=G.current,L=v.current;if(L!==Z){let k=Q.current,N=IG(F);if(Z)K("MOUNT");else if(N==="none"||F?.display==="none")K("UNMOUNT");else if(L&&k!==N)K("ANIMATION_OUT");else K("UNMOUNT");v.current=Z}},[Z,K]),V2(()=>{if(J){let F,L=J.ownerDocument.defaultView??window,U=(N)=>{let _=IG(G.current).includes(CSS.escape(N.animationName));if(N.target===J&&_){if(K("ANIMATION_END"),!v.current){let C=J.style.animationFillMode;J.style.animationFillMode="forwards",F=L.setTimeout(()=>{if(J.style.animationFillMode==="forwards")J.style.animationFillMode=C})}}},k=(N)=>{if(N.target===J)Q.current=IG(G.current)};return J.addEventListener("animationstart",k),J.addEventListener("animationcancel",U),J.addEventListener("animationend",U),()=>{L.clearTimeout(F),J.removeEventListener("animationstart",k),J.removeEventListener("animationcancel",U),J.removeEventListener("animationend",U)}}else K("ANIMATION_END")},[J,K]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:Hw.useCallback((F)=>{G.current=F?getComputedStyle(F):null,z(F)},[])}}function IG(Z){return Z?.animationName||"none"}function cy(Z){let J=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning;if(z)return Z.ref;if(J=Object.getOwnPropertyDescriptor(Z,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning,z)return Z.props.ref;return Z.props.ref||Z.ref}var w_=P(K0(),1),Ib=0;function _G(){w_.useEffect(()=>{let Z=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",Z[0]??eI()),document.body.insertAdjacentElement("beforeend",Z[1]??eI()),Ib++,()=>{if(Ib===1)document.querySelectorAll("[data-radix-focus-guard]").forEach((J)=>J.remove());Ib--}},[])}function eI(){let Z=document.createElement("span");return Z.setAttribute("data-radix-focus-guard",""),Z.tabIndex=0,Z.style.outline="none",Z.style.opacity="0",Z.style.position="fixed",Z.style.pointerEvents="none",Z}var Qw=function(){return Qw=Object.assign||function(J){for(var z,G=1,v=arguments.length;G<v;G++){z=arguments[G];for(var Q in z)if(Object.prototype.hasOwnProperty.call(z,Q))J[Q]=z[Q]}return J},Qw.apply(this,arguments)};function OG(Z,J){var z={};for(var G in Z)if(Object.prototype.hasOwnProperty.call(Z,G)&&J.indexOf(G)<0)z[G]=Z[G];if(Z!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var v=0,G=Object.getOwnPropertySymbols(Z);v<G.length;v++)if(J.indexOf(G[v])<0&&Object.prototype.propertyIsEnumerable.call(Z,G[v]))z[G[v]]=Z[G[v]]}return z}function $_(Z,J,z){if(z||arguments.length===2){for(var G=0,v=J.length,Q;G<v;G++)if(Q||!(G in J)){if(!Q)Q=Array.prototype.slice.call(J,0,G);Q[G]=J[G]}}return Z.concat(Q||Array.prototype.slice.call(J))}var mG=P(K0(),1);var h2=P(K0(),1);var m7="right-scroll-bar-position",P7="width-before-scroll-bar",_b="with-scroll-bars-hidden",Ob="--removed-body-scroll-bar-size";var CG=P(K0(),1);function AG(Z,J){if(typeof Z==="function")Z(J);else if(Z)Z.current=J;return Z}var Z_=P(K0(),1);function X_(Z,J){var z=Z_.useState(function(){return{value:Z,callback:J,facade:{get current(){return z.value},set current(G){var v=z.value;if(v!==G)z.value=G,z.callback(G,v)}}}})[0];return z.callback=J,z.facade}var ay=typeof window<"u"?CG.useLayoutEffect:CG.useEffect,J_=new WeakMap;function Ab(Z,J){var z=X_(J||null,function(G){return Z.forEach(function(v){return AG(v,G)})});return ay(function(){var G=J_.get(z);if(G){var v=new Set(G),Q=new Set(Z),b=z.current;v.forEach(function(g){if(!Q.has(g))AG(g,null)}),Q.forEach(function(g){if(!v.has(g))AG(g,b)})}J_.set(z,Z)},[Z]),z}function iy(Z){return Z}function py(Z,J){if(J===void 0)J=iy;var z=[],G=!1,v={read:function(){if(G)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");if(z.length)return z[z.length-1];return Z},useMedium:function(Q){var b=J(Q,G);return z.push(b),function(){z=z.filter(function(g){return g!==b})}},assignSyncMedium:function(Q){G=!0;while(z.length){var b=z;z=[],b.forEach(Q)}z={push:function(g){return Q(g)},filter:function(){return z}}},assignMedium:function(Q){G=!0;var b=[];if(z.length){var g=z;z=[],g.forEach(Q),b=z}var K=function(){var L=b;b=[],L.forEach(Q)},F=function(){return Promise.resolve().then(K)};F(),z={push:function(L){b.push(L),F()},filter:function(L){return b=b.filter(L),z}}}};return v}function Cb(Z){if(Z===void 0)Z={};var J=py(null);return J.options=Qw({async:!0,ssr:!1},Z),J}var Y_=P(K0(),1),z_=function(Z){var J=Z.sideCar,z=OG(Z,["sideCar"]);if(!J)throw Error("Sidecar: please provide `sideCar` property to import the right car");var G=J.read();if(!G)throw Error("Sidecar medium not found");return Y_.createElement(G,Qw({},z))};z_.isSideCarExport=!0;function Mb(Z,J){return Z.useMedium(J),z_}var MG=Cb();var xb=function(){return},RX=h2.forwardRef(function(Z,J){var z=h2.useRef(null),G=h2.useState({onScrollCapture:xb,onWheelCapture:xb,onTouchMoveCapture:xb}),v=G[0],Q=G[1],b=Z.forwardProps,g=Z.children,K=Z.className,F=Z.removeScrollBar,L=Z.enabled,U=Z.shards,k=Z.sideCar,N=Z.noRelative,A=Z.noIsolation,_=Z.inert,C=Z.allowPinchZoom,x=Z.as,S=x===void 0?"div":x,d=Z.gapMode,i=OG(Z,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z0=k,p=Ab([z,J]),j=Qw(Qw({},i),v);return h2.createElement(h2.Fragment,null,L&&h2.createElement(Z0,{sideCar:MG,removeScrollBar:F,shards:U,noRelative:N,noIsolation:A,inert:_,setCallbacks:Q,allowPinchZoom:!!C,lockRef:z,gapMode:d}),b?h2.cloneElement(h2.Children.only(g),Qw(Qw({},j),{ref:p})):h2.createElement(S,Qw({},j,{className:K,ref:p}),g))});RX.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RX.classNames={fullWidth:P7,zeroRight:m7};var B5=P(K0(),1);var q$=P(K0(),1);var v_=P(K0(),1);var G_;var B_=function(){if(G_)return G_;if(typeof __webpack_nonce__<"u")return __webpack_nonce__;return};function ry(){if(!document)return null;var Z=document.createElement("style");Z.type="text/css";var J=B_();if(J)Z.setAttribute("nonce",J);return Z}function ny(Z,J){if(Z.styleSheet)Z.styleSheet.cssText=J;else Z.appendChild(document.createTextNode(J))}function oy(Z){var J=document.head||document.getElementsByTagName("head")[0];J.appendChild(Z)}var mb=function(){var Z=0,J=null;return{add:function(z){if(Z==0){if(J=ry())ny(J,z),oy(J)}Z++},remove:function(){if(Z--,!Z&&J)J.parentNode&&J.parentNode.removeChild(J),J=null}}};var Pb=function(){var Z=mb();return function(J,z){v_.useEffect(function(){return Z.add(J),function(){Z.remove()}},[J&&z])}};var yX=function(){var Z=Pb(),J=function(z){var{styles:G,dynamic:v}=z;return Z(G,v),null};return J};var sy={left:0,top:0,right:0,gap:0},fb=function(Z){return parseInt(Z||"",10)||0},ty=function(Z){var J=window.getComputedStyle(document.body),z=J[Z==="padding"?"paddingLeft":"marginLeft"],G=J[Z==="padding"?"paddingTop":"marginTop"],v=J[Z==="padding"?"paddingRight":"marginRight"];return[fb(z),fb(G),fb(v)]},Vb=function(Z){if(Z===void 0)Z="margin";if(typeof window>"u")return sy;var J=ty(Z),z=document.documentElement.clientWidth,G=window.innerWidth;return{left:J[0],top:J[1],right:J[2],gap:Math.max(0,G-z+J[2]-J[0])}};var ey=yX(),U$="data-scroll-locked",wS=function(Z,J,z,G){var{left:v,top:Q,right:b,gap:g}=Z;if(z===void 0)z="margin";return`
243
- .`.concat(_b,` {
244
- overflow: hidden `).concat(G,`;
245
- padding-right: `).concat(g,"px ").concat(G,`;
246
- }
247
- body[`).concat(U$,`] {
248
- overflow: hidden `).concat(G,`;
249
- overscroll-behavior: contain;
250
- `).concat([J&&"position: relative ".concat(G,";"),z==="margin"&&`
251
- padding-left: `.concat(v,`px;
252
- padding-top: `).concat(Q,`px;
253
- padding-right: `).concat(b,`px;
254
- margin-left:0;
255
- margin-top:0;
256
- margin-right: `).concat(g,"px ").concat(G,`;
257
- `),z==="padding"&&"padding-right: ".concat(g,"px ").concat(G,";")].filter(Boolean).join(""),`
258
- }
259
-
260
- .`).concat(m7,` {
261
- right: `).concat(g,"px ").concat(G,`;
262
- }
263
-
264
- .`).concat(P7,` {
265
- margin-right: `).concat(g,"px ").concat(G,`;
266
- }
267
-
268
- .`).concat(m7," .").concat(m7,` {
269
- right: 0 `).concat(G,`;
270
- }
271
-
272
- .`).concat(P7," .").concat(P7,` {
273
- margin-right: 0 `).concat(G,`;
274
- }
275
-
276
- body[`).concat(U$,`] {
277
- `).concat(Ob,": ").concat(g,`px;
278
- }
279
- `)},H_=function(){var Z=parseInt(document.body.getAttribute(U$)||"0",10);return isFinite(Z)?Z:0},$S=function(){q$.useEffect(function(){return document.body.setAttribute(U$,(H_()+1).toString()),function(){var Z=H_()-1;if(Z<=0)document.body.removeAttribute(U$);else document.body.setAttribute(U$,Z.toString())}},[])},hb=function(Z){var{noRelative:J,noImportant:z,gapMode:G}=Z,v=G===void 0?"margin":G;$S();var Q=q$.useMemo(function(){return Vb(v)},[v]);return q$.createElement(ey,{styles:wS(Q,!J,v,!z?"!important":"")})};var Rb=!1;if(typeof window<"u")try{L$=Object.defineProperty({},"passive",{get:function(){return Rb=!0,!0}}),window.addEventListener("test",L$,L$),window.removeEventListener("test",L$,L$)}catch(Z){Rb=!1}var L$,f7=Rb?{passive:!1}:!1;var ZS=function(Z){return Z.tagName==="TEXTAREA"},Q_=function(Z,J){if(!(Z instanceof Element))return!1;var z=window.getComputedStyle(Z);return z[J]!=="hidden"&&!(z.overflowY===z.overflowX&&!ZS(Z)&&z[J]==="visible")},XS=function(Z){return Q_(Z,"overflowY")},JS=function(Z){return Q_(Z,"overflowX")},yb=function(Z,J){var z=J.ownerDocument,G=J;do{if(typeof ShadowRoot<"u"&&G instanceof ShadowRoot)G=G.host;var v=g_(Z,G);if(v){var Q=b_(Z,G),b=Q[1],g=Q[2];if(b>g)return!0}G=G.parentNode}while(G&&G!==z.body);return!1},YS=function(Z){var{scrollTop:J,scrollHeight:z,clientHeight:G}=Z;return[J,z,G]},zS=function(Z){var{scrollLeft:J,scrollWidth:z,clientWidth:G}=Z;return[J,z,G]},g_=function(Z,J){return Z==="v"?XS(J):JS(J)},b_=function(Z,J){return Z==="v"?YS(J):zS(J)},GS=function(Z,J){return Z==="h"&&J==="rtl"?-1:1},W_=function(Z,J,z,G,v){var Q=GS(Z,window.getComputedStyle(J).direction),b=Q*G,g=z.target,K=J.contains(g),F=!1,L=b>0,U=0,k=0;do{if(!g)break;var N=b_(Z,g),A=N[0],_=N[1],C=N[2],x=_-C-Q*A;if(A||x){if(g_(Z,g))U+=x,k+=A}var S=g.parentNode;g=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!K&&g!==document.body||K&&(J.contains(g)||J===g));if(L&&(v&&Math.abs(U)<1||!v&&b>U))F=!0;else if(!L&&(v&&Math.abs(k)<1||!v&&-b>k))F=!0;return F};var xG=function(Z){return"changedTouches"in Z?[Z.changedTouches[0].clientX,Z.changedTouches[0].clientY]:[0,0]},K_=function(Z){return[Z.deltaX,Z.deltaY]},U_=function(Z){return Z&&"current"in Z?Z.current:Z},BS=function(Z,J){return Z[0]===J[0]&&Z[1]===J[1]},vS=function(Z){return`
280
- .block-interactivity-`.concat(Z,` {pointer-events: none;}
281
- .allow-interactivity-`).concat(Z,` {pointer-events: all;}
282
- `)},HS=0,F$=[];function q_(Z){var J=B5.useRef([]),z=B5.useRef([0,0]),G=B5.useRef(),v=B5.useState(HS++)[0],Q=B5.useState(yX)[0],b=B5.useRef(Z);B5.useEffect(function(){b.current=Z},[Z]),B5.useEffect(function(){if(Z.inert){document.body.classList.add("block-interactivity-".concat(v));var _=$_([Z.lockRef.current],(Z.shards||[]).map(U_),!0).filter(Boolean);return _.forEach(function(C){return C.classList.add("allow-interactivity-".concat(v))}),function(){document.body.classList.remove("block-interactivity-".concat(v)),_.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(v))})}}return},[Z.inert,Z.lockRef.current,Z.shards]);var g=B5.useCallback(function(_,C){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!b.current.allowPinchZoom;var x=xG(_),S=z.current,d="deltaX"in _?_.deltaX:S[0]-x[0],i="deltaY"in _?_.deltaY:S[1]-x[1],Z0,p=_.target,j=Math.abs(d)>Math.abs(i)?"h":"v";if("touches"in _&&j==="h"&&p.type==="range")return!1;var $0=window.getSelection(),s=$0&&$0.anchorNode,E=s?s===p||s.contains(p):!1;if(E)return!1;var Q0=yb(j,p);if(!Q0)return!0;if(Q0)Z0=j;else Z0=j==="v"?"h":"v",Q0=yb(j,p);if(!Q0)return!1;if(!G.current&&"changedTouches"in _&&(d||i))G.current=Z0;if(!Z0)return!0;var G0=G.current||Z0;return W_(G0,C,_,G0==="h"?d:i,!0)},[]),K=B5.useCallback(function(_){var C=_;if(!F$.length||F$[F$.length-1]!==Q)return;var x="deltaY"in C?K_(C):xG(C),S=J.current.filter(function(Z0){return Z0.name===C.type&&(Z0.target===C.target||C.target===Z0.shadowParent)&&BS(Z0.delta,x)})[0];if(S&&S.should){if(C.cancelable)C.preventDefault();return}if(!S){var d=(b.current.shards||[]).map(U_).filter(Boolean).filter(function(Z0){return Z0.contains(C.target)}),i=d.length>0?g(C,d[0]):!b.current.noIsolation;if(i){if(C.cancelable)C.preventDefault()}}},[]),F=B5.useCallback(function(_,C,x,S){var d={name:_,delta:C,target:x,should:S,shadowParent:QS(x)};J.current.push(d),setTimeout(function(){J.current=J.current.filter(function(i){return i!==d})},1)},[]),L=B5.useCallback(function(_){z.current=xG(_),G.current=void 0},[]),U=B5.useCallback(function(_){F(_.type,K_(_),_.target,g(_,Z.lockRef.current))},[]),k=B5.useCallback(function(_){F(_.type,xG(_),_.target,g(_,Z.lockRef.current))},[]);B5.useEffect(function(){return F$.push(Q),Z.setCallbacks({onScrollCapture:U,onWheelCapture:U,onTouchMoveCapture:k}),document.addEventListener("wheel",K,f7),document.addEventListener("touchmove",K,f7),document.addEventListener("touchstart",L,f7),function(){F$=F$.filter(function(_){return _!==Q}),document.removeEventListener("wheel",K,f7),document.removeEventListener("touchmove",K,f7),document.removeEventListener("touchstart",L,f7)}},[]);var{removeScrollBar:N,inert:A}=Z;return B5.createElement(B5.Fragment,null,A?B5.createElement(Q,{styles:vS(v)}):null,N?B5.createElement(hb,{noRelative:Z.noRelative,gapMode:Z.gapMode}):null)}function QS(Z){var J=null;while(Z!==null){if(Z instanceof ShadowRoot)J=Z.host,Z=Z.host;Z=Z.parentNode}return J}var L_=Mb(MG,q_);var F_=mG.forwardRef(function(Z,J){return mG.createElement(RX,Qw({},Z,{ref:J,sideCar:L_}))});F_.classNames=RX.classNames;var SX=F_;var gS=function(Z){if(typeof document>"u")return null;var J=Array.isArray(Z)?Z[0]:Z;return J.ownerDocument.body},k$=new WeakMap,PG=new WeakMap,fG={},Sb=0,k_=function(Z){return Z&&(Z.host||k_(Z.parentNode))},bS=function(Z,J){return J.map(function(z){if(Z.contains(z))return z;var G=k_(z);if(G&&Z.contains(G))return G;return console.error("aria-hidden",z,"in not contained inside",Z,". Doing nothing"),null}).filter(function(z){return Boolean(z)})},WS=function(Z,J,z,G){var v=bS(J,Array.isArray(Z)?Z:[Z]);if(!fG[z])fG[z]=new WeakMap;var Q=fG[z],b=[],g=new Set,K=new Set(v),F=function(U){if(!U||g.has(U))return;g.add(U),F(U.parentNode)};v.forEach(F);var L=function(U){if(!U||K.has(U))return;Array.prototype.forEach.call(U.children,function(k){if(g.has(k))L(k);else try{var N=k.getAttribute(G),A=N!==null&&N!=="false",_=(k$.get(k)||0)+1,C=(Q.get(k)||0)+1;if(k$.set(k,_),Q.set(k,C),b.push(k),_===1&&A)PG.set(k,!0);if(C===1)k.setAttribute(z,"true");if(!A)k.setAttribute(G,"true")}catch(x){console.error("aria-hidden: cannot operate on ",k,x)}})};return L(J),g.clear(),Sb++,function(){if(b.forEach(function(U){var k=k$.get(U)-1,N=Q.get(U)-1;if(k$.set(U,k),Q.set(U,N),!k){if(!PG.has(U))U.removeAttribute(G);PG.delete(U)}if(!N)U.removeAttribute(z)}),Sb--,!Sb)k$=new WeakMap,k$=new WeakMap,PG=new WeakMap,fG={}}},VG=function(Z,J,z){if(z===void 0)z="data-aria-hidden";var G=Array.from(Array.isArray(Z)?Z:[Z]),v=J||gS(Z);if(!v)return function(){return null};return G.push.apply(G,Array.from(v.querySelectorAll("[aria-live], script"))),WS(G,v,z,"aria-hidden")};var s5=P(K0(),1);var hG=P(z5(),1);function N_(Z){let J=KS(Z),z=s5.forwardRef((G,v)=>{let{children:Q,...b}=G,g=s5.Children.toArray(Q),K=g.find(qS);if(K){let F=K.props.children,L=g.map((U)=>{if(U===K){if(s5.Children.count(F)>1)return s5.Children.only(null);return s5.isValidElement(F)?F.props.children:null}else return U});return hG.jsx(J,{...b,ref:v,children:s5.isValidElement(F)?s5.cloneElement(F,void 0,L):null})}return hG.jsx(J,{...b,ref:v,children:Q})});return z.displayName=`${Z}.Slot`,z}function KS(Z){let J=s5.forwardRef((z,G)=>{let{children:v,...Q}=z;if(s5.isValidElement(v)){let b=FS(v),g=LS(Q,v.props);if(v.type!==s5.Fragment)g.ref=G?f5(G,b):b;return s5.cloneElement(v,g)}return s5.Children.count(v)>1?s5.Children.only(null):null});return J.displayName=`${Z}.SlotClone`,J}var US=Symbol("radix.slottable");function qS(Z){return s5.isValidElement(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===US}function LS(Z,J){let z={...J};for(let G in J){let v=Z[G],Q=J[G];if(/^on[A-Z]/.test(G)){if(v&&Q)z[G]=(...g)=>{let K=Q(...g);return v(...g),K};else if(v)z[G]=v}else if(G==="style")z[G]={...v,...Q};else if(G==="className")z[G]=[v,Q].filter(Boolean).join(" ")}return{...Z,...z}}function FS(Z){let J=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning;if(z)return Z.ref;if(J=Object.getOwnPropertyDescriptor(Z,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning,z)return Z.props.ref;return Z.props.ref||Z.ref}var l1=P(z5(),1),yG="Dialog",[T_,$t]=f2(yG),[kS,j4]=T_(yG),I_=(Z)=>{let{__scopeDialog:J,children:z,open:G,defaultOpen:v,onOpenChange:Q,modal:b=!0}=Z,g=s1.useRef(null),K=s1.useRef(null),[F,L]=Q9({prop:G,defaultProp:v??!1,onChange:Q,caller:yG});return l1.jsx(kS,{scope:J,triggerRef:g,contentRef:K,contentId:V5(),titleId:V5(),descriptionId:V5(),open:F,onOpenChange:L,onOpenToggle:s1.useCallback(()=>L((U)=>!U),[L]),modal:b,children:z})};I_.displayName=yG;var __="DialogTrigger",O_=s1.forwardRef((Z,J)=>{let{__scopeDialog:z,...G}=Z,v=j4(__,z),Q=O1(J,v.triggerRef);return l1.jsx(H1.button,{type:"button","aria-haspopup":"dialog","aria-expanded":v.open,"aria-controls":v.contentId,"data-state":jb(v.open),...G,ref:Q,onClick:D0(Z.onClick,v.onOpenToggle)})});O_.displayName=__;var Db="DialogPortal",[NS,A_]=T_(Db,{forceMount:void 0}),C_=(Z)=>{let{__scopeDialog:J,forceMount:z,children:G,container:v}=Z,Q=j4(Db,J);return l1.jsx(NS,{scope:J,forceMount:z,children:s1.Children.map(G,(b)=>l1.jsx(I2,{present:z||Q.open,children:l1.jsx(hX,{asChild:!0,container:v,children:b})}))})};C_.displayName=Db;var RG="DialogOverlay",M_=s1.forwardRef((Z,J)=>{let z=A_(RG,Z.__scopeDialog),{forceMount:G=z.forceMount,...v}=Z,Q=j4(RG,Z.__scopeDialog);return Q.modal?l1.jsx(I2,{present:G||Q.open,children:l1.jsx(IS,{...v,ref:J})}):null});M_.displayName=RG;var TS=N_("DialogOverlay.RemoveScroll"),IS=s1.forwardRef((Z,J)=>{let{__scopeDialog:z,...G}=Z,v=j4(RG,z);return l1.jsx(SX,{as:TS,allowPinchZoom:!0,shards:[v.contentRef],children:l1.jsx(H1.div,{"data-state":jb(v.open),...G,ref:J,style:{pointerEvents:"auto",...G.style}})})}),V7="DialogContent",x_=s1.forwardRef((Z,J)=>{let z=A_(V7,Z.__scopeDialog),{forceMount:G=z.forceMount,...v}=Z,Q=j4(V7,Z.__scopeDialog);return l1.jsx(I2,{present:G||Q.open,children:Q.modal?l1.jsx(_S,{...v,ref:J}):l1.jsx(OS,{...v,ref:J})})});x_.displayName=V7;var _S=s1.forwardRef((Z,J)=>{let z=j4(V7,Z.__scopeDialog),G=s1.useRef(null),v=O1(J,z.contentRef,G);return s1.useEffect(()=>{let Q=G.current;if(Q)return VG(Q)},[]),l1.jsx(m_,{...Z,ref:v,trapFocus:z.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:D0(Z.onCloseAutoFocus,(Q)=>{Q.preventDefault(),z.triggerRef.current?.focus()}),onPointerDownOutside:D0(Z.onPointerDownOutside,(Q)=>{let b=Q.detail.originalEvent,g=b.button===0&&b.ctrlKey===!0;if(b.button===2||g)Q.preventDefault()}),onFocusOutside:D0(Z.onFocusOutside,(Q)=>Q.preventDefault())})}),OS=s1.forwardRef((Z,J)=>{let z=j4(V7,Z.__scopeDialog),G=s1.useRef(!1),v=s1.useRef(!1);return l1.jsx(m_,{...Z,ref:J,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(Q)=>{if(Z.onCloseAutoFocus?.(Q),!Q.defaultPrevented){if(!G.current)z.triggerRef.current?.focus();Q.preventDefault()}G.current=!1,v.current=!1},onInteractOutside:(Q)=>{if(Z.onInteractOutside?.(Q),!Q.defaultPrevented){if(G.current=!0,Q.detail.originalEvent.type==="pointerdown")v.current=!0}let b=Q.target;if(z.triggerRef.current?.contains(b))Q.preventDefault();if(Q.detail.originalEvent.type==="focusin"&&v.current)Q.preventDefault()}})}),m_=s1.forwardRef((Z,J)=>{let{__scopeDialog:z,trapFocus:G,onOpenAutoFocus:v,onCloseAutoFocus:Q,...b}=Z,g=j4(V7,z),K=s1.useRef(null),F=O1(J,K);return _G(),l1.jsxs(l1.Fragment,{children:[l1.jsx(VX,{asChild:!0,loop:!0,trapped:G,onMountAutoFocus:v,onUnmountAutoFocus:Q,children:l1.jsx(fX,{role:"dialog",id:g.contentId,"aria-describedby":g.descriptionId,"aria-labelledby":g.titleId,"data-state":jb(g.open),...b,ref:F,onDismiss:()=>g.onOpenChange(!1)})}),l1.jsxs(l1.Fragment,{children:[l1.jsx(AS,{titleId:g.titleId}),l1.jsx(MS,{contentRef:K,descriptionId:g.descriptionId})]})]})}),db="DialogTitle",P_=s1.forwardRef((Z,J)=>{let{__scopeDialog:z,...G}=Z,v=j4(db,z);return l1.jsx(H1.h2,{id:v.titleId,...G,ref:J})});P_.displayName=db;var f_="DialogDescription",V_=s1.forwardRef((Z,J)=>{let{__scopeDialog:z,...G}=Z,v=j4(f_,z);return l1.jsx(H1.p,{id:v.descriptionId,...G,ref:J})});V_.displayName=f_;var h_="DialogClose",R_=s1.forwardRef((Z,J)=>{let{__scopeDialog:z,...G}=Z,v=j4(h_,z);return l1.jsx(H1.button,{type:"button",...G,ref:J,onClick:D0(Z.onClick,()=>v.onOpenChange(!1))})});R_.displayName=h_;function jb(Z){return Z?"open":"closed"}var y_="DialogTitleWarning",[Zt,S_]=fI(y_,{contentName:V7,titleName:db,docsSlug:"dialog"}),AS=({titleId:Z})=>{let J=S_(y_),z=`\`${J.contentName}\` requires a \`${J.titleName}\` for the component to be accessible for screen reader users.
283
-
284
- If you want to hide the \`${J.titleName}\`, you can wrap it with our VisuallyHidden component.
285
-
286
- For more information, see https://radix-ui.com/primitives/docs/components/${J.docsSlug}`;return s1.useEffect(()=>{if(Z){if(!document.getElementById(Z))console.error(z)}},[z,Z]),null},CS="DialogDescriptionWarning",MS=({contentRef:Z,descriptionId:J})=>{let G=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${S_(CS).contentName}}.`;return s1.useEffect(()=>{let v=Z.current?.getAttribute("aria-describedby");if(J&&v){if(!document.getElementById(J))console.warn(G)}},[G,Z,J]),null},SG=I_,D_=O_,DG=C_,dG=M_,jG=x_,d_=P_,j_=V_,E_=R_;var _0=P(K0(),1);var c_=P(K0(),1),yS=P(v9(),1);var u5=P(K0(),1);var EG=P(z5(),1),xS=Symbol.for("react.lazy"),uG=u5[" use ".trim().toString()];function mS(Z){return typeof Z==="object"&&Z!==null&&"then"in Z}function l_(Z){return Z!=null&&typeof Z==="object"&&"$$typeof"in Z&&Z.$$typeof===xS&&"_payload"in Z&&mS(Z._payload)}function Eb(Z){let J=PS(Z),z=u5.forwardRef((G,v)=>{let{children:Q,...b}=G;if(l_(Q)&&typeof uG==="function")Q=uG(Q._payload);let g=u5.Children.toArray(Q),K=g.find(VS);if(K){let F=K.props.children,L=g.map((U)=>{if(U===K){if(u5.Children.count(F)>1)return u5.Children.only(null);return u5.isValidElement(F)?F.props.children:null}else return U});return EG.jsx(J,{...b,ref:v,children:u5.isValidElement(F)?u5.cloneElement(F,void 0,L):null})}return EG.jsx(J,{...b,ref:v,children:Q})});return z.displayName=`${Z}.Slot`,z}var lG=Eb("Slot");function PS(Z){let J=u5.forwardRef((z,G)=>{let{children:v,...Q}=z;if(l_(v)&&typeof uG==="function")v=uG(v._payload);if(u5.isValidElement(v)){let b=RS(v),g=hS(Q,v.props);if(v.type!==u5.Fragment)g.ref=G?f5(G,b):b;return u5.cloneElement(v,g)}return u5.Children.count(v)>1?u5.Children.only(null):null});return J.displayName=`${Z}.SlotClone`,J}var fS=Symbol("radix.slottable");function VS(Z){return u5.isValidElement(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===fS}function hS(Z,J){let z={...J};for(let G in J){let v=Z[G],Q=J[G];if(/^on[A-Z]/.test(G)){if(v&&Q)z[G]=(...g)=>{let K=Q(...g);return v(...g),K};else if(v)z[G]=v}else if(G==="style")z[G]={...v,...Q};else if(G==="className")z[G]=[v,Q].filter(Boolean).join(" ")}return{...Z,...z}}function RS(Z){let J=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning;if(z)return Z.ref;if(J=Object.getOwnPropertyDescriptor(Z,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning,z)return Z.props.ref;return Z.props.ref||Z.ref}var a_=P(z5(),1),SS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],g8=SS.reduce((Z,J)=>{let z=Eb(`Primitive.${J}`),G=c_.forwardRef((v,Q)=>{let{asChild:b,...g}=v,K=b?z:J;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return a_.jsx(K,{...g,ref:Q})});return G.displayName=`Primitive.${J}`,{...Z,[J]:G}},{});var DX='[cmdk-group=""]',ub='[cmdk-group-items=""]',DS='[cmdk-group-heading=""]',p_='[cmdk-item=""]',i_=`${p_}:not([aria-disabled="true"])`,lb="cmdk-item-select",N$="data-value",dS=(Z,J,z)=>xI(Z,J,z),r_=_0.createContext(void 0),dX=()=>_0.useContext(r_),n_=_0.createContext(void 0),cb=()=>_0.useContext(n_),o_=_0.createContext(void 0),s_=_0.forwardRef((Z,J)=>{let z=T$(()=>{var m,r;return{search:"",value:(r=(m=Z.value)!=null?m:Z.defaultValue)!=null?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),G=T$(()=>new Set),v=T$(()=>new Map),Q=T$(()=>new Map),b=T$(()=>new Set),g=t_(Z),{label:K,children:F,value:L,onValueChange:U,filter:k,shouldFilter:N,loop:A,disablePointerSelection:_=!1,vimBindings:C=!0,...x}=Z,S=V5(),d=V5(),i=V5(),Z0=_0.useRef(null),p=oS();h7(()=>{if(L!==void 0){let m=L.trim();z.current.value=m,j.emit()}},[L]),h7(()=>{p(6,q0)},[]);let j=_0.useMemo(()=>({subscribe:(m)=>(b.current.add(m),()=>b.current.delete(m)),snapshot:()=>z.current,setState:(m,r,a)=>{var X0,J0,w0,b0;if(!Object.is(z.current[m],r)){if(z.current[m]=r,m==="search")G0(),E(),p(1,Q0);else if(m==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let N0=document.getElementById(i);N0?N0.focus():(X0=document.getElementById(S))==null||X0.focus()}if(p(7,()=>{var N0;z.current.selectedItemId=(N0=F0())==null?void 0:N0.id,j.emit()}),a||p(5,q0),((J0=g.current)==null?void 0:J0.value)!==void 0){let N0=r!=null?r:"";(b0=(w0=g.current).onValueChange)==null||b0.call(w0,N0);return}}j.emit()}},emit:()=>{b.current.forEach((m)=>m())}}),[]),$0=_0.useMemo(()=>({value:(m,r,a)=>{var X0;r!==((X0=Q.current.get(m))==null?void 0:X0.value)&&(Q.current.set(m,{value:r,keywords:a}),z.current.filtered.items.set(m,s(r,a)),p(2,()=>{E(),j.emit()}))},item:(m,r)=>(G.current.add(m),r&&(v.current.has(r)?v.current.get(r).add(m):v.current.set(r,new Set([m]))),p(3,()=>{G0(),E(),z.current.value||Q0(),j.emit()}),()=>{Q.current.delete(m),G.current.delete(m),z.current.filtered.items.delete(m);let a=F0();p(4,()=>{G0(),(a==null?void 0:a.getAttribute("id"))===m&&Q0(),j.emit()})}),group:(m)=>(v.current.has(m)||v.current.set(m,new Set),()=>{Q.current.delete(m),v.current.delete(m)}),filter:()=>g.current.shouldFilter,label:K||Z["aria-label"],getDisablePointerSelection:()=>g.current.disablePointerSelection,listId:S,inputId:i,labelId:d,listInnerRef:Z0}),[]);function s(m,r){var a,X0;let J0=(X0=(a=g.current)==null?void 0:a.filter)!=null?X0:dS;return m?J0(m,z.current.search,r):0}function E(){if(!z.current.search||g.current.shouldFilter===!1)return;let m=z.current.filtered.items,r=[];z.current.filtered.groups.forEach((X0)=>{let J0=v.current.get(X0),w0=0;J0.forEach((b0)=>{let N0=m.get(b0);w0=Math.max(N0,w0)}),r.push([X0,w0])});let a=Z0.current;e().sort((X0,J0)=>{var w0,b0;let N0=X0.getAttribute("id"),p0=J0.getAttribute("id");return((w0=m.get(p0))!=null?w0:0)-((b0=m.get(N0))!=null?b0:0)}).forEach((X0)=>{let J0=X0.closest(ub);J0?J0.appendChild(X0.parentElement===J0?X0:X0.closest(`${ub} > *`)):a.appendChild(X0.parentElement===a?X0:X0.closest(`${ub} > *`))}),r.sort((X0,J0)=>J0[1]-X0[1]).forEach((X0)=>{var J0;let w0=(J0=Z0.current)==null?void 0:J0.querySelector(`${DX}[${N$}="${encodeURIComponent(X0[0])}"]`);w0==null||w0.parentElement.appendChild(w0)})}function Q0(){let m=e().find((a)=>a.getAttribute("aria-disabled")!=="true"),r=m==null?void 0:m.getAttribute(N$);j.setState("value",r||void 0)}function G0(){var m,r,a,X0;if(!z.current.search||g.current.shouldFilter===!1){z.current.filtered.count=G.current.size;return}z.current.filtered.groups=new Set;let J0=0;for(let w0 of G.current){let b0=(r=(m=Q.current.get(w0))==null?void 0:m.value)!=null?r:"",N0=(X0=(a=Q.current.get(w0))==null?void 0:a.keywords)!=null?X0:[],p0=s(b0,N0);z.current.filtered.items.set(w0,p0),p0>0&&J0++}for(let[w0,b0]of v.current)for(let N0 of b0)if(z.current.filtered.items.get(N0)>0){z.current.filtered.groups.add(w0);break}z.current.filtered.count=J0}function q0(){var m,r,a;let X0=F0();X0&&(((m=X0.parentElement)==null?void 0:m.firstChild)===X0&&((a=(r=X0.closest(DX))==null?void 0:r.querySelector(DS))==null||a.scrollIntoView({block:"nearest"})),X0.scrollIntoView({block:"nearest"}))}function F0(){var m;return(m=Z0.current)==null?void 0:m.querySelector(`${p_}[aria-selected="true"]`)}function e(){var m;return Array.from(((m=Z0.current)==null?void 0:m.querySelectorAll(i_))||[])}function B0(m){let r=e()[m];r&&j.setState("value",r.getAttribute(N$))}function u(m){var r;let a=F0(),X0=e(),J0=X0.findIndex((b0)=>b0===a),w0=X0[J0+m];(r=g.current)!=null&&r.loop&&(w0=J0+m<0?X0[X0.length-1]:J0+m===X0.length?X0[0]:X0[J0+m]),w0&&j.setState("value",w0.getAttribute(N$))}function o(m){let r=F0(),a=r==null?void 0:r.closest(DX),X0;for(;a&&!X0;)a=m>0?rS(a,DX):nS(a,DX),X0=a==null?void 0:a.querySelector(i_);X0?j.setState("value",X0.getAttribute(N$)):u(m)}let l=()=>B0(e().length-1),M=(m)=>{m.preventDefault(),m.metaKey?l():m.altKey?o(1):u(1)},z0=(m)=>{m.preventDefault(),m.metaKey?B0(0):m.altKey?o(-1):u(-1)};return _0.createElement(g8.div,{ref:J,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:(m)=>{var r;(r=x.onKeyDown)==null||r.call(x,m);let a=m.nativeEvent.isComposing||m.keyCode===229;if(!(m.defaultPrevented||a))switch(m.key){case"n":case"j":{C&&m.ctrlKey&&M(m);break}case"ArrowDown":{M(m);break}case"p":case"k":{C&&m.ctrlKey&&z0(m);break}case"ArrowUp":{z0(m);break}case"Home":{m.preventDefault(),B0(0);break}case"End":{m.preventDefault(),l();break}case"Enter":{m.preventDefault();let X0=F0();if(X0){let J0=new Event(lb);X0.dispatchEvent(J0)}}}}},_0.createElement("label",{"cmdk-label":"",htmlFor:$0.inputId,id:$0.labelId,style:tS},K),cG(Z,(m)=>_0.createElement(n_.Provider,{value:j},_0.createElement(r_.Provider,{value:$0},m))))}),jS=_0.forwardRef((Z,J)=>{var z,G;let v=V5(),Q=_0.useRef(null),b=_0.useContext(o_),g=dX(),K=t_(Z),F=(G=(z=K.current)==null?void 0:z.forceMount)!=null?G:b==null?void 0:b.forceMount;h7(()=>{if(!F)return g.item(v,b==null?void 0:b.id)},[F]);let L=e_(v,Q,[Z.value,Z.children,Q],Z.keywords),U=cb(),k=b9((p)=>p.value&&p.value===L.current),N=b9((p)=>F||g.filter()===!1?!0:p.search?p.filtered.items.get(v)>0:!0);_0.useEffect(()=>{let p=Q.current;if(!(!p||Z.disabled))return p.addEventListener(lb,A),()=>p.removeEventListener(lb,A)},[N,Z.onSelect,Z.disabled]);function A(){var p,j;_(),(j=(p=K.current).onSelect)==null||j.call(p,L.current)}function _(){U.setState("value",L.current,!0)}if(!N)return null;let{disabled:C,value:x,onSelect:S,forceMount:d,keywords:i,...Z0}=Z;return _0.createElement(g8.div,{ref:f5(Q,J),...Z0,id:v,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!k,"data-disabled":!!C,"data-selected":!!k,onPointerMove:C||g.getDisablePointerSelection()?void 0:_,onClick:C?void 0:A},Z.children)}),ES=_0.forwardRef((Z,J)=>{let{heading:z,children:G,forceMount:v,...Q}=Z,b=V5(),g=_0.useRef(null),K=_0.useRef(null),F=V5(),L=dX(),U=b9((N)=>v||L.filter()===!1?!0:N.search?N.filtered.groups.has(b):!0);h7(()=>L.group(b),[]),e_(b,g,[Z.value,Z.heading,K]);let k=_0.useMemo(()=>({id:b,forceMount:v}),[v]);return _0.createElement(g8.div,{ref:f5(g,J),...Q,"cmdk-group":"",role:"presentation",hidden:U?void 0:!0},z&&_0.createElement("div",{ref:K,"cmdk-group-heading":"","aria-hidden":!0,id:F},z),cG(Z,(N)=>_0.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":z?F:void 0},_0.createElement(o_.Provider,{value:k},N))))}),uS=_0.forwardRef((Z,J)=>{let{alwaysRender:z,...G}=Z,v=_0.useRef(null),Q=b9((b)=>!b.search);return!z&&!Q?null:_0.createElement(g8.div,{ref:f5(v,J),...G,"cmdk-separator":"",role:"separator"})}),lS=_0.forwardRef((Z,J)=>{let{onValueChange:z,...G}=Z,v=Z.value!=null,Q=cb(),b=b9((F)=>F.search),g=b9((F)=>F.selectedItemId),K=dX();return _0.useEffect(()=>{Z.value!=null&&Q.setState("search",Z.value)},[Z.value]),_0.createElement(g8.input,{ref:J,...G,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":K.listId,"aria-labelledby":K.labelId,"aria-activedescendant":g,id:K.inputId,type:"text",value:v?Z.value:b,onChange:(F)=>{v||Q.setState("search",F.target.value),z==null||z(F.target.value)}})}),cS=_0.forwardRef((Z,J)=>{let{children:z,label:G="Suggestions",...v}=Z,Q=_0.useRef(null),b=_0.useRef(null),g=b9((F)=>F.selectedItemId),K=dX();return _0.useEffect(()=>{if(b.current&&Q.current){let F=b.current,L=Q.current,U,k=new ResizeObserver(()=>{U=requestAnimationFrame(()=>{let N=F.offsetHeight;L.style.setProperty("--cmdk-list-height",N.toFixed(1)+"px")})});return k.observe(F),()=>{cancelAnimationFrame(U),k.unobserve(F)}}},[]),_0.createElement(g8.div,{ref:f5(Q,J),...v,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":g,"aria-label":G,id:K.listId},cG(Z,(F)=>_0.createElement("div",{ref:f5(b,K.listInnerRef),"cmdk-list-sizer":""},F)))}),aS=_0.forwardRef((Z,J)=>{let{open:z,onOpenChange:G,overlayClassName:v,contentClassName:Q,container:b,...g}=Z;return _0.createElement(SG,{open:z,onOpenChange:G},_0.createElement(DG,{container:b},_0.createElement(dG,{"cmdk-overlay":"",className:v}),_0.createElement(jG,{"aria-label":Z.label,"cmdk-dialog":"",className:Q},_0.createElement(s_,{ref:J,...g}))))}),iS=_0.forwardRef((Z,J)=>b9((z)=>z.filtered.count===0)?_0.createElement(g8.div,{ref:J,...Z,"cmdk-empty":"",role:"presentation"}):null),pS=_0.forwardRef((Z,J)=>{let{progress:z,children:G,label:v="Loading...",...Q}=Z;return _0.createElement(g8.div,{ref:J,...Q,"cmdk-loading":"",role:"progressbar","aria-valuenow":z,"aria-valuemin":0,"aria-valuemax":100,"aria-label":v},cG(Z,(b)=>_0.createElement("div",{"aria-hidden":!0},b)))}),W9=Object.assign(s_,{List:cS,Item:jS,Input:lS,Group:ES,Separator:uS,Dialog:aS,Empty:iS,Loading:pS});function rS(Z,J){let z=Z.nextElementSibling;for(;z;){if(z.matches(J))return z;z=z.nextElementSibling}}function nS(Z,J){let z=Z.previousElementSibling;for(;z;){if(z.matches(J))return z;z=z.previousElementSibling}}function t_(Z){let J=_0.useRef(Z);return h7(()=>{J.current=Z}),J}var h7=typeof window>"u"?_0.useEffect:_0.useLayoutEffect;function T$(Z){let J=_0.useRef();return J.current===void 0&&(J.current=Z()),J}function b9(Z){let J=cb(),z=()=>Z(J.snapshot());return _0.useSyncExternalStore(J.subscribe,z,z)}function e_(Z,J,z,G=[]){let v=_0.useRef(),Q=dX();return h7(()=>{var b;let g=(()=>{var F;for(let L of z){if(typeof L=="string")return L.trim();if(typeof L=="object"&&"current"in L)return L.current?(F=L.current.textContent)==null?void 0:F.trim():v.current}})(),K=G.map((F)=>F.trim());Q.value(Z,g,K),(b=J.current)==null||b.setAttribute(N$,g),v.current=g}),v}var oS=()=>{let[Z,J]=_0.useState(),z=T$(()=>new Map);return h7(()=>{z.current.forEach((G)=>G()),z.current=new Map},[Z]),(G,v)=>{z.current.set(G,v),J({})}};function sS(Z){let J=Z.type;return typeof J=="function"?J(Z.props):("render"in J)?J.render(Z.props):Z}function cG({asChild:Z,children:J},z){return Z&&_0.isValidElement(J)?_0.cloneElement(sS(J),{ref:J.ref},z(J.props.children)):z(J)}var tS={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};var iG=P(K0(),1);var wO=(Z)=>Z.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),aG=(...Z)=>Z.filter((J,z,G)=>{return Boolean(J)&&G.indexOf(J)===z}).join(" ");var jX=P(K0(),1);var $O={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 ZO=jX.forwardRef(({color:Z="currentColor",size:J=24,strokeWidth:z=2,absoluteStrokeWidth:G,className:v="",children:Q,iconNode:b,...g},K)=>{return jX.createElement("svg",{ref:K,...$O,width:J,height:J,stroke:Z,strokeWidth:G?Number(z)*24/Number(J):z,className:aG("lucide",v),...g},[...b.map(([F,L])=>jX.createElement(F,L)),...Array.isArray(Q)?Q:[Q]])});var x0=(Z,J)=>{let z=iG.forwardRef(({className:G,...v},Q)=>iG.createElement(ZO,{ref:Q,iconNode:J,className:aG(`lucide-${wO(Z)}`,G),...v}));return z.displayName=`${Z}`,z};var R7=x0("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);var EX=x0("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var uX=x0("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);var lX=x0("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var y7=x0("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var S7=x0("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);var cX=x0("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);var aX=x0("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);var iX=x0("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var pX=x0("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);var rX=x0("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var nX=x0("FolderGit2",[["path",{d:"M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);var D7=x0("GitMerge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);var oX=x0("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);var sX=x0("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);var tX=x0("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);var eX=x0("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);var wJ=x0("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);var $J=x0("MessageSquareText",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);var I$=x0("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var ZJ=x0("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);var XJ=x0("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);var JJ=x0("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);var YJ=x0("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var d7=x0("Sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]]);var zJ=x0("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);var _$=x0("Sun",[["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"}]]);var GJ=x0("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var BJ=x0("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var M6=x0("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var K9=x0("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var x6=x0("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);function XO(Z){var J,z,G="";if(typeof Z=="string"||typeof Z=="number")G+=Z;else if(typeof Z=="object")if(Array.isArray(Z)){var v=Z.length;for(J=0;J<v;J++)Z[J]&&(z=XO(Z[J]))&&(G&&(G+=" "),G+=z)}else for(z in Z)Z[z]&&(G&&(G+=" "),G+=z);return G}function pG(){for(var Z,J,z=0,G="",v=arguments.length;z<v;z++)(Z=arguments[z])&&(J=XO(Z))&&(G&&(G+=" "),G+=J);return G}var eS=(Z)=>{let J=$D(Z),{conflictingClassGroups:z,conflictingClassGroupModifiers:G}=Z;return{getClassGroupId:(b)=>{let g=b.split("-");if(g[0]===""&&g.length!==1)g.shift();return zO(g,J)||wD(b)},getConflictingClassGroupIds:(b,g)=>{let K=z[b]||[];if(g&&G[b])return[...K,...G[b]];return K}}},zO=(Z,J)=>{if(Z.length===0)return J.classGroupId;let z=Z[0],G=J.nextPart.get(z),v=G?zO(Z.slice(1),G):void 0;if(v)return v;if(J.validators.length===0)return;let Q=Z.join("-");return J.validators.find(({validator:b})=>b(Q))?.classGroupId},JO=/^\[(.+)\]$/,wD=(Z)=>{if(JO.test(Z)){let J=JO.exec(Z)[1],z=J?.substring(0,J.indexOf(":"));if(z)return"arbitrary.."+z}},$D=(Z)=>{let{theme:J,prefix:z}=Z,G={nextPart:new Map,validators:[]};return XD(Object.entries(Z.classGroups),z).forEach(([Q,b])=>{ib(b,G,Q,J)}),G},ib=(Z,J,z,G)=>{Z.forEach((v)=>{if(typeof v==="string"){let Q=v===""?J:YO(J,v);Q.classGroupId=z;return}if(typeof v==="function"){if(ZD(v)){ib(v(G),J,z,G);return}J.validators.push({validator:v,classGroupId:z});return}Object.entries(v).forEach(([Q,b])=>{ib(b,YO(J,Q),z,G)})})},YO=(Z,J)=>{let z=Z;return J.split("-").forEach((G)=>{if(!z.nextPart.has(G))z.nextPart.set(G,{nextPart:new Map,validators:[]});z=z.nextPart.get(G)}),z},ZD=(Z)=>Z.isThemeGetter,XD=(Z,J)=>{if(!J)return Z;return Z.map(([z,G])=>{let v=G.map((Q)=>{if(typeof Q==="string")return J+Q;if(typeof Q==="object")return Object.fromEntries(Object.entries(Q).map(([b,g])=>[J+b,g]));return Q});return[z,v]})},JD=(Z)=>{if(Z<1)return{get:()=>{return},set:()=>{}};let J=0,z=new Map,G=new Map,v=(Q,b)=>{if(z.set(Q,b),J++,J>Z)J=0,G=z,z=new Map};return{get(Q){let b=z.get(Q);if(b!==void 0)return b;if((b=G.get(Q))!==void 0)return v(Q,b),b},set(Q,b){if(z.has(Q))z.set(Q,b);else v(Q,b)}}};var YD=(Z)=>{let{separator:J,experimentalParseClassName:z}=Z,G=J.length===1,v=J[0],Q=J.length,b=(g)=>{let K=[],F=0,L=0,U;for(let C=0;C<g.length;C++){let x=g[C];if(F===0){if(x===v&&(G||g.slice(C,C+Q)===J)){K.push(g.slice(L,C)),L=C+Q;continue}if(x==="/"){U=C;continue}}if(x==="[")F++;else if(x==="]")F--}let k=K.length===0?g:g.substring(L),N=k.startsWith("!"),A=N?k.substring(1):k,_=U&&U>L?U-L:void 0;return{modifiers:K,hasImportantModifier:N,baseClassName:A,maybePostfixModifierPosition:_}};if(z)return(g)=>z({className:g,parseClassName:b});return b},zD=(Z)=>{if(Z.length<=1)return Z;let J=[],z=[];return Z.forEach((G)=>{if(G[0]==="[")J.push(...z.sort(),G),z=[];else z.push(G)}),J.push(...z.sort()),J},GD=(Z)=>({cache:JD(Z.cacheSize),parseClassName:YD(Z),...eS(Z)}),BD=/\s+/,vD=(Z,J)=>{let{parseClassName:z,getClassGroupId:G,getConflictingClassGroupIds:v}=J,Q=[],b=Z.trim().split(BD),g="";for(let K=b.length-1;K>=0;K-=1){let F=b[K],{modifiers:L,hasImportantModifier:U,baseClassName:k,maybePostfixModifierPosition:N}=z(F),A=Boolean(N),_=G(A?k.substring(0,N):k);if(!_){if(!A){g=F+(g.length>0?" "+g:g);continue}if(_=G(k),!_){g=F+(g.length>0?" "+g:g);continue}A=!1}let C=zD(L).join(":"),x=U?C+"!":C,S=x+_;if(Q.includes(S))continue;Q.push(S);let d=v(_,A);for(let i=0;i<d.length;++i){let Z0=d[i];Q.push(x+Z0)}g=F+(g.length>0?" "+g:g)}return g};function HD(){let Z=0,J,z,G="";while(Z<arguments.length)if(J=arguments[Z++]){if(z=GO(J))G&&(G+=" "),G+=z}return G}var GO=(Z)=>{if(typeof Z==="string")return Z;let J,z="";for(let G=0;G<Z.length;G++)if(Z[G]){if(J=GO(Z[G]))z&&(z+=" "),z+=J}return z};function QD(Z,...J){let z,G,v,Q=b;function b(K){let F=J.reduce((L,U)=>U(L),Z());return z=GD(F),G=z.cache.get,v=z.cache.set,Q=g,g(K)}function g(K){let F=G(K);if(F)return F;let L=vD(K,z);return v(K,L),L}return function(){return Q(HD.apply(null,arguments))}}var v5=(Z)=>{let J=(z)=>z[Z]||[];return J.isThemeGetter=!0,J},BO=/^\[(?:([a-z-]+):)?(.+)\]$/i,gD=/^\d+\/\d+$/,bD=new Set(["px","full","screen"]),WD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KD=/\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$/,UD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,b8=(Z)=>O$(Z)||bD.has(Z)||gD.test(Z),U9=(Z)=>A$(Z,"length",AD),O$=(Z)=>Boolean(Z)&&!Number.isNaN(Number(Z)),ab=(Z)=>A$(Z,"number",O$),vJ=(Z)=>Boolean(Z)&&Number.isInteger(Number(Z)),FD=(Z)=>Z.endsWith("%")&&O$(Z.slice(0,-1)),z1=(Z)=>BO.test(Z),q9=(Z)=>WD.test(Z),kD=new Set(["length","size","percentage"]),ND=(Z)=>A$(Z,kD,vO),TD=(Z)=>A$(Z,"position",vO),ID=new Set(["image","url"]),_D=(Z)=>A$(Z,ID,MD),OD=(Z)=>A$(Z,"",CD),HJ=()=>!0,A$=(Z,J,z)=>{let G=BO.exec(Z);if(G){if(G[1])return typeof J==="string"?G[1]===J:J.has(G[1]);return z(G[2])}return!1},AD=(Z)=>KD.test(Z)&&!UD.test(Z),vO=()=>!1,CD=(Z)=>qD.test(Z),MD=(Z)=>LD.test(Z);var xD=()=>{let Z=v5("colors"),J=v5("spacing"),z=v5("blur"),G=v5("brightness"),v=v5("borderColor"),Q=v5("borderRadius"),b=v5("borderSpacing"),g=v5("borderWidth"),K=v5("contrast"),F=v5("grayscale"),L=v5("hueRotate"),U=v5("invert"),k=v5("gap"),N=v5("gradientColorStops"),A=v5("gradientColorStopPositions"),_=v5("inset"),C=v5("margin"),x=v5("opacity"),S=v5("padding"),d=v5("saturate"),i=v5("scale"),Z0=v5("sepia"),p=v5("skew"),j=v5("space"),$0=v5("translate"),s=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],Q0=()=>["auto",z1,J],G0=()=>[z1,J],q0=()=>["",b8,U9],F0=()=>["auto",O$,z1],e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B0=()=>["solid","dashed","dotted","double","none"],u=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],o=()=>["start","end","center","between","around","evenly","stretch"],l=()=>["","0",z1],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z0=()=>[O$,z1];return{cacheSize:500,separator:":",theme:{colors:[HJ],spacing:[b8,U9],blur:["none","",q9,z1],brightness:z0(),borderColor:[Z],borderRadius:["none","","full",q9,z1],borderSpacing:G0(),borderWidth:q0(),contrast:z0(),grayscale:l(),hueRotate:z0(),invert:l(),gap:G0(),gradientColorStops:[Z],gradientColorStopPositions:[FD,U9],inset:Q0(),margin:Q0(),opacity:z0(),padding:G0(),saturate:z0(),scale:z0(),sepia:l(),skew:z0(),space:G0(),translate:G0()},classGroups:{aspect:[{aspect:["auto","square","video",z1]}],container:["container"],columns:[{columns:[q9]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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"],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:[...e(),z1]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:s()}],"overscroll-x":[{"overscroll-x":s()}],"overscroll-y":[{"overscroll-y":s()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",vJ,z1]}],basis:[{basis:Q0()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z1]}],grow:[{grow:l()}],shrink:[{shrink:l()}],order:[{order:["first","last","none",vJ,z1]}],"grid-cols":[{"grid-cols":[HJ]}],"col-start-end":[{col:["auto",{span:["full",vJ,z1]},z1]}],"col-start":[{"col-start":F0()}],"col-end":[{"col-end":F0()}],"grid-rows":[{"grid-rows":[HJ]}],"row-start-end":[{row:["auto",{span:[vJ,z1]},z1]}],"row-start":[{"row-start":F0()}],"row-end":[{"row-end":F0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z1]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z1]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...o()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...o(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...o(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z1,J]}],"min-w":[{"min-w":[z1,J,"min","max","fit"]}],"max-w":[{"max-w":[z1,J,"none","full","min","max","fit","prose",{screen:[q9]},q9]}],h:[{h:[z1,J,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z1,J,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z1,J,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z1,J,"auto","min","max","fit"]}],"font-size":[{text:["base",q9,U9]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ab]}],"font-family":[{font:[HJ]}],"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:["tighter","tight","normal","wide","wider","widest",z1]}],"line-clamp":[{"line-clamp":["none",O$,ab]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",b8,z1]}],"list-image":[{"list-image":["none",z1]}],"list-style-type":[{list:["none","disc","decimal",z1]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[Z]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[Z]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",b8,U9]}],"underline-offset":[{"underline-offset":["auto",b8,z1]}],"text-decoration-color":[{decoration:[Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G0()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z1]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...e(),TD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ND]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_D]}],"bg-color":[{bg:[Z]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[Q]}],"rounded-s":[{"rounded-s":[Q]}],"rounded-e":[{"rounded-e":[Q]}],"rounded-t":[{"rounded-t":[Q]}],"rounded-r":[{"rounded-r":[Q]}],"rounded-b":[{"rounded-b":[Q]}],"rounded-l":[{"rounded-l":[Q]}],"rounded-ss":[{"rounded-ss":[Q]}],"rounded-se":[{"rounded-se":[Q]}],"rounded-ee":[{"rounded-ee":[Q]}],"rounded-es":[{"rounded-es":[Q]}],"rounded-tl":[{"rounded-tl":[Q]}],"rounded-tr":[{"rounded-tr":[Q]}],"rounded-br":[{"rounded-br":[Q]}],"rounded-bl":[{"rounded-bl":[Q]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...B0(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:B0()}],"border-color":[{border:[v]}],"border-color-x":[{"border-x":[v]}],"border-color-y":[{"border-y":[v]}],"border-color-s":[{"border-s":[v]}],"border-color-e":[{"border-e":[v]}],"border-color-t":[{"border-t":[v]}],"border-color-r":[{"border-r":[v]}],"border-color-b":[{"border-b":[v]}],"border-color-l":[{"border-l":[v]}],"divide-color":[{divide:[v]}],"outline-style":[{outline:["",...B0()]}],"outline-offset":[{"outline-offset":[b8,z1]}],"outline-w":[{outline:[b8,U9]}],"outline-color":[{outline:[Z]}],"ring-w":[{ring:q0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[Z]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[b8,U9]}],"ring-offset-color":[{"ring-offset":[Z]}],shadow:[{shadow:["","inner","none",q9,OD]}],"shadow-color":[{shadow:[HJ]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...u(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":u()}],filter:[{filter:["","none"]}],blur:[{blur:[z]}],brightness:[{brightness:[G]}],contrast:[{contrast:[K]}],"drop-shadow":[{"drop-shadow":["","none",q9,z1]}],grayscale:[{grayscale:[F]}],"hue-rotate":[{"hue-rotate":[L]}],invert:[{invert:[U]}],saturate:[{saturate:[d]}],sepia:[{sepia:[Z0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[z]}],"backdrop-brightness":[{"backdrop-brightness":[G]}],"backdrop-contrast":[{"backdrop-contrast":[K]}],"backdrop-grayscale":[{"backdrop-grayscale":[F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L]}],"backdrop-invert":[{"backdrop-invert":[U]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[d]}],"backdrop-sepia":[{"backdrop-sepia":[Z0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[b]}],"border-spacing-x":[{"border-spacing-x":[b]}],"border-spacing-y":[{"border-spacing-y":[b]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z1]}],duration:[{duration:z0()}],ease:[{ease:["linear","in","out","in-out",z1]}],delay:[{delay:z0()}],animate:[{animate:["none","spin","ping","pulse","bounce",z1]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[i]}],"scale-x":[{"scale-x":[i]}],"scale-y":[{"scale-y":[i]}],rotate:[{rotate:[vJ,z1]}],"translate-x":[{"translate-x":[$0]}],"translate-y":[{"translate-y":[$0]}],"skew-x":[{"skew-x":[p]}],"skew-y":[{"skew-y":[p]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z1]}],accent:[{accent:["auto",Z]}],appearance:[{appearance:["none","auto"]}],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",z1]}],"caret-color":[{caret:[Z]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G0()}],"scroll-mx":[{"scroll-mx":G0()}],"scroll-my":[{"scroll-my":G0()}],"scroll-ms":[{"scroll-ms":G0()}],"scroll-me":[{"scroll-me":G0()}],"scroll-mt":[{"scroll-mt":G0()}],"scroll-mr":[{"scroll-mr":G0()}],"scroll-mb":[{"scroll-mb":G0()}],"scroll-ml":[{"scroll-ml":G0()}],"scroll-p":[{"scroll-p":G0()}],"scroll-px":[{"scroll-px":G0()}],"scroll-py":[{"scroll-py":G0()}],"scroll-ps":[{"scroll-ps":G0()}],"scroll-pe":[{"scroll-pe":G0()}],"scroll-pt":[{"scroll-pt":G0()}],"scroll-pr":[{"scroll-pr":G0()}],"scroll-pb":[{"scroll-pb":G0()}],"scroll-pl":[{"scroll-pl":G0()}],"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",z1]}],fill:[{fill:[Z,"none"]}],"stroke-w":[{stroke:[b8,U9,ab]}],stroke:[{stroke:[Z,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}};var HO=QD(xD);function O0(...Z){return HO(pG(Z))}var o2=P(H0(),1);function L9({...Z}){return o2.jsxDEV(SG,{"data-slot":"dialog",...Z},void 0,!1,void 0,this)}function rG({...Z}){return o2.jsxDEV(D_,{"data-slot":"dialog-trigger",...Z},void 0,!1,void 0,this)}function PD({...Z}){return o2.jsxDEV(DG,{"data-slot":"dialog-portal",...Z},void 0,!1,void 0,this)}function fD({className:Z,...J}){return o2.jsxDEV(dG,{"data-slot":"dialog-overlay",className:O0("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",Z),...J},void 0,!1,void 0,this)}function F9({className:Z,children:J,showCloseButton:z=!0,...G}){return o2.jsxDEV(PD,{children:[o2.jsxDEV(fD,{},void 0,!1,void 0,this),o2.jsxDEV(jG,{"data-slot":"dialog-content",className:O0("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border ring-1 ring-foreground/15 p-6 duration-200 sm:max-w-lg",Z),...G,children:[J,z&&o2.jsxDEV(E_,{"data-slot":"dialog-close",className:"data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[o2.jsxDEV(BJ,{},void 0,!1,void 0,this),o2.jsxDEV("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function k9({className:Z,...J}){return o2.jsxDEV("div",{"data-slot":"dialog-header",className:O0("flex flex-col gap-2 text-center sm:text-left",Z),...J},void 0,!1,void 0,this)}function C$({className:Z,...J}){return o2.jsxDEV("div",{"data-slot":"dialog-footer",className:O0("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",Z),...J},void 0,!1,void 0,this)}function N9({className:Z,...J}){return o2.jsxDEV(d_,{"data-slot":"dialog-title",className:O0("text-lg leading-none font-semibold",Z),...J},void 0,!1,void 0,this)}function T9({className:Z,...J}){return o2.jsxDEV(j_,{"data-slot":"dialog-description",className:O0("text-muted-foreground text-sm",Z),...J},void 0,!1,void 0,this)}var R2=P(H0(),1);function VD({className:Z,...J}){return R2.jsxDEV(W9,{"data-slot":"command",className:O0("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",Z),...J},void 0,!1,void 0,this)}function QO({title:Z="Command Palette",description:J="Search for a command to run...",children:z,className:G,showCloseButton:v=!0,...Q}){return R2.jsxDEV(L9,{...Q,children:[R2.jsxDEV(k9,{className:"sr-only",children:[R2.jsxDEV(N9,{children:Z},void 0,!1,void 0,this),R2.jsxDEV(T9,{children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R2.jsxDEV(F9,{className:O0("overflow-hidden p-0",G),showCloseButton:v,children:R2.jsxDEV(VD,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:z},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function gO({className:Z,...J}){return R2.jsxDEV("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[R2.jsxDEV(YJ,{className:"size-4 shrink-0 opacity-50"},void 0,!1,void 0,this),R2.jsxDEV(W9.Input,{"data-slot":"command-input",className:O0("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",Z),...J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bO({className:Z,...J}){return R2.jsxDEV(W9.List,{"data-slot":"command-list",className:O0("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",Z),...J},void 0,!1,void 0,this)}function WO({...Z}){return R2.jsxDEV(W9.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...Z},void 0,!1,void 0,this)}function nG({className:Z,...J}){return R2.jsxDEV(W9.Group,{"data-slot":"command-group",className:O0("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",Z),...J},void 0,!1,void 0,this)}function _2({className:Z,...J}){return R2.jsxDEV(W9.Item,{"data-slot":"command-item",className:O0("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",Z),...J},void 0,!1,void 0,this)}function pb({className:Z,...J}){return R2.jsxDEV(W9.Separator,{"data-slot":"command-separator",className:O0("bg-border -mx-1 h-px",Z),...J},void 0,!1,void 0,this)}var gw=P(K0(),1),kO=P(H0(),1),UO="agentplate-theme",qO="(prefers-color-scheme: dark)",LO=gw.createContext(null);function dD(){if(typeof window>"u")return"system";try{let Z=window.localStorage.getItem(UO);if(Z==="light"||Z==="dark"||Z==="system")return Z}catch{}return"system"}function jD(){if(typeof window>"u"||typeof window.matchMedia!=="function")return"light";return window.matchMedia(qO).matches?"dark":"light"}function ED(Z){if(typeof document>"u")return;document.documentElement.classList.toggle("dark",Z==="dark")}function FO({children:Z}){let[J,z]=gw.useState(()=>dD()),[G,v]=gw.useState(()=>jD()),Q=J==="system"?G:J;gw.useEffect(()=>{ED(Q)},[Q]),gw.useEffect(()=>{if(J!=="system")return;if(typeof window>"u"||typeof window.matchMedia!=="function")return;let K=window.matchMedia(qO),F=(L)=>{v(L.matches?"dark":"light")};return v(K.matches?"dark":"light"),K.addEventListener("change",F),()=>K.removeEventListener("change",F)},[J]);let b=gw.useCallback((K)=>{if(z(K),typeof window>"u")return;try{window.localStorage.setItem(UO,K)}catch{}},[]),g=gw.useMemo(()=>({theme:J,resolvedTheme:Q,setTheme:b}),[J,Q,b]);return kO.jsxDEV(LO.Provider,{value:g,children:Z},void 0,!1,void 0,this)}function m$(){let Z=gw.useContext(LO);if(Z)return Z;return{theme:"system",resolvedTheme:"light",setTheme:()=>{}}}var h1=P(H0(),1),uD=E4.createContext(null);function lD(){if(typeof document>"u")return!1;let Z=document.activeElement;if(!Z)return!1;let J=Z.tagName.toLowerCase();if(J==="textarea"||J==="input")return!0;if(Z.isContentEditable)return!0;return!1}function NO({children:Z}){let[J,z]=E4.useState(!1),{setTheme:G}=m$(),v=d4(),Q=E4.useMemo(()=>({open:J,setOpen:z}),[J]);E4.useEffect(()=>{let F=(L)=>{if(L.key!=="k"&&L.key!=="K")return;if(!(L.metaKey||L.ctrlKey))return;if(lD())return;L.preventDefault(),z((U)=>!U)};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[]);let g=n0({queryKey:["runs"],queryFn:()=>W8(5),enabled:J}).data?.slice(0,5)??[],K=E4.useCallback((F)=>{F(),z(!1)},[]);return h1.jsxDEV(uD.Provider,{value:Q,children:[Z,h1.jsxDEV(QO,{open:J,onOpenChange:z,children:[h1.jsxDEV(gO,{placeholder:"Type a command or search…"},void 0,!1,void 0,this),h1.jsxDEV(bO,{children:[h1.jsxDEV(WO,{children:"No results found."},void 0,!1,void 0,this),h1.jsxDEV(nG,{heading:"Theme",children:[h1.jsxDEV(_2,{onSelect:()=>K(()=>G("light")),children:"Theme: Light"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>G("dark")),children:"Theme: Dark"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>G("system")),children:"Theme: System"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h1.jsxDEV(pb,{},void 0,!1,void 0,this),h1.jsxDEV(nG,{heading:"Navigate",children:[h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/")),children:"Go to Overview"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/fleet")),children:"Go to Fleet"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/coordinator")),children:"Go to Coordinator"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/costs")),children:"Go to Costs"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/errors")),children:"Go to Errors"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/mail")),children:"Go to Mail"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/merge")),children:"Go to Merge queue"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/worktrees")),children:"Go to Worktrees"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/logs")),children:"Go to Logs"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/health")),children:"Go to Health"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/groups")),children:"Go to Groups"},void 0,!1,void 0,this),h1.jsxDEV(_2,{onSelect:()=>K(()=>v("/specs")),children:"Go to Specs"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.length>0&&h1.jsxDEV(h1.Fragment,{children:[h1.jsxDEV(pb,{},void 0,!1,void 0,this),h1.jsxDEV(nG,{heading:"Recent runs",children:g.map((F)=>h1.jsxDEV(_2,{onSelect:()=>K(()=>v(`/?run=${encodeURIComponent(F.id)}`)),children:`Recent run: ${F.id}`},F.id,!1,void 0,this))},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 BM=P(K0(),1);var KJ=P(H0(),1),cD={open:"bg-success",connecting:"bg-warning",closed:"bg-destructive",idle:"bg-muted-foreground/40"},TO={open:"Connected",connecting:"Connecting…",closed:"Disconnected",idle:"Idle"};function IO({status:Z,className:J,hideLabel:z}){return KJ.jsxDEV("div",{"data-slot":"connection-status","data-status":Z,className:O0("inline-flex items-center gap-1.5 text-xs text-muted-foreground",J),children:[KJ.jsxDEV("span",{"aria-hidden":"true",className:O0("h-2 w-2 rounded-full",cD[Z],Z==="connecting"&&"animate-pulse")},void 0,!1,void 0,this),z?KJ.jsxDEV("span",{className:"sr-only",children:TO[Z]},void 0,!1,void 0,this):KJ.jsxDEV("span",{children:TO[Z]},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _O={loam:{rgb:[139,90,43],label:"loam"},sprout:{rgb:[124,179,66],label:"sprout"},sapling:{rgb:[76,175,80],label:"sapling"},trellis:{rgb:[56,142,60],label:"trellis"},agentplate:{rgb:[46,125,50],label:"agentplate"},greenhouse:{rgb:[124,179,66],label:"greenhouse"}};function OO(Z){let[J,z,G]=_O[Z].rgb;return`rgb(${J}, ${z}, ${G})`}function AO(Z,J){let[z,G,v]=_O[Z].rgb;return`rgba(${z}, ${G}, ${v}, ${J})`}var UJ=P(H0(),1),CO=["greenhouse","agentplate","trellis","sapling","sprout","loam"];function MO({size:Z="sm",showWordmark:J=!1,tool:z,className:G}){let v=Z==="sm"?24:32,Q=CO.length,b=Z==="sm"?1:1.5,g=Z==="sm"?0.6:0.8,K=(v-b*(Q-1))/Q,L=v*1.6,U=z?`${z} mark`:"ag-eco logo";return UJ.jsxDEV("span",{className:O0("inline-flex items-center gap-2 select-none",G),children:[UJ.jsxDEV("svg",{width:L,height:v,viewBox:`0 0 ${L} ${v}`,role:"img","aria-label":U,xmlns:"http://www.w3.org/2000/svg",children:CO.map((k,N)=>{let A=N*(K+b),C=z&&z!==k?AO(k,0.3):OO(k);return UJ.jsxDEV("rect",{x:0,y:A,width:L,height:K,rx:g,ry:g,fill:C},k,!1,void 0,this)})},void 0,!1,void 0,this),J?UJ.jsxDEV("span",{className:"font-semibold text-sm tracking-tight text-foreground",children:"agentplate"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var xO=(Z)=>typeof Z==="boolean"?`${Z}`:Z===0?"0":Z,mO=pG,bw=(Z,J)=>(z)=>{var G;if((J===null||J===void 0?void 0:J.variants)==null)return mO(Z,z===null||z===void 0?void 0:z.class,z===null||z===void 0?void 0:z.className);let{variants:v,defaultVariants:Q}=J,b=Object.keys(v).map((F)=>{let L=z===null||z===void 0?void 0:z[F],U=Q===null||Q===void 0?void 0:Q[F];if(L===null)return null;let k=xO(L)||xO(U);return v[F][k]}),g=z&&Object.entries(z).reduce((F,L)=>{let[U,k]=L;if(k===void 0)return F;return F[U]=k,F},{}),K=J===null||J===void 0?void 0:(G=J.compoundVariants)===null||G===void 0?void 0:G.reduce((F,L)=>{let{class:U,className:k,...N}=L;return Object.entries(N).every((A)=>{let[_,C]=A;return Array.isArray(C)?C.includes({...Q,...g}[_]):{...Q,...g}[_]===C})?[...F,U,k]:F},[]);return mO(Z,b,K,z===null||z===void 0?void 0:z.class,z===null||z===void 0?void 0:z.className)};var PO=P(H0(),1),aD=bw("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground ring-1 ring-foreground/10 hover:bg-primary/90",destructive:"bg-destructive text-white ring-1 ring-foreground/10 hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background ring-1 ring-foreground/10 hover:bg-accent hover:text-accent-foreground dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground ring-1 ring-foreground/10 hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function y1({className:Z,variant:J,size:z,asChild:G=!1,...v}){return PO.jsxDEV(G?lG:"button",{"data-slot":"button","data-variant":J??"default","data-size":z??"default",className:O0(aD({variant:J,size:z,className:Z})),...v},void 0,!1,void 0,this)}var w2=P(K0(),1);var R0=P(K0(),1);var I9=P(K0(),1);var t5=P(K0(),1);var oG=P(z5(),1);function QW(Z){let J=iD(Z),z=t5.forwardRef((G,v)=>{let{children:Q,...b}=G,g=t5.Children.toArray(Q),K=g.find(rD);if(K){let F=K.props.children,L=g.map((U)=>{if(U===K){if(t5.Children.count(F)>1)return t5.Children.only(null);return t5.isValidElement(F)?F.props.children:null}else return U});return oG.jsx(J,{...b,ref:v,children:t5.isValidElement(F)?t5.cloneElement(F,void 0,L):null})}return oG.jsx(J,{...b,ref:v,children:Q})});return z.displayName=`${Z}.Slot`,z}function iD(Z){let J=t5.forwardRef((z,G)=>{let{children:v,...Q}=z;if(t5.isValidElement(v)){let b=oD(v),g=nD(Q,v.props);if(v.type!==t5.Fragment)g.ref=G?f5(G,b):b;return t5.cloneElement(v,g)}return t5.Children.count(v)>1?t5.Children.only(null):null});return J.displayName=`${Z}.SlotClone`,J}var pD=Symbol("radix.slottable");function rD(Z){return t5.isValidElement(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===pD}function nD(Z,J){let z={...J};for(let G in J){let v=Z[G],Q=J[G];if(/^on[A-Z]/.test(G)){if(v&&Q)z[G]=(...g)=>{let K=Q(...g);return v(...g),K};else if(v)z[G]=v}else if(G==="style")z[G]={...v,...Q};else if(G==="className")z[G]=[v,Q].filter(Boolean).join(" ")}return{...Z,...z}}function oD(Z){let J=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning;if(z)return Z.ref;if(J=Object.getOwnPropertyDescriptor(Z,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning,z)return Z.props.ref;return Z.props.ref||Z.ref}var sG=P(z5(),1),sD=P(K0(),1);var eD=P(z5(),1);function tG(Z){let J=Z+"CollectionProvider",[z,G]=f2(J),[v,Q]=z(J,{collectionRef:{current:null},itemMap:new Map}),b=(_)=>{let{scope:C,children:x}=_,S=I9.default.useRef(null),d=I9.default.useRef(new Map).current;return sG.jsx(v,{scope:C,itemMap:d,collectionRef:S,children:x})};b.displayName=J;let g=Z+"CollectionSlot",K=QW(g),F=I9.default.forwardRef((_,C)=>{let{scope:x,children:S}=_,d=Q(g,x),i=O1(C,d.collectionRef);return sG.jsx(K,{ref:i,children:S})});F.displayName=g;let L=Z+"CollectionItemSlot",U="data-radix-collection-item",k=QW(L),N=I9.default.forwardRef((_,C)=>{let{scope:x,children:S,...d}=_,i=I9.default.useRef(null),Z0=O1(C,i),p=Q(L,x);return I9.default.useEffect(()=>{return p.itemMap.set(i,{ref:i,...d}),()=>void p.itemMap.delete(i)}),sG.jsx(k,{...{[U]:""},ref:Z0,children:S})});N.displayName=L;function A(_){let C=Q(Z+"CollectionConsumer",_);return I9.default.useCallback(()=>{let S=C.collectionRef.current;if(!S)return[];let d=Array.from(S.querySelectorAll(`[${U}]`));return Array.from(C.itemMap.values()).sort((p,j)=>d.indexOf(p.ref.current)-d.indexOf(j.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:b,Slot:F,ItemSlot:N},A,G]}var fO=new WeakMap,ur1=class Z extends Map{#w;constructor(J){super(J);this.#w=[...super.keys()],fO.set(this,!0)}set(J,z){if(fO.get(this))if(this.has(J))this.#w[this.#w.indexOf(J)]=J;else this.#w.push(J);return super.set(J,z),this}insert(J,z,G){let v=this.has(z),Q=this.#w.length,b=VO(J),g=b>=0?b:Q+b,K=g<0||g>=Q?-1:g;if(K===this.size||v&&K===this.size-1||K===-1)return this.set(z,G),this;let F=this.size+(v?0:1);if(b<0)g++;let L=[...this.#w],U,k=!1;for(let N=g;N<F;N++)if(g===N){let A=L[N];if(L[N]===z)A=L[N+1];if(v)this.delete(z);U=this.get(A),this.set(z,G)}else{if(!k&&L[N-1]===z)k=!0;let A=L[k?N:N-1],_=U;U=this.get(A),this.delete(A),this.set(A,_)}return this}with(J,z,G){let v=new Z(this);return v.insert(J,z,G),v}before(J){let z=this.#w.indexOf(J)-1;if(z<0)return;return this.entryAt(z)}setBefore(J,z,G){let v=this.#w.indexOf(J);if(v===-1)return this;return this.insert(v,z,G)}after(J){let z=this.#w.indexOf(J);if(z=z===-1||z===this.size-1?-1:z+1,z===-1)return;return this.entryAt(z)}setAfter(J,z,G){let v=this.#w.indexOf(J);if(v===-1)return this;return this.insert(v+1,z,G)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#w=[],super.clear()}delete(J){let z=super.delete(J);if(z)this.#w.splice(this.#w.indexOf(J),1);return z}deleteAt(J){let z=this.keyAt(J);if(z!==void 0)return this.delete(z);return!1}at(J){let z=gW(this.#w,J);if(z!==void 0)return this.get(z)}entryAt(J){let z=gW(this.#w,J);if(z!==void 0)return[z,this.get(z)]}indexOf(J){return this.#w.indexOf(J)}keyAt(J){return gW(this.#w,J)}from(J,z){let G=this.indexOf(J);if(G===-1)return;let v=G+z;if(v<0)v=0;if(v>=this.size)v=this.size-1;return this.at(v)}keyFrom(J,z){let G=this.indexOf(J);if(G===-1)return;let v=G+z;if(v<0)v=0;if(v>=this.size)v=this.size-1;return this.keyAt(v)}find(J,z){let G=0;for(let v of this){if(Reflect.apply(J,z,[v,G,this]))return v;G++}return}findIndex(J,z){let G=0;for(let v of this){if(Reflect.apply(J,z,[v,G,this]))return G;G++}return-1}filter(J,z){let G=[],v=0;for(let Q of this){if(Reflect.apply(J,z,[Q,v,this]))G.push(Q);v++}return new Z(G)}map(J,z){let G=[],v=0;for(let Q of this)G.push([Q[0],Reflect.apply(J,z,[Q,v,this])]),v++;return new Z(G)}reduce(...J){let[z,G]=J,v=0,Q=G??this.at(0);for(let b of this){if(v===0&&J.length===1)Q=b;else Q=Reflect.apply(z,this,[Q,b,v,this]);v++}return Q}reduceRight(...J){let[z,G]=J,v=G??this.at(-1);for(let Q=this.size-1;Q>=0;Q--){let b=this.at(Q);if(Q===this.size-1&&J.length===1)v=b;else v=Reflect.apply(z,this,[v,b,Q,this])}return v}toSorted(J){let z=[...this.entries()].sort(J);return new Z(z)}toReversed(){let J=new Z;for(let z=this.size-1;z>=0;z--){let G=this.keyAt(z),v=this.get(G);J.set(G,v)}return J}toSpliced(...J){let z=[...this.entries()];return z.splice(...J),new Z(z)}slice(J,z){let G=new Z,v=this.size-1;if(J===void 0)return G;if(J<0)J=J+this.size;if(z!==void 0&&z>0)v=z-1;for(let Q=J;Q<=v;Q++){let b=this.keyAt(Q),g=this.get(b);G.set(b,g)}return G}every(J,z){let G=0;for(let v of this){if(!Reflect.apply(J,z,[v,G,this]))return!1;G++}return!0}some(J,z){let G=0;for(let v of this){if(Reflect.apply(J,z,[v,G,this]))return!0;G++}return!1}};function gW(Z,J){if("at"in Array.prototype)return Array.prototype.at.call(Z,J);let z=tD(Z,J);return z===-1?void 0:Z[z]}function tD(Z,J){let z=Z.length,G=VO(J),v=G>=0?G:z+G;return v<0||v>=z?-1:v}function VO(Z){return Z!==Z||Z===0?0:Math.trunc(Z)}var eG=P(K0(),1),wd=P(z5(),1),$d=eG.createContext(void 0);function _9(Z){let J=eG.useContext($d);return Z||J||"ltr"}var Kw=P(K0(),1);var yO=["top","right","bottom","left"];var{min:P6,max:s2,round:LJ,floor:FJ}=Math,u4=(Z)=>({x:Z,y:Z}),Zd={left:"right",right:"left",bottom:"top",top:"bottom"};function $B(Z,J,z){return s2(Z,P6(J,z))}function f6(Z,J){return typeof Z==="function"?Z(J):Z}function V6(Z){return Z.split("-")[0]}function E7(Z){return Z.split("-")[1]}function ZB(Z){return Z==="x"?"y":"x"}function XB(Z){return Z==="y"?"height":"width"}function l4(Z){let J=Z[0];return J==="t"||J==="b"?"y":"x"}function JB(Z){return ZB(l4(Z))}function SO(Z,J,z){if(z===void 0)z=!1;let G=E7(Z),v=JB(Z),Q=XB(v),b=v==="x"?G===(z?"end":"start")?"right":"left":G==="start"?"bottom":"top";if(J.reference[Q]>J.floating[Q])b=qJ(b);return[b,qJ(b)]}function DO(Z){let J=qJ(Z);return[wB(Z),J,wB(J)]}function wB(Z){return Z.includes("start")?Z.replace("start","end"):Z.replace("end","start")}var hO=["left","right"],RO=["right","left"],Xd=["top","bottom"],Jd=["bottom","top"];function Yd(Z,J,z){switch(Z){case"top":case"bottom":if(z)return J?RO:hO;return J?hO:RO;case"left":case"right":return J?Xd:Jd;default:return[]}}function dO(Z,J,z,G){let v=E7(Z),Q=Yd(V6(Z),z==="start",G);if(v){if(Q=Q.map((b)=>b+"-"+v),J)Q=Q.concat(Q.map(wB))}return Q}function qJ(Z){let J=V6(Z);return Zd[J]+Z.slice(J.length)}function zd(Z){return{top:0,right:0,bottom:0,left:0,...Z}}function bW(Z){return typeof Z!=="number"?zd(Z):{top:Z,right:Z,bottom:Z,left:Z}}function u7(Z){let{x:J,y:z,width:G,height:v}=Z;return{width:G,height:v,top:z,left:J,right:J+G,bottom:z+v,x:J,y:z}}function jO(Z,J,z){let{reference:G,floating:v}=Z,Q=l4(J),b=JB(J),g=XB(b),K=V6(J),F=Q==="y",L=G.x+G.width/2-v.width/2,U=G.y+G.height/2-v.height/2,k=G[g]/2-v[g]/2,N;switch(K){case"top":N={x:L,y:G.y-v.height};break;case"bottom":N={x:L,y:G.y+G.height};break;case"right":N={x:G.x+G.width,y:U};break;case"left":N={x:G.x-v.width,y:U};break;default:N={x:G.x,y:G.y}}switch(E7(J)){case"start":N[b]-=k*(z&&F?-1:1);break;case"end":N[b]+=k*(z&&F?-1:1);break}return N}async function lO(Z,J){var z;if(J===void 0)J={};let{x:G,y:v,platform:Q,rects:b,elements:g,strategy:K}=Z,{boundary:F="clippingAncestors",rootBoundary:L="viewport",elementContext:U="floating",altBoundary:k=!1,padding:N=0}=f6(J,Z),A=bW(N),C=g[k?U==="floating"?"reference":"floating":U],x=u7(await Q.getClippingRect({element:((z=await(Q.isElement==null?void 0:Q.isElement(C)))!=null?z:!0)?C:C.contextElement||await(Q.getDocumentElement==null?void 0:Q.getDocumentElement(g.floating)),boundary:F,rootBoundary:L,strategy:K})),S=U==="floating"?{x:G,y:v,width:b.floating.width,height:b.floating.height}:b.reference,d=await(Q.getOffsetParent==null?void 0:Q.getOffsetParent(g.floating)),i=await(Q.isElement==null?void 0:Q.isElement(d))?await(Q.getScale==null?void 0:Q.getScale(d))||{x:1,y:1}:{x:1,y:1},Z0=u7(Q.convertOffsetParentRelativeRectToViewportRelativeRect?await Q.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:S,offsetParent:d,strategy:K}):S);return{top:(x.top-Z0.top+A.top)/i.y,bottom:(Z0.bottom-x.bottom+A.bottom)/i.y,left:(x.left-Z0.left+A.left)/i.x,right:(Z0.right-x.right+A.right)/i.x}}var Gd=50,cO=async(Z,J,z)=>{let{placement:G="bottom",strategy:v="absolute",middleware:Q=[],platform:b}=z,g=b.detectOverflow?b:{...b,detectOverflow:lO},K=await(b.isRTL==null?void 0:b.isRTL(J)),F=await b.getElementRects({reference:Z,floating:J,strategy:v}),{x:L,y:U}=jO(F,G,K),k=G,N=0,A={};for(let _=0;_<Q.length;_++){let C=Q[_];if(!C)continue;let{name:x,fn:S}=C,{x:d,y:i,data:Z0,reset:p}=await S({x:L,y:U,initialPlacement:G,placement:k,strategy:v,middlewareData:A,rects:F,platform:g,elements:{reference:Z,floating:J}});if(L=d!=null?d:L,U=i!=null?i:U,A[x]={...A[x],...Z0},p&&N<Gd){if(N++,typeof p==="object"){if(p.placement)k=p.placement;if(p.rects)F=p.rects===!0?await b.getElementRects({reference:Z,floating:J,strategy:v}):p.rects;({x:L,y:U}=jO(F,k,K))}_=-1}}return{x:L,y:U,placement:k,strategy:v,middlewareData:A}},aO=(Z)=>({name:"arrow",options:Z,async fn(J){let{x:z,y:G,placement:v,rects:Q,platform:b,elements:g,middlewareData:K}=J,{element:F,padding:L=0}=f6(Z,J)||{};if(F==null)return{};let U=bW(L),k={x:z,y:G},N=JB(v),A=XB(N),_=await b.getDimensions(F),C=N==="y",x=C?"top":"left",S=C?"bottom":"right",d=C?"clientHeight":"clientWidth",i=Q.reference[A]+Q.reference[N]-k[N]-Q.floating[A],Z0=k[N]-Q.reference[N],p=await(b.getOffsetParent==null?void 0:b.getOffsetParent(F)),j=p?p[d]:0;if(!j||!await(b.isElement==null?void 0:b.isElement(p)))j=g.floating[d]||Q.floating[A];let $0=i/2-Z0/2,s=j/2-_[A]/2-1,E=P6(U[x],s),Q0=P6(U[S],s),G0=E,q0=j-_[A]-Q0,F0=j/2-_[A]/2+$0,e=$B(G0,F0,q0),B0=!K.arrow&&E7(v)!=null&&F0!==e&&Q.reference[A]/2-(F0<G0?E:Q0)-_[A]/2<0,u=B0?F0<G0?F0-G0:F0-q0:0;return{[N]:k[N]+u,data:{[N]:e,centerOffset:F0-e-u,...B0&&{alignmentOffset:u}},reset:B0}}});var iO=function(Z){if(Z===void 0)Z={};return{name:"flip",options:Z,async fn(J){var z,G;let{placement:v,middlewareData:Q,rects:b,initialPlacement:g,platform:K,elements:F}=J,{mainAxis:L=!0,crossAxis:U=!0,fallbackPlacements:k,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:_=!0,...C}=f6(Z,J);if((z=Q.arrow)!=null&&z.alignmentOffset)return{};let x=V6(v),S=l4(g),d=V6(g)===g,i=await(K.isRTL==null?void 0:K.isRTL(F.floating)),Z0=k||(d||!_?[qJ(g)]:DO(g)),p=A!=="none";if(!k&&p)Z0.push(...dO(g,_,A,i));let j=[g,...Z0],$0=await K.detectOverflow(J,C),s=[],E=((G=Q.flip)==null?void 0:G.overflows)||[];if(L)s.push($0[x]);if(U){let F0=SO(v,b,i);s.push($0[F0[0]],$0[F0[1]])}if(E=[...E,{placement:v,overflows:s}],!s.every((F0)=>F0<=0)){var Q0,G0;let F0=(((Q0=Q.flip)==null?void 0:Q0.index)||0)+1,e=j[F0];if(e){if(!(U==="alignment"?S!==l4(e):!1)||E.every((o)=>l4(o.placement)===S?o.overflows[0]>0:!0))return{data:{index:F0,overflows:E},reset:{placement:e}}}let B0=(G0=E.filter((u)=>u.overflows[0]<=0).sort((u,o)=>u.overflows[1]-o.overflows[1])[0])==null?void 0:G0.placement;if(!B0)switch(N){case"bestFit":{var q0;let u=(q0=E.filter((o)=>{if(p){let l=l4(o.placement);return l===S||l==="y"}return!0}).map((o)=>[o.placement,o.overflows.filter((l)=>l>0).reduce((l,M)=>l+M,0)]).sort((o,l)=>o[1]-l[1])[0])==null?void 0:q0[0];if(u)B0=u;break}case"initialPlacement":B0=g;break}if(v!==B0)return{reset:{placement:B0}}}return{}}}};function EO(Z,J){return{top:Z.top-J.height,right:Z.right-J.width,bottom:Z.bottom-J.height,left:Z.left-J.width}}function uO(Z){return yO.some((J)=>Z[J]>=0)}var pO=function(Z){if(Z===void 0)Z={};return{name:"hide",options:Z,async fn(J){let{rects:z,platform:G}=J,{strategy:v="referenceHidden",...Q}=f6(Z,J);switch(v){case"referenceHidden":{let b=await G.detectOverflow(J,{...Q,elementContext:"reference"}),g=EO(b,z.reference);return{data:{referenceHiddenOffsets:g,referenceHidden:uO(g)}}}case"escaped":{let b=await G.detectOverflow(J,{...Q,altBoundary:!0}),g=EO(b,z.floating);return{data:{escapedOffsets:g,escaped:uO(g)}}}default:return{}}}}};var rO=new Set(["left","top"]);async function Bd(Z,J){let{placement:z,platform:G,elements:v}=Z,Q=await(G.isRTL==null?void 0:G.isRTL(v.floating)),b=V6(z),g=E7(z),K=l4(z)==="y",F=rO.has(b)?-1:1,L=Q&&K?-1:1,U=f6(J,Z),{mainAxis:k,crossAxis:N,alignmentAxis:A}=typeof U==="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};if(g&&typeof A==="number")N=g==="end"?A*-1:A;return K?{x:N*L,y:k*F}:{x:k*F,y:N*L}}var nO=function(Z){if(Z===void 0)Z=0;return{name:"offset",options:Z,async fn(J){var z,G;let{x:v,y:Q,placement:b,middlewareData:g}=J,K=await Bd(J,Z);if(b===((z=g.offset)==null?void 0:z.placement)&&(G=g.arrow)!=null&&G.alignmentOffset)return{};return{x:v+K.x,y:Q+K.y,data:{...K,placement:b}}}}},oO=function(Z){if(Z===void 0)Z={};return{name:"shift",options:Z,async fn(J){let{x:z,y:G,placement:v,platform:Q}=J,{mainAxis:b=!0,crossAxis:g=!1,limiter:K={fn:(x)=>{let{x:S,y:d}=x;return{x:S,y:d}}},...F}=f6(Z,J),L={x:z,y:G},U=await Q.detectOverflow(J,F),k=l4(V6(v)),N=ZB(k),A=L[N],_=L[k];if(b){let x=N==="y"?"top":"left",S=N==="y"?"bottom":"right",d=A+U[x],i=A-U[S];A=$B(d,A,i)}if(g){let x=k==="y"?"top":"left",S=k==="y"?"bottom":"right",d=_+U[x],i=_-U[S];_=$B(d,_,i)}let C=K.fn({...J,[N]:A,[k]:_});return{...C,data:{x:C.x-z,y:C.y-G,enabled:{[N]:b,[k]:g}}}}}},sO=function(Z){if(Z===void 0)Z={};return{options:Z,fn(J){let{x:z,y:G,placement:v,rects:Q,middlewareData:b}=J,{offset:g=0,mainAxis:K=!0,crossAxis:F=!0}=f6(Z,J),L={x:z,y:G},U=l4(v),k=ZB(U),N=L[k],A=L[U],_=f6(g,J),C=typeof _==="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(K){let d=k==="y"?"height":"width",i=Q.reference[k]-Q.floating[d]+C.mainAxis,Z0=Q.reference[k]+Q.reference[d]-C.mainAxis;if(N<i)N=i;else if(N>Z0)N=Z0}if(F){var x,S;let d=k==="y"?"width":"height",i=rO.has(V6(v)),Z0=Q.reference[U]-Q.floating[d]+(i?((x=b.offset)==null?void 0:x[U])||0:0)+(i?0:C.crossAxis),p=Q.reference[U]+Q.reference[d]+(i?0:((S=b.offset)==null?void 0:S[U])||0)-(i?C.crossAxis:0);if(A<Z0)A=Z0;else if(A>p)A=p}return{[k]:N,[U]:A}}}},tO=function(Z){if(Z===void 0)Z={};return{name:"size",options:Z,async fn(J){var z,G;let{placement:v,rects:Q,platform:b,elements:g}=J,{apply:K=()=>{},...F}=f6(Z,J),L=await b.detectOverflow(J,F),U=V6(v),k=E7(v),N=l4(v)==="y",{width:A,height:_}=Q.floating,C,x;if(U==="top"||U==="bottom")C=U,x=k===(await(b.isRTL==null?void 0:b.isRTL(g.floating))?"start":"end")?"left":"right";else x=U,C=k==="end"?"top":"bottom";let S=_-L.top-L.bottom,d=A-L.left-L.right,i=P6(_-L[C],S),Z0=P6(A-L[x],d),p=!J.middlewareData.shift,j=i,$0=Z0;if((z=J.middlewareData.shift)!=null&&z.enabled.x)$0=d;if((G=J.middlewareData.shift)!=null&&G.enabled.y)j=S;if(p&&!k){let E=s2(L.left,0),Q0=s2(L.right,0),G0=s2(L.top,0),q0=s2(L.bottom,0);if(N)$0=A-2*(E!==0||Q0!==0?E+Q0:s2(L.left,L.right));else j=_-2*(G0!==0||q0!==0?G0+q0:s2(L.top,L.bottom))}await K({...J,availableWidth:$0,availableHeight:j});let s=await b.getDimensions(g.floating);if(A!==s.width||_!==s.height)return{reset:{rects:!0}};return{}}}};function YB(){return typeof window<"u"}function a7(Z){if(wA(Z))return(Z.nodeName||"").toLowerCase();return"#document"}function Ww(Z){var J;return(Z==null||(J=Z.ownerDocument)==null?void 0:J.defaultView)||window}function c4(Z){var J;return(J=(wA(Z)?Z.ownerDocument:Z.document)||window.document)==null?void 0:J.documentElement}function wA(Z){if(!YB())return!1;return Z instanceof Node||Z instanceof Ww(Z).Node}function K4(Z){if(!YB())return!1;return Z instanceof Element||Z instanceof Ww(Z).Element}function h6(Z){if(!YB())return!1;return Z instanceof HTMLElement||Z instanceof Ww(Z).HTMLElement}function eO(Z){if(!YB()||typeof ShadowRoot>"u")return!1;return Z instanceof ShadowRoot||Z instanceof Ww(Z).ShadowRoot}function P$(Z){let{overflow:J,overflowX:z,overflowY:G,display:v}=U4(Z);return/auto|scroll|overlay|hidden|clip/.test(J+G+z)&&v!=="inline"&&v!=="contents"}function $A(Z){return/^(table|td|th)$/.test(a7(Z))}function kJ(Z){try{if(Z.matches(":popover-open"))return!0}catch(J){}try{return Z.matches(":modal")}catch(J){return!1}}var vd=/transform|translate|scale|rotate|perspective|filter/,Hd=/paint|layout|strict|content/,l7=(Z)=>!!Z&&Z!=="none",WW;function zB(Z){let J=K4(Z)?U4(Z):Z;return l7(J.transform)||l7(J.translate)||l7(J.scale)||l7(J.rotate)||l7(J.perspective)||!GB()&&(l7(J.backdropFilter)||l7(J.filter))||vd.test(J.willChange||"")||Hd.test(J.contain||"")}function ZA(Z){let J=K8(Z);while(h6(J)&&!i7(J)){if(zB(J))return J;else if(kJ(J))return null;J=K8(J)}return null}function GB(){if(WW==null)WW=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return WW}function i7(Z){return/^(html|body|#document)$/.test(a7(Z))}function U4(Z){return Ww(Z).getComputedStyle(Z)}function NJ(Z){if(K4(Z))return{scrollLeft:Z.scrollLeft,scrollTop:Z.scrollTop};return{scrollLeft:Z.scrollX,scrollTop:Z.scrollY}}function K8(Z){if(a7(Z)==="html")return Z;let J=Z.assignedSlot||Z.parentNode||eO(Z)&&Z.host||c4(Z);return eO(J)?J.host:J}function XA(Z){let J=K8(Z);if(i7(J))return Z.ownerDocument?Z.ownerDocument.body:Z.body;if(h6(J)&&P$(J))return J;return XA(J)}function c7(Z,J,z){var G;if(J===void 0)J=[];if(z===void 0)z=!0;let v=XA(Z),Q=v===((G=Z.ownerDocument)==null?void 0:G.body),b=Ww(v);if(Q){let g=BB(b);return J.concat(b,b.visualViewport||[],P$(v)?v:[],g&&z?c7(g):[])}else return J.concat(v,c7(v,[],z))}function BB(Z){return Z.parent&&Object.getPrototypeOf(Z.parent)?Z.frameElement:null}function GA(Z){let J=U4(Z),z=parseFloat(J.width)||0,G=parseFloat(J.height)||0,v=h6(Z),Q=v?Z.offsetWidth:z,b=v?Z.offsetHeight:G,g=LJ(z)!==Q||LJ(G)!==b;if(g)z=Q,G=b;return{width:z,height:G,$:g}}function UW(Z){return!K4(Z)?Z.contextElement:Z}function f$(Z){let J=UW(Z);if(!h6(J))return u4(1);let z=J.getBoundingClientRect(),{width:G,height:v,$:Q}=GA(J),b=(Q?LJ(z.width):z.width)/G,g=(Q?LJ(z.height):z.height)/v;if(!b||!Number.isFinite(b))b=1;if(!g||!Number.isFinite(g))g=1;return{x:b,y:g}}var Qd=u4(0);function BA(Z){let J=Ww(Z);if(!GB()||!J.visualViewport)return Qd;return{x:J.visualViewport.offsetLeft,y:J.visualViewport.offsetTop}}function gd(Z,J,z){if(J===void 0)J=!1;if(!z||J&&z!==Ww(Z))return!1;return J}function p7(Z,J,z,G){if(J===void 0)J=!1;if(z===void 0)z=!1;let v=Z.getBoundingClientRect(),Q=UW(Z),b=u4(1);if(J)if(G){if(K4(G))b=f$(G)}else b=f$(Z);let g=gd(Q,z,G)?BA(Q):u4(0),K=(v.left+g.x)/b.x,F=(v.top+g.y)/b.y,L=v.width/b.x,U=v.height/b.y;if(Q){let k=Ww(Q),N=G&&K4(G)?Ww(G):G,A=k,_=BB(A);while(_&&G&&N!==A){let C=f$(_),x=_.getBoundingClientRect(),S=U4(_),d=x.left+(_.clientLeft+parseFloat(S.paddingLeft))*C.x,i=x.top+(_.clientTop+parseFloat(S.paddingTop))*C.y;K*=C.x,F*=C.y,L*=C.x,U*=C.y,K+=d,F+=i,A=Ww(_),_=BB(A)}}return u7({width:L,height:U,x:K,y:F})}function vB(Z,J){let z=NJ(Z).scrollLeft;if(!J)return p7(c4(Z)).left+z;return J.left+z}function vA(Z,J){let z=Z.getBoundingClientRect(),G=z.left+J.scrollLeft-vB(Z,z),v=z.top+J.scrollTop;return{x:G,y:v}}function bd(Z){let{elements:J,rect:z,offsetParent:G,strategy:v}=Z,Q=v==="fixed",b=c4(G),g=J?kJ(J.floating):!1;if(G===b||g&&Q)return z;let K={scrollLeft:0,scrollTop:0},F=u4(1),L=u4(0),U=h6(G);if(U||!U&&!Q){if(a7(G)!=="body"||P$(b))K=NJ(G);if(U){let N=p7(G);F=f$(G),L.x=N.x+G.clientLeft,L.y=N.y+G.clientTop}}let k=b&&!U&&!Q?vA(b,K):u4(0);return{width:z.width*F.x,height:z.height*F.y,x:z.x*F.x-K.scrollLeft*F.x+L.x+k.x,y:z.y*F.y-K.scrollTop*F.y+L.y+k.y}}function Wd(Z){return Array.from(Z.getClientRects())}function Kd(Z){let J=c4(Z),z=NJ(Z),G=Z.ownerDocument.body,v=s2(J.scrollWidth,J.clientWidth,G.scrollWidth,G.clientWidth),Q=s2(J.scrollHeight,J.clientHeight,G.scrollHeight,G.clientHeight),b=-z.scrollLeft+vB(Z),g=-z.scrollTop;if(U4(G).direction==="rtl")b+=s2(J.clientWidth,G.clientWidth)-v;return{width:v,height:Q,x:b,y:g}}var JA=25;function Ud(Z,J){let z=Ww(Z),G=c4(Z),v=z.visualViewport,Q=G.clientWidth,b=G.clientHeight,g=0,K=0;if(v){Q=v.width,b=v.height;let L=GB();if(!L||L&&J==="fixed")g=v.offsetLeft,K=v.offsetTop}let F=vB(G);if(F<=0){let L=G.ownerDocument,U=L.body,k=getComputedStyle(U),N=L.compatMode==="CSS1Compat"?parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0:0,A=Math.abs(G.clientWidth-U.clientWidth-N);if(A<=JA)Q-=A}else if(F<=JA)Q+=F;return{width:Q,height:b,x:g,y:K}}function qd(Z,J){let z=p7(Z,!0,J==="fixed"),G=z.top+Z.clientTop,v=z.left+Z.clientLeft,Q=h6(Z)?f$(Z):u4(1),b=Z.clientWidth*Q.x,g=Z.clientHeight*Q.y,K=v*Q.x,F=G*Q.y;return{width:b,height:g,x:K,y:F}}function YA(Z,J,z){let G;if(J==="viewport")G=Ud(Z,z);else if(J==="document")G=Kd(c4(Z));else if(K4(J))G=qd(J,z);else{let v=BA(Z);G={x:J.x-v.x,y:J.y-v.y,width:J.width,height:J.height}}return u7(G)}function HA(Z,J){let z=K8(Z);if(z===J||!K4(z)||i7(z))return!1;return U4(z).position==="fixed"||HA(z,J)}function Ld(Z,J){let z=J.get(Z);if(z)return z;let G=c7(Z,[],!1).filter((g)=>K4(g)&&a7(g)!=="body"),v=null,Q=U4(Z).position==="fixed",b=Q?K8(Z):Z;while(K4(b)&&!i7(b)){let g=U4(b),K=zB(b);if(!K&&g.position==="fixed")v=null;if(Q?!K&&!v:!K&&g.position==="static"&&!!v&&(v.position==="absolute"||v.position==="fixed")||P$(b)&&!K&&HA(Z,b))G=G.filter((L)=>L!==b);else v=g;b=K8(b)}return J.set(Z,G),G}function Fd(Z){let{element:J,boundary:z,rootBoundary:G,strategy:v}=Z,b=[...z==="clippingAncestors"?kJ(J)?[]:Ld(J,this._c):[].concat(z),G],g=YA(J,b[0],v),K=g.top,F=g.right,L=g.bottom,U=g.left;for(let k=1;k<b.length;k++){let N=YA(J,b[k],v);K=s2(N.top,K),F=P6(N.right,F),L=P6(N.bottom,L),U=s2(N.left,U)}return{width:F-U,height:L-K,x:U,y:K}}function kd(Z){let{width:J,height:z}=GA(Z);return{width:J,height:z}}function Nd(Z,J,z){let G=h6(J),v=c4(J),Q=z==="fixed",b=p7(Z,!0,Q,J),g={scrollLeft:0,scrollTop:0},K=u4(0);function F(){K.x=vB(v)}if(G||!G&&!Q){if(a7(J)!=="body"||P$(v))g=NJ(J);if(G){let N=p7(J,!0,Q,J);K.x=N.x+J.clientLeft,K.y=N.y+J.clientTop}else if(v)F()}if(Q&&!G&&v)F();let L=v&&!G&&!Q?vA(v,g):u4(0),U=b.left+g.scrollLeft-K.x-L.x,k=b.top+g.scrollTop-K.y-L.y;return{x:U,y:k,width:b.width,height:b.height}}function KW(Z){return U4(Z).position==="static"}function zA(Z,J){if(!h6(Z)||U4(Z).position==="fixed")return null;if(J)return J(Z);let z=Z.offsetParent;if(c4(Z)===z)z=z.ownerDocument.body;return z}function QA(Z,J){let z=Ww(Z);if(kJ(Z))return z;if(!h6(Z)){let v=K8(Z);while(v&&!i7(v)){if(K4(v)&&!KW(v))return v;v=K8(v)}return z}let G=zA(Z,J);while(G&&$A(G)&&KW(G))G=zA(G,J);if(G&&i7(G)&&KW(G)&&!zB(G))return z;return G||ZA(Z)||z}var Td=async function(Z){let J=this.getOffsetParent||QA,z=this.getDimensions,G=await z(Z.floating);return{reference:Nd(Z.reference,await J(Z.floating),Z.strategy),floating:{x:0,y:0,width:G.width,height:G.height}}};function Id(Z){return U4(Z).direction==="rtl"}var gA={convertOffsetParentRelativeRectToViewportRelativeRect:bd,getDocumentElement:c4,getClippingRect:Fd,getOffsetParent:QA,getElementRects:Td,getClientRects:Wd,getDimensions:kd,getScale:f$,isElement:K4,isRTL:Id};function bA(Z,J){return Z.x===J.x&&Z.y===J.y&&Z.width===J.width&&Z.height===J.height}function _d(Z,J){let z=null,G,v=c4(Z);function Q(){var g;clearTimeout(G),(g=z)==null||g.disconnect(),z=null}function b(g,K){if(g===void 0)g=!1;if(K===void 0)K=1;Q();let F=Z.getBoundingClientRect(),{left:L,top:U,width:k,height:N}=F;if(!g)J();if(!k||!N)return;let A=FJ(U),_=FJ(v.clientWidth-(L+k)),C=FJ(v.clientHeight-(U+N)),x=FJ(L),d={rootMargin:-A+"px "+-_+"px "+-C+"px "+-x+"px",threshold:s2(0,P6(1,K))||1},i=!0;function Z0(p){let j=p[0].intersectionRatio;if(j!==K){if(!i)return b();if(!j)G=setTimeout(()=>{b(!1,0.0000001)},1000);else b(!1,j)}if(j===1&&!bA(F,Z.getBoundingClientRect()))b();i=!1}try{z=new IntersectionObserver(Z0,{...d,root:v.ownerDocument})}catch(p){z=new IntersectionObserver(Z0,d)}z.observe(Z)}return b(!0),Q}function qW(Z,J,z,G){if(G===void 0)G={};let{ancestorScroll:v=!0,ancestorResize:Q=!0,elementResize:b=typeof ResizeObserver==="function",layoutShift:g=typeof IntersectionObserver==="function",animationFrame:K=!1}=G,F=UW(Z),L=v||Q?[...F?c7(F):[],...J?c7(J):[]]:[];L.forEach((x)=>{v&&x.addEventListener("scroll",z,{passive:!0}),Q&&x.addEventListener("resize",z)});let U=F&&g?_d(F,z):null,k=-1,N=null;if(b){if(N=new ResizeObserver((x)=>{let[S]=x;if(S&&S.target===F&&N&&J)N.unobserve(J),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var d;(d=N)==null||d.observe(J)});z()}),F&&!K)N.observe(F);if(J)N.observe(J)}let A,_=K?p7(Z):null;if(K)C();function C(){let x=p7(Z);if(_&&!bA(_,x))z();_=x,A=requestAnimationFrame(C)}return z(),()=>{var x;if(L.forEach((S)=>{v&&S.removeEventListener("scroll",z),Q&&S.removeEventListener("resize",z)}),U==null||U(),(x=N)==null||x.disconnect(),N=null,K)cancelAnimationFrame(A)}}var WA=nO;var KA=oO,UA=iO,qA=tO,LA=pO,LW=aO;var FA=sO,FW=(Z,J,z)=>{let G=new Map,v={platform:gA,...z},Q={...v.platform,_c:G};return cO(Z,J,{...v,platform:Q})};var l5=P(K0(),1),NA=P(K0(),1),TA=P(v9(),1),Od=typeof document<"u",Ad=function(){},HB=Od?NA.useLayoutEffect:Ad;function QB(Z,J){if(Z===J)return!0;if(typeof Z!==typeof J)return!1;if(typeof Z==="function"&&Z.toString()===J.toString())return!0;let z,G,v;if(Z&&J&&typeof Z==="object"){if(Array.isArray(Z)){if(z=Z.length,z!==J.length)return!1;for(G=z;G--!==0;)if(!QB(Z[G],J[G]))return!1;return!0}if(v=Object.keys(Z),z=v.length,z!==Object.keys(J).length)return!1;for(G=z;G--!==0;)if(!{}.hasOwnProperty.call(J,v[G]))return!1;for(G=z;G--!==0;){let Q=v[G];if(Q==="_owner"&&Z.$$typeof)continue;if(!QB(Z[Q],J[Q]))return!1}return!0}return Z!==Z&&J!==J}function IA(Z){if(typeof window>"u")return 1;return(Z.ownerDocument.defaultView||window).devicePixelRatio||1}function kA(Z,J){let z=IA(Z);return Math.round(J*z)/z}function kW(Z){let J=l5.useRef(Z);return HB(()=>{J.current=Z}),J}function _A(Z){if(Z===void 0)Z={};let{placement:J="bottom",strategy:z="absolute",middleware:G=[],platform:v,elements:{reference:Q,floating:b}={},transform:g=!0,whileElementsMounted:K,open:F}=Z,[L,U]=l5.useState({x:0,y:0,strategy:z,placement:J,middlewareData:{},isPositioned:!1}),[k,N]=l5.useState(G);if(!QB(k,G))N(G);let[A,_]=l5.useState(null),[C,x]=l5.useState(null),S=l5.useCallback((o)=>{if(o!==p.current)p.current=o,_(o)},[]),d=l5.useCallback((o)=>{if(o!==j.current)j.current=o,x(o)},[]),i=Q||A,Z0=b||C,p=l5.useRef(null),j=l5.useRef(null),$0=l5.useRef(L),s=K!=null,E=kW(K),Q0=kW(v),G0=kW(F),q0=l5.useCallback(()=>{if(!p.current||!j.current)return;let o={placement:J,strategy:z,middleware:k};if(Q0.current)o.platform=Q0.current;FW(p.current,j.current,o).then((l)=>{let M={...l,isPositioned:G0.current!==!1};if(F0.current&&!QB($0.current,M))$0.current=M,TA.flushSync(()=>{U(M)})})},[k,J,z,Q0,G0]);HB(()=>{if(F===!1&&$0.current.isPositioned)$0.current.isPositioned=!1,U((o)=>({...o,isPositioned:!1}))},[F]);let F0=l5.useRef(!1);HB(()=>{return F0.current=!0,()=>{F0.current=!1}},[]),HB(()=>{if(i)p.current=i;if(Z0)j.current=Z0;if(i&&Z0){if(E.current)return E.current(i,Z0,q0);q0()}},[i,Z0,q0,E,s]);let e=l5.useMemo(()=>({reference:p,floating:j,setReference:S,setFloating:d}),[S,d]),B0=l5.useMemo(()=>({reference:i,floating:Z0}),[i,Z0]),u=l5.useMemo(()=>{let o={position:z,left:0,top:0};if(!B0.floating)return o;let l=kA(B0.floating,L.x),M=kA(B0.floating,L.y);if(g)return{...o,transform:"translate("+l+"px, "+M+"px)",...IA(B0.floating)>=1.5&&{willChange:"transform"}};return{position:z,left:l,top:M}},[z,g,B0.floating,L.x,L.y]);return l5.useMemo(()=>({...L,update:q0,refs:e,elements:B0,floatingStyles:u}),[L,q0,e,B0,u])}var Cd=(Z)=>{function J(z){return{}.hasOwnProperty.call(z,"current")}return{name:"arrow",options:Z,fn(z){let{element:G,padding:v}=typeof Z==="function"?Z(z):Z;if(G&&J(G)){if(G.current!=null)return LW({element:G.current,padding:v}).fn(z);return{}}if(G)return LW({element:G,padding:v}).fn(z);return{}}}},OA=(Z,J)=>{let z=WA(Z);return{name:z.name,fn:z.fn,options:[Z,J]}},AA=(Z,J)=>{let z=KA(Z);return{name:z.name,fn:z.fn,options:[Z,J]}},CA=(Z,J)=>{return{fn:FA(Z).fn,options:[Z,J]}},MA=(Z,J)=>{let z=UA(Z);return{name:z.name,fn:z.fn,options:[Z,J]}},xA=(Z,J)=>{let z=qA(Z);return{name:z.name,fn:z.fn,options:[Z,J]}};var mA=(Z,J)=>{let z=LA(Z);return{name:z.name,fn:z.fn,options:[Z,J]}};var PA=(Z,J)=>{let z=Cd(Z);return{name:z.name,fn:z.fn,options:[Z,J]}};var fA=P(K0(),1);var NW=P(z5(),1),Md="Arrow",VA=fA.forwardRef((Z,J)=>{let{children:z,width:G=10,height:v=5,...Q}=Z;return NW.jsx(H1.svg,{...Q,ref:J,width:G,height:v,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:Z.asChild?z:NW.jsx("polygon",{points:"0,0 30,0 15,10"})})});VA.displayName=Md;var hA=VA;var RA=P(K0(),1);function yA(Z){let[J,z]=RA.useState(void 0);return V2(()=>{if(Z){z({width:Z.offsetWidth,height:Z.offsetHeight});let G=new ResizeObserver((v)=>{if(!Array.isArray(v))return;if(!v.length)return;let Q=v[0],b,g;if("borderBoxSize"in Q){let K=Q.borderBoxSize,F=Array.isArray(K)?K[0]:K;b=F.inlineSize,g=F.blockSize}else b=Z.offsetWidth,g=Z.offsetHeight;z({width:b,height:g})});return G.observe(Z,{box:"border-box"}),()=>G.unobserve(Z)}else z(void 0)},[Z]),J}var O9=P(z5(),1);var TW="Popper",[SA,IW]=f2(TW),[md,DA]=SA(TW),dA=(Z)=>{let{__scopePopper:J,children:z}=Z,[G,v]=Kw.useState(null);return O9.jsx(md,{scope:J,anchor:G,onAnchorChange:v,children:z})};dA.displayName=TW;var jA="PopperAnchor",EA=Kw.forwardRef((Z,J)=>{let{__scopePopper:z,virtualRef:G,...v}=Z,Q=DA(jA,z),b=Kw.useRef(null),g=O1(J,b),K=Kw.useRef(null);return Kw.useEffect(()=>{let F=K.current;if(K.current=G?.current||b.current,F!==K.current)Q.onAnchorChange(K.current)}),G?null:O9.jsx(H1.div,{...v,ref:g})});EA.displayName=jA;var _W="PopperContent",[Pd,fd]=SA(_W),uA=Kw.forwardRef((Z,J)=>{let{__scopePopper:z,side:G="bottom",sideOffset:v=0,align:Q="center",alignOffset:b=0,arrowPadding:g=0,avoidCollisions:K=!0,collisionBoundary:F=[],collisionPadding:L=0,sticky:U="partial",hideWhenDetached:k=!1,updatePositionStrategy:N="optimized",onPlaced:A,..._}=Z,C=DA(_W,z),[x,S]=Kw.useState(null),d=O1(J,(w0)=>S(w0)),[i,Z0]=Kw.useState(null),p=yA(i),j=p?.width??0,$0=p?.height??0,s=G+(Q!=="center"?"-"+Q:""),E=typeof L==="number"?L:{top:0,right:0,bottom:0,left:0,...L},Q0=Array.isArray(F)?F:[F],G0=Q0.length>0,q0={padding:E,boundary:Q0.filter(hd),altBoundary:G0},{refs:F0,floatingStyles:e,placement:B0,isPositioned:u,middlewareData:o}=_A({strategy:"fixed",placement:s,whileElementsMounted:(...w0)=>{return qW(...w0,{animationFrame:N==="always"})},elements:{reference:C.anchor},middleware:[OA({mainAxis:v+$0,alignmentAxis:b}),K&&AA({mainAxis:!0,crossAxis:!1,limiter:U==="partial"?CA():void 0,...q0}),K&&MA({...q0}),xA({...q0,apply:({elements:w0,rects:b0,availableWidth:N0,availableHeight:p0})=>{let{width:g0,height:L5}=b0.reference,p1=w0.floating.style;p1.setProperty("--radix-popper-available-width",`${N0}px`),p1.setProperty("--radix-popper-available-height",`${p0}px`),p1.setProperty("--radix-popper-anchor-width",`${g0}px`),p1.setProperty("--radix-popper-anchor-height",`${L5}px`)}}),i&&PA({element:i,padding:g}),Rd({arrowWidth:j,arrowHeight:$0}),k&&mA({strategy:"referenceHidden",...q0})]}),[l,M]=aA(B0),z0=W5(A);V2(()=>{if(u)z0?.()},[u,z0]);let m=o.arrow?.x,r=o.arrow?.y,a=o.arrow?.centerOffset!==0,[X0,J0]=Kw.useState();return V2(()=>{if(x)J0(window.getComputedStyle(x).zIndex)},[x]),O9.jsx("div",{ref:F0.setFloating,"data-radix-popper-content-wrapper":"",style:{...e,transform:u?e.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X0,["--radix-popper-transform-origin"]:[o.transformOrigin?.x,o.transformOrigin?.y].join(" "),...o.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:Z.dir,children:O9.jsx(Pd,{scope:z,placedSide:l,onArrowChange:Z0,arrowX:m,arrowY:r,shouldHideArrow:a,children:O9.jsx(H1.div,{"data-side":l,"data-align":M,..._,ref:d,style:{..._.style,animation:!u?"none":void 0}})})})});uA.displayName=_W;var lA="PopperArrow",Vd={top:"bottom",right:"left",bottom:"top",left:"right"},cA=Kw.forwardRef(function(J,z){let{__scopePopper:G,...v}=J,Q=fd(lA,G),b=Vd[Q.placedSide];return O9.jsx("span",{ref:Q.onArrowChange,style:{position:"absolute",left:Q.arrowX,top:Q.arrowY,[b]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[Q.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[Q.placedSide],visibility:Q.shouldHideArrow?"hidden":void 0},children:O9.jsx(hA,{...v,ref:z,style:{...v.style,display:"block"}})})});cA.displayName=lA;function hd(Z){return Z!==null}var Rd=(Z)=>({name:"transformOrigin",options:Z,fn(J){let{placement:z,rects:G,middlewareData:v}=J,b=v.arrow?.centerOffset!==0,g=b?0:Z.arrowWidth,K=b?0:Z.arrowHeight,[F,L]=aA(z),U={start:"0%",center:"50%",end:"100%"}[L],k=(v.arrow?.x??0)+g/2,N=(v.arrow?.y??0)+K/2,A="",_="";if(F==="bottom")A=b?U:`${k}px`,_=`${-K}px`;else if(F==="top")A=b?U:`${k}px`,_=`${G.floating.height+K}px`;else if(F==="right")A=`${-K}px`,_=b?U:`${N}px`;else if(F==="left")A=`${G.floating.width+K}px`,_=b?U:`${N}px`;return{data:{x:A,y:_}}}});function aA(Z){let[J,z="center"]=Z.split("-");return[J,z]}var OW=dA,iA=EA,pA=uA,rA=cA;var K2=P(K0(),1);var A9=P(z5(),1),AW="rovingFocusGroup.onEntryFocus",Sd={bubbles:!1,cancelable:!0},TJ="RovingFocusGroup",[CW,nA,Dd]=tG(TJ),[dd,V$]=f2(TJ,[Dd]),[jd,Ed]=dd(TJ),oA=K2.forwardRef((Z,J)=>{return A9.jsx(CW.Provider,{scope:Z.__scopeRovingFocusGroup,children:A9.jsx(CW.Slot,{scope:Z.__scopeRovingFocusGroup,children:A9.jsx(ud,{...Z,ref:J})})})});oA.displayName=TJ;var ud=K2.forwardRef((Z,J)=>{let{__scopeRovingFocusGroup:z,orientation:G,loop:v=!1,dir:Q,currentTabStopId:b,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:K,onEntryFocus:F,preventScrollOnEntryFocus:L=!1,...U}=Z,k=K2.useRef(null),N=O1(J,k),A=_9(Q),[_,C]=Q9({prop:b,defaultProp:g??null,onChange:K,caller:TJ}),[x,S]=K2.useState(!1),d=W5(F),i=nA(z),Z0=K2.useRef(!1),[p,j]=K2.useState(0);return K2.useEffect(()=>{let $0=k.current;if($0)return $0.addEventListener(AW,d),()=>$0.removeEventListener(AW,d)},[d]),A9.jsx(jd,{scope:z,orientation:G,dir:A,loop:v,currentTabStopId:_,onItemFocus:K2.useCallback(($0)=>C($0),[C]),onItemShiftTab:K2.useCallback(()=>S(!0),[]),onFocusableItemAdd:K2.useCallback(()=>j(($0)=>$0+1),[]),onFocusableItemRemove:K2.useCallback(()=>j(($0)=>$0-1),[]),children:A9.jsx(H1.div,{tabIndex:x||p===0?-1:0,"data-orientation":G,...U,ref:N,style:{outline:"none",...Z.style},onMouseDown:D0(Z.onMouseDown,()=>{Z0.current=!0}),onFocus:D0(Z.onFocus,($0)=>{let s=!Z0.current;if($0.target===$0.currentTarget&&s&&!x){let E=new CustomEvent(AW,Sd);if($0.currentTarget.dispatchEvent(E),!E.defaultPrevented){let Q0=i().filter((B0)=>B0.focusable),G0=Q0.find((B0)=>B0.active),q0=Q0.find((B0)=>B0.id===_),e=[G0,q0,...Q0].filter(Boolean).map((B0)=>B0.ref.current);eA(e,L)}}Z0.current=!1}),onBlur:D0(Z.onBlur,()=>S(!1))})})}),sA="RovingFocusGroupItem",tA=K2.forwardRef((Z,J)=>{let{__scopeRovingFocusGroup:z,focusable:G=!0,active:v=!1,tabStopId:Q,children:b,...g}=Z,K=V5(),F=Q||K,L=Ed(sA,z),U=L.currentTabStopId===F,k=nA(z),{onFocusableItemAdd:N,onFocusableItemRemove:A,currentTabStopId:_}=L;return K2.useEffect(()=>{if(G)return N(),()=>A()},[G,N,A]),A9.jsx(CW.ItemSlot,{scope:z,id:F,focusable:G,active:v,children:A9.jsx(H1.span,{tabIndex:U?0:-1,"data-orientation":L.orientation,...g,ref:J,onMouseDown:D0(Z.onMouseDown,(C)=>{if(!G)C.preventDefault();else L.onItemFocus(F)}),onFocus:D0(Z.onFocus,()=>L.onItemFocus(F)),onKeyDown:D0(Z.onKeyDown,(C)=>{if(C.key==="Tab"&&C.shiftKey){L.onItemShiftTab();return}if(C.target!==C.currentTarget)return;let x=ad(C,L.orientation,L.dir);if(x!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let d=k().filter((i)=>i.focusable).map((i)=>i.ref.current);if(x==="last")d.reverse();else if(x==="prev"||x==="next"){if(x==="prev")d.reverse();let i=d.indexOf(C.currentTarget);d=L.loop?id(d,i+1):d.slice(i+1)}setTimeout(()=>eA(d))}}),children:typeof b==="function"?b({isCurrentTabStop:U,hasTabStop:_!=null}):b})})});tA.displayName=sA;var ld={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cd(Z,J){if(J!=="rtl")return Z;return Z==="ArrowLeft"?"ArrowRight":Z==="ArrowRight"?"ArrowLeft":Z}function ad(Z,J,z){let G=cd(Z.key,z);if(J==="vertical"&&["ArrowLeft","ArrowRight"].includes(G))return;if(J==="horizontal"&&["ArrowUp","ArrowDown"].includes(G))return;return ld[G]}function eA(Z,J=!1){let z=document.activeElement;for(let G of Z){if(G===z)return;if(G.focus({preventScroll:J}),document.activeElement!==z)return}}function id(Z,J){return Z.map((z,G)=>Z[(J+G)%Z.length])}var gB=oA,bB=tA;var e5=P(K0(),1);var WB=P(z5(),1);function $C(Z){let J=pd(Z),z=e5.forwardRef((G,v)=>{let{children:Q,...b}=G,g=e5.Children.toArray(Q),K=g.find(nd);if(K){let F=K.props.children,L=g.map((U)=>{if(U===K){if(e5.Children.count(F)>1)return e5.Children.only(null);return e5.isValidElement(F)?F.props.children:null}else return U});return WB.jsx(J,{...b,ref:v,children:e5.isValidElement(F)?e5.cloneElement(F,void 0,L):null})}return WB.jsx(J,{...b,ref:v,children:Q})});return z.displayName=`${Z}.Slot`,z}function pd(Z){let J=e5.forwardRef((z,G)=>{let{children:v,...Q}=z;if(e5.isValidElement(v)){let b=sd(v),g=od(Q,v.props);if(v.type!==e5.Fragment)g.ref=G?f5(G,b):b;return e5.cloneElement(v,g)}return e5.Children.count(v)>1?e5.Children.only(null):null});return J.displayName=`${Z}.SlotClone`,J}var rd=Symbol("radix.slottable");function nd(Z){return e5.isValidElement(Z)&&typeof Z.type==="function"&&"__radixId"in Z.type&&Z.type.__radixId===rd}function od(Z,J){let z={...J};for(let G in J){let v=Z[G],Q=J[G];if(/^on[A-Z]/.test(G)){if(v&&Q)z[G]=(...g)=>{let K=Q(...g);return v(...g),K};else if(v)z[G]=v}else if(G==="style")z[G]={...v,...Q};else if(G==="className")z[G]=[v,Q].filter(Boolean).join(" ")}return{...Z,...z}}function sd(Z){let J=Object.getOwnPropertyDescriptor(Z.props,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning;if(z)return Z.ref;if(J=Object.getOwnPropertyDescriptor(Z,"ref")?.get,z=J&&"isReactWarning"in J&&J.isReactWarning,z)return Z.props.ref;return Z.props.ref||Z.ref}var r0=P(z5(),1),MW=["Enter"," "],td=["ArrowDown","PageUp","Home"],XC=["ArrowUp","PageDown","End"],ed=[...td,...XC],wj={ltr:[...MW,"ArrowRight"],rtl:[...MW,"ArrowLeft"]},$j={ltr:["ArrowLeft"],rtl:["ArrowRight"]},AJ="Menu",[_J,Zj,Xj]=tG(AJ),[r7,xW]=f2(AJ,[Xj,IW,V$]),CJ=IW(),JC=V$(),[YC,C9]=r7(AJ),[Jj,MJ]=r7(AJ),zC=(Z)=>{let{__scopeMenu:J,open:z=!1,children:G,dir:v,onOpenChange:Q,modal:b=!0}=Z,g=CJ(J),[K,F]=R0.useState(null),L=R0.useRef(!1),U=W5(Q),k=_9(v);return R0.useEffect(()=>{let N=()=>{L.current=!0,document.addEventListener("pointerdown",A,{capture:!0,once:!0}),document.addEventListener("pointermove",A,{capture:!0,once:!0})},A=()=>L.current=!1;return document.addEventListener("keydown",N,{capture:!0}),()=>{document.removeEventListener("keydown",N,{capture:!0}),document.removeEventListener("pointerdown",A,{capture:!0}),document.removeEventListener("pointermove",A,{capture:!0})}},[]),r0.jsx(OW,{...g,children:r0.jsx(YC,{scope:J,open:z,onOpenChange:U,content:K,onContentChange:F,children:r0.jsx(Jj,{scope:J,onClose:R0.useCallback(()=>U(!1),[U]),isUsingKeyboardRef:L,dir:k,modal:b,children:G})})})};zC.displayName=AJ;var Yj="MenuAnchor",mW=R0.forwardRef((Z,J)=>{let{__scopeMenu:z,...G}=Z,v=CJ(z);return r0.jsx(iA,{...v,...G,ref:J})});mW.displayName=Yj;var PW="MenuPortal",[zj,GC]=r7(PW,{forceMount:void 0}),BC=(Z)=>{let{__scopeMenu:J,forceMount:z,children:G,container:v}=Z,Q=C9(PW,J);return r0.jsx(zj,{scope:J,forceMount:z,children:r0.jsx(I2,{present:z||Q.open,children:r0.jsx(hX,{asChild:!0,container:v,children:G})})})};BC.displayName=PW;var q4="MenuContent",[Gj,fW]=r7(q4),vC=R0.forwardRef((Z,J)=>{let z=GC(q4,Z.__scopeMenu),{forceMount:G=z.forceMount,...v}=Z,Q=C9(q4,Z.__scopeMenu),b=MJ(q4,Z.__scopeMenu);return r0.jsx(_J.Provider,{scope:Z.__scopeMenu,children:r0.jsx(I2,{present:G||Q.open,children:r0.jsx(_J.Slot,{scope:Z.__scopeMenu,children:b.modal?r0.jsx(Bj,{...v,ref:J}):r0.jsx(vj,{...v,ref:J})})})})}),Bj=R0.forwardRef((Z,J)=>{let z=C9(q4,Z.__scopeMenu),G=R0.useRef(null),v=O1(J,G);return R0.useEffect(()=>{let Q=G.current;if(Q)return VG(Q)},[]),r0.jsx(VW,{...Z,ref:v,trapFocus:z.open,disableOutsidePointerEvents:z.open,disableOutsideScroll:!0,onFocusOutside:D0(Z.onFocusOutside,(Q)=>Q.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>z.onOpenChange(!1)})}),vj=R0.forwardRef((Z,J)=>{let z=C9(q4,Z.__scopeMenu);return r0.jsx(VW,{...Z,ref:J,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>z.onOpenChange(!1)})}),Hj=$C("MenuContent.ScrollLock"),VW=R0.forwardRef((Z,J)=>{let{__scopeMenu:z,loop:G=!1,trapFocus:v,onOpenAutoFocus:Q,onCloseAutoFocus:b,disableOutsidePointerEvents:g,onEntryFocus:K,onEscapeKeyDown:F,onPointerDownOutside:L,onFocusOutside:U,onInteractOutside:k,onDismiss:N,disableOutsideScroll:A,..._}=Z,C=C9(q4,z),x=MJ(q4,z),S=CJ(z),d=JC(z),i=Zj(z),[Z0,p]=R0.useState(null),j=R0.useRef(null),$0=O1(J,j,C.onContentChange),s=R0.useRef(0),E=R0.useRef(""),Q0=R0.useRef(0),G0=R0.useRef(null),q0=R0.useRef("right"),F0=R0.useRef(0),e=A?SX:R0.Fragment,B0=A?{as:Hj,allowPinchZoom:!0}:void 0,u=(l)=>{let M=E.current+l,z0=i().filter((w0)=>!w0.disabled),m=document.activeElement,r=z0.find((w0)=>w0.ref.current===m)?.textValue,a=z0.map((w0)=>w0.textValue),X0=Ij(a,M,r),J0=z0.find((w0)=>w0.textValue===X0)?.ref.current;if(function w0(b0){if(E.current=b0,window.clearTimeout(s.current),b0!=="")s.current=window.setTimeout(()=>w0(""),1000)}(M),J0)setTimeout(()=>J0.focus())};R0.useEffect(()=>{return()=>window.clearTimeout(s.current)},[]),_G();let o=R0.useCallback((l)=>{return q0.current===G0.current?.side&&Oj(l,G0.current?.area)},[]);return r0.jsx(Gj,{scope:z,searchRef:E,onItemEnter:R0.useCallback((l)=>{if(o(l))l.preventDefault()},[o]),onItemLeave:R0.useCallback((l)=>{if(o(l))return;j.current?.focus(),p(null)},[o]),onTriggerLeave:R0.useCallback((l)=>{if(o(l))l.preventDefault()},[o]),pointerGraceTimerRef:Q0,onPointerGraceIntentChange:R0.useCallback((l)=>{G0.current=l},[]),children:r0.jsx(e,{...B0,children:r0.jsx(VX,{asChild:!0,trapped:v,onMountAutoFocus:D0(Q,(l)=>{l.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:b,children:r0.jsx(fX,{asChild:!0,disableOutsidePointerEvents:g,onEscapeKeyDown:F,onPointerDownOutside:L,onFocusOutside:U,onInteractOutside:k,onDismiss:N,children:r0.jsx(gB,{asChild:!0,...d,dir:x.dir,orientation:"vertical",loop:G,currentTabStopId:Z0,onCurrentTabStopIdChange:p,onEntryFocus:D0(K,(l)=>{if(!x.isUsingKeyboardRef.current)l.preventDefault()}),preventScrollOnEntryFocus:!0,children:r0.jsx(pA,{role:"menu","aria-orientation":"vertical","data-state":OC(C.open),"data-radix-menu-content":"",dir:x.dir,...S,..._,ref:$0,style:{outline:"none",..._.style},onKeyDown:D0(_.onKeyDown,(l)=>{let z0=l.target.closest("[data-radix-menu-content]")===l.currentTarget,m=l.ctrlKey||l.altKey||l.metaKey,r=l.key.length===1;if(z0){if(l.key==="Tab")l.preventDefault();if(!m&&r)u(l.key)}let a=j.current;if(l.target!==a)return;if(!ed.includes(l.key))return;l.preventDefault();let J0=i().filter((w0)=>!w0.disabled).map((w0)=>w0.ref.current);if(XC.includes(l.key))J0.reverse();Nj(J0)}),onBlur:D0(Z.onBlur,(l)=>{if(!l.currentTarget.contains(l.target))window.clearTimeout(s.current),E.current=""}),onPointerMove:D0(Z.onPointerMove,OJ((l)=>{let M=l.target,z0=F0.current!==l.clientX;if(l.currentTarget.contains(M)&&z0){let m=l.clientX>F0.current?"right":"left";q0.current=m,F0.current=l.clientX}}))})})})})})})});vC.displayName=q4;var Qj="MenuGroup",hW=R0.forwardRef((Z,J)=>{let{__scopeMenu:z,...G}=Z;return r0.jsx(H1.div,{role:"group",...G,ref:J})});hW.displayName=Qj;var gj="MenuLabel",HC=R0.forwardRef((Z,J)=>{let{__scopeMenu:z,...G}=Z;return r0.jsx(H1.div,{...G,ref:J})});HC.displayName=gj;var KB="MenuItem",ZC="menu.itemSelect",qB=R0.forwardRef((Z,J)=>{let{disabled:z=!1,onSelect:G,...v}=Z,Q=R0.useRef(null),b=MJ(KB,Z.__scopeMenu),g=fW(KB,Z.__scopeMenu),K=O1(J,Q),F=R0.useRef(!1),L=()=>{let U=Q.current;if(!z&&U){let k=new CustomEvent(ZC,{bubbles:!0,cancelable:!0});if(U.addEventListener(ZC,(N)=>G?.(N),{once:!0}),NG(U,k),k.defaultPrevented)F.current=!1;else b.onClose()}};return r0.jsx(QC,{...v,ref:K,disabled:z,onClick:D0(Z.onClick,L),onPointerDown:(U)=>{Z.onPointerDown?.(U),F.current=!0},onPointerUp:D0(Z.onPointerUp,(U)=>{if(!F.current)U.currentTarget?.click()}),onKeyDown:D0(Z.onKeyDown,(U)=>{let k=g.searchRef.current!=="";if(z||k&&U.key===" ")return;if(MW.includes(U.key))U.currentTarget.click(),U.preventDefault()})})});qB.displayName=KB;var QC=R0.forwardRef((Z,J)=>{let{__scopeMenu:z,disabled:G=!1,textValue:v,...Q}=Z,b=fW(KB,z),g=JC(z),K=R0.useRef(null),F=O1(J,K),[L,U]=R0.useState(!1),[k,N]=R0.useState("");return R0.useEffect(()=>{let A=K.current;if(A)N((A.textContent??"").trim())},[Q.children]),r0.jsx(_J.ItemSlot,{scope:z,disabled:G,textValue:v??k,children:r0.jsx(bB,{asChild:!0,...g,focusable:!G,children:r0.jsx(H1.div,{role:"menuitem","data-highlighted":L?"":void 0,"aria-disabled":G||void 0,"data-disabled":G?"":void 0,...Q,ref:F,onPointerMove:D0(Z.onPointerMove,OJ((A)=>{if(G)b.onItemLeave(A);else if(b.onItemEnter(A),!A.defaultPrevented)A.currentTarget.focus({preventScroll:!0})})),onPointerLeave:D0(Z.onPointerLeave,OJ((A)=>b.onItemLeave(A))),onFocus:D0(Z.onFocus,()=>U(!0)),onBlur:D0(Z.onBlur,()=>U(!1))})})})}),bj="MenuCheckboxItem",gC=R0.forwardRef((Z,J)=>{let{checked:z=!1,onCheckedChange:G,...v}=Z;return r0.jsx(qC,{scope:Z.__scopeMenu,checked:z,children:r0.jsx(qB,{role:"menuitemcheckbox","aria-checked":UB(z)?"mixed":z,...v,ref:J,"data-state":SW(z),onSelect:D0(v.onSelect,()=>G?.(UB(z)?!0:!z),{checkForDefaultPrevented:!1})})})});gC.displayName=bj;var bC="MenuRadioGroup",[Wj,Kj]=r7(bC,{value:void 0,onValueChange:()=>{}}),WC=R0.forwardRef((Z,J)=>{let{value:z,onValueChange:G,...v}=Z,Q=W5(G);return r0.jsx(Wj,{scope:Z.__scopeMenu,value:z,onValueChange:Q,children:r0.jsx(hW,{...v,ref:J})})});WC.displayName=bC;var KC="MenuRadioItem",UC=R0.forwardRef((Z,J)=>{let{value:z,...G}=Z,v=Kj(KC,Z.__scopeMenu),Q=z===v.value;return r0.jsx(qC,{scope:Z.__scopeMenu,checked:Q,children:r0.jsx(qB,{role:"menuitemradio","aria-checked":Q,...G,ref:J,"data-state":SW(Q),onSelect:D0(G.onSelect,()=>v.onValueChange?.(z),{checkForDefaultPrevented:!1})})})});UC.displayName=KC;var RW="MenuItemIndicator",[qC,Uj]=r7(RW,{checked:!1}),LC=R0.forwardRef((Z,J)=>{let{__scopeMenu:z,forceMount:G,...v}=Z,Q=Uj(RW,z);return r0.jsx(I2,{present:G||UB(Q.checked)||Q.checked===!0,children:r0.jsx(H1.span,{...v,ref:J,"data-state":SW(Q.checked)})})});LC.displayName=RW;var qj="MenuSeparator",FC=R0.forwardRef((Z,J)=>{let{__scopeMenu:z,...G}=Z;return r0.jsx(H1.div,{role:"separator","aria-orientation":"horizontal",...G,ref:J})});FC.displayName=qj;var Lj="MenuArrow",kC=R0.forwardRef((Z,J)=>{let{__scopeMenu:z,...G}=Z,v=CJ(z);return r0.jsx(rA,{...v,...G,ref:J})});kC.displayName=Lj;var yW="MenuSub",[Fj,NC]=r7(yW),kj=(Z)=>{let{__scopeMenu:J,children:z,open:G=!1,onOpenChange:v}=Z,Q=C9(yW,J),b=CJ(J),[g,K]=R0.useState(null),[F,L]=R0.useState(null),U=W5(v);return R0.useEffect(()=>{if(Q.open===!1)U(!1);return()=>U(!1)},[Q.open,U]),r0.jsx(OW,{...b,children:r0.jsx(YC,{scope:J,open:G,onOpenChange:U,content:F,onContentChange:L,children:r0.jsx(Fj,{scope:J,contentId:V5(),triggerId:V5(),trigger:g,onTriggerChange:K,children:z})})})};kj.displayName=yW;var IJ="MenuSubTrigger",TC=R0.forwardRef((Z,J)=>{let z=C9(IJ,Z.__scopeMenu),G=MJ(IJ,Z.__scopeMenu),v=NC(IJ,Z.__scopeMenu),Q=fW(IJ,Z.__scopeMenu),b=R0.useRef(null),{pointerGraceTimerRef:g,onPointerGraceIntentChange:K}=Q,F={__scopeMenu:Z.__scopeMenu},L=R0.useCallback(()=>{if(b.current)window.clearTimeout(b.current);b.current=null},[]);return R0.useEffect(()=>L,[L]),R0.useEffect(()=>{let U=g.current;return()=>{window.clearTimeout(U),K(null)}},[g,K]),r0.jsx(mW,{asChild:!0,...F,children:r0.jsx(QC,{id:v.triggerId,"aria-haspopup":"menu","aria-expanded":z.open,"aria-controls":v.contentId,"data-state":OC(z.open),...Z,ref:f5(J,v.onTriggerChange),onClick:(U)=>{if(Z.onClick?.(U),Z.disabled||U.defaultPrevented)return;if(U.currentTarget.focus(),!z.open)z.onOpenChange(!0)},onPointerMove:D0(Z.onPointerMove,OJ((U)=>{if(Q.onItemEnter(U),U.defaultPrevented)return;if(!Z.disabled&&!z.open&&!b.current)Q.onPointerGraceIntentChange(null),b.current=window.setTimeout(()=>{z.onOpenChange(!0),L()},100)})),onPointerLeave:D0(Z.onPointerLeave,OJ((U)=>{L();let k=z.content?.getBoundingClientRect();if(k){let N=z.content?.dataset.side,A=N==="right",_=A?-5:5,C=k[A?"left":"right"],x=k[A?"right":"left"];Q.onPointerGraceIntentChange({area:[{x:U.clientX+_,y:U.clientY},{x:C,y:k.top},{x,y:k.top},{x,y:k.bottom},{x:C,y:k.bottom}],side:N}),window.clearTimeout(g.current),g.current=window.setTimeout(()=>Q.onPointerGraceIntentChange(null),300)}else{if(Q.onTriggerLeave(U),U.defaultPrevented)return;Q.onPointerGraceIntentChange(null)}})),onKeyDown:D0(Z.onKeyDown,(U)=>{let k=Q.searchRef.current!=="";if(Z.disabled||k&&U.key===" ")return;if(wj[G.dir].includes(U.key))z.onOpenChange(!0),z.content?.focus(),U.preventDefault()})})})});TC.displayName=IJ;var IC="MenuSubContent",_C=R0.forwardRef((Z,J)=>{let z=GC(q4,Z.__scopeMenu),{forceMount:G=z.forceMount,...v}=Z,Q=C9(q4,Z.__scopeMenu),b=MJ(q4,Z.__scopeMenu),g=NC(IC,Z.__scopeMenu),K=R0.useRef(null),F=O1(J,K);return r0.jsx(_J.Provider,{scope:Z.__scopeMenu,children:r0.jsx(I2,{present:G||Q.open,children:r0.jsx(_J.Slot,{scope:Z.__scopeMenu,children:r0.jsx(VW,{id:g.contentId,"aria-labelledby":g.triggerId,...v,ref:F,align:"start",side:b.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:(L)=>{if(b.isUsingKeyboardRef.current)K.current?.focus();L.preventDefault()},onCloseAutoFocus:(L)=>L.preventDefault(),onFocusOutside:D0(Z.onFocusOutside,(L)=>{if(L.target!==g.trigger)Q.onOpenChange(!1)}),onEscapeKeyDown:D0(Z.onEscapeKeyDown,(L)=>{b.onClose(),L.preventDefault()}),onKeyDown:D0(Z.onKeyDown,(L)=>{let U=L.currentTarget.contains(L.target),k=$j[b.dir].includes(L.key);if(U&&k)Q.onOpenChange(!1),g.trigger?.focus(),L.preventDefault()})})})})})});_C.displayName=IC;function OC(Z){return Z?"open":"closed"}function UB(Z){return Z==="indeterminate"}function SW(Z){return UB(Z)?"indeterminate":Z?"checked":"unchecked"}function Nj(Z){let J=document.activeElement;for(let z of Z){if(z===J)return;if(z.focus(),document.activeElement!==J)return}}function Tj(Z,J){return Z.map((z,G)=>Z[(J+G)%Z.length])}function Ij(Z,J,z){let v=J.length>1&&Array.from(J).every((F)=>F===J[0])?J[0]:J,Q=z?Z.indexOf(z):-1,b=Tj(Z,Math.max(Q,0));if(v.length===1)b=b.filter((F)=>F!==z);let K=b.find((F)=>F.toLowerCase().startsWith(v.toLowerCase()));return K!==z?K:void 0}function _j(Z,J){let{x:z,y:G}=Z,v=!1;for(let Q=0,b=J.length-1;Q<J.length;b=Q++){let g=J[Q],K=J[b],F=g.x,L=g.y,U=K.x,k=K.y;if(L>G!==k>G&&z<(U-F)*(G-L)/(k-L)+F)v=!v}return v}function Oj(Z,J){if(!J)return!1;let z={x:Z.clientX,y:Z.clientY};return _j(z,J)}function OJ(Z){return(J)=>J.pointerType==="mouse"?Z(J):void 0}var AC=zC,CC=mW,MC=BC,xC=vC,mC=hW,PC=HC,fC=qB,VC=gC,hC=WC,RC=UC,yC=LC,SC=FC,DC=kC;var dC=TC,jC=_C;var U2=P(z5(),1),LB="DropdownMenu",[Cj,Zo1]=f2(LB,[xW]),t2=xW(),[Mj,EC]=Cj(LB),uC=(Z)=>{let{__scopeDropdownMenu:J,children:z,dir:G,open:v,defaultOpen:Q,onOpenChange:b,modal:g=!0}=Z,K=t2(J),F=w2.useRef(null),[L,U]=Q9({prop:v,defaultProp:Q??!1,onChange:b,caller:LB});return U2.jsx(Mj,{scope:J,triggerId:V5(),triggerRef:F,contentId:V5(),open:L,onOpenChange:U,onOpenToggle:w2.useCallback(()=>U((k)=>!k),[U]),modal:g,children:U2.jsx(AC,{...K,open:L,onOpenChange:U,dir:G,modal:g,children:z})})};uC.displayName=LB;var lC="DropdownMenuTrigger",cC=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,disabled:G=!1,...v}=Z,Q=EC(lC,z),b=t2(z);return U2.jsx(CC,{asChild:!0,...b,children:U2.jsx(H1.button,{type:"button",id:Q.triggerId,"aria-haspopup":"menu","aria-expanded":Q.open,"aria-controls":Q.open?Q.contentId:void 0,"data-state":Q.open?"open":"closed","data-disabled":G?"":void 0,disabled:G,...v,ref:f5(J,Q.triggerRef),onPointerDown:D0(Z.onPointerDown,(g)=>{if(!G&&g.button===0&&g.ctrlKey===!1){if(Q.onOpenToggle(),!Q.open)g.preventDefault()}}),onKeyDown:D0(Z.onKeyDown,(g)=>{if(G)return;if(["Enter"," "].includes(g.key))Q.onOpenToggle();if(g.key==="ArrowDown")Q.onOpenChange(!0);if(["Enter"," ","ArrowDown"].includes(g.key))g.preventDefault()})})})});cC.displayName=lC;var xj="DropdownMenuPortal",aC=(Z)=>{let{__scopeDropdownMenu:J,...z}=Z,G=t2(J);return U2.jsx(MC,{...G,...z})};aC.displayName=xj;var iC="DropdownMenuContent",pC=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=EC(iC,z),Q=t2(z),b=w2.useRef(!1);return U2.jsx(xC,{id:v.contentId,"aria-labelledby":v.triggerId,...Q,...G,ref:J,onCloseAutoFocus:D0(Z.onCloseAutoFocus,(g)=>{if(!b.current)v.triggerRef.current?.focus();b.current=!1,g.preventDefault()}),onInteractOutside:D0(Z.onInteractOutside,(g)=>{let K=g.detail.originalEvent,F=K.button===0&&K.ctrlKey===!0,L=K.button===2||F;if(!v.modal||L)b.current=!0}),style:{...Z.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});pC.displayName=iC;var mj="DropdownMenuGroup",Pj=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(mC,{...v,...G,ref:J})});Pj.displayName=mj;var fj="DropdownMenuLabel",Vj=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(PC,{...v,...G,ref:J})});Vj.displayName=fj;var hj="DropdownMenuItem",rC=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(fC,{...v,...G,ref:J})});rC.displayName=hj;var Rj="DropdownMenuCheckboxItem",yj=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(VC,{...v,...G,ref:J})});yj.displayName=Rj;var Sj="DropdownMenuRadioGroup",Dj=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(hC,{...v,...G,ref:J})});Dj.displayName=Sj;var dj="DropdownMenuRadioItem",jj=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(RC,{...v,...G,ref:J})});jj.displayName=dj;var Ej="DropdownMenuItemIndicator",uj=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(yC,{...v,...G,ref:J})});uj.displayName=Ej;var lj="DropdownMenuSeparator",cj=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(SC,{...v,...G,ref:J})});cj.displayName=lj;var aj="DropdownMenuArrow",ij=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(DC,{...v,...G,ref:J})});ij.displayName=aj;var pj="DropdownMenuSubTrigger",rj=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(dC,{...v,...G,ref:J})});rj.displayName=pj;var nj="DropdownMenuSubContent",oj=w2.forwardRef((Z,J)=>{let{__scopeDropdownMenu:z,...G}=Z,v=t2(z);return U2.jsx(jC,{...v,...G,ref:J,style:{...Z.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});oj.displayName=nj;var nC=uC,oC=cC,sC=aC,tC=pC;var eC=rC;var h$=P(H0(),1);function FB({...Z}){return h$.jsxDEV(nC,{"data-slot":"dropdown-menu",...Z},void 0,!1,void 0,this)}function kB({...Z}){return h$.jsxDEV(oC,{"data-slot":"dropdown-menu-trigger",...Z},void 0,!1,void 0,this)}function NB({className:Z,sideOffset:J=4,...z}){return h$.jsxDEV(sC,{children:h$.jsxDEV(tC,{"data-slot":"dropdown-menu-content",sideOffset:J,className:O0("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border ring-1 ring-foreground/10 p-1",Z),...z},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function R$({className:Z,inset:J,variant:z="default",...G}){return h$.jsxDEV(eC,{"data-slot":"dropdown-menu-item","data-inset":J,"data-variant":z,className:O0("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",Z),...G},void 0,!1,void 0,this)}var y2=P(H0(),1);function wM(){let{setTheme:Z,resolvedTheme:J}=m$();return y2.jsxDEV(FB,{children:[y2.jsxDEV(kB,{asChild:!0,children:y2.jsxDEV(y1,{variant:"ghost",size:"icon","aria-label":"Toggle theme",children:J==="dark"?y2.jsxDEV(I$,{className:"size-4"},void 0,!1,void 0,this):y2.jsxDEV(_$,{className:"size-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),y2.jsxDEV(NB,{align:"end",children:[y2.jsxDEV(R$,{onSelect:()=>Z("light"),children:[y2.jsxDEV(_$,{className:"size-4"},void 0,!1,void 0,this),y2.jsxDEV("span",{children:"Light"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y2.jsxDEV(R$,{onSelect:()=>Z("dark"),children:[y2.jsxDEV(I$,{className:"size-4"},void 0,!1,void 0,this),y2.jsxDEV("span",{children:"Dark"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y2.jsxDEV(R$,{onSelect:()=>Z("system"),children:[y2.jsxDEV(tX,{className:"size-4"},void 0,!1,void 0,this),y2.jsxDEV("span",{children:"System"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var O2=P(K0(),1),JM=P(H0(),1),DW=O2.createContext(null);function tj(Z){if(Z.size===0)return"idle";let J=!1,z=!1;for(let G of Z.values()){if(G==="open")return"open";if(G==="connecting")J=!0;else if(G==="closed")z=!0}if(J)return"connecting";if(z)return"closed";return"idle"}function $M({children:Z}){let J=O2.useRef(new Map),[z,G]=O2.useState("idle"),v=O2.useMemo(()=>{let b=()=>G(tj(J.current));return{register:(g,K)=>{if(K===null){if(J.current.delete(g))b();return}if(J.current.get(g)===K)return;J.current.set(g,K),b()},unregister:(g)=>{if(J.current.delete(g))b()}}},[]),Q=O2.useMemo(()=>({registry:v,aggregate:z}),[v,z]);return JM.jsxDEV(DW.Provider,{value:Q,children:Z},void 0,!1,void 0,this)}function ZM(){return O2.useContext(DW)?.aggregate??"idle"}function XM(Z){let J=O2.useContext(DW),z=O2.useId();O2.useEffect(()=>{if(!J)return;J.registry.register(z,Z)},[J,z,Z]),O2.useEffect(()=>{if(!J)return;return()=>J.registry.unregister(z)},[J,z])}var YM=P(H0(),1),ej=bw("rounded-md border border-border bg-background text-foreground text-sm px-3 py-2 hover:bg-accent/40 transition-colors outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50");function Uw({className:Z,...J}){return YM.jsxDEV("select",{"data-slot":"select",className:O0(ej(),Z),...J},void 0,!1,void 0,this)}function $2(Z){let J=Date.now()-new Date(Z).getTime(),z=Math.floor(J/1000);if(z<60)return`${z}s ago`;let G=Math.floor(z/60);if(G<60)return`${G}m ago`;let v=Math.floor(G/60);if(v<24)return`${v}h ago`;return`${Math.floor(v/24)}d ago`}function zM(Z){return new Date(Z).toLocaleString()}var xJ=P(H0(),1);function GM({runs:Z,selectedRunId:J,onSelect:z}){if(Z.length===0)return null;let G=J??Z[0]?.id??"";return xJ.jsxDEV("div",{className:"flex items-center gap-2",children:[xJ.jsxDEV("label",{htmlFor:"run-picker",className:"text-sm text-muted-foreground whitespace-nowrap",children:"Run:"},void 0,!1,void 0,this),xJ.jsxDEV(Uw,{id:"run-picker",className:"px-2.5 py-1.5",value:G,onChange:(v)=>z(v.target.value),children:Z.map((v)=>xJ.jsxDEV("option",{value:v.id,children:[v.id," — ",v.status," — ",zM(v.startedAt)]},v.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K5=P(H0(),1),wE=[{to:"/costs",label:"Costs"},{to:"/errors",label:"Errors"},{to:"/merge",label:"Merge queue"},{to:"/worktrees",label:"Worktrees"},{to:"/logs",label:"Logs"},{to:"/health",label:"Health"},{to:"/groups",label:"Groups"},{to:"/specs",label:"Specs"}];function vM(){return K5.jsxDEV("div",{className:"flex flex-col h-screen",children:[K5.jsxDEV($E,{},void 0,!1,void 0,this),K5.jsxDEV("main",{className:"flex-1 overflow-auto",children:K5.jsxDEV(Yb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $E(){let J=n0({queryKey:["runs"],queryFn:()=>W8(50),refetchInterval:5000}).data??[],[z,G]=x7(),v=z.get("run")??J[0]?.id??null,Q=BM.useCallback((g)=>{G((K)=>{let F=new URLSearchParams(K);return F.set("run",g),F},{replace:!0})},[G]),b=ZM();return K5.jsxDEV("header",{className:"border-b border-border shrink-0 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80",children:K5.jsxDEV("div",{className:"h-14 flex items-center gap-6 px-6",children:[K5.jsxDEV(MO,{size:"sm",tool:"agentplate",showWordmark:!0},void 0,!1,void 0,this),K5.jsxDEV("nav",{className:"flex items-center gap-1",children:[K5.jsxDEV(TB,{to:"/",label:"Overview",end:!0},void 0,!1,void 0,this),K5.jsxDEV(TB,{to:"/fleet",label:"Fleet"},void 0,!1,void 0,this),K5.jsxDEV(TB,{to:"/coordinator",label:"Coordinator"},void 0,!1,void 0,this),K5.jsxDEV(TB,{to:"/mail",label:"Mail"},void 0,!1,void 0,this),K5.jsxDEV(ZE,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K5.jsxDEV("div",{className:"flex-1"},void 0,!1,void 0,this),K5.jsxDEV(GM,{runs:J,selectedRunId:v,onSelect:Q},void 0,!1,void 0,this),K5.jsxDEV(IO,{status:b},void 0,!1,void 0,this),K5.jsxDEV(wM,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function ZE(){let Z=d4();return K5.jsxDEV(FB,{children:[K5.jsxDEV(kB,{className:"flex items-center gap-1 px-3 py-1.5 rounded-md text-sm transition-colors outline-none text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground focus-visible:ring-ring/50 focus-visible:ring-[3px]",children:["More",K5.jsxDEV(y7,{className:"size-3.5"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K5.jsxDEV(NB,{align:"start",children:wE.map((J)=>K5.jsxDEV(R$,{onSelect:()=>Z(J.to),children:J.label},J.to,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function TB({to:Z,label:J,end:z}){return K5.jsxDEV(LG,{to:Z,end:z,className:"px-3 py-1.5 rounded-md text-sm transition-colors outline-none text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground aria-[current=page]:bg-accent aria-[current=page]:text-accent-foreground aria-[current=page]:font-medium focus-visible:ring-ring/50 focus-visible:ring-[3px]",children:J},void 0,!1,void 0,this)}var M0=P(K0(),1),gM=P(v9(),1),e2=P(K0(),1),dW=P(K0(),1),bM=P(K0(),1),XE=(Z)=>{switch(Z){case"success":return zE;case"info":return BE;case"warning":return GE;case"error":return vE;default:return null}},JE=Array(12).fill(0),YE=({visible:Z,className:J})=>e2.default.createElement("div",{className:["sonner-loading-wrapper",J].filter(Boolean).join(" "),"data-visible":Z},e2.default.createElement("div",{className:"sonner-spinner"},JE.map((z,G)=>e2.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${G}`})))),zE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e2.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),GE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},e2.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),BE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e2.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),vE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e2.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),HE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},e2.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e2.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),QE=()=>{let[Z,J]=dW.default.useState(document.hidden);return dW.default.useEffect(()=>{let z=()=>{J(document.hidden)};return document.addEventListener("visibilitychange",z),()=>window.removeEventListener("visibilitychange",z)},[]),Z},jW=1,gE=class{constructor(){this.subscribe=(Z)=>(this.subscribers.push(Z),()=>{let J=this.subscribers.indexOf(Z);this.subscribers.splice(J,1)}),this.publish=(Z)=>{this.subscribers.forEach((J)=>J(Z))},this.addToast=(Z)=>{this.publish(Z),this.toasts=[...this.toasts,Z]},this.create=(Z)=>{var J;let{message:z,...G}=Z,v=typeof(Z==null?void 0:Z.id)=="number"||((J=Z.id)==null?void 0:J.length)>0?Z.id:jW++,Q=this.toasts.find((g)=>g.id===v),b=Z.dismissible===void 0?!0:Z.dismissible;return this.dismissedToasts.has(v)&&this.dismissedToasts.delete(v),Q?this.toasts=this.toasts.map((g)=>g.id===v?(this.publish({...g,...Z,id:v,title:z}),{...g,...Z,id:v,dismissible:b,title:z}):g):this.addToast({title:z,...G,dismissible:b,id:v}),v},this.dismiss=(Z)=>(this.dismissedToasts.add(Z),Z||this.toasts.forEach((J)=>{this.subscribers.forEach((z)=>z({id:J.id,dismiss:!0}))}),this.subscribers.forEach((J)=>J({id:Z,dismiss:!0})),Z),this.message=(Z,J)=>this.create({...J,message:Z}),this.error=(Z,J)=>this.create({...J,message:Z,type:"error"}),this.success=(Z,J)=>this.create({...J,type:"success",message:Z}),this.info=(Z,J)=>this.create({...J,type:"info",message:Z}),this.warning=(Z,J)=>this.create({...J,type:"warning",message:Z}),this.loading=(Z,J)=>this.create({...J,type:"loading",message:Z}),this.promise=(Z,J)=>{if(!J)return;let z;J.loading!==void 0&&(z=this.create({...J,promise:Z,type:"loading",message:J.loading,description:typeof J.description!="function"?J.description:void 0}));let G=Z instanceof Promise?Z:Z(),v=z!==void 0,Q,b=G.then(async(K)=>{if(Q=["resolve",K],bM.default.isValidElement(K))v=!1,this.create({id:z,type:"default",message:K});else if(WE(K)&&!K.ok){v=!1;let F=typeof J.error=="function"?await J.error(`HTTP error! status: ${K.status}`):J.error,L=typeof J.description=="function"?await J.description(`HTTP error! status: ${K.status}`):J.description;this.create({id:z,type:"error",message:F,description:L})}else if(J.success!==void 0){v=!1;let F=typeof J.success=="function"?await J.success(K):J.success,L=typeof J.description=="function"?await J.description(K):J.description;this.create({id:z,type:"success",message:F,description:L})}}).catch(async(K)=>{if(Q=["reject",K],J.error!==void 0){v=!1;let F=typeof J.error=="function"?await J.error(K):J.error,L=typeof J.description=="function"?await J.description(K):J.description;this.create({id:z,type:"error",message:F,description:L})}}).finally(()=>{var K;v&&(this.dismiss(z),z=void 0),(K=J.finally)==null||K.call(J)}),g=()=>new Promise((K,F)=>b.then(()=>Q[0]==="reject"?F(Q[1]):K(Q[1])).catch(F));return typeof z!="string"&&typeof z!="number"?{unwrap:g}:Object.assign(z,{unwrap:g})},this.custom=(Z,J)=>{let z=(J==null?void 0:J.id)||jW++;return this.create({jsx:Z(z),id:z,...J}),z},this.getActiveToasts=()=>this.toasts.filter((Z)=>!this.dismissedToasts.has(Z.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},qw=new gE,bE=(Z,J)=>{let z=(J==null?void 0:J.id)||jW++;return qw.addToast({title:Z,...J,id:z}),z},WE=(Z)=>Z&&typeof Z=="object"&&("ok"in Z)&&typeof Z.ok=="boolean"&&("status"in Z)&&typeof Z.status=="number",KE=bE,UE=()=>qw.toasts,qE=()=>qw.getActiveToasts(),_B=Object.assign(KE,{success:qw.success,info:qw.info,warning:qw.warning,error:qw.error,custom:qw.custom,message:qw.message,promise:qw.promise,dismiss:qw.dismiss,loading:qw.loading},{getHistory:UE,getToasts:qE});function LE(Z,{insertAt:J}={}){if(!Z||typeof document>"u")return;let z=document.head||document.getElementsByTagName("head")[0],G=document.createElement("style");G.type="text/css",J==="top"&&z.firstChild?z.insertBefore(G,z.firstChild):z.appendChild(G),G.styleSheet?G.styleSheet.cssText=Z:G.appendChild(document.createTextNode(Z))}LE(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');function IB(Z){return Z.label!==void 0}var FE=3,kE="32px",NE="16px",HM=4000,TE=356,IE=14,_E=20,OE=200;function a4(...Z){return Z.filter(Boolean).join(" ")}function AE(Z){let[J,z]=Z.split("-"),G=[];return J&&G.push(J),z&&G.push(z),G}var CE=(Z)=>{var J,z,G,v,Q,b,g,K,F,L,U;let{invert:k,toast:N,unstyled:A,interacting:_,setHeights:C,visibleToasts:x,heights:S,index:d,toasts:i,expanded:Z0,removeToast:p,defaultRichColors:j,closeButton:$0,style:s,cancelButtonStyle:E,actionButtonStyle:Q0,className:G0="",descriptionClassName:q0="",duration:F0,position:e,gap:B0,loadingIcon:u,expandByDefault:o,classNames:l,icons:M,closeButtonAriaLabel:z0="Close toast",pauseWhenPageIsHidden:m}=Z,[r,a]=M0.default.useState(null),[X0,J0]=M0.default.useState(null),[w0,b0]=M0.default.useState(!1),[N0,p0]=M0.default.useState(!1),[g0,L5]=M0.default.useState(!1),[p1,N1]=M0.default.useState(!1),[_1,W1]=M0.default.useState(!1),[iw,E0]=M0.default.useState(0),[F5,T1]=M0.default.useState(0),pw=M0.default.useRef(N.duration||F0||HM),a5=M0.default.useRef(null),G2=M0.default.useRef(null),I4=d===0,p$=d+1<=x,i5=N.type,Iw=N.dismissible!==!1,r4=N.className||"",J3=N.descriptionClassName||"",rw=M0.default.useMemo(()=>S.findIndex((V0)=>V0.toastId===N.id)||0,[S,N.id]),j6=M0.default.useMemo(()=>{var V0;return(V0=N.closeButton)!=null?V0:$0},[N.closeButton,$0]),n4=M0.default.useMemo(()=>N.duration||F0||HM,[N.duration,F0]),_4=M0.default.useRef(0),nw=M0.default.useRef(0),O4=M0.default.useRef(0),O=M0.default.useRef(null),[c,U0]=e.split("-"),k0=M0.default.useMemo(()=>S.reduce((V0,e0,I1)=>I1>=rw?V0:V0+e0.height,0),[S,rw]),C0=QE(),c0=N.invert||k,u0=i5==="loading";nw.current=M0.default.useMemo(()=>rw*B0+k0,[rw,k0]),M0.default.useEffect(()=>{pw.current=n4},[n4]),M0.default.useEffect(()=>{b0(!0)},[]),M0.default.useEffect(()=>{let V0=G2.current;if(V0){let e0=V0.getBoundingClientRect().height;return T1(e0),C((I1)=>[{toastId:N.id,height:e0,position:N.position},...I1]),()=>C((I1)=>I1.filter((q2)=>q2.toastId!==N.id))}},[C,N.id]),M0.default.useLayoutEffect(()=>{if(!w0)return;let V0=G2.current,e0=V0.style.height;V0.style.height="auto";let I1=V0.getBoundingClientRect().height;V0.style.height=e0,T1(I1),C((q2)=>q2.find(($w)=>$w.toastId===N.id)?q2.map(($w)=>$w.toastId===N.id?{...$w,height:I1}:$w):[{toastId:N.id,height:I1,position:N.position},...q2])},[w0,N.title,N.description,C,N.id]);let o0=M0.default.useCallback(()=>{p0(!0),E0(nw.current),C((V0)=>V0.filter((e0)=>e0.toastId!==N.id)),setTimeout(()=>{p(N)},OE)},[N,p,C,nw]);M0.default.useEffect(()=>{if(N.promise&&i5==="loading"||N.duration===1/0||N.type==="loading")return;let V0;return Z0||_||m&&C0?(()=>{if(O4.current<_4.current){let e0=new Date().getTime()-_4.current;pw.current=pw.current-e0}O4.current=new Date().getTime()})():(()=>{pw.current!==1/0&&(_4.current=new Date().getTime(),V0=setTimeout(()=>{var e0;(e0=N.onAutoClose)==null||e0.call(N,N),o0()},pw.current))})(),()=>clearTimeout(V0)},[Z0,_,N,i5,m,C0,o0]),M0.default.useEffect(()=>{N.delete&&o0()},[o0,N.delete]);function h0(){var V0,e0,I1;return M!=null&&M.loading?M0.default.createElement("div",{className:a4(l==null?void 0:l.loader,(V0=N==null?void 0:N.classNames)==null?void 0:V0.loader,"sonner-loader"),"data-visible":i5==="loading"},M.loading):u?M0.default.createElement("div",{className:a4(l==null?void 0:l.loader,(e0=N==null?void 0:N.classNames)==null?void 0:e0.loader,"sonner-loader"),"data-visible":i5==="loading"},u):M0.default.createElement(YE,{className:a4(l==null?void 0:l.loader,(I1=N==null?void 0:N.classNames)==null?void 0:I1.loader),visible:i5==="loading"})}return M0.default.createElement("li",{tabIndex:0,ref:G2,className:a4(G0,r4,l==null?void 0:l.toast,(J=N==null?void 0:N.classNames)==null?void 0:J.toast,l==null?void 0:l.default,l==null?void 0:l[i5],(z=N==null?void 0:N.classNames)==null?void 0:z[i5]),"data-sonner-toast":"","data-rich-colors":(G=N.richColors)!=null?G:j,"data-styled":!(N.jsx||N.unstyled||A),"data-mounted":w0,"data-promise":!!N.promise,"data-swiped":_1,"data-removed":N0,"data-visible":p$,"data-y-position":c,"data-x-position":U0,"data-index":d,"data-front":I4,"data-swiping":g0,"data-dismissible":Iw,"data-type":i5,"data-invert":c0,"data-swipe-out":p1,"data-swipe-direction":X0,"data-expanded":!!(Z0||o&&w0),style:{"--index":d,"--toasts-before":d,"--z-index":i.length-d,"--offset":`${N0?iw:nw.current}px`,"--initial-height":o?"auto":`${F5}px`,...s,...N.style},onDragEnd:()=>{L5(!1),a(null),O.current=null},onPointerDown:(V0)=>{u0||!Iw||(a5.current=new Date,E0(nw.current),V0.target.setPointerCapture(V0.pointerId),V0.target.tagName!=="BUTTON"&&(L5(!0),O.current={x:V0.clientX,y:V0.clientY}))},onPointerUp:()=>{var V0,e0,I1,q2;if(p1||!Iw)return;O.current=null;let $w=Number(((V0=G2.current)==null?void 0:V0.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_w=Number(((e0=G2.current)==null?void 0:e0.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ow=new Date().getTime()-((I1=a5.current)==null?void 0:I1.getTime()),M5=r==="x"?$w:_w,x5=Math.abs(M5)/ow;if(Math.abs(M5)>=_E||x5>0.11){E0(nw.current),(q2=N.onDismiss)==null||q2.call(N,N),J0(r==="x"?$w>0?"right":"left":_w>0?"down":"up"),o0(),N1(!0),W1(!1);return}L5(!1),a(null)},onPointerMove:(V0)=>{var e0,I1,q2,$w;if(!O.current||!Iw||((e0=window.getSelection())==null?void 0:e0.toString().length)>0)return;let _w=V0.clientY-O.current.y,ow=V0.clientX-O.current.x,M5=(I1=Z.swipeDirections)!=null?I1:AE(e);!r&&(Math.abs(ow)>1||Math.abs(_w)>1)&&a(Math.abs(ow)>Math.abs(_w)?"x":"y");let x5={x:0,y:0};r==="y"?(M5.includes("top")||M5.includes("bottom"))&&(M5.includes("top")&&_w<0||M5.includes("bottom")&&_w>0)&&(x5.y=_w):r==="x"&&(M5.includes("left")||M5.includes("right"))&&(M5.includes("left")&&ow<0||M5.includes("right")&&ow>0)&&(x5.x=ow),(Math.abs(x5.x)>0||Math.abs(x5.y)>0)&&W1(!0),(q2=G2.current)==null||q2.style.setProperty("--swipe-amount-x",`${x5.x}px`),($w=G2.current)==null||$w.style.setProperty("--swipe-amount-y",`${x5.y}px`)}},j6&&!N.jsx?M0.default.createElement("button",{"aria-label":z0,"data-disabled":u0,"data-close-button":!0,onClick:u0||!Iw?()=>{}:()=>{var V0;o0(),(V0=N.onDismiss)==null||V0.call(N,N)},className:a4(l==null?void 0:l.closeButton,(v=N==null?void 0:N.classNames)==null?void 0:v.closeButton)},(Q=M==null?void 0:M.close)!=null?Q:HE):null,N.jsx||M0.isValidElement(N.title)?N.jsx?N.jsx:typeof N.title=="function"?N.title():N.title:M0.default.createElement(M0.default.Fragment,null,i5||N.icon||N.promise?M0.default.createElement("div",{"data-icon":"",className:a4(l==null?void 0:l.icon,(b=N==null?void 0:N.classNames)==null?void 0:b.icon)},N.promise||N.type==="loading"&&!N.icon?N.icon||h0():null,N.type!=="loading"?N.icon||(M==null?void 0:M[i5])||XE(i5):null):null,M0.default.createElement("div",{"data-content":"",className:a4(l==null?void 0:l.content,(g=N==null?void 0:N.classNames)==null?void 0:g.content)},M0.default.createElement("div",{"data-title":"",className:a4(l==null?void 0:l.title,(K=N==null?void 0:N.classNames)==null?void 0:K.title)},typeof N.title=="function"?N.title():N.title),N.description?M0.default.createElement("div",{"data-description":"",className:a4(q0,J3,l==null?void 0:l.description,(F=N==null?void 0:N.classNames)==null?void 0:F.description)},typeof N.description=="function"?N.description():N.description):null),M0.isValidElement(N.cancel)?N.cancel:N.cancel&&IB(N.cancel)?M0.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:N.cancelButtonStyle||E,onClick:(V0)=>{var e0,I1;IB(N.cancel)&&Iw&&((I1=(e0=N.cancel).onClick)==null||I1.call(e0,V0),o0())},className:a4(l==null?void 0:l.cancelButton,(L=N==null?void 0:N.classNames)==null?void 0:L.cancelButton)},N.cancel.label):null,M0.isValidElement(N.action)?N.action:N.action&&IB(N.action)?M0.default.createElement("button",{"data-button":!0,"data-action":!0,style:N.actionButtonStyle||Q0,onClick:(V0)=>{var e0,I1;IB(N.action)&&((I1=(e0=N.action).onClick)==null||I1.call(e0,V0),!V0.defaultPrevented&&o0())},className:a4(l==null?void 0:l.actionButton,(U=N==null?void 0:N.classNames)==null?void 0:U.actionButton)},N.action.label):null))};function QM(){if(typeof window>"u"||typeof document>"u")return"ltr";let Z=document.documentElement.getAttribute("dir");return Z==="auto"||!Z?window.getComputedStyle(document.documentElement).direction:Z}function ME(Z,J){let z={};return[Z,J].forEach((G,v)=>{let Q=v===1,b=Q?"--mobile-offset":"--offset",g=Q?NE:kE;function K(F){["top","right","bottom","left"].forEach((L)=>{z[`${b}-${L}`]=typeof F=="number"?`${F}px`:F})}typeof G=="number"||typeof G=="string"?K(G):typeof G=="object"?["top","right","bottom","left"].forEach((F)=>{G[F]===void 0?z[`${b}-${F}`]=g:z[`${b}-${F}`]=typeof G[F]=="number"?`${G[F]}px`:G[F]}):K(g)}),z}var WM=M0.forwardRef(function(Z,J){let{invert:z,position:G="bottom-right",hotkey:v=["altKey","KeyT"],expand:Q,closeButton:b,className:g,offset:K,mobileOffset:F,theme:L="light",richColors:U,duration:k,style:N,visibleToasts:A=FE,toastOptions:_,dir:C=QM(),gap:x=IE,loadingIcon:S,icons:d,containerAriaLabel:i="Notifications",pauseWhenPageIsHidden:Z0}=Z,[p,j]=M0.default.useState([]),$0=M0.default.useMemo(()=>Array.from(new Set([G].concat(p.filter((m)=>m.position).map((m)=>m.position)))),[p,G]),[s,E]=M0.default.useState([]),[Q0,G0]=M0.default.useState(!1),[q0,F0]=M0.default.useState(!1),[e,B0]=M0.default.useState(L!=="system"?L:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),u=M0.default.useRef(null),o=v.join("+").replace(/Key/g,"").replace(/Digit/g,""),l=M0.default.useRef(null),M=M0.default.useRef(!1),z0=M0.default.useCallback((m)=>{j((r)=>{var a;return(a=r.find((X0)=>X0.id===m.id))!=null&&a.delete||qw.dismiss(m.id),r.filter(({id:X0})=>X0!==m.id)})},[]);return M0.default.useEffect(()=>qw.subscribe((m)=>{if(m.dismiss){j((r)=>r.map((a)=>a.id===m.id?{...a,delete:!0}:a));return}setTimeout(()=>{gM.default.flushSync(()=>{j((r)=>{let a=r.findIndex((X0)=>X0.id===m.id);return a!==-1?[...r.slice(0,a),{...r[a],...m},...r.slice(a+1)]:[m,...r]})})})}),[]),M0.default.useEffect(()=>{if(L!=="system"){B0(L);return}if(L==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B0("dark"):B0("light")),typeof window>"u")return;let m=window.matchMedia("(prefers-color-scheme: dark)");try{m.addEventListener("change",({matches:r})=>{B0(r?"dark":"light")})}catch(r){m.addListener(({matches:a})=>{try{B0(a?"dark":"light")}catch(X0){console.error(X0)}})}},[L]),M0.default.useEffect(()=>{p.length<=1&&G0(!1)},[p]),M0.default.useEffect(()=>{let m=(r)=>{var a,X0;v.every((J0)=>r[J0]||r.code===J0)&&(G0(!0),(a=u.current)==null||a.focus()),r.code==="Escape"&&(document.activeElement===u.current||(X0=u.current)!=null&&X0.contains(document.activeElement))&&G0(!1)};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[v]),M0.default.useEffect(()=>{if(u.current)return()=>{l.current&&(l.current.focus({preventScroll:!0}),l.current=null,M.current=!1)}},[u.current]),M0.default.createElement("section",{ref:J,"aria-label":`${i} ${o}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$0.map((m,r)=>{var a;let[X0,J0]=m.split("-");return p.length?M0.default.createElement("ol",{key:m,dir:C==="auto"?QM():C,tabIndex:-1,ref:u,className:g,"data-sonner-toaster":!0,"data-theme":e,"data-y-position":X0,"data-lifted":Q0&&p.length>1&&!Q,"data-x-position":J0,style:{"--front-toast-height":`${((a=s[0])==null?void 0:a.height)||0}px`,"--width":`${TE}px`,"--gap":`${x}px`,...N,...ME(K,F)},onBlur:(w0)=>{M.current&&!w0.currentTarget.contains(w0.relatedTarget)&&(M.current=!1,l.current&&(l.current.focus({preventScroll:!0}),l.current=null))},onFocus:(w0)=>{w0.target instanceof HTMLElement&&w0.target.dataset.dismissible==="false"||M.current||(M.current=!0,l.current=w0.relatedTarget)},onMouseEnter:()=>G0(!0),onMouseMove:()=>G0(!0),onMouseLeave:()=>{q0||G0(!1)},onDragEnd:()=>G0(!1),onPointerDown:(w0)=>{w0.target instanceof HTMLElement&&w0.target.dataset.dismissible==="false"||F0(!0)},onPointerUp:()=>F0(!1)},p.filter((w0)=>!w0.position&&r===0||w0.position===m).map((w0,b0)=>{var N0,p0;return M0.default.createElement(CE,{key:w0.id,icons:d,index:b0,toast:w0,defaultRichColors:U,duration:(N0=_==null?void 0:_.duration)!=null?N0:k,className:_==null?void 0:_.className,descriptionClassName:_==null?void 0:_.descriptionClassName,invert:z,visibleToasts:A,closeButton:(p0=_==null?void 0:_.closeButton)!=null?p0:b,interacting:q0,position:m,style:_==null?void 0:_.style,unstyled:_==null?void 0:_.unstyled,classNames:_==null?void 0:_.classNames,cancelButtonStyle:_==null?void 0:_.cancelButtonStyle,actionButtonStyle:_==null?void 0:_.actionButtonStyle,removeToast:z0,toasts:p.filter((g0)=>g0.position==w0.position),heights:s.filter((g0)=>g0.position==w0.position),setHeights:E,expandByDefault:Q,gap:x,loadingIcon:S,expanded:Q0,pauseWhenPageIsHidden:Z0,swipeDirections:Z.swipeDirections})})):null}))});var KM=P(H0(),1);function EW({...Z}){let{resolvedTheme:J}=m$();return KM.jsxDEV(WM,{theme:J,className:"toaster group",position:"bottom-right",richColors:!0,closeButton:!0,...Z},void 0,!1,void 0,this)}var R6={success:(Z,J)=>{_B.success(Z,J)},error:(Z,J)=>{_B.error(Z,J)},info:(Z,J)=>{_B.info(Z,J)}};var i4=P(K0(),1);var UM=P(H0(),1),xE=bw("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function x1({className:Z,variant:J,asChild:z=!1,...G}){return UM.jsxDEV(z?lG:"span",{"data-slot":"badge","data-variant":J??"default",className:O0(xE({variant:J}),Z),...G},void 0,!1,void 0,this)}var OB=P(K0(),1);var n7=P(H0(),1),qM=bw("font-mono",{variants:{variant:{inline:"inline rounded bg-muted px-1.5 py-0.5 text-xs leading-relaxed",block:"relative block rounded-md bg-muted p-3 text-[13px] leading-relaxed max-h-80 overflow-auto whitespace-pre-wrap break-all group"}},defaultVariants:{variant:"inline"}});function uW(Z){if(Z===null||Z===void 0||typeof Z==="boolean")return"";if(typeof Z==="string")return Z;if(typeof Z==="number")return String(Z);if(Array.isArray(Z))return Z.map(uW).join("");if(OB.isValidElement(Z)){let J=Z.props;return uW(J.children)}return""}function L4({className:Z,variant:J,children:z,...G}){if((J??"inline")==="inline")return n7.jsxDEV("code",{"data-slot":"code-block","data-variant":"inline",className:O0(qM({variant:"inline"}),Z),...G,children:z},void 0,!1,void 0,this);return n7.jsxDEV("pre",{"data-slot":"code-block","data-variant":"block",className:O0(qM({variant:"block"}),Z),...G,children:[z,n7.jsxDEV(mE,{getText:()=>uW(z)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function mE({getText:Z}){let[J,z]=OB.useState(!1);return n7.jsxDEV("button",{type:"button","aria-label":J?"Copied":"Copy to clipboard",onClick:()=>{let v=Z();navigator.clipboard.writeText(v).then(()=>{z(!0),setTimeout(()=>z(!1),1500)})},className:"absolute top-2 right-2 inline-flex items-center justify-center rounded-md p-1 text-muted-foreground opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:J?n7.jsxDEV(lX,{className:"size-3.5"},void 0,!1,void 0,this):n7.jsxDEV(iX,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var o7=P(H0(),1),PE=bw("flex flex-col items-center justify-center gap-4 p-8 text-center bg-card text-card-foreground rounded-xl border border-border ring-1 ring-foreground/10");function U5({icon:Z,title:J,description:z,action:G,className:v,...Q}){return o7.jsxDEV("div",{"data-slot":"empty-state",className:O0(PE(),v),...Q,children:[Z!==void 0&&o7.jsxDEV(Z,{className:"size-8 text-muted-foreground","aria-hidden":"true"},void 0,!1,void 0,this),o7.jsxDEV("div",{className:"flex flex-col gap-1.5 items-center",children:[o7.jsxDEV("h3",{className:"text-sm font-medium tracking-tight",children:J},void 0,!1,void 0,this),z!==void 0&&o7.jsxDEV("div",{className:"text-sm text-muted-foreground leading-relaxed max-w-md",children:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G!==void 0&&o7.jsxDEV("div",{className:"mt-1",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var s7=P(H0(),1),fE=bw("flex flex-col items-center justify-center gap-4 p-8 text-center bg-card text-card-foreground rounded-xl border border-border ring-1 ring-foreground/10");function H5({className:Z,label:J="Loading",...z}){return s7.jsxDEV("output",{"data-slot":"loading-card","aria-busy":"true","aria-live":"polite",className:O0(fE(),Z),...z,children:[s7.jsxDEV("div",{className:"size-8 rounded-md bg-muted/60 motion-safe:animate-pulse"},void 0,!1,void 0,this),s7.jsxDEV("div",{className:"flex flex-col items-center gap-2 w-full max-w-xs",children:[s7.jsxDEV("div",{className:"h-4 w-2/3 rounded bg-muted/60 motion-safe:animate-pulse"},void 0,!1,void 0,this),s7.jsxDEV("div",{className:"h-3 w-full rounded bg-muted/60 motion-safe:animate-pulse"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s7.jsxDEV("span",{className:"sr-only",children:[J,"…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var M9=P(K0(),1),VE=50;function hE(Z,J){return Z.scrollHeight-Z.scrollTop-Z.clientHeight<=J}function LM(Z,J){let z=J?.threshold??VE,G=J?.dependency,v=M9.useRef(!0),Q=M9.useCallback(()=>{let g=Z.current;if(!g)return;g.scrollTop=g.scrollHeight},[Z]),b=M9.useCallback(()=>{v.current=!0,Q()},[Q]);return M9.useEffect(()=>{let g=Z.current;if(!g)return;let K=()=>{v.current=hE(g,z)},F=()=>{if(v.current)g.scrollTop=g.scrollHeight};g.addEventListener("scroll",K,{passive:!0});let L=typeof ResizeObserver<"u"?ResizeObserver:null,U=typeof MutationObserver<"u"?MutationObserver:null,k=L?new L(F):null,N=U?new U(F):null,A=g.firstElementChild??g;return k?.observe(A),N?.observe(g,{subtree:!0,childList:!0,characterData:!0}),()=>{g.removeEventListener("scroll",K),k?.disconnect(),N?.disconnect()}},[Z,z]),M9.useEffect(()=>{let g=Z.current;if(!g)return;if(v.current)g.scrollTop=g.scrollHeight},[G,Z]),{pinToBottom:b,scrollToBottom:Q}}var kM=P(K0(),1),FM=24;function RE({scrollTop:Z,scrollHeight:J,clientHeight:z}){if(J-z<=0)return null;let v=Z>0,Q=Z+z<J;if(!v&&!Q)return null;let b=v?`${FM}px`:"0px",g=Q?`${FM}px`:"0px";return`linear-gradient(to bottom, transparent 0, black ${b}, black calc(100% - ${g}), transparent 100%)`}function AB(Z){kM.useEffect(()=>{let J=Z.current;if(!J)return;let z=()=>{let b=RE({scrollTop:J.scrollTop,scrollHeight:J.scrollHeight,clientHeight:J.clientHeight})??"";J.style.maskImage=b,J.style.setProperty("-webkit-mask-image",b)};z(),J.addEventListener("scroll",z,{passive:!0});let G=typeof ResizeObserver<"u"?ResizeObserver:null,v=G?new G(z):null;return v?.observe(J),()=>{J.removeEventListener("scroll",z),v?.disconnect()}},[Z])}var y6=P(K0(),1);var NM=500,yE=30000;function CB(Z,J){let[z,G]=y6.useState("closed"),v=y6.useRef(null),Q=y6.useRef(J?.onMessage);return y6.useEffect(()=>{Q.current=J?.onMessage}),y6.useEffect(()=>{if(!Z){v.current?.close(),v.current=null,G("closed");return}let b=!0,g=null,K=NM,F=()=>{if(!b)return;let U=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}${Z}`;G("connecting");let k=new WebSocket(U);v.current=k,k.onopen=()=>{if(!b){k.close();return}K=NM,G("open")},k.onmessage=(A)=>{try{let _=JSON.parse(A.data);Q.current?.(_)}catch{console.warn("[ws] malformed frame",A.data)}};let N=()=>{if(!b)return;G("closed");let A=K;K=Math.min(A*2,yE),g=setTimeout(F,A)};k.onclose=N,k.onerror=N};return F(),()=>{if(b=!1,g!==null)clearTimeout(g);v.current?.close(),v.current=null,G("closed")}},[Z]),XM(Z===null?null:z),{status:z,ws:v.current}}function TM(Z){let J=y6.useRef(Z);J.current=Z,y6.useEffect(()=>{let z=location.protocol==="https:"?"wss:":"ws:",G=new WebSocket(`${z}//${location.host}/ws?mail=true`);return G.onmessage=(v)=>{try{let Q=JSON.parse(typeof v.data==="string"?v.data:"");if(Q!==null&&typeof Q==="object"&&"type"in Q&&Q.type==="mail"&&"payload"in Q){let b=Q.payload;if(b!==null&&b!==void 0&&"message"in b)J.current(b.message)}}catch{}},()=>G.close()},[])}var mJ=P(H0(),1);function R1({className:Z,...J}){return mJ.jsxDEV("div",{"data-slot":"card",className:O0("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border border-border ring-1 ring-foreground/10 py-6",Z),...J},void 0,!1,void 0,this)}function t1({className:Z,...J}){return mJ.jsxDEV("div",{"data-slot":"card-header",className:O0("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",Z),...J},void 0,!1,void 0,this)}function c5({className:Z,...J}){return mJ.jsxDEV("div",{"data-slot":"card-title",className:O0("leading-none font-semibold",Z),...J},void 0,!1,void 0,this)}function S1({className:Z,...J}){return mJ.jsxDEV("div",{"data-slot":"card-content",className:O0("px-6",Z),...J},void 0,!1,void 0,this)}var F4=P(K0(),1);var y$=P(H0(),1),IM=F4.createContext(null);function _M(){let Z=F4.useContext(IM);if(Z===null)throw Error("Collapsible subcomponents must be used inside <Collapsible>");return Z}function x9({open:Z,defaultOpen:J=!1,onOpenChange:z,className:G,children:v}){let[Q,b]=F4.useState(J),g=Z!==void 0,K=g?Z:Q,F=F4.useId(),L=F4.useCallback((k)=>{if(!g)b(k);z?.(k)},[g,z]),U=F4.useMemo(()=>({open:K,setOpen:L,contentId:F}),[K,L,F]);return y$.jsxDEV(IM.Provider,{value:U,children:y$.jsxDEV("div",{"data-slot":"collapsible","data-state":K?"open":"closed",className:G,children:v},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function m9({className:Z,children:J,showChevron:z=!0,onClick:G,...v}){let{open:Q,setOpen:b,contentId:g}=_M(),K=Q?"open":"closed";return y$.jsxDEV("button",{type:"button","data-slot":"collapsible-trigger","data-state":K,"aria-expanded":Q,"aria-controls":g,onClick:(F)=>{if(G?.(F),!F.defaultPrevented)b(!Q)},className:O0("inline-flex items-center gap-1.5 rounded-md text-xs text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",Z),...v,children:[J,z&&y$.jsxDEV(y7,{"data-state":K,className:"size-3.5 transition-transform data-[state=open]:rotate-180"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function P9({className:Z,children:J,...z}){let{open:G,contentId:v}=_M();if(!G)return null;return y$.jsxDEV("div",{id:v,"data-slot":"collapsible-content","data-state":"open",className:Z,...z,children:J},void 0,!1,void 0,this)}var X1=P(H0(),1),SE=["turn_start","turn_end","progress","result"];function DE(Z){if(Z.level==="error"||Z.eventType==="error")return"error";if(Z.eventType==="tool_start")return"tool_use";if(Z.eventType==="tool_end")return"tool_result";if(SE.includes(Z.eventType))return"assistant_message";if(Z.data)try{let J=JSON.parse(Z.data);if(J&&typeof J==="object"&&"delta"in J)return"assistant_message"}catch{}return"generic"}function dE(Z){if(!Z.data)return"";try{let J=JSON.parse(Z.data);if(J&&typeof J==="object"&&"delta"in J&&typeof J.delta==="string")return J.delta}catch{}return Z.data}function jE(Z,J){if(Z)try{let z=JSON.parse(Z);if(z&&typeof z==="object"&&"summary"in z&&typeof z.summary==="string")return z.summary}catch{}return J??"tool"}function MB(Z){try{return new Date(Z).toLocaleTimeString()}catch{return Z}}function EE({event:Z}){let J=jE(Z.toolArgs,Z.toolName);return X1.jsxDEV(R1,{className:"py-3 gap-2",children:X1.jsxDEV(t1,{className:"px-4 pb-0 pt-0",children:X1.jsxDEV("div",{className:"flex items-start gap-2",children:[X1.jsxDEV(x1,{variant:"secondary",className:"self-start",children:"tool"},void 0,!1,void 0,this),X1.jsxDEV(c5,{className:"text-xs font-mono font-normal truncate",children:J},void 0,!1,void 0,this),X1.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 self-start",title:Z.createdAt,children:MB(Z.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function uE({event:Z}){let J=`${Z.toolName??"tool"} OK${Z.toolDurationMs!=null?` ${Z.toolDurationMs}ms`:""}`;return X1.jsxDEV(x9,{children:X1.jsxDEV(R1,{className:"py-3 gap-2",children:[X1.jsxDEV(t1,{className:"px-4 pb-0 pt-0",children:X1.jsxDEV("div",{className:"flex items-start gap-2",children:[X1.jsxDEV(x1,{variant:"outline",className:"self-start",children:"result"},void 0,!1,void 0,this),X1.jsxDEV("span",{className:"text-xs text-muted-foreground font-mono",title:Z.createdAt,children:J},void 0,!1,void 0,this),X1.jsxDEV(m9,{className:"ml-auto self-start","aria-label":"Toggle tool output"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Z.data&&X1.jsxDEV(P9,{children:X1.jsxDEV(S1,{className:"px-4 pt-0",children:X1.jsxDEV(L4,{variant:"block",children:Z.data},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function lE({event:Z}){let J=dE(Z);if(!J)return null;return X1.jsxDEV(R1,{className:"py-3 gap-2",children:[X1.jsxDEV(t1,{className:"px-4 pb-0 pt-0",children:X1.jsxDEV("div",{className:"flex items-start gap-2",children:[X1.jsxDEV(x1,{variant:"outline",className:"self-start",children:"msg"},void 0,!1,void 0,this),X1.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 self-start",title:Z.createdAt,children:MB(Z.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X1.jsxDEV(S1,{className:"px-4 pt-0",children:X1.jsxDEV("p",{className:"text-sm whitespace-pre-wrap border-l-2 border-border pl-3",children:J},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function cE({event:Z}){let J=Z.data??`${Z.level} / ${Z.eventType}`;return X1.jsxDEV(R1,{className:"py-3 gap-2 border-destructive/60",children:[X1.jsxDEV(t1,{className:"px-4 pb-0 pt-0",children:X1.jsxDEV("div",{className:"flex items-start gap-2",children:[X1.jsxDEV(x1,{variant:"destructive",className:"self-start",children:"error"},void 0,!1,void 0,this),X1.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 self-start",title:Z.createdAt,children:MB(Z.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X1.jsxDEV(S1,{className:"px-4 pt-0",children:X1.jsxDEV("p",{className:"text-sm text-destructive whitespace-pre-wrap border-l-2 border-destructive/60 pl-3",children:J},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aE({event:Z}){return X1.jsxDEV(R1,{className:"py-3 gap-2",children:X1.jsxDEV(t1,{className:"px-4 pb-0 pt-0",children:X1.jsxDEV("div",{className:"flex items-start gap-2",children:[X1.jsxDEV(x1,{variant:"outline",className:"self-start",children:Z.eventType},void 0,!1,void 0,this),X1.jsxDEV(x1,{variant:"secondary",className:"text-xs self-start",children:Z.level},void 0,!1,void 0,this),X1.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 self-start",title:Z.createdAt,children:MB(Z.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function xB({event:Z}){switch(DE(Z)){case"error":return X1.jsxDEV(cE,{event:Z},void 0,!1,void 0,this);case"tool_use":return X1.jsxDEV(EE,{event:Z},void 0,!1,void 0,this);case"tool_result":return X1.jsxDEV(uE,{event:Z},void 0,!1,void 0,this);case"assistant_message":return X1.jsxDEV(lE,{event:Z},void 0,!1,void 0,this);default:return X1.jsxDEV(aE,{event:Z},void 0,!1,void 0,this)}}var Lw=P(H0(),1);async function iE(Z){let J=await fetch(`/api/events?agent=${encodeURIComponent(Z)}&limit=100`);if(!J.ok)throw Error(`Failed to fetch events: ${J.status}`);let z=await J.json();if(z&&typeof z==="object"&&"success"in z&&z.success&&"data"in z)return z.data;return[]}function pE(Z){return"batched"in Z&&Z.batched===!0}function rE(Z){if(!Z.data)return"";try{let J=JSON.parse(Z.data);if(J&&typeof J==="object"&&"delta"in J&&typeof J.delta==="string")return J.delta}catch{}return Z.data}var nE={connecting:"connecting",open:"live",closed:"disconnected"},oE={connecting:"secondary",open:"default",closed:"destructive"};function OM(){let{name:Z}=wb(),J=n0({queryKey:["events",Z],queryFn:()=>Z?iE(Z):Promise.resolve([]),staleTime:Number.POSITIVE_INFINITY,refetchOnWindowFocus:!1,enabled:Boolean(Z)}),[z,G]=i4.useState([]),v=i4.useRef(-1),Q=Z?`/ws?agent=${encodeURIComponent(Z)}`:null,b=i4.useCallback((U)=>{if(U.type!=="event")return;let{payload:k}=U;if(pE(k)){let N=k.events.map(rE).join(""),A=k.events[0];if(!A)return;let _={...A,id:v.current--,data:JSON.stringify({delta:N})};G((C)=>[...C,_])}else{let N=k;G((A)=>{if(A.some((_)=>_.id===N.id))return A;return[...A,N]})}},[]),{status:g}=CB(Q,{onMessage:b});i4.useEffect(()=>{if(!Z)return;G([]),v.current=-1},[Z]);let K=i4.useMemo(()=>{let U=J.data??[],k=new Set;return[...U,...z].filter((N)=>{if(k.has(N.id))return!1;return k.add(N.id),!0}).sort((N,A)=>N.id-A.id)},[J.data,z]),F=i4.useRef(null);LM(F,{dependency:K.length}),AB(F);let L=Z??"unknown";return Lw.jsxDEV("div",{className:"flex flex-col h-full",children:[Lw.jsxDEV("div",{className:"flex items-center gap-3 px-6 py-4 border-b border-border shrink-0",children:[Lw.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight font-mono",children:L},void 0,!1,void 0,this),Lw.jsxDEV(x1,{variant:oE[g],children:nE[g]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Lw.jsxDEV("div",{ref:F,className:"flex-1 min-h-0 overflow-auto",children:Lw.jsxDEV("div",{className:"px-6 py-5 flex flex-col gap-2.5 max-w-5xl mx-auto",children:[J.isLoading&&Lw.jsxDEV(H5,{label:"Loading events"},void 0,!1,void 0,this),!J.isLoading&&K.length===0&&Lw.jsxDEV(U5,{icon:R7,title:`No events for ${L}`,description:Lw.jsxDEV(Lw.Fragment,{children:["Nudge the agent to wake it up:"," ",Lw.jsxDEV(L4,{children:`ap nudge ${L} "Status check"`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K.map((U)=>Lw.jsxDEV(xB,{event:U},U.id,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var f9=P(H0(),1);function S2({label:Z,value:J,icon:z,hint:G,tone:v="default"}){return f9.jsxDEV(R1,{className:"gap-3 py-5",children:[f9.jsxDEV(t1,{children:f9.jsxDEV(c5,{className:"flex items-center gap-2 text-xs font-medium text-muted-foreground uppercase tracking-wide",children:[z?f9.jsxDEV(z,{className:"size-3.5"},void 0,!1,void 0,this):null,Z]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f9.jsxDEV(S1,{children:[f9.jsxDEV("p",{className:O0("text-3xl font-semibold tabular-nums",v==="destructive"&&"text-destructive"),children:J},void 0,!1,void 0,this),G?f9.jsxDEV("p",{className:"mt-1 text-xs text-muted-foreground",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var V9=P(H0(),1);function h9({className:Z,...J}){return V9.jsxDEV("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:V9.jsxDEV("table",{"data-slot":"table",className:O0("w-full caption-bottom text-sm",Z),...J},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function R9({className:Z,...J}){return V9.jsxDEV("thead",{"data-slot":"table-header",className:O0("[&_tr]:border-b",Z),...J},void 0,!1,void 0,this)}function y9({className:Z,...J}){return V9.jsxDEV("tbody",{"data-slot":"table-body",className:O0("[&_tr:last-child]:border-0",Z),...J},void 0,!1,void 0,this)}function k4({className:Z,...J}){return V9.jsxDEV("tr",{"data-slot":"table-row",className:O0("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px]",Z),...J},void 0,!1,void 0,this)}function e1({className:Z,...J}){return V9.jsxDEV("th",{"data-slot":"table-head",className:O0("text-muted-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",Z),...J},void 0,!1,void 0,this)}function w5({className:Z,...J}){return V9.jsxDEV("td",{"data-slot":"table-cell",className:O0("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",Z),...J},void 0,!1,void 0,this)}var t0=P(H0(),1);function AM(){let Z=n0({queryKey:["metrics"],queryFn:()=>bJ(100),refetchInterval:1e4}),J=Z.data;if(Z.isLoading)return t0.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:t0.jsxDEV(H5,{label:"Loading metrics"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!J||J.totalSessions===0)return t0.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:t0.jsxDEV(U5,{icon:S7,title:"No cost data yet",description:"Token usage and cost are recorded as agent sessions complete."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let{tokenTotals:z,byCapability:G,recentSessions:v}=J,Q=z.inputTokens+z.outputTokens,b=Object.entries(G).sort((K,F)=>F[1].count-K[1].count),g=Math.max(1,...b.map(([,K])=>K.count));return t0.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[t0.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Costs & usage"},void 0,!1,void 0,this),t0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[t0.jsxDEV(S2,{label:"Est. cost",value:M$(z.estimatedCostUsd)},void 0,!1,void 0,this),t0.jsxDEV(S2,{label:"Total tokens",value:m6(Q)},void 0,!1,void 0,this),t0.jsxDEV(S2,{label:"Input / output",value:`${m6(z.inputTokens)} / ${m6(z.outputTokens)}`},void 0,!1,void 0,this),t0.jsxDEV(S2,{label:"Cache read",value:m6(z.cacheReadTokens),hint:`${m6(z.cacheCreationTokens)} created`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t0.jsxDEV(R1,{children:[t0.jsxDEV(t1,{children:t0.jsxDEV(c5,{className:"text-sm",children:"By capability"},void 0,!1,void 0,this)},void 0,!1,void 0,this),t0.jsxDEV(S1,{className:"flex flex-col gap-3",children:b.map(([K,F])=>t0.jsxDEV("div",{className:"flex items-center gap-3 text-sm",children:[t0.jsxDEV("span",{className:"w-24 shrink-0 font-mono text-xs",children:K},void 0,!1,void 0,this),t0.jsxDEV("div",{className:"flex-1 h-2 rounded-full bg-muted overflow-hidden",children:t0.jsxDEV("div",{className:"h-full bg-primary",style:{width:`${F.count/g*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),t0.jsxDEV("span",{className:"w-12 text-right tabular-nums text-xs",children:F.count},void 0,!1,void 0,this),t0.jsxDEV("span",{className:"w-20 text-right tabular-nums text-xs text-muted-foreground",children:x$(F.avgDurationMs)},void 0,!1,void 0,this)]},K,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t0.jsxDEV(R1,{children:[t0.jsxDEV(t1,{children:t0.jsxDEV(c5,{className:"text-sm",children:"Recent sessions"},void 0,!1,void 0,this)},void 0,!1,void 0,this),t0.jsxDEV(S1,{children:t0.jsxDEV(h9,{children:[t0.jsxDEV(R9,{children:t0.jsxDEV(k4,{children:[t0.jsxDEV(e1,{children:"Agent"},void 0,!1,void 0,this),t0.jsxDEV(e1,{children:"Capability"},void 0,!1,void 0,this),t0.jsxDEV(e1,{children:"Started"},void 0,!1,void 0,this),t0.jsxDEV(e1,{className:"text-right",children:"Duration"},void 0,!1,void 0,this),t0.jsxDEV(e1,{className:"text-right",children:"Tokens"},void 0,!1,void 0,this),t0.jsxDEV(e1,{className:"text-right",children:"Cost"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),t0.jsxDEV(y9,{children:v.map((K)=>t0.jsxDEV(k4,{children:[t0.jsxDEV(w5,{className:"font-mono text-xs",children:K.agentName},void 0,!1,void 0,this),t0.jsxDEV(w5,{className:"text-sm",children:K.capability},void 0,!1,void 0,this),t0.jsxDEV(w5,{className:"text-xs",children:$2(K.startedAt)},void 0,!1,void 0,this),t0.jsxDEV(w5,{className:"text-right text-xs tabular-nums",children:K.completedAt?x$(K.durationMs):"running"},void 0,!1,void 0,this),t0.jsxDEV(w5,{className:"text-right text-xs tabular-nums",children:m6((K.inputTokens??0)+(K.outputTokens??0))},void 0,!1,void 0,this),t0.jsxDEV(w5,{className:"text-right text-xs tabular-nums",children:M$(K.estimatedCostUsd??0)},void 0,!1,void 0,this)]},K.sessionId,!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)]},void 0,!0,void 0,this)}var D1=P(K0(),1);async function PJ(Z,J){let z={method:"POST"};if(J!==void 0)z.headers={"Content-Type":"application/json"},z.body=JSON.stringify(J);let G=await fetch(Z,z),v=await G.json();if(!G.ok||v.success!==!0||v.data===void 0)throw Error(v.error??`Request failed: ${G.status}`);return v.data}async function sE(Z){let J=await fetch(Z),z=await J.json();if(!J.ok||z.success!==!0||z.data===void 0)throw Error(z.error??`Request failed: ${J.status}`);return z.data}function S$(){return sE("/api/coordinator/state")}function mB(Z){return PJ("/api/coordinator/send",Z)}function CM(Z){return PJ("/api/coordinator/ask",Z)}function MM(){return PJ("/api/coordinator/check-complete")}function lW(){return PJ("/api/coordinator/start")}function xM(){return PJ("/api/coordinator/stop")}var Z2=P(K0(),1),PM=P(v9(),1);var cw=P(H0(),1),mM=[{cmd:"/check-complete",hint:"Evaluate exit triggers"},{cmd:"/status",hint:"Show coordinator state"},{cmd:"/stop",hint:"Stop the coordinator (confirm)"},{cmd:"/start",hint:"Start the coordinator"},{cmd:"/ask",hint:"/ask <subject> — switch to ask mode for next send"}];function tE(Z){let J=Z.trim();return J==="/"||/^\/[a-z-]*$/.test(J)}function eE(Z){let J=Z.trim();if(!J.startsWith("/"))return mM;return mM.filter((z)=>z.cmd.startsWith(J))}function fM({value:Z,onChange:J,onSend:z,onStop:G,onAsk:v,onSlashCommand:Q,isPending:b}){let g=Z2.useRef(null),K=Z2.useRef(null),F=Z2.useRef(null),L=Z2.useRef(null),[U,k]=Z2.useState(null),[N,A]=Z2.useState(!1),[_,C]=Z2.useState(null),x=Z2.useMemo(()=>tE(Z)&&!N,[Z,N]),S=Z2.useMemo(()=>eE(Z),[Z]),d=Z2.useCallback(()=>{let s=F.current;if(!s)return;let E=s.getBoundingClientRect(),Q0=24;C({left:E.left+Q0,bottom:window.innerHeight-E.top+8,width:Math.max(0,E.width-Q0*2)})},[]);Z2.useLayoutEffect(()=>{if(!x)return;d()},[x,d]),Z2.useEffect(()=>{if(!x)return;function s(){d()}return window.addEventListener("resize",s),window.addEventListener("scroll",s,!0),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0)}},[x,d]),Z2.useEffect(()=>{if(!x)return;function s(E){let Q0=E.target;if(K.current?.contains(Q0))return;if(L.current?.contains(Q0))return;A(!0)}return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[x]);function i(s){let E=Z.trim();if(E==="")return;if(A(!0),E==="/check-complete"||E==="/status"||E==="/stop"||E==="/start"){Q(E),J("");return}if(E.startsWith("/ask ")){let Q0=E.slice(5).trim();if(Q0!=="")k({subject:Q0}),J("");return}if(U!==null){v(U.subject,E),k(null),J("");return}if(s.askMode){v("question",E),J("");return}z(E),J("")}function Z0(s){if(s.key==="Escape"&&x){s.preventDefault(),A(!0);return}let E=s.metaKey||s.ctrlKey;if(s.key==="Enter"&&E)s.preventDefault(),i({askMode:s.shiftKey})}function p(s){if(s.cmd==="/ask"){J("/ask "),g.current?.focus(),A(!0);return}Q(s.cmd),J(""),A(!0)}function j(){if(b){G();return}i({askMode:!1})}let $0=U?`Ask body for "${U.subject}" (Cmd+Enter to send)…`:'Type a message. "/" for commands. Cmd+Enter to send.';return cw.jsxDEV("div",{ref:K,className:"border-t border-border bg-background shrink-0",children:[U!==null&&cw.jsxDEV("div",{className:"px-6 pt-3 text-xs text-muted-foreground flex items-center gap-2",children:[cw.jsxDEV("span",{children:"Ask mode armed:"},void 0,!1,void 0,this),cw.jsxDEV("span",{className:"font-medium text-foreground",children:U.subject},void 0,!1,void 0,this),cw.jsxDEV("button",{type:"button",className:"ml-auto hover:text-foreground transition-colors",onClick:()=>k(null),children:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),cw.jsxDEV("div",{ref:F,className:"relative px-6 py-4 flex items-end gap-3 max-w-4xl mx-auto w-full",children:[cw.jsxDEV("textarea",{ref:g,value:Z,onChange:(s)=>{J(s.target.value),A(!1)},onKeyDown:Z0,onBlur:()=>A(!0),placeholder:$0,rows:2,className:"flex-1 resize-none border border-border rounded-lg px-3 py-2.5 text-sm leading-relaxed bg-background placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-shadow"},void 0,!1,void 0,this),cw.jsxDEV(y1,{type:"button",onClick:j,variant:b?"secondary":"default",size:"default",children:b?"Stop":U!==null?"Ask":"Send"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x&&S.length>0&&_!==null&&PM.createPortal(cw.jsxDEV("div",{ref:L,role:"listbox","aria-label":"Slash commands",style:{position:"fixed",left:_.left,bottom:_.bottom,width:_.width},className:"z-50 border border-border rounded-lg bg-popover shadow-md text-sm overflow-hidden",children:S.map((s)=>cw.jsxDEV("button",{type:"button",role:"option","aria-selected":"false",className:"w-full text-left px-4 py-2.5 hover:bg-accent flex items-baseline gap-3 transition-colors",onMouseDown:(E)=>E.preventDefault(),onClick:()=>p(s),children:[cw.jsxDEV("span",{className:"font-mono text-xs",children:s.cmd},void 0,!1,void 0,this),cw.jsxDEV("span",{className:"text-xs text-muted-foreground",children:s.hint},void 0,!1,void 0,this)]},s.cmd,!0,void 0,this))},void 0,!1,void 0,this),document.body)]},void 0,!0,void 0,this)}var S6=P(H0(),1),wu=[{icon:cX,text:"What's currently in flight? Give me a one-screen summary."},{icon:XJ,text:"Are we ready to ship? Run /check-complete."},{icon:d7,text:"Spawn a lead for the next ready issue."}];function VM({onSelect:Z,onStartNewRun:J,isStopped:z}){return S6.jsxDEV("div",{className:"flex flex-col items-center justify-center h-full gap-8 p-8",children:[S6.jsxDEV(U5,{className:"max-w-md border-0 ring-0 bg-transparent",icon:$J,title:"Coordinator console",description:"Send a message to start. Replies arrive inline.",action:z===!0&&J!==void 0?S6.jsxDEV(y1,{type:"button",size:"lg",onClick:J,children:"Start new run"},void 0,!1,void 0,this):void 0},void 0,!1,void 0,this),S6.jsxDEV("div",{className:"grid gap-3 w-full max-w-3xl sm:grid-cols-3",children:wu.map((v)=>{let Q=v.icon;return S6.jsxDEV("button",{type:"button","aria-label":v.text,onClick:()=>Z(v.text),className:"text-left",children:S6.jsxDEV(R1,{className:"py-5 gap-3 h-full transition-colors hover:bg-accent hover:border-accent-foreground/20",children:S6.jsxDEV(S1,{className:"px-5 flex flex-col gap-3",children:[S6.jsxDEV(Q,{"aria-hidden":"true",className:"size-5 text-muted-foreground"},void 0,!1,void 0,this),S6.jsxDEV("span",{className:"text-sm leading-relaxed",children:v.text},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},v.text,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var fJ=P(K0(),1);var X2=P(H0(),1);function $u(Z,J){let z=Z.trim();if(z!=="")return z;let G=J.split(`
287
- `)[0]?.slice(0,80).trim()??"";if(G!=="")return G;return"new run"}function hM({open:Z,onOpenChange:J,onStart:z,isStarting:G,error:v}){let[Q,b]=fJ.useState(""),[g,K]=fJ.useState("");fJ.useEffect(()=>{if(!Z)b(""),K("")},[Z]);let F=g.trim(),L=F!==""&&!G;async function U(k){if(k.preventDefault(),!L)return;let N=$u(Q,g);await z(N,F)}return X2.jsxDEV(L9,{open:Z,onOpenChange:J,children:X2.jsxDEV(F9,{children:X2.jsxDEV("form",{onSubmit:U,className:"contents",children:[X2.jsxDEV(k9,{children:[X2.jsxDEV(N9,{children:"Start a new run"},void 0,!1,void 0,this),X2.jsxDEV(T9,{children:"Starts the coordinator and sends an initial prompt to seed the run."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X2.jsxDEV("div",{className:"flex flex-col gap-5",children:[X2.jsxDEV("div",{className:"flex flex-col gap-2",children:[X2.jsxDEV("label",{htmlFor:"new-run-subject",className:"text-sm font-medium",children:["Subject ",X2.jsxDEV("span",{className:"text-muted-foreground font-normal",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X2.jsxDEV("input",{id:"new-run-subject",type:"text",value:Q,onChange:(k)=>b(k.target.value),disabled:G,placeholder:"Derived from the first line if blank",className:"border border-border rounded-md px-3 py-2 text-sm bg-background placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent disabled:opacity-50 transition-shadow"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X2.jsxDEV("div",{className:"flex flex-col gap-2",children:[X2.jsxDEV("label",{htmlFor:"new-run-body",className:"text-sm font-medium",children:"Initial prompt"},void 0,!1,void 0,this),X2.jsxDEV("textarea",{id:"new-run-body",value:g,onChange:(k)=>K(k.target.value),disabled:G,rows:6,required:!0,placeholder:"What should the coordinator do?",className:"resize-y border border-border rounded-md px-3 py-2 text-sm leading-relaxed bg-background placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent disabled:opacity-50 transition-shadow"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v!==null&&X2.jsxDEV("div",{className:"rounded-md border border-destructive/50 bg-destructive/10 px-3 py-2.5 text-sm text-destructive",children:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X2.jsxDEV(C$,{children:[X2.jsxDEV(y1,{type:"button",variant:"ghost",onClick:()=>J(!1),disabled:G,children:"Cancel"},void 0,!1,void 0,this),X2.jsxDEV(y1,{type:"submit",disabled:!L,children:G?"Starting…":"Start run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var D$=P(H0(),1);function Zu(Z){if(!Z.running)return{label:"stopped",variant:"secondary"};if(Z.headless)return{label:"running (headless)",variant:"default"};return{label:"running (tmux)",variant:"outline"}}function Xu(Z){let J=[];if(Z.pid!==null)J.push(`pid: ${Z.pid}`);if(Z.runId!==null)J.push(`run: ${Z.runId}`);if(Z.startedAt!==null)J.push(`started: ${Z.startedAt}`);return J.join(`
288
- `)}function RM({lastCheck:Z}){let{data:J,isLoading:z,isError:G}=n0({queryKey:["coordinator-state"],queryFn:S$,refetchInterval:5000});if(z)return D$.jsxDEV(x1,{variant:"secondary",className:"font-normal",children:"…"},void 0,!1,void 0,this);if(G||J===void 0)return D$.jsxDEV(x1,{variant:"destructive",className:"font-normal",children:"state unavailable"},void 0,!1,void 0,this);let v=Zu(J),Q=Xu(J);return D$.jsxDEV("div",{className:"flex items-center gap-2",children:[D$.jsxDEV(x1,{variant:v.variant,className:"font-normal",title:Q||void 0,children:v.label},void 0,!1,void 0,this),Z!==null&&D$.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["Last check-complete: ",Z.result.complete?"YES":"NO"," ·"," ",new Date(Z.at).toLocaleTimeString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var kw=P(K0(),1);var d0=P(K0(),1);function yM(Z,[J,z]){return Math.min(z,Math.max(J,Z))}var DM=P(K0(),1),m1=P(z5(),1);function Ju(Z,J){return DM.useReducer((z,G)=>{return J[z][G]??z},Z)}var cW="ScrollArea",[dM,Qt1]=f2(cW),[Yu,N4]=dM(cW),jM=d0.forwardRef((Z,J)=>{let{__scopeScrollArea:z,type:G="hover",dir:v,scrollHideDelay:Q=600,...b}=Z,[g,K]=d0.useState(null),[F,L]=d0.useState(null),[U,k]=d0.useState(null),[N,A]=d0.useState(null),[_,C]=d0.useState(null),[x,S]=d0.useState(0),[d,i]=d0.useState(0),[Z0,p]=d0.useState(!1),[j,$0]=d0.useState(!1),s=O1(J,(Q0)=>K(Q0)),E=_9(v);return m1.jsx(Yu,{scope:z,type:G,dir:E,scrollHideDelay:Q,scrollArea:g,viewport:F,onViewportChange:L,content:U,onContentChange:k,scrollbarX:N,onScrollbarXChange:A,scrollbarXEnabled:Z0,onScrollbarXEnabledChange:p,scrollbarY:_,onScrollbarYChange:C,scrollbarYEnabled:j,onScrollbarYEnabledChange:$0,onCornerWidthChange:S,onCornerHeightChange:i,children:m1.jsx(H1.div,{dir:E,...b,ref:s,style:{position:"relative",["--radix-scroll-area-corner-width"]:x+"px",["--radix-scroll-area-corner-height"]:d+"px",...Z.style}})})});jM.displayName=cW;var EM="ScrollAreaViewport",uM=d0.forwardRef((Z,J)=>{let{__scopeScrollArea:z,children:G,nonce:v,...Q}=Z,b=N4(EM,z),g=d0.useRef(null),K=O1(J,g,b.onViewportChange);return m1.jsxs(m1.Fragment,{children:[m1.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:v}),m1.jsx(H1.div,{"data-radix-scroll-area-viewport":"",...Q,ref:K,style:{overflowX:b.scrollbarXEnabled?"scroll":"hidden",overflowY:b.scrollbarYEnabled?"scroll":"hidden",...Z.style},children:m1.jsx("div",{ref:b.onContentChange,style:{minWidth:"100%",display:"table"},children:G})})]})});uM.displayName=EM;var D6="ScrollAreaScrollbar",aW=d0.forwardRef((Z,J)=>{let{forceMount:z,...G}=Z,v=N4(D6,Z.__scopeScrollArea),{onScrollbarXEnabledChange:Q,onScrollbarYEnabledChange:b}=v,g=Z.orientation==="horizontal";return d0.useEffect(()=>{return g?Q(!0):b(!0),()=>{g?Q(!1):b(!1)}},[g,Q,b]),v.type==="hover"?m1.jsx(zu,{...G,ref:J,forceMount:z}):v.type==="scroll"?m1.jsx(Gu,{...G,ref:J,forceMount:z}):v.type==="auto"?m1.jsx(lM,{...G,ref:J,forceMount:z}):v.type==="always"?m1.jsx(iW,{...G,ref:J}):null});aW.displayName=D6;var zu=d0.forwardRef((Z,J)=>{let{forceMount:z,...G}=Z,v=N4(D6,Z.__scopeScrollArea),[Q,b]=d0.useState(!1);return d0.useEffect(()=>{let g=v.scrollArea,K=0;if(g){let F=()=>{window.clearTimeout(K),b(!0)},L=()=>{K=window.setTimeout(()=>b(!1),v.scrollHideDelay)};return g.addEventListener("pointerenter",F),g.addEventListener("pointerleave",L),()=>{window.clearTimeout(K),g.removeEventListener("pointerenter",F),g.removeEventListener("pointerleave",L)}}},[v.scrollArea,v.scrollHideDelay]),m1.jsx(I2,{present:z||Q,children:m1.jsx(lM,{"data-state":Q?"visible":"hidden",...G,ref:J})})}),Gu=d0.forwardRef((Z,J)=>{let{forceMount:z,...G}=Z,v=N4(D6,Z.__scopeScrollArea),Q=Z.orientation==="horizontal",b=hB(()=>K("SCROLL_END"),100),[g,K]=Ju("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d0.useEffect(()=>{if(g==="idle"){let F=window.setTimeout(()=>K("HIDE"),v.scrollHideDelay);return()=>window.clearTimeout(F)}},[g,v.scrollHideDelay,K]),d0.useEffect(()=>{let F=v.viewport,L=Q?"scrollLeft":"scrollTop";if(F){let U=F[L],k=()=>{let N=F[L];if(U!==N)K("SCROLL"),b();U=N};return F.addEventListener("scroll",k),()=>F.removeEventListener("scroll",k)}},[v.viewport,Q,K,b]),m1.jsx(I2,{present:z||g!=="hidden",children:m1.jsx(iW,{"data-state":g==="hidden"?"hidden":"visible",...G,ref:J,onPointerEnter:D0(Z.onPointerEnter,()=>K("POINTER_ENTER")),onPointerLeave:D0(Z.onPointerLeave,()=>K("POINTER_LEAVE"))})})}),lM=d0.forwardRef((Z,J)=>{let z=N4(D6,Z.__scopeScrollArea),{forceMount:G,...v}=Z,[Q,b]=d0.useState(!1),g=Z.orientation==="horizontal",K=hB(()=>{if(z.viewport){let F=z.viewport.offsetWidth<z.viewport.scrollWidth,L=z.viewport.offsetHeight<z.viewport.scrollHeight;b(g?F:L)}},10);return d$(z.viewport,K),d$(z.content,K),m1.jsx(I2,{present:G||Q,children:m1.jsx(iW,{"data-state":Q?"visible":"hidden",...v,ref:J})})}),iW=d0.forwardRef((Z,J)=>{let{orientation:z="vertical",...G}=Z,v=N4(D6,Z.__scopeScrollArea),Q=d0.useRef(null),b=d0.useRef(0),[g,K]=d0.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),F=pM(g.viewport,g.content),L={...G,sizes:g,onSizesChange:K,hasThumb:Boolean(F>0&&F<1),onThumbChange:(k)=>Q.current=k,onThumbPointerUp:()=>b.current=0,onThumbPointerDown:(k)=>b.current=k};function U(k,N){return bu(k,b.current,g,N)}if(z==="horizontal")return m1.jsx(Bu,{...L,ref:J,onThumbPositionChange:()=>{if(v.viewport&&Q.current){let k=v.viewport.scrollLeft,N=SM(k,g,v.dir);Q.current.style.transform=`translate3d(${N}px, 0, 0)`}},onWheelScroll:(k)=>{if(v.viewport)v.viewport.scrollLeft=k},onDragScroll:(k)=>{if(v.viewport)v.viewport.scrollLeft=U(k,v.dir)}});if(z==="vertical")return m1.jsx(vu,{...L,ref:J,onThumbPositionChange:()=>{if(v.viewport&&Q.current){let k=v.viewport.scrollTop,N=SM(k,g);Q.current.style.transform=`translate3d(0, ${N}px, 0)`}},onWheelScroll:(k)=>{if(v.viewport)v.viewport.scrollTop=k},onDragScroll:(k)=>{if(v.viewport)v.viewport.scrollTop=U(k)}});return null}),Bu=d0.forwardRef((Z,J)=>{let{sizes:z,onSizesChange:G,...v}=Z,Q=N4(D6,Z.__scopeScrollArea),[b,g]=d0.useState(),K=d0.useRef(null),F=O1(J,K,Q.onScrollbarXChange);return d0.useEffect(()=>{if(K.current)g(getComputedStyle(K.current))},[K]),m1.jsx(aM,{"data-orientation":"horizontal",...v,ref:F,sizes:z,style:{bottom:0,left:Q.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:Q.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:VB(z)+"px",...Z.style},onThumbPointerDown:(L)=>Z.onThumbPointerDown(L.x),onDragScroll:(L)=>Z.onDragScroll(L.x),onWheelScroll:(L,U)=>{if(Q.viewport){let k=Q.viewport.scrollLeft+L.deltaX;if(Z.onWheelScroll(k),nM(k,U))L.preventDefault()}},onResize:()=>{if(K.current&&Q.viewport&&b)G({content:Q.viewport.scrollWidth,viewport:Q.viewport.offsetWidth,scrollbar:{size:K.current.clientWidth,paddingStart:fB(b.paddingLeft),paddingEnd:fB(b.paddingRight)}})}})}),vu=d0.forwardRef((Z,J)=>{let{sizes:z,onSizesChange:G,...v}=Z,Q=N4(D6,Z.__scopeScrollArea),[b,g]=d0.useState(),K=d0.useRef(null),F=O1(J,K,Q.onScrollbarYChange);return d0.useEffect(()=>{if(K.current)g(getComputedStyle(K.current))},[K]),m1.jsx(aM,{"data-orientation":"vertical",...v,ref:F,sizes:z,style:{top:0,right:Q.dir==="ltr"?0:void 0,left:Q.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:VB(z)+"px",...Z.style},onThumbPointerDown:(L)=>Z.onThumbPointerDown(L.y),onDragScroll:(L)=>Z.onDragScroll(L.y),onWheelScroll:(L,U)=>{if(Q.viewport){let k=Q.viewport.scrollTop+L.deltaY;if(Z.onWheelScroll(k),nM(k,U))L.preventDefault()}},onResize:()=>{if(K.current&&Q.viewport&&b)G({content:Q.viewport.scrollHeight,viewport:Q.viewport.offsetHeight,scrollbar:{size:K.current.clientHeight,paddingStart:fB(b.paddingTop),paddingEnd:fB(b.paddingBottom)}})}})}),[Hu,cM]=dM(D6),aM=d0.forwardRef((Z,J)=>{let{__scopeScrollArea:z,sizes:G,hasThumb:v,onThumbChange:Q,onThumbPointerUp:b,onThumbPointerDown:g,onThumbPositionChange:K,onDragScroll:F,onWheelScroll:L,onResize:U,...k}=Z,N=N4(D6,z),[A,_]=d0.useState(null),C=O1(J,(s)=>_(s)),x=d0.useRef(null),S=d0.useRef(""),d=N.viewport,i=G.content-G.viewport,Z0=W5(L),p=W5(K),j=hB(U,10);function $0(s){if(x.current){let E=s.clientX-x.current.left,Q0=s.clientY-x.current.top;F({x:E,y:Q0})}}return d0.useEffect(()=>{let s=(E)=>{let Q0=E.target;if(A?.contains(Q0))Z0(E,i)};return document.addEventListener("wheel",s,{passive:!1}),()=>document.removeEventListener("wheel",s,{passive:!1})},[d,A,i,Z0]),d0.useEffect(p,[G,p]),d$(A,j),d$(N.content,j),m1.jsx(Hu,{scope:z,scrollbar:A,hasThumb:v,onThumbChange:W5(Q),onThumbPointerUp:W5(b),onThumbPositionChange:p,onThumbPointerDown:W5(g),children:m1.jsx(H1.div,{...k,ref:C,style:{position:"absolute",...k.style},onPointerDown:D0(Z.onPointerDown,(s)=>{if(s.button===0){if(s.target.setPointerCapture(s.pointerId),x.current=A.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",N.viewport)N.viewport.style.scrollBehavior="auto";$0(s)}}),onPointerMove:D0(Z.onPointerMove,$0),onPointerUp:D0(Z.onPointerUp,(s)=>{let E=s.target;if(E.hasPointerCapture(s.pointerId))E.releasePointerCapture(s.pointerId);if(document.body.style.webkitUserSelect=S.current,N.viewport)N.viewport.style.scrollBehavior="";x.current=null})})})}),PB="ScrollAreaThumb",pW=d0.forwardRef((Z,J)=>{let{forceMount:z,...G}=Z,v=cM(PB,Z.__scopeScrollArea);return m1.jsx(I2,{present:z||v.hasThumb,children:m1.jsx(Qu,{ref:J,...G})})}),Qu=d0.forwardRef((Z,J)=>{let{__scopeScrollArea:z,style:G,...v}=Z,Q=N4(PB,z),b=cM(PB,z),{onThumbPositionChange:g}=b,K=O1(J,(U)=>b.onThumbChange(U)),F=d0.useRef(void 0),L=hB(()=>{if(F.current)F.current(),F.current=void 0},100);return d0.useEffect(()=>{let U=Q.viewport;if(U){let k=()=>{if(L(),!F.current){let N=Wu(U,g);F.current=N,g()}};return g(),U.addEventListener("scroll",k),()=>U.removeEventListener("scroll",k)}},[Q.viewport,L,g]),m1.jsx(H1.div,{"data-state":b.hasThumb?"visible":"hidden",...v,ref:K,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...G},onPointerDownCapture:D0(Z.onPointerDownCapture,(U)=>{let N=U.target.getBoundingClientRect(),A=U.clientX-N.left,_=U.clientY-N.top;b.onThumbPointerDown({x:A,y:_})}),onPointerUp:D0(Z.onPointerUp,b.onThumbPointerUp)})});pW.displayName=PB;var rW="ScrollAreaCorner",iM=d0.forwardRef((Z,J)=>{let z=N4(rW,Z.__scopeScrollArea),G=Boolean(z.scrollbarX&&z.scrollbarY);return z.type!=="scroll"&&G?m1.jsx(gu,{...Z,ref:J}):null});iM.displayName=rW;var gu=d0.forwardRef((Z,J)=>{let{__scopeScrollArea:z,...G}=Z,v=N4(rW,z),[Q,b]=d0.useState(0),[g,K]=d0.useState(0),F=Boolean(Q&&g);return d$(v.scrollbarX,()=>{let L=v.scrollbarX?.offsetHeight||0;v.onCornerHeightChange(L),K(L)}),d$(v.scrollbarY,()=>{let L=v.scrollbarY?.offsetWidth||0;v.onCornerWidthChange(L),b(L)}),F?m1.jsx(H1.div,{...G,ref:J,style:{width:Q,height:g,position:"absolute",right:v.dir==="ltr"?0:void 0,left:v.dir==="rtl"?0:void 0,bottom:0,...Z.style}}):null});function fB(Z){return Z?parseInt(Z,10):0}function pM(Z,J){let z=Z/J;return isNaN(z)?0:z}function VB(Z){let J=pM(Z.viewport,Z.content),z=Z.scrollbar.paddingStart+Z.scrollbar.paddingEnd,G=(Z.scrollbar.size-z)*J;return Math.max(G,18)}function bu(Z,J,z,G="ltr"){let v=VB(z),Q=v/2,b=J||Q,g=v-b,K=z.scrollbar.paddingStart+b,F=z.scrollbar.size-z.scrollbar.paddingEnd-g,L=z.content-z.viewport,U=G==="ltr"?[0,L]:[L*-1,0];return rM([K,F],U)(Z)}function SM(Z,J,z="ltr"){let G=VB(J),v=J.scrollbar.paddingStart+J.scrollbar.paddingEnd,Q=J.scrollbar.size-v,b=J.content-J.viewport,g=Q-G,K=z==="ltr"?[0,b]:[b*-1,0],F=yM(Z,K);return rM([0,b],[0,g])(F)}function rM(Z,J){return(z)=>{if(Z[0]===Z[1]||J[0]===J[1])return J[0];let G=(J[1]-J[0])/(Z[1]-Z[0]);return J[0]+G*(z-Z[0])}}function nM(Z,J){return Z>0&&Z<J}var Wu=(Z,J=()=>{})=>{let z={left:Z.scrollLeft,top:Z.scrollTop},G=0;return function v(){let Q={left:Z.scrollLeft,top:Z.scrollTop},b=z.left!==Q.left,g=z.top!==Q.top;if(b||g)J();z=Q,G=window.requestAnimationFrame(v)}(),()=>window.cancelAnimationFrame(G)};function hB(Z,J){let z=W5(Z),G=d0.useRef(0);return d0.useEffect(()=>()=>window.clearTimeout(G.current),[]),d0.useCallback(()=>{window.clearTimeout(G.current),G.current=window.setTimeout(z,J)},[z,J])}function d$(Z,J){let z=W5(J);V2(()=>{let G=0;if(Z){let v=new ResizeObserver(()=>{cancelAnimationFrame(G),G=window.requestAnimationFrame(z)});return v.observe(Z),()=>{window.cancelAnimationFrame(G),v.unobserve(Z)}}},[Z,z])}var oM=jM,sM=uM;var tM=iM;var t7=P(H0(),1);function RB({className:Z,children:J,...z}){return t7.jsxDEV(oM,{"data-slot":"scroll-area",className:O0("relative",Z),...z,children:[t7.jsxDEV(sM,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-none",children:J},void 0,!1,void 0,this),t7.jsxDEV(Uu,{},void 0,!1,void 0,this),t7.jsxDEV(tM,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Uu({className:Z,orientation:J="vertical",...z}){return t7.jsxDEV(aW,{"data-slot":"scroll-area-scrollbar",orientation:J,className:O0("flex touch-none p-px transition-colors select-none",J==="vertical"&&"h-full w-2.5 border-l border-l-transparent",J==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",Z),...z,children:t7.jsxDEV(pW,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var VJ=P(K0(),1);var ww=P(H0(),1),qu="Coordinator is working…",Lu="Stalled";function eM({workEvents:Z,status:J}){let z=Z.length>=5,[G,v]=VJ.useState(!z),Q=J==="stalled",b=ku(Q,1e4),g=Z[0]?.createdAt,K=Q&&g?Nu(b-Date.parse(g)):null,F=Tu(Z),L=Iu(Z),U=Z.length;return ww.jsxDEV(R1,{className:"py-3 gap-2 max-w-[85%] mr-auto border-dashed border-border",children:ww.jsxDEV(x9,{open:G,onOpenChange:v,children:[ww.jsxDEV(t1,{className:"px-4 pb-0 pt-0",children:ww.jsxDEV("div",{className:"flex items-center gap-2",children:[ww.jsxDEV(Fu,{stalled:Q},void 0,!1,void 0,this),ww.jsxDEV("span",{className:"text-xs text-muted-foreground font-medium",children:Q?Lu:qu},void 0,!1,void 0,this),Q&&(K||F)&&ww.jsxDEV("span",{className:"text-xs text-muted-foreground/80 font-mono truncate",children:[K,F?`last: ${F}`:null].filter(Boolean).join(" · ")},void 0,!1,void 0,this),U>0&&ww.jsxDEV(m9,{className:"ml-auto self-start",children:G?"Hide":`${U} ${U===1?"event":"events"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U>0&&!G&&L&&ww.jsxDEV(S1,{className:"px-4 pt-0",children:ww.jsxDEV("span",{className:"block text-xs text-muted-foreground/80 font-mono truncate",children:["↳ ",L]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U>0&&ww.jsxDEV(P9,{children:ww.jsxDEV(S1,{className:"px-4 pt-0 flex flex-col gap-2",children:Z.map((k)=>ww.jsxDEV(xB,{event:k},k.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Fu({stalled:Z}){return ww.jsxDEV("span",{"aria-hidden":"true",className:`inline-block align-middle size-3 rounded-full border-2 ${Z?"border-muted-foreground":"border-primary"} border-t-transparent animate-spin motion-reduce:animate-none`},void 0,!1,void 0,this)}function ku(Z,J){let[z,G]=VJ.useState(()=>Date.now());return VJ.useEffect(()=>{if(!Z)return;G(Date.now());let v=setInterval(()=>G(Date.now()),J);return()=>clearInterval(v)},[Z,J]),z}function Nu(Z){if(!Number.isFinite(Z)||Z<0)return null;let J=Math.floor(Z/1000);if(J<60)return`${J}s`;let z=Math.floor(J/60);if(z<60)return`${z}m`;let G=Math.floor(z/60),v=z%60;return v>0?`${G}h ${v}m`:`${G}h`}function Tu(Z){for(let J=Z.length-1;J>=0;J--){let z=Z[J];if(z?.eventType==="tool_start"&&z.toolName)return z.toolName}return null}function Iu(Z){for(let J=Z.length-1;J>=0;J--){let z=Z[J];if(!z)continue;if(z.eventType==="tool_start")return _u(z.toolArgs)??z.toolName??"tool";if(z.eventType==="tool_end"){let G=z.toolDurationMs!=null?` (${z.toolDurationMs}ms)`:"";return`${z.toolName??"tool"} done${G}`}}return null}function _u(Z){if(!Z)return null;try{let J=JSON.parse(Z);if(J&&typeof J==="object"&&"summary"in J&&typeof J.summary==="string")return J.summary}catch{}return null}var Fw=P(H0(),1),Ou=50;function wx({turns:Z}){let J=kw.useRef(null),z=kw.useRef(!0),G=kw.useRef(Z.length),[v,Q]=kw.useState(0),[b,g]=kw.useState(!0),K=kw.useCallback(()=>{return J.current?.querySelector('[data-slot="scroll-area-viewport"]')??null},[]),F=kw.useCallback(()=>{let L=K();if(!L)return;L.scrollTop=L.scrollHeight,z.current=!0,g(!0),Q(0)},[K]);return kw.useEffect(()=>{let L=K();if(!L)return;let U=()=>{let{scrollHeight:k,scrollTop:N,clientHeight:A}=L,_=k-N-A<Ou;if(z.current=_,g(_),_)Q(0)};return L.addEventListener("scroll",U,{passive:!0}),()=>L.removeEventListener("scroll",U)},[K]),kw.useEffect(()=>{let L=G.current;if(G.current=Z.length,Z.length===0)return;if(z.current){let k=K();if(k)k.scrollTop=k.scrollHeight;return}let U=Z.length-L;if(U>0)Q((k)=>k+U)},[Z,K]),kw.useEffect(()=>{function L(U){if(U.key!=="End")return;let k=U.target;if(k&&(k.tagName==="INPUT"||k.tagName==="TEXTAREA")){if(!(U.metaKey||U.ctrlKey))return}if(U.metaKey||U.ctrlKey||k?.tagName!=="INPUT")U.preventDefault(),F()}return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[F]),Fw.jsxDEV("div",{ref:J,className:"flex-1 min-h-0 relative",children:[Fw.jsxDEV(RB,{className:"h-full",children:Fw.jsxDEV("div",{className:"px-6 py-5 flex flex-col gap-4 max-w-4xl mx-auto",children:Z.map((L)=>Fw.jsxDEV(Au,{turn:L},L.pending?.clientToken??L.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),!b&&v>0&&Fw.jsxDEV("button",{type:"button",onClick:F,"aria-label":`Scroll to ${v} new ${v===1?"message":"messages"}`,className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-20 inline-flex items-center gap-1.5 rounded-full border border-border bg-popover text-popover-foreground px-3 py-1.5 text-xs font-medium shadow-md hover:bg-accent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[Fw.jsxDEV(EX,{"aria-hidden":"true",className:"size-3.5"},void 0,!1,void 0,this),Fw.jsxDEV("span",{children:[v," new ",v===1?"message":"messages"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Au({turn:Z}){if(Z.pending!==void 0&&Z.kind==="coordinator")return Fw.jsxDEV(eM,{clientToken:Z.pending.clientToken,workEvents:Z.pending.workEvents,status:Z.pending.status},void 0,!1,void 0,this);let J=Z.kind==="operator"?"ml-auto":Z.kind==="system"?"mx-auto":"mr-auto",z=Z.kind==="operator"?"bg-primary text-primary-foreground shadow-sm":Z.kind==="system"?"bg-muted/60 text-muted-foreground border border-dashed border-border":"bg-card border border-border shadow-sm",G=new Date(Z.createdAt),v=G.toLocaleString(),Q=G.toLocaleTimeString();return Fw.jsxDEV("div",{className:`max-w-[85%] ${J} flex flex-col gap-1`,children:[Z.subject!==""&&Z.kind!=="system"&&Fw.jsxDEV("span",{className:"text-xs text-muted-foreground px-1 font-medium",children:Z.subject},void 0,!1,void 0,this),Fw.jsxDEV("div",{className:`rounded-xl px-4 py-3 ${z}`,children:Fw.jsxDEV("pre",{className:"whitespace-pre-wrap font-sans text-sm leading-relaxed",children:Z.body},void 0,!1,void 0,this)},void 0,!1,void 0,this),Fw.jsxDEV("time",{dateTime:Z.createdAt,title:v,className:"text-xs text-muted-foreground px-1",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Nw=P(H0(),1),j$="coordinator",S9="operator",$x=60000,Cu=500,Mu=30000;async function Zx(Z){let J=new URLSearchParams({from:Z.from,to:Z.to,limit:"200"}),z=await fetch(`/api/mail?${J.toString()}`),G=await z.json();if(!z.ok||G.success!==!0||G.data===void 0)throw Error(G.error??`mail fetch failed: ${z.status}`);return G.data}async function xu(){let[Z,J]=await Promise.all([Zx({from:S9,to:j$}),Zx({from:j$,to:S9})]),z=[];for(let G of Z)z.push({kind:"operator",id:G.id,subject:G.subject,body:G.body,createdAt:G.createdAt,threadId:G.threadId});for(let G of J)z.push({kind:"coordinator",id:G.id,subject:G.subject,body:G.body,createdAt:G.createdAt,threadId:G.threadId});return z.sort((G,v)=>G.createdAt.localeCompare(v.createdAt)),z}function mu(Z){return Z!==null&&typeof Z==="object"&&"id"in Z&&"agentName"in Z&&"eventType"in Z}function Pu(Z){return Z!==null&&typeof Z==="object"&&"batched"in Z&&Z.batched===!0}function fu(Z){return Z!==null&&typeof Z==="object"&&"id"in Z&&"from"in Z&&"to"in Z&&"body"in Z&&"createdAt"in Z}function Vu(Z){let J=Z.triggers,z=(G,v)=>`${v.met?"✓":v.enabled?"·":"○"} ${G}: ${v.detail}`;return[z("allAgentsDone",J.allAgentsDone),z("taskTrackerEmpty",J.taskTrackerEmpty),z("onShutdownSignal",J.onShutdownSignal),`Complete: ${Z.complete?"YES":"NO"}`].join(`
289
- `)}function Xx(){let[Z,J]=D1.useState([]),[z,G]=D1.useState(null),[v,Q]=D1.useState(""),[b,g]=D1.useState(null),[K,F]=D1.useState(!1),[L,U]=D1.useState(!1),[k,N]=D1.useState(!1),[A,_]=D1.useState(null),C=D1.useCallback((u)=>{if(U(u),!u)_(null)},[]),x=D1.useRef(null);D1.useEffect(()=>{x.current=z},[z]);let S=n0({queryKey:["coordinator-thread"],queryFn:xu,refetchInterval:5000});D1.useEffect(()=>{if(S.data===void 0)return;J((u)=>{let o=new Set,l=[];for(let M of S.data)o.add(M.id),l.push(M);for(let M of u)if(!o.has(M.id))l.push(M);return l.sort((M,z0)=>M.createdAt.localeCompare(z0.createdAt)),l}),F(!0)},[S.data]);let d=n0({queryKey:["coordinator-state-page"],queryFn:S$,refetchInterval:5000}),[i,Z0]=D1.useState(()=>Date.now());D1.useEffect(()=>{if(z===null)return;let u=setInterval(()=>Z0(Date.now()),5000);return()=>clearInterval(u)},[z]);let p=z!==null&&i-z.sentAt>$x?"stalled":"pending";D1.useEffect(()=>{J((u)=>u.map((o)=>o.pending!==void 0&&o.pending.status!==p?{...o,pending:{...o.pending,status:p}}:o))},[p]);let j=D1.useCallback((u)=>{let o=u.from===j$&&u.to===S9,l=u.from===S9&&u.to===j$;if(!o&&!l)return;J((M)=>{if(M.some((m)=>m.id===u.id))return M;let z0=x.current;if(o&&z0!==null){let m=z0.messageId!==null&&u.threadId===z0.messageId,r=z0.messageId===null&&Date.now()-z0.sentAt<$x;if(m||r){let a=M.map((X0)=>X0.pending!==void 0&&X0.pending.clientToken===z0.clientToken?{kind:"coordinator",id:u.id,subject:u.subject,body:u.body,createdAt:u.createdAt,threadId:u.threadId}:X0);return x.current=null,G(null),a}}if(l){let m=M.findIndex((r)=>r.kind==="operator"&&r.id.startsWith("pending-op-")&&r.subject===u.subject&&r.body===u.body);if(m>=0){let r=[...M];return r[m]={kind:"operator",id:u.id,subject:u.subject,body:u.body,createdAt:u.createdAt,threadId:u.threadId},r}}return[...M,{kind:o?"coordinator":"operator",id:u.id,subject:u.subject,body:u.body,createdAt:u.createdAt,threadId:u.threadId}].sort((m,r)=>m.createdAt.localeCompare(r.createdAt))})},[]),$0=D1.useCallback((u)=>{if(u.type==="event"){let{payload:o}=u,l=Pu(o)?o.events:mu(o)?[o]:[];if(l.length===0)return;let M=x.current;if(M===null)return;let z0=l.filter((m)=>m.agentName===j$);if(z0.length===0)return;J((m)=>m.map((r)=>r.pending!==void 0&&r.pending.clientToken===M.clientToken?{...r,pending:{...r.pending,workEvents:[...r.pending.workEvents,...z0]}}:r));return}if(u.type==="mail"){let o=u.payload.message;if(!fu(o))return;j(o)}},[j]);CB(`/ws?agent=${j$}`,{onMessage:$0});let s=D1.useCallback((u,o)=>{J((l)=>[...l,{kind:"system",id:`sys-${crypto.randomUUID()}`,subject:u,body:o,createdAt:new Date().toISOString(),threadId:null}])},[]),E=D1.useCallback(async(u)=>{let o=crypto.randomUUID(),l=Date.now(),M=u.split(`
290
- `)[0]?.slice(0,80)||"message",z0=new Date(l).toISOString();J((m)=>[...m,{kind:"operator",id:`pending-op-${o}`,subject:M,body:u,createdAt:z0,threadId:null},{kind:"coordinator",id:`pending-coord-${o}`,subject:"",body:"",createdAt:z0,threadId:null,pending:{clientToken:o,workEvents:[],status:"pending"}}]),G({clientToken:o,subject:M,body:u,sentAt:l,messageId:null});try{let m=await mB({subject:M,body:u,from:S9});G((r)=>r!==null&&r.clientToken===o?{...r,messageId:m.messageId}:r)}catch(m){let r=m instanceof Error?m.message:String(m);J((a)=>a.filter((X0)=>X0.id!==`pending-op-${o}`&&X0.id!==`pending-coord-${o}`)),G(null),s("send failed",r)}},[s]),Q0=D1.useCallback(async()=>{if(x.current===null)return;try{await mB({subject:"STOP",body:"Operator requested stop.",from:S9}),s("STOP sent","Sent a STOP follow-up. The coordinator decides how to respond.")}catch(u){s("STOP failed",u instanceof Error?u.message:String(u))}},[s]),G0=D1.useCallback(async(u,o)=>{try{let l=await CM({subject:u,body:o,from:S9});if(l.timedOut){s(`/ask ${u}`,"Timed out waiting for reply.");return}if(l.reply!==null)s(`/ask ${u} → reply`,`${l.reply.subject}
291
-
292
- ${l.reply.body}`);else s(`/ask ${u}`,"No reply received.")}catch(l){s(`/ask ${u}`,l instanceof Error?l.message:String(l))}},[s]),q0=D1.useCallback(async(u)=>{try{if(u==="/check-complete"){let o=await MM();g({at:new Date().toISOString(),result:o}),s("/check-complete",Vu(o));return}if(u==="/status"){let o=await S$(),l=[`running: ${o.running}`,`agentName: ${o.agentName}`,`headless: ${o.headless}`,`pid: ${o.pid??"—"}`,`runId: ${o.runId??"—"}`,`startedAt: ${o.startedAt??"—"}`,`lastActivityAt: ${o.lastActivityAt??"—"}`];s("/status",l.join(`
293
- `));return}if(u==="/start"){let o=await lW(),l=[`started: ${o.started}`,`alreadyRunning: ${o.alreadyRunning}`,`pid: ${o.pid??"—"}`,`runId: ${o.runId??"—"}`];s("/start",l.join(`
294
- `));return}if(u==="/stop"){if(!window.confirm("Stop the coordinator?")){s("/stop","Cancelled.");return}let o=await xM();s("/stop",`stopped: ${o.stopped}`);return}}catch(o){s(u,o instanceof Error?o.message:String(o))}},[s]),F0=D1.useCallback(async(u,o)=>{N(!0),_(null);try{await lW();let l=Date.now()+Mu,M=!1;while(Date.now()<l){if((await S$()).running){M=!0;break}await new Promise((m)=>setTimeout(m,Cu))}if(!M)throw Error("Timed out waiting for the coordinator to start.");await mB({subject:u,body:o,from:S9}),C(!1),s("Run started",`Sent initial prompt: ${u}`)}catch(l){_(l instanceof Error?l.message:String(l))}finally{N(!1)}},[s,C]),e=K&&Z.length===0&&z===null,B0=D1.useMemo(()=>Z,[Z]);return Nw.jsxDEV("div",{className:"flex flex-col h-full",children:[Nw.jsxDEV("div",{className:"flex items-center gap-3 px-6 py-4 border-b border-border shrink-0",children:[Nw.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Coordinator"},void 0,!1,void 0,this),Nw.jsxDEV("div",{className:"ml-auto",children:Nw.jsxDEV(RM,{lastCheck:b},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e?Nw.jsxDEV("div",{className:"flex-1 min-h-0",children:Nw.jsxDEV(VM,{onSelect:(u)=>Q(u),onStartNewRun:()=>C(!0),isStopped:d.data?.running===!1},void 0,!1,void 0,this)},void 0,!1,void 0,this):Nw.jsxDEV(wx,{turns:B0},void 0,!1,void 0,this),!e&&d.data?.running===!1&&Nw.jsxDEV("div",{className:"px-6 py-3 border-t border-border flex items-center gap-3 shrink-0 bg-muted/40",children:[Nw.jsxDEV("span",{className:"text-sm text-muted-foreground",children:"Coordinator is stopped."},void 0,!1,void 0,this),Nw.jsxDEV(y1,{type:"button",size:"sm",className:"ml-auto",onClick:()=>C(!0),children:"Start new run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Nw.jsxDEV(fM,{value:v,onChange:Q,onSend:E,onStop:Q0,onAsk:G0,onSlashCommand:q0,isPending:z!==null},void 0,!1,void 0,this),Nw.jsxDEV(hM,{open:L,onOpenChange:C,onStart:F0,isStarting:k,error:A},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var yB=P(K0(),1);var A5=P(H0(),1);function hu(Z){let J=new Map;for(let z of Z){let G=J.get(z.agentName);if(G)G.push(z);else J.set(z.agentName,[z])}return[...J.entries()].map(([z,G])=>({agentName:z,events:G})).sort((z,G)=>G.events.length-z.events.length)}function Ru({group:Z}){let[J,z]=yB.useState(!0);return A5.jsxDEV(R1,{children:A5.jsxDEV(x9,{open:J,onOpenChange:z,children:[A5.jsxDEV(m9,{className:"w-full text-left",children:A5.jsxDEV(t1,{children:A5.jsxDEV(c5,{className:"flex items-center justify-between text-sm",children:[A5.jsxDEV(H9,{to:`/agents/${encodeURIComponent(Z.agentName)}`,className:"font-mono hover:underline",onClick:(G)=>G.stopPropagation(),children:Z.agentName},void 0,!1,void 0,this),A5.jsxDEV(x1,{variant:"destructive",children:Z.events.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),A5.jsxDEV(P9,{children:A5.jsxDEV(S1,{className:"flex flex-col gap-2",children:Z.events.map((G)=>A5.jsxDEV("div",{className:"text-xs border-b border-border/50 pb-2 last:border-0",children:[A5.jsxDEV("div",{className:"flex items-center justify-between gap-2",children:[A5.jsxDEV("span",{className:"font-medium",children:G.toolName??G.eventType},void 0,!1,void 0,this),A5.jsxDEV("span",{className:"text-muted-foreground",children:$2(G.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A5.jsxDEV("pre",{className:"mt-1 whitespace-pre-wrap break-words text-muted-foreground font-mono",children:G.data??"(no detail)"},void 0,!1,void 0,this)]},G.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Jx(){let Z=n0({queryKey:["errors","page"],queryFn:()=>WJ({limit:200}),refetchInterval:1e4}),J=yB.useMemo(()=>hu(Z.data??[]),[Z.data]);if(Z.isLoading)return A5.jsxDEV("div",{className:"p-6 max-w-5xl mx-auto",children:A5.jsxDEV(H5,{label:"Loading errors"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(J.length===0)return A5.jsxDEV("div",{className:"p-6 max-w-5xl mx-auto",children:A5.jsxDEV(U5,{icon:M6,title:"No errors",description:"No error events recorded."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return A5.jsxDEV("div",{className:"p-6 flex flex-col gap-4 max-w-5xl mx-auto",children:[A5.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Errors"},void 0,!1,void 0,this),J.map((z)=>A5.jsxDEV(Ru,{group:z},z.agentName,!1,void 0,this))]},void 0,!0,void 0,this)}var q8=P(K0(),1);var U8=P(z5(),1),SB="Tabs",[yu,st1]=f2(SB,[V$]),Yx=V$(),[Su,nW]=yu(SB),zx=q8.forwardRef((Z,J)=>{let{__scopeTabs:z,value:G,onValueChange:v,defaultValue:Q,orientation:b="horizontal",dir:g,activationMode:K="automatic",...F}=Z,L=_9(g),[U,k]=Q9({prop:G,onChange:v,defaultProp:Q??"",caller:SB});return U8.jsx(Su,{scope:z,baseId:V5(),value:U,onValueChange:k,orientation:b,dir:L,activationMode:K,children:U8.jsx(H1.div,{dir:L,"data-orientation":b,...F,ref:J})})});zx.displayName=SB;var Gx="TabsList",Bx=q8.forwardRef((Z,J)=>{let{__scopeTabs:z,loop:G=!0,...v}=Z,Q=nW(Gx,z),b=Yx(z);return U8.jsx(gB,{asChild:!0,...b,orientation:Q.orientation,dir:Q.dir,loop:G,children:U8.jsx(H1.div,{role:"tablist","aria-orientation":Q.orientation,...v,ref:J})})});Bx.displayName=Gx;var vx="TabsTrigger",Hx=q8.forwardRef((Z,J)=>{let{__scopeTabs:z,value:G,disabled:v=!1,...Q}=Z,b=nW(vx,z),g=Yx(z),K=bx(b.baseId,G),F=Wx(b.baseId,G),L=G===b.value;return U8.jsx(bB,{asChild:!0,...g,focusable:!v,active:L,children:U8.jsx(H1.button,{type:"button",role:"tab","aria-selected":L,"aria-controls":F,"data-state":L?"active":"inactive","data-disabled":v?"":void 0,disabled:v,id:K,...Q,ref:J,onMouseDown:D0(Z.onMouseDown,(U)=>{if(!v&&U.button===0&&U.ctrlKey===!1)b.onValueChange(G);else U.preventDefault()}),onKeyDown:D0(Z.onKeyDown,(U)=>{if([" ","Enter"].includes(U.key))b.onValueChange(G)}),onFocus:D0(Z.onFocus,()=>{let U=b.activationMode!=="manual";if(!L&&!v&&U)b.onValueChange(G)})})})});Hx.displayName=vx;var Qx="TabsContent",gx=q8.forwardRef((Z,J)=>{let{__scopeTabs:z,value:G,forceMount:v,children:Q,...b}=Z,g=nW(Qx,z),K=bx(g.baseId,G),F=Wx(g.baseId,G),L=G===g.value,U=q8.useRef(L);return q8.useEffect(()=>{let k=requestAnimationFrame(()=>U.current=!1);return()=>cancelAnimationFrame(k)},[]),U8.jsx(I2,{present:v||L,children:({present:k})=>U8.jsx(H1.div,{"data-state":L?"active":"inactive","data-orientation":g.orientation,role:"tabpanel","aria-labelledby":K,hidden:!k,id:F,tabIndex:0,...b,ref:J,style:{...Z.style,animationDuration:U.current?"0s":void 0},children:k&&Q})})});gx.displayName=Qx;function bx(Z,J){return`${Z}-trigger-${J}`}function Wx(Z,J){return`${Z}-content-${J}`}var Kx=zx,Ux=Bx,qx=Hx,Lx=gx;var hJ=P(H0(),1);function Fx({...Z}){return hJ.jsxDEV(Kx,{"data-slot":"tabs",...Z},void 0,!1,void 0,this)}function kx({className:Z,...J}){return hJ.jsxDEV(Ux,{"data-slot":"tabs-list",className:O0("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",Z),...J},void 0,!1,void 0,this)}function oW({className:Z,...J}){return hJ.jsxDEV(qx,{"data-slot":"tabs-trigger",className:O0("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",Z),...J},void 0,!1,void 0,this)}function sW({className:Z,...J}){return hJ.jsxDEV(Lx,{"data-slot":"tabs-content",className:O0("flex-1 outline-none",Z),...J},void 0,!1,void 0,this)}var Tx=P(K0(),1);var E$=P(K0(),1);var $5=P(H0(),1),du={"clean-merge":"default","merge-union":"secondary","ai-resolve":"secondary",reimagine:"destructive"};function Nx({branch:Z,label:J}){let z=Ew(),[G,v]=E$.useState(!1),[Q,b]=E$.useState(null),[g,K]=E$.useState(!1),[F,L]=E$.useState(!1),[U,k]=E$.useState(null);async function N(){K(!0),k(null);try{b(await ZW(Z))}catch(_){k(_ instanceof Error?_.message:String(_))}finally{K(!1)}}async function A(){L(!0);try{await XW({branch:Z}),R6.success("Merge triggered",{description:Z}),v(!1),await z.invalidateQueries({queryKey:["agents"]})}catch(_){R6.error("Merge failed",{description:_ instanceof Error?_.message:String(_)})}finally{L(!1)}}return $5.jsxDEV(L9,{open:G,onOpenChange:(_)=>{if(v(_),_)N()},children:[$5.jsxDEV(rG,{asChild:!0,children:$5.jsxDEV(y1,{size:"sm",variant:"outline",onClick:(_)=>_.stopPropagation(),title:`Merge ${Z}`,children:[$5.jsxDEV(D7,{className:"size-4"},void 0,!1,void 0,this),J??"Merge"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$5.jsxDEV(F9,{onClick:(_)=>_.stopPropagation(),children:[$5.jsxDEV(k9,{children:[$5.jsxDEV(N9,{children:"Merge branch"},void 0,!1,void 0,this),$5.jsxDEV(T9,{className:"font-mono text-xs break-all",children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$5.jsxDEV("div",{className:"min-h-20 text-sm",children:[g?$5.jsxDEV("p",{className:"text-muted-foreground",children:"Predicting conflicts…"},void 0,!1,void 0,this):null,U?$5.jsxDEV("p",{className:"text-destructive",children:U},void 0,!1,void 0,this):null,Q?$5.jsxDEV("div",{className:"flex flex-col gap-3",children:[$5.jsxDEV("div",{className:"flex items-center gap-2",children:[$5.jsxDEV("span",{className:"text-muted-foreground",children:"Predicted tier:"},void 0,!1,void 0,this),$5.jsxDEV(x1,{variant:du[Q.predictedTier]??"secondary",children:Q.predictedTier},void 0,!1,void 0,this),Q.wouldRequireAgent?$5.jsxDEV(x1,{variant:"destructive",children:"needs agent"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),$5.jsxDEV("p",{className:"text-muted-foreground text-xs",children:Q.reason},void 0,!1,void 0,this),$5.jsxDEV("p",{className:"text-xs",children:["Target: ",$5.jsxDEV("span",{className:"font-mono",children:Q.target},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.conflictFiles.length>0?$5.jsxDEV("div",{className:"text-xs",children:[$5.jsxDEV("p",{className:"text-muted-foreground mb-1",children:["Conflict files (",Q.conflictFiles.length,"):"]},void 0,!0,void 0,this),$5.jsxDEV("ul",{className:"font-mono space-y-0.5 max-h-32 overflow-auto",children:Q.conflictFiles.map((_)=>$5.jsxDEV("li",{children:_},_,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),$5.jsxDEV(C$,{children:$5.jsxDEV(y1,{onClick:A,disabled:F||g||Q===null,children:F?"Merging…":"Run merge"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var d1=P(H0(),1),ju={working:"default",in_turn:"default",between_turns:"secondary",booting:"secondary",completed:"outline",stalled:"destructive",zombie:"destructive"},Eu={in_turn:"in turn",between_turns:"between turns"},uu=new Set(["working","in_turn","between_turns","booting","stalled"]);function lu({agent:Z}){let J=Ew(),[z,G]=Tx.useState(!1);return d1.jsxDEV(y1,{size:"sm",variant:"destructive",disabled:z,onClick:async(v)=>{v.stopPropagation(),G(!0);try{await $W(Z.agentName),R6.success(`Stopped ${Z.agentName}`),await J.invalidateQueries({queryKey:["agents"]})}catch(Q){R6.error("Stop failed",{description:Q instanceof Error?Q.message:String(Q)})}finally{G(!1)}},children:[d1.jsxDEV(zJ,{className:"size-4"},void 0,!1,void 0,this),z?"Stopping…":"Stop"]},void 0,!0,void 0,this)}function DB({agents:Z,showActions:J=!1}){let z=d4();if(Z.length===0)return d1.jsxDEV("p",{className:"text-sm text-muted-foreground py-4 leading-relaxed",children:["No agents in this run yet — spawn one with"," ",d1.jsxDEV(L4,{children:"ap sling <task-id> --capability builder --name <name>"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);return d1.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 overflow-hidden bg-card",children:d1.jsxDEV(h9,{children:[d1.jsxDEV(R9,{children:d1.jsxDEV(k4,{className:"bg-muted/40 hover:bg-muted/40",children:[d1.jsxDEV(e1,{className:"px-4 h-11",children:"Name"},void 0,!1,void 0,this),d1.jsxDEV(e1,{className:"px-4 h-11",children:"Capability"},void 0,!1,void 0,this),d1.jsxDEV(e1,{className:"px-4 h-11",children:"State"},void 0,!1,void 0,this),d1.jsxDEV(e1,{className:"px-4 h-11",children:"Parent"},void 0,!1,void 0,this),d1.jsxDEV(e1,{className:"px-4 h-11",children:"Started"},void 0,!1,void 0,this),d1.jsxDEV(e1,{className:"px-4 h-11",children:"Last Event"},void 0,!1,void 0,this),J?d1.jsxDEV(e1,{className:"px-4 h-11 text-right",children:"Actions"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),d1.jsxDEV(y9,{children:Z.map((G)=>d1.jsxDEV(k4,{className:"cursor-pointer",tabIndex:0,role:"button",onClick:()=>z(`/agents/${encodeURIComponent(G.agentName)}`),onKeyDown:(v)=>{if(v.key==="Enter"||v.key===" ")v.preventDefault(),z(`/agents/${encodeURIComponent(G.agentName)}`)},children:[d1.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3",children:G.agentName},void 0,!1,void 0,this),d1.jsxDEV(w5,{className:"px-4 py-3 text-sm",children:G.capability},void 0,!1,void 0,this),d1.jsxDEV(w5,{className:"px-4 py-3",children:d1.jsxDEV(x1,{variant:ju[G.state],children:Eu[G.state]??G.state},void 0,!1,void 0,this)},void 0,!1,void 0,this),d1.jsxDEV(w5,{className:"text-muted-foreground text-xs px-4 py-3",children:G.parentAgent??"—"},void 0,!1,void 0,this),d1.jsxDEV(w5,{className:"text-xs px-4 py-3",children:$2(G.startedAt)},void 0,!1,void 0,this),d1.jsxDEV(w5,{className:"text-xs px-4 py-3",children:$2(G.lastActivity)},void 0,!1,void 0,this),J?d1.jsxDEV(w5,{className:"px-4 py-3 text-right",children:d1.jsxDEV("div",{className:"flex items-center justify-end gap-2",children:[uu.has(G.state)?d1.jsxDEV(lu,{agent:G},void 0,!1,void 0,this):null,G.state==="completed"?d1.jsxDEV(Nx,{branch:`agentplate/${G.agentName}/${G.taskId}`},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},G.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var e7=P(K0(),1);var Ix=P(H0(),1),dB=bw("rounded-md border border-border bg-background text-foreground text-sm px-3 py-2 transition-shadow placeholder:text-muted-foreground/70 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 read-only:bg-muted read-only:cursor-default");function d6({className:Z,...J}){return Ix.jsxDEV("input",{"data-slot":"input",className:O0(dB(),Z),...J},void 0,!1,void 0,this)}var Z5=P(H0(),1),cu=["builder","scout","reviewer","lead","merger"];function _x(){let Z=Ew(),[J,z]=e7.useState(!1),[G,v]=e7.useState(!1),[Q,b]=e7.useState(""),[g,K]=e7.useState("builder"),[F,L]=e7.useState(""),[U,k]=e7.useState("");async function N(A){if(A.preventDefault(),Q.trim().length===0){R6.error("Task ID is required");return}v(!0);try{let _=await wW({taskId:Q.trim(),capability:g,...F.trim()?{name:F.trim()}:{},...U.trim()?{files:U.trim()}:{}});R6.success(`Spawned ${_.agentName}`,{description:_.spawned?`state: ${_.state??"unknown"}`:"dispatch sent"}),z(!1),b(""),L(""),k(""),await Z.invalidateQueries({queryKey:["agents"]}),await Z.invalidateQueries({queryKey:["runs"]})}catch(_){R6.error("Spawn failed",{description:_ instanceof Error?_.message:String(_)})}finally{v(!1)}}return Z5.jsxDEV(L9,{open:J,onOpenChange:z,children:[Z5.jsxDEV(rG,{asChild:!0,children:Z5.jsxDEV(y1,{size:"sm",children:[Z5.jsxDEV(ZJ,{className:"size-4"},void 0,!1,void 0,this),"Spawn agent"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Z5.jsxDEV(F9,{children:Z5.jsxDEV("form",{onSubmit:N,className:"flex flex-col gap-4",children:[Z5.jsxDEV(k9,{children:[Z5.jsxDEV(N9,{children:"Spawn agent"},void 0,!1,void 0,this),Z5.jsxDEV(T9,{children:["Dispatch a headless worker via ",Z5.jsxDEV("code",{className:"font-mono",children:"ap sling"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Z5.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[Z5.jsxDEV("label",{htmlFor:"spawn-task-id",className:"text-muted-foreground",children:"Task ID"},void 0,!1,void 0,this),Z5.jsxDEV(d6,{id:"spawn-task-id",value:Q,onChange:(A)=>b(A.target.value),placeholder:"e.g. agentplate-1a2b",autoFocus:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z5.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[Z5.jsxDEV("label",{htmlFor:"spawn-capability",className:"text-muted-foreground",children:"Capability"},void 0,!1,void 0,this),Z5.jsxDEV(Uw,{id:"spawn-capability",value:g,onChange:(A)=>K(A.target.value),children:cu.map((A)=>Z5.jsxDEV("option",{value:A,children:A},A,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z5.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[Z5.jsxDEV("label",{htmlFor:"spawn-name",className:"text-muted-foreground",children:"Name (optional)"},void 0,!1,void 0,this),Z5.jsxDEV(d6,{id:"spawn-name",value:F,onChange:(A)=>L(A.target.value),placeholder:"auto-generated if blank"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z5.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[Z5.jsxDEV("label",{htmlFor:"spawn-files",className:"text-muted-foreground",children:"File scope (optional, comma-separated)"},void 0,!1,void 0,this),Z5.jsxDEV(d6,{id:"spawn-files",value:U,onChange:(A)=>k(A.target.value),placeholder:"src/a.ts,src/b.ts"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z5.jsxDEV(C$,{children:Z5.jsxDEV(y1,{type:"submit",disabled:G,children:G?"Spawning…":"Spawn"},void 0,!1,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 A2=P(H0(),1);function Ox({activeCount:Z,completedCount:J,errorCount:z}){return A2.jsxDEV("div",{className:"grid grid-cols-3 gap-4",children:[A2.jsxDEV(R1,{className:"gap-3 py-5",children:[A2.jsxDEV(t1,{children:A2.jsxDEV(c5,{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Active"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A2.jsxDEV(S1,{children:A2.jsxDEV("p",{className:"text-3xl font-semibold tabular-nums",children:Z},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A2.jsxDEV(R1,{className:"gap-3 py-5",children:[A2.jsxDEV(t1,{children:A2.jsxDEV(c5,{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Completed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A2.jsxDEV(S1,{children:A2.jsxDEV("p",{className:"text-3xl font-semibold tabular-nums",children:J},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A2.jsxDEV(R1,{className:"gap-3 py-5",children:[A2.jsxDEV(t1,{children:A2.jsxDEV(c5,{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Errors"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A2.jsxDEV(S1,{children:A2.jsxDEV("p",{className:"text-3xl font-semibold tabular-nums text-destructive",children:z},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var T4=P(H0(),1),au={working:"default",in_turn:"default",between_turns:"secondary",booting:"secondary",completed:"outline",stalled:"destructive",zombie:"destructive"};function iu(Z){let J=new Map;for(let Q of Z)J.set(Q.agentName,{agent:Q,children:[]});let z=[];for(let Q of J.values()){let b=Q.agent.parentAgent,g=b!==null?J.get(b):void 0;if(g)g.children.push(Q);else z.push(Q)}let G=(Q,b)=>Q.agent.startedAt<b.agent.startedAt?-1:Q.agent.startedAt>b.agent.startedAt?1:0,v=(Q)=>{Q.sort(G);for(let b of Q)v(b.children)};return v(z),z}function Ax({node:Z,depth:J}){let z=d4(),{agent:G}=Z;return T4.jsxDEV("div",{className:"flex flex-col",children:[T4.jsxDEV("button",{type:"button",onClick:()=>z(`/agents/${encodeURIComponent(G.agentName)}`),className:"group flex items-center gap-3 rounded-md px-2 py-2 text-left transition-colors hover:bg-accent/50 focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",style:{marginLeft:`${J*1.5}rem`},children:[J>0?T4.jsxDEV("span",{className:"text-muted-foreground/50 font-mono text-xs",children:"└─"},void 0,!1,void 0,this):null,T4.jsxDEV("span",{className:"font-mono text-xs",children:G.agentName},void 0,!1,void 0,this),T4.jsxDEV("span",{className:"text-xs text-muted-foreground",children:G.capability},void 0,!1,void 0,this),T4.jsxDEV(x1,{variant:au[G.state],children:G.state.replace(/_/g," ")},void 0,!1,void 0,this),T4.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground tabular-nums",children:$2(G.lastActivity)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.children.map((v)=>T4.jsxDEV(Ax,{node:v,depth:J+1},v.agent.id,!1,void 0,this))]},void 0,!0,void 0,this)}function Cx({agents:Z}){let J=iu(Z);if(J.length===0)return T4.jsxDEV("p",{className:"py-4 text-sm text-muted-foreground",children:"No agents to display."},void 0,!1,void 0,this);return T4.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 bg-card p-3",children:J.map((z)=>T4.jsxDEV(Ax,{node:z,depth:0},z.agent.id,!1,void 0,this))},void 0,!1,void 0,this)}var I5=P(H0(),1);function Mx(){let Z=n0({queryKey:["runs"],queryFn:()=>W8(50),refetchInterval:5000}),J=Z.data??[],[z]=x7(),G=z.get("run")??J[0]?.id??null,v=n0({queryKey:["agents",G],queryFn:()=>QJ({runId:G??void 0}),enabled:G!==null,refetchInterval:5000}),Q=v.data??[],b=Q.filter((k)=>k.state==="working"||k.state==="in_turn"||k.state==="between_turns"||k.state==="booting").length,g=Q.filter((k)=>k.state==="completed").length,K=Q.filter((k)=>k.state==="stalled"||k.state==="zombie").length,F=Z.isLoading||v.isLoading,L=Z.isError||v.isError,U=(Z.error instanceof Error?Z.error.message:null)??(v.error instanceof Error?v.error.message:null)??"An error occurred.";return I5.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[I5.jsxDEV("div",{className:"flex items-center justify-between",children:[I5.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Fleet"},void 0,!1,void 0,this),I5.jsxDEV(_x,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L&&I5.jsxDEV("div",{className:"rounded-md border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive",children:U},void 0,!1,void 0,this),F&&I5.jsxDEV(H5,{label:"Loading runs"},void 0,!1,void 0,this),!F&&J.length===0&&I5.jsxDEV(U5,{icon:d7,title:"No runs yet",description:I5.jsxDEV(I5.Fragment,{children:["Start a coordinator with"," ",I5.jsxDEV("code",{className:"font-mono text-xs bg-muted px-1.5 py-0.5 rounded",children:"ap coordinator start"},void 0,!1,void 0,this),", or spawn a worker directly with the button above."]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!F&&J.length>0&&I5.jsxDEV(I5.Fragment,{children:[I5.jsxDEV(Ox,{activeCount:b,completedCount:g,errorCount:K},void 0,!1,void 0,this),I5.jsxDEV(Fx,{defaultValue:"table",children:[I5.jsxDEV(kx,{children:[I5.jsxDEV(oW,{value:"table",children:"Table"},void 0,!1,void 0,this),I5.jsxDEV(oW,{value:"topology",children:"Topology"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I5.jsxDEV(sW,{value:"table",className:"mt-4",children:I5.jsxDEV(DB,{agents:Q,showActions:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),I5.jsxDEV(sW,{value:"topology",className:"mt-4",children:I5.jsxDEV(Cx,{agents:Q},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,!0,void 0,this)}var J2=P(H0(),1);function xx(){let Z=n0({queryKey:["groups"],queryFn:()=>BW(),refetchInterval:1e4}),J=Z.data??[];if(Z.isLoading)return J2.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:J2.jsxDEV(H5,{label:"Loading groups"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return J2.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[J2.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Task groups"},void 0,!1,void 0,this),J.length===0&&J2.jsxDEV(U5,{icon:uX,title:"No task groups",description:"Create one with ap group create '<name>' <id1> <id2> …"},void 0,!1,void 0,this),J2.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:J.map((z)=>J2.jsxDEV(R1,{children:[J2.jsxDEV(t1,{children:J2.jsxDEV(c5,{className:"flex items-center justify-between text-sm",children:[J2.jsxDEV("span",{children:z.name},void 0,!1,void 0,this),J2.jsxDEV(x1,{variant:z.status==="completed"?"outline":"default",children:z.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J2.jsxDEV(S1,{className:"flex flex-col gap-2 text-xs",children:[J2.jsxDEV("div",{className:"flex items-center justify-between text-muted-foreground",children:[J2.jsxDEV("span",{className:"font-mono",children:z.id},void 0,!1,void 0,this),J2.jsxDEV("span",{children:$2(z.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J2.jsxDEV("div",{className:"flex flex-wrap gap-1.5",children:z.memberIssueIds.length===0?J2.jsxDEV("span",{className:"text-muted-foreground",children:"No member issues."},void 0,!1,void 0,this):z.memberIssueIds.map((G)=>J2.jsxDEV("span",{className:"font-mono bg-muted px-1.5 py-0.5 rounded",children:G},G,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},z.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var q5=P(H0(),1);function pu(Z){let J=new Map;for(let z of Z){let G=J.get(z.category);if(G)G.push(z);else J.set(z.category,[z])}return[...J.entries()]}var ru={pass:q5.jsxDEV(M6,{className:"size-4 text-green-600 dark:text-green-500 shrink-0 mt-0.5"},void 0,!1,void 0,this),warn:q5.jsxDEV(x6,{className:"size-4 text-yellow-600 dark:text-yellow-500 shrink-0 mt-0.5"},void 0,!1,void 0,this),fail:q5.jsxDEV(K9,{className:"size-4 text-destructive shrink-0 mt-0.5"},void 0,!1,void 0,this)};function mx(){let Z=n0({queryKey:["doctor"],queryFn:()=>GW(),refetchInterval:15000}),J=Z.data;if(Z.isLoading)return q5.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:q5.jsxDEV(H5,{label:"Running health checks"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(Z.isError)return q5.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:q5.jsxDEV("div",{className:"rounded-md border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive",children:Z.error instanceof Error?Z.error.message:"Failed to run health checks."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!J)return null;let z=pu(J.checks);return q5.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[q5.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Health"},void 0,!1,void 0,this),q5.jsxDEV("div",{className:"grid grid-cols-3 gap-4",children:[q5.jsxDEV(S2,{label:"Passing",value:J.summary.pass},void 0,!1,void 0,this),q5.jsxDEV(S2,{label:"Warnings",value:J.summary.warn},void 0,!1,void 0,this),q5.jsxDEV(S2,{label:"Failures",value:J.summary.fail,tone:J.summary.fail>0?"destructive":"default"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q5.jsxDEV("div",{className:"flex flex-col gap-4",children:z.map(([G,v])=>q5.jsxDEV(R1,{children:[q5.jsxDEV(t1,{children:q5.jsxDEV(c5,{className:"text-sm capitalize",children:G},void 0,!1,void 0,this)},void 0,!1,void 0,this),q5.jsxDEV(S1,{className:"flex flex-col gap-2",children:v.map((Q)=>q5.jsxDEV("div",{className:"flex items-start gap-2 text-sm",children:[ru[Q.status],q5.jsxDEV("div",{className:"flex flex-col",children:[q5.jsxDEV("span",{children:Q.message},void 0,!1,void 0,this),Q.details&&Q.details.length>0?q5.jsxDEV("ul",{className:"text-xs text-muted-foreground mt-0.5 list-disc list-inside",children:Q.details.map((b)=>q5.jsxDEV("li",{children:b},b,!1,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},Q.name,!0,void 0,this))},void 0,!1,void 0,this)]},G,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var tW=P(K0(),1);var C2=P(H0(),1),nu=["all","debug","info","warn","error"],ou={debug:"text-muted-foreground",info:"text-foreground",warn:"text-yellow-600 dark:text-yellow-500",error:"text-destructive"};function Px(){let[Z,J]=tW.useState("all"),[z,G]=tW.useState(""),v=n0({queryKey:["logs",Z,z],queryFn:()=>zW({...Z!=="all"?{level:Z}:{},...z.trim()?{agent:z.trim()}:{},limit:500}),refetchInterval:5000}),Q=v.data??[];return C2.jsxDEV("div",{className:"p-6 flex flex-col gap-4 max-w-7xl mx-auto h-full",children:[C2.jsxDEV("div",{className:"flex items-center justify-between gap-3",children:[C2.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Logs"},void 0,!1,void 0,this),C2.jsxDEV("div",{className:"flex items-center gap-2",children:[C2.jsxDEV(d6,{value:z,onChange:(b)=>G(b.target.value),placeholder:"filter by agent",className:"w-48"},void 0,!1,void 0,this),C2.jsxDEV(Uw,{value:Z,onChange:(b)=>J(b.target.value),className:"w-32",children:nu.map((b)=>C2.jsxDEV("option",{value:b,children:b},b,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),v.isLoading&&C2.jsxDEV(H5,{label:"Loading logs"},void 0,!1,void 0,this),!v.isLoading&&Q.length===0&&C2.jsxDEV(U5,{icon:JJ,title:"No log entries",description:"NDJSON logs from agents appear here as they run."},void 0,!1,void 0,this),Q.length>0&&C2.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 bg-card overflow-auto font-mono text-xs",children:Q.map((b,g)=>C2.jsxDEV("div",{className:"flex items-start gap-3 px-4 py-1.5 border-b border-border/40 last:border-0",children:[C2.jsxDEV("span",{className:"text-muted-foreground shrink-0 w-16",children:$2(b.timestamp)},void 0,!1,void 0,this),C2.jsxDEV("span",{className:`shrink-0 w-12 uppercase ${ou[b.level]}`,children:b.level},void 0,!1,void 0,this),C2.jsxDEV("span",{className:"shrink-0 w-32 truncate text-muted-foreground",children:b.agentName??"—"},void 0,!1,void 0,this),C2.jsxDEV("span",{className:"flex-1 break-all",children:[b.event,Object.keys(b.data).length>0?C2.jsxDEV("span",{className:"text-muted-foreground",children:[" ",JSON.stringify(b.data)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},`${b.timestamp}-${g}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var rB=P(K0(),1);var su=P(K0(),1),A0=P(K0(),1),cB=A0.createContext(null);cB.displayName="PanelGroupContext";var C5={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},zK=10,Z3=A0.useLayoutEffect,fx=su["useId".toString()],tu=typeof fx==="function"?fx:()=>null,eu=0;function GK(Z=null){let J=tu(),z=A0.useRef(Z||J||null);if(z.current===null)z.current=""+eu++;return Z!==null&&Z!==void 0?Z:z.current}function dx({children:Z,className:J="",collapsedSize:z,collapsible:G,defaultSize:v,forwardedRef:Q,id:b,maxSize:g,minSize:K,onCollapse:F,onExpand:L,onResize:U,order:k,style:N,tagName:A="div",..._}){let C=A0.useContext(cB);if(C===null)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:x,expandPanel:S,getPanelSize:d,getPanelStyle:i,groupId:Z0,isPanelCollapsed:p,reevaluatePanelConstraints:j,registerPanel:$0,resizePanel:s,unregisterPanel:E}=C,Q0=GK(b),G0=A0.useRef({callbacks:{onCollapse:F,onExpand:L,onResize:U},constraints:{collapsedSize:z,collapsible:G,defaultSize:v,maxSize:g,minSize:K},id:Q0,idIsFromProps:b!==void 0,order:k});if(!A0.useRef({didLogMissingDefaultSizeWarning:!1}).current.didLogMissingDefaultSizeWarning);Z3(()=>{let{callbacks:e,constraints:B0}=G0.current,u={...B0};if(G0.current.id=Q0,G0.current.idIsFromProps=b!==void 0,G0.current.order=k,e.onCollapse=F,e.onExpand=L,e.onResize=U,B0.collapsedSize=z,B0.collapsible=G,B0.defaultSize=v,B0.maxSize=g,B0.minSize=K,u.collapsedSize!==B0.collapsedSize||u.collapsible!==B0.collapsible||u.maxSize!==B0.maxSize||u.minSize!==B0.minSize)j(G0.current,u)}),Z3(()=>{let e=G0.current;return $0(e),()=>{E(e)}},[k,Q0,$0,E]),A0.useImperativeHandle(Q,()=>({collapse:()=>{x(G0.current)},expand:(e)=>{S(G0.current,e)},getId(){return Q0},getSize(){return d(G0.current)},isCollapsed(){return p(G0.current)},isExpanded(){return!p(G0.current)},resize:(e)=>{s(G0.current,e)}}),[x,S,d,p,Q0,s]);let F0=i(G0.current,v);return A0.createElement(A,{..._,children:Z,className:J,id:Q0,style:{...F0,...N},[C5.groupId]:Z0,[C5.panel]:"",[C5.panelCollapsible]:G||void 0,[C5.panelId]:Q0,[C5.panelSize]:parseFloat(""+F0.flexGrow).toFixed(1)})}var BK=A0.forwardRef((Z,J)=>A0.createElement(dx,{...Z,forwardedRef:J}));dx.displayName="Panel";BK.displayName="forwardRef(Panel)";var wl;function $l(){return wl}var YK=null,Zl=!0,EB=-1,L8=null;function Xl(Z,J){if(J){let z=(J&cx)!==0,G=(J&ax)!==0,v=(J&ix)!==0,Q=(J&px)!==0;if(z)if(v)return"se-resize";else if(Q)return"ne-resize";else return"e-resize";else if(G)if(v)return"sw-resize";else if(Q)return"nw-resize";else return"w-resize";else if(v)return"s-resize";else if(Q)return"n-resize"}switch(Z){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Jl(){if(L8!==null)document.head.removeChild(L8),YK=null,L8=null,EB=-1}function eW(Z,J){var z,G;if(!Zl)return;let v=Xl(Z,J);if(YK===v)return;if(YK=v,L8===null){L8=document.createElement("style");let b=$l();if(b)L8.setAttribute("nonce",b);document.head.appendChild(L8)}if(EB>=0){var Q;(Q=L8.sheet)===null||Q===void 0||Q.removeRule(EB)}EB=(z=(G=L8.sheet)===null||G===void 0?void 0:G.insertRule(`*{cursor: ${v} !important;}`))!==null&&z!==void 0?z:-1}function jx(Z){return Z.type==="keydown"}function Ex(Z){return Z.type.startsWith("pointer")}function ux(Z){return Z.type.startsWith("mouse")}function aB(Z){if(Ex(Z)){if(Z.isPrimary)return{x:Z.clientX,y:Z.clientY}}else if(ux(Z))return{x:Z.clientX,y:Z.clientY};return{x:1/0,y:1/0}}function Yl(){if(typeof matchMedia==="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function zl(Z,J,z){if(z)return Z.x<J.x+J.width&&Z.x+Z.width>J.x&&Z.y<J.y+J.height&&Z.y+Z.height>J.y;else return Z.x<=J.x+J.width&&Z.x+Z.width>=J.x&&Z.y<=J.y+J.height&&Z.y+Z.height>=J.y}function Gl(Z,J){if(Z===J)throw Error("Cannot compare node with itself");let z={a:Rx(Z),b:Rx(J)},G;while(z.a.at(-1)===z.b.at(-1))Z=z.a.pop(),J=z.b.pop(),G=Z;J1(G,"Stacking order can only be calculated for elements with a common ancestor");let v={a:hx(Vx(z.a)),b:hx(Vx(z.b))};if(v.a===v.b){let Q=G.childNodes,b={a:z.a.at(-1),b:z.b.at(-1)},g=Q.length;while(g--){let K=Q[g];if(K===b.a)return 1;if(K===b.b)return-1}}return Math.sign(v.a-v.b)}var Bl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function vl(Z){var J;let z=getComputedStyle((J=lx(Z))!==null&&J!==void 0?J:Z).display;return z==="flex"||z==="inline-flex"}function Hl(Z){let J=getComputedStyle(Z);if(J.position==="fixed")return!0;if(J.zIndex!=="auto"&&(J.position!=="static"||vl(Z)))return!0;if(+J.opacity<1)return!0;if("transform"in J&&J.transform!=="none")return!0;if("webkitTransform"in J&&J.webkitTransform!=="none")return!0;if("mixBlendMode"in J&&J.mixBlendMode!=="normal")return!0;if("filter"in J&&J.filter!=="none")return!0;if("webkitFilter"in J&&J.webkitFilter!=="none")return!0;if("isolation"in J&&J.isolation==="isolate")return!0;if(Bl.test(J.willChange))return!0;if(J.webkitOverflowScrolling==="touch")return!0;return!1}function Vx(Z){let J=Z.length;while(J--){let z=Z[J];if(J1(z,"Missing node"),Hl(z))return z}return null}function hx(Z){return Z&&Number(getComputedStyle(Z).zIndex)||0}function Rx(Z){let J=[];while(Z)J.push(Z),Z=lx(Z);return J}function lx(Z){let{parentNode:J}=Z;if(J&&J instanceof ShadowRoot)return J.host;return J}var cx=1,ax=2,ix=4,px=8,Ql=Yl()==="coarse",p4=[],a$=!1,$3=new Map,iB=new Map,SJ=new Set;function gl(Z,J,z,G,v){var Q;let{ownerDocument:b}=J,g={direction:z,element:J,hitAreaMargins:G,setResizeHandlerState:v},K=(Q=$3.get(b))!==null&&Q!==void 0?Q:0;return $3.set(b,K+1),SJ.add(g),uB(),function(){var L;iB.delete(Z),SJ.delete(g);let U=(L=$3.get(b))!==null&&L!==void 0?L:1;if($3.set(b,U-1),uB(),U===1)$3.delete(b);if(p4.includes(g)){let k=p4.indexOf(g);if(k>=0)p4.splice(k,1);HK(),v("up",!0,null)}}}function bl(Z){let{target:J}=Z,{x:z,y:G}=aB(Z);if(a$=!0,vK({target:J,x:z,y:G}),uB(),p4.length>0){if(lB("down",Z),Z.preventDefault(),!rx(J))Z.stopImmediatePropagation()}}function wK(Z){let{x:J,y:z}=aB(Z);if(a$&&Z.buttons===0)a$=!1,lB("up",Z);if(!a$){let{target:G}=Z;vK({target:G,x:J,y:z})}if(lB("move",Z),HK(),p4.length>0)Z.preventDefault()}function $K(Z){let{target:J}=Z,{x:z,y:G}=aB(Z);if(iB.clear(),a$=!1,p4.length>0){if(Z.preventDefault(),!rx(J))Z.stopImmediatePropagation()}lB("up",Z),vK({target:J,x:z,y:G}),HK(),uB()}function rx(Z){let J=Z;while(J){if(J.hasAttribute(C5.resizeHandle))return!0;J=J.parentElement}return!1}function vK({target:Z,x:J,y:z}){p4.splice(0);let G=null;if(Z instanceof HTMLElement||Z instanceof SVGElement)G=Z;SJ.forEach((v)=>{let{element:Q,hitAreaMargins:b}=v,g=Q.getBoundingClientRect(),{bottom:K,left:F,right:L,top:U}=g,k=Ql?b.coarse:b.fine;if(J>=F-k&&J<=L+k&&z>=U-k&&z<=K+k){if(G!==null&&document.contains(G)&&Q!==G&&!Q.contains(G)&&!G.contains(Q)&&Gl(G,Q)>0){let A=G,_=!1;while(A){if(A.contains(Q))break;else if(zl(A.getBoundingClientRect(),g,!0)){_=!0;break}A=A.parentElement}if(_)return}p4.push(v)}})}function ZK(Z,J){iB.set(Z,J)}function HK(){let Z=!1,J=!1;p4.forEach((G)=>{let{direction:v}=G;if(v==="horizontal")Z=!0;else J=!0});let z=0;if(iB.forEach((G)=>{z|=G}),Z&&J)eW("intersection",z);else if(Z)eW("horizontal",z);else if(J)eW("vertical",z);else Jl()}var XK=new AbortController;function uB(){XK.abort(),XK=new AbortController;let Z={capture:!0,signal:XK.signal};if(!SJ.size)return;if(a$){if(p4.length>0)$3.forEach((J,z)=>{let{body:G}=z;if(J>0)G.addEventListener("contextmenu",$K,Z),G.addEventListener("pointerleave",wK,Z),G.addEventListener("pointermove",wK,Z)});window.addEventListener("pointerup",$K,Z),window.addEventListener("pointercancel",$K,Z)}else $3.forEach((J,z)=>{let{body:G}=z;if(J>0)G.addEventListener("pointerdown",bl,Z),G.addEventListener("pointermove",wK,Z)})}function lB(Z,J){SJ.forEach((z)=>{let{setResizeHandlerState:G}=z,v=p4.includes(z);G(Z,v,J)})}function Wl(){let[Z,J]=A0.useState(0);return A0.useCallback(()=>J((z)=>z+1),[])}function J1(Z,J){if(!Z)throw console.error(J),Error(J)}function X3(Z,J,z=zK){if(Z.toFixed(z)===J.toFixed(z))return 0;else return Z>J?1:-1}function F8(Z,J,z=zK){return X3(Z,J,z)===0}function aw(Z,J,z){return X3(Z,J,z)===0}function Kl(Z,J,z){if(Z.length!==J.length)return!1;for(let G=0;G<Z.length;G++){let v=Z[G],Q=J[G];if(!aw(v,Q,z))return!1}return!0}function c$({panelConstraints:Z,panelIndex:J,size:z}){let G=Z[J];J1(G!=null,`Panel constraints not found for index ${J}`);let{collapsedSize:v=0,collapsible:Q,maxSize:b=100,minSize:g=0}=G;if(X3(z,g)<0)if(Q){let K=(v+g)/2;if(X3(z,K)<0)z=v;else z=g}else z=g;return z=Math.min(b,z),z=parseFloat(z.toFixed(zK)),z}function RJ({delta:Z,initialLayout:J,panelConstraints:z,pivotIndices:G,prevLayout:v,trigger:Q}){if(aw(Z,0))return J;let b=[...J],[g,K]=G;J1(g!=null,"Invalid first pivot index"),J1(K!=null,"Invalid second pivot index");let F=0;if(Q==="keyboard"){{let U=Z<0?K:g,k=z[U];J1(k,`Panel constraints not found for index ${U}`);let{collapsedSize:N=0,collapsible:A,minSize:_=0}=k;if(A){let C=J[U];if(J1(C!=null,`Previous layout not found for panel index ${U}`),aw(C,N)){let x=_-C;if(X3(x,Math.abs(Z))>0)Z=Z<0?0-x:x}}}{let U=Z<0?g:K,k=z[U];J1(k,`No panel constraints found for index ${U}`);let{collapsedSize:N=0,collapsible:A,minSize:_=0}=k;if(A){let C=J[U];if(J1(C!=null,`Previous layout not found for panel index ${U}`),aw(C,_)){let x=C-N;if(X3(x,Math.abs(Z))>0)Z=Z<0?0-x:x}}}}{let U=Z<0?1:-1,k=Z<0?K:g,N=0;while(!0){let _=J[k];J1(_!=null,`Previous layout not found for panel index ${k}`);let x=c$({panelConstraints:z,panelIndex:k,size:100})-_;if(N+=x,k+=U,k<0||k>=z.length)break}let A=Math.min(Math.abs(Z),Math.abs(N));Z=Z<0?0-A:A}{let k=Z<0?g:K;while(k>=0&&k<z.length){let N=Math.abs(Z)-Math.abs(F),A=J[k];J1(A!=null,`Previous layout not found for panel index ${k}`);let _=A-N,C=c$({panelConstraints:z,panelIndex:k,size:_});if(!aw(A,C)){if(F+=A-C,b[k]=C,F.toPrecision(3).localeCompare(Math.abs(Z).toPrecision(3),void 0,{numeric:!0})>=0)break}if(Z<0)k--;else k++}}if(Kl(v,b))return v;{let U=Z<0?K:g,k=J[U];J1(k!=null,`Previous layout not found for panel index ${U}`);let N=k+F,A=c$({panelConstraints:z,panelIndex:U,size:N});if(b[U]=A,!aw(A,N)){let _=N-A,x=Z<0?K:g;while(x>=0&&x<z.length){let S=b[x];J1(S!=null,`Previous layout not found for panel index ${x}`);let d=S+_,i=c$({panelConstraints:z,panelIndex:x,size:d});if(!aw(S,i))_-=i-S,b[x]=i;if(aw(_,0))break;if(Z>0)x--;else x++}}}let L=b.reduce((U,k)=>k+U,0);if(!aw(L,100))return v;return b}function Ul({layout:Z,panelsArray:J,pivotIndices:z}){let G=0,v=100,Q=0,b=0,g=z[0];J1(g!=null,"No pivot index found"),J.forEach((U,k)=>{let{constraints:N}=U,{maxSize:A=100,minSize:_=0}=N;if(k===g)G=_,v=A;else Q+=_,b+=A});let K=Math.min(v,100-Q),F=Math.max(G,100-b),L=Z[g];return{valueMax:K,valueMin:F,valueNow:L}}function DJ(Z,J=document){return Array.from(J.querySelectorAll(`[${C5.resizeHandleId}][data-panel-group-id="${Z}"]`))}function nx(Z,J,z=document){let v=DJ(Z,z).findIndex((Q)=>Q.getAttribute(C5.resizeHandleId)===J);return v!==null&&v!==void 0?v:null}function ox(Z,J,z){let G=nx(Z,J,z);return G!=null?[G,G+1]:[-1,-1]}function sx(Z,J=document){var z;if(J instanceof HTMLElement&&(J===null||J===void 0?void 0:(z=J.dataset)===null||z===void 0?void 0:z.panelGroupId)==Z)return J;let G=J.querySelector(`[data-panel-group][data-panel-group-id="${Z}"]`);if(G)return G;return null}function pB(Z,J=document){let z=J.querySelector(`[${C5.resizeHandleId}="${Z}"]`);if(z)return z;return null}function ql(Z,J,z,G=document){var v,Q,b,g;let K=pB(J,G),F=DJ(Z,G),L=K?F.indexOf(K):-1,U=(v=(Q=z[L])===null||Q===void 0?void 0:Q.id)!==null&&v!==void 0?v:null,k=(b=(g=z[L+1])===null||g===void 0?void 0:g.id)!==null&&b!==void 0?b:null;return[U,k]}function Ll({committedValuesRef:Z,eagerValuesRef:J,groupId:z,layout:G,panelDataArray:v,panelGroupElement:Q,setLayout:b}){let g=A0.useRef({didWarnAboutMissingResizeHandle:!1});Z3(()=>{if(!Q)return;let K=DJ(z,Q);for(let F=0;F<v.length-1;F++){let{valueMax:L,valueMin:U,valueNow:k}=Ul({layout:G,panelsArray:v,pivotIndices:[F,F+1]}),N=K[F];if(N==null){let{didWarnAboutMissingResizeHandle:A}=g.current;if(!A)g.current.didWarnAboutMissingResizeHandle=!0,console.warn(`WARNING: Missing resize handle for PanelGroup "${z}"`)}else{let A=v[F];J1(A,`No panel data found for index "${F}"`),N.setAttribute("aria-controls",A.id),N.setAttribute("aria-valuemax",""+Math.round(L)),N.setAttribute("aria-valuemin",""+Math.round(U)),N.setAttribute("aria-valuenow",k!=null?""+Math.round(k):"")}}return()=>{K.forEach((F,L)=>{F.removeAttribute("aria-controls"),F.removeAttribute("aria-valuemax"),F.removeAttribute("aria-valuemin"),F.removeAttribute("aria-valuenow")})}},[z,G,v,Q]),A0.useEffect(()=>{if(!Q)return;let K=J.current;J1(K,"Eager values not found");let{panelDataArray:F}=K,L=sx(z,Q);J1(L!=null,`No group found for id "${z}"`);let U=DJ(z,Q);J1(U,`No resize handles found for group id "${z}"`);let k=U.map((N)=>{let A=N.getAttribute(C5.resizeHandleId);J1(A,"Resize handle element has no handle id attribute");let[_,C]=ql(z,A,F,Q);if(_==null||C==null)return()=>{};let x=(S)=>{if(S.defaultPrevented)return;switch(S.key){case"Enter":{S.preventDefault();let d=F.findIndex((i)=>i.id===_);if(d>=0){let i=F[d];J1(i,`No panel data found for index ${d}`);let Z0=G[d],{collapsedSize:p=0,collapsible:j,minSize:$0=0}=i.constraints;if(Z0!=null&&j){let s=RJ({delta:aw(Z0,p)?$0-p:p-Z0,initialLayout:G,panelConstraints:F.map((E)=>E.constraints),pivotIndices:ox(z,A,Q),prevLayout:G,trigger:"keyboard"});if(G!==s)b(s)}}break}}};return N.addEventListener("keydown",x),()=>{N.removeEventListener("keydown",x)}});return()=>{k.forEach((N)=>N())}},[Q,Z,J,z,G,v,b])}function JK(Z,J){if(Z.length!==J.length)return!1;for(let z=0;z<Z.length;z++)if(Z[z]!==J[z])return!1;return!0}function tx(Z,J){let z=Z==="horizontal",{x:G,y:v}=aB(J);return z?G:v}function Fl(Z,J,z,G,v){let Q=z==="horizontal",b=pB(J,v);J1(b,`No resize handle element found for id "${J}"`);let g=b.getAttribute(C5.groupId);J1(g,"Resize handle element has no group id attribute");let{initialCursorPosition:K}=G,F=tx(z,Z),L=sx(g,v);J1(L,`No group element found for id "${g}"`);let U=L.getBoundingClientRect(),k=Q?U.width:U.height;return(F-K)/k*100}function kl(Z,J,z,G,v,Q){if(jx(Z)){let b=z==="horizontal",g=0;if(Z.shiftKey)g=100;else if(v!=null)g=v;else g=10;let K=0;switch(Z.key){case"ArrowDown":K=b?0:g;break;case"ArrowLeft":K=b?-g:0;break;case"ArrowRight":K=b?g:0;break;case"ArrowUp":K=b?0:-g;break;case"End":K=100;break;case"Home":K=-100;break}return K}else{if(G==null)return 0;return Fl(Z,J,z,G,Q)}}function Nl({panelDataArray:Z}){let J=Array(Z.length),z=Z.map((Q)=>Q.constraints),G=0,v=100;for(let Q=0;Q<Z.length;Q++){let b=z[Q];J1(b,`Panel constraints not found for index ${Q}`);let{defaultSize:g}=b;if(g!=null)G++,J[Q]=g,v-=g}for(let Q=0;Q<Z.length;Q++){let b=z[Q];J1(b,`Panel constraints not found for index ${Q}`);let{defaultSize:g}=b;if(g!=null)continue;let K=Z.length-G,F=v/K;G++,J[Q]=F,v-=F}return J}function u$(Z,J,z){J.forEach((G,v)=>{let Q=Z[v];J1(Q,`Panel data not found for index ${v}`);let{callbacks:b,constraints:g,id:K}=Q,{collapsedSize:F=0,collapsible:L}=g,U=z[K];if(U==null||G!==U){z[K]=G;let{onCollapse:k,onExpand:N,onResize:A}=b;if(A)A(G,U);if(L&&(k||N)){if(N&&(U==null||F8(U,F))&&!F8(G,F))N();if(k&&(U==null||!F8(U,F))&&F8(G,F))k()}}})}function jB(Z,J){if(Z.length!==J.length)return!1;else for(let z=0;z<Z.length;z++)if(Z[z]!=J[z])return!1;return!0}function Tl({defaultSize:Z,dragState:J,layout:z,panelData:G,panelIndex:v,precision:Q=3}){let b=z[v],g;if(b==null)g=Z!=null?Z.toPrecision(Q):"1";else if(G.length===1)g="1";else g=b.toPrecision(Q);return{flexBasis:0,flexGrow:g,flexShrink:1,overflow:"hidden",pointerEvents:J!==null?"none":void 0}}function Il(Z,J=10){let z=null;return(...v)=>{if(z!==null)clearTimeout(z);z=setTimeout(()=>{Z(...v)},J)}}function yx(Z){try{if(typeof localStorage<"u")Z.getItem=(J)=>{return localStorage.getItem(J)},Z.setItem=(J,z)=>{localStorage.setItem(J,z)};else throw Error("localStorage not supported in this environment")}catch(J){console.error(J),Z.getItem=()=>null,Z.setItem=()=>{}}}function ex(Z){return`react-resizable-panels:${Z}`}function wm(Z){return Z.map((J)=>{let{constraints:z,id:G,idIsFromProps:v,order:Q}=J;if(v)return G;else return Q?`${Q}:${JSON.stringify(z)}`:JSON.stringify(z)}).sort((J,z)=>J.localeCompare(z)).join(",")}function $m(Z,J){try{let z=ex(Z),G=J.getItem(z);if(G){let v=JSON.parse(G);if(typeof v==="object"&&v!=null)return v}}catch(z){}return null}function _l(Z,J,z){var G,v;let Q=(G=$m(Z,z))!==null&&G!==void 0?G:{},b=wm(J);return(v=Q[b])!==null&&v!==void 0?v:null}function Ol(Z,J,z,G,v){var Q;let b=ex(Z),g=wm(J),K=(Q=$m(Z,v))!==null&&Q!==void 0?Q:{};K[g]={expandToSizes:Object.fromEntries(z.entries()),layout:G};try{v.setItem(b,JSON.stringify(K))}catch(F){console.error(F)}}function Al({panelConstraints:Z,panelId:J,panelIndex:z}){{let G=[],v=Z[z];J1(v,`No panel constraints found for index ${z}`);let{collapsedSize:Q=0,collapsible:b=!1,defaultSize:g,maxSize:K=100,minSize:F=0}=v;if(F>K)G.push(`min size (${F}%) should not be greater than max size (${K}%)`);if(g!=null){if(g<0)G.push("default size should not be less than 0");else if(g<F&&(!b||g!==Q))G.push("default size should not be less than min size");if(g>100)G.push("default size should not be greater than 100");else if(g>K)G.push("default size should not be greater than max size")}if(Q>F)G.push("collapsed size should not be greater than min size");if(G.length>0){let L=J!=null?`Panel "${J}"`:"Panel";return console.warn(`${L} has an invalid configuration:
295
-
296
- ${G.join(`
297
- `)}`),!1}}return!0}function Sx({layout:Z,panelConstraints:J}){let z=[...Z],G=z.reduce((Q,b)=>Q+b,0);if(z.length!==J.length)throw Error(`Invalid ${J.length} panel layout: ${z.map((Q)=>`${Q}%`).join(", ")}`);else if(!aw(G,100)&&z.length>0){console.warn(`WARNING: Invalid layout total size: ${z.map((Q)=>`${Q}%`).join(", ")}. Layout normalization will be applied.`);for(let Q=0;Q<J.length;Q++){let b=z[Q];J1(b!=null,`No layout data found for index ${Q}`);let g=100/G*b;z[Q]=g}}let v=0;for(let Q=0;Q<J.length;Q++){let b=z[Q];J1(b!=null,`No layout data found for index ${Q}`);let g=c$({panelConstraints:J,panelIndex:Q,size:b});if(b!=g)v+=b-g,z[Q]=g}if(!aw(v,0))for(let Q=0;Q<J.length;Q++){let b=z[Q];J1(b!=null,`No layout data found for index ${Q}`);let g=b+v,K=c$({panelConstraints:J,panelIndex:Q,size:g});if(b!==K){if(v-=K-b,z[Q]=K,aw(v,0))break}}return z}var Cl=100,yJ={getItem:(Z)=>{return yx(yJ),yJ.getItem(Z)},setItem:(Z,J)=>{yx(yJ),yJ.setItem(Z,J)}},Dx={};function Zm({autoSaveId:Z=null,children:J,className:z="",direction:G,forwardedRef:v,id:Q=null,onLayout:b=null,keyboardResizeBy:g=null,storage:K=yJ,style:F,tagName:L="div",...U}){let k=GK(Q),N=A0.useRef(null),[A,_]=A0.useState(null),[C,x]=A0.useState([]),S=Wl(),d=A0.useRef({}),i=A0.useRef(new Map),Z0=A0.useRef(0),p=A0.useRef({autoSaveId:Z,direction:G,dragState:A,id:k,keyboardResizeBy:g,onLayout:b,storage:K}),j=A0.useRef({layout:C,panelDataArray:[],panelDataArrayChanged:!1}),$0=A0.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]});A0.useImperativeHandle(v,()=>({getId:()=>p.current.id,getLayout:()=>{let{layout:a}=j.current;return a},setLayout:(a)=>{let{onLayout:X0}=p.current,{layout:J0,panelDataArray:w0}=j.current,b0=Sx({layout:a,panelConstraints:w0.map((N0)=>N0.constraints)});if(!JK(J0,b0)){if(x(b0),j.current.layout=b0,X0)X0(b0);u$(w0,b0,d.current)}}}),[]),Z3(()=>{p.current.autoSaveId=Z,p.current.direction=G,p.current.dragState=A,p.current.id=k,p.current.onLayout=b,p.current.storage=K}),Ll({committedValuesRef:p,eagerValuesRef:j,groupId:k,layout:C,panelDataArray:j.current.panelDataArray,setLayout:x,panelGroupElement:N.current}),A0.useEffect(()=>{let{panelDataArray:a}=j.current;if(Z){if(C.length===0||C.length!==a.length)return;let X0=Dx[Z];if(X0==null)X0=Il(Ol,Cl),Dx[Z]=X0;let J0=[...a],w0=new Map(i.current);X0(Z,J0,w0,C,K)}},[Z,C,K]),A0.useEffect(()=>{{let{panelDataArray:a}=j.current,{didLogIdAndOrderWarning:X0,didLogPanelConstraintsWarning:J0,prevPanelIds:w0}=$0.current;if(!X0){let b0=a.map(({id:p0})=>p0);if($0.current.prevPanelIds=b0,w0.length>0&&!JK(w0,b0)){if(a.find(({idIsFromProps:p0,order:g0})=>!p0||g0==null))$0.current.didLogIdAndOrderWarning=!0,console.warn("WARNING: Panel id and order props recommended when panels are dynamically rendered")}}if(!J0){let b0=a.map((N0)=>N0.constraints);for(let N0=0;N0<b0.length;N0++){let p0=a[N0];if(J1(p0,`Panel data not found for index ${N0}`),!Al({panelConstraints:b0,panelId:p0.id,panelIndex:N0})){$0.current.didLogPanelConstraintsWarning=!0;break}}}}});let s=A0.useCallback((a)=>{let{onLayout:X0}=p.current,{layout:J0,panelDataArray:w0}=j.current;if(a.constraints.collapsible){let b0=w0.map((L5)=>L5.constraints),{collapsedSize:N0=0,panelSize:p0,pivotIndices:g0}=w3(w0,a,J0);if(J1(p0!=null,`Panel size not found for panel "${a.id}"`),!F8(p0,N0)){i.current.set(a.id,p0);let p1=l$(w0,a)===w0.length-1?p0-N0:N0-p0,N1=RJ({delta:p1,initialLayout:J0,panelConstraints:b0,pivotIndices:g0,prevLayout:J0,trigger:"imperative-api"});if(!jB(J0,N1)){if(x(N1),j.current.layout=N1,X0)X0(N1);u$(w0,N1,d.current)}}}},[]),E=A0.useCallback((a,X0)=>{let{onLayout:J0}=p.current,{layout:w0,panelDataArray:b0}=j.current;if(a.constraints.collapsible){let N0=b0.map((_1)=>_1.constraints),{collapsedSize:p0=0,panelSize:g0=0,minSize:L5=0,pivotIndices:p1}=w3(b0,a,w0),N1=X0!==null&&X0!==void 0?X0:L5;if(F8(g0,p0)){let _1=i.current.get(a.id),W1=_1!=null&&_1>=N1?_1:N1,E0=l$(b0,a)===b0.length-1?g0-W1:W1-g0,F5=RJ({delta:E0,initialLayout:w0,panelConstraints:N0,pivotIndices:p1,prevLayout:w0,trigger:"imperative-api"});if(!jB(w0,F5)){if(x(F5),j.current.layout=F5,J0)J0(F5);u$(b0,F5,d.current)}}}},[]),Q0=A0.useCallback((a)=>{let{layout:X0,panelDataArray:J0}=j.current,{panelSize:w0}=w3(J0,a,X0);return J1(w0!=null,`Panel size not found for panel "${a.id}"`),w0},[]),G0=A0.useCallback((a,X0)=>{let{panelDataArray:J0}=j.current,w0=l$(J0,a);return Tl({defaultSize:X0,dragState:A,layout:C,panelData:J0,panelIndex:w0})},[A,C]),q0=A0.useCallback((a)=>{let{layout:X0,panelDataArray:J0}=j.current,{collapsedSize:w0=0,collapsible:b0,panelSize:N0}=w3(J0,a,X0);return J1(N0!=null,`Panel size not found for panel "${a.id}"`),b0===!0&&F8(N0,w0)},[]),F0=A0.useCallback((a)=>{let{layout:X0,panelDataArray:J0}=j.current,{collapsedSize:w0=0,collapsible:b0,panelSize:N0}=w3(J0,a,X0);return J1(N0!=null,`Panel size not found for panel "${a.id}"`),!b0||X3(N0,w0)>0},[]),e=A0.useCallback((a)=>{let{panelDataArray:X0}=j.current;X0.push(a),X0.sort((J0,w0)=>{let b0=J0.order,N0=w0.order;if(b0==null&&N0==null)return 0;else if(b0==null)return-1;else if(N0==null)return 1;else return b0-N0}),j.current.panelDataArrayChanged=!0,S()},[S]);Z3(()=>{if(j.current.panelDataArrayChanged){j.current.panelDataArrayChanged=!1;let{autoSaveId:a,onLayout:X0,storage:J0}=p.current,{layout:w0,panelDataArray:b0}=j.current,N0=null;if(a){let g0=_l(a,b0,J0);if(g0)i.current=new Map(Object.entries(g0.expandToSizes)),N0=g0.layout}if(N0==null)N0=Nl({panelDataArray:b0});let p0=Sx({layout:N0,panelConstraints:b0.map((g0)=>g0.constraints)});if(!JK(w0,p0)){if(x(p0),j.current.layout=p0,X0)X0(p0);u$(b0,p0,d.current)}}}),Z3(()=>{let a=j.current;return()=>{a.layout=[]}},[]);let B0=A0.useCallback((a)=>{let X0=!1,J0=N.current;if(J0){if(window.getComputedStyle(J0,null).getPropertyValue("direction")==="rtl")X0=!0}return function(b0){b0.preventDefault();let N0=N.current;if(!N0)return()=>null;let{direction:p0,dragState:g0,id:L5,keyboardResizeBy:p1,onLayout:N1}=p.current,{layout:_1,panelDataArray:W1}=j.current,{initialLayout:iw}=g0!==null&&g0!==void 0?g0:{},E0=ox(L5,a,N0),F5=kl(b0,a,p0,g0,p1,N0),T1=p0==="horizontal";if(T1&&X0)F5=-F5;let pw=W1.map((I4)=>I4.constraints),a5=RJ({delta:F5,initialLayout:iw!==null&&iw!==void 0?iw:_1,panelConstraints:pw,pivotIndices:E0,prevLayout:_1,trigger:jx(b0)?"keyboard":"mouse-or-touch"}),G2=!jB(_1,a5);if(Ex(b0)||ux(b0)){if(Z0.current!=F5)if(Z0.current=F5,!G2&&F5!==0)if(T1)ZK(a,F5<0?cx:ax);else ZK(a,F5<0?ix:px);else ZK(a,0)}if(G2){if(x(a5),j.current.layout=a5,N1)N1(a5);u$(W1,a5,d.current)}}},[]),u=A0.useCallback((a,X0)=>{let{onLayout:J0}=p.current,{layout:w0,panelDataArray:b0}=j.current,N0=b0.map((_1)=>_1.constraints),{panelSize:p0,pivotIndices:g0}=w3(b0,a,w0);J1(p0!=null,`Panel size not found for panel "${a.id}"`);let p1=l$(b0,a)===b0.length-1?p0-X0:X0-p0,N1=RJ({delta:p1,initialLayout:w0,panelConstraints:N0,pivotIndices:g0,prevLayout:w0,trigger:"imperative-api"});if(!jB(w0,N1)){if(x(N1),j.current.layout=N1,J0)J0(N1);u$(b0,N1,d.current)}},[]),o=A0.useCallback((a,X0)=>{let{layout:J0,panelDataArray:w0}=j.current,{collapsedSize:b0=0,collapsible:N0}=X0,{collapsedSize:p0=0,collapsible:g0,maxSize:L5=100,minSize:p1=0}=a.constraints,{panelSize:N1}=w3(w0,a,J0);if(N1==null)return;if(N0&&g0&&F8(N1,b0)){if(!F8(b0,p0))u(a,p0)}else if(N1<p1)u(a,p1);else if(N1>L5)u(a,L5)},[u]),l=A0.useCallback((a,X0)=>{let{direction:J0}=p.current,{layout:w0}=j.current;if(!N.current)return;let b0=pB(a,N.current);J1(b0,`Drag handle element not found for id "${a}"`);let N0=tx(J0,X0);_({dragHandleId:a,dragHandleRect:b0.getBoundingClientRect(),initialCursorPosition:N0,initialLayout:w0})},[]),M=A0.useCallback(()=>{_(null)},[]),z0=A0.useCallback((a)=>{let{panelDataArray:X0}=j.current,J0=l$(X0,a);if(J0>=0)X0.splice(J0,1),delete d.current[a.id],j.current.panelDataArrayChanged=!0,S()},[S]),m=A0.useMemo(()=>({collapsePanel:s,direction:G,dragState:A,expandPanel:E,getPanelSize:Q0,getPanelStyle:G0,groupId:k,isPanelCollapsed:q0,isPanelExpanded:F0,reevaluatePanelConstraints:o,registerPanel:e,registerResizeHandle:B0,resizePanel:u,startDragging:l,stopDragging:M,unregisterPanel:z0,panelGroupElement:N.current}),[s,A,G,E,Q0,G0,k,q0,F0,o,e,B0,u,l,M,z0]),r={display:"flex",flexDirection:G==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return A0.createElement(cB.Provider,{value:m},A0.createElement(L,{...U,children:J,className:z,id:Q,ref:N,style:{...r,...F},[C5.group]:"",[C5.groupDirection]:G,[C5.groupId]:k}))}var QK=A0.forwardRef((Z,J)=>A0.createElement(Zm,{...Z,forwardedRef:J}));Zm.displayName="PanelGroup";QK.displayName="forwardRef(PanelGroup)";function l$(Z,J){return Z.findIndex((z)=>z===J||z.id===J.id)}function w3(Z,J,z){let G=l$(Z,J),Q=G===Z.length-1?[G-1,G]:[G,G+1],b=z[G];return{...J.constraints,panelSize:b,pivotIndices:Q}}function Ml({disabled:Z,handleId:J,resizeHandler:z,panelGroupElement:G}){A0.useEffect(()=>{if(Z||z==null||G==null)return;let v=pB(J,G);if(v==null)return;let Q=(b)=>{if(b.defaultPrevented)return;switch(b.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{b.preventDefault(),z(b);break}case"F6":{b.preventDefault();let g=v.getAttribute(C5.groupId);J1(g,`No group element found for id "${g}"`);let K=DJ(g,G),F=nx(g,J,G);J1(F!==null,`No resize element found for id "${J}"`);let L=b.shiftKey?F>0?F-1:K.length-1:F+1<K.length?F+1:0;K[L].focus();break}}};return v.addEventListener("keydown",Q),()=>{v.removeEventListener("keydown",Q)}},[G,Z,J,z])}function gK({children:Z=null,className:J="",disabled:z=!1,hitAreaMargins:G,id:v,onBlur:Q,onClick:b,onDragging:g,onFocus:K,onPointerDown:F,onPointerUp:L,style:U={},tabIndex:k=0,tagName:N="div",...A}){var _,C;let x=A0.useRef(null),S=A0.useRef({onClick:b,onDragging:g,onPointerDown:F,onPointerUp:L});A0.useEffect(()=>{S.current.onClick=b,S.current.onDragging=g,S.current.onPointerDown=F,S.current.onPointerUp=L});let d=A0.useContext(cB);if(d===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:i,groupId:Z0,registerResizeHandle:p,startDragging:j,stopDragging:$0,panelGroupElement:s}=d,E=GK(v),[Q0,G0]=A0.useState("inactive"),[q0,F0]=A0.useState(!1),[e,B0]=A0.useState(null),u=A0.useRef({state:Q0});Z3(()=>{u.current.state=Q0}),A0.useEffect(()=>{if(z)B0(null);else{let z0=p(E);B0(()=>z0)}},[z,E,p]);let o=(_=G===null||G===void 0?void 0:G.coarse)!==null&&_!==void 0?_:15,l=(C=G===null||G===void 0?void 0:G.fine)!==null&&C!==void 0?C:5;return A0.useEffect(()=>{if(z||e==null)return;let z0=x.current;J1(z0,"Element ref not attached");let m=!1;return gl(E,z0,i,{coarse:o,fine:l},(a,X0,J0)=>{if(!X0){G0("inactive");return}switch(a){case"down":{G0("drag"),m=!1,J1(J0,'Expected event to be defined for "down" action'),j(E,J0);let{onDragging:w0,onPointerDown:b0}=S.current;w0===null||w0===void 0||w0(!0),b0===null||b0===void 0||b0();break}case"move":{let{state:w0}=u.current;if(m=!0,w0!=="drag")G0("hover");J1(J0,'Expected event to be defined for "move" action'),e(J0);break}case"up":{G0("hover"),$0();let{onClick:w0,onDragging:b0,onPointerUp:N0}=S.current;if(b0===null||b0===void 0||b0(!1),N0===null||N0===void 0||N0(),!m)w0===null||w0===void 0||w0();break}}})},[o,i,z,l,p,E,e,j,$0]),Ml({disabled:z,handleId:E,resizeHandler:e,panelGroupElement:s}),A0.createElement(N,{...A,children:Z,className:J,id:v,onBlur:()=>{F0(!1),Q===null||Q===void 0||Q()},onFocus:()=>{F0(!0),K===null||K===void 0||K()},ref:x,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...U},tabIndex:k,[C5.groupDirection]:i,[C5.groupId]:Z0,[C5.resizeHandle]:"",[C5.resizeHandleActive]:Q0==="drag"?"pointer":q0?"keyboard":void 0,[C5.resizeHandleEnabled]:!z,[C5.resizeHandleId]:E,[C5.resizeHandleState]:Q0})}gK.displayName="PanelResizeHandle";var i$=P(H0(),1);function Xm({className:Z,...J}){return i$.jsxDEV(QK,{"data-slot":"resizable-panel-group",className:O0("flex size-full data-[panel-group-direction=vertical]:flex-col",Z),...J},void 0,!1,void 0,this)}function bK({...Z}){return i$.jsxDEV(BK,{"data-slot":"resizable-panel",...Z},void 0,!1,void 0,this)}function Jm({withHandle:Z,className:J,...z}){return i$.jsxDEV(gK,{"data-slot":"resizable-handle",className:O0("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",J),...z,children:Z&&i$.jsxDEV("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border",children:i$.jsxDEV(oX,{className:"size-2.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Y2=P(K0(),1);var Q1=P(H0(),1),xl=["@all","@builders","@scouts","@reviewers","@leads","@mergers","@coordinators"],ml=["status","question","result","error"],Pl=["low","normal","high","urgent"];function Ym({open:Z,onClose:J,onSuccess:z,onError:G,replyTo:v}){let Q=Ew(),b=Y2.useRef(null),g=Y2.useId(),[K,F]=Y2.useState(""),[L,U]=Y2.useState("operator"),[k,N]=Y2.useState(""),[A,_]=Y2.useState(""),[C,x]=Y2.useState("status"),[S,d]=Y2.useState("normal"),[i,Z0]=Y2.useState(""),[p,j]=Y2.useState(!1),[$0,s]=Y2.useState(!1),[E,Q0]=Y2.useState(null),{data:G0=[]}=n0({queryKey:["agents-list"],queryFn:gJ,enabled:Z});if(Y2.useEffect(()=>{if(!Z)return;if(Q0(null),s(!1),v)F(v.to),N(v.subject.startsWith("Re: ")?v.subject:`Re: ${v.subject}`),_(""),j(!1),Z0("");else F(""),N(""),_(""),x("status"),d("normal"),j(!1),Z0("")},[Z,v]),Y2.useEffect(()=>{if(!Z)return;let m=window.setTimeout(()=>{b.current?.focus()},0);return()=>window.clearTimeout(m)},[Z]),Y2.useEffect(()=>{if(!Z)return;function m(r){if(r.key==="Escape")r.preventDefault(),J()}return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[Z,J]),!Z)return null;async function q0(){if($0)return;Q0(null);let m=K.trim(),r=k.trim(),a=A.trim();if(!v){if(m===""){Q0("To is required");return}if(r===""){Q0("Subject is required");return}}if(a===""){Q0("Body is required");return}let X0;if(p&&i.trim()!=="")try{JSON.parse(i),X0=i}catch(J0){Q0("Payload must be valid JSON");return}s(!0);try{let J0;if(v)J0={messageId:(await sb(v.messageId,{from:L.trim()||"operator",body:a,type:C,priority:S})).messageId};else J0=await ob({to:m,from:L.trim()||"operator",subject:r,body:a,type:C,priority:S,payload:X0});await Q.invalidateQueries({queryKey:["mail"]});let w0=J0.messageIds??J0.messageId??"";z?.(w0),J()}catch(J0){let w0=J0 instanceof Error?J0:Error(String(J0));Q0(w0.message),G?.(w0)}finally{s(!1)}}function F0(m){if((m.metaKey||m.ctrlKey)&&m.key==="Enter")m.preventDefault(),q0()}let e=[...new Set([...G0,...xl])],B0=v!==void 0,u=`${g}-to`,o=`${g}-subject`,l=`${g}-from`,M=`${g}-type`,z0=`${g}-priority`;return Q1.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":B0?"Reply to message":"Compose message",children:[Q1.jsxDEV("button",{type:"button","aria-label":"Close composer",className:"absolute inset-0 bg-foreground/40 backdrop-blur-sm cursor-default",onClick:J},void 0,!1,void 0,this),Q1.jsxDEV(R1,{className:"relative w-full max-w-xl max-h-[90vh] overflow-auto py-5 gap-0",children:Q1.jsxDEV(S1,{className:"flex flex-col gap-4 px-6",children:[Q1.jsxDEV("div",{className:"flex items-center justify-between",children:[Q1.jsxDEV("h2",{className:"text-lg font-semibold tracking-tight",children:B0?"Reply":"New message"},void 0,!1,void 0,this),Q1.jsxDEV(y1,{type:"button",variant:"ghost",size:"sm",onClick:J,children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[Q1.jsxDEV("label",{htmlFor:u,className:"text-muted-foreground text-xs font-medium",children:"To"},void 0,!1,void 0,this),Q1.jsxDEV(d6,{id:u,ref:(m)=>{if(!B0)b.current=m},type:"text",list:B0?void 0:g,value:K,onChange:(m)=>F(m.target.value),placeholder:"agent or @group",readOnly:B0,required:!B0},void 0,!1,void 0,this),Q1.jsxDEV("datalist",{id:g,children:e.map((m)=>Q1.jsxDEV("option",{value:m},m,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[Q1.jsxDEV("label",{htmlFor:o,className:"text-muted-foreground text-xs font-medium",children:"Subject"},void 0,!1,void 0,this),Q1.jsxDEV(d6,{id:o,type:"text",value:k,onChange:(m)=>N(m.target.value),readOnly:B0,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("label",{className:"flex flex-col gap-1.5 text-sm",children:[Q1.jsxDEV("span",{className:"text-muted-foreground text-xs font-medium",children:"Body"},void 0,!1,void 0,this),Q1.jsxDEV("textarea",{ref:(m)=>{if(B0)b.current=m},className:O0(dB(),"font-mono leading-relaxed"),rows:6,value:A,onChange:(m)=>_(m.target.value),onKeyDown:F0,placeholder:"Cmd/Ctrl+Enter to send",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{className:"grid grid-cols-3 gap-3 text-sm",children:[Q1.jsxDEV("div",{className:"flex flex-col gap-1.5",children:[Q1.jsxDEV("label",{htmlFor:l,className:"text-muted-foreground text-xs font-medium",children:"From"},void 0,!1,void 0,this),Q1.jsxDEV(d6,{id:l,type:"text",value:L,onChange:(m)=>U(m.target.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{className:"flex flex-col gap-1.5",children:[Q1.jsxDEV("label",{htmlFor:M,className:"text-muted-foreground text-xs font-medium",children:"Type"},void 0,!1,void 0,this),Q1.jsxDEV(Uw,{id:M,value:C,onChange:(m)=>x(m.target.value),children:ml.map((m)=>Q1.jsxDEV("option",{value:m,children:m},m,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{className:"flex flex-col gap-1.5",children:[Q1.jsxDEV("label",{htmlFor:z0,className:"text-muted-foreground text-xs font-medium",children:"Priority"},void 0,!1,void 0,this),Q1.jsxDEV(Uw,{id:z0,value:S,onChange:(m)=>d(m.target.value),children:Pl.map((m)=>Q1.jsxDEV("option",{value:m,children:m},m,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!B0&&Q1.jsxDEV("div",{className:"flex flex-col gap-2 text-sm",children:[Q1.jsxDEV("button",{type:"button",className:"text-xs text-muted-foreground self-start hover:text-foreground transition-colors",onClick:()=>j((m)=>!m),children:p?"Hide advanced":"Show advanced"},void 0,!1,void 0,this),p&&Q1.jsxDEV("label",{className:"flex flex-col gap-1.5",children:[Q1.jsxDEV("span",{className:"text-muted-foreground text-xs font-medium",children:"Payload (JSON)"},void 0,!1,void 0,this),Q1.jsxDEV("textarea",{className:O0(dB(),"font-mono leading-relaxed"),rows:4,value:i,onChange:(m)=>Z0(m.target.value),placeholder:'{"key": "value"}'},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E!==null&&Q1.jsxDEV("div",{className:"rounded-md border border-destructive/50 bg-destructive/10 px-3 py-2.5 text-sm text-destructive",children:E},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"flex items-center justify-end gap-2 pt-1",children:[Q1.jsxDEV(y1,{type:"button",variant:"outline",onClick:J,disabled:$0,children:"Cancel"},void 0,!1,void 0,this),Q1.jsxDEV(y1,{type:"button",onClick:()=>{q0()},disabled:$0,children:$0?"Sending…":B0?"Send reply":"Send"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var k8=P(H0(),1);function zm({filters:Z,onChange:J}){let{data:z=[]}=n0({queryKey:["agents-list"],queryFn:gJ});return k8.jsxDEV("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border bg-muted/30 shrink-0",children:[k8.jsxDEV(y1,{variant:Z.unread?"default":"outline",size:"sm",onClick:()=>J({...Z,unread:!Z.unread}),children:"Unread"},void 0,!1,void 0,this),k8.jsxDEV(Uw,{className:"px-2.5 py-1.5",value:Z.from,onChange:(G)=>J({...Z,from:G.target.value}),children:[k8.jsxDEV("option",{value:"",children:"All from"},void 0,!1,void 0,this),z.map((G)=>k8.jsxDEV("option",{value:G,children:G},G,!1,void 0,this))]},void 0,!0,void 0,this),k8.jsxDEV(Uw,{className:"px-2.5 py-1.5",value:Z.to,onChange:(G)=>J({...Z,to:G.target.value}),children:[k8.jsxDEV("option",{value:"",children:"All to"},void 0,!1,void 0,this),z.map((G)=>k8.jsxDEV("option",{value:G,children:G},G,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var P1=P(H0(),1);function Gm(Z){switch(Z){case"error":case"merge_failed":return"destructive";case"worker_done":case"merged":case"merge_ready":return"default";case"status":return"outline";default:return"secondary"}}function fl({msg:Z}){return P1.jsxDEV("div",{className:"flex flex-col gap-1.5 px-6 py-4 border-b border-border last:border-0",children:[P1.jsxDEV("div",{className:"flex items-center justify-between gap-2",children:[P1.jsxDEV("span",{className:"text-sm font-medium truncate flex-1",children:Z.subject},void 0,!1,void 0,this),P1.jsxDEV(x1,{variant:Gm(Z.type),children:Z.type},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P1.jsxDEV("span",{className:"text-xs text-muted-foreground",children:[Z.from," → ",Z.to]},void 0,!0,void 0,this),P1.jsxDEV(L4,{variant:"block",className:"mt-2",children:Z.body},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Bm({messageId:Z,onReply:J}){let{data:z,isLoading:G}=n0({queryKey:["mail","message",Z],queryFn:()=>nb(Z??""),enabled:Z!==null});if(Z===null)return P1.jsxDEV("div",{className:"h-full flex items-center justify-center p-8",children:P1.jsxDEV(U5,{icon:sX,title:"Select a message",description:"Choose a thread on the left to read it."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(G||z===void 0)return P1.jsxDEV("div",{className:"h-full flex items-center justify-center p-8",children:P1.jsxDEV(H5,{label:"Loading message"},void 0,!1,void 0,this)},void 0,!1,void 0,this);let{message:v,thread:Q}=z;return P1.jsxDEV(RB,{className:"h-full",children:P1.jsxDEV("div",{className:"flex flex-col gap-0",children:[P1.jsxDEV("div",{className:"px-6 py-4 border-b border-border flex flex-col gap-1.5",children:[P1.jsxDEV("div",{className:"flex items-center justify-between gap-3",children:[P1.jsxDEV("span",{className:"font-semibold text-lg truncate flex-1 tracking-tight",children:v.subject},void 0,!1,void 0,this),P1.jsxDEV("div",{className:"flex items-center gap-2 shrink-0",children:[P1.jsxDEV(x1,{variant:Gm(v.type),children:v.type},void 0,!1,void 0,this),J!==void 0&&P1.jsxDEV(y1,{type:"button",variant:"outline",size:"sm",onClick:()=>J(v),children:"Reply"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P1.jsxDEV("span",{className:"text-xs text-muted-foreground",children:[v.from," → ",v.to]},void 0,!0,void 0,this),P1.jsxDEV("span",{className:"text-xs text-muted-foreground",children:new Date(v.createdAt).toISOString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P1.jsxDEV("div",{className:"px-6 py-4 border-b border-border",children:P1.jsxDEV(L4,{variant:"block",children:v.body},void 0,!1,void 0,this)},void 0,!1,void 0,this),v.payload!==null&&P1.jsxDEV("div",{className:"px-6 py-4 border-b border-border",children:P1.jsxDEV(x9,{children:[P1.jsxDEV(m9,{children:"Payload"},void 0,!1,void 0,this),P1.jsxDEV(P9,{className:"mt-3",children:P1.jsxDEV(L4,{variant:"block",children:(()=>{try{return JSON.stringify(JSON.parse(v.payload??""),null,2)}catch{return v.payload??""}})()},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Q.length>0&&P1.jsxDEV("div",{className:"flex flex-col",children:[P1.jsxDEV("div",{className:"px-6 py-3 text-xs font-medium uppercase tracking-wide text-muted-foreground border-b border-border bg-muted/30",children:["Thread (",Q.length,")"]},void 0,!0,void 0,this),Q.map((b)=>P1.jsxDEV(fl,{msg:b},b.id,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var vm=P(K0(),1);var z2=P(H0(),1);function Vl(Z){switch(Z){case"error":case"merge_failed":return"destructive";case"worker_done":case"merged":case"merge_ready":return"default";case"status":return"outline";default:return"secondary"}}function Hm({items:Z,selectedId:J,onSelect:z,onDelete:G}){let v=vm.useRef(null);if(AB(v),Z.length===0)return z2.jsxDEV("div",{className:"flex-1 flex items-center justify-center p-8",children:z2.jsxDEV(U5,{icon:wJ,title:"No messages",description:z2.jsxDEV(z2.Fragment,{children:["Send one with"," ",z2.jsxDEV(L4,{children:'ap mail send --to coordinator --subject "..." --body "..." --type status'},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);return z2.jsxDEV("div",{ref:v,className:"flex-1 min-h-0 overflow-auto",children:z2.jsxDEV("div",{className:"flex flex-col",children:Z.map((Q)=>z2.jsxDEV("div",{className:"relative group",children:[z2.jsxDEV("button",{type:"button",onClick:()=>z(Q.id),className:["w-full flex flex-col gap-1.5 px-4 py-3 text-left border-b border-border hover:bg-accent/40 transition-colors outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:ring-inset",J===Q.id?"bg-accent text-accent-foreground":""].join(" "),children:[z2.jsxDEV("div",{className:"flex items-center justify-between gap-2 pr-7",children:[z2.jsxDEV("span",{className:"text-sm font-medium truncate flex-1",children:Q.subject},void 0,!1,void 0,this),z2.jsxDEV("div",{className:"flex items-center gap-1.5 shrink-0",children:[z2.jsxDEV(x1,{variant:Vl(Q.type),children:Q.type},void 0,!1,void 0,this),!Q.read&&z2.jsxDEV("div",{className:"size-2 rounded-full bg-primary"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z2.jsxDEV("span",{className:"text-xs text-muted-foreground",children:[Q.from," → ",Q.to]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G!==void 0&&z2.jsxDEV("button",{type:"button","aria-label":`Delete message ${Q.subject}`,onClick:(b)=>{b.stopPropagation(),G(Q.id)},className:"absolute top-2 right-2 opacity-60 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity rounded-md p-1.5 text-muted-foreground hover:text-destructive hover:bg-accent outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px]",children:z2.jsxDEV(GJ,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Q.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var D2=P(H0(),1);function hl(Z,J){let z=J.findIndex((G)=>G.id===Z.id);if(z!==-1){let G=[...J];return G[z]=Z,G}return[Z,...J]}function Qm(){let Z=Ew(),[J,z]=rB.useState(null),[G,v]=rB.useState({unread:!1,from:"",to:""}),[Q,b]=rB.useState({open:!1}),{data:g=[]}=n0({queryKey:["mail",G],queryFn:()=>rb(G),refetchInterval:5000});TM((N)=>{Z.setQueryData(["mail",G],(A)=>hl(N,A??[]))});function K(N){z(N),Z.setQueryData(["mail",G],(A)=>A!==void 0?A.map((_)=>_.id===N?{..._,read:!0}:_):void 0),Promise.resolve().then(() => KO).then(({markRead:A})=>A(N))}function F(N){b({open:!0,replyTo:{messageId:N.id,to:N.from,subject:N.subject}})}function L(){b({open:!0})}function U(){b({open:!1})}async function k(N){let A=["mail",G],_=Z.getQueryData(A);if(Z.setQueryData(A,(C)=>C!==void 0?C.filter((x)=>x.id!==N):void 0),J===N)z(null);try{await tb(N),await Z.invalidateQueries({queryKey:["mail"]})}catch(C){if(console.error("delete failed",C),_!==void 0)Z.setQueryData(A,_)}}return D2.jsxDEV(D2.Fragment,{children:[D2.jsxDEV(Xm,{direction:"horizontal",className:"h-full",children:[D2.jsxDEV(bK,{defaultSize:35,minSize:25,children:D2.jsxDEV("div",{className:"flex flex-col h-full",children:[D2.jsxDEV("div",{className:"flex items-center justify-between gap-2 px-4 py-3 border-b border-border shrink-0",children:[D2.jsxDEV("h1",{className:"text-base font-semibold tracking-tight",children:"Mail"},void 0,!1,void 0,this),D2.jsxDEV(y1,{size:"sm",onClick:L,children:"Compose"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D2.jsxDEV(zm,{filters:G,onChange:v},void 0,!1,void 0,this),D2.jsxDEV(Hm,{items:g,selectedId:J,onSelect:K,onDelete:(N)=>{k(N)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),D2.jsxDEV(Jm,{withHandle:!0},void 0,!1,void 0,this),D2.jsxDEV(bK,{defaultSize:65,children:D2.jsxDEV(Bm,{messageId:J,onReply:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D2.jsxDEV(Ym,{open:Q.open,onClose:U,replyTo:Q.replyTo,onError:(N)=>console.error("compose failed",N)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var gm=P(K0(),1);var i1=P(H0(),1),Rl={pending:"secondary",merging:"default",merged:"outline",conflict:"destructive",failed:"destructive"},yl=["all","pending","merging","merged","conflict","failed"];function bm(){let[Z,J]=gm.useState("all"),z=n0({queryKey:["merge-queue",Z],queryFn:()=>JW(Z==="all"?void 0:Z),refetchInterval:5000}),G=z.data??[];return i1.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[i1.jsxDEV("div",{className:"flex items-center justify-between",children:[i1.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Merge queue"},void 0,!1,void 0,this),i1.jsxDEV(Uw,{value:Z,onChange:(v)=>J(v.target.value),className:"w-40",children:yl.map((v)=>i1.jsxDEV("option",{value:v,children:v},v,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.isLoading&&i1.jsxDEV(H5,{label:"Loading merge queue"},void 0,!1,void 0,this),!z.isLoading&&G.length===0&&i1.jsxDEV(U5,{icon:D7,title:"Queue is empty",description:"Branches appear here when agents send merge_ready or you enqueue a merge."},void 0,!1,void 0,this),G.length>0&&i1.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 overflow-hidden bg-card",children:i1.jsxDEV(h9,{children:[i1.jsxDEV(R9,{children:i1.jsxDEV(k4,{className:"bg-muted/40 hover:bg-muted/40",children:[i1.jsxDEV(e1,{className:"px-4 h-11",children:"Branch"},void 0,!1,void 0,this),i1.jsxDEV(e1,{className:"px-4 h-11",children:"Agent"},void 0,!1,void 0,this),i1.jsxDEV(e1,{className:"px-4 h-11",children:"Status"},void 0,!1,void 0,this),i1.jsxDEV(e1,{className:"px-4 h-11",children:"Tier"},void 0,!1,void 0,this),i1.jsxDEV(e1,{className:"px-4 h-11",children:"Files"},void 0,!1,void 0,this),i1.jsxDEV(e1,{className:"px-4 h-11",children:"Enqueued"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),i1.jsxDEV(y9,{children:G.map((v)=>i1.jsxDEV(k4,{children:[i1.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3 break-all",children:v.branchName},void 0,!1,void 0,this),i1.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3",children:v.agentName},void 0,!1,void 0,this),i1.jsxDEV(w5,{className:"px-4 py-3",children:i1.jsxDEV(x1,{variant:Rl[v.status],children:v.status},void 0,!1,void 0,this)},void 0,!1,void 0,this),i1.jsxDEV(w5,{className:"text-xs px-4 py-3",children:v.resolvedTier??"—"},void 0,!1,void 0,this),i1.jsxDEV(w5,{className:"text-xs px-4 py-3 tabular-nums",children:v.filesModified.length},void 0,!1,void 0,this),i1.jsxDEV(w5,{className:"text-xs px-4 py-3",children:$2(v.enqueuedAt)},void 0,!1,void 0,this)]},v.branchName,!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 A1=P(H0(),1);function Wm(){let[Z]=x7(),J=n0({queryKey:["runs"],queryFn:()=>W8(50),refetchInterval:5000}),z=J.data??[],G=Z.get("run")??z[0]?.id??null,v=n0({queryKey:["agents",G],queryFn:()=>QJ({runId:G??void 0}),enabled:G!==null,refetchInterval:5000}),Q=n0({queryKey:["metrics"],queryFn:()=>bJ(50),refetchInterval:1e4}),b=n0({queryKey:["errors","overview"],queryFn:()=>WJ({limit:100}),refetchInterval:1e4}),g=v.data??[],K=Q.data,F=b.data??[],L=g.filter((k)=>k.state==="working"||k.state==="in_turn"||k.state==="between_turns"||k.state==="booting").length,U=(K?.tokenTotals.inputTokens??0)+(K?.tokenTotals.outputTokens??0);if(J.isLoading)return A1.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:A1.jsxDEV(H5,{label:"Loading overview"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return A1.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[A1.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Overview"},void 0,!1,void 0,this),A1.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-4",children:[A1.jsxDEV(S2,{label:"Active agents",value:L,icon:R7},void 0,!1,void 0,this),A1.jsxDEV(S2,{label:"Runs",value:z.length,icon:eX},void 0,!1,void 0,this),A1.jsxDEV(S2,{label:"Sessions",value:K?.totalSessions??0,icon:pX,hint:K?`${K.completedSessions} completed`:void 0},void 0,!1,void 0,this),A1.jsxDEV(S2,{label:"Total cost",value:M$(K?.tokenTotals.estimatedCostUsd??0),icon:S7,hint:`${m6(U)} tokens`},void 0,!1,void 0,this),A1.jsxDEV(S2,{label:"Avg duration",value:x$(K?.averageDurationMs??0),icon:aX},void 0,!1,void 0,this),A1.jsxDEV(S2,{label:"Errors",value:F.length,icon:x6,tone:F.length>0?"destructive":"default"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[A1.jsxDEV(R1,{className:"lg:col-span-2",children:[A1.jsxDEV(t1,{children:A1.jsxDEV(c5,{className:"flex items-center justify-between text-sm",children:[A1.jsxDEV("span",{children:"Fleet snapshot"},void 0,!1,void 0,this),A1.jsxDEV(H9,{to:"/fleet",className:"text-xs text-muted-foreground hover:text-foreground",children:"View fleet →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A1.jsxDEV(S1,{children:A1.jsxDEV(DB,{agents:g.slice(0,8)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV(R1,{children:[A1.jsxDEV(t1,{children:A1.jsxDEV(c5,{className:"flex items-center justify-between text-sm",children:[A1.jsxDEV("span",{children:"Recent errors"},void 0,!1,void 0,this),A1.jsxDEV(H9,{to:"/errors",className:"text-xs text-muted-foreground hover:text-foreground",children:"All errors →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A1.jsxDEV(S1,{className:"flex flex-col gap-2",children:F.length===0?A1.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"No errors recorded."},void 0,!1,void 0,this):F.slice(0,6).map((k)=>A1.jsxDEV("div",{className:"text-xs border-b border-border/50 pb-2 last:border-0",children:[A1.jsxDEV("div",{className:"flex items-center justify-between gap-2",children:[A1.jsxDEV("span",{className:"font-mono",children:k.agentName},void 0,!1,void 0,this),A1.jsxDEV("span",{className:"text-muted-foreground",children:$2(k.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A1.jsxDEV("p",{className:"text-muted-foreground truncate",children:[k.toolName?`${k.toolName}: `:"",k.data??k.eventType]},void 0,!0,void 0,this)]},k.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var nB=P(K0(),1);var Tw=P(H0(),1);function Km(){let[Z,J]=nB.useState(null),z=n0({queryKey:["specs"],queryFn:()=>vW(),refetchInterval:1e4}),G=z.data??[];nB.useEffect(()=>{if(Z===null&&G.length>0&&G[0])J(G[0].taskId)},[Z,G]);let v=n0({queryKey:["spec",Z],queryFn:()=>Z?HW(Z):Promise.resolve(null),enabled:Z!==null});if(z.isLoading)return Tw.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:Tw.jsxDEV(H5,{label:"Loading specs"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(G.length===0)return Tw.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:Tw.jsxDEV(U5,{icon:rX,title:"No specs",description:"Specs written via ap spec write appear in .agentplate/specs/."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Tw.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-[16rem_1fr] gap-6",children:[Tw.jsxDEV("aside",{className:"flex flex-col gap-1",children:[Tw.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight mb-3",children:"Specs"},void 0,!1,void 0,this),G.map((Q)=>Tw.jsxDEV("button",{type:"button",onClick:()=>J(Q.taskId),className:`flex flex-col items-start rounded-md px-3 py-2 text-left text-sm transition-colors outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] ${Z===Q.taskId?"bg-accent text-accent-foreground":"hover:bg-accent/50 text-muted-foreground"}`,children:[Tw.jsxDEV("span",{className:"font-mono text-xs",children:Q.taskId},void 0,!1,void 0,this),Tw.jsxDEV("span",{className:"text-[10px] text-muted-foreground",children:[$2(Q.modifiedAt)," · ",Q.sizeBytes,"b"]},void 0,!0,void 0,this)]},Q.taskId,!0,void 0,this))]},void 0,!0,void 0,this),Tw.jsxDEV("section",{className:"rounded-xl border border-border ring-1 ring-foreground/10 bg-card p-5 min-h-64",children:[v.isLoading&&Tw.jsxDEV(H5,{label:"Loading spec"},void 0,!1,void 0,this),v.data?Tw.jsxDEV("pre",{className:"whitespace-pre-wrap break-words font-mono text-xs leading-relaxed",children:v.data.content},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var M2=P(H0(),1);function Um(){let Z=n0({queryKey:["worktrees"],queryFn:()=>YW(),refetchInterval:5000}),J=Z.data??[];return M2.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[M2.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Worktrees"},void 0,!1,void 0,this),Z.isLoading&&M2.jsxDEV(H5,{label:"Loading worktrees"},void 0,!1,void 0,this),!Z.isLoading&&J.length===0&&M2.jsxDEV(U5,{icon:nX,title:"No worktrees",description:"Agent worktrees appear here while they hold checked-out branches."},void 0,!1,void 0,this),J.length>0&&M2.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 overflow-hidden bg-card",children:M2.jsxDEV(h9,{children:[M2.jsxDEV(R9,{children:M2.jsxDEV(k4,{className:"bg-muted/40 hover:bg-muted/40",children:[M2.jsxDEV(e1,{className:"px-4 h-11",children:"Branch"},void 0,!1,void 0,this),M2.jsxDEV(e1,{className:"px-4 h-11",children:"Path"},void 0,!1,void 0,this),M2.jsxDEV(e1,{className:"px-4 h-11",children:"HEAD"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),M2.jsxDEV(y9,{children:J.map((z)=>M2.jsxDEV(k4,{children:[M2.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3",children:z.branch||"—"},void 0,!1,void 0,this),M2.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3 break-all text-muted-foreground",children:z.path},void 0,!1,void 0,this),M2.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3",children:z.head.slice(0,10)},void 0,!1,void 0,this)]},z.path,!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 b1=P(H0(),1),Sl=new Sg({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),Fm=document.getElementById("root");if(!Fm)throw Error("Root element not found");Lm.createRoot(Fm).render(b1.jsxDEV(qm.StrictMode,{children:b1.jsxDEV(FO,{children:b1.jsxDEV($M,{children:b1.jsxDEV(dg,{client:Sl,children:b1.jsxDEV(gb,{children:[b1.jsxDEV(NO,{children:b1.jsxDEV(Gb,{children:b1.jsxDEV(b2,{path:"/",element:b1.jsxDEV(vM,{},void 0,!1,void 0,this),children:[b1.jsxDEV(b2,{index:!0,element:b1.jsxDEV(Wm,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"fleet",element:b1.jsxDEV(Mx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"costs",element:b1.jsxDEV(AM,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"errors",element:b1.jsxDEV(Jx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"merge",element:b1.jsxDEV(bm,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"worktrees",element:b1.jsxDEV(Um,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"logs",element:b1.jsxDEV(Px,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"health",element:b1.jsxDEV(mx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"groups",element:b1.jsxDEV(xx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"specs",element:b1.jsxDEV(Km,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"/agents/:name",element:b1.jsxDEV(OM,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"coordinator",element:b1.jsxDEV(Xx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"mail",element:b1.jsxDEV(Qm,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(b2,{path:"*",element:b1.jsxDEV("div",{className:"p-6 text-muted-foreground text-sm",children:"404 — page not found."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),b1.jsxDEV(EW,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this));
298
-
299
- //# debugId=936EEE833630871864756E2164756E21
300
- //# sourceMappingURL=chunk-vm5rz679.js.map