@weaverclub/render 0.0.8 → 0.0.10

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.
@@ -0,0 +1,265 @@
1
+ var jP=Object.create;var{getPrototypeOf:AP,defineProperty:o_,getOwnPropertyNames:MP}=Object;var OP=Object.prototype.hasOwnProperty;var p=(J,X,Y)=>{Y=J!=null?jP(AP(J)):{};let W=X||!J||!J.__esModule?o_(Y,"default",{value:J,enumerable:!0}):Y;for(let K of MP(J))if(!OP.call(W,K))o_(W,K,{get:()=>J[K],enumerable:!0});return W};var f8=(J,X)=>()=>(X||J((X={exports:{}}).exports,X),X.exports);var Vz=(J,X)=>{for(var Y in X)o_(J,Y,{get:X[Y],enumerable:!0,configurable:!0,set:(W)=>X[Y]=()=>W})};var oj=f8((DP)=>{(function(){function J(){if(C=!1,S){var r=DP.unstable_now();w0=r;var e=!0;try{w:{E=!1,I&&(I=!1,m(c),c=-1),x=!0;var o=v;try{z:{U(r);for(M=Y(k);M!==null&&!(M.expirationTime>r&&q());){var g=M.callback;if(typeof g==="function"){M.callback=null,v=M.priorityLevel;var X0=g(M.expirationTime<=r);if(r=DP.unstable_now(),typeof X0==="function"){M.callback=X0,U(r),e=!0;break z}M===Y(k)&&W(k),U(r)}else W(k);M=Y(k)}if(M!==null)e=!0;else{var P=Y(j);P!==null&&L(H,P.startTime-r),e=!1}}break w}finally{M=null,v=o,x=!1}e=void 0}}finally{e?t():S=!1}}}function X(r,e){var o=r.length;r.push(e);w:for(;0<o;){var g=o-1>>>1,X0=r[g];if(0<K(X0,e))r[g]=e,r[o]=X0,o=g;else break w}}function Y(r){return r.length===0?null:r[0]}function W(r){if(r.length===0)return null;var e=r[0],o=r.pop();if(o!==e){r[0]=o;w:for(var g=0,X0=r.length,P=X0>>>1;g<P;){var z0=2*(g+1)-1,U0=r[z0],J0=z0+1,L0=r[J0];if(0>K(U0,o))J0<X0&&0>K(L0,U0)?(r[g]=L0,r[J0]=o,g=J0):(r[g]=U0,r[z0]=o,g=z0);else if(J0<X0&&0>K(L0,o))r[g]=L0,r[J0]=o,g=J0;else break w}}return e}function K(r,e){var o=r.sortIndex-e.sortIndex;return o!==0?o:r.id-e.id}function U(r){for(var e=Y(j);e!==null;){if(e.callback===null)W(j);else if(e.startTime<=r)W(j),e.sortIndex=e.expirationTime,X(k,e);else break;e=Y(j)}}function H(r){if(I=!1,U(r),!E)if(Y(k)!==null)E=!0,S||(S=!0,t());else{var e=Y(j);e!==null&&L(H,e.startTime-r)}}function q(){return C?!0:DP.unstable_now()-w0<d?!1:!0}function L(r,e){c=h(function(){r(DP.unstable_now())},e)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),DP.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var V=performance;DP.unstable_now=function(){return V.now()}}else{var N=Date,F=N.now();DP.unstable_now=function(){return N.now()-F}}var k=[],j=[],O=1,M=null,v=3,x=!1,E=!1,I=!1,C=!1,h=typeof setTimeout==="function"?setTimeout:null,m=typeof clearTimeout==="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null,S=!1,c=-1,d=5,w0=-1;if(typeof R==="function")var t=function(){R(J)};else if(typeof MessageChannel<"u"){var u=new MessageChannel,Q0=u.port2;u.port1.onmessage=J,t=function(){Q0.postMessage(null)}}else t=function(){h(J,0)};DP.unstable_IdlePriority=5,DP.unstable_ImmediatePriority=1,DP.unstable_LowPriority=4,DP.unstable_NormalPriority=3,DP.unstable_Profiling=null,DP.unstable_UserBlockingPriority=2,DP.unstable_cancelCallback=function(r){r.callback=null},DP.unstable_forceFrameRate=function(r){0>r||125<r?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<r?Math.floor(1000/r):5},DP.unstable_getCurrentPriorityLevel=function(){return v},DP.unstable_next=function(r){switch(v){case 1:case 2:case 3:var e=3;break;default:e=v}var o=v;v=e;try{return r()}finally{v=o}},DP.unstable_requestPaint=function(){C=!0},DP.unstable_runWithPriority=function(r,e){switch(r){case 1:case 2:case 3:case 4:case 5:break;default:r=3}var o=v;v=r;try{return e()}finally{v=o}},DP.unstable_scheduleCallback=function(r,e,o){var g=DP.unstable_now();switch(typeof o==="object"&&o!==null?(o=o.delay,o=typeof o==="number"&&0<o?g+o:g):o=g,r){case 1:var X0=-1;break;case 2:X0=250;break;case 5:X0=1073741823;break;case 4:X0=1e4;break;default:X0=5000}return X0=o+X0,r={id:O++,callback:e,priorityLevel:r,startTime:o,expirationTime:X0,sortIndex:-1},o>g?(r.sortIndex=o,X(j,r),Y(k)===null&&r===Y(j)&&(I?(m(c),c=-1):I=!0,L(H,o-g))):(r.sortIndex=X0,X(k,r),E||x||(E=!0,S||(S=!0,t()))),r},DP.unstable_shouldYield=q,DP.unstable_wrapCallback=function(r){var e=v;return function(){var o=v;v=e;try{return r.apply(this,arguments)}finally{v=o}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Y0=f8((TP,TY)=>{(function(){function J(T,s){Object.defineProperty(W.prototype,T,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",s[0],s[1])}})}function X(T){if(T===null||typeof T!=="object")return null;return T=n0&&T[n0]||T["@@iterator"],typeof T==="function"?T:null}function Y(T,s){T=(T=T.constructor)&&(T.displayName||T.name)||"ReactClass";var K0=T+"."+s;n[K0]||(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.",s,T),n[K0]=!0)}function W(T,s,K0){this.props=T,this.context=s,this.refs=A1,this.updater=K0||R0}function K(){}function U(T,s,K0){this.props=T,this.context=s,this.refs=A1,this.updater=K0||R0}function H(){}function q(T){return""+T}function L(T){try{q(T);var s=!1}catch(T0){s=!0}if(s){s=console;var K0=s.error,N0=typeof Symbol==="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return K0.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N0),q(T)}}function V(T){if(T==null)return null;if(typeof T==="function")return T.$$typeof===O0?null:T.displayName||T.name||null;if(typeof T==="string")return T;switch(T){case X0:return"Fragment";case z0:return"Profiler";case P:return"StrictMode";case S0:return"Suspense";case V0:return"SuspenseList";case r0:return"Activity"}if(typeof T==="object")switch(typeof T.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case g:return"Portal";case J0:return T.displayName||"Context";case U0:return(T._context.displayName||"Context")+".Consumer";case L0:var s=T.render;return T=T.displayName,T||(T=s.displayName||s.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case _0:return s=T.displayName||null,s!==null?s:V(T.type)||"Memo";case A0:s=T._payload,T=T._init;try{return V(T(s))}catch(K0){}}return null}function N(T){if(T===X0)return"<>";if(typeof T==="object"&&T!==null&&T.$$typeof===A0)return"<...>";try{var s=V(T);return s?"<"+s+">":"<...>"}catch(K0){return"<...>"}}function F(){var T=j0.A;return T===null?null:T.getOwner()}function k(){return Error("react-stack-top-frame")}function j(T){if(c0.call(T,"key")){var s=Object.getOwnPropertyDescriptor(T,"key").get;if(s&&s.isReactWarning)return!1}return T.key!==void 0}function O(T,s){function K0(){h0||(h0=!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)",s))}K0.isReactWarning=!0,Object.defineProperty(T,"key",{get:K0,configurable:!0})}function M(){var T=V(this.type);return x0[T]||(x0[T]=!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.")),T=this.props.ref,T!==void 0?T:null}function v(T,s,K0,N0,T0,a0){var u0=K0.ref;return T={$$typeof:o,type:T,key:s,props:K0,_owner:N0},(u0!==void 0?u0:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:M}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(T,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:T0}),Object.defineProperty(T,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a0}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function x(T,s){return s=v(T.type,s,T.props,T._owner,T._debugStack,T._debugTask),T._store&&(s._store.validated=T._store.validated),s}function E(T){I(T)?T._store&&(T._store.validated=1):typeof T==="object"&&T!==null&&T.$$typeof===A0&&(T._payload.status==="fulfilled"?I(T._payload.value)&&T._payload.value._store&&(T._payload.value._store.validated=1):T._store&&(T._store.validated=1))}function I(T){return typeof T==="object"&&T!==null&&T.$$typeof===o}function C(T){var s={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K0){return s[K0]})}function h(T,s){return typeof T==="object"&&T!==null&&T.key!=null?(L(T.key),C(""+T.key)):s.toString(36)}function m(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status==="string"?T.then(H,H):(T.status="pending",T.then(function(s){T.status==="pending"&&(T.status="fulfilled",T.value=s)},function(s){T.status==="pending"&&(T.status="rejected",T.reason=s)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function R(T,s,K0,N0,T0){var a0=typeof T;if(a0==="undefined"||a0==="boolean")T=null;var u0=!1;if(T===null)u0=!0;else switch(a0){case"bigint":case"string":case"number":u0=!0;break;case"object":switch(T.$$typeof){case o:case g:u0=!0;break;case A0:return u0=T._init,R(u0(T._payload),s,K0,N0,T0)}}if(u0){u0=T,T0=T0(u0);var $1=N0===""?"."+h(u0,0):N0;return q0(T0)?(K0="",$1!=null&&(K0=$1.replace(T1,"$&/")+"/"),R(T0,s,K0,"",function(Pw){return Pw})):T0!=null&&(I(T0)&&(T0.key!=null&&(u0&&u0.key===T0.key||L(T0.key)),K0=x(T0,K0+(T0.key==null||u0&&u0.key===T0.key?"":(""+T0.key).replace(T1,"$&/")+"/")+$1),N0!==""&&u0!=null&&I(u0)&&u0.key==null&&u0._store&&!u0._store.validated&&(K0._store.validated=2),T0=K0),s.push(T0)),1}if(u0=0,$1=N0===""?".":N0+":",q0(T))for(var d0=0;d0<T.length;d0++)N0=T[d0],a0=$1+h(N0,d0),u0+=R(N0,s,K0,a0,T0);else if(d0=X(T),typeof d0==="function")for(d0===T.entries&&(H1||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),H1=!0),T=d0.call(T),d0=0;!(N0=T.next()).done;)N0=N0.value,a0=$1+h(N0,d0++),u0+=R(N0,s,K0,a0,T0);else if(a0==="object"){if(typeof T.then==="function")return R(m(T),s,K0,N0,T0);throw s=String(T),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}return u0}function S(T,s,K0){if(T==null)return T;var N0=[],T0=0;return R(T,N0,"","",function(a0){return s.call(K0,a0,T0++)}),N0}function c(T){if(T._status===-1){var s=T._ioInfo;s!=null&&(s.start=s.end=performance.now()),s=T._result;var K0=s();if(K0.then(function(T0){if(T._status===0||T._status===-1){T._status=1,T._result=T0;var a0=T._ioInfo;a0!=null&&(a0.end=performance.now()),K0.status===void 0&&(K0.status="fulfilled",K0.value=T0)}},function(T0){if(T._status===0||T._status===-1){T._status=2,T._result=T0;var a0=T._ioInfo;a0!=null&&(a0.end=performance.now()),K0.status===void 0&&(K0.status="rejected",K0.reason=T0)}}),s=T._ioInfo,s!=null){s.value=K0;var N0=K0.displayName;typeof N0==="string"&&(s.name=N0)}T._status===-1&&(T._status=0,T._result=K0)}if(T._status===1)return s=T._result,s===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?`,s),"default"in s||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'))`,s),s.default;throw T._result}function d(){var T=j0.H;return T===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.`),T}function w0(){j0.asyncTransitions--}function t(T){if(zw===null)try{var s=("require"+Math.random()).slice(0,7);zw=(TY&&TY[s]).call(TY,"timers").setImmediate}catch(K0){zw=function(N0){Qw===!1&&(Qw=!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 T0=new MessageChannel;T0.port1.onmessage=N0,T0.port2.postMessage(void 0)}}return zw(T)}function u(T){return 1<T.length&&typeof AggregateError==="function"?AggregateError(T):T[0]}function Q0(T,s){s!==Vw-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. "),Vw=s}function r(T,s,K0){var N0=j0.actQueue;if(N0!==null)if(N0.length!==0)try{e(N0),t(function(){return r(T,s,K0)});return}catch(T0){j0.thrownErrors.push(T0)}else j0.actQueue=null;0<j0.thrownErrors.length?(N0=u(j0.thrownErrors),j0.thrownErrors.length=0,K0(N0)):s(T)}function e(T){if(!hw){hw=!0;var s=0;try{for(;s<T.length;s++){var K0=T[s];do{j0.didUsePromise=!1;var N0=K0(!1);if(N0!==null){if(j0.didUsePromise){T[s]=K0,T.splice(0,s);return}K0=N0}else break}while(1)}T.length=0}catch(T0){T.splice(0,s+1),j0.thrownErrors.push(T0)}finally{hw=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),X0=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),z0=Symbol.for("react.profiler"),U0=Symbol.for("react.consumer"),J0=Symbol.for("react.context"),L0=Symbol.for("react.forward_ref"),S0=Symbol.for("react.suspense"),V0=Symbol.for("react.suspense_list"),_0=Symbol.for("react.memo"),A0=Symbol.for("react.lazy"),r0=Symbol.for("react.activity"),n0=Symbol.iterator,n={},R0={isMounted:function(){return!1},enqueueForceUpdate:function(T){Y(T,"forceUpdate")},enqueueReplaceState:function(T){Y(T,"replaceState")},enqueueSetState:function(T){Y(T,"setState")}},I0=Object.assign,A1={};Object.freeze(A1),W.prototype.isReactComponent={},W.prototype.setState=function(T,s){if(typeof T!=="object"&&typeof T!=="function"&&T!=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,T,s,"setState")},W.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};var C0={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(N1 in C0)C0.hasOwnProperty(N1)&&J(N1,C0[N1]);K.prototype=W.prototype,C0=U.prototype=new K,C0.constructor=U,I0(C0,W.prototype),C0.isPureReactComponent=!0;var q0=Array.isArray,O0=Symbol.for("react.client.reference"),j0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},c0=Object.prototype.hasOwnProperty,b0=console.createTask?console.createTask:function(){return null};C0={react_stack_bottom_frame:function(T){return T()}};var h0,o0,x0={},l0=C0.react_stack_bottom_frame.bind(C0,k)(),y0=b0(N(k)),H1=!1,T1=/\/+/g,W1=typeof reportError==="function"?reportError:function(T){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T==="object"&&T!==null&&typeof T.message==="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(s))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",T);return}console.error(T)},Qw=!1,zw=null,Vw=0,_w=!1,hw=!1,J1=typeof queueMicrotask==="function"?function(T){queueMicrotask(function(){return queueMicrotask(T)})}:t;C0=Object.freeze({__proto__:null,c:function(T){return d().useMemoCache(T)}});var N1={map:S,forEach:function(T,s,K0){S(T,function(){s.apply(this,arguments)},K0)},count:function(T){var s=0;return S(T,function(){s++}),s},toArray:function(T){return S(T,function(s){return s})||[]},only:function(T){if(!I(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};TP.Activity=r0,TP.Children=N1,TP.Component=W,TP.Fragment=X0,TP.Profiler=z0,TP.PureComponent=U,TP.StrictMode=P,TP.Suspense=S0,TP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j0,TP.__COMPILER_RUNTIME=C0,TP.act=function(T){var s=j0.actQueue,K0=Vw;Vw++;var N0=j0.actQueue=s!==null?s:[],T0=!1;try{var a0=T()}catch(d0){j0.thrownErrors.push(d0)}if(0<j0.thrownErrors.length)throw Q0(s,K0),T=u(j0.thrownErrors),j0.thrownErrors.length=0,T;if(a0!==null&&typeof a0==="object"&&typeof a0.then==="function"){var u0=a0;return J1(function(){T0||_w||(_w=!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(d0,Pw){T0=!0,u0.then(function(W2){if(Q0(s,K0),K0===0){try{e(N0),t(function(){return r(W2,d0,Pw)})}catch(t4){j0.thrownErrors.push(t4)}if(0<j0.thrownErrors.length){var K8=u(j0.thrownErrors);j0.thrownErrors.length=0,Pw(K8)}}else d0(W2)},function(W2){Q0(s,K0),0<j0.thrownErrors.length?(W2=u(j0.thrownErrors),j0.thrownErrors.length=0,Pw(W2)):Pw(W2)})}}}var $1=a0;if(Q0(s,K0),K0===0&&(e(N0),N0.length!==0&&J1(function(){T0||_w||(_w=!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(() => ...)"))}),j0.actQueue=null),0<j0.thrownErrors.length)throw T=u(j0.thrownErrors),j0.thrownErrors.length=0,T;return{then:function(d0,Pw){T0=!0,K0===0?(j0.actQueue=N0,t(function(){return r($1,d0,Pw)})):d0($1)}}},TP.cache=function(T){return function(){return T.apply(null,arguments)}},TP.cacheSignal=function(){return null},TP.captureOwnerStack=function(){var T=j0.getCurrentStack;return T===null?null:T()},TP.cloneElement=function(T,s,K0){if(T===null||T===void 0)throw Error("The argument must be a React element, but you passed "+T+".");var N0=I0({},T.props),T0=T.key,a0=T._owner;if(s!=null){var u0;w:{if(c0.call(s,"ref")&&(u0=Object.getOwnPropertyDescriptor(s,"ref").get)&&u0.isReactWarning){u0=!1;break w}u0=s.ref!==void 0}u0&&(a0=F()),j(s)&&(L(s.key),T0=""+s.key);for($1 in s)!c0.call(s,$1)||$1==="key"||$1==="__self"||$1==="__source"||$1==="ref"&&s.ref===void 0||(N0[$1]=s[$1])}var $1=arguments.length-2;if($1===1)N0.children=K0;else if(1<$1){u0=Array($1);for(var d0=0;d0<$1;d0++)u0[d0]=arguments[d0+2];N0.children=u0}N0=v(T.type,T0,N0,a0,T._debugStack,T._debugTask);for(T0=2;T0<arguments.length;T0++)E(arguments[T0]);return N0},TP.createContext=function(T){return T={$$typeof:J0,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:U0,_context:T},T._currentRenderer=null,T._currentRenderer2=null,T},TP.createElement=function(T,s,K0){for(var N0=2;N0<arguments.length;N0++)E(arguments[N0]);N0={};var T0=null;if(s!=null)for(d0 in o0||!("__self"in s)||"key"in s||(o0=!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")),j(s)&&(L(s.key),T0=""+s.key),s)c0.call(s,d0)&&d0!=="key"&&d0!=="__self"&&d0!=="__source"&&(N0[d0]=s[d0]);var a0=arguments.length-2;if(a0===1)N0.children=K0;else if(1<a0){for(var u0=Array(a0),$1=0;$1<a0;$1++)u0[$1]=arguments[$1+2];Object.freeze&&Object.freeze(u0),N0.children=u0}if(T&&T.defaultProps)for(d0 in a0=T.defaultProps,a0)N0[d0]===void 0&&(N0[d0]=a0[d0]);T0&&O(N0,typeof T==="function"?T.displayName||T.name||"Unknown":T);var d0=1e4>j0.recentlyCreatedOwnerStacks++;return v(T,T0,N0,F(),d0?Error("react-stack-top-frame"):l0,d0?b0(N(T)):y0)},TP.createRef=function(){var T={current:null};return Object.seal(T),T},TP.forwardRef=function(T){T!=null&&T.$$typeof===_0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof T!=="function"?console.error("forwardRef requires a render function but was given %s.",T===null?"null":typeof T):T.length!==0&&T.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",T.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),T!=null&&T.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var s={$$typeof:L0,render:T},K0;return Object.defineProperty(s,"displayName",{enumerable:!1,configurable:!0,get:function(){return K0},set:function(N0){K0=N0,T.name||T.displayName||(Object.defineProperty(T,"name",{value:N0}),T.displayName=N0)}}),s},TP.isValidElement=I,TP.lazy=function(T){T={_status:-1,_result:T};var s={$$typeof:A0,_payload:T,_init:c},K0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return T._ioInfo=K0,s._debugInfo=[{awaited:K0}],s},TP.memo=function(T,s){T==null&&console.error("memo: The first argument must be a component. Instead received: %s",T===null?"null":typeof T),s={$$typeof:_0,type:T,compare:s===void 0?null:s};var K0;return Object.defineProperty(s,"displayName",{enumerable:!1,configurable:!0,get:function(){return K0},set:function(N0){K0=N0,T.name||T.displayName||(Object.defineProperty(T,"name",{value:N0}),T.displayName=N0)}}),s},TP.startTransition=function(T){var s=j0.T,K0={};K0._updatedFibers=new Set,j0.T=K0;try{var N0=T(),T0=j0.S;T0!==null&&T0(K0,N0),typeof N0==="object"&&N0!==null&&typeof N0.then==="function"&&(j0.asyncTransitions++,N0.then(w0,w0),N0.then(H,W1))}catch(a0){W1(a0)}finally{s===null&&K0._updatedFibers&&(T=K0._updatedFibers.size,K0._updatedFibers.clear(),10<T&&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.")),s!==null&&K0.types!==null&&(s.types!==null&&s.types!==K0.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."),s.types=K0.types),j0.T=s}},TP.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},TP.use=function(T){return d().use(T)},TP.useActionState=function(T,s,K0){return d().useActionState(T,s,K0)},TP.useCallback=function(T,s){return d().useCallback(T,s)},TP.useContext=function(T){var s=d();return T.$$typeof===U0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),s.useContext(T)},TP.useDebugValue=function(T,s){return d().useDebugValue(T,s)},TP.useDeferredValue=function(T,s){return d().useDeferredValue(T,s)},TP.useEffect=function(T,s){return T==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(T,s)},TP.useEffectEvent=function(T){return d().useEffectEvent(T)},TP.useId=function(){return d().useId()},TP.useImperativeHandle=function(T,s,K0){return d().useImperativeHandle(T,s,K0)},TP.useInsertionEffect=function(T,s){return T==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(T,s)},TP.useLayoutEffect=function(T,s){return T==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(T,s)},TP.useMemo=function(T,s){return d().useMemo(T,s)},TP.useOptimistic=function(T,s){return d().useOptimistic(T,s)},TP.useReducer=function(T,s,K0){return d().useReducer(T,s,K0)},TP.useRef=function(T){return d().useRef(T)},TP.useState=function(T){return d().useState(T)},TP.useSyncExternalStore=function(T,s,K0){return d().useSyncExternalStore(T,s,K0)},TP.useTransition=function(){return d().useTransition()},TP.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var nj=f8((xP)=>{var n_=p(Y0());(function(){function J(){}function X(N){return""+N}function Y(N,F,k){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{X(j);var O=!1}catch(M){O=!0}return O&&(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&&j[Symbol.toStringTag]||j.constructor.name||"Object"),X(j)),{$$typeof:L,key:j==null?null:""+j,children:N,containerInfo:F,implementation:k}}function W(N,F){if(N==="font")return"";if(typeof F==="string")return F==="use-credentials"?F:""}function K(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":'something with type "'+typeof N+'"'}function U(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":typeof N==="string"?JSON.stringify(N):typeof N==="number"?"`"+N+"`":'something with type "'+typeof N+'"'}function H(){var N=V.H;return N===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:
14
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
15
+ 2. You might be breaking the Rules of Hooks
16
+ 3. You might have more than one copy of React in the same app
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),N}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var q={d:{f:J,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:J,C:J,L:J,m:J,X:J,S:J,M:J},p:0,findDOMNode:null},L=Symbol.for("react.portal"),V=n_.__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"),xP.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,xP.createPortal=function(N,F){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!F||F.nodeType!==1&&F.nodeType!==9&&F.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(N,F,null,k)},xP.flushSync=function(N){var F=V.T,k=q.p;try{if(V.T=null,q.p=2,N)return N()}finally{V.T=F,q.p=k,q.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.")}},xP.preconnect=function(N,F){typeof N==="string"&&N?F!=null&&typeof F!=="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.",U(F)):F!=null&&typeof F.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.",K(F.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(N)),typeof N==="string"&&(F?(F=F.crossOrigin,F=typeof F==="string"?F==="use-credentials"?F:"":void 0):F=null,q.d.C(N,F))},xP.prefetchDNS=function(N){if(typeof N!=="string"||!N)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(N));else if(1<arguments.length){var F=arguments[1];typeof F==="object"&&F.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`.",U(F)):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`.",U(F))}typeof N==="string"&&q.d.D(N)},xP.preinit=function(N,F){if(typeof N==="string"&&N?F==null||typeof F!=="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.",U(F)):F.as!=="style"&&F.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".',U(F.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(N)),typeof N==="string"&&F&&typeof F.as==="string"){var k=F.as,j=W(k,F.crossOrigin),O=typeof F.integrity==="string"?F.integrity:void 0,M=typeof F.fetchPriority==="string"?F.fetchPriority:void 0;k==="style"?q.d.S(N,typeof F.precedence==="string"?F.precedence:void 0,{crossOrigin:j,integrity:O,fetchPriority:M}):k==="script"&&q.d.X(N,{crossOrigin:j,integrity:O,fetchPriority:M,nonce:typeof F.nonce==="string"?F.nonce:void 0})}},xP.preinitModule=function(N,F){var k="";if(typeof N==="string"&&N||(k+=" The `href` argument encountered was "+K(N)+"."),F!==void 0&&typeof F!=="object"?k+=" The `options` argument encountered was "+K(F)+".":F&&("as"in F)&&F.as!=="script"&&(k+=" The `as` option encountered was "+U(F.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=F&&typeof F.as==="string"?F.as:"script",k){case"script":break;default:k=U(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,N)}if(typeof N==="string")if(typeof F==="object"&&F!==null){if(F.as==null||F.as==="script")k=W(F.as,F.crossOrigin),q.d.M(N,{crossOrigin:k,integrity:typeof F.integrity==="string"?F.integrity:void 0,nonce:typeof F.nonce==="string"?F.nonce:void 0})}else F==null&&q.d.M(N)},xP.preload=function(N,F){var k="";if(typeof N==="string"&&N||(k+=" The `href` argument encountered was "+K(N)+"."),F==null||typeof F!=="object"?k+=" The `options` argument encountered was "+K(F)+".":typeof F.as==="string"&&F.as||(k+=" The `as` option encountered was "+K(F.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 N==="string"&&typeof F==="object"&&F!==null&&typeof F.as==="string"){k=F.as;var j=W(k,F.crossOrigin);q.d.L(N,k,{crossOrigin:j,integrity:typeof F.integrity==="string"?F.integrity:void 0,nonce:typeof F.nonce==="string"?F.nonce:void 0,type:typeof F.type==="string"?F.type:void 0,fetchPriority:typeof F.fetchPriority==="string"?F.fetchPriority:void 0,referrerPolicy:typeof F.referrerPolicy==="string"?F.referrerPolicy:void 0,imageSrcSet:typeof F.imageSrcSet==="string"?F.imageSrcSet:void 0,imageSizes:typeof F.imageSizes==="string"?F.imageSizes:void 0,media:typeof F.media==="string"?F.media:void 0})}},xP.preloadModule=function(N,F){var k="";typeof N==="string"&&N||(k+=" The `href` argument encountered was "+K(N)+"."),F!==void 0&&typeof F!=="object"?k+=" The `options` argument encountered was "+K(F)+".":F&&("as"in F)&&typeof F.as!=="string"&&(k+=" The `as` option encountered was "+K(F.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 N==="string"&&(F?(k=W(F.as,F.crossOrigin),q.d.m(N,{as:typeof F.as==="string"&&F.as!=="script"?F.as:void 0,crossOrigin:k,integrity:typeof F.integrity==="string"?F.integrity:void 0})):q.d.m(N))},xP.requestFormReset=function(N){q.d.r(N)},xP.unstable_batchedUpdates=function(N,F){return N(F)},xP.useFormState=function(N,F,k){return H().useFormState(N,F,k)},xP.useFormStatus=function(){return H().useHostTransitionStatus()},xP.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var m8=f8((Ig,tj)=>{var EP=p(nj());tj.exports=EP});var ej=f8((vP)=>{var x1=p(oj()),Fz=p(Y0()),t_=p(m8());(function(){function J(w,z){for(w=w.memoizedState;w!==null&&0<z;)w=w.next,z--;return w}function X(w,z,Z,$){if(Z>=z.length)return $;var G=z[Z],Q=Iw(w)?w.slice():_1({},w);return Q[G]=X(w[G],z,Z+1,$),Q}function Y(w,z,Z){if(z.length!==Z.length)console.warn("copyWithRename() expects paths of the same length");else{for(var $=0;$<Z.length-1;$++)if(z[$]!==Z[$]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return W(w,z,Z,0)}}function W(w,z,Z,$){var G=z[$],Q=Iw(w)?w.slice():_1({},w);return $+1===z.length?(Q[Z[$]]=Q[G],Iw(Q)?Q.splice(G,1):delete Q[G]):Q[G]=W(w[G],z,Z,$+1),Q}function K(w,z,Z){var $=z[Z],G=Iw(w)?w.slice():_1({},w);if(Z+1===z.length)return Iw(G)?G.splice($,1):delete G[$],G;return G[$]=K(w[$],z,Z+1),G}function U(){return!1}function H(){return null}function q(){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 L(){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 V(){}function N(){}function F(w){var z=[];return w.forEach(function(Z){z.push(Z)}),z.sort().join(", ")}function k(w,z,Z,$){return new KE(w,z,Z,$)}function j(w,z){w.context===Q4&&(LU(w.current,2,z,w,null,null),E9())}function O(w,z){if(H5!==null){var Z=z.staleFamilies;z=z.updatedFamilies,aZ(),ZL(w.current,z,Z),E9()}}function M(w){H5=w}function v(w){return!(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)}function x(w){var z=w,Z=w;if(w.alternate)for(;z.return;)z=z.return;else{w=z;do z=w,(z.flags&4098)!==0&&(Z=z.return),w=z.return;while(w)}return z.tag===3?Z:null}function E(w){if(w.tag===13){var z=w.memoizedState;if(z===null&&(w=w.alternate,w!==null&&(z=w.memoizedState)),z!==null)return z.dehydrated}return null}function I(w){if(w.tag===31){var z=w.memoizedState;if(z===null&&(w=w.alternate,w!==null&&(z=w.memoizedState)),z!==null)return z.dehydrated}return null}function C(w){if(x(w)!==w)throw Error("Unable to find node on an unmounted component.")}function h(w){var z=w.alternate;if(!z){if(z=x(w),z===null)throw Error("Unable to find node on an unmounted component.");return z!==w?null:w}for(var Z=w,$=z;;){var G=Z.return;if(G===null)break;var Q=G.alternate;if(Q===null){if($=G.return,$!==null){Z=$;continue}break}if(G.child===Q.child){for(Q=G.child;Q;){if(Q===Z)return C(G),w;if(Q===$)return C(G),z;Q=Q.sibling}throw Error("Unable to find node on an unmounted component.")}if(Z.return!==$.return)Z=G,$=Q;else{for(var _=!1,B=G.child;B;){if(B===Z){_=!0,Z=G,$=Q;break}if(B===$){_=!0,$=G,Z=Q;break}B=B.sibling}if(!_){for(B=Q.child;B;){if(B===Z){_=!0,Z=Q,$=G;break}if(B===$){_=!0,$=Q,Z=G;break}B=B.sibling}if(!_)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(Z.alternate!==$)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(Z.tag!==3)throw Error("Unable to find node on an unmounted component.");return Z.stateNode.current===Z?w:z}function m(w){var z=w.tag;if(z===5||z===26||z===27||z===6)return w;for(w=w.child;w!==null;){if(z=m(w),z!==null)return z;w=w.sibling}return null}function R(w){if(w===null||typeof w!=="object")return null;return w=WN&&w[WN]||w["@@iterator"],typeof w==="function"?w:null}function S(w){if(w==null)return null;if(typeof w==="function")return w.$$typeof===Pv?null:w.displayName||w.name||null;if(typeof w==="string")return w;switch(w){case b9:return"Fragment";case AU:return"Profiler";case k3:return"StrictMode";case OU:return"Suspense";case DU:return"SuspenseList";case TU: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 S9:return"Portal";case E8:return w.displayName||"Context";case MU:return(w._context.displayName||"Context")+".Consumer";case XJ:var z=w.render;return w=w.displayName,w||(w=z.displayName||z.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case j3:return z=w.displayName||null,z!==null?z:S(w.type)||"Memo";case l2:z=w._payload,w=w._init;try{return S(w(z))}catch(Z){}}return null}function c(w){return typeof w.tag==="number"?d(w):typeof w.name==="string"?w.name:null}function d(w){var z=w.type;switch(w.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(z._context.displayName||"Context")+".Consumer";case 10:return z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return w=z.render,w=w.displayName||w.name||"",z.displayName||(w!==""?"ForwardRef("+w+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return S(z);case 8:return z===k3?"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 z==="function")return z.displayName||z.name||null;if(typeof z==="string")return z;break;case 29:if(z=w._debugInfo,z!=null){for(var Z=z.length-1;0<=Z;Z--)if(typeof z[Z].name==="string")return z[Z].name}if(w.return!==null)return d(w.return)}return null}function w0(w){return{current:w}}function t(w,z){0>G6?console.error("Unexpected pop."):(z!==EU[G6]&&console.error("Unexpected Fiber popped."),w.current=xU[G6],xU[G6]=null,EU[G6]=null,G6--)}function u(w,z,Z){G6++,xU[G6]=w.current,EU[G6]=Z,w.current=z}function Q0(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 r(w,z){u(Z4,z,w),u($J,w,w),u(z4,null,w);var Z=z.nodeType;switch(Z){case 9:case 11:Z=Z===9?"#document":"#fragment",z=(z=z.documentElement)?(z=z.namespaceURI)?CF(z):j6:j6;break;default:if(Z=z.tagName,z=z.namespaceURI)z=CF(z),z=SF(z,Z);else switch(Z){case"svg":z=Bz;break;case"math":z=NY;break;default:z=j6}}Z=Z.toLowerCase(),Z=xB(null,Z),Z={context:z,ancestorInfo:Z},t(z4,w),u(z4,Z,w)}function e(w){t(z4,w),t($J,w),t(Z4,w)}function o(){return Q0(z4.current)}function g(w){w.memoizedState!==null&&u(A3,w,w);var z=Q0(z4.current),Z=w.type,$=SF(z.context,Z);Z=xB(z.ancestorInfo,Z),$={context:$,ancestorInfo:Z},z!==$&&(u($J,w,w),u(z4,$,w))}function X0(w){$J.current===w&&(t(z4,w),t($J,w)),A3.current===w&&(t(A3,w),oJ._currentValue=R7)}function P(){}function z0(){if(YJ===0){KN=console.log,UN=console.info,_N=console.warn,qN=console.error,HN=console.group,BN=console.groupCollapsed,LN=console.groupEnd;var w={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}YJ++}function U0(){if(YJ--,YJ===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_1({},w,{value:KN}),info:_1({},w,{value:UN}),warn:_1({},w,{value:_N}),error:_1({},w,{value:qN}),group:_1({},w,{value:HN}),groupCollapsed:_1({},w,{value:BN}),groupEnd:_1({},w,{value:LN})})}0>YJ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function J0(w){var z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,w=w.stack,Error.prepareStackTrace=z,w.startsWith(`Error: react-stack-top-frame
18
+ `)&&(w=w.slice(29)),z=w.indexOf(`
19
+ `),z!==-1&&(w=w.slice(z+1)),z=w.indexOf("react_stack_bottom_frame"),z!==-1&&(z=w.lastIndexOf(`
20
+ `,z)),z!==-1)w=w.slice(0,z);else return"";return w}function L0(w){if(vU===void 0)try{throw Error()}catch(Z){var z=Z.stack.trim().match(/\n( *(at )?)/);vU=z&&z[1]||"",VN=-1<Z.stack.indexOf(`
21
+ at`)?" (<anonymous>)":-1<Z.stack.indexOf("@")?"@unknown:0:0":""}return`
22
+ `+vU+w+VN}function S0(w,z){if(!w||hU)return"";var Z=PU.get(w);if(Z!==void 0)return Z;hU=!0,Z=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var $=null;$=G0.H,G0.H=null,z0();try{var G={DetermineComponentFrameRoot:function(){try{if(z){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(M0){var Z0=M0}Reflect.construct(w,[],y)}else{try{y.call()}catch(M0){Z0=M0}w.call(y.prototype)}}else{try{throw Error()}catch(M0){Z0=M0}(y=w())&&typeof y.catch==="function"&&y.catch(function(){})}}catch(M0){if(M0&&Z0&&typeof M0.stack==="string")return[M0.stack,Z0.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Q=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");Q&&Q.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=G.DetermineComponentFrameRoot(),B=_[0],A=_[1];if(B&&A){var D=B.split(`
23
+ `),i=A.split(`
24
+ `);for(_=Q=0;Q<D.length&&!D[Q].includes("DetermineComponentFrameRoot");)Q++;for(;_<i.length&&!i[_].includes("DetermineComponentFrameRoot");)_++;if(Q===D.length||_===i.length)for(Q=D.length-1,_=i.length-1;1<=Q&&0<=_&&D[Q]!==i[_];)_--;for(;1<=Q&&0<=_;Q--,_--)if(D[Q]!==i[_]){if(Q!==1||_!==1)do if(Q--,_--,0>_||D[Q]!==i[_]){var a=`
25
+ `+D[Q].replace(" at new "," at ");return w.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",w.displayName)),typeof w==="function"&&PU.set(w,a),a}while(1<=Q&&0<=_);break}}}finally{hU=!1,G0.H=$,U0(),Error.prepareStackTrace=Z}return D=(D=w?w.displayName||w.name:"")?L0(D):"",typeof w==="function"&&PU.set(w,D),D}function V0(w,z){switch(w.tag){case 26:case 27:case 5:return L0(w.type);case 16:return L0("Lazy");case 13:return w.child!==z&&z!==null?L0("Suspense Fallback"):L0("Suspense");case 19:return L0("SuspenseList");case 0:case 15:return S0(w.type,!1);case 11:return S0(w.type.render,!1);case 1:return S0(w.type,!0);case 31:return L0("Activity");default:return""}}function _0(w){try{var z="",Z=null;do{z+=V0(w,Z);var $=w._debugInfo;if($)for(var G=$.length-1;0<=G;G--){var Q=$[G];if(typeof Q.name==="string"){var _=z;w:{var{name:B,env:A,debugLocation:D}=Q;if(D!=null){var i=J0(D),a=i.lastIndexOf(`
26
+ `),y=a===-1?i:i.slice(a+1);if(y.indexOf(B)!==-1){var Z0=`
27
+ `+y;break w}}Z0=L0(B+(A?" ["+A+"]":""))}z=_+Z0}}Z=w,w=w.return}while(w);return z}catch(M0){return`
28
+ Error generating stack: `+M0.message+`
29
+ `+M0.stack}}function A0(w){return(w=w?w.displayName||w.name:"")?L0(w):""}function r0(){if(i2===null)return null;var w=i2._debugOwner;return w!=null?c(w):null}function n0(){if(i2===null)return"";var w=i2;try{var z="";switch(w.tag===6&&(w=w.return),w.tag){case 26:case 27:case 5:z+=L0(w.type);break;case 13:z+=L0("Suspense");break;case 19:z+=L0("SuspenseList");break;case 31:z+=L0("Activity");break;case 30:case 0:case 15:case 1:w._debugOwner||z!==""||(z+=A0(w.type));break;case 11:w._debugOwner||z!==""||(z+=A0(w.type.render))}for(;w;)if(typeof w.tag==="number"){var Z=w;w=Z._debugOwner;var $=Z._debugStack;if(w&&$){var G=J0($);G!==""&&(z+=`
30
+ `+G)}}else if(w.debugStack!=null){var Q=w.debugStack;(w=w.owner)&&Q&&(z+=`
31
+ `+J0(Q))}else break;var _=z}catch(B){_=`
32
+ Error generating stack: `+B.message+`
33
+ `+B.stack}return _}function n(w,z,Z,$,G,Q,_){var B=i2;R0(w);try{return w!==null&&w._debugTask?w._debugTask.run(z.bind(null,Z,$,G,Q,_)):z(Z,$,G,Q,_)}finally{R0(B)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function R0(w){G0.getCurrentStack=w===null?null:n0,v8=!1,i2=w}function I0(w){return typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"}function A1(w){try{return C0(w),!1}catch(z){return!0}}function C0(w){return""+w}function q0(w,z){if(A1(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.",z,I0(w)),C0(w)}function O0(w,z){if(A1(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.",z,I0(w)),C0(w)}function j0(w){if(A1(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.",I0(w)),C0(w)}function c0(w){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(z.isDisabled)return!0;if(!z.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{R9=z.inject(w),Z2=z}catch(Z){console.error("React instrumentation encountered an error: %o.",Z)}return z.checkDCE?!0:!1}function b0(w){if(typeof gv==="function"&&fv(w),Z2&&typeof Z2.setStrictMode==="function")try{Z2.setStrictMode(R9,w)}catch(z){h8||(h8=!0,console.error("React instrumentation encountered an error: %o",z))}}function h0(w){return w>>>=0,w===0?32:31-(mv(w)/dv|0)|0}function o0(w){var z=w&42;if(z!==0)return z;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 x0(w,z,Z){var $=w.pendingLanes;if($===0)return 0;var G=0,Q=w.suspendedLanes,_=w.pingedLanes;w=w.warmLanes;var B=$&134217727;return B!==0?($=B&~Q,$!==0?G=o0($):(_&=B,_!==0?G=o0(_):Z||(Z=B&~w,Z!==0&&(G=o0(Z))))):(B=$&~Q,B!==0?G=o0(B):_!==0?G=o0(_):Z||(Z=$&~w,Z!==0&&(G=o0(Z)))),G===0?0:z!==0&&z!==G&&(z&Q)===0&&(Q=G&-G,Z=z&-z,Q>=Z||Q===32&&(Z&4194048)!==0)?z:G}function l0(w,z){return(w.pendingLanes&~(w.suspendedLanes&~w.pingedLanes)&z)===0}function y0(w,z){switch(w){case 1:case 2:case 4:case 8:case 64:return z+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 z+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 H1(){var w=D3;return D3<<=1,(D3&62914560)===0&&(D3=4194304),w}function T1(w){for(var z=[],Z=0;31>Z;Z++)z.push(w);return z}function W1(w,z){w.pendingLanes|=z,z!==268435456&&(w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0)}function Qw(w,z,Z,$,G,Q){var _=w.pendingLanes;w.pendingLanes=Z,w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0,w.expiredLanes&=Z,w.entangledLanes&=Z,w.errorRecoveryDisabledLanes&=Z,w.shellSuspendCounter=0;var{entanglements:B,expirationTimes:A,hiddenUpdates:D}=w;for(Z=_&~Z;0<Z;){var i=31-U2(Z),a=1<<i;B[i]=0,A[i]=-1;var y=D[i];if(y!==null)for(D[i]=null,i=0;i<y.length;i++){var Z0=y[i];Z0!==null&&(Z0.lane&=-536870913)}Z&=~a}$!==0&&zw(w,$,0),Q!==0&&G===0&&w.tag!==0&&(w.suspendedLanes|=Q&~(_&~z))}function zw(w,z,Z){w.pendingLanes|=z,w.suspendedLanes&=~z;var $=31-U2(z);w.entangledLanes|=z,w.entanglements[$]=w.entanglements[$]|1073741824|Z&261930}function Vw(w,z){var Z=w.entangledLanes|=z;for(w=w.entanglements;Z;){var $=31-U2(Z),G=1<<$;G&z|w[$]&z&&(w[$]|=z),Z&=~G}}function _w(w,z){var Z=z&-z;return Z=(Z&42)!==0?1:hw(Z),(Z&(w.suspendedLanes|z))!==0?0:Z}function hw(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 J1(w,z,Z){if(P8)for(w=w.pendingUpdatersLaneMap;0<Z;){var $=31-U2(Z),G=1<<$;w[$].add(z),Z&=~G}}function N1(w,z){if(P8)for(var{pendingUpdatersLaneMap:Z,memoizedUpdaters:$}=w;0<z;){var G=31-U2(z);w=1<<G,G=Z[G],0<G.size&&(G.forEach(function(Q){var _=Q.alternate;_!==null&&$.has(_)||$.add(Q)}),G.clear()),z&=~w}}function T(w){return w&=-w,r2!==0&&r2<w?c5!==0&&c5<w?(w&134217727)!==0?I8:T3:c5:r2}function s(){var w=I1.p;if(w!==0)return w;return w=window.event,w===void 0?I8:ZN(w.type)}function K0(w,z){var Z=I1.p;try{return I1.p=w,z()}finally{I1.p=Z}}function N0(w){delete w[ow],delete w[_2],delete w[yU],delete w[uv],delete w[pv]}function T0(w){var z=w[ow];if(z)return z;for(var Z=w.parentNode;Z;){if(z=Z[X4]||Z[ow]){if(Z=z.alternate,z.child!==null||Z!==null&&Z.child!==null)for(w=uF(w);w!==null;){if(Z=w[ow])return Z;w=uF(w)}return z}w=Z,Z=w.parentNode}return null}function a0(w){if(w=w[ow]||w[X4]){var z=w.tag;if(z===5||z===6||z===13||z===31||z===26||z===27||z===3)return w}return null}function u0(w){var z=w.tag;if(z===5||z===26||z===27||z===6)return w.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function $1(w){var z=w[FN];return z||(z=w[FN]={hoistableStyles:new Map,hoistableScripts:new Map}),z}function d0(w){w[GJ]=!0}function Pw(w,z){W2(w,z),W2(w+"Capture",z)}function W2(w,z){B7[w]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",w),B7[w]=z;var Z=w.toLowerCase();RU[Z]=w,w==="onDoubleClick"&&(RU.ondblclick=w);for(w=0;w<z.length;w++)NN.add(z[w])}function K8(w,z){cv[z.type]||z.onChange||z.onInput||z.readOnly||z.disabled||z.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`.")),z.onChange||z.readOnly||z.disabled||z.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 t4(w){if(p5.call(jN,w))return!0;if(p5.call(kN,w))return!1;if(lv.test(w))return jN[w]=!0;return kN[w]=!0,console.error("Invalid attribute name: `%s`",w),!1}function _$(w,z,Z){if(t4(z)){if(!w.hasAttribute(z)){switch(typeof Z){case"symbol":case"object":return Z;case"function":return Z;case"boolean":if(Z===!1)return Z}return Z===void 0?void 0:null}if(w=w.getAttribute(z),w===""&&Z===!0)return!0;return q0(Z,z),w===""+Z?Z:w}}function d6(w,z,Z){if(t4(z))if(Z===null)w.removeAttribute(z);else{switch(typeof Z){case"undefined":case"function":case"symbol":w.removeAttribute(z);return;case"boolean":var $=z.toLowerCase().slice(0,5);if($!=="data-"&&$!=="aria-"){w.removeAttribute(z);return}}q0(Z,z),w.setAttribute(z,""+Z)}}function e4(w,z,Z){if(Z===null)w.removeAttribute(z);else{switch(typeof Z){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(z);return}q0(Z,z),w.setAttribute(z,""+Z)}}function f5(w,z,Z,$){if($===null)w.removeAttribute(Z);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(Z);return}q0($,Z),w.setAttributeNS(z,Z,""+$)}}function A2(w){switch(typeof w){case"bigint":case"boolean":case"number":case"string":case"undefined":return w;case"object":return j0(w),w;default:return""}}function u6(w){var z=w.type;return(w=w.nodeName)&&w.toLowerCase()==="input"&&(z==="checkbox"||z==="radio")}function VW(w,z,Z){var $=Object.getOwnPropertyDescriptor(w.constructor.prototype,z);if(!w.hasOwnProperty(z)&&typeof $<"u"&&typeof $.get==="function"&&typeof $.set==="function"){var{get:G,set:Q}=$;return Object.defineProperty(w,z,{configurable:!0,get:function(){return G.call(this)},set:function(_){j0(_),Z=""+_,Q.call(this,_)}}),Object.defineProperty(w,z,{enumerable:$.enumerable}),{getValue:function(){return Z},setValue:function(_){j0(_),Z=""+_},stopTracking:function(){w._valueTracker=null,delete w[z]}}}}function AZ(w){if(!w._valueTracker){var z=u6(w)?"checked":"value";w._valueTracker=VW(w,z,""+w[z])}}function q$(w){if(!w)return!1;var z=w._valueTracker;if(!z)return!0;var Z=z.getValue(),$="";return w&&($=u6(w)?w.checked?"true":"false":w.value),w=$,w!==Z?(z.setValue(w),!0):!1}function H$(w){if(w=w||(typeof document<"u"?document:void 0),typeof w>"u")return null;try{return w.activeElement||w.body}catch(z){return w.body}}function K5(w){return w.replace(iv,function(z){return"\\"+z.charCodeAt(0).toString(16)+" "})}function BB(w,z){z.checked===void 0||z.defaultChecked===void 0||MN||(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",r0()||"A component",z.type),MN=!0),z.value===void 0||z.defaultValue===void 0||AN||(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",r0()||"A component",z.type),AN=!0)}function FW(w,z,Z,$,G,Q,_,B){if(w.name="",_!=null&&typeof _!=="function"&&typeof _!=="symbol"&&typeof _!=="boolean"?(q0(_,"type"),w.type=_):w.removeAttribute("type"),z!=null)if(_==="number"){if(z===0&&w.value===""||w.value!=z)w.value=""+A2(z)}else w.value!==""+A2(z)&&(w.value=""+A2(z));else _!=="submit"&&_!=="reset"||w.removeAttribute("value");z!=null?NW(w,_,A2(z)):Z!=null?NW(w,_,A2(Z)):$!=null&&w.removeAttribute("value"),G==null&&Q!=null&&(w.defaultChecked=!!Q),G!=null&&(w.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(q0(B,"name"),w.name=""+A2(B)):w.removeAttribute("name")}function LB(w,z,Z,$,G,Q,_,B){if(Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&typeof Q!=="boolean"&&(q0(Q,"type"),w.type=Q),z!=null||Z!=null){if(!(Q!=="submit"&&Q!=="reset"||z!==void 0&&z!==null)){AZ(w);return}Z=Z!=null?""+A2(Z):"",z=z!=null?""+A2(z):Z,B||z===w.value||(w.value=z),w.defaultValue=z}$=$!=null?$:G,$=typeof $!=="function"&&typeof $!=="symbol"&&!!$,w.checked=B?w.checked:!!$,w.defaultChecked=!!$,_!=null&&typeof _!=="function"&&typeof _!=="symbol"&&typeof _!=="boolean"&&(q0(_,"name"),w.name=_),AZ(w)}function NW(w,z,Z){z==="number"&&H$(w.ownerDocument)===w||w.defaultValue===""+Z||(w.defaultValue=""+Z)}function VB(w,z){z.value==null&&(typeof z.children==="object"&&z.children!==null?Fz.Children.forEach(z.children,function(Z){Z==null||typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint"||DN||(DN=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):z.dangerouslySetInnerHTML==null||TN||(TN=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),z.selected==null||ON||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ON=!0)}function FB(){var w=r0();return w?`
34
+
35
+ Check the render method of \``+w+"`.":""}function L9(w,z,Z,$){if(w=w.options,z){z={};for(var G=0;G<Z.length;G++)z["$"+Z[G]]=!0;for(Z=0;Z<w.length;Z++)G=z.hasOwnProperty("$"+w[Z].value),w[Z].selected!==G&&(w[Z].selected=G),G&&$&&(w[Z].defaultSelected=!0)}else{Z=""+A2(Z),z=null;for(G=0;G<w.length;G++){if(w[G].value===Z){w[G].selected=!0,$&&(w[G].defaultSelected=!0);return}z!==null||w[G].disabled||(z=w[G])}z!==null&&(z.selected=!0)}}function NB(w,z){for(w=0;w<EN.length;w++){var Z=EN[w];if(z[Z]!=null){var $=Iw(z[Z]);z.multiple&&!$?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",Z,FB()):!z.multiple&&$&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Z,FB())}}z.value===void 0||z.defaultValue===void 0||xN||(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"),xN=!0)}function kB(w,z){z.value===void 0||z.defaultValue===void 0||vN||(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",r0()||"A component"),vN=!0),z.children!=null&&z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function jB(w,z,Z){if(z!=null&&(z=""+A2(z),z!==w.value&&(w.value=z),Z==null)){w.defaultValue!==z&&(w.defaultValue=z);return}w.defaultValue=Z!=null?""+A2(Z):""}function AB(w,z,Z,$){if(z==null){if($!=null){if(Z!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Iw($)){if(1<$.length)throw Error("<textarea> can only have at most one child.");$=$[0]}Z=$}Z==null&&(Z=""),z=Z}Z=A2(z),w.defaultValue=Z,$=w.textContent,$===Z&&$!==""&&$!==null&&(w.value=$),AZ(w)}function MB(w,z){return w.serverProps===void 0&&w.serverTail.length===0&&w.children.length===1&&3<w.distanceFromLeaf&&w.distanceFromLeaf>15-z?MB(w.children[0],z):w}function R2(w){return" "+" ".repeat(w)}function V9(w){return"+ "+" ".repeat(w)}function w7(w){return"- "+" ".repeat(w)}function OB(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 MZ(w,z){return hN.test(w)?(w=JSON.stringify(w),w.length>z-2?8>z?'{"..."}':"{"+w.slice(0,z-7)+'..."}':"{"+w+"}"):w.length>z?5>z?'{"..."}':w.slice(0,z-3)+"...":w}function B$(w,z,Z){var $=120-2*Z;if(z===null)return V9(Z)+MZ(w,$)+`
36
+ `;if(typeof z==="string"){for(var G=0;G<z.length&&G<w.length&&z.charCodeAt(G)===w.charCodeAt(G);G++);return G>$-8&&10<G&&(w="..."+w.slice(G-8),z="..."+z.slice(G-8)),V9(Z)+MZ(w,$)+`
37
+ `+w7(Z)+MZ(z,$)+`
38
+ `}return R2(Z)+MZ(w,$)+`
39
+ `}function kW(w){return Object.prototype.toString.call(w).replace(/^\[object (.*)\]$/,function(z,Z){return Z})}function OZ(w,z){switch(typeof w){case"string":return w=JSON.stringify(w),w.length>z?5>z?'"..."':w.slice(0,z-4)+'..."':w;case"object":if(w===null)return"null";if(Iw(w))return"[...]";if(w.$$typeof===x8)return(z=S(w.type))?"<"+z+">":"<...>";var Z=kW(w);if(Z==="Object"){Z="",z-=2;for(var $ in w)if(w.hasOwnProperty($)){var G=JSON.stringify($);if(G!=='"'+$+'"'&&($=G),z-=$.length-2,G=OZ(w[$],15>z?z:15),z-=G.length,0>z){Z+=Z===""?"...":", ...";break}Z+=(Z===""?"":",")+$+":"+G}return"{"+Z+"}"}return Z;case"function":return(z=w.displayName||w.name)?"function "+z:"function";default:return String(w)}}function F9(w,z){return typeof w!=="string"||hN.test(w)?"{"+OZ(w,z-2)+"}":w.length>z-2?5>z?'"..."':'"'+w.slice(0,z-5)+'..."':'"'+w+'"'}function jW(w,z,Z){var $=120-Z.length-w.length,G=[],Q;for(Q in z)if(z.hasOwnProperty(Q)&&Q!=="children"){var _=F9(z[Q],120-Z.length-Q.length-1);$-=Q.length+_.length+2,G.push(Q+"="+_)}return G.length===0?Z+"<"+w+`>
40
+ `:0<$?Z+"<"+w+" "+G.join(" ")+`>
41
+ `:Z+"<"+w+`
42
+ `+Z+" "+G.join(`
43
+ `+Z+" ")+`
44
+ `+Z+`>
45
+ `}function ux(w,z,Z){var $="",G=_1({},z),Q;for(Q in w)if(w.hasOwnProperty(Q)){delete G[Q];var _=120-2*Z-Q.length-2,B=OZ(w[Q],_);z.hasOwnProperty(Q)?(_=OZ(z[Q],_),$+=V9(Z)+Q+": "+B+`
46
+ `,$+=w7(Z)+Q+": "+_+`
47
+ `):$+=V9(Z)+Q+": "+B+`
48
+ `}for(var A in G)G.hasOwnProperty(A)&&(w=OZ(G[A],120-2*Z-A.length-2),$+=w7(Z)+A+": "+w+`
49
+ `);return $}function px(w,z,Z,$){var G="",Q=new Map;for(D in Z)Z.hasOwnProperty(D)&&Q.set(D.toLowerCase(),D);if(Q.size===1&&Q.has("children"))G+=jW(w,z,R2($));else{for(var _ in z)if(z.hasOwnProperty(_)&&_!=="children"){var B=120-2*($+1)-_.length-1,A=Q.get(_.toLowerCase());if(A!==void 0){Q.delete(_.toLowerCase());var D=z[_];A=Z[A];var i=F9(D,B);B=F9(A,B),typeof D==="object"&&D!==null&&typeof A==="object"&&A!==null&&kW(D)==="Object"&&kW(A)==="Object"&&(2<Object.keys(D).length||2<Object.keys(A).length||-1<i.indexOf("...")||-1<B.indexOf("..."))?G+=R2($+1)+_+`={{
50
+ `+ux(D,A,$+2)+R2($+1)+`}}
51
+ `:(G+=V9($+1)+_+"="+i+`
52
+ `,G+=w7($+1)+_+"="+B+`
53
+ `)}else G+=R2($+1)+_+"="+F9(z[_],B)+`
54
+ `}Q.forEach(function(a){if(a!=="children"){var y=120-2*($+1)-a.length-1;G+=w7($+1)+a+"="+F9(Z[a],y)+`
55
+ `}}),G=G===""?R2($)+"<"+w+`>
56
+ `:R2($)+"<"+w+`
57
+ `+G+R2($)+`>
58
+ `}if(w=Z.children,z=z.children,typeof w==="string"||typeof w==="number"||typeof w==="bigint"){if(Q="",typeof z==="string"||typeof z==="number"||typeof z==="bigint")Q=""+z;G+=B$(Q,""+w,$+1)}else if(typeof z==="string"||typeof z==="number"||typeof z==="bigint")G=w==null?G+B$(""+z,null,$+1):G+B$(""+z,void 0,$+1);return G}function DB(w,z){var Z=OB(w);if(Z===null){Z="";for(w=w.child;w;)Z+=DB(w,z),w=w.sibling;return Z}return R2(z)+"<"+Z+`>
59
+ `}function AW(w,z){var Z=MB(w,z);if(Z!==w&&(w.children.length!==1||w.children[0]!==Z))return R2(z)+`...
60
+ `+AW(Z,z+1);Z="";var $=w.fiber._debugInfo;if($)for(var G=0;G<$.length;G++){var Q=$[G].name;typeof Q==="string"&&(Z+=R2(z)+"<"+Q+`>
61
+ `,z++)}if($="",G=w.fiber.pendingProps,w.fiber.tag===6)$=B$(G,w.serverProps,z),z++;else if(Q=OB(w.fiber),Q!==null)if(w.serverProps===void 0){$=z;var _=120-2*$-Q.length-2,B="";for(D in G)if(G.hasOwnProperty(D)&&D!=="children"){var A=F9(G[D],15);if(_-=D.length+A.length+2,0>_){B+=" ...";break}B+=" "+D+"="+A}$=R2($)+"<"+Q+B+`>
62
+ `,z++}else w.serverProps===null?($=jW(Q,G,V9(z)),z++):typeof w.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):($=px(Q,G,w.serverProps,z),z++);var D="";G=w.fiber.child;for(Q=0;G&&Q<w.children.length;)_=w.children[Q],_.fiber===G?(D+=AW(_,z),Q++):D+=DB(G,z),G=G.sibling;G&&0<w.children.length&&(D+=R2(z)+`...
63
+ `),G=w.serverTail,w.serverProps===null&&z--;for(w=0;w<G.length;w++)Q=G[w],D=typeof Q==="string"?D+(w7(z)+MZ(Q,120-2*z)+`
64
+ `):D+jW(Q.type,Q.props,w7(z));return Z+$+D}function MW(w){try{return`
65
+
66
+ `+AW(w,0)}catch(z){return""}}function TB(w,z,Z){for(var $=z,G=null,Q=0;$;)$===w&&(Q=0),G={fiber:$,children:G!==null?[G]:[],serverProps:$===z?Z:$===w?null:void 0,serverTail:[],distanceFromLeaf:Q},Q++,$=$.return;return G!==null?MW(G).replaceAll(/^[+-]/gm,">"):""}function xB(w,z){var Z=_1({},w||IN),$={tag:z};if(PN.indexOf(z)!==-1&&(Z.aTagInScope=null,Z.buttonTagInScope=null,Z.nobrTagInScope=null),av.indexOf(z)!==-1&&(Z.pTagInButtonScope=null),rv.indexOf(z)!==-1&&z!=="address"&&z!=="div"&&z!=="p"&&(Z.listItemTagAutoclosing=null,Z.dlItemTagAutoclosing=null),Z.current=$,z==="form"&&(Z.formTag=$),z==="a"&&(Z.aTagInScope=$),z==="button"&&(Z.buttonTagInScope=$),z==="nobr"&&(Z.nobrTagInScope=$),z==="p"&&(Z.pTagInButtonScope=$),z==="li"&&(Z.listItemTagAutoclosing=$),z==="dd"||z==="dt")Z.dlItemTagAutoclosing=$;return z==="#document"||z==="html"?Z.containerTagInScope=null:Z.containerTagInScope||(Z.containerTagInScope=$),w!==null||z!=="#document"&&z!=="html"&&z!=="body"?Z.implicitRootScope===!0&&(Z.implicitRootScope=!1):Z.implicitRootScope=!0,Z}function EB(w,z,Z){switch(z){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(Z)break;return w==="head"||w==="body"||w==="frameset";case"frameset":return w==="frame";case"#document":if(!Z)return w==="html"}switch(w){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return z!=="h1"&&z!=="h2"&&z!=="h3"&&z!=="h4"&&z!=="h5"&&z!=="h6";case"rp":case"rt":return sv.indexOf(z)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return z==null;case"head":return Z||z===null;case"html":return Z&&z==="#document"||z===null;case"body":return Z&&(z==="#document"||z==="html")||z===null}return!0}function cx(w,z){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 z.pTagInButtonScope;case"form":return z.formTag||z.pTagInButtonScope;case"li":return z.listItemTagAutoclosing;case"dd":case"dt":return z.dlItemTagAutoclosing;case"button":return z.buttonTagInScope;case"a":return z.aTagInScope;case"nobr":return z.nobrTagInScope}return null}function vB(w,z){for(;w;){switch(w.tag){case 5:case 26:case 27:if(w.type===z)return w}w=w.return}return null}function OW(w,z){z=z||IN;var Z=z.current;if(z=(Z=EB(w,Z&&Z.tag,z.implicitRootScope)?null:Z)?null:cx(w,z),z=Z||z,!z)return!0;var $=z.tag;if(z=String(!!Z)+"|"+w+"|"+$,x3[z])return!1;x3[z]=!0;var G=(z=i2)?vB(z.return,$):null,Q=z!==null&&G!==null?TB(G,z,null):"",_="<"+w+">";return Z?(Z="",$==="table"&&w==="tr"&&(Z+=" 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
67
+ This will cause a hydration error.%s`,_,$,Z,Q)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,_,$,Q),z&&(w=z.return,G===null||w===null||G===w&&w._debugOwner===z._debugOwner||n(G,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,$,_)})),!1}function L$(w,z,Z){if(Z||EB("#text",z,!1))return!0;if(Z="#text|"+z,x3[Z])return!1;x3[Z]=!0;var $=(Z=i2)?vB(Z,z):null;return Z=Z!==null&&$!==null?TB($,Z,Z.tag!==6?{children:null}:null):"",/\S/.test(w)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
+ This will cause a hydration error.%s`,z,Z):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.
71
+ This will cause a hydration error.%s`,z,Z),!1}function DZ(w,z){if(z){var Z=w.firstChild;if(Z&&Z===w.lastChild&&Z.nodeType===3){Z.nodeValue=z;return}}w.textContent=z}function lx(w){return w.replace(tv,function(z,Z){return Z.toUpperCase()})}function hB(w,z,Z){var $=z.indexOf("--")===0;$||(-1<z.indexOf("-")?g9.hasOwnProperty(z)&&g9[z]||(g9[z]=!0,console.error("Unsupported style property %s. Did you mean %s?",z,lx(z.replace(nv,"ms-")))):ov.test(z)?g9.hasOwnProperty(z)&&g9[z]||(g9[z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",z,z.charAt(0).toUpperCase()+z.slice(1))):!bN.test(Z)||fU.hasOwnProperty(Z)&&fU[Z]||(fU[Z]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,z,Z.replace(bN,""))),typeof Z==="number"&&(isNaN(Z)?yN||(yN=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",z)):isFinite(Z)||RN||(RN=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",z)))),Z==null||typeof Z==="boolean"||Z===""?$?w.setProperty(z,""):z==="float"?w.cssFloat="":w[z]="":$?w.setProperty(z,Z):typeof Z!=="number"||Z===0||gN.has(z)?z==="float"?w.cssFloat=Z:(O0(Z,z),w[z]=(""+Z).trim()):w[z]=Z+"px"}function PB(w,z,Z){if(z!=null&&typeof z!=="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(z&&Object.freeze(z),w=w.style,Z!=null){if(z){var $={};if(Z){for(var G in Z)if(Z.hasOwnProperty(G)&&!z.hasOwnProperty(G))for(var Q=gU[G]||[G],_=0;_<Q.length;_++)$[Q[_]]=G}for(var B in z)if(z.hasOwnProperty(B)&&(!Z||Z[B]!==z[B]))for(G=gU[B]||[B],Q=0;Q<G.length;Q++)$[G[Q]]=B;B={};for(var A in z)for(G=gU[A]||[A],Q=0;Q<G.length;Q++)B[G[Q]]=A;A={};for(var D in $)if(G=$[D],(Q=B[D])&&G!==Q&&(_=G+","+Q,!A[_])){A[_]=!0,_=console;var i=z[G];_.error.call(_,"%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.",i==null||typeof i==="boolean"||i===""?"Removing":"Updating",G,Q)}}for(var a in Z)!Z.hasOwnProperty(a)||z!=null&&z.hasOwnProperty(a)||(a.indexOf("--")===0?w.setProperty(a,""):a==="float"?w.cssFloat="":w[a]="");for(var y in z)D=z[y],z.hasOwnProperty(y)&&Z[y]!==D&&hB(w,y,D)}else for($ in z)z.hasOwnProperty($)&&hB(w,$,z[$])}function TZ(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 IB(w){return ev.get(w)||w}function ix(w,z){if(p5.call(m9,z)&&m9[z])return!0;if(zh.test(z)){if(w="aria-"+z.slice(4).toLowerCase(),w=fN.hasOwnProperty(w)?w:null,w==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",z),m9[z]=!0;if(z!==w)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",z,w),m9[z]=!0}if(wh.test(z)){if(w=z.toLowerCase(),w=fN.hasOwnProperty(w)?w:null,w==null)return m9[z]=!0,!1;z!==w&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",z,w),m9[z]=!0)}return!0}function rx(w,z){var Z=[],$;for($ in z)ix(w,$)||Z.push($);z=Z.map(function(G){return"`"+G+"`"}).join(", "),Z.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",z,w):1<Z.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",z,w)}function ax(w,z,Z,$){if(p5.call(q2,z)&&q2[z])return!0;var G=z.toLowerCase();if(G==="onfocusin"||G==="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."),q2[z]=!0;if(typeof Z==="function"&&(w==="form"&&z==="action"||w==="input"&&z==="formAction"||w==="button"&&z==="formAction"))return!0;if($!=null){if(w=$.possibleRegistrationNames,$.registrationNameDependencies.hasOwnProperty(z))return!0;if($=w.hasOwnProperty(G)?w[G]:null,$!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",z,$),q2[z]=!0;if(dN.test(z))return console.error("Unknown event handler property `%s`. It will be ignored.",z),q2[z]=!0}else if(dN.test(z))return Zh.test(z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",z),q2[z]=!0;if(Jh.test(z)||Xh.test(z))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),q2[z]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),q2[z]=!0;if(G==="is"&&Z!==null&&Z!==void 0&&typeof Z!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof Z),q2[z]=!0;if(typeof Z==="number"&&isNaN(Z))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",z),q2[z]=!0;if(v3.hasOwnProperty(G)){if(G=v3[G],G!==z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",z,G),q2[z]=!0}else if(z!==G)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.",z,G),q2[z]=!0;switch(z){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 Z){case"boolean":switch(z){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(G=z.toLowerCase().slice(0,5),G==="data-"||G==="aria-")return!0;return Z?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()}.',Z,z,z,Z,z):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.',Z,z,z,Z,z,z,z),q2[z]=!0}case"function":case"symbol":return q2[z]=!0,!1;case"string":if(Z==="false"||Z==="true"){switch(z){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}?",Z,z,Z==="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".',z,Z),q2[z]=!0}}return!0}function sx(w,z,Z){var $=[],G;for(G in z)ax(w,G,z[G],Z)||$.push(G);z=$.map(function(Q){return"`"+Q+"`"}).join(", "),$.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 ",z,w):1<$.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 ",z,w)}function xZ(w){return $h.test(""+w)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":w}function e8(){}function DW(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}function CB(w){var z=a0(w);if(z&&(w=z.stateNode)){var Z=w[_2]||null;w:switch(w=z.stateNode,z.type){case"input":if(FW(w,Z.value,Z.defaultValue,Z.defaultValue,Z.checked,Z.defaultChecked,Z.type,Z.name),z=Z.name,Z.type==="radio"&&z!=null){for(Z=w;Z.parentNode;)Z=Z.parentNode;q0(z,"name"),Z=Z.querySelectorAll('input[name="'+K5(""+z)+'"][type="radio"]');for(z=0;z<Z.length;z++){var $=Z[z];if($!==w&&$.form===w.form){var G=$[_2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");FW($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name)}}for(z=0;z<Z.length;z++)$=Z[z],$.form===w.form&&q$($)}break w;case"textarea":jB(w,Z.value,Z.defaultValue);break w;case"select":z=Z.value,z!=null&&L9(w,!!Z.multiple,z,!1)}}}function SB(w,z,Z){if(mU)return w(z,Z);mU=!0;try{var $=w(z);return $}finally{if(mU=!1,d9!==null||u9!==null){if(E9(),d9&&(z=d9,w=u9,u9=d9=null,CB(z),w))for(z=0;z<w.length;z++)CB(w[z])}}}function EZ(w,z){var Z=w.stateNode;if(Z===null)return null;var $=Z[_2]||null;if($===null)return null;Z=$[z];w:switch(z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":($=!$.disabled)||(w=w.type,$=!(w==="button"||w==="input"||w==="select"||w==="textarea")),w=!$;break w;default:w=!1}if(w)return null;if(Z&&typeof Z!=="function")throw Error("Expected `"+z+"` listener to be a function, instead got a value of `"+typeof Z+"` type.");return Z}function bB(){if(h3)return h3;var w,z=uU,Z=z.length,$,G="value"in $4?$4.value:$4.textContent,Q=G.length;for(w=0;w<Z&&z[w]===G[w];w++);var _=Z-w;for($=1;$<=_&&z[Z-$]===G[Q-$];$++);return h3=G.slice(w,1<$?1-$:void 0)}function V$(w){var z=w.keyCode;return"charCode"in w?(w=w.charCode,w===0&&z===13&&(w=13)):w=z,w===10&&(w=13),32<=w||w===13?w:0}function F$(){return!0}function yB(){return!1}function M2(w){function z(Z,$,G,Q,_){this._reactName=Z,this._targetInst=G,this.type=$,this.nativeEvent=Q,this.target=_,this.currentTarget=null;for(var B in w)w.hasOwnProperty(B)&&(Z=w[B],this[B]=Z?Z(Q):Q[B]);return this.isDefaultPrevented=(Q.defaultPrevented!=null?Q.defaultPrevented:Q.returnValue===!1)?F$:yB,this.isPropagationStopped=yB,this}return _1(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Z=this.nativeEvent;Z&&(Z.preventDefault?Z.preventDefault():typeof Z.returnValue!=="unknown"&&(Z.returnValue=!1),this.isDefaultPrevented=F$)},stopPropagation:function(){var Z=this.nativeEvent;Z&&(Z.stopPropagation?Z.stopPropagation():typeof Z.cancelBubble!=="unknown"&&(Z.cancelBubble=!0),this.isPropagationStopped=F$)},persist:function(){},isPersistent:F$}),z}function ox(w){var z=this.nativeEvent;return z.getModifierState?z.getModifierState(w):(w=Fh[w])?!!z[w]:!1}function TW(){return ox}function RB(w,z){switch(w){case"keyup":return hh.indexOf(z.keyCode)!==-1;case"keydown":return z.keyCode!==lN;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gB(w){return w=w.detail,typeof w==="object"&&"data"in w?w.data:null}function nx(w,z){switch(w){case"compositionend":return gB(z);case"keypress":if(z.which!==rN)return null;return sN=!0,aN;case"textInput":return w=z.data,w===aN&&sN?null:w;default:return null}}function tx(w,z){if(p9)return w==="compositionend"||!iU&&RB(w,z)?(w=bB(),h3=uU=$4=null,p9=!1,w):null;switch(w){case"paste":return null;case"keypress":if(!(z.ctrlKey||z.altKey||z.metaKey)||z.ctrlKey&&z.altKey){if(z.char&&1<z.char.length)return z.char;if(z.which)return String.fromCharCode(z.which)}return null;case"compositionend":return iN&&z.locale!=="ko"?null:z.data;default:return null}}function fB(w){var z=w&&w.nodeName&&w.nodeName.toLowerCase();return z==="input"?!!Ih[w.type]:z==="textarea"?!0:!1}function ex(w){if(!C8)return!1;w="on"+w;var z=w in document;return z||(z=document.createElement("div"),z.setAttribute(w,"return;"),z=typeof z[w]==="function"),z}function mB(w,z,Z,$){d9?u9?u9.push($):u9=[$]:d9=$,z=K3(z,"onChange"),0<z.length&&(Z=new P3("onChange","change",null,Z,$),w.push({event:Z,listeners:z}))}function wE(w){AF(w,0)}function N$(w){var z=u0(w);if(q$(z))return w}function dB(w,z){if(w==="change")return z}function uB(){qJ&&(qJ.detachEvent("onpropertychange",pB),HJ=qJ=null)}function pB(w){if(w.propertyName==="value"&&N$(HJ)){var z=[];mB(z,HJ,w,DW(w)),SB(wE,z)}}function zE(w,z,Z){w==="focusin"?(uB(),qJ=z,HJ=Z,qJ.attachEvent("onpropertychange",pB)):w==="focusout"&&uB()}function ZE(w){if(w==="selectionchange"||w==="keyup"||w==="keydown")return N$(HJ)}function JE(w,z){if(w==="click")return N$(z)}function XE(w,z){if(w==="input"||w==="change")return N$(z)}function $E(w,z){return w===z&&(w!==0||1/w===1/z)||w!==w&&z!==z}function vZ(w,z){if(H2(w,z))return!0;if(typeof w!=="object"||w===null||typeof z!=="object"||z===null)return!1;var Z=Object.keys(w),$=Object.keys(z);if(Z.length!==$.length)return!1;for($=0;$<Z.length;$++){var G=Z[$];if(!p5.call(z,G)||!H2(w[G],z[G]))return!1}return!0}function cB(w){for(;w&&w.firstChild;)w=w.firstChild;return w}function lB(w,z){var Z=cB(w);w=0;for(var $;Z;){if(Z.nodeType===3){if($=w+Z.textContent.length,w<=z&&$>=z)return{node:Z,offset:z-w};w=$}w:{for(;Z;){if(Z.nextSibling){Z=Z.nextSibling;break w}Z=Z.parentNode}Z=void 0}Z=cB(Z)}}function iB(w,z){return w&&z?w===z?!0:w&&w.nodeType===3?!1:z&&z.nodeType===3?iB(w,z.parentNode):("contains"in w)?w.contains(z):w.compareDocumentPosition?!!(w.compareDocumentPosition(z)&16):!1:!1}function rB(w){w=w!=null&&w.ownerDocument!=null&&w.ownerDocument.defaultView!=null?w.ownerDocument.defaultView:window;for(var z=H$(w.document);z instanceof w.HTMLIFrameElement;){try{var Z=typeof z.contentWindow.location.href==="string"}catch($){Z=!1}if(Z)w=z.contentWindow;else break;z=H$(w.document)}return z}function xW(w){var z=w&&w.nodeName&&w.nodeName.toLowerCase();return z&&(z==="input"&&(w.type==="text"||w.type==="search"||w.type==="tel"||w.type==="url"||w.type==="password")||z==="textarea"||w.contentEditable==="true")}function aB(w,z,Z){var $=Z.window===Z?Z.document:Z.nodeType===9?Z:Z.ownerDocument;aU||c9==null||c9!==H$($)||($=c9,("selectionStart"in $)&&xW($)?$={start:$.selectionStart,end:$.selectionEnd}:($=($.ownerDocument&&$.ownerDocument.defaultView||window).getSelection(),$={anchorNode:$.anchorNode,anchorOffset:$.anchorOffset,focusNode:$.focusNode,focusOffset:$.focusOffset}),BJ&&vZ(BJ,$)||(BJ=$,$=K3(rU,"onSelect"),0<$.length&&(z=new P3("onSelect","select",null,z,Z),w.push({event:z,listeners:$}),z.target=c9)))}function z7(w,z){var Z={};return Z[w.toLowerCase()]=z.toLowerCase(),Z["Webkit"+w]="webkit"+z,Z["Moz"+w]="moz"+z,Z}function Z7(w){if(sU[w])return sU[w];if(!l9[w])return w;var z=l9[w],Z;for(Z in z)if(z.hasOwnProperty(Z)&&Z in nN)return sU[w]=z[Z];return w}function m5(w,z){Zk.set(w,z),Pw(z,[w])}function YE(w){for(var z=C3,Z=0;Z<w.length;Z++){var $=w[Z];if(typeof $==="object"&&$!==null)if(Iw($)&&$.length===2&&typeof $[0]==="string"){if(z!==C3&&z!==w_)return tU;z=w_}else return tU;else{if(typeof $==="function"||typeof $==="string"&&50<$.length||z!==C3&&z!==eU)return tU;z=eU}}return z}function EW(w,z,Z,$){for(var G in w)p5.call(w,G)&&G[0]!=="_"&&U8(G,w[G],z,Z,$)}function U8(w,z,Z,$,G){switch(typeof z){case"object":if(z===null){z="null";break}else{if(z.$$typeof===x8){var Q=S(z.type)||"…",_=z.key;z=z.props;var B=Object.keys(z),A=B.length;if(_==null&&A===0){z="<"+Q+" />";break}if(3>$||A===1&&B[0]==="children"&&_==null){z="<"+Q+" … />";break}Z.push([G+"  ".repeat($)+w,"<"+Q]),_!==null&&U8("key",_,Z,$+1,G),w=!1;for(var D in z)D==="children"?z.children!=null&&(!Iw(z.children)||0<z.children.length)&&(w=!0):p5.call(z,D)&&D[0]!=="_"&&U8(D,z[D],Z,$+1,G);Z.push(["",w?">…</"+Q+">":"/>"]);return}if(Q=Object.prototype.toString.call(z),Q=Q.slice(8,Q.length-1),Q==="Array"){if(D=YE(z),D===eU||D===C3){z=JSON.stringify(z);break}else if(D===w_){Z.push([G+"  ".repeat($)+w,""]);for(w=0;w<z.length;w++)Q=z[w],U8(Q[0],Q[1],Z,$+1,G);return}}if(Q==="Promise"){if(z.status==="fulfilled"){if(Q=Z.length,U8(w,z.value,Z,$,G),Z.length>Q){Z=Z[Q],Z[1]="Promise<"+(Z[1]||"Object")+">";return}}else if(z.status==="rejected"&&(Q=Z.length,U8(w,z.reason,Z,$,G),Z.length>Q)){Z=Z[Q],Z[1]="Rejected Promise<"+Z[1]+">";return}Z.push(["  ".repeat($)+w,"Promise"]);return}Q==="Object"&&(D=Object.getPrototypeOf(z))&&typeof D.constructor==="function"&&(Q=D.constructor.name),Z.push([G+"  ".repeat($)+w,Q==="Object"?3>$?"":"…":Q]),3>$&&EW(z,Z,$+1,G);return}case"function":z=z.name===""?"() => {}":z.name+"() {}";break;case"string":z=z===fh?"…":JSON.stringify(z);break;case"undefined":z="undefined";break;case"boolean":z=z?"true":"false";break;default:z=String(z)}Z.push([G+"  ".repeat($)+w,z])}function sB(w,z,Z,$){var G=!0;for(_ in w)_ in z||(Z.push([S3+"  ".repeat($)+_,"…"]),G=!1);for(var Q in z)if(Q in w){var _=w[Q],B=z[Q];if(_!==B){if($===0&&Q==="children")G="  ".repeat($)+Q,Z.push([S3+G,"…"],[b3+G,"…"]);else{if(!(3<=$)){if(typeof _==="object"&&typeof B==="object"&&_!==null&&B!==null&&_.$$typeof===B.$$typeof)if(B.$$typeof===x8){if(_.type===B.type&&_.key===B.key){_=S(B.type)||"…",G="  ".repeat($)+Q,_="<"+_+" … />",Z.push([S3+G,_],[b3+G,_]),G=!1;continue}}else{var A=Object.prototype.toString.call(_),D=Object.prototype.toString.call(B);if(A===D&&(D==="[object Object]"||D==="[object Array]")){A=[$k+"  ".repeat($)+Q,D==="[object Array]"?"Array":""],Z.push(A),D=Z.length,sB(_,B,Z,$+1)?D===Z.length&&(A[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof _==="function"&&typeof B==="function"&&_.name===B.name&&_.length===B.length&&(A=Function.prototype.toString.call(_),D=Function.prototype.toString.call(B),A===D)){_=B.name===""?"() => {}":B.name+"() {}",Z.push([$k+"  ".repeat($)+Q,_+" Referentially unequal function closure. Consider memoization."]);continue}}U8(Q,_,Z,$,S3),U8(Q,B,Z,$,b3)}G=!1}}else Z.push([b3+"  ".repeat($)+Q,"…"]),G=!1;return G}function g2(w){B1=w&63?"Blocking":w&64?"Gesture":w&4194176?"Transition":w&62914560?"Suspense":w&2080374784?"Idle":"Other"}function _8(w,z,Z,$){c1&&(G4.start=z,G4.end=Z,Q6.color="warning",Q6.tooltipText=$,Q6.properties=null,(w=w._debugTask)?w.run(performance.measure.bind(performance,$,G4)):performance.measure($,G4))}function k$(w,z,Z){_8(w,z,Z,"Reconnect")}function j$(w,z,Z,$,G){var Q=d(w);if(Q!==null&&c1){var{alternate:_,actualDuration:B}=w;if(_===null||_.child!==w.child)for(var A=w.child;A!==null;A=A.sibling)B-=A.actualDuration;$=0.5>B?$?"tertiary-light":"primary-light":10>B?$?"tertiary":"primary":100>B?$?"tertiary-dark":"primary-dark":"error";var D=w.memoizedProps;B=w._debugTask,D!==null&&_!==null&&_.memoizedProps!==D?(A=[mh],D=sB(_.memoizedProps,D,A,0),1<A.length&&(D&&!Y4&&(_.lanes&G)===0&&100<w.actualDuration?(Y4=!0,A[0]=dh,Q6.color="warning",Q6.tooltipText=Yk):(Q6.color=$,Q6.tooltipText=Q),Q6.properties=A,G4.start=z,G4.end=Z,B!=null?B.run(performance.measure.bind(performance,"​"+Q,G4)):performance.measure("​"+Q,G4))):B!=null?B.run(console.timeStamp.bind(console,Q,z,Z,_5,void 0,$)):console.timeStamp(Q,z,Z,_5,void 0,$)}}function vW(w,z,Z,$){if(c1){var G=d(w);if(G!==null){for(var Q=null,_=[],B=0;B<$.length;B++){var A=$[B];Q==null&&A.source!==null&&(Q=A.source._debugTask),A=A.value,_.push(["Error",typeof A==="object"&&A!==null&&typeof A.message==="string"?String(A.message):String(A)])}w.key!==null&&U8("key",w.key,_,0,""),w.memoizedProps!==null&&EW(w.memoizedProps,_,0,""),Q==null&&(Q=w._debugTask),w={start:z,end:Z,detail:{devtools:{color:"error",track:_5,tooltipText:w.tag===13?"Hydration failed":"Error boundary caught an error",properties:_}}},Q?Q.run(performance.measure.bind(performance,"​"+G,w)):performance.measure("​"+G,w)}}}function q8(w,z,Z,$,G){if(G!==null){if(c1){var Q=d(w);if(Q!==null){$=[];for(var _=0;_<G.length;_++){var B=G[_].value;$.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}w.key!==null&&U8("key",w.key,$,0,""),w.memoizedProps!==null&&EW(w.memoizedProps,$,0,""),z={start:z,end:Z,detail:{devtools:{color:"error",track:_5,tooltipText:"A lifecycle or effect errored",properties:$}}},(w=w._debugTask)?w.run(performance.measure.bind(performance,"​"+Q,z)):performance.measure("​"+Q,z)}}}else Q=d(w),Q!==null&&c1&&(G=1>$?"secondary-light":100>$?"secondary":500>$?"secondary-dark":"error",(w=w._debugTask)?w.run(console.timeStamp.bind(console,Q,z,Z,_5,void 0,G)):console.timeStamp(Q,z,Z,_5,void 0,G))}function GE(w,z,Z,$){if(c1&&!(z<=w)){var G=(Z&738197653)===Z?"tertiary-dark":"primary-dark";Z=(Z&536870912)===Z?"Prepared":(Z&201326741)===Z?"Hydrated":"Render",$?$.run(console.timeStamp.bind(console,Z,w,z,B1,q1,G)):console.timeStamp(Z,w,z,B1,q1,G)}}function oB(w,z,Z,$){!c1||z<=w||(Z=(Z&738197653)===Z?"tertiary-dark":"primary-dark",$?$.run(console.timeStamp.bind(console,"Prewarm",w,z,B1,q1,Z)):console.timeStamp("Prewarm",w,z,B1,q1,Z))}function nB(w,z,Z,$){!c1||z<=w||(Z=(Z&738197653)===Z?"tertiary-dark":"primary-dark",$?$.run(console.timeStamp.bind(console,"Suspended",w,z,B1,q1,Z)):console.timeStamp("Suspended",w,z,B1,q1,Z))}function QE(w,z,Z,$,G,Q){if(c1&&!(z<=w)){Z=[];for(var _=0;_<$.length;_++){var B=$[_].value;Z.push(["Recoverable Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}w={start:w,end:z,detail:{devtools:{color:"primary-dark",track:B1,trackGroup:q1,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:Z}}},Q?Q.run(performance.measure.bind(performance,"Recovered",w)):performance.measure("Recovered",w)}}function hW(w,z,Z,$){!c1||z<=w||($?$.run(console.timeStamp.bind(console,"Errored",w,z,B1,q1,"error")):console.timeStamp("Errored",w,z,B1,q1,"error"))}function WE(w,z,Z,$){!c1||z<=w||($?$.run(console.timeStamp.bind(console,Z,w,z,B1,q1,"secondary-light")):console.timeStamp(Z,w,z,B1,q1,"secondary-light"))}function tB(w,z,Z,$,G){if(c1&&!(z<=w)){for(var Q=[],_=0;_<Z.length;_++){var B=Z[_].value;Q.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}w={start:w,end:z,detail:{devtools:{color:"error",track:B1,trackGroup:q1,tooltipText:$?"Remaining Effects Errored":"Commit Errored",properties:Q}}},G?G.run(performance.measure.bind(performance,"Errored",w)):performance.measure("Errored",w)}}function hZ(w,z,Z){!c1||z<=w||(Z?Z.run(console.timeStamp.bind(console,"Animating",w,z,B1,q1,"secondary-dark")):console.timeStamp("Animating",w,z,B1,q1,"secondary-dark"))}function A$(){for(var w=i9,z=z_=i9=0;z<w;){var Z=q5[z];q5[z++]=null;var $=q5[z];q5[z++]=null;var G=q5[z];q5[z++]=null;var Q=q5[z];if(q5[z++]=null,$!==null&&G!==null){var _=$.pending;_===null?G.next=G:(G.next=_.next,_.next=G),$.pending=G}Q!==0&&eB(Z,G,Q)}}function M$(w,z,Z,$){q5[i9++]=w,q5[i9++]=z,q5[i9++]=Z,q5[i9++]=$,z_|=$,w.lanes|=$,w=w.alternate,w!==null&&(w.lanes|=$)}function PW(w,z,Z,$){return M$(w,z,Z,$),O$(w)}function z2(w,z){return M$(w,null,null,z),O$(w)}function eB(w,z,Z){w.lanes|=Z;var $=w.alternate;$!==null&&($.lanes|=Z);for(var G=!1,Q=w.return;Q!==null;)Q.childLanes|=Z,$=Q.alternate,$!==null&&($.childLanes|=Z),Q.tag===22&&(w=Q.stateNode,w===null||w._visibility&LJ||(G=!0)),w=Q,Q=Q.return;return w.tag===3?(Q=w.stateNode,G&&z!==null&&(G=31-U2(Z),w=Q.hiddenUpdates,$=w[G],$===null?w[G]=[z]:$.push(z),z.lane=Z|536870912),Q):null}function O$(w){if(pJ>ZP)throw P7=pJ=0,cJ=S_=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.");P7>JP&&(P7=0,cJ=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&&BF(w);for(var z=w,Z=z.return;Z!==null;)z.alternate===null&&(z.flags&4098)!==0&&BF(w),z=Z,Z=z.return;return z.tag===3?z.stateNode:null}function J7(w){if(H5===null)return w;var z=H5(w);return z===void 0?w:z.current}function IW(w){if(H5===null)return w;var z=H5(w);return z===void 0?w!==null&&w!==void 0&&typeof w.render==="function"&&(z=J7(w.render),w.render!==z)?(z={$$typeof:XJ,render:z},w.displayName!==void 0&&(z.displayName=w.displayName),z):w:z.current}function wL(w,z){if(H5===null)return!1;var Z=w.elementType;z=z.type;var $=!1,G=typeof z==="object"&&z!==null?z.$$typeof:null;switch(w.tag){case 1:typeof z==="function"&&($=!0);break;case 0:typeof z==="function"?$=!0:G===l2&&($=!0);break;case 11:G===XJ?$=!0:G===l2&&($=!0);break;case 14:case 15:G===j3?$=!0:G===l2&&($=!0);break;default:return!1}return $&&(w=H5(Z),w!==void 0&&w===H5(z))?!0:!1}function zL(w){H5!==null&&typeof WeakSet==="function"&&(r9===null&&(r9=new WeakSet),r9.add(w))}function ZL(w,z,Z){do{var $=w,G=$.alternate,Q=$.child,_=$.sibling,B=$.tag;$=$.type;var A=null;switch(B){case 0:case 15:case 1:A=$;break;case 11:A=$.render}if(H5===null)throw Error("Expected resolveFamily to be set during hot reload.");var D=!1;if($=!1,A!==null&&(A=H5(A),A!==void 0&&(Z.has(A)?$=!0:z.has(A)&&(B===1?$=!0:D=!0))),r9!==null&&(r9.has(w)||G!==null&&r9.has(G))&&($=!0),$&&(w._debugNeedsRemount=!0),$||D)G=z2(w,2),G!==null&&Zw(G,w,2);if(Q===null||$||ZL(Q,z,Z),_===null)break;w=_}while(1)}function KE(w,z,Z,$){this.tag=w,this.key=Z,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=$,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,Gk||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function CW(w){return w=w.prototype,!(!w||!w.isReactComponent)}function w6(w,z){var Z=w.alternate;switch(Z===null?(Z=k(w.tag,z,w.key,w.mode),Z.elementType=w.elementType,Z.type=w.type,Z.stateNode=w.stateNode,Z._debugOwner=w._debugOwner,Z._debugStack=w._debugStack,Z._debugTask=w._debugTask,Z._debugHookTypes=w._debugHookTypes,Z.alternate=w,w.alternate=Z):(Z.pendingProps=z,Z.type=w.type,Z.flags=0,Z.subtreeFlags=0,Z.deletions=null,Z.actualDuration=-0,Z.actualStartTime=-1.1),Z.flags=w.flags&65011712,Z.childLanes=w.childLanes,Z.lanes=w.lanes,Z.child=w.child,Z.memoizedProps=w.memoizedProps,Z.memoizedState=w.memoizedState,Z.updateQueue=w.updateQueue,z=w.dependencies,Z.dependencies=z===null?null:{lanes:z.lanes,firstContext:z.firstContext,_debugThenableState:z._debugThenableState},Z.sibling=w.sibling,Z.index=w.index,Z.ref=w.ref,Z.refCleanup=w.refCleanup,Z.selfBaseDuration=w.selfBaseDuration,Z.treeBaseDuration=w.treeBaseDuration,Z._debugInfo=w._debugInfo,Z._debugNeedsRemount=w._debugNeedsRemount,Z.tag){case 0:case 15:Z.type=J7(w.type);break;case 1:Z.type=J7(w.type);break;case 11:Z.type=IW(w.type)}return Z}function JL(w,z){w.flags&=65011714;var Z=w.alternate;return Z===null?(w.childLanes=0,w.lanes=z,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=Z.childLanes,w.lanes=Z.lanes,w.child=Z.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=Z.memoizedProps,w.memoizedState=Z.memoizedState,w.updateQueue=Z.updateQueue,w.type=Z.type,z=Z.dependencies,w.dependencies=z===null?null:{lanes:z.lanes,firstContext:z.firstContext,_debugThenableState:z._debugThenableState},w.selfBaseDuration=Z.selfBaseDuration,w.treeBaseDuration=Z.treeBaseDuration),w}function SW(w,z,Z,$,G,Q){var _=0,B=w;if(typeof w==="function")CW(w)&&(_=1),B=J7(B);else if(typeof w==="string")_=o(),_=Nv(w,Z,_)?26:w==="html"||w==="head"||w==="body"?27:5;else w:switch(w){case TU:return z=k(31,Z,z,G),z.elementType=TU,z.lanes=Q,z;case b9:return X7(Z.children,G,Q,z);case k3:_=8,G|=J2,G|=l5;break;case AU:return w=Z,$=G,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),z=k(12,w,z,$|Y1),z.elementType=AU,z.lanes=Q,z.stateNode={effectDuration:0,passiveEffectDuration:0},z;case OU:return z=k(13,Z,z,G),z.elementType=OU,z.lanes=Q,z;case DU:return z=k(19,Z,z,G),z.elementType=DU,z.lanes=Q,z;default:if(typeof w==="object"&&w!==null)switch(w.$$typeof){case E8:_=10;break w;case MU:_=9;break w;case XJ:_=11,B=IW(B);break w;case j3:_=14;break w;case l2:_=16,B=null;break w}if(B="",w===void 0||typeof w==="object"&&w!==null&&Object.keys(w).length===0)B+=" 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?Z="null":Iw(w)?Z="array":w!==void 0&&w.$$typeof===x8?(Z="<"+(S(w.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof w,(_=$?c($):null)&&(B+=`
72
+
73
+ Check the render method of \``+_+"`."),_=29,Z=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(Z+"."+B)),B=null}return z=k(_,Z,z,G),z.elementType=w,z.type=B,z.lanes=Q,z._debugOwner=$,z}function D$(w,z,Z){return z=SW(w.type,w.key,w.props,w._owner,z,Z),z._debugOwner=w._owner,z._debugStack=w._debugStack,z._debugTask=w._debugTask,z}function X7(w,z,Z,$){return w=k(7,w,$,z),w.lanes=Z,w}function bW(w,z,Z){return w=k(6,w,null,z),w.lanes=Z,w}function XL(w){var z=k(18,null,null,w1);return z.stateNode=w,z}function yW(w,z,Z){return z=k(4,w.children!==null?w.children:[],w.key,z),z.lanes=Z,z.stateNode={containerInfo:w.containerInfo,pendingChildren:null,implementation:w.implementation},z}function f2(w,z){if(typeof w==="object"&&w!==null){var Z=Z_.get(w);if(Z!==void 0)return Z;return z={value:w,source:z,stack:_0(z)},Z_.set(w,z),z}return{value:w,source:z,stack:_0(z)}}function z6(w,z){p6(),a9[s9++]=VJ,a9[s9++]=y3,y3=w,VJ=z}function $L(w,z,Z){p6(),B5[L5++]=K6,B5[L5++]=U6,B5[L5++]=V7,V7=w;var $=K6;w=U6;var G=32-U2($)-1;$&=~(1<<G),Z+=1;var Q=32-U2(z)+G;if(30<Q){var _=G-G%5;Q=($&(1<<_)-1).toString(32),$>>=_,G-=_,K6=1<<32-U2(z)+G|Z<<G|$,U6=Q+w}else K6=1<<Q|Z<<G|$,U6=w}function RW(w){p6(),w.return!==null&&(z6(w,1),$L(w,1,0))}function gW(w){for(;w===y3;)y3=a9[--s9],a9[s9]=null,VJ=a9[--s9],a9[s9]=null;for(;w===V7;)V7=B5[--L5],B5[L5]=null,U6=B5[--L5],B5[L5]=null,K6=B5[--L5],B5[L5]=null}function YL(){return p6(),V7!==null?{id:K6,overflow:U6}:null}function GL(w,z){p6(),B5[L5++]=K6,B5[L5++]=U6,B5[L5++]=V7,K6=z.id,U6=z.overflow,V7=w}function p6(){F1||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function $7(w,z){if(w.return===null){if(a2===null)a2={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:z};else{if(a2.fiber!==w)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");a2.distanceFromLeaf>z&&(a2.distanceFromLeaf=z)}return a2}var Z=$7(w.return,z+1).children;if(0<Z.length&&Z[Z.length-1].fiber===w)return Z=Z[Z.length-1],Z.distanceFromLeaf>z&&(Z.distanceFromLeaf=z),Z;return z={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:z},Z.push(z),z}function QL(){F1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function T$(w,z){S8||(w=$7(w,0),w.serverProps=null,z!==null&&(z=mF(z),w.serverTail.push(z)))}function c6(w){var z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,Z="",$=a2;throw $!==null&&(a2=null,Z=MW($)),PZ(f2(Error("Hydration failed because the server rendered "+(z?"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:
74
+
75
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
76
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
77
+ - Date formatting in a user's locale which doesn't match the server.
78
+ - External changing data without sending a snapshot of it along with the HTML.
79
+ - Invalid HTML tag nesting.
80
+
81
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
+
83
+ https://react.dev/link/hydration-mismatch`+Z),w)),J_}function WL(w){var{stateNode:z,type:Z,memoizedProps:$}=w;switch(z[ow]=w,z[_2]=$,XU(Z,$),Z){case"dialog":k1("cancel",z),k1("close",z);break;case"iframe":case"object":case"embed":k1("load",z);break;case"video":case"audio":for(Z=0;Z<lJ.length;Z++)k1(lJ[Z],z);break;case"source":k1("error",z);break;case"img":case"image":case"link":k1("error",z),k1("load",z);break;case"details":k1("toggle",z);break;case"input":K8("input",$),k1("invalid",z),BB(z,$),LB(z,$.value,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name,!0);break;case"option":VB(z,$);break;case"select":K8("select",$),k1("invalid",z),NB(z,$);break;case"textarea":K8("textarea",$),k1("invalid",z),kB(z,$),AB(z,$.value,$.defaultValue,$.children)}Z=$.children,typeof Z!=="string"&&typeof Z!=="number"&&typeof Z!=="bigint"||z.textContent===""+Z||$.suppressHydrationWarning===!0||TF(z.textContent,Z)?($.popover!=null&&(k1("beforetoggle",z),k1("toggle",z)),$.onScroll!=null&&k1("scroll",z),$.onScrollEnd!=null&&k1("scrollend",z),$.onClick!=null&&(z.onclick=e8),z=!0):z=!1,z||c6(w,!0)}function KL(w){for(nw=w.return;nw;)switch(nw.tag){case 5:case 31:case 13:V5=!1;return;case 27:case 3:V5=!0;return;default:nw=nw.return}}function N9(w){if(w!==nw)return!1;if(!F1)return KL(w),F1=!0,!1;var z=w.tag,Z;if(Z=z!==3&&z!==27){if(Z=z===5)Z=w.type,Z=!(Z!=="form"&&Z!=="button")||WU(w.type,w.memoizedProps);Z=!Z}if(Z&&l1){for(Z=l1;Z;){var $=$7(w,0),G=mF(Z);$.serverTail.push(G),Z=G.type==="Suspense"?qU(Z):c2(Z.nextSibling)}c6(w)}if(KL(w),z===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.");l1=qU(w)}else if(z===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.");l1=qU(w)}else z===27?(z=l1,w4(w.type)?(w=i_,i_=null,l1=w):l1=z):l1=nw?c2(w.stateNode.nextSibling):null;return!0}function Y7(){l1=nw=null,S8=F1=!1}function fW(){var w=W4;return w!==null&&(F2===null?F2=w:F2.push.apply(F2,w),W4=null),w}function PZ(w){W4===null?W4=[w]:W4.push(w)}function mW(){var w=a2;if(w!==null){a2=null;for(var z=MW(w);0<w.children.length;)w=w.children[0];n(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:
84
+
85
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
86
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
87
+ - Date formatting in a user's locale which doesn't match the server.
88
+ - External changing data without sending a snapshot of it along with the HTML.
89
+ - Invalid HTML tag nesting.
90
+
91
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
+
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",z)})}}function x$(){o9=R3=null,n9=!1}function l6(w,z,Z){u(X_,z._currentValue,w),z._currentValue=Z,u($_,z._currentRenderer,w),z._currentRenderer!==void 0&&z._currentRenderer!==null&&z._currentRenderer!==Wk&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),z._currentRenderer=Wk}function Z6(w,z){w._currentValue=X_.current;var Z=$_.current;t($_,z),w._currentRenderer=Z,t(X_,z)}function dW(w,z,Z){for(;w!==null;){var $=w.alternate;if((w.childLanes&z)!==z?(w.childLanes|=z,$!==null&&($.childLanes|=z)):$!==null&&($.childLanes&z)!==z&&($.childLanes|=z),w===Z)break;w=w.return}w!==Z&&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 uW(w,z,Z,$){var G=w.child;G!==null&&(G.return=w);for(;G!==null;){var Q=G.dependencies;if(Q!==null){var _=G.child;Q=Q.firstContext;w:for(;Q!==null;){var B=Q;Q=G;for(var A=0;A<z.length;A++)if(B.context===z[A]){Q.lanes|=Z,B=Q.alternate,B!==null&&(B.lanes|=Z),dW(Q.return,Z,w),$||(_=null);break w}Q=B.next}}else if(G.tag===18){if(_=G.return,_===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");_.lanes|=Z,Q=_.alternate,Q!==null&&(Q.lanes|=Z),dW(_,Z,w),_=null}else _=G.child;if(_!==null)_.return=G;else for(_=G;_!==null;){if(_===w){_=null;break}if(G=_.sibling,G!==null){G.return=_.return,_=G;break}_=_.return}G=_}}function k9(w,z,Z,$){w=null;for(var G=z,Q=!1;G!==null;){if(!Q){if((G.flags&524288)!==0)Q=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var _=G.alternate;if(_===null)throw Error("Should have a current fiber. This is a bug in React.");if(_=_.memoizedProps,_!==null){var B=G.type;H2(G.pendingProps.value,_.value)||(w!==null?w.push(B):w=[B])}}else if(G===A3.current){if(_=G.alternate,_===null)throw Error("Should have a current fiber. This is a bug in React.");_.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(w!==null?w.push(oJ):w=[oJ])}G=G.return}w!==null&&uW(z,w,Z,$),z.flags|=262144}function E$(w){for(w=w.firstContext;w!==null;){if(!H2(w.context._currentValue,w.memoizedValue))return!0;w=w.next}return!1}function G7(w){R3=w,o9=null,w=w.dependencies,w!==null&&(w.firstContext=null)}function s1(w){return n9&&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()."),UL(R3,w)}function v$(w,z){return R3===null&&G7(w),UL(w,z)}function UL(w,z){var Z=z._currentValue;if(z={context:z,memoizedValue:Z,next:null},o9===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().");o9=z,w.dependencies={lanes:0,firstContext:z,_debugThenableState:null},w.flags|=524288}else o9=o9.next=z;return Z}function pW(){return{controller:new ch,data:new Map,refCount:0}}function Q7(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 IZ(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&&lh(ih,function(){w.controller.abort()})}function H8(w,z,Z){if((w&127)!==0)0>b8&&(b8=Nw(),NJ=g3(z),Y_=z,Z!=null&&(G_=d(Z)),(M1&(Sw|n2))!==uw&&(Jw=!0,_4=FJ),w=eZ(),z=tZ(),w!==t9||z!==kJ?t9=-1.1:z!==null&&(_4=FJ),N7=w,kJ=z);else if((w&4194048)!==0&&0>F5&&(F5=Nw(),jJ=g3(z),Kk=z,Z!=null&&(Uk=d(Z)),0>H6)){if(w=eZ(),z=tZ(),w!==H4||z!==k7)H4=-1.1;q4=w,k7=z}}function UE(w){if(0>b8){b8=Nw(),NJ=w._debugTask!=null?w._debugTask:null,(M1&(Sw|n2))!==uw&&(_4=FJ);var z=eZ(),Z=tZ();z!==t9||Z!==kJ?t9=-1.1:Z!==null&&(_4=FJ),N7=z,kJ=Z}if(0>F5&&(F5=Nw(),jJ=w._debugTask!=null?w._debugTask:null,0>H6)){if(w=eZ(),z=tZ(),w!==H4||z!==k7)H4=-1.1;q4=w,k7=z}}function J6(){var w=F7;return F7=0,w}function h$(w){var z=F7;return F7=w,z}function CZ(w){var z=F7;return F7+=w,z}function P$(){e0=s0=-1.1}function m2(){var w=s0;return s0=-1.1,w}function d2(w){0<=w&&(s0=w)}function B8(){var w=t1;return t1=-0,w}function L8(w){0<=w&&(t1=w)}function V8(){var w=o1;return o1=null,w}function F8(){var w=Jw;return Jw=!1,w}function cW(w){B2=Nw(),0>w.actualStartTime&&(w.actualStartTime=B2)}function lW(w){if(0<=B2){var z=Nw()-B2;w.actualDuration+=z,w.selfBaseDuration=z,B2=-1}}function _L(w){if(0<=B2){var z=Nw()-B2;w.actualDuration+=z,B2=-1}}function N8(){if(0<=B2){var w=Nw(),z=w-B2;B2=-1,F7+=z,t1+=z,e0=w}}function qL(w){o1===null&&(o1=[]),o1.push(w),q6===null&&(q6=[]),q6.push(w)}function k8(){B2=Nw(),0>s0&&(s0=B2)}function SZ(w){for(var z=w.child;z;)w.actualDuration+=z.actualDuration,z=z.sibling}function _E(w,z){if(MJ===null){var Z=MJ=[];W_=0,j7=wU(),e9={status:"pending",value:void 0,then:function($){Z.push($)}}}return W_++,z.then(HL,HL),z}function HL(){if(--W_===0&&(-1<F5||(H6=-1.1),MJ!==null)){e9!==null&&(e9.status="fulfilled");var w=MJ;MJ=null,j7=0,e9=null;for(var z=0;z<w.length;z++)(0,w[z])()}}function qE(w,z){var Z=[],$={status:"pending",value:null,reason:null,then:function(G){Z.push(G)}};return w.then(function(){$.status="fulfilled",$.value=z;for(var G=0;G<Z.length;G++)(0,Z[G])(z)},function(G){$.status="rejected",$.reason=G;for(G=0;G<Z.length;G++)(0,Z[G])(void 0)}),$}function iW(){var w=A7.current;return w!==null?w:g1.pooledCache}function I$(w,z){z===null?u(A7,A7.current,w):u(A7,z.pool,w)}function BL(){var w=iW();return w===null?null:{parent:Fw._currentValue,pool:w}}function LL(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function VL(w){return w=w.status,w==="fulfilled"||w==="rejected"}function FL(w,z,Z){G0.actQueue!==null&&(G0.didUsePromise=!0);var $=w.thenables;if(Z=$[Z],Z===void 0?$.push(z):Z!==z&&(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.")),z.then(e8,e8),z=Z),z._debugInfo===void 0){w=performance.now(),$=z.displayName;var G={name:typeof $==="string"?$:"Promise",start:w,end:w,value:z};z._debugInfo=[{awaited:G}],z.status!=="fulfilled"&&z.status!=="rejected"&&(w=function(){G.end=performance.now()},z.then(w,w))}switch(z.status){case"fulfilled":return z.value;case"rejected":throw w=z.reason,kL(w),w;default:if(typeof z.status==="string")z.then(e8,e8);else{if(w=g1,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=z,w.status="pending",w.then(function(Q){if(z.status==="pending"){var _=z;_.status="fulfilled",_.value=Q}},function(Q){if(z.status==="pending"){var _=z;_.status="rejected",_.reason=Q}})}switch(z.status){case"fulfilled":return z.value;case"rejected":throw w=z.reason,kL(w),w}throw O7=z,hJ=!0,wz}}function i6(w){try{return oh(w)}catch(z){if(z!==null&&typeof z==="object"&&typeof z.then==="function")throw O7=z,hJ=!0,wz;throw z}}function NL(){if(O7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var w=O7;return O7=null,hJ=!1,w}function kL(w){if(w===wz||w===i3)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 rw(w){var z=G1;return w!=null&&(G1=z===null?w:z.concat(w)),z}function rW(){var w=G1;if(w!=null){for(var z=w.length-1;0<=z;z--)if(w[z].name!=null){var Z=w[z].debugTask;if(Z!=null)return Z}}return null}function C$(w,z,Z){for(var $=Object.keys(w.props),G=0;G<$.length;G++){var Q=$[G];if(Q!=="children"&&Q!=="key"){z===null&&(z=D$(w,Z.mode,0),z._debugInfo=G1,z.return=Z),n(z,function(_){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_)},Q);break}}}function S$(w){var z=PJ;return PJ+=1,zz===null&&(zz=LL()),FL(zz,w,z)}function bZ(w,z){z=z.props.ref,w.ref=z!==void 0?z:null}function jL(w,z){if(z.$$typeof===vv)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
+ - Multiple copies of the "react" package is used.
95
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw w=Object.prototype.toString.call(z),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}function b$(w,z){var Z=rW();Z!==null?Z.run(jL.bind(null,w,z)):jL(w,z)}function AL(w,z){var Z=d(w)||"Component";Pk[Z]||(Pk[Z]=!0,z=z.displayName||z.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.
97
+ root.render(%s)`,z,z,z):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.
98
+ <%s>{%s}</%s>`,z,z,Z,z,Z))}function y$(w,z){var Z=rW();Z!==null?Z.run(AL.bind(null,w,z)):AL(w,z)}function ML(w,z){var Z=d(w)||"Component";Ik[Z]||(Ik[Z]=!0,z=String(z),w.tag===3?console.error(`Symbols are not valid as a React child.
99
+ root.render(%s)`,z):console.error(`Symbols are not valid as a React child.
100
+ <%s>%s</%s>`,Z,z,Z))}function R$(w,z){var Z=rW();Z!==null?Z.run(ML.bind(null,w,z)):ML(w,z)}function OL(w){function z(b,f){if(w){var l=b.deletions;l===null?(b.deletions=[f],b.flags|=16):l.push(f)}}function Z(b,f){if(!w)return null;for(;f!==null;)z(b,f),f=f.sibling;return null}function $(b){for(var f=new Map;b!==null;)b.key!==null?f.set(b.key,b):f.set(b.index,b),b=b.sibling;return f}function G(b,f){return b=w6(b,f),b.index=0,b.sibling=null,b}function Q(b,f,l){if(b.index=l,!w)return b.flags|=1048576,f;if(l=b.alternate,l!==null)return l=l.index,l<f?(b.flags|=67108866,f):l;return b.flags|=67108866,f}function _(b){return w&&b.alternate===null&&(b.flags|=67108866),b}function B(b,f,l,W0){if(f===null||f.tag!==6)return f=bW(l,b.mode,W0),f.return=b,f._debugOwner=b,f._debugTask=b._debugTask,f._debugInfo=G1,f;return f=G(f,l),f.return=b,f._debugInfo=G1,f}function A(b,f,l,W0){var D0=l.type;if(D0===b9)return f=i(b,f,l.props.children,W0,l.key),C$(l,f,b),f;if(f!==null&&(f.elementType===D0||wL(f,l)||typeof D0==="object"&&D0!==null&&D0.$$typeof===l2&&i6(D0)===f.type))return f=G(f,l.props),bZ(f,l),f.return=b,f._debugOwner=l._owner,f._debugInfo=G1,f;return f=D$(l,b.mode,W0),bZ(f,l),f.return=b,f._debugInfo=G1,f}function D(b,f,l,W0){if(f===null||f.tag!==4||f.stateNode.containerInfo!==l.containerInfo||f.stateNode.implementation!==l.implementation)return f=yW(l,b.mode,W0),f.return=b,f._debugInfo=G1,f;return f=G(f,l.children||[]),f.return=b,f._debugInfo=G1,f}function i(b,f,l,W0,D0){if(f===null||f.tag!==7)return f=X7(l,b.mode,W0,D0),f.return=b,f._debugOwner=b,f._debugTask=b._debugTask,f._debugInfo=G1,f;return f=G(f,l),f.return=b,f._debugInfo=G1,f}function a(b,f,l){if(typeof f==="string"&&f!==""||typeof f==="number"||typeof f==="bigint")return f=bW(""+f,b.mode,l),f.return=b,f._debugOwner=b,f._debugTask=b._debugTask,f._debugInfo=G1,f;if(typeof f==="object"&&f!==null){switch(f.$$typeof){case x8:return l=D$(f,b.mode,l),bZ(l,f),l.return=b,b=rw(f._debugInfo),l._debugInfo=G1,G1=b,l;case S9:return f=yW(f,b.mode,l),f.return=b,f._debugInfo=G1,f;case l2:var W0=rw(f._debugInfo);return f=i6(f),b=a(b,f,l),G1=W0,b}if(Iw(f)||R(f))return l=X7(f,b.mode,l,null),l.return=b,l._debugOwner=b,l._debugTask=b._debugTask,b=rw(f._debugInfo),l._debugInfo=G1,G1=b,l;if(typeof f.then==="function")return W0=rw(f._debugInfo),b=a(b,S$(f),l),G1=W0,b;if(f.$$typeof===E8)return a(b,v$(b,f),l);b$(b,f)}return typeof f==="function"&&y$(b,f),typeof f==="symbol"&&R$(b,f),null}function y(b,f,l,W0){var D0=f!==null?f.key:null;if(typeof l==="string"&&l!==""||typeof l==="number"||typeof l==="bigint")return D0!==null?null:B(b,f,""+l,W0);if(typeof l==="object"&&l!==null){switch(l.$$typeof){case x8:return l.key===D0?(D0=rw(l._debugInfo),b=A(b,f,l,W0),G1=D0,b):null;case S9:return l.key===D0?D(b,f,l,W0):null;case l2:return D0=rw(l._debugInfo),l=i6(l),b=y(b,f,l,W0),G1=D0,b}if(Iw(l)||R(l)){if(D0!==null)return null;return D0=rw(l._debugInfo),b=i(b,f,l,W0,null),G1=D0,b}if(typeof l.then==="function")return D0=rw(l._debugInfo),b=y(b,f,S$(l),W0),G1=D0,b;if(l.$$typeof===E8)return y(b,f,v$(b,l),W0);b$(b,l)}return typeof l==="function"&&y$(b,l),typeof l==="symbol"&&R$(b,l),null}function Z0(b,f,l,W0,D0){if(typeof W0==="string"&&W0!==""||typeof W0==="number"||typeof W0==="bigint")return b=b.get(l)||null,B(f,b,""+W0,D0);if(typeof W0==="object"&&W0!==null){switch(W0.$$typeof){case x8:return l=b.get(W0.key===null?l:W0.key)||null,b=rw(W0._debugInfo),f=A(f,l,W0,D0),G1=b,f;case S9:return b=b.get(W0.key===null?l:W0.key)||null,D(f,b,W0,D0);case l2:var Z1=rw(W0._debugInfo);return W0=i6(W0),f=Z0(b,f,l,W0,D0),G1=Z1,f}if(Iw(W0)||R(W0))return l=b.get(l)||null,b=rw(W0._debugInfo),f=i(f,l,W0,D0,null),G1=b,f;if(typeof W0.then==="function")return Z1=rw(W0._debugInfo),f=Z0(b,f,l,S$(W0),D0),G1=Z1,f;if(W0.$$typeof===E8)return Z0(b,f,l,v$(f,W0),D0);b$(f,W0)}return typeof W0==="function"&&y$(f,W0),typeof W0==="symbol"&&R$(f,W0),null}function M0(b,f,l,W0){if(typeof l!=="object"||l===null)return W0;switch(l.$$typeof){case x8:case S9:N(b,f,l);var D0=l.key;if(typeof D0!=="string")break;if(W0===null){W0=new Set,W0.add(D0);break}if(!W0.has(D0)){W0.add(D0);break}n(f,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.",D0)});break;case l2:l=i6(l),M0(b,f,l,W0)}return W0}function E0(b,f,l,W0){for(var D0=null,Z1=null,i0=null,m0=f,X1=f=0,i1=null;m0!==null&&X1<l.length;X1++){m0.index>X1?(i1=m0,m0=null):i1=m0.sibling;var Hw=y(b,m0,l[X1],W0);if(Hw===null){m0===null&&(m0=i1);break}D0=M0(b,Hw,l[X1],D0),w&&m0&&Hw.alternate===null&&z(b,m0),f=Q(Hw,f,X1),i0===null?Z1=Hw:i0.sibling=Hw,i0=Hw,m0=i1}if(X1===l.length)return Z(b,m0),F1&&z6(b,X1),Z1;if(m0===null){for(;X1<l.length;X1++)m0=a(b,l[X1],W0),m0!==null&&(D0=M0(b,m0,l[X1],D0),f=Q(m0,f,X1),i0===null?Z1=m0:i0.sibling=m0,i0=m0);return F1&&z6(b,X1),Z1}for(m0=$(m0);X1<l.length;X1++)i1=Z0(m0,b,X1,l[X1],W0),i1!==null&&(D0=M0(b,i1,l[X1],D0),w&&i1.alternate!==null&&m0.delete(i1.key===null?X1:i1.key),f=Q(i1,f,X1),i0===null?Z1=i1:i0.sibling=i1,i0=i1);return w&&m0.forEach(function(M6){return z(b,M6)}),F1&&z6(b,X1),Z1}function d1(b,f,l,W0){if(l==null)throw Error("An iterable object provided no iterator.");for(var D0=null,Z1=null,i0=f,m0=f=0,X1=null,i1=null,Hw=l.next();i0!==null&&!Hw.done;m0++,Hw=l.next()){i0.index>m0?(X1=i0,i0=null):X1=i0.sibling;var M6=y(b,i0,Hw.value,W0);if(M6===null){i0===null&&(i0=X1);break}i1=M0(b,M6,Hw.value,i1),w&&i0&&M6.alternate===null&&z(b,i0),f=Q(M6,f,m0),Z1===null?D0=M6:Z1.sibling=M6,Z1=M6,i0=X1}if(Hw.done)return Z(b,i0),F1&&z6(b,m0),D0;if(i0===null){for(;!Hw.done;m0++,Hw=l.next())i0=a(b,Hw.value,W0),i0!==null&&(i1=M0(b,i0,Hw.value,i1),f=Q(i0,f,m0),Z1===null?D0=i0:Z1.sibling=i0,Z1=i0);return F1&&z6(b,m0),D0}for(i0=$(i0);!Hw.done;m0++,Hw=l.next())X1=Z0(i0,b,m0,Hw.value,W0),X1!==null&&(i1=M0(b,X1,Hw.value,i1),w&&X1.alternate!==null&&i0.delete(X1.key===null?m0:X1.key),f=Q(X1,f,m0),Z1===null?D0=X1:Z1.sibling=X1,Z1=X1);return w&&i0.forEach(function(kP){return z(b,kP)}),F1&&z6(b,m0),D0}function j1(b,f,l,W0){if(typeof l==="object"&&l!==null&&l.type===b9&&l.key===null&&(C$(l,null,b),l=l.props.children),typeof l==="object"&&l!==null){switch(l.$$typeof){case x8:var D0=rw(l._debugInfo);w:{for(var Z1=l.key;f!==null;){if(f.key===Z1){if(Z1=l.type,Z1===b9){if(f.tag===7){Z(b,f.sibling),W0=G(f,l.props.children),W0.return=b,W0._debugOwner=l._owner,W0._debugInfo=G1,C$(l,W0,b),b=W0;break w}}else if(f.elementType===Z1||wL(f,l)||typeof Z1==="object"&&Z1!==null&&Z1.$$typeof===l2&&i6(Z1)===f.type){Z(b,f.sibling),W0=G(f,l.props),bZ(W0,l),W0.return=b,W0._debugOwner=l._owner,W0._debugInfo=G1,b=W0;break w}Z(b,f);break}else z(b,f);f=f.sibling}l.type===b9?(W0=X7(l.props.children,b.mode,W0,l.key),W0.return=b,W0._debugOwner=b,W0._debugTask=b._debugTask,W0._debugInfo=G1,C$(l,W0,b),b=W0):(W0=D$(l,b.mode,W0),bZ(W0,l),W0.return=b,W0._debugInfo=G1,b=W0)}return b=_(b),G1=D0,b;case S9:w:{D0=l;for(l=D0.key;f!==null;){if(f.key===l)if(f.tag===4&&f.stateNode.containerInfo===D0.containerInfo&&f.stateNode.implementation===D0.implementation){Z(b,f.sibling),W0=G(f,D0.children||[]),W0.return=b,b=W0;break w}else{Z(b,f);break}else z(b,f);f=f.sibling}W0=yW(D0,b.mode,W0),W0.return=b,b=W0}return _(b);case l2:return D0=rw(l._debugInfo),l=i6(l),b=j1(b,f,l,W0),G1=D0,b}if(Iw(l))return D0=rw(l._debugInfo),b=E0(b,f,l,W0),G1=D0,b;if(R(l)){if(D0=rw(l._debugInfo),Z1=R(l),typeof Z1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var i0=Z1.call(l);if(i0===l){if(b.tag!==0||Object.prototype.toString.call(b.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(i0)!=="[object Generator]")vk||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."),vk=!0}else l.entries!==Z1||q_||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),q_=!0);return b=d1(b,f,i0,W0),G1=D0,b}if(typeof l.then==="function")return D0=rw(l._debugInfo),b=j1(b,f,S$(l),W0),G1=D0,b;if(l.$$typeof===E8)return j1(b,f,v$(b,l),W0);b$(b,l)}if(typeof l==="string"&&l!==""||typeof l==="number"||typeof l==="bigint")return D0=""+l,f!==null&&f.tag===6?(Z(b,f.sibling),W0=G(f,D0),W0.return=b,b=W0):(Z(b,f),W0=bW(D0,b.mode,W0),W0.return=b,W0._debugOwner=b,W0._debugTask=b._debugTask,W0._debugInfo=G1,b=W0),_(b);return typeof l==="function"&&y$(b,l),typeof l==="symbol"&&R$(b,l),Z(b,f)}return function(b,f,l,W0){var D0=G1;G1=null;try{PJ=0;var Z1=j1(b,f,l,W0);return zz=null,Z1}catch(i1){if(i1===wz||i1===i3)throw i1;var i0=k(29,i1,null,b.mode);i0.lanes=W0,i0.return=b;var m0=i0._debugInfo=G1;if(i0._debugOwner=b._debugOwner,i0._debugTask=b._debugTask,m0!=null){for(var X1=m0.length-1;0<=X1;X1--)if(typeof m0[X1].stack==="string"){i0._debugOwner=m0[X1],i0._debugTask=m0[X1].debugTask;break}}return i0}finally{G1=D0}}}function DL(w,z){var Z=Iw(w);return w=!Z&&typeof R(w)==="function",Z||w?(Z=Z?"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>",Z,z,Z),!1):!0}function aW(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sW(w,z){w=w.updateQueue,z.updateQueue===w&&(z.updateQueue={baseState:w.baseState,firstBaseUpdate:w.firstBaseUpdate,lastBaseUpdate:w.lastBaseUpdate,shared:w.shared,callbacks:null})}function r6(w){return{lane:w,tag:Sk,payload:null,callback:null,next:null}}function a6(w,z,Z){var $=w.updateQueue;if($===null)return null;if($=$.shared,B_===$&&!Rk){var G=d(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.
101
+
102
+ Please update the following component: %s`,G),Rk=!0}if((M1&Sw)!==uw)return G=$.pending,G===null?z.next=z:(z.next=G.next,G.next=z),$.pending=z,z=O$(w),eB(w,null,Z),z;return M$(w,$,z,Z),O$(w)}function yZ(w,z,Z){if(z=z.updateQueue,z!==null&&(z=z.shared,(Z&4194048)!==0)){var $=z.lanes;$&=w.pendingLanes,Z|=$,z.lanes=Z,Vw(w,Z)}}function g$(w,z){var{updateQueue:Z,alternate:$}=w;if($!==null&&($=$.updateQueue,Z===$)){var G=null,Q=null;if(Z=Z.firstBaseUpdate,Z!==null){do{var _={lane:Z.lane,tag:Z.tag,payload:Z.payload,callback:null,next:null};Q===null?G=Q=_:Q=Q.next=_,Z=Z.next}while(Z!==null);Q===null?G=Q=z:Q=Q.next=z}else G=Q=z;Z={baseState:$.baseState,firstBaseUpdate:G,lastBaseUpdate:Q,shared:$.shared,callbacks:$.callbacks},w.updateQueue=Z;return}w=Z.lastBaseUpdate,w===null?Z.firstBaseUpdate=z:w.next=z,Z.lastBaseUpdate=z}function RZ(){if(L_){var w=e9;if(w!==null)throw w}}function gZ(w,z,Z,$){L_=!1;var G=w.updateQueue;B4=!1,B_=G.shared;var{firstBaseUpdate:Q,lastBaseUpdate:_}=G,B=G.shared.pending;if(B!==null){G.shared.pending=null;var A=B,D=A.next;A.next=null,_===null?Q=D:_.next=D,_=A;var i=w.alternate;i!==null&&(i=i.updateQueue,B=i.lastBaseUpdate,B!==_&&(B===null?i.firstBaseUpdate=D:B.next=D,i.lastBaseUpdate=A))}if(Q!==null){var a=G.baseState;_=0,i=D=A=null,B=Q;do{var y=B.lane&-536870913,Z0=y!==B.lane;if(Z0?(Q1&y)===y:($&y)===y){y!==0&&y===j7&&(L_=!0),i!==null&&(i=i.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});w:{y=w;var M0=B,E0=z,d1=Z;switch(M0.tag){case bk:if(M0=M0.payload,typeof M0==="function"){n9=!0;var j1=M0.call(d1,a,E0);if(y.mode&J2){b0(!0);try{M0.call(d1,a,E0)}finally{b0(!1)}}n9=!1,a=j1;break w}a=M0;break w;case H_:y.flags=y.flags&-65537|128;case Sk:if(j1=M0.payload,typeof j1==="function"){if(n9=!0,M0=j1.call(d1,a,E0),y.mode&J2){b0(!0);try{j1.call(d1,a,E0)}finally{b0(!1)}}n9=!1}else M0=j1;if(M0===null||M0===void 0)break w;a=_1({},a,M0);break w;case yk:B4=!0}}y=B.callback,y!==null&&(w.flags|=64,Z0&&(w.flags|=8192),Z0=G.callbacks,Z0===null?G.callbacks=[y]:Z0.push(y))}else Z0={lane:y,tag:B.tag,payload:B.payload,callback:B.callback,next:null},i===null?(D=i=Z0,A=a):i=i.next=Z0,_|=y;if(B=B.next,B===null)if(B=G.shared.pending,B===null)break;else Z0=B,B=Z0.next,Z0.next=null,G.lastBaseUpdate=Z0,G.shared.pending=null}while(1);i===null&&(A=a),G.baseState=A,G.firstBaseUpdate=D,G.lastBaseUpdate=i,Q===null&&(G.shared.lanes=0),F4|=_,w.lanes=_,w.memoizedState=a}B_=null}function TL(w,z){if(typeof w!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+w);w.call(z)}function HE(w,z){var Z=w.shared.hiddenCallbacks;if(Z!==null)for(w.shared.hiddenCallbacks=null,w=0;w<Z.length;w++)TL(Z[w],z)}function xL(w,z){var Z=w.callbacks;if(Z!==null)for(w.callbacks=null,w=0;w<Z.length;w++)TL(Z[w],z)}function EL(w,z){var Z=g8;u(a3,Z,w),u(Zz,z,w),g8=Z|z.baseLanes}function oW(w){u(a3,g8,w),u(Zz,Zz.current,w)}function nW(w){g8=a3.current,t(Zz,w),t(a3,w)}function s6(w){var z=w.alternate;u(qw,qw.current&Jz,w),u(s2,w,w),N5===null&&(z===null||Zz.current!==null?N5=w:z.memoizedState!==null&&(N5=w))}function tW(w){u(qw,qw.current,w),u(s2,w,w),N5===null&&(N5=w)}function vL(w){w.tag===22?(u(qw,qw.current,w),u(s2,w,w),N5===null&&(N5=w)):o6(w)}function o6(w){u(qw,qw.current,w),u(s2,s2.current,w)}function u2(w){t(s2,w),N5===w&&(N5=null),t(qw,w)}function f$(w){for(var z=w;z!==null;){if(z.tag===13){var Z=z.memoizedState;if(Z!==null&&(Z=Z.dehydrated,Z===null||UU(Z)||_U(Z)))return z}else if(z.tag===19&&(z.memoizedProps.revealOrder==="forwards"||z.memoizedProps.revealOrder==="backwards"||z.memoizedProps.revealOrder==="unstable_legacy-backwards"||z.memoizedProps.revealOrder==="together")){if((z.flags&128)!==0)return z}else if(z.child!==null){z.child.return=z,z=z.child;continue}if(z===w)break;for(;z.sibling===null;){if(z.return===null||z.return===w)return null;z=z.return}z.sibling.return=z.return,z=z.sibling}return null}function U1(){var w=$0;j5===null?j5=[w]:j5.push(w)}function H0(){var w=$0;if(j5!==null&&(F6++,j5[F6]!==w)){var z=d(z1);if(!gk.has(z)&&(gk.add(z),j5!==null)){for(var Z="",$=0;$<=F6;$++){var G=j5[$],Q=$===F6?w:G;for(G=$+1+". "+G;30>G.length;)G+=" ";G+=Q+`
103
+ `,Z+=G}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
104
+
105
+ Previous render Next render
106
+ ------------------------------------------------------
107
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
+ `,z,Z)}}}function j9(w){w===void 0||w===null||Iw(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.",$0,typeof w)}function m$(){var w=d(z1);mk.has(w)||(mk.add(w),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",w))}function Ww(){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:
109
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
110
+ 2. You might be breaking the Rules of Hooks
111
+ 3. You might have more than one copy of React in the same app
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function eW(w,z){if(SJ)return!1;if(z===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.",$0),!1;w.length!==z.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
+
114
+ Previous: %s
115
+ Incoming: %s`,$0,"["+z.join(", ")+"]","["+w.join(", ")+"]");for(var Z=0;Z<z.length&&Z<w.length;Z++)if(!H2(w[Z],z[Z]))return!1;return!0}function wK(w,z,Z,$,G,Q){if(L6=Q,z1=z,j5=w!==null?w._debugHookTypes:null,F6=-1,SJ=w!==null&&w.type!==z.type,Object.prototype.toString.call(Z)==="[object AsyncFunction]"||Object.prototype.toString.call(Z)==="[object AsyncGeneratorFunction]")Q=d(z1),V_.has(Q)||(V_.add(Q),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.",Q===null?"An unknown Component":"<"+Q+">"));z.memoizedState=null,z.updateQueue=null,z.lanes=0,G0.H=w!==null&&w.memoizedState!==null?N_:j5!==null?dk:F_,T7=Q=(z.mode&J2)!==w1;var _=K_(Z,$,G);if(T7=!1,$z&&(_=zK(z,Z,$,G)),Q){b0(!0);try{_=zK(z,Z,$,G)}finally{b0(!1)}}return hL(w,z),_}function hL(w,z){z._debugHookTypes=j5,z.dependencies===null?V6!==null&&(z.dependencies={lanes:0,firstContext:null,_debugThenableState:V6}):z.dependencies._debugThenableState=V6,G0.H=bJ;var Z=R1!==null&&R1.next!==null;if(L6=0,j5=$0=kw=R1=z1=null,F6=-1,w!==null&&(w.flags&65011712)!==(z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),o3=!1,CJ=0,V6=null,Z)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");w===null||jw||(w=w.dependencies,w!==null&&E$(w)&&(jw=!0)),hJ?(hJ=!1,w=!0):w=!1,w&&(z=d(z)||"Unknown",fk.has(z)||V_.has(z)||(fk.add(z),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 zK(w,z,Z,$){z1=w;var G=0;do{if($z&&(V6=null),CJ=0,$z=!1,G>=th)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,SJ=!1,kw=R1=null,w.updateQueue!=null){var Q=w.updateQueue;Q.lastEffect=null,Q.events=null,Q.stores=null,Q.memoCache!=null&&(Q.memoCache.index=0)}F6=-1,G0.H=uk,Q=K_(z,Z,$)}while($z);return Q}function BE(){var w=G0.H,z=w.useState()[0];return z=typeof z.then==="function"?fZ(z):z,w=w.useState()[0],(R1!==null?R1.memoizedState:null)!==w&&(z1.flags|=1024),z}function ZK(){var w=n3!==0;return n3=0,w}function JK(w,z,Z){z.updateQueue=w.updateQueue,z.flags=(z.mode&l5)!==w1?z.flags&-402655237:z.flags&-2053,w.lanes&=~Z}function XK(w){if(o3){for(w=w.memoizedState;w!==null;){var z=w.queue;z!==null&&(z.pending=null),w=w.next}o3=!1}L6=0,j5=kw=R1=z1=null,F6=-1,$0=null,$z=!1,CJ=n3=0,V6=null}function K2(){var w={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kw===null?z1.memoizedState=kw=w:kw=kw.next=w,kw}function C1(){if(R1===null){var w=z1.alternate;w=w!==null?w.memoizedState:null}else w=R1.next;var z=kw===null?z1.memoizedState:kw.next;if(z!==null)kw=z,R1=w;else{if(w===null){if(z1.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.")}R1=w,w={memoizedState:R1.memoizedState,baseState:R1.baseState,baseQueue:R1.baseQueue,queue:R1.queue,next:null},kw===null?z1.memoizedState=kw=w:kw=kw.next=w}return kw}function d$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fZ(w){var z=CJ;return CJ+=1,V6===null&&(V6=LL()),w=FL(V6,w,z),z=z1,(kw===null?z.memoizedState:kw.next)===null&&(z=z.alternate,G0.H=z!==null&&z.memoizedState!==null?N_:F_),w}function n6(w){if(w!==null&&typeof w==="object"){if(typeof w.then==="function")return fZ(w);if(w.$$typeof===E8)return s1(w)}throw Error("An unsupported type was passed to use(): "+String(w))}function W7(w){var z=null,Z=z1.updateQueue;if(Z!==null&&(z=Z.memoCache),z==null){var $=z1.alternate;$!==null&&($=$.updateQueue,$!==null&&($=$.memoCache,$!=null&&(z={data:$.data.map(function(G){return G.slice()}),index:0})))}if(z==null&&(z={data:[],index:0}),Z===null&&(Z=d$(),z1.updateQueue=Z),Z.memoCache=z,Z=z.data[z.index],Z===void 0||SJ)for(Z=z.data[z.index]=Array(w),$=0;$<w;$++)Z[$]=hv;else Z.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.",Z.length,w);return z.index++,Z}function d5(w,z){return typeof z==="function"?z(w):z}function $K(w,z,Z){var $=K2();if(Z!==void 0){var G=Z(z);if(T7){b0(!0);try{Z(z)}finally{b0(!1)}}}else G=z;return $.memoizedState=$.baseState=G,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:w,lastRenderedState:G},$.queue=w,w=w.dispatch=kE.bind(null,z1,w),[$.memoizedState,w]}function A9(w){var z=C1();return YK(z,R1,w)}function YK(w,z,Z){var $=w.queue;if($===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");$.lastRenderedReducer=Z;var G=w.baseQueue,Q=$.pending;if(Q!==null){if(G!==null){var _=G.next;G.next=Q.next,Q.next=_}z.baseQueue!==G&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),z.baseQueue=G=Q,$.pending=null}if(Q=w.baseState,G===null)w.memoizedState=Q;else{z=G.next;var B=_=null,A=null,D=z,i=!1;do{var a=D.lane&-536870913;if(a!==D.lane?(Q1&a)===a:(L6&a)===a){var y=D.revertLane;if(y===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),a===j7&&(i=!0);else if((L6&y)===y){D=D.next,y===j7&&(i=!0);continue}else a={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(B=A=a,_=Q):A=A.next=a,z1.lanes|=y,F4|=y;a=D.action,T7&&Z(Q,a),Q=D.hasEagerState?D.eagerState:Z(Q,a)}else y={lane:a,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(B=A=y,_=Q):A=A.next=y,z1.lanes|=a,F4|=a;D=D.next}while(D!==null&&D!==z);if(A===null?_=Q:A.next=B,!H2(Q,w.memoizedState)&&(jw=!0,i&&(Z=e9,Z!==null)))throw Z;w.memoizedState=Q,w.baseState=_,w.baseQueue=A,$.lastRenderedState=Q}return G===null&&($.lanes=0),[w.memoizedState,$.dispatch]}function mZ(w){var z=C1(),Z=z.queue;if(Z===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Z.lastRenderedReducer=w;var{dispatch:$,pending:G}=Z,Q=z.memoizedState;if(G!==null){Z.pending=null;var _=G=G.next;do Q=w(Q,_.action),_=_.next;while(_!==G);H2(Q,z.memoizedState)||(jw=!0),z.memoizedState=Q,z.baseQueue===null&&(z.baseState=Q),Z.lastRenderedState=Q}return[Q,$]}function GK(w,z,Z){var $=z1,G=K2();if(F1){if(Z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var Q=Z();Xz||Q===Z()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Xz=!0)}else{if(Q=z(),Xz||(Z=z(),H2(Q,Z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xz=!0)),g1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Q1&127)!==0||PL($,z,Q)}return G.memoizedState=Q,Z={value:Q,getSnapshot:z},G.queue=Z,l$(CL.bind(null,$,Z,w),[w]),$.flags|=2048,O9(k5|V2,{destroy:void 0},IL.bind(null,$,Z,Q,z),null),Q}function u$(w,z,Z){var $=z1,G=C1(),Q=F1;if(Q){if(Z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");Z=Z()}else if(Z=z(),!Xz){var _=z();H2(Z,_)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xz=!0)}if(_=!H2((R1||G).memoizedState,Z))G.memoizedState=Z,jw=!0;G=G.queue;var B=CL.bind(null,$,G,w);if(O2(2048,V2,B,[w]),G.getSnapshot!==z||_||kw!==null&&kw.memoizedState.tag&k5){if($.flags|=2048,O9(k5|V2,{destroy:void 0},IL.bind(null,$,G,Z,z),null),g1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Q||(L6&127)!==0||PL($,z,Z)}return Z}function PL(w,z,Z){w.flags|=16384,w={getSnapshot:z,value:Z},z=z1.updateQueue,z===null?(z=d$(),z1.updateQueue=z,z.stores=[w]):(Z=z.stores,Z===null?z.stores=[w]:Z.push(w))}function IL(w,z,Z,$){z.value=Z,z.getSnapshot=$,SL(z)&&bL(w)}function CL(w,z,Z){return Z(function(){SL(z)&&(H8(2,"updateSyncExternalStore()",w),bL(w))})}function SL(w){var z=w.getSnapshot;w=w.value;try{var Z=z();return!H2(w,Z)}catch($){return!0}}function bL(w){var z=z2(w,2);z!==null&&Zw(z,w,2)}function QK(w){var z=K2();if(typeof w==="function"){var Z=w;if(w=Z(),T7){b0(!0);try{Z()}finally{b0(!1)}}}return z.memoizedState=z.baseState=w,z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d5,lastRenderedState:w},z}function WK(w){w=QK(w);var z=w.queue,Z=wV.bind(null,z1,z);return z.dispatch=Z,[w.memoizedState,Z]}function KK(w){var z=K2();z.memoizedState=z.baseState=w;var Z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return z.queue=Z,z=OK.bind(null,z1,!0,Z),Z.dispatch=z,[w,z]}function yL(w,z){var Z=C1();return RL(Z,R1,w,z)}function RL(w,z,Z,$){return w.baseState=Z,YK(w,R1,typeof $==="function"?$:d5)}function gL(w,z){var Z=C1();if(R1!==null)return RL(Z,R1,w,z);return Z.baseState=w,[w,Z.queue.dispatch]}function LE(w,z,Z,$,G){if(n$(w))throw Error("Cannot update form state while rendering.");if(w=z.action,w!==null){var Q={payload:G,action:w,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){Q.listeners.push(_)}};G0.T!==null?Z(!0):Q.isTransition=!1,$(Q),Z=z.pending,Z===null?(Q.next=z.pending=Q,fL(z,Q)):(Q.next=Z.next,z.pending=Z.next=Q)}}function fL(w,z){var{action:Z,payload:$}=z,G=w.state;if(z.isTransition){var Q=G0.T,_={};_._updatedFibers=new Set,G0.T=_;try{var B=Z(G,$),A=G0.S;A!==null&&A(_,B),mL(w,z,B)}catch(D){UK(w,z,D)}finally{Q!==null&&_.types!==null&&(Q.types!==null&&Q.types!==_.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."),Q.types=_.types),G0.T=Q,Q===null&&_._updatedFibers&&(w=_._updatedFibers.size,_._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{_=Z(G,$),mL(w,z,_)}catch(D){UK(w,z,D)}}function mL(w,z,Z){Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?(G0.asyncTransitions++,Z.then(o$,o$),Z.then(function($){dL(w,z,$)},function($){return UK(w,z,$)}),z.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.")):dL(w,z,Z)}function dL(w,z,Z){z.status="fulfilled",z.value=Z,uL(z),w.state=Z,z=w.pending,z!==null&&(Z=z.next,Z===z?w.pending=null:(Z=Z.next,z.next=Z,fL(w,Z)))}function UK(w,z,Z){var $=w.pending;if(w.pending=null,$!==null){$=$.next;do z.status="rejected",z.reason=Z,uL(z),z=z.next;while(z!==$)}w.action=null}function uL(w){w=w.listeners;for(var z=0;z<w.length;z++)(0,w[z])()}function pL(w,z){return z}function M9(w,z){if(F1){var Z=g1.formState;if(Z!==null){w:{var $=z1;if(F1){if(l1){z:{var G=l1;for(var Q=V5;G.nodeType!==8;){if(!Q){G=null;break z}if(G=c2(G.nextSibling),G===null){G=null;break z}}Q=G.data,G=Q===u_||Q===xj?G:null}if(G){l1=c2(G.nextSibling),$=G.data===u_;break w}}c6($)}$=!1}$&&(z=Z[0])}}return Z=K2(),Z.memoizedState=Z.baseState=z,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pL,lastRenderedState:z},Z.queue=$,Z=wV.bind(null,z1,$),$.dispatch=Z,$=QK(!1),Q=OK.bind(null,z1,!1,$.queue),$=K2(),G={state:z,dispatch:null,action:w,pending:null},$.queue=G,Z=LE.bind(null,z1,G,Q,Z),G.dispatch=Z,$.memoizedState=w,[z,Z,!1]}function p$(w){var z=C1();return cL(z,R1,w)}function cL(w,z,Z){if(z=YK(w,z,pL)[0],w=A9(d5)[0],typeof z==="object"&&z!==null&&typeof z.then==="function")try{var $=fZ(z)}catch(_){if(_===wz)throw i3;throw _}else $=z;z=C1();var G=z.queue,Q=G.dispatch;return Z!==z.memoizedState&&(z1.flags|=2048,O9(k5|V2,{destroy:void 0},VE.bind(null,G,Z),null)),[$,Q,w]}function VE(w,z){w.action=z}function c$(w){var z=C1(),Z=R1;if(Z!==null)return cL(z,Z,w);C1(),z=z.memoizedState,Z=C1();var $=Z.queue.dispatch;return Z.memoizedState=w,[z,$,!1]}function O9(w,z,Z,$){return w={tag:w,create:Z,deps:$,inst:z,next:null},z=z1.updateQueue,z===null&&(z=d$(),z1.updateQueue=z),Z=z.lastEffect,Z===null?z.lastEffect=w.next=w:($=Z.next,Z.next=w,w.next=$,z.lastEffect=w),w}function _K(w){var z=K2();return w={current:w},z.memoizedState=w}function K7(w,z,Z,$){var G=K2();z1.flags|=w,G.memoizedState=O9(k5|z,{destroy:void 0},Z,$===void 0?null:$)}function O2(w,z,Z,$){var G=C1();$=$===void 0?null:$;var Q=G.memoizedState.inst;R1!==null&&$!==null&&eW($,R1.memoizedState.deps)?G.memoizedState=O9(z,Q,Z,$):(z1.flags|=w,G.memoizedState=O9(k5|z,Q,Z,$))}function l$(w,z){(z1.mode&l5)!==w1?K7(276826112,V2,w,z):K7(8390656,V2,w,z)}function FE(w){z1.flags|=4;var z=z1.updateQueue;if(z===null)z=d$(),z1.updateQueue=z,z.events=[w];else{var Z=z.events;Z===null?z.events=[w]:Z.push(w)}}function qK(w){var z=K2(),Z={impl:w};return z.memoizedState=Z,function(){if((M1&Sw)!==uw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function i$(w){var z=C1().memoizedState;return FE({ref:z,nextImpl:w}),function(){if((M1&Sw)!==uw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return z.impl.apply(void 0,arguments)}}function HK(w,z){var Z=4194308;return(z1.mode&l5)!==w1&&(Z|=134217728),K7(Z,o2,w,z)}function lL(w,z){if(typeof z==="function"){w=w();var Z=z(w);return function(){typeof Z==="function"?Z():z(null)}}if(z!==null&&z!==void 0)return z.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(z).join(", ")+"}"),w=w(),z.current=w,function(){z.current=null}}function BK(w,z,Z){typeof z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",z!==null?typeof z:"null"),Z=Z!==null&&Z!==void 0?Z.concat([w]):null;var $=4194308;(z1.mode&l5)!==w1&&($|=134217728),K7($,o2,lL.bind(null,z,w),Z)}function r$(w,z,Z){typeof z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",z!==null?typeof z:"null"),Z=Z!==null&&Z!==void 0?Z.concat([w]):null,O2(4,o2,lL.bind(null,z,w),Z)}function LK(w,z){return K2().memoizedState=[w,z===void 0?null:z],w}function a$(w,z){var Z=C1();z=z===void 0?null:z;var $=Z.memoizedState;if(z!==null&&eW(z,$[1]))return $[0];return Z.memoizedState=[w,z],w}function VK(w,z){var Z=K2();z=z===void 0?null:z;var $=w();if(T7){b0(!0);try{w()}finally{b0(!1)}}return Z.memoizedState=[$,z],$}function s$(w,z){var Z=C1();z=z===void 0?null:z;var $=Z.memoizedState;if(z!==null&&eW(z,$[1]))return $[0];if($=w(),T7){b0(!0);try{w()}finally{b0(!1)}}return Z.memoizedState=[$,z],$}function FK(w,z){var Z=K2();return NK(Z,w,z)}function iL(w,z){var Z=C1();return aL(Z,R1.memoizedState,w,z)}function rL(w,z){var Z=C1();return R1===null?NK(Z,w,z):aL(Z,R1.memoizedState,w,z)}function NK(w,z,Z){if(Z===void 0||(L6&1073741824)!==0&&(Q1&261930)===0)return w.memoizedState=z;return w.memoizedState=Z,w=sV(),z1.lanes|=w,F4|=w,Z}function aL(w,z,Z,$){if(H2(Z,z))return Z;if(Zz.current!==null)return w=NK(w,Z,$),H2(w,z)||(jw=!0),w;if((L6&42)===0||(L6&1073741824)!==0&&(Q1&261930)===0)return jw=!0,w.memoizedState=Z;return w=sV(),z1.lanes|=w,F4|=w,z}function o$(){G0.asyncTransitions--}function sL(w,z,Z,$,G){var Q=I1.p;I1.p=Q!==0&&Q<c5?Q:c5;var _=G0.T,B={};B._updatedFibers=new Set,G0.T=B,OK(w,!1,z,Z);try{var A=G(),D=G0.S;if(D!==null&&D(B,A),A!==null&&typeof A==="object"&&typeof A.then==="function"){G0.asyncTransitions++,A.then(o$,o$);var i=qE(A,$);dZ(w,z,i,p2(w))}else dZ(w,z,$,p2(w))}catch(a){dZ(w,z,{then:function(){},status:"rejected",reason:a},p2(w))}finally{I1.p=Q,_!==null&&B.types!==null&&(_.types!==null&&_.types!==B.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."),_.types=B.types),G0.T=_,_===null&&B._updatedFibers&&(w=B._updatedFibers.size,B._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 kK(w,z,Z,$){if(w.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=oL(w).queue;UE(w),sL(w,G,z,R7,Z===null?V:function(){return nL(w),Z($)})}function oL(w){var z=w.memoizedState;if(z!==null)return z;z={memoizedState:R7,baseState:R7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:d5,lastRenderedState:R7},next:null};var Z={};return z.next={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:d5,lastRenderedState:Z},next:null},w.memoizedState=z,w=w.alternate,w!==null&&(w.memoizedState=z),z}function nL(w){G0.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var z=oL(w);z.next===null&&(z=w.alternate.memoizedState),dZ(w,z.next.queue,{},p2(w))}function jK(){var w=QK(!1);return w=sL.bind(null,z1,w.queue,!0,!1),K2().memoizedState=w,[!1,w]}function tL(){var w=A9(d5)[0],z=C1().memoizedState;return[typeof w==="boolean"?w:fZ(w),z]}function eL(){var w=mZ(d5)[0],z=C1().memoizedState;return[typeof w==="boolean"?w:fZ(w),z]}function U7(){return s1(oJ)}function AK(){var w=K2(),z=g1.identifierPrefix;if(F1){var Z=U6,$=K6;Z=($&~(1<<32-U2($)-1)).toString(32)+Z,z="_"+z+"R_"+Z,Z=n3++,0<Z&&(z+="H"+Z.toString(32)),z+="_"}else Z=nh++,z="_"+z+"r_"+Z.toString(32)+"_";return w.memoizedState=z}function MK(){return K2().memoizedState=NE.bind(null,z1)}function NE(w,z){for(var Z=w.return;Z!==null;){switch(Z.tag){case 24:case 3:var $=p2(Z),G=r6($),Q=a6(Z,G,$);Q!==null&&(H8($,"refresh()",w),Zw(Q,Z,$),yZ(Q,Z,$)),w=pW(),z!==null&&z!==void 0&&Q!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:w};return}Z=Z.return}}function kE(w,z,Z){var $=arguments;typeof $[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()."),$=p2(w);var G={lane:$,revertLane:0,gesture:null,action:Z,hasEagerState:!1,eagerState:null,next:null};n$(w)?zV(z,G):(G=PW(w,z,G,$),G!==null&&(H8($,"dispatch()",w),Zw(G,w,$),ZV(G,z,$)))}function wV(w,z,Z){var $=arguments;typeof $[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()."),$=p2(w),dZ(w,z,Z,$)&&H8($,"setState()",w)}function dZ(w,z,Z,$){var G={lane:$,revertLane:0,gesture:null,action:Z,hasEagerState:!1,eagerState:null,next:null};if(n$(w))zV(z,G);else{var Q=w.alternate;if(w.lanes===0&&(Q===null||Q.lanes===0)&&(Q=z.lastRenderedReducer,Q!==null)){var _=G0.H;G0.H=r5;try{var B=z.lastRenderedState,A=Q(B,Z);if(G.hasEagerState=!0,G.eagerState=A,H2(A,B))return M$(w,z,G,0),g1===null&&A$(),!1}catch(D){}finally{G0.H=_}}if(Z=PW(w,z,G,$),Z!==null)return Zw(Z,w,$),ZV(Z,z,$),!0}return!1}function OK(w,z,Z,$){if(G0.T===null&&j7===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."),$={lane:2,revertLane:wU(),gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null},n$(w)){if(z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else z=PW(w,Z,$,2),z!==null&&(H8(2,"setOptimistic()",w),Zw(z,w,2))}function n$(w){var z=w.alternate;return w===z1||z!==null&&z===z1}function zV(w,z){$z=o3=!0;var Z=w.pending;Z===null?z.next=z:(z.next=Z.next,Z.next=z),w.pending=z}function ZV(w,z,Z){if((Z&4194048)!==0){var $=z.lanes;$&=w.pendingLanes,Z|=$,z.lanes=Z,Vw(w,Z)}}function DK(w){if(w!==null&&typeof w!=="function"){var z=String(w);ek.has(z)||(ek.add(z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",w))}}function TK(w,z,Z,$){var G=w.memoizedState,Q=Z($,G);if(w.mode&J2){b0(!0);try{Q=Z($,G)}finally{b0(!1)}}Q===void 0&&(z=S(z)||"Component",sk.has(z)||(sk.add(z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",z))),G=Q===null||Q===void 0?G:_1({},G,Q),w.memoizedState=G,w.lanes===0&&(w.updateQueue.baseState=G)}function JV(w,z,Z,$,G,Q,_){var B=w.stateNode;if(typeof B.shouldComponentUpdate==="function"){if(Z=B.shouldComponentUpdate($,Q,_),w.mode&J2){b0(!0);try{Z=B.shouldComponentUpdate($,Q,_)}finally{b0(!1)}}return Z===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",S(z)||"Component"),Z}return z.prototype&&z.prototype.isPureReactComponent?!vZ(Z,$)||!vZ(G,Q):!0}function XV(w,z,Z,$){var G=z.state;typeof z.componentWillReceiveProps==="function"&&z.componentWillReceiveProps(Z,$),typeof z.UNSAFE_componentWillReceiveProps==="function"&&z.UNSAFE_componentWillReceiveProps(Z,$),z.state!==G&&(w=d(w)||"Component",ck.has(w)||(ck.add(w),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",w)),k_.enqueueReplaceState(z,z.state,null))}function _7(w,z){var Z=z;if("ref"in z){Z={};for(var $ in z)$!=="ref"&&(Z[$]=z[$])}if(w=w.defaultProps){Z===z&&(Z=_1({},Z));for(var G in w)Z[G]===void 0&&(Z[G]=w[G])}return Z}function $V(w){nU(w),console.warn(`%s
116
+
117
+ %s
118
+ `,Yz?"An error occurred in the <"+Yz+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function YV(w){var z=Yz?"The above error occurred in the <"+Yz+"> component.":"The above error occurred in one of your React components.",Z="React will try to recreate this component tree from scratch using the error boundary you provided, "+((j_||"Anonymous")+".");if(typeof w==="object"&&w!==null&&typeof w.environmentName==="string"){var $=w.environmentName;w=[`%o
120
+
121
+ %s
122
+
123
+ %s
124
+ `,w,z,Z].slice(0),typeof w[0]==="string"?w.splice(0,1,bj+" "+w[0],yj,AY+$+AY,Rj):w.splice(0,0,bj,yj,AY+$+AY,Rj),w.unshift(console),$=FP.apply(console.error,w),$()}else console.error(`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,w,z,Z)}function GV(w){nU(w)}function t$(w,z){try{Yz=z.source?d(z.source):null,j_=null;var Z=z.value;if(G0.actQueue!==null)G0.thrownErrors.push(Z);else{var $=w.onUncaughtError;$(Z,{componentStack:z.stack})}}catch(G){setTimeout(function(){throw G})}}function QV(w,z,Z){try{Yz=Z.source?d(Z.source):null,j_=d(z);var $=w.onCaughtError;$(Z.value,{componentStack:Z.stack,errorBoundary:z.tag===1?z.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function xK(w,z,Z){return Z=r6(Z),Z.tag=H_,Z.payload={element:null},Z.callback=function(){n(z.source,t$,w,z)},Z}function EK(w){return w=r6(w),w.tag=H_,w}function vK(w,z,Z,$){var G=Z.type.getDerivedStateFromError;if(typeof G==="function"){var Q=$.value;w.payload=function(){return G(Q)},w.callback=function(){zL(Z),n($.source,QV,z,Z,$)}}var _=Z.stateNode;_!==null&&typeof _.componentDidCatch==="function"&&(w.callback=function(){zL(Z),n($.source,QV,z,Z,$),typeof G!=="function"&&(k4===null?k4=new Set([this]):k4.add(this)),rh(this,$),typeof G==="function"||(Z.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.",d(Z)||"Unknown")})}function jE(w,z,Z,$,G){if(Z.flags|=32768,P8&&sZ(w,G),$!==null&&typeof $==="object"&&typeof $.then==="function"){if(z=Z.alternate,z!==null&&k9(z,Z,G,!0),F1&&(S8=!0),Z=s2.current,Z!==null){switch(Z.tag){case 31:case 13:return N5===null?G3():Z.alternate===null&&e1===k6&&(e1=wY),Z.flags&=-257,Z.flags|=65536,Z.lanes=G,$===r3?Z.flags|=16384:(z=Z.updateQueue,z===null?Z.updateQueue=new Set([$]):z.add($),oK(w,$,G)),!1;case 22:return Z.flags|=65536,$===r3?Z.flags|=16384:(z=Z.updateQueue,z===null?(z={transitions:null,markerInstances:null,retryQueue:new Set([$])},Z.updateQueue=z):(Z=z.retryQueue,Z===null?z.retryQueue=new Set([$]):Z.add($)),oK(w,$,G)),!1}throw Error("Unexpected Suspense handler tag ("+Z.tag+"). This is a bug in React.")}return oK(w,$,G),G3(),!1}if(F1)return S8=!0,z=s2.current,z!==null?((z.flags&65536)===0&&(z.flags|=256),z.flags|=65536,z.lanes=G,$!==J_&&PZ(f2(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:$}),Z))):($!==J_&&PZ(f2(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:$}),Z)),w=w.current.alternate,w.flags|=65536,G&=-G,w.lanes|=G,$=f2($,Z),G=xK(w.stateNode,$,G),g$(w,G),e1!==L4&&(e1=x7)),!1;var Q=f2(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:$}),Z);if(dJ===null?dJ=[Q]:dJ.push(Q),e1!==L4&&(e1=x7),z===null)return!0;$=f2($,Z),Z=z;do{switch(Z.tag){case 3:return Z.flags|=65536,w=G&-G,Z.lanes|=w,w=xK(Z.stateNode,$,w),g$(Z,w),!1;case 1:if(z=Z.type,Q=Z.stateNode,(Z.flags&128)===0&&(typeof z.getDerivedStateFromError==="function"||Q!==null&&typeof Q.componentDidCatch==="function"&&(k4===null||!k4.has(Q))))return Z.flags|=65536,G&=-G,Z.lanes|=G,G=EK(G),vK(G,w,Z,$),g$(Z,G),!1}Z=Z.return}while(Z!==null);return!1}function aw(w,z,Z,$){z.child=w===null?Ck(z,null,Z,$):D7(z,w.child,Z,$)}function WV(w,z,Z,$,G){Z=Z.render;var Q=z.ref;if("ref"in $){var _={};for(var B in $)B!=="ref"&&(_[B]=$[B])}else _=$;if(G7(z),$=wK(w,z,Z,_,Q,G),B=ZK(),w!==null&&!jw)return JK(w,z,G),X6(w,z,G);return F1&&B&&RW(z),z.flags|=1,aw(w,z,$,G),z.child}function KV(w,z,Z,$,G){if(w===null){var Q=Z.type;if(typeof Q==="function"&&!CW(Q)&&Q.defaultProps===void 0&&Z.compare===null)return Z=J7(Q),z.tag=15,z.type=Z,PK(z,Q),UV(w,z,Z,$,G);return w=SW(Z.type,null,$,z,z.mode,G),w.ref=z.ref,w.return=z,z.child=w}if(Q=w.child,!RK(w,G)){var _=Q.memoizedProps;if(Z=Z.compare,Z=Z!==null?Z:vZ,Z(_,$)&&w.ref===z.ref)return X6(w,z,G)}return z.flags|=1,w=w6(Q,$),w.ref=z.ref,w.return=z,z.child=w}function UV(w,z,Z,$,G){if(w!==null){var Q=w.memoizedProps;if(vZ(Q,$)&&w.ref===z.ref&&z.type===w.type)if(jw=!1,z.pendingProps=$=Q,RK(w,G))(w.flags&131072)!==0&&(jw=!0);else return z.lanes=w.lanes,X6(w,z,G)}return hK(w,z,Z,$,G)}function _V(w,z,Z,$){var G=$.children,Q=w!==null?w.memoizedState:null;if(w===null&&z.stateNode===null&&(z.stateNode={_visibility:LJ,_pendingMarkers:null,_retryCache:null,_transitions:null}),$.mode==="hidden"){if((z.flags&128)!==0){if(Q=Q!==null?Q.baseLanes|Z:Z,w!==null){$=z.child=w.child;for(G=0;$!==null;)G=G|$.lanes|$.childLanes,$=$.sibling;$=G&~Q}else $=0,z.child=null;return qV(w,z,Q,Z,$)}if((Z&536870912)!==0)z.memoizedState={baseLanes:0,cachePool:null},w!==null&&I$(z,Q!==null?Q.cachePool:null),Q!==null?EL(z,Q):oW(z),vL(z);else return $=z.lanes=536870912,qV(w,z,Q!==null?Q.baseLanes|Z:Z,Z,$)}else Q!==null?(I$(z,Q.cachePool),EL(z,Q),o6(z),z.memoizedState=null):(w!==null&&I$(z,null),oW(z),o6(z));return aw(w,z,G,Z),z.child}function uZ(w,z){return w!==null&&w.tag===22||z.stateNode!==null||(z.stateNode={_visibility:LJ,_pendingMarkers:null,_retryCache:null,_transitions:null}),z.sibling}function qV(w,z,Z,$,G){var Q=iW();return Q=Q===null?null:{parent:Fw._currentValue,pool:Q},z.memoizedState={baseLanes:Z,cachePool:Q},w!==null&&I$(z,null),oW(z),vL(z),w!==null&&k9(w,z,$,!0),z.childLanes=G,null}function e$(w,z){var Z=z.hidden;return Z!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
+ - <Activity %s>
131
+ + <Activity %s>`,Z===!0?"hidden":Z===!1?"hidden={false}":"hidden={...}",Z?'mode="hidden"':'mode="visible"'),z=z3({mode:z.mode,children:z.children},w.mode),z.ref=w.ref,w.child=z,z.return=w,z}function HV(w,z,Z){return D7(z,w.child,null,Z),w=e$(z,z.pendingProps),w.flags|=2,u2(z),z.memoizedState=null,w}function AE(w,z,Z){var $=z.pendingProps,G=(z.flags&128)!==0;if(z.flags&=-129,w===null){if(F1){if($.mode==="hidden")return w=e$(z,$),z.lanes=536870912,uZ(null,w);if(tW(z),(w=l1)?(Z=fF(w,V5),Z=Z!==null&&Z.data===C7?Z:null,Z!==null&&($={dehydrated:Z,treeContext:YL(),retryLane:536870912,hydrationErrors:null},z.memoizedState=$,$=XL(Z),$.return=z,z.child=$,nw=z,l1=null)):Z=null,Z===null)throw T$(z,w),c6(z);return z.lanes=536870912,null}return e$(z,$)}var Q=w.memoizedState;if(Q!==null){var _=Q.dehydrated;if(tW(z),G)if(z.flags&256)z.flags&=-257,z=HV(w,z,Z);else if(z.memoizedState!==null)z.child=w.child,z.flags|=128,z=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(QL(),(Z&536870912)!==0&&Y3(z),jw||k9(w,z,Z,!1),G=(Z&w.childLanes)!==0,jw||G){if($=g1,$!==null&&(_=_w($,Z),_!==0&&_!==Q.retryLane))throw Q.retryLane=_,z2(w,_),Zw($,w,_),A_;G3(),z=HV(w,z,Z)}else w=Q.treeContext,l1=c2(_.nextSibling),nw=z,F1=!0,W4=null,S8=!1,a2=null,V5=!1,w!==null&&GL(z,w),z=e$(z,$),z.flags|=4096;return z}return Q=w.child,$={mode:$.mode,children:$.children},(Z&536870912)!==0&&(Z&w.lanes)!==0&&Y3(z),w=w6(Q,$),w.ref=z.ref,z.child=w,w.return=z,w}function w3(w,z){var Z=z.ref;if(Z===null)w!==null&&w.ref!==null&&(z.flags|=4194816);else{if(typeof Z!=="function"&&typeof Z!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(w===null||w.ref!==Z)z.flags|=4194816}}function hK(w,z,Z,$,G){if(Z.prototype&&typeof Z.prototype.render==="function"){var Q=S(Z)||"Unknown";wj[Q]||(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.",Q,Q),wj[Q]=!0)}if(z.mode&J2&&i5.recordLegacyContextWarning(z,null),w===null&&(PK(z,z.type),Z.contextTypes&&(Q=S(Z)||"Unknown",Zj[Q]||(Zj[Q]=!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)",Q)))),G7(z),Z=wK(w,z,Z,$,void 0,G),$=ZK(),w!==null&&!jw)return JK(w,z,G),X6(w,z,G);return F1&&$&&RW(z),z.flags|=1,aw(w,z,Z,G),z.child}function BV(w,z,Z,$,G,Q){if(G7(z),F6=-1,SJ=w!==null&&w.type!==z.type,z.updateQueue=null,Z=zK(z,$,Z,G),hL(w,z),$=ZK(),w!==null&&!jw)return JK(w,z,Q),X6(w,z,Q);return F1&&$&&RW(z),z.flags|=1,aw(w,z,Z,Q),z.child}function LV(w,z,Z,$,G){switch(H(z)){case!1:var Q=z.stateNode,_=new z.type(z.memoizedProps,Q.context).state;Q.updater.enqueueSetState(Q,_,null);break;case!0:z.flags|=128,z.flags|=65536,Q=Error("Simulated error coming from DevTools");var B=G&-G;if(z.lanes|=B,_=g1,_===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B=EK(B),vK(B,_,z,f2(Q,z)),g$(z,B)}if(G7(z),z.stateNode===null){if(_=Q4,Q=Z.contextType,"contextType"in Z&&Q!==null&&(Q===void 0||Q.$$typeof!==E8)&&!tk.has(Z)&&(tk.add(Z),B=Q===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 Q!=="object"?" However, it is set to a "+typeof Q+".":Q.$$typeof===MU?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(Q).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",S(Z)||"Component",B)),typeof Q==="object"&&Q!==null&&(_=s1(Q)),Q=new Z($,_),z.mode&J2){b0(!0);try{Q=new Z($,_)}finally{b0(!1)}}if(_=z.memoizedState=Q.state!==null&&Q.state!==void 0?Q.state:null,Q.updater=k_,z.stateNode=Q,Q._reactInternals=z,Q._reactInternalInstance=pk,typeof Z.getDerivedStateFromProps==="function"&&_===null&&(_=S(Z)||"Component",lk.has(_)||(lk.add(_),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.",_,Q.state===null?"null":"undefined",_))),typeof Z.getDerivedStateFromProps==="function"||typeof Q.getSnapshotBeforeUpdate==="function"){var A=B=_=null;if(typeof Q.componentWillMount==="function"&&Q.componentWillMount.__suppressDeprecationWarning!==!0?_="componentWillMount":typeof Q.UNSAFE_componentWillMount==="function"&&(_="UNSAFE_componentWillMount"),typeof Q.componentWillReceiveProps==="function"&&Q.componentWillReceiveProps.__suppressDeprecationWarning!==!0?B="componentWillReceiveProps":typeof Q.UNSAFE_componentWillReceiveProps==="function"&&(B="UNSAFE_componentWillReceiveProps"),typeof Q.componentWillUpdate==="function"&&Q.componentWillUpdate.__suppressDeprecationWarning!==!0?A="componentWillUpdate":typeof Q.UNSAFE_componentWillUpdate==="function"&&(A="UNSAFE_componentWillUpdate"),_!==null||B!==null||A!==null){Q=S(Z)||"Component";var D=typeof Z.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";rk.has(Q)||(rk.add(Q),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
+
133
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
+
135
+ The above lifecycles should be removed. Learn more about this warning here:
136
+ https://react.dev/link/unsafe-component-lifecycles`,Q,D,_!==null?`
137
+ `+_:"",B!==null?`
138
+ `+B:"",A!==null?`
139
+ `+A:""))}}Q=z.stateNode,_=S(Z)||"Component",Q.render||(Z.prototype&&typeof Z.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",_):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",_)),!Q.getInitialState||Q.getInitialState.isReactClassApproved||Q.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?",_),Q.getDefaultProps&&!Q.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.",_),Q.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",_),Z.childContextTypes&&!nk.has(Z)&&(nk.add(Z),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",_)),Z.contextTypes&&!ok.has(Z)&&(ok.add(Z),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)",_)),typeof Q.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.",_),Z.prototype&&Z.prototype.isPureReactComponent&&typeof Q.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.",S(Z)||"A pure component"),typeof Q.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",_),typeof Q.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().",_),typeof Q.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",_),typeof Q.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",_),B=Q.props!==$,Q.props!==void 0&&B&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",_),Q.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.",_,_),typeof Q.getSnapshotBeforeUpdate!=="function"||typeof Q.componentDidUpdate==="function"||ik.has(Z)||(ik.add(Z),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",S(Z))),typeof Q.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",_),typeof Q.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",_),typeof Z.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",_),(B=Q.state)&&(typeof B!=="object"||Iw(B))&&console.error("%s.state: must be set to an object or null",_),typeof Q.getChildContext==="function"&&typeof Z.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",_),Q=z.stateNode,Q.props=$,Q.state=z.memoizedState,Q.refs={},aW(z),_=Z.contextType,Q.context=typeof _==="object"&&_!==null?s1(_):Q4,Q.state===$&&(_=S(Z)||"Component",ak.has(_)||(ak.add(_),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.",_))),z.mode&J2&&i5.recordLegacyContextWarning(z,Q),i5.recordUnsafeLifecycleWarnings(z,Q),Q.state=z.memoizedState,_=Z.getDerivedStateFromProps,typeof _==="function"&&(TK(z,Z,_,$),Q.state=z.memoizedState),typeof Z.getDerivedStateFromProps==="function"||typeof Q.getSnapshotBeforeUpdate==="function"||typeof Q.UNSAFE_componentWillMount!=="function"&&typeof Q.componentWillMount!=="function"||(_=Q.state,typeof Q.componentWillMount==="function"&&Q.componentWillMount(),typeof Q.UNSAFE_componentWillMount==="function"&&Q.UNSAFE_componentWillMount(),_!==Q.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(z)||"Component"),k_.enqueueReplaceState(Q,Q.state,null)),gZ(z,$,Q,G),RZ(),Q.state=z.memoizedState),typeof Q.componentDidMount==="function"&&(z.flags|=4194308),(z.mode&l5)!==w1&&(z.flags|=134217728),Q=!0}else if(w===null){Q=z.stateNode;var i=z.memoizedProps;B=_7(Z,i),Q.props=B;var a=Q.context;A=Z.contextType,_=Q4,typeof A==="object"&&A!==null&&(_=s1(A)),D=Z.getDerivedStateFromProps,A=typeof D==="function"||typeof Q.getSnapshotBeforeUpdate==="function",i=z.pendingProps!==i,A||typeof Q.UNSAFE_componentWillReceiveProps!=="function"&&typeof Q.componentWillReceiveProps!=="function"||(i||a!==_)&&XV(z,Q,$,_),B4=!1;var y=z.memoizedState;Q.state=y,gZ(z,$,Q,G),RZ(),a=z.memoizedState,i||y!==a||B4?(typeof D==="function"&&(TK(z,Z,D,$),a=z.memoizedState),(B=B4||JV(z,Z,B,$,y,a,_))?(A||typeof Q.UNSAFE_componentWillMount!=="function"&&typeof Q.componentWillMount!=="function"||(typeof Q.componentWillMount==="function"&&Q.componentWillMount(),typeof Q.UNSAFE_componentWillMount==="function"&&Q.UNSAFE_componentWillMount()),typeof Q.componentDidMount==="function"&&(z.flags|=4194308),(z.mode&l5)!==w1&&(z.flags|=134217728)):(typeof Q.componentDidMount==="function"&&(z.flags|=4194308),(z.mode&l5)!==w1&&(z.flags|=134217728),z.memoizedProps=$,z.memoizedState=a),Q.props=$,Q.state=a,Q.context=_,Q=B):(typeof Q.componentDidMount==="function"&&(z.flags|=4194308),(z.mode&l5)!==w1&&(z.flags|=134217728),Q=!1)}else{Q=z.stateNode,sW(w,z),_=z.memoizedProps,A=_7(Z,_),Q.props=A,D=z.pendingProps,y=Q.context,a=Z.contextType,B=Q4,typeof a==="object"&&a!==null&&(B=s1(a)),i=Z.getDerivedStateFromProps,(a=typeof i==="function"||typeof Q.getSnapshotBeforeUpdate==="function")||typeof Q.UNSAFE_componentWillReceiveProps!=="function"&&typeof Q.componentWillReceiveProps!=="function"||(_!==D||y!==B)&&XV(z,Q,$,B),B4=!1,y=z.memoizedState,Q.state=y,gZ(z,$,Q,G),RZ();var Z0=z.memoizedState;_!==D||y!==Z0||B4||w!==null&&w.dependencies!==null&&E$(w.dependencies)?(typeof i==="function"&&(TK(z,Z,i,$),Z0=z.memoizedState),(A=B4||JV(z,Z,A,$,y,Z0,B)||w!==null&&w.dependencies!==null&&E$(w.dependencies))?(a||typeof Q.UNSAFE_componentWillUpdate!=="function"&&typeof Q.componentWillUpdate!=="function"||(typeof Q.componentWillUpdate==="function"&&Q.componentWillUpdate($,Z0,B),typeof Q.UNSAFE_componentWillUpdate==="function"&&Q.UNSAFE_componentWillUpdate($,Z0,B)),typeof Q.componentDidUpdate==="function"&&(z.flags|=4),typeof Q.getSnapshotBeforeUpdate==="function"&&(z.flags|=1024)):(typeof Q.componentDidUpdate!=="function"||_===w.memoizedProps&&y===w.memoizedState||(z.flags|=4),typeof Q.getSnapshotBeforeUpdate!=="function"||_===w.memoizedProps&&y===w.memoizedState||(z.flags|=1024),z.memoizedProps=$,z.memoizedState=Z0),Q.props=$,Q.state=Z0,Q.context=B,Q=A):(typeof Q.componentDidUpdate!=="function"||_===w.memoizedProps&&y===w.memoizedState||(z.flags|=4),typeof Q.getSnapshotBeforeUpdate!=="function"||_===w.memoizedProps&&y===w.memoizedState||(z.flags|=1024),Q=!1)}if(B=Q,w3(w,z),_=(z.flags&128)!==0,B||_){if(B=z.stateNode,R0(z),_&&typeof Z.getDerivedStateFromError!=="function")Z=null,B2=-1;else if(Z=Nk(B),z.mode&J2){b0(!0);try{Nk(B)}finally{b0(!1)}}z.flags|=1,w!==null&&_?(z.child=D7(z,w.child,null,G),z.child=D7(z,null,Z,G)):aw(w,z,Z,G),z.memoizedState=B.state,w=z.child}else w=X6(w,z,G);return G=z.stateNode,Q&&G.props!==$&&(Gz||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",d(z)||"a component"),Gz=!0),w}function VV(w,z,Z,$){return Y7(),z.flags|=256,aw(w,z,Z,$),z.child}function PK(w,z){z&&z.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,z.displayName||z.name||"Component"),typeof z.getDerivedStateFromProps==="function"&&(w=S(z)||"Unknown",Jj[w]||(console.error("%s: Function components do not support getDerivedStateFromProps.",w),Jj[w]=!0)),typeof z.contextType==="object"&&z.contextType!==null&&(z=S(z)||"Unknown",zj[z]||(console.error("%s: Function components do not support contextType.",z),zj[z]=!0))}function IK(w){return{baseLanes:w,cachePool:BL()}}function CK(w,z,Z){return w=w!==null?w.childLanes&~Z:0,z&&(w|=v2),w}function FV(w,z,Z){var $,G=z.pendingProps;U(z)&&(z.flags|=128);var Q=!1,_=(z.flags&128)!==0;if(($=_)||($=w!==null&&w.memoizedState===null?!1:(qw.current&IJ)!==0),$&&(Q=!0,z.flags&=-129),$=(z.flags&32)!==0,z.flags&=-33,w===null){if(F1){if(Q?s6(z):o6(z),(w=l1)?(Z=fF(w,V5),Z=Z!==null&&Z.data!==C7?Z:null,Z!==null&&($={dehydrated:Z,treeContext:YL(),retryLane:536870912,hydrationErrors:null},z.memoizedState=$,$=XL(Z),$.return=z,z.child=$,nw=z,l1=null)):Z=null,Z===null)throw T$(z,w),c6(z);return _U(Z)?z.lanes=32:z.lanes=536870912,null}var B=G.children;if(G=G.fallback,Q){o6(z);var A=z.mode;return B=z3({mode:"hidden",children:B},A),G=X7(G,A,Z,null),B.return=z,G.return=z,B.sibling=G,z.child=B,G=z.child,G.memoizedState=IK(Z),G.childLanes=CK(w,$,Z),z.memoizedState=M_,uZ(null,G)}return s6(z),SK(z,B)}var D=w.memoizedState;if(D!==null){var i=D.dehydrated;if(i!==null){if(_)z.flags&256?(s6(z),z.flags&=-257,z=bK(w,z,Z)):z.memoizedState!==null?(o6(z),z.child=w.child,z.flags|=128,z=null):(o6(z),B=G.fallback,A=z.mode,G=z3({mode:"visible",children:G.children},A),B=X7(B,A,Z,null),B.flags|=2,G.return=z,B.return=z,G.sibling=B,z.child=G,D7(z,w.child,null,Z),G=z.child,G.memoizedState=IK(Z),G.childLanes=CK(w,$,Z),z.memoizedState=M_,z=uZ(null,G));else if(s6(z),QL(),(Z&536870912)!==0&&Y3(z),_U(i)){if($=i.nextSibling&&i.nextSibling.dataset,$){B=$.dgst;var a=$.msg;A=$.stck;var y=$.cstck}Q=a,$=B,G=A,i=y,B=Q,A=i,B=B?Error(B):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),B.stack=G||"",B.digest=$,$=A===void 0?null:A,G={value:B,source:null,stack:$},typeof $==="string"&&Z_.set(B,G),PZ(G),z=bK(w,z,Z)}else if(jw||k9(w,z,Z,!1),$=(Z&w.childLanes)!==0,jw||$){if($=g1,$!==null&&(G=_w($,Z),G!==0&&G!==D.retryLane))throw D.retryLane=G,z2(w,G),Zw($,w,G),A_;UU(i)||G3(),z=bK(w,z,Z)}else UU(i)?(z.flags|=192,z.child=w.child,z=null):(w=D.treeContext,l1=c2(i.nextSibling),nw=z,F1=!0,W4=null,S8=!1,a2=null,V5=!1,w!==null&&GL(z,w),z=SK(z,G.children),z.flags|=4096);return z}}if(Q)return o6(z),B=G.fallback,A=z.mode,y=w.child,i=y.sibling,G=w6(y,{mode:"hidden",children:G.children}),G.subtreeFlags=y.subtreeFlags&65011712,i!==null?B=w6(i,B):(B=X7(B,A,Z,null),B.flags|=2),B.return=z,G.return=z,G.sibling=B,z.child=G,uZ(null,G),G=z.child,B=w.child.memoizedState,B===null?B=IK(Z):(A=B.cachePool,A!==null?(y=Fw._currentValue,A=A.parent!==y?{parent:y,pool:y}:A):A=BL(),B={baseLanes:B.baseLanes|Z,cachePool:A}),G.memoizedState=B,G.childLanes=CK(w,$,Z),z.memoizedState=M_,uZ(w.child,G);return D!==null&&(Z&62914560)===Z&&(Z&w.lanes)!==0&&Y3(z),s6(z),Z=w.child,w=Z.sibling,Z=w6(Z,{mode:"visible",children:G.children}),Z.return=z,Z.sibling=null,w!==null&&($=z.deletions,$===null?(z.deletions=[w],z.flags|=16):$.push(w)),z.child=Z,z.memoizedState=null,Z}function SK(w,z){return z=z3({mode:"visible",children:z},w.mode),z.return=w,w.child=z}function z3(w,z){return w=k(22,w,null,z),w.lanes=0,w}function bK(w,z,Z){return D7(z,w.child,null,Z),w=SK(z,z.pendingProps.children),w.flags|=2,z.memoizedState=null,w}function NV(w,z,Z){w.lanes|=z;var $=w.alternate;$!==null&&($.lanes|=z),dW(w.return,z,Z)}function yK(w,z,Z,$,G,Q){var _=w.memoizedState;_===null?w.memoizedState={isBackwards:z,rendering:null,renderingStartTime:0,last:$,tail:Z,tailMode:G,treeForkCount:Q}:(_.isBackwards=z,_.rendering=null,_.renderingStartTime=0,_.last=$,_.tail=Z,_.tailMode=G,_.treeForkCount=Q)}function kV(w,z,Z){var $=z.pendingProps,G=$.revealOrder,Q=$.tail,_=$.children,B=qw.current;if(($=(B&IJ)!==0)?(B=B&Jz|IJ,z.flags|=128):B&=Jz,u(qw,B,z),B=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!Xj[B])if(Xj[B]=!0,G==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(G==="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 G==="string")switch(G.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.',G,G.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.',G,G.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G);if(B=Q==null?"null":Q,!e3[B])if(Q==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")e3[B]=!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 Q!=="visible"&&Q!=="collapsed"&&Q!=="hidden"?(e3[B]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',Q)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(e3[B]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',Q));w:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&_!==void 0&&_!==null&&_!==!1)if(Iw(_)){for(B=0;B<_.length;B++)if(!DL(_[B],B))break w}else if(B=R(_),typeof B==="function"){if(B=B.call(_))for(var A=B.next(),D=0;!A.done;A=B.next()){if(!DL(A.value,D))break w;D++}}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?',G);if(aw(w,z,_,Z),F1?(p6(),_=VJ):_=0,!$&&w!==null&&(w.flags&128)!==0)w:for(w=z.child;w!==null;){if(w.tag===13)w.memoizedState!==null&&NV(w,Z,z);else if(w.tag===19)NV(w,Z,z);else if(w.child!==null){w.child.return=w,w=w.child;continue}if(w===z)break w;for(;w.sibling===null;){if(w.return===null||w.return===z)break w;w=w.return}w.sibling.return=w.return,w=w.sibling}switch(G){case"forwards":Z=z.child;for(G=null;Z!==null;)w=Z.alternate,w!==null&&f$(w)===null&&(G=Z),Z=Z.sibling;Z=G,Z===null?(G=z.child,z.child=null):(G=Z.sibling,Z.sibling=null),yK(z,!1,G,Z,Q,_);break;case"backwards":case"unstable_legacy-backwards":Z=null,G=z.child;for(z.child=null;G!==null;){if(w=G.alternate,w!==null&&f$(w)===null){z.child=G;break}w=G.sibling,G.sibling=Z,Z=G,G=w}yK(z,!0,Z,null,Q,_);break;case"together":yK(z,!1,null,null,void 0,_);break;default:z.memoizedState=null}return z.child}function X6(w,z,Z){if(w!==null&&(z.dependencies=w.dependencies),B2=-1,F4|=z.lanes,(Z&z.childLanes)===0)if(w!==null){if(k9(w,z,Z,!1),(Z&z.childLanes)===0)return null}else return null;if(w!==null&&z.child!==w.child)throw Error("Resuming work not yet implemented.");if(z.child!==null){w=z.child,Z=w6(w,w.pendingProps),z.child=Z;for(Z.return=z;w.sibling!==null;)w=w.sibling,Z=Z.sibling=w6(w,w.pendingProps),Z.return=z;Z.sibling=null}return z.child}function RK(w,z){if((w.lanes&z)!==0)return!0;return w=w.dependencies,w!==null&&E$(w)?!0:!1}function ME(w,z,Z){switch(z.tag){case 3:r(z,z.stateNode.containerInfo),l6(z,Fw,w.memoizedState.cache),Y7();break;case 27:case 5:g(z);break;case 4:r(z,z.stateNode.containerInfo);break;case 10:l6(z,z.type,z.memoizedProps.value);break;case 12:(Z&z.childLanes)!==0&&(z.flags|=4),z.flags|=2048;var $=z.stateNode;$.effectDuration=-0,$.passiveEffectDuration=-0;break;case 31:if(z.memoizedState!==null)return z.flags|=128,tW(z),null;break;case 13:if($=z.memoizedState,$!==null){if($.dehydrated!==null)return s6(z),z.flags|=128,null;if((Z&z.child.childLanes)!==0)return FV(w,z,Z);return s6(z),w=X6(w,z,Z),w!==null?w.sibling:null}s6(z);break;case 19:var G=(w.flags&128)!==0;if($=(Z&z.childLanes)!==0,$||(k9(w,z,Z,!1),$=(Z&z.childLanes)!==0),G){if($)return kV(w,z,Z);z.flags|=128}if(G=z.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),u(qw,qw.current,z),$)break;else return null;case 22:return z.lanes=0,_V(w,z,Z,z.pendingProps);case 24:l6(z,Fw,w.memoizedState.cache)}return X6(w,z,Z)}function gK(w,z,Z){if(z._debugNeedsRemount&&w!==null){Z=SW(z.type,z.key,z.pendingProps,z._debugOwner||null,z.mode,z.lanes),Z._debugStack=z._debugStack,Z._debugTask=z._debugTask;var $=z.return;if($===null)throw Error("Cannot swap the root fiber.");if(w.alternate=null,z.alternate=null,Z.index=z.index,Z.sibling=z.sibling,Z.return=z.return,Z.ref=z.ref,Z._debugInfo=z._debugInfo,z===$.child)$.child=Z;else{var G=$.child;if(G===null)throw Error("Expected parent to have a child.");for(;G.sibling!==z;)if(G=G.sibling,G===null)throw Error("Expected to find the previous sibling.");G.sibling=Z}return z=$.deletions,z===null?($.deletions=[w],$.flags|=16):z.push(w),Z.flags|=2,Z}if(w!==null)if(w.memoizedProps!==z.pendingProps||z.type!==w.type)jw=!0;else{if(!RK(w,Z)&&(z.flags&128)===0)return jw=!1,ME(w,z,Z);jw=(w.flags&131072)!==0?!0:!1}else{if(jw=!1,$=F1)p6(),$=(z.flags&1048576)!==0;$&&($=z.index,p6(),$L(z,VJ,$))}switch(z.lanes=0,z.tag){case 16:w:if($=z.pendingProps,w=i6(z.elementType),z.type=w,typeof w==="function")CW(w)?($=_7(w,$),z.tag=1,z.type=w=J7(w),z=LV(null,z,w,$,Z)):(z.tag=0,PK(z,w),z.type=w=J7(w),z=hK(null,z,w,$,Z));else{if(w!==void 0&&w!==null){if(G=w.$$typeof,G===XJ){z.tag=11,z.type=w=IW(w),z=WV(null,z,w,$,Z);break w}else if(G===j3){z.tag=14,z=KV(null,z,w,$,Z);break w}}throw z="",w!==null&&typeof w==="object"&&w.$$typeof===l2&&(z=" Did you wrap a component in React.lazy() more than once?"),Z=S(w)||w,Error("Element type is invalid. Received a promise that resolves to: "+Z+". Lazy element type must resolve to a class or function."+z)}return z;case 0:return hK(w,z,z.type,z.pendingProps,Z);case 1:return $=z.type,G=_7($,z.pendingProps),LV(w,z,$,G,Z);case 3:w:{if(r(z,z.stateNode.containerInfo),w===null)throw Error("Should have a current fiber. This is a bug in React.");$=z.pendingProps;var Q=z.memoizedState;G=Q.element,sW(w,z),gZ(z,$,null,Z);var _=z.memoizedState;if($=_.cache,l6(z,Fw,$),$!==Q.cache&&uW(z,[Fw],Z,!0),RZ(),$=_.element,Q.isDehydrated)if(Q={element:$,isDehydrated:!1,cache:_.cache},z.updateQueue.baseState=Q,z.memoizedState=Q,z.flags&256){z=VV(w,z,$,Z);break w}else if($!==G){G=f2(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),z),PZ(G),z=VV(w,z,$,Z);break w}else{switch(w=z.stateNode.containerInfo,w.nodeType){case 9:w=w.body;break;default:w=w.nodeName==="HTML"?w.ownerDocument.body:w}l1=c2(w.firstChild),nw=z,F1=!0,W4=null,S8=!1,a2=null,V5=!0,Z=Ck(z,null,$,Z);for(z.child=Z;Z;)Z.flags=Z.flags&-3|4096,Z=Z.sibling}else{if(Y7(),$===G){z=X6(w,z,Z);break w}aw(w,z,$,Z)}z=z.child}return z;case 26:return w3(w,z),w===null?(Z=lF(z.type,null,z.pendingProps,null))?z.memoizedState=Z:F1||(Z=z.type,w=z.pendingProps,$=Q0(Z4.current),$=U3($).createElement(Z),$[ow]=z,$[_2]=w,sw($,Z,w),d0($),z.stateNode=$):z.memoizedState=lF(z.type,w.memoizedProps,z.pendingProps,w.memoizedState),null;case 27:return g(z),w===null&&F1&&($=Q0(Z4.current),G=o(),$=z.stateNode=pF(z.type,z.pendingProps,$,G,!1),S8||(G=PF($,z.type,z.pendingProps,G),G!==null&&($7(z,0).serverProps=G)),nw=z,V5=!0,G=l1,w4(z.type)?(i_=G,l1=c2($.firstChild)):l1=G),aw(w,z,z.pendingProps.children,Z),w3(w,z),w===null&&(z.flags|=4194304),z.child;case 5:return w===null&&F1&&(Q=o(),$=OW(z.type,Q.ancestorInfo),G=l1,(_=!G)||(_=Uv(G,z.type,z.pendingProps,V5),_!==null?(z.stateNode=_,S8||(Q=PF(_,z.type,z.pendingProps,Q),Q!==null&&($7(z,0).serverProps=Q)),nw=z,l1=c2(_.firstChild),V5=!1,Q=!0):Q=!1,_=!Q),_&&($&&T$(z,G),c6(z))),g(z),G=z.type,Q=z.pendingProps,_=w!==null?w.memoizedProps:null,$=Q.children,WU(G,Q)?$=null:_!==null&&WU(G,_)&&(z.flags|=32),z.memoizedState!==null&&(G=wK(w,z,BE,null,null,Z),oJ._currentValue=G),w3(w,z),aw(w,z,$,Z),z.child;case 6:return w===null&&F1&&(Z=z.pendingProps,w=o(),$=w.ancestorInfo.current,Z=$!=null?L$(Z,$.tag,w.ancestorInfo.implicitRootScope):!0,w=l1,($=!w)||($=_v(w,z.pendingProps,V5),$!==null?(z.stateNode=$,nw=z,l1=null,$=!0):$=!1,$=!$),$&&(Z&&T$(z,w),c6(z))),null;case 13:return FV(w,z,Z);case 4:return r(z,z.stateNode.containerInfo),$=z.pendingProps,w===null?z.child=D7(z,null,$,Z):aw(w,z,$,Z),z.child;case 11:return WV(w,z,z.type,z.pendingProps,Z);case 7:return aw(w,z,z.pendingProps,Z),z.child;case 8:return aw(w,z,z.pendingProps.children,Z),z.child;case 12:return z.flags|=4,z.flags|=2048,$=z.stateNode,$.effectDuration=-0,$.passiveEffectDuration=-0,aw(w,z,z.pendingProps.children,Z),z.child;case 10:return $=z.type,G=z.pendingProps,Q=G.value,"value"in G||$j||($j=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),l6(z,$,Q),aw(w,z,G.children,Z),z.child;case 9:return G=z.type._context,$=z.pendingProps.children,typeof $!=="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."),G7(z),G=s1(G),$=K_($,G,void 0),z.flags|=1,aw(w,z,$,Z),z.child;case 14:return KV(w,z,z.type,z.pendingProps,Z);case 15:return UV(w,z,z.type,z.pendingProps,Z);case 19:return kV(w,z,Z);case 31:return AE(w,z,Z);case 22:return _V(w,z,Z,z.pendingProps);case 24:return G7(z),$=s1(Fw),w===null?(G=iW(),G===null&&(G=g1,Q=pW(),G.pooledCache=Q,Q7(Q),Q!==null&&(G.pooledCacheLanes|=Z),G=Q),z.memoizedState={parent:$,cache:G},aW(z),l6(z,Fw,G)):((w.lanes&Z)!==0&&(sW(w,z),gZ(z,null,null,Z),RZ()),G=w.memoizedState,Q=z.memoizedState,G.parent!==$?(G={parent:$,cache:$},z.memoizedState=G,z.lanes===0&&(z.memoizedState=z.updateQueue.baseState=G),l6(z,Fw,$)):($=Q.cache,l6(z,Fw,$),$!==G.cache&&uW(z,[Fw],Z,!0))),aw(w,z,z.pendingProps.children,Z),z.child;case 29:throw z.pendingProps}throw Error("Unknown unit of work tag ("+z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function $6(w){w.flags|=4}function fK(w,z,Z,$,G){if(z=(w.mode&ph)!==w1)z=!1;if(z){if(w.flags|=16777216,(G&335544128)===G)if(w.stateNode.complete)w.flags|=8192;else if(eV())w.flags|=8192;else throw O7=r3,__}else w.flags&=-16777217}function jV(w,z){if(z.type!=="stylesheet"||(z.state.loading&A5)!==y7)w.flags&=-16777217;else if(w.flags|=16777216,!oF(z))if(eV())w.flags|=8192;else throw O7=r3,__}function Z3(w,z){z!==null&&(w.flags|=4),w.flags&16384&&(z=w.tag!==22?H1():536870912,w.lanes|=z,h7|=z)}function pZ(w,z){if(!F1)switch(w.tailMode){case"hidden":z=w.tail;for(var Z=null;z!==null;)z.alternate!==null&&(Z=z),z=z.sibling;Z===null?w.tail=null:Z.sibling=null;break;case"collapsed":Z=w.tail;for(var $=null;Z!==null;)Z.alternate!==null&&($=Z),Z=Z.sibling;$===null?z||w.tail===null?w.tail=null:w.tail.sibling=null:$.sibling=null}}function m1(w){var z=w.alternate!==null&&w.alternate.child===w.child,Z=0,$=0;if(z)if((w.mode&Y1)!==w1){for(var{selfBaseDuration:G,child:Q}=w;Q!==null;)Z|=Q.lanes|Q.childLanes,$|=Q.subtreeFlags&65011712,$|=Q.flags&65011712,G+=Q.treeBaseDuration,Q=Q.sibling;w.treeBaseDuration=G}else for(G=w.child;G!==null;)Z|=G.lanes|G.childLanes,$|=G.subtreeFlags&65011712,$|=G.flags&65011712,G.return=w,G=G.sibling;else if((w.mode&Y1)!==w1){G=w.actualDuration,Q=w.selfBaseDuration;for(var _=w.child;_!==null;)Z|=_.lanes|_.childLanes,$|=_.subtreeFlags,$|=_.flags,G+=_.actualDuration,Q+=_.treeBaseDuration,_=_.sibling;w.actualDuration=G,w.treeBaseDuration=Q}else for(G=w.child;G!==null;)Z|=G.lanes|G.childLanes,$|=G.subtreeFlags,$|=G.flags,G.return=w,G=G.sibling;return w.subtreeFlags|=$,w.childLanes=Z,z}function OE(w,z,Z){var $=z.pendingProps;switch(gW(z),z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return m1(z),null;case 1:return m1(z),null;case 3:if(Z=z.stateNode,$=null,w!==null&&($=w.memoizedState.cache),z.memoizedState.cache!==$&&(z.flags|=2048),Z6(Fw,z),e(z),Z.pendingContext&&(Z.context=Z.pendingContext,Z.pendingContext=null),w===null||w.child===null)N9(z)?(mW(),$6(z)):w===null||w.memoizedState.isDehydrated&&(z.flags&256)===0||(z.flags|=1024,fW());return m1(z),null;case 26:var{type:G,memoizedState:Q}=z;return w===null?($6(z),Q!==null?(m1(z),jV(z,Q)):(m1(z),fK(z,G,null,$,Z))):Q?Q!==w.memoizedState?($6(z),m1(z),jV(z,Q)):(m1(z),z.flags&=-16777217):(w=w.memoizedProps,w!==$&&$6(z),m1(z),fK(z,G,w,$,Z)),null;case 27:if(X0(z),Z=Q0(Z4.current),G=z.type,w!==null&&z.stateNode!=null)w.memoizedProps!==$&&$6(z);else{if(!$){if(z.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 m1(z),null}w=o(),N9(z)?WL(z,w):(w=pF(G,$,Z,w,!0),z.stateNode=w,$6(z))}return m1(z),null;case 5:if(X0(z),G=z.type,w!==null&&z.stateNode!=null)w.memoizedProps!==$&&$6(z);else{if(!$){if(z.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 m1(z),null}var _=o();if(N9(z))WL(z,_);else{switch(Q=Q0(Z4.current),OW(G,_.ancestorInfo),_=_.context,Q=U3(Q),_){case Bz:Q=Q.createElementNS(f9,G);break;case NY:Q=Q.createElementNS(E3,G);break;default:switch(G){case"svg":Q=Q.createElementNS(f9,G);break;case"math":Q=Q.createElementNS(E3,G);break;case"script":Q=Q.createElement("div"),Q.innerHTML="<script></script>",Q=Q.removeChild(Q.firstChild);break;case"select":Q=typeof $.is==="string"?Q.createElement("select",{is:$.is}):Q.createElement("select"),$.multiple?Q.multiple=!0:$.size&&(Q.size=$.size);break;default:Q=typeof $.is==="string"?Q.createElement(G,{is:$.is}):Q.createElement(G),G.indexOf("-")===-1&&(G!==G.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",G),Object.prototype.toString.call(Q)!=="[object HTMLUnknownElement]"||p5.call(vj,G)||(vj[G]=!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.",G)))}}Q[ow]=z,Q[_2]=$;w:for(_=z.child;_!==null;){if(_.tag===5||_.tag===6)Q.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===z)break w;for(;_.sibling===null;){if(_.return===null||_.return===z)break w;_=_.return}_.sibling.return=_.return,_=_.sibling}z.stateNode=Q;w:switch(sw(Q,G,$),G){case"button":case"input":case"select":case"textarea":$=!!$.autoFocus;break w;case"img":$=!0;break w;default:$=!1}$&&$6(z)}}return m1(z),fK(z,z.type,w===null?null:w.memoizedProps,z.pendingProps,Z),null;case 6:if(w&&z.stateNode!=null)w.memoizedProps!==$&&$6(z);else{if(typeof $!=="string"&&z.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=Q0(Z4.current),Z=o(),N9(z)){if(w=z.stateNode,Z=z.memoizedProps,G=!S8,$=null,Q=nw,Q!==null)switch(Q.tag){case 3:G&&(G=dF(w,Z,$),G!==null&&($7(z,0).serverProps=G));break;case 27:case 5:$=Q.memoizedProps,G&&(G=dF(w,Z,$),G!==null&&($7(z,0).serverProps=G))}w[ow]=z,w=w.nodeValue===Z||$!==null&&$.suppressHydrationWarning===!0||TF(w.nodeValue,Z)?!0:!1,w||c6(z,!0)}else G=Z.ancestorInfo.current,G!=null&&L$($,G.tag,Z.ancestorInfo.implicitRootScope),w=U3(w).createTextNode($),w[ow]=z,z.stateNode=w}return m1(z),null;case 31:if(Z=z.memoizedState,w===null||w.memoizedState!==null){if($=N9(z),Z!==null){if(w===null){if(!$)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=z.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[ow]=z,m1(z),(z.mode&Y1)!==w1&&Z!==null&&(w=z.child,w!==null&&(z.treeBaseDuration-=w.treeBaseDuration))}else mW(),Y7(),(z.flags&128)===0&&(Z=z.memoizedState=null),z.flags|=4,m1(z),(z.mode&Y1)!==w1&&Z!==null&&(w=z.child,w!==null&&(z.treeBaseDuration-=w.treeBaseDuration));w=!1}else Z=fW(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=Z),w=!0;if(!w){if(z.flags&256)return u2(z),z;return u2(z),null}if((z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return m1(z),null;case 13:if($=z.memoizedState,w===null||w.memoizedState!==null&&w.memoizedState.dehydrated!==null){if(G=$,Q=N9(z),G!==null&&G.dehydrated!==null){if(w===null){if(!Q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Q=z.memoizedState,Q=Q!==null?Q.dehydrated:null,!Q)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Q[ow]=z,m1(z),(z.mode&Y1)!==w1&&G!==null&&(G=z.child,G!==null&&(z.treeBaseDuration-=G.treeBaseDuration))}else mW(),Y7(),(z.flags&128)===0&&(G=z.memoizedState=null),z.flags|=4,m1(z),(z.mode&Y1)!==w1&&G!==null&&(G=z.child,G!==null&&(z.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=fW(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=G),G=!0;if(!G){if(z.flags&256)return u2(z),z;return u2(z),null}}if(u2(z),(z.flags&128)!==0)return z.lanes=Z,(z.mode&Y1)!==w1&&SZ(z),z;return Z=$!==null,w=w!==null&&w.memoizedState!==null,Z&&($=z.child,G=null,$.alternate!==null&&$.alternate.memoizedState!==null&&$.alternate.memoizedState.cachePool!==null&&(G=$.alternate.memoizedState.cachePool.pool),Q=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),Q!==G&&($.flags|=2048)),Z!==w&&Z&&(z.child.flags|=8192),Z3(z,z.updateQueue),m1(z),(z.mode&Y1)!==w1&&Z&&(w=z.child,w!==null&&(z.treeBaseDuration-=w.treeBaseDuration)),null;case 4:return e(z),w===null&&ZU(z.stateNode.containerInfo),m1(z),null;case 10:return Z6(z.type,z),m1(z),null;case 19:if(t(qw,z),$=z.memoizedState,$===null)return m1(z),null;if(G=(z.flags&128)!==0,Q=$.rendering,Q===null)if(G)pZ($,!1);else{if(e1!==k6||w!==null&&(w.flags&128)!==0)for(w=z.child;w!==null;){if(Q=f$(w),Q!==null){z.flags|=128,pZ($,!1),w=Q.updateQueue,z.updateQueue=w,Z3(z,w),z.subtreeFlags=0,w=Z;for(Z=z.child;Z!==null;)JL(Z,w),Z=Z.sibling;return u(qw,qw.current&Jz|IJ,z),F1&&z6(z,$.treeForkCount),z.child}w=w.sibling}$.tail!==null&&fw()>YY&&(z.flags|=128,G=!0,pZ($,!1),z.lanes=4194304)}else{if(!G)if(w=f$(Q),w!==null){if(z.flags|=128,G=!0,w=w.updateQueue,z.updateQueue=w,Z3(z,w),pZ($,!0),$.tail===null&&$.tailMode==="hidden"&&!Q.alternate&&!F1)return m1(z),null}else 2*fw()-$.renderingStartTime>YY&&Z!==536870912&&(z.flags|=128,G=!0,pZ($,!1),z.lanes=4194304);$.isBackwards?(Q.sibling=z.child,z.child=Q):(w=$.last,w!==null?w.sibling=Q:z.child=Q,$.last=Q)}if($.tail!==null)return w=$.tail,$.rendering=w,$.tail=w.sibling,$.renderingStartTime=fw(),w.sibling=null,Z=qw.current,Z=G?Z&Jz|IJ:Z&Jz,u(qw,Z,z),F1&&z6(z,$.treeForkCount),w;return m1(z),null;case 22:case 23:return u2(z),nW(z),$=z.memoizedState!==null,w!==null?w.memoizedState!==null!==$&&(z.flags|=8192):$&&(z.flags|=8192),$?(Z&536870912)!==0&&(z.flags&128)===0&&(m1(z),z.subtreeFlags&6&&(z.flags|=8192)):m1(z),Z=z.updateQueue,Z!==null&&Z3(z,Z.retryQueue),Z=null,w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(Z=w.memoizedState.cachePool.pool),$=null,z.memoizedState!==null&&z.memoizedState.cachePool!==null&&($=z.memoizedState.cachePool.pool),$!==Z&&(z.flags|=2048),w!==null&&t(A7,z),null;case 24:return Z=null,w!==null&&(Z=w.memoizedState.cache),z.memoizedState.cache!==Z&&(z.flags|=2048),Z6(Fw,z),m1(z),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function DE(w,z){switch(gW(z),z.tag){case 1:return w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&SZ(z),z):null;case 3:return Z6(Fw,z),e(z),w=z.flags,(w&65536)!==0&&(w&128)===0?(z.flags=w&-65537|128,z):null;case 26:case 27:case 5:return X0(z),null;case 31:if(z.memoizedState!==null){if(u2(z),z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Y7()}return w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&SZ(z),z):null;case 13:if(u2(z),w=z.memoizedState,w!==null&&w.dehydrated!==null){if(z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Y7()}return w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&SZ(z),z):null;case 19:return t(qw,z),null;case 4:return e(z),null;case 10:return Z6(z.type,z),null;case 22:case 23:return u2(z),nW(z),w!==null&&t(A7,z),w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&SZ(z),z):null;case 24:return Z6(Fw,z),null;case 25:return null;default:return null}}function AV(w,z){switch(gW(z),z.tag){case 3:Z6(Fw,z),e(z);break;case 26:case 27:case 5:X0(z);break;case 4:e(z);break;case 31:z.memoizedState!==null&&u2(z);break;case 13:u2(z);break;case 19:t(qw,z);break;case 10:Z6(z.type,z);break;case 22:case 23:u2(z),nW(z),w!==null&&t(A7,z);break;case 24:Z6(Fw,z)}}function j8(w){return(w.mode&Y1)!==w1}function MV(w,z){j8(w)?(k8(),cZ(z,w),N8()):cZ(z,w)}function mK(w,z,Z){j8(w)?(k8(),D9(Z,w,z),N8()):D9(Z,w,z)}function cZ(w,z){try{var Z=z.updateQueue,$=Z!==null?Z.lastEffect:null;if($!==null){var G=$.next;Z=G;do{if((Z.tag&w)===w&&($=void 0,(w&L2)!==s3&&(_z=!0),$=n(z,ah,Z),(w&L2)!==s3&&(_z=!1),$!==void 0&&typeof $!=="function")){var Q=void 0;Q=(Z.tag&o2)!==0?"useLayoutEffect":(Z.tag&L2)!==0?"useInsertionEffect":"useEffect";var _=void 0;_=$===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof $.then==="function"?`
141
+
142
+ It looks like you wrote `+Q+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
+
144
+ `+Q+`(() => {
145
+ async function fetchData() {
146
+ // You can await here
147
+ const response = await MyAPI.getData(someId);
148
+ // ...
149
+ }
150
+ fetchData();
151
+ }, [someId]); // Or [] if effect doesn't need props or state
152
+
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+$,n(z,function(B,A){console.error("%s must not return anything besides a function, which is used for clean-up.%s",B,A)},Q,_)}Z=Z.next}while(Z!==G)}}catch(B){P1(z,z.return,B)}}function D9(w,z,Z){try{var $=z.updateQueue,G=$!==null?$.lastEffect:null;if(G!==null){var Q=G.next;$=Q;do{if(($.tag&w)===w){var _=$.inst,B=_.destroy;B!==void 0&&(_.destroy=void 0,(w&L2)!==s3&&(_z=!0),G=z,n(G,sh,G,Z,B),(w&L2)!==s3&&(_z=!1))}$=$.next}while($!==Q)}}catch(A){P1(z,z.return,A)}}function OV(w,z){j8(w)?(k8(),cZ(z,w),N8()):cZ(z,w)}function dK(w,z,Z){j8(w)?(k8(),D9(Z,w,z),N8()):D9(Z,w,z)}function DV(w){var z=w.updateQueue;if(z!==null){var Z=w.stateNode;w.type.defaultProps||"ref"in w.memoizedProps||Gz||(Z.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.",d(w)||"instance"),Z.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.",d(w)||"instance"));try{n(w,xL,z,Z)}catch($){P1(w,w.return,$)}}}function TE(w,z,Z){return w.getSnapshotBeforeUpdate(z,Z)}function xE(w,z){var{memoizedProps:Z,memoizedState:$}=z;z=w.stateNode,w.type.defaultProps||"ref"in w.memoizedProps||Gz||(z.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.",d(w)||"instance"),z.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.",d(w)||"instance"));try{var G=_7(w.type,Z),Q=n(w,TE,z,G,$);Z=Yj,Q!==void 0||Z.has(w.type)||(Z.add(w.type),n(w,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d(w))})),z.__reactInternalSnapshotBeforeUpdate=Q}catch(_){P1(w,w.return,_)}}function TV(w,z,Z){Z.props=_7(w.type,w.memoizedProps),Z.state=w.memoizedState,j8(w)?(k8(),n(w,Dk,w,z,Z),N8()):n(w,Dk,w,z,Z)}function EE(w){var z=w.ref;if(z!==null){switch(w.tag){case 26:case 27:case 5:var Z=w.stateNode;break;case 30:Z=w.stateNode;break;default:Z=w.stateNode}if(typeof z==="function")if(j8(w))try{k8(),w.refCleanup=z(Z)}finally{N8()}else w.refCleanup=z(Z);else typeof z==="string"?console.error("String refs are no longer supported."):z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d(w)),z.current=Z}}function lZ(w,z){try{n(w,EE,w)}catch(Z){P1(w,z,Z)}}function A8(w,z){var{ref:Z,refCleanup:$}=w;if(Z!==null)if(typeof $==="function")try{if(j8(w))try{k8(),n(w,$)}finally{N8(w)}else n(w,$)}catch(G){P1(w,z,G)}finally{w.refCleanup=null,w=w.alternate,w!=null&&(w.refCleanup=null)}else if(typeof Z==="function")try{if(j8(w))try{k8(),n(w,Z,null)}finally{N8(w)}else n(w,Z,null)}catch(G){P1(w,z,G)}else Z.current=null}function xV(w,z,Z,$){var G=w.memoizedProps,Q=G.id,_=G.onCommit;G=G.onRender,z=z===null?"mount":"update",p3&&(z="nested-update"),typeof G==="function"&&G(Q,z,w.actualDuration,w.treeBaseDuration,w.actualStartTime,Z),typeof _==="function"&&_(Q,z,$,Z)}function vE(w,z,Z,$){var G=w.memoizedProps;w=G.id,G=G.onPostCommit,z=z===null?"mount":"update",p3&&(z="nested-update"),typeof G==="function"&&G(w,z,$,Z)}function EV(w){var{type:z,memoizedProps:Z,stateNode:$}=w;try{n(w,eE,$,z,Z,w)}catch(G){P1(w,w.return,G)}}function uK(w,z,Z){try{n(w,zv,w.stateNode,w.type,Z,z,w)}catch($){P1(w,w.return,$)}}function vV(w){return w.tag===5||w.tag===3||w.tag===26||w.tag===27&&w4(w.type)||w.tag===4}function pK(w){w:for(;;){for(;w.sibling===null;){if(w.return===null||vV(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&&w4(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 cK(w,z,Z){var $=w.tag;if($===5||$===6)w=w.stateNode,z?(yF(Z),(Z.nodeType===9?Z.body:Z.nodeName==="HTML"?Z.ownerDocument.body:Z).insertBefore(w,z)):(yF(Z),z=Z.nodeType===9?Z.body:Z.nodeName==="HTML"?Z.ownerDocument.body:Z,z.appendChild(w),Z=Z._reactRootContainer,Z!==null&&Z!==void 0||z.onclick!==null||(z.onclick=e8));else if($!==4&&($===27&&w4(w.type)&&(Z=w.stateNode,z=null),w=w.child,w!==null))for(cK(w,z,Z),w=w.sibling;w!==null;)cK(w,z,Z),w=w.sibling}function J3(w,z,Z){var $=w.tag;if($===5||$===6)w=w.stateNode,z?Z.insertBefore(w,z):Z.appendChild(w);else if($!==4&&($===27&&w4(w.type)&&(Z=w.stateNode),w=w.child,w!==null))for(J3(w,z,Z),w=w.sibling;w!==null;)J3(w,z,Z),w=w.sibling}function hE(w){for(var z,Z=w.return;Z!==null;){if(vV(Z)){z=Z;break}Z=Z.return}if(z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(z.tag){case 27:z=z.stateNode,Z=pK(w),J3(w,Z,z);break;case 5:Z=z.stateNode,z.flags&32&&(bF(Z),z.flags&=-33),z=pK(w),J3(w,z,Z);break;case 3:case 4:z=z.stateNode.containerInfo,Z=pK(w),cK(w,Z,z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function hV(w){var{stateNode:z,memoizedProps:Z}=w;try{n(w,Vv,w.type,Z,z,w)}catch($){P1(w,w.return,$)}}function PV(w,z){return z.tag===31?(z=z.memoizedState,w.memoizedState!==null&&z===null):z.tag===13?(w=w.memoizedState,z=z.memoizedState,w!==null&&w.dehydrated!==null&&(z===null||z.dehydrated===null)):z.tag===3?w.memoizedState.isDehydrated&&(z.flags&256)===0:!1}function PE(w,z){if(w=w.containerInfo,p_=MY,w=rB(w),xW(w)){if("selectionStart"in w)var Z={start:w.selectionStart,end:w.selectionEnd};else w:{Z=(Z=w.ownerDocument)&&Z.defaultView||window;var $=Z.getSelection&&Z.getSelection();if($&&$.rangeCount!==0){Z=$.anchorNode;var{anchorOffset:G,focusNode:Q}=$;$=$.focusOffset;try{Z.nodeType,Q.nodeType}catch(M0){Z=null;break w}var _=0,B=-1,A=-1,D=0,i=0,a=w,y=null;z:for(;;){for(var Z0;;){if(a!==Z||G!==0&&a.nodeType!==3||(B=_+G),a!==Q||$!==0&&a.nodeType!==3||(A=_+$),a.nodeType===3&&(_+=a.nodeValue.length),(Z0=a.firstChild)===null)break;y=a,a=Z0}for(;;){if(a===w)break z;if(y===Z&&++D===G&&(B=_),y===Q&&++i===$&&(A=_),(Z0=a.nextSibling)!==null)break;a=y,y=a.parentNode}a=Z0}Z=B===-1||A===-1?null:{start:B,end:A}}else Z=null}Z=Z||{start:0,end:0}}else Z=null;c_={focusedElem:w,selectionRange:Z},MY=!1;for(dw=z;dw!==null;)if(z=dw,w=z.child,(z.subtreeFlags&1028)!==0&&w!==null)w.return=z,dw=w;else for(;dw!==null;){switch(w=z=dw,Z=w.alternate,G=w.flags,w.tag){case 0:if((G&4)!==0&&(w=w.updateQueue,w=w!==null?w.events:null,w!==null))for(Z=0;Z<w.length;Z++)G=w[Z],G.ref.impl=G.nextImpl;break;case 11:case 15:break;case 1:(G&1024)!==0&&Z!==null&&xE(w,Z);break;case 3:if((G&1024)!==0){if(w=w.stateNode.containerInfo,Z=w.nodeType,Z===9)KU(w);else if(Z===1)switch(w.nodeName){case"HEAD":case"HTML":case"BODY":KU(w);break;default:w.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((G&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=z.sibling,w!==null){w.return=z.return,dw=w;break}dw=z.return}}function IV(w,z,Z){var $=m2(),G=B8(),Q=V8(),_=F8(),B=Z.flags;switch(Z.tag){case 0:case 11:case 15:M8(w,Z),B&4&&MV(Z,o2|k5);break;case 1:if(M8(w,Z),B&4)if(w=Z.stateNode,z===null)Z.type.defaultProps||"ref"in Z.memoizedProps||Gz||(w.props!==Z.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.",d(Z)||"instance"),w.state!==Z.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.",d(Z)||"instance")),j8(Z)?(k8(),n(Z,U_,Z,w),N8()):n(Z,U_,Z,w);else{var A=_7(Z.type,z.memoizedProps);z=z.memoizedState,Z.type.defaultProps||"ref"in Z.memoizedProps||Gz||(w.props!==Z.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.",d(Z)||"instance"),w.state!==Z.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.",d(Z)||"instance")),j8(Z)?(k8(),n(Z,Ak,Z,w,A,z,w.__reactInternalSnapshotBeforeUpdate),N8()):n(Z,Ak,Z,w,A,z,w.__reactInternalSnapshotBeforeUpdate)}B&64&&DV(Z),B&512&&lZ(Z,Z.return);break;case 3:if(z=J6(),M8(w,Z),B&64&&(B=Z.updateQueue,B!==null)){if(A=null,Z.child!==null)switch(Z.child.tag){case 27:case 5:A=Z.child.stateNode;break;case 1:A=Z.child.stateNode}try{n(Z,xL,B,A)}catch(i){P1(Z,Z.return,i)}}w.effectDuration+=h$(z);break;case 27:z===null&&B&4&&hV(Z);case 26:case 5:if(M8(w,Z),z===null){if(B&4)EV(Z);else if(B&64){w=Z.type,z=Z.memoizedProps,A=Z.stateNode;try{n(Z,wv,A,w,z,Z)}catch(i){P1(Z,Z.return,i)}}}B&512&&lZ(Z,Z.return);break;case 12:if(B&4){B=J6(),M8(w,Z),w=Z.stateNode,w.effectDuration+=CZ(B);try{n(Z,xV,Z,z,K4,w.effectDuration)}catch(i){P1(Z,Z.return,i)}}else M8(w,Z);break;case 31:M8(w,Z),B&4&&bV(w,Z);break;case 13:M8(w,Z),B&4&&yV(w,Z),B&64&&(w=Z.memoizedState,w!==null&&(w=w.dehydrated,w!==null&&(B=mE.bind(null,Z),qv(w,B))));break;case 22:if(B=Z.memoizedState!==null||N6,!B){z=z!==null&&z.memoizedState!==null||Aw,A=N6;var D=Aw;N6=B,(Aw=z)&&!D?(O8(w,Z,(Z.subtreeFlags&8772)!==0),(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&k$(Z,s0,e0)):M8(w,Z),N6=A,Aw=D}break;case 30:break;default:M8(w,Z)}(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&((Jw||0.05<t1)&&q8(Z,s0,e0,t1,o1),Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null&&0.05<e0-s0&&(PV(Z.return.alternate,Z.return)||_8(Z,s0,e0,"Mount"))),d2($),L8(G),o1=Q,Jw=_}function CV(w){var z=w.alternate;z!==null&&(w.alternate=null,CV(z)),w.child=null,w.deletions=null,w.sibling=null,w.tag===5&&(z=w.stateNode,z!==null&&N0(z)),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 Y6(w,z,Z){for(Z=Z.child;Z!==null;)SV(w,z,Z),Z=Z.sibling}function SV(w,z,Z){if(Z2&&typeof Z2.onCommitFiberUnmount==="function")try{Z2.onCommitFiberUnmount(R9,Z)}catch(D){h8||(h8=!0,console.error("React instrumentation encountered an error: %o",D))}var $=m2(),G=B8(),Q=V8(),_=F8();switch(Z.tag){case 26:Aw||A8(Z,z),Y6(w,z,Z),Z.memoizedState?Z.memoizedState.count--:Z.stateNode&&(w=Z.stateNode,w.parentNode.removeChild(w));break;case 27:Aw||A8(Z,z);var B=Mw,A=x2;w4(Z.type)&&(Mw=Z.stateNode,x2=!1),Y6(w,z,Z),n(Z,wJ,Z.stateNode),Mw=B,x2=A;break;case 5:Aw||A8(Z,z);case 6:if(B=Mw,A=x2,Mw=null,Y6(w,z,Z),Mw=B,x2=A,Mw!==null)if(x2)try{n(Z,Xv,Mw,Z.stateNode)}catch(D){P1(Z,z,D)}else try{n(Z,Jv,Mw,Z.stateNode)}catch(D){P1(Z,z,D)}break;case 18:Mw!==null&&(x2?(w=Mw,RF(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w,Z.stateNode),C9(w)):RF(Mw,Z.stateNode));break;case 4:B=Mw,A=x2,Mw=Z.stateNode.containerInfo,x2=!0,Y6(w,z,Z),Mw=B,x2=A;break;case 0:case 11:case 14:case 15:D9(L2,Z,z),Aw||mK(Z,z,o2),Y6(w,z,Z);break;case 1:Aw||(A8(Z,z),B=Z.stateNode,typeof B.componentWillUnmount==="function"&&TV(Z,z,B)),Y6(w,z,Z);break;case 21:Y6(w,z,Z);break;case 22:Aw=(B=Aw)||Z.memoizedState!==null,Y6(w,z,Z),Aw=B;break;default:Y6(w,z,Z)}(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&q8(Z,s0,e0,t1,o1),d2($),L8(G),o1=Q,Jw=_}function bV(w,z){if(z.memoizedState===null&&(w=z.alternate,w!==null&&(w=w.memoizedState,w!==null))){w=w.dehydrated;try{n(z,Bv,w)}catch(Z){P1(z,z.return,Z)}}}function yV(w,z){if(z.memoizedState===null&&(w=z.alternate,w!==null&&(w=w.memoizedState,w!==null&&(w=w.dehydrated,w!==null))))try{n(z,Lv,w)}catch(Z){P1(z,z.return,Z)}}function IE(w){switch(w.tag){case 31:case 13:case 19:var z=w.stateNode;return z===null&&(z=w.stateNode=new Gj),z;case 22:return w=w.stateNode,z=w._retryCache,z===null&&(z=w._retryCache=new Gj),z;default:throw Error("Unexpected Suspense handler tag ("+w.tag+"). This is a bug in React.")}}function X3(w,z){var Z=IE(w);z.forEach(function($){if(!Z.has($)){if(Z.add($),P8)if(Qz!==null&&Wz!==null)sZ(Wz,Qz);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=dE.bind(null,w,$);$.then(G,G)}})}function D2(w,z){var Z=z.deletions;if(Z!==null)for(var $=0;$<Z.length;$++){var G=w,Q=z,_=Z[$],B=m2(),A=Q;w:for(;A!==null;){switch(A.tag){case 27:if(w4(A.type)){Mw=A.stateNode,x2=!1;break w}break;case 5:Mw=A.stateNode,x2=!1;break w;case 3:case 4:Mw=A.stateNode.containerInfo,x2=!0;break w}A=A.return}if(Mw===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");SV(G,Q,_),Mw=null,x2=!1,(_.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&_8(_,s0,e0,"Unmount"),d2(B),G=_,Q=G.alternate,Q!==null&&(Q.return=null),G.return=null}if(z.subtreeFlags&13886)for(z=z.child;z!==null;)RV(z,w),z=z.sibling}function RV(w,z){var Z=m2(),$=B8(),G=V8(),Q=F8(),_=w.alternate,B=w.flags;switch(w.tag){case 0:case 11:case 14:case 15:D2(z,w),T2(w),B&4&&(D9(L2|k5,w,w.return),cZ(L2|k5,w),mK(w,w.return,o2|k5));break;case 1:if(D2(z,w),T2(w),B&512&&(Aw||_===null||A8(_,_.return)),B&64&&N6&&(B=w.updateQueue,B!==null&&(_=B.callbacks,_!==null))){var A=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=A===null?_:A.concat(_)}break;case 26:if(A=a5,D2(z,w),T2(w),B&512&&(Aw||_===null||A8(_,_.return)),B&4){var D=_!==null?_.memoizedState:null;if(B=w.memoizedState,_===null)if(B===null)if(w.stateNode===null){w:{B=w.type,_=w.memoizedProps,A=A.ownerDocument||A;z:switch(B){case"title":if(D=A.getElementsByTagName("title")[0],!D||D[GJ]||D[ow]||D.namespaceURI===f9||D.hasAttribute("itemprop"))D=A.createElement(B),A.head.insertBefore(D,A.querySelector("head > title"));sw(D,B,_),D[ow]=w,d0(D),B=D;break w;case"link":var i=aF("link","href",A).get(B+(_.href||""));if(i){for(var a=0;a<i.length;a++)if(D=i[a],D.getAttribute("href")===(_.href==null||_.href===""?null:_.href)&&D.getAttribute("rel")===(_.rel==null?null:_.rel)&&D.getAttribute("title")===(_.title==null?null:_.title)&&D.getAttribute("crossorigin")===(_.crossOrigin==null?null:_.crossOrigin)){i.splice(a,1);break z}}D=A.createElement(B),sw(D,B,_),A.head.appendChild(D);break;case"meta":if(i=aF("meta","content",A).get(B+(_.content||""))){for(a=0;a<i.length;a++)if(D=i[a],q0(_.content,"content"),D.getAttribute("content")===(_.content==null?null:""+_.content)&&D.getAttribute("name")===(_.name==null?null:_.name)&&D.getAttribute("property")===(_.property==null?null:_.property)&&D.getAttribute("http-equiv")===(_.httpEquiv==null?null:_.httpEquiv)&&D.getAttribute("charset")===(_.charSet==null?null:_.charSet)){i.splice(a,1);break z}}D=A.createElement(B),sw(D,B,_),A.head.appendChild(D);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+B+'". This is a bug in React.')}D[ow]=w,d0(D),B=D}w.stateNode=B}else sF(A,w.type,w.stateNode);else w.stateNode=rF(A,B,w.memoizedProps);else D!==B?(D===null?_.stateNode!==null&&(_=_.stateNode,_.parentNode.removeChild(_)):D.count--,B===null?sF(A,w.type,w.stateNode):rF(A,B,w.memoizedProps)):B===null&&w.stateNode!==null&&uK(w,w.memoizedProps,_.memoizedProps)}break;case 27:D2(z,w),T2(w),B&512&&(Aw||_===null||A8(_,_.return)),_!==null&&B&4&&uK(w,w.memoizedProps,_.memoizedProps);break;case 5:if(D2(z,w),T2(w),B&512&&(Aw||_===null||A8(_,_.return)),w.flags&32){A=w.stateNode;try{n(w,bF,A)}catch(E0){P1(w,w.return,E0)}}B&4&&w.stateNode!=null&&(A=w.memoizedProps,uK(w,A,_!==null?_.memoizedProps:A)),B&1024&&(O_=!0,w.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(D2(z,w),T2(w),B&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.");B=w.memoizedProps,_=_!==null?_.memoizedProps:B,A=w.stateNode;try{n(w,Zv,A,_,B)}catch(E0){P1(w,w.return,E0)}}break;case 3:if(A=J6(),kY=null,D=a5,a5=_3(z.containerInfo),D2(z,w),a5=D,T2(w),B&4&&_!==null&&_.memoizedState.isDehydrated)try{n(w,Hv,z.containerInfo)}catch(E0){P1(w,w.return,E0)}O_&&(O_=!1,gV(w)),z.effectDuration+=h$(A);break;case 4:B=a5,a5=_3(w.stateNode.containerInfo),D2(z,w),T2(w),a5=B;break;case 12:B=J6(),D2(z,w),T2(w),w.stateNode.effectDuration+=CZ(B);break;case 31:D2(z,w),T2(w),B&4&&(B=w.updateQueue,B!==null&&(w.updateQueue=null,X3(w,B)));break;case 13:D2(z,w),T2(w),w.child.flags&8192&&w.memoizedState!==null!==(_!==null&&_.memoizedState!==null)&&($Y=fw()),B&4&&(B=w.updateQueue,B!==null&&(w.updateQueue=null,X3(w,B)));break;case 22:A=w.memoizedState!==null;var y=_!==null&&_.memoizedState!==null,Z0=N6,M0=Aw;if(N6=Z0||A,Aw=M0||y,D2(z,w),Aw=M0,N6=Z0,y&&!A&&!Z0&&!M0&&(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&k$(w,s0,e0),T2(w),B&8192)w:for(z=w.stateNode,z._visibility=A?z._visibility&~LJ:z._visibility|LJ,!A||_===null||y||N6||Aw||(q7(w),(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&_8(w,s0,e0,"Disconnect")),_=null,z=w;;){if(z.tag===5||z.tag===26){if(_===null){y=_=z;try{D=y.stateNode,A?n(y,Yv,D):n(y,Wv,y.stateNode,y.memoizedProps)}catch(E0){P1(y,y.return,E0)}}}else if(z.tag===6){if(_===null){y=z;try{i=y.stateNode,A?n(y,Gv,i):n(y,Kv,i,y.memoizedProps)}catch(E0){P1(y,y.return,E0)}}}else if(z.tag===18){if(_===null){y=z;try{a=y.stateNode,A?n(y,$v,a):n(y,Qv,y.stateNode)}catch(E0){P1(y,y.return,E0)}}}else if((z.tag!==22&&z.tag!==23||z.memoizedState===null||z===w)&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===w)break w;for(;z.sibling===null;){if(z.return===null||z.return===w)break w;_===z&&(_=null),z=z.return}_===z&&(_=null),z.sibling.return=z.return,z=z.sibling}B&4&&(B=w.updateQueue,B!==null&&(_=B.retryQueue,_!==null&&(B.retryQueue=null,X3(w,_))));break;case 19:D2(z,w),T2(w),B&4&&(B=w.updateQueue,B!==null&&(w.updateQueue=null,X3(w,B)));break;case 30:break;case 21:break;default:D2(z,w),T2(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&((Jw||0.05<t1)&&q8(w,s0,e0,t1,o1),w.alternate===null&&w.return!==null&&w.return.alternate!==null&&0.05<e0-s0&&(PV(w.return.alternate,w.return)||_8(w,s0,e0,"Mount"))),d2(Z),L8($),o1=G,Jw=Q}function T2(w){var z=w.flags;if(z&2){try{n(w,hE,w)}catch(Z){P1(w,w.return,Z)}w.flags&=-3}z&4096&&(w.flags&=-4097)}function gV(w){if(w.subtreeFlags&1024)for(w=w.child;w!==null;){var z=w;gV(z),z.tag===5&&z.flags&1024&&z.stateNode.reset(),w=w.sibling}}function M8(w,z){if(z.subtreeFlags&8772)for(z=z.child;z!==null;)IV(w,z.alternate,z),z=z.sibling}function fV(w){var z=m2(),Z=B8(),$=V8(),G=F8();switch(w.tag){case 0:case 11:case 14:case 15:mK(w,w.return,o2),q7(w);break;case 1:A8(w,w.return);var Q=w.stateNode;typeof Q.componentWillUnmount==="function"&&TV(w,w.return,Q),q7(w);break;case 27:n(w,wJ,w.stateNode);case 26:case 5:A8(w,w.return),q7(w);break;case 22:w.memoizedState===null&&q7(w);break;case 30:q7(w);break;default:q7(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&q8(w,s0,e0,t1,o1),d2(z),L8(Z),o1=$,Jw=G}function q7(w){for(w=w.child;w!==null;)fV(w),w=w.sibling}function mV(w,z,Z,$){var G=m2(),Q=B8(),_=V8(),B=F8(),A=Z.flags;switch(Z.tag){case 0:case 11:case 15:O8(w,Z,$),MV(Z,o2);break;case 1:if(O8(w,Z,$),z=Z.stateNode,typeof z.componentDidMount==="function"&&n(Z,U_,Z,z),z=Z.updateQueue,z!==null){w=Z.stateNode;try{n(Z,HE,z,w)}catch(D){P1(Z,Z.return,D)}}$&&A&64&&DV(Z),lZ(Z,Z.return);break;case 27:hV(Z);case 26:case 5:O8(w,Z,$),$&&z===null&&A&4&&EV(Z),lZ(Z,Z.return);break;case 12:if($&&A&4){A=J6(),O8(w,Z,$),$=Z.stateNode,$.effectDuration+=CZ(A);try{n(Z,xV,Z,z,K4,$.effectDuration)}catch(D){P1(Z,Z.return,D)}}else O8(w,Z,$);break;case 31:O8(w,Z,$),$&&A&4&&bV(w,Z);break;case 13:O8(w,Z,$),$&&A&4&&yV(w,Z);break;case 22:Z.memoizedState===null&&O8(w,Z,$),lZ(Z,Z.return);break;case 30:break;default:O8(w,Z,$)}(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&q8(Z,s0,e0,t1,o1),d2(G),L8(Q),o1=_,Jw=B}function O8(w,z,Z){Z=Z&&(z.subtreeFlags&8772)!==0;for(z=z.child;z!==null;)mV(w,z.alternate,z,Z),z=z.sibling}function lK(w,z){var Z=null;w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(Z=w.memoizedState.cachePool.pool),w=null,z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(w=z.memoizedState.cachePool.pool),w!==Z&&(w!=null&&Q7(w),Z!=null&&IZ(Z))}function iK(w,z){w=null,z.alternate!==null&&(w=z.alternate.memoizedState.cache),z=z.memoizedState.cache,z!==w&&(Q7(z),w!=null&&IZ(w))}function u5(w,z,Z,$,G){if(z.subtreeFlags&10256||z.actualDuration!==0&&(z.alternate===null||z.alternate.child!==z.child))for(z=z.child;z!==null;){var Q=z.sibling;dV(w,z,Z,$,Q!==null?Q.actualStartTime:G),z=Q}}function dV(w,z,Z,$,G){var Q=m2(),_=B8(),B=V8(),A=F8(),D=Y4,i=z.flags;switch(z.tag){case 0:case 11:case 15:(z.mode&Y1)!==w1&&0<z.actualStartTime&&(z.flags&1)!==0&&j$(z,z.actualStartTime,G,Cw,Z),u5(w,z,Z,$,G),i&2048&&OV(z,V2|k5);break;case 1:(z.mode&Y1)!==w1&&0<z.actualStartTime&&((z.flags&128)!==0?vW(z,z.actualStartTime,G,[]):(z.flags&1)!==0&&j$(z,z.actualStartTime,G,Cw,Z)),u5(w,z,Z,$,G);break;case 3:var a=J6(),y=Cw;Cw=z.alternate!==null&&z.alternate.memoizedState.isDehydrated&&(z.flags&256)===0,u5(w,z,Z,$,G),Cw=y,i&2048&&(Z=null,z.alternate!==null&&(Z=z.alternate.memoizedState.cache),$=z.memoizedState.cache,$!==Z&&(Q7($),Z!=null&&IZ(Z))),w.passiveEffectDuration+=h$(a);break;case 12:if(i&2048){i=J6(),u5(w,z,Z,$,G),w=z.stateNode,w.passiveEffectDuration+=CZ(i);try{n(z,vE,z,z.alternate,K4,w.passiveEffectDuration)}catch(Z0){P1(z,z.return,Z0)}}else u5(w,z,Z,$,G);break;case 31:i=Cw,a=z.alternate!==null?z.alternate.memoizedState:null,y=z.memoizedState,a!==null&&y===null?(y=z.deletions,y!==null&&0<y.length&&y[0].tag===18?(Cw=!1,a=a.hydrationErrors,a!==null&&vW(z,z.actualStartTime,G,a)):Cw=!0):Cw=!1,u5(w,z,Z,$,G),Cw=i;break;case 13:i=Cw,a=z.alternate!==null?z.alternate.memoizedState:null,y=z.memoizedState,a===null||a.dehydrated===null||y!==null&&y.dehydrated!==null?Cw=!1:(y=z.deletions,y!==null&&0<y.length&&y[0].tag===18?(Cw=!1,a=a.hydrationErrors,a!==null&&vW(z,z.actualStartTime,G,a)):Cw=!0),u5(w,z,Z,$,G),Cw=i;break;case 23:break;case 22:y=z.stateNode,a=z.alternate,z.memoizedState!==null?y._visibility&W6?u5(w,z,Z,$,G):iZ(w,z,Z,$,G):y._visibility&W6?u5(w,z,Z,$,G):(y._visibility|=W6,T9(w,z,Z,$,(z.subtreeFlags&10256)!==0||z.actualDuration!==0&&(z.alternate===null||z.alternate.child!==z.child),G),(z.mode&Y1)===w1||Cw||(w=z.actualStartTime,0<=w&&0.05<G-w&&k$(z,w,G),0<=s0&&0<=e0&&0.05<e0-s0&&k$(z,s0,e0))),i&2048&&lK(a,z);break;case 24:u5(w,z,Z,$,G),i&2048&&iK(z.alternate,z);break;default:u5(w,z,Z,$,G)}if((z.mode&Y1)!==w1){if(w=!Cw&&z.alternate===null&&z.return!==null&&z.return.alternate!==null)Z=z.actualStartTime,0<=Z&&0.05<G-Z&&_8(z,Z,G,"Mount");0<=s0&&0<=e0&&((Jw||0.05<t1)&&q8(z,s0,e0,t1,o1),w&&0.05<e0-s0&&_8(z,s0,e0,"Mount"))}d2(Q),L8(_),o1=B,Jw=A,Y4=D}function T9(w,z,Z,$,G,Q){G=G&&((z.subtreeFlags&10256)!==0||z.actualDuration!==0&&(z.alternate===null||z.alternate.child!==z.child));for(z=z.child;z!==null;){var _=z.sibling;uV(w,z,Z,$,G,_!==null?_.actualStartTime:Q),z=_}}function uV(w,z,Z,$,G,Q){var _=m2(),B=B8(),A=V8(),D=F8(),i=Y4;G&&(z.mode&Y1)!==w1&&0<z.actualStartTime&&(z.flags&1)!==0&&j$(z,z.actualStartTime,Q,Cw,Z);var a=z.flags;switch(z.tag){case 0:case 11:case 15:T9(w,z,Z,$,G,Q),OV(z,V2);break;case 23:break;case 22:var y=z.stateNode;z.memoizedState!==null?y._visibility&W6?T9(w,z,Z,$,G,Q):iZ(w,z,Z,$,Q):(y._visibility|=W6,T9(w,z,Z,$,G,Q)),G&&a&2048&&lK(z.alternate,z);break;case 24:T9(w,z,Z,$,G,Q),G&&a&2048&&iK(z.alternate,z);break;default:T9(w,z,Z,$,G,Q)}(z.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&q8(z,s0,e0,t1,o1),d2(_),L8(B),o1=A,Jw=D,Y4=i}function iZ(w,z,Z,$,G){if(z.subtreeFlags&10256||z.actualDuration!==0&&(z.alternate===null||z.alternate.child!==z.child))for(var Q=z.child;Q!==null;){z=Q.sibling;var _=w,B=Z,A=$,D=z!==null?z.actualStartTime:G,i=Y4;(Q.mode&Y1)!==w1&&0<Q.actualStartTime&&(Q.flags&1)!==0&&j$(Q,Q.actualStartTime,D,Cw,B);var a=Q.flags;switch(Q.tag){case 22:iZ(_,Q,B,A,D),a&2048&&lK(Q.alternate,Q);break;case 24:iZ(_,Q,B,A,D),a&2048&&iK(Q.alternate,Q);break;default:iZ(_,Q,B,A,D)}Y4=i,Q=z}}function x9(w,z,Z){if(w.subtreeFlags&yJ)for(w=w.child;w!==null;)pV(w,z,Z),w=w.sibling}function pV(w,z,Z){switch(w.tag){case 26:x9(w,z,Z),w.flags&yJ&&w.memoizedState!==null&&kv(Z,a5,w.memoizedState,w.memoizedProps);break;case 5:x9(w,z,Z);break;case 3:case 4:var $=a5;a5=_3(w.stateNode.containerInfo),x9(w,z,Z),a5=$;break;case 22:w.memoizedState===null&&($=w.alternate,$!==null&&$.memoizedState!==null?($=yJ,yJ=16777216,x9(w,z,Z),yJ=$):x9(w,z,Z));break;default:x9(w,z,Z)}}function cV(w){var z=w.alternate;if(z!==null&&(w=z.child,w!==null)){z.child=null;do z=w.sibling,w.sibling=null,w=z;while(w!==null)}}function rZ(w){var z=w.deletions;if((w.flags&16)!==0){if(z!==null)for(var Z=0;Z<z.length;Z++){var $=z[Z],G=m2();dw=$,rV($,w),($.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&_8($,s0,e0,"Unmount"),d2(G)}cV(w)}if(w.subtreeFlags&10256)for(w=w.child;w!==null;)lV(w),w=w.sibling}function lV(w){var z=m2(),Z=B8(),$=V8(),G=F8();switch(w.tag){case 0:case 11:case 15:rZ(w),w.flags&2048&&dK(w,w.return,V2|k5);break;case 3:var Q=J6();rZ(w),w.stateNode.passiveEffectDuration+=h$(Q);break;case 12:Q=J6(),rZ(w),w.stateNode.passiveEffectDuration+=CZ(Q);break;case 22:Q=w.stateNode,w.memoizedState!==null&&Q._visibility&W6&&(w.return===null||w.return.tag!==13)?(Q._visibility&=~W6,$3(w),(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&_8(w,s0,e0,"Disconnect")):rZ(w);break;default:rZ(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&q8(w,s0,e0,t1,o1),d2(z),L8(Z),Jw=G,o1=$}function $3(w){var z=w.deletions;if((w.flags&16)!==0){if(z!==null)for(var Z=0;Z<z.length;Z++){var $=z[Z],G=m2();dw=$,rV($,w),($.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&_8($,s0,e0,"Unmount"),d2(G)}cV(w)}for(w=w.child;w!==null;)iV(w),w=w.sibling}function iV(w){var z=m2(),Z=B8(),$=V8(),G=F8();switch(w.tag){case 0:case 11:case 15:dK(w,w.return,V2),$3(w);break;case 22:var Q=w.stateNode;Q._visibility&W6&&(Q._visibility&=~W6,$3(w));break;default:$3(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&q8(w,s0,e0,t1,o1),d2(z),L8(Z),Jw=G,o1=$}function rV(w,z){for(;dw!==null;){var Z=dw,$=Z,G=z,Q=m2(),_=B8(),B=V8(),A=F8();switch($.tag){case 0:case 11:case 15:dK($,G,V2);break;case 23:case 22:$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool,G!=null&&Q7(G));break;case 24:IZ($.memoizedState.cache)}if(($.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&q8($,s0,e0,t1,o1),d2(Q),L8(_),Jw=A,o1=B,$=Z.child,$!==null)$.return=Z,dw=$;else w:for(Z=w;dw!==null;){if($=dw,Q=$.sibling,_=$.return,CV($),$===Z){dw=null;break w}if(Q!==null){Q.return=_,dw=Q;break w}dw=_}}}function CE(){wP.forEach(function(w){return w()})}function aV(){var w=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return w||G0.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),w}function p2(w){if((M1&Sw)!==uw&&Q1!==0)return Q1&-Q1;var z=G0.T;return z!==null?(z._updatedFibers||(z._updatedFibers=new Set),z._updatedFibers.add(w),wU()):s()}function sV(){if(v2===0)if((Q1&536870912)===0||F1){var w=O3;O3<<=1,(O3&3932160)===0&&(O3=262144),v2=w}else v2=536870912;return w=s2.current,w!==null&&(w.flags|=32),v2}function Zw(w,z,Z){if(_z&&console.error("useInsertionEffect must not schedule updates."),b_&&(WY=!0),w===g1&&(S1===E7||S1===v7)||w.cancelPendingCommit!==null)v9(w,0),t6(w,Q1,v2,!1);if(W1(w,Z),(M1&Sw)!==uw&&w===g1){if(v8)switch(z.tag){case 0:case 11:case 15:w=K1&&d(K1)||"Unknown",Aj.has(w)||(Aj.add(w),z=d(z)||"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",z,w,w));break;case 1:jj||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),jj=!0)}}else P8&&J1(w,z,Z),pE(z),w===g1&&((M1&Sw)===uw&&(N4|=Z),e1===L4&&t6(w,Q1,v2,!1)),D8(w)}function oV(w,z,Z){if((M1&(Sw|n2))!==uw)throw Error("Should not already be working.");if(Q1!==0&&K1!==null){var $=K1,G=fw();switch(Hk){case fJ:case E7:var Q=AJ;c1&&(($=$._debugTask)?$.run(console.timeStamp.bind(console,"Suspended",Q,G,_5,void 0,"primary-light")):console.timeStamp("Suspended",Q,G,_5,void 0,"primary-light"));break;case v7:Q=AJ,c1&&(($=$._debugTask)?$.run(console.timeStamp.bind(console,"Action",Q,G,_5,void 0,"primary-light")):console.timeStamp("Action",Q,G,_5,void 0,"primary-light"));break;default:c1&&($=G-AJ,3>$||console.timeStamp("Blocked",AJ,G,_5,void 0,5>$?"primary-light":10>$?"primary":100>$?"primary-dark":"error"))}}Q=(Z=!Z&&(z&127)===0&&(z&w.expiredLanes)===0||l0(w,z))?bE(w,z):aK(w,z,!0);var _=Z;do{if(Q===k6){Kz&&!Z&&t6(w,z,0,!1),z=S1,AJ=Nw(),Hk=z;break}else{if($=fw(),G=w.current.alternate,_&&!SE(G)){g2(z),G=mw,Q=$,!c1||Q<=G||(Kw?Kw.run(console.timeStamp.bind(console,"Teared Render",G,Q,B1,q1,"error")):console.timeStamp("Teared Render",G,Q,B1,q1,"error")),H7(z,$),Q=aK(w,z,!1),_=!1;continue}if(Q===x7){if(_=z,w.errorRecoveryDisabledLanes&_)var B=0;else B=w.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){g2(z),hW(mw,$,z,Kw),H7(z,$),z=B;w:{$=w,Q=_,_=dJ;var A=$.current.memoizedState.isDehydrated;if(A&&(v9($,B).flags|=256),B=aK($,B,!1),B!==x7){if(x_&&!A){$.errorRecoveryDisabledLanes|=Q,N4|=Q,Q=L4;break w}$=F2,F2=_,$!==null&&(F2===null?F2=$:F2.push.apply(F2,$))}Q=B}if(_=!1,Q!==x7)continue;else $=fw()}}if(Q===gJ){g2(z),hW(mw,$,z,Kw),H7(z,$),v9(w,0),t6(w,z,0,!0);break}w:{switch(Z=w,Q){case k6:case gJ:throw Error("Root did not complete. This is a bug in React.");case L4:if((z&4194048)!==z)break;case zY:g2(z),oB(mw,$,z,Kw),H7(z,$),G=z,(G&127)!==0?m3=$:(G&4194048)!==0&&(d3=$),t6(Z,z,v2,!V4);break w;case x7:F2=null;break;case wY:case Qj:break;default:throw Error("Unknown root exit status.")}if(G0.actQueue!==null)sK(Z,G,z,F2,uJ,XY,v2,N4,h7,Q,null,null,mw,$);else{if((z&62914560)===z&&(_=$Y+Uj-fw(),10<_)){if(t6(Z,z,v2,!V4),x0(Z,0,!0)!==0)break w;s5=z,Z.timeoutHandle=hj(nV.bind(null,Z,G,F2,uJ,XY,z,v2,N4,h7,V4,Q,"Throttled",mw,$),_);break w}nV(Z,G,F2,uJ,XY,z,v2,N4,h7,V4,Q,null,mw,$)}}}break}while(1);D8(w)}function nV(w,z,Z,$,G,Q,_,B,A,D,i,a,y,Z0){w.timeoutHandle=b7;var M0=z.subtreeFlags,E0=null;if(M0&8192||(M0&16785408)===16785408){if(E0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:e8},pV(z,Q,E0),M0=(Q&62914560)===Q?$Y-fw():(Q&4194048)===Q?Kj-fw():0,M0=jv(E0,M0),M0!==null){s5=Q,w.cancelPendingCommit=M0(sK.bind(null,w,z,Q,Z,$,G,_,B,A,i,E0,E0.waitingForViewTransition?"Waiting for the previous Animation":0<E0.count?0<E0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":E0.imgCount===1?"Suspended on an Image":0<E0.imgCount?"Suspended on Images":null,y,Z0)),t6(w,Q,_,!D);return}}sK(w,z,Q,Z,$,G,_,B,A,i,E0,a,y,Z0)}function SE(w){for(var z=w;;){var Z=z.tag;if((Z===0||Z===11||Z===15)&&z.flags&16384&&(Z=z.updateQueue,Z!==null&&(Z=Z.stores,Z!==null)))for(var $=0;$<Z.length;$++){var G=Z[$],Q=G.getSnapshot;G=G.value;try{if(!H2(Q(),G))return!1}catch(_){return!1}}if(Z=z.child,z.subtreeFlags&16384&&Z!==null)Z.return=z,z=Z;else{if(z===w)break;for(;z.sibling===null;){if(z.return===null||z.return===w)return!0;z=z.return}z.sibling.return=z.return,z=z.sibling}}return!0}function t6(w,z,Z,$){z&=~E_,z&=~N4,w.suspendedLanes|=z,w.pingedLanes&=~z,$&&(w.warmLanes|=z),$=w.expirationTimes;for(var G=z;0<G;){var Q=31-U2(G),_=1<<Q;$[Q]=-1,G&=~_}Z!==0&&zw(w,Z,z)}function E9(){return(M1&(Sw|n2))===uw?(oZ(0,!1),!1):!0}function rK(){if(K1!==null){if(S1===E2)var w=K1.return;else w=K1,x$(),XK(w),zz=null,PJ=0,w=K1;for(;w!==null;)AV(w.alternate,w),w=w.return;K1=null}}function H7(w,z){(w&127)!==0&&(U4=z),(w&4194048)!==0&&(y8=z),(w&62914560)!==0&&(_k=z),(w&2080374784)!==0&&(qk=z)}function v9(w,z){c1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",q1,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",q1,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",q1,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",q1,"primary-light"));var Z=mw;if(mw=Nw(),Q1!==0&&0<Z){if(g2(Q1),e1===wY||e1===L4)oB(Z,mw,z,Kw);else{var $=mw,G=Kw;if(c1&&!($<=Z)){var Q=(z&738197653)===z?"tertiary-dark":"primary-dark",_=(z&536870912)===z?"Prewarm":(z&201326741)===z?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,_,Z,$,B1,q1,Q)):console.timeStamp(_,Z,$,B1,q1,Q)}}H7(Q1,mw)}if(Z=Kw,Kw=null,(z&127)!==0){Kw=NJ,G=0<=b8&&b8<U4?U4:b8,$=0<=N7&&N7<U4?U4:N7,Q=0<=$?$:0<=G?G:mw,0<=m3?(g2(2),nB(m3,Q,z,Z)):(u3&127)!==0&&(g2(2),hZ(U4,Q,B6)),Z=G;var B=$,A=kJ,D=0<t9,i=_4===FJ,a=_4===f3;if(G=mw,$=NJ,Q=Y_,_=G_,c1){if(B1="Blocking",0<Z?Z>G&&(Z=G):Z=G,0<B?B>Z&&(B=Z):B=Z,A!==null&&Z>B){var y=D?"secondary-light":"warning";$?$.run(console.timeStamp.bind(console,D?"Consecutive":"Event: "+A,B,Z,B1,q1,y)):console.timeStamp(D?"Consecutive":"Event: "+A,B,Z,B1,q1,y)}G>Z&&(B=i?"error":(z&738197653)===z?"tertiary-light":"primary-light",i=a?"Promise Resolved":i?"Cascading Update":5<G-Z?"Update Blocked":"Update",a=[],_!=null&&a.push(["Component name",_]),Q!=null&&a.push(["Method name",Q]),Z={start:Z,end:G,detail:{devtools:{properties:a,track:B1,trackGroup:q1,color:B}}},$?$.run(performance.measure.bind(performance,i,Z)):performance.measure(i,Z))}b8=-1.1,_4=0,G_=Y_=null,m3=-1.1,t9=N7,N7=-1.1,U4=Nw()}if((z&4194048)!==0&&(Kw=jJ,G=0<=H6&&H6<y8?y8:H6,Z=0<=F5&&F5<y8?y8:F5,$=0<=q4&&q4<y8?y8:q4,Q=0<=$?$:0<=Z?Z:mw,0<=d3?(g2(256),nB(d3,Q,z,Kw)):(u3&4194048)!==0&&(g2(256),hZ(y8,Q,B6)),a=$,B=k7,A=0<H4,D=Q_===f3,Q=mw,$=jJ,_=Kk,i=Uk,c1&&(B1="Transition",0<Z?Z>Q&&(Z=Q):Z=Q,0<G?G>Z&&(G=Z):G=Z,0<a?a>G&&(a=G):a=G,G>a&&B!==null&&(y=A?"secondary-light":"warning",$?$.run(console.timeStamp.bind(console,A?"Consecutive":"Event: "+B,a,G,B1,q1,y)):console.timeStamp(A?"Consecutive":"Event: "+B,a,G,B1,q1,y)),Z>G&&($?$.run(console.timeStamp.bind(console,"Action",G,Z,B1,q1,"primary-dark")):console.timeStamp("Action",G,Z,B1,q1,"primary-dark")),Q>Z&&(G=D?"Promise Resolved":5<Q-Z?"Update Blocked":"Update",a=[],i!=null&&a.push(["Component name",i]),_!=null&&a.push(["Method name",_]),Z={start:Z,end:Q,detail:{devtools:{properties:a,track:B1,trackGroup:q1,color:"primary-light"}}},$?$.run(performance.measure.bind(performance,G,Z)):performance.measure(G,Z))),F5=H6=-1.1,Q_=0,d3=-1.1,H4=q4,q4=-1.1,y8=Nw()),(z&62914560)!==0&&(u3&62914560)!==0&&(g2(4194304),hZ(_k,mw,B6)),(z&2080374784)!==0&&(u3&2080374784)!==0&&(g2(268435456),hZ(qk,mw,B6)),Z=w.timeoutHandle,Z!==b7&&(w.timeoutHandle=b7,qP(Z)),Z=w.cancelPendingCommit,Z!==null&&(w.cancelPendingCommit=null,Z()),s5=0,rK(),g1=w,K1=Z=w6(w.current,null),Q1=z,S1=E2,t2=null,V4=!1,Kz=l0(w,z),x_=!1,e1=k6,h7=v2=E_=N4=F4=0,F2=dJ=null,XY=!1,(z&8)!==0&&(z|=z&32),$=w.entangledLanes,$!==0)for(w=w.entanglements,$&=z;0<$;)G=31-U2($),Q=1<<G,z|=w[G],$&=~Q;return g8=z,A$(),w=Xk(),1000<w-Jk&&(G0.recentlyCreatedOwnerStacks=0,Jk=w),i5.discardPendingWarnings(),Z}function tV(w,z){z1=null,G0.H=bJ,G0.getCurrentStack=null,v8=!1,i2=null,z===wz||z===i3?(z=NL(),S1=fJ):z===__?(z=NL(),S1=Wj):S1=z===A_?T_:z!==null&&typeof z==="object"&&typeof z.then==="function"?mJ:ZY,t2=z;var Z=K1;Z===null?(e1=gJ,t$(w,f2(z,w.current))):Z.mode&Y1&&lW(Z)}function eV(){var w=s2.current;return w===null?!0:(Q1&4194048)===Q1?N5===null?!0:!1:(Q1&62914560)===Q1||(Q1&536870912)!==0?w===N5:!1}function wF(){var w=G0.H;return G0.H=bJ,w===null?bJ:w}function zF(){var w=G0.A;return G0.A=eh,w}function Y3(w){Kw===null&&(Kw=w._debugTask==null?null:w._debugTask)}function G3(){e1=L4,V4||(Q1&4194048)!==Q1&&s2.current!==null||(Kz=!0),(F4&134217727)===0&&(N4&134217727)===0||g1===null||t6(g1,Q1,v2,!1)}function aK(w,z,Z){var $=M1;M1|=Sw;var G=wF(),Q=zF();if(g1!==w||Q1!==z){if(P8){var _=w.memoizedUpdaters;0<_.size&&(sZ(w,Q1),_.clear()),N1(w,z)}uJ=null,v9(w,z)}z=!1,_=e1;w:do try{if(S1!==E2&&K1!==null){var B=K1,A=t2;switch(S1){case T_:rK(),_=zY;break w;case fJ:case E7:case v7:case mJ:s2.current===null&&(z=!0);var D=S1;if(S1=E2,t2=null,h9(w,B,A,D),Z&&Kz){_=k6;break w}break;default:D=S1,S1=E2,t2=null,h9(w,B,A,D)}}ZF(),_=e1;break}catch(i){tV(w,i)}while(1);return z&&w.shellSuspendCounter++,x$(),M1=$,G0.H=G,G0.A=Q,K1===null&&(g1=null,Q1=0,A$()),_}function ZF(){for(;K1!==null;)JF(K1)}function bE(w,z){var Z=M1;M1|=Sw;var $=wF(),G=zF();if(g1!==w||Q1!==z){if(P8){var Q=w.memoizedUpdaters;0<Q.size&&(sZ(w,Q1),Q.clear()),N1(w,z)}uJ=null,YY=fw()+_j,v9(w,z)}else Kz=l0(w,z);w:do try{if(S1!==E2&&K1!==null)z:switch(z=K1,Q=t2,S1){case ZY:S1=E2,t2=null,h9(w,z,Q,ZY);break;case E7:case v7:if(VL(Q)){S1=E2,t2=null,XF(z);break}z=function(){S1!==E7&&S1!==v7||g1!==w||(S1=JY),D8(w)},Q.then(z,z);break w;case fJ:S1=JY;break w;case Wj:S1=D_;break w;case JY:VL(Q)?(S1=E2,t2=null,XF(z)):(S1=E2,t2=null,h9(w,z,Q,JY));break;case D_:var _=null;switch(K1.tag){case 26:_=K1.memoizedState;case 5:case 27:var B=K1;if(_?oF(_):B.stateNode.complete){S1=E2,t2=null;var A=B.sibling;if(A!==null)K1=A;else{var D=B.return;D!==null?(K1=D,Q3(D)):K1=null}break z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}S1=E2,t2=null,h9(w,z,Q,D_);break;case mJ:S1=E2,t2=null,h9(w,z,Q,mJ);break;case T_:rK(),e1=zY;break w;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G0.actQueue!==null?ZF():yE();break}catch(i){tV(w,i)}while(1);if(x$(),G0.H=$,G0.A=G,M1=Z,K1!==null)return k6;return g1=null,Q1=0,A$(),e1}function yE(){for(;K1!==null&&!Sv();)JF(K1)}function JF(w){var z=w.alternate;(w.mode&Y1)!==w1?(cW(w),z=n(w,gK,z,w,g8),lW(w)):z=n(w,gK,z,w,g8),w.memoizedProps=w.pendingProps,z===null?Q3(w):K1=z}function XF(w){var z=n(w,RE,w);w.memoizedProps=w.pendingProps,z===null?Q3(w):K1=z}function RE(w){var z=w.alternate,Z=(w.mode&Y1)!==w1;switch(Z&&cW(w),w.tag){case 15:case 0:z=BV(z,w,w.pendingProps,w.type,void 0,Q1);break;case 11:z=BV(z,w,w.pendingProps,w.type.render,w.ref,Q1);break;case 5:XK(w);default:AV(z,w),w=K1=JL(w,g8),z=gK(z,w,g8)}return Z&&lW(w),z}function h9(w,z,Z,$){x$(),XK(z),zz=null,PJ=0;var G=z.return;try{if(jE(w,G,z,Z,Q1)){e1=gJ,t$(w,f2(Z,w.current)),K1=null;return}}catch(Q){if(G!==null)throw K1=G,Q;e1=gJ,t$(w,f2(Z,w.current)),K1=null;return}if(z.flags&32768){if(F1||$===ZY)w=!0;else if(Kz||(Q1&536870912)!==0)w=!1;else if(V4=w=!0,$===E7||$===v7||$===fJ||$===mJ)$=s2.current,$!==null&&$.tag===13&&($.flags|=16384);$F(z,w)}else Q3(z)}function Q3(w){var z=w;do{if((z.flags&32768)!==0){$F(z,V4);return}var Z=z.alternate;if(w=z.return,cW(z),Z=n(z,OE,Z,z,g8),(z.mode&Y1)!==w1&&_L(z),Z!==null){K1=Z;return}if(z=z.sibling,z!==null){K1=z;return}K1=z=w}while(z!==null);e1===k6&&(e1=Qj)}function $F(w,z){do{var Z=DE(w.alternate,w);if(Z!==null){Z.flags&=32767,K1=Z;return}if((w.mode&Y1)!==w1){_L(w),Z=w.actualDuration;for(var $=w.child;$!==null;)Z+=$.actualDuration,$=$.sibling;w.actualDuration=Z}if(Z=w.return,Z!==null&&(Z.flags|=32768,Z.subtreeFlags=0,Z.deletions=null),!z&&(w=w.sibling,w!==null)){K1=w;return}K1=w=Z}while(w!==null);e1=zY,K1=null}function sK(w,z,Z,$,G,Q,_,B,A,D,i,a,y,Z0){w.cancelPendingCommit=null;do aZ();while(Ow!==j4);if(i5.flushLegacyContextWarning(),i5.flushPendingUnsafeLifecycleWarnings(),(M1&(Sw|n2))!==uw)throw Error("Should not already be working.");if(g2(Z),D===x7?hW(y,Z0,Z,Kw):$!==null?QE(y,Z0,Z,$,z!==null&&z.alternate!==null&&z.alternate.memoizedState.isDehydrated&&(z.flags&256)!==0,Kw):GE(y,Z0,Z,Kw),z!==null){if(Z===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),z===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(Q=z.lanes|z.childLanes,Q|=z_,Qw(w,Z,Q,_,B,A),w===g1&&(K1=g1=null,Q1=0),Uz=z,A4=w,s5=Z,P_=Q,C_=G,Fj=$,I_=Z0,Nj=a,o5=GY,kj=null,z.actualDuration!==0||(z.subtreeFlags&10256)!==0||(z.flags&10256)!==0?(w.callbackNode=null,w.callbackPriority=0,uE(y9,function(){return aJ=window.event,o5===GY&&(o5=h_),KF(),null})):(w.callbackNode=null,w.callbackPriority=0),q6=null,K4=Nw(),a!==null&&WE(Z0,K4,a,Kw),$=(z.flags&13878)!==0,(z.subtreeFlags&13878)!==0||$){$=G0.T,G0.T=null,G=I1.p,I1.p=r2,_=M1,M1|=n2;try{PE(w,z,Z)}finally{M1=_,I1.p=G,G0.T=$}}Ow=Hj,YF(),GF(),QF()}}function YF(){if(Ow===Hj){Ow=j4;var w=A4,z=Uz,Z=s5,$=(z.flags&13878)!==0;if((z.subtreeFlags&13878)!==0||$){$=G0.T,G0.T=null;var G=I1.p;I1.p=r2;var Q=M1;M1|=n2;try{Qz=Z,Wz=w,P$(),RV(z,w),Wz=Qz=null,Z=c_;var _=rB(w.containerInfo),B=Z.focusedElem,A=Z.selectionRange;if(_!==B&&B&&B.ownerDocument&&iB(B.ownerDocument.documentElement,B)){if(A!==null&&xW(B)){var{start:D,end:i}=A;if(i===void 0&&(i=D),"selectionStart"in B)B.selectionStart=D,B.selectionEnd=Math.min(i,B.value.length);else{var a=B.ownerDocument||document,y=a&&a.defaultView||window;if(y.getSelection){var Z0=y.getSelection(),M0=B.textContent.length,E0=Math.min(A.start,M0),d1=A.end===void 0?E0:Math.min(A.end,M0);!Z0.extend&&E0>d1&&(_=d1,d1=E0,E0=_);var j1=lB(B,E0),b=lB(B,d1);if(j1&&b&&(Z0.rangeCount!==1||Z0.anchorNode!==j1.node||Z0.anchorOffset!==j1.offset||Z0.focusNode!==b.node||Z0.focusOffset!==b.offset)){var f=a.createRange();f.setStart(j1.node,j1.offset),Z0.removeAllRanges(),E0>d1?(Z0.addRange(f),Z0.extend(b.node,b.offset)):(f.setEnd(b.node,b.offset),Z0.addRange(f))}}}}a=[];for(Z0=B;Z0=Z0.parentNode;)Z0.nodeType===1&&a.push({element:Z0,left:Z0.scrollLeft,top:Z0.scrollTop});typeof B.focus==="function"&&B.focus();for(B=0;B<a.length;B++){var l=a[B];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}MY=!!p_,c_=p_=null}finally{M1=Q,I1.p=G,G0.T=$}}w.current=z,Ow=Bj}}function GF(){if(Ow===Bj){Ow=j4;var w=kj;if(w!==null){K4=Nw();var z=_6,Z=K4;!c1||Z<=z||(B6?B6.run(console.timeStamp.bind(console,w,z,Z,B1,q1,"secondary-light")):console.timeStamp(w,z,Z,B1,q1,"secondary-light"))}w=A4,z=Uz,Z=s5;var $=(z.flags&8772)!==0;if((z.subtreeFlags&8772)!==0||$){$=G0.T,G0.T=null;var G=I1.p;I1.p=r2;var Q=M1;M1|=n2;try{Qz=Z,Wz=w,P$(),IV(w,z.alternate,z),Wz=Qz=null}finally{M1=Q,I1.p=G,G0.T=$}}w=I_,z=Nj,_6=Nw(),w=z===null?w:K4,z=_6,Z=o5===v_,$=Kw,q6!==null?tB(w,z,q6,!1,$):!c1||z<=w||($?$.run(console.timeStamp.bind(console,Z?"Commit Interrupted View Transition":"Commit",w,z,B1,q1,Z?"error":"secondary-dark")):console.timeStamp(Z?"Commit Interrupted View Transition":"Commit",w,z,B1,q1,Z?"error":"secondary-dark")),Ow=Lj}}function QF(){if(Ow===Vj||Ow===Lj){if(Ow===Vj){var w=_6;_6=Nw();var z=_6,Z=o5===v_;!c1||z<=w||(B6?B6.run(console.timeStamp.bind(console,Z?"Interrupted View Transition":"Starting Animation",w,z,B1,q1,Z?"error":"secondary-light")):console.timeStamp(Z?"Interrupted View Transition":"Starting Animation",w,z,B1,q1,Z?" error":"secondary-light")),o5!==v_&&(o5=qj)}Ow=j4,bv(),w=A4;var $=Uz;z=s5,Z=Fj;var G=$.actualDuration!==0||($.subtreeFlags&10256)!==0||($.flags&10256)!==0;G?Ow=QY:(Ow=j4,Uz=A4=null,WF(w,w.pendingLanes),P7=0,cJ=null);var Q=w.pendingLanes;if(Q===0&&(k4=null),G||HF(w),Q=T(z),$=$.stateNode,Z2&&typeof Z2.onCommitFiberRoot==="function")try{var _=($.current.flags&128)===128;switch(Q){case r2:var B=CU;break;case c5:B=SU;break;case I8:B=y9;break;case T3:B=bU;break;default:B=y9}Z2.onCommitFiberRoot(R9,$,B,_)}catch(a){h8||(h8=!0,console.error("React instrumentation encountered an error: %o",a))}if(P8&&w.memoizedUpdaters.clear(),CE(),Z!==null){_=G0.T,B=I1.p,I1.p=r2,G0.T=null;try{var A=w.onRecoverableError;for($=0;$<Z.length;$++){var D=Z[$],i=gE(D.stack);n(D.source,A,D.value,i)}}finally{G0.T=_,I1.p=B}}(s5&3)!==0&&aZ(),D8(w),Q=w.pendingLanes,(z&261930)!==0&&(Q&42)!==0?(c3=!0,w===S_?pJ++:(pJ=0,S_=w)):pJ=0,G||H7(z,_6),oZ(0,!1)}}function gE(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 WF(w,z){(w.pooledCacheLanes&=z)===0&&(z=w.pooledCache,z!=null&&(w.pooledCache=null,IZ(z)))}function aZ(){return YF(),GF(),QF(),KF()}function KF(){if(Ow!==QY)return!1;var w=A4,z=P_;P_=0;var Z=T(s5),$=I8===0||I8>Z?I8:Z;Z=G0.T;var G=I1.p;try{I1.p=$,G0.T=null;var Q=C_;C_=null,$=A4;var _=s5;if(Ow=j4,Uz=A4=null,s5=0,(M1&(Sw|n2))!==uw)throw Error("Cannot flush passive effects while already rendering.");g2(_),b_=!0,WY=!1;var B=0;if(q6=null,B=fw(),o5===qj)hZ(_6,B,B6);else{var A=_6,D=B,i=o5===h_;!c1||D<=A||(Kw?Kw.run(console.timeStamp.bind(console,i?"Waiting for Paint":"Waiting",A,D,B1,q1,"secondary-light")):console.timeStamp(i?"Waiting for Paint":"Waiting",A,D,B1,q1,"secondary-light"))}A=M1,M1|=n2;var a=$.current;P$(),lV(a);var y=$.current;a=I_,P$(),dV($,y,_,Q,a),HF($),M1=A;var Z0=fw();if(y=B,a=Kw,q6!==null?tB(y,Z0,q6,!0,a):!c1||Z0<=y||(a?a.run(console.timeStamp.bind(console,"Remaining Effects",y,Z0,B1,q1,"secondary-dark")):console.timeStamp("Remaining Effects",y,Z0,B1,q1,"secondary-dark")),H7(_,Z0),oZ(0,!1),WY?$===cJ?P7++:(P7=0,cJ=$):P7=0,WY=b_=!1,Z2&&typeof Z2.onPostCommitFiberRoot==="function")try{Z2.onPostCommitFiberRoot(R9,$)}catch(E0){h8||(h8=!0,console.error("React instrumentation encountered an error: %o",E0))}var M0=$.current.stateNode;return M0.effectDuration=0,M0.passiveEffectDuration=0,!0}finally{I1.p=G,G0.T=Z,WF(w,z)}}function UF(w,z,Z){z=f2(Z,z),qL(z),z=xK(w.stateNode,z,2),w=a6(w,z,2),w!==null&&(W1(w,2),D8(w))}function P1(w,z,Z){if(_z=!1,w.tag===3)UF(w,w,Z);else{for(;z!==null;){if(z.tag===3){UF(z,w,Z);return}if(z.tag===1){var $=z.stateNode;if(typeof z.type.getDerivedStateFromError==="function"||typeof $.componentDidCatch==="function"&&(k4===null||!k4.has($))){w=f2(Z,w),qL(w),Z=EK(2),$=a6(z,Z,2),$!==null&&(vK(Z,$,z,w),W1($,2),D8($));return}}z=z.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.
154
+
155
+ Error message:
156
+
157
+ %s`,Z)}}function oK(w,z,Z){var $=w.pingCache;if($===null){$=w.pingCache=new zP;var G=new Set;$.set(z,G)}else G=$.get(z),G===void 0&&(G=new Set,$.set(z,G));G.has(Z)||(x_=!0,G.add(Z),$=fE.bind(null,w,z,Z),P8&&sZ(w,Z),z.then($,$))}function fE(w,z,Z){var $=w.pingCache;$!==null&&$.delete(z),w.pingedLanes|=w.suspendedLanes&Z,w.warmLanes&=~Z,(Z&127)!==0?0>b8&&(U4=b8=Nw(),NJ=g3("Promise Resolved"),_4=f3):(Z&4194048)!==0&&0>F5&&(y8=F5=Nw(),jJ=g3("Promise Resolved"),Q_=f3),aV()&&G0.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
+
159
+ When testing, code that resolves suspended data should be wrapped into act(...):
160
+
161
+ act(() => {
162
+ /* finish loading suspended data */
163
+ });
164
+ /* assert on the output */
165
+
166
+ 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`),g1===w&&(Q1&Z)===Z&&(e1===L4||e1===wY&&(Q1&62914560)===Q1&&fw()-$Y<Uj?(M1&Sw)===uw&&v9(w,0):E_|=Z,h7===Q1&&(h7=0)),D8(w)}function _F(w,z){z===0&&(z=H1()),w=z2(w,z),w!==null&&(W1(w,z),D8(w))}function mE(w){var z=w.memoizedState,Z=0;z!==null&&(Z=z.retryLane),_F(w,Z)}function dE(w,z){var Z=0;switch(w.tag){case 31:case 13:var{stateNode:$,memoizedState:G}=w;G!==null&&(Z=G.retryLane);break;case 19:$=w.stateNode;break;case 22:$=w.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}$!==null&&$.delete(z),_F(w,Z)}function nK(w,z,Z){if((z.subtreeFlags&67117056)!==0)for(z=z.child;z!==null;){var $=w,G=z,Q=G.type===k3;Q=Z||Q,G.tag!==22?G.flags&67108864?Q&&n(G,qF,$,G):nK($,G,Q):G.memoizedState===null&&(Q&&G.flags&8192?n(G,qF,$,G):G.subtreeFlags&67108864&&n(G,nK,$,G,Q)),z=z.sibling}}function qF(w,z){b0(!0);try{fV(z),iV(z),mV(w,z.alternate,z,!1),uV(w,z,0,null,!1,0)}finally{b0(!1)}}function HF(w){var z=!0;w.current.mode&(J2|l5)||(z=!1),nK(w,w.current,z)}function BF(w){if((M1&Sw)===uw){var z=w.tag;if(z===3||z===1||z===0||z===11||z===14||z===15){if(z=d(w)||"ReactComponent",KY!==null){if(KY.has(z))return;KY.add(z)}else KY=new Set([z]);n(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 sZ(w,z){P8&&w.memoizedUpdaters.forEach(function(Z){J1(w,Z,z)})}function uE(w,z){var Z=G0.actQueue;return Z!==null?(Z.push(z),XP):IU(w,z)}function pE(w){aV()&&G0.actQueue===null&&n(w,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
+
168
+ When testing, code that causes React state updates should be wrapped into act(...):
169
+
170
+ act(() => {
171
+ /* fire events that update state */
172
+ });
173
+ /* assert on the output */
174
+
175
+ 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`,d(w))})}function D8(w){w!==qz&&w.next===null&&(qz===null?UY=qz=w:qz=qz.next=w),_Y=!0,G0.actQueue!==null?R_||(R_=!0,NF()):y_||(y_=!0,NF())}function oZ(w,z){if(!g_&&_Y){g_=!0;do{var Z=!1;for(var $=UY;$!==null;){if(!z)if(w!==0){var G=$.pendingLanes;if(G===0)var Q=0;else{var{suspendedLanes:_,pingedLanes:B}=$;Q=(1<<31-U2(42|w)+1)-1,Q&=G&~(_&~B),Q=Q&201326741?Q&201326741|1:Q?Q|2:0}Q!==0&&(Z=!0,FF($,Q))}else Q=Q1,Q=x0($,$===g1?Q:0,$.cancelPendingCommit!==null||$.timeoutHandle!==b7),(Q&3)===0||l0($,Q)||(Z=!0,FF($,Q));$=$.next}}while(Z);g_=!1}}function cE(){aJ=window.event,tK()}function tK(){_Y=R_=y_=!1;var w=0;M4!==0&&nE()&&(w=M4);for(var z=fw(),Z=null,$=UY;$!==null;){var G=$.next,Q=LF($,z);if(Q===0)$.next=null,Z===null?UY=G:Z.next=G,G===null&&(qz=Z);else if(Z=$,w!==0||(Q&3)!==0)_Y=!0;$=G}Ow!==j4&&Ow!==QY||oZ(w,!1),M4!==0&&(M4=0)}function LF(w,z){for(var{suspendedLanes:Z,pingedLanes:$,expirationTimes:G}=w,Q=w.pendingLanes&-62914561;0<Q;){var _=31-U2(Q),B=1<<_,A=G[_];if(A===-1){if((B&Z)===0||(B&$)!==0)G[_]=y0(B,z)}else A<=z&&(w.expiredLanes|=B);Q&=~B}if(z=g1,Z=Q1,Z=x0(w,w===z?Z:0,w.cancelPendingCommit!==null||w.timeoutHandle!==b7),$=w.callbackNode,Z===0||w===z&&(S1===E7||S1===v7)||w.cancelPendingCommit!==null)return $!==null&&eK($),w.callbackNode=null,w.callbackPriority=0;if((Z&3)===0||l0(w,Z)){if(z=Z&-Z,z!==w.callbackPriority||G0.actQueue!==null&&$!==f_)eK($);else return z;switch(T(Z)){case r2:case c5:Z=SU;break;case I8:Z=y9;break;case T3:Z=bU;break;default:Z=y9}return $=VF.bind(null,w),G0.actQueue!==null?(G0.actQueue.push($),Z=f_):Z=IU(Z,$),w.callbackPriority=z,w.callbackNode=Z,z}return $!==null&&eK($),w.callbackPriority=2,w.callbackNode=null,2}function VF(w,z){if(c3=p3=!1,aJ=window.event,Ow!==j4&&Ow!==QY)return w.callbackNode=null,w.callbackPriority=0,null;var Z=w.callbackNode;if(o5===GY&&(o5=h_),aZ()&&w.callbackNode!==Z)return null;var $=Q1;if($=x0(w,w===g1?$:0,w.cancelPendingCommit!==null||w.timeoutHandle!==b7),$===0)return null;return oV(w,$,z),LF(w,fw()),w.callbackNode!=null&&w.callbackNode===Z?VF.bind(null,w):null}function FF(w,z){if(aZ())return null;p3=c3,c3=!1,oV(w,z,!0)}function eK(w){w!==f_&&w!==null&&Cv(w)}function NF(){G0.actQueue!==null&&G0.actQueue.push(function(){return tK(),null}),HP(function(){(M1&(Sw|n2))!==uw?IU(CU,cE):tK()})}function wU(){if(M4===0){var w=j7;w===0&&(w=M3,M3<<=1,(M3&261888)===0&&(M3=256)),M4=w}return M4}function kF(w){if(w==null||typeof w==="symbol"||typeof w==="boolean")return null;if(typeof w==="function")return w;return q0(w,"action"),xZ(""+w)}function jF(w,z){var Z=z.ownerDocument.createElement("input");return Z.name=z.name,Z.value=z.value,w.id&&Z.setAttribute("form",w.id),z.parentNode.insertBefore(Z,z),w=new FormData(w),Z.parentNode.removeChild(Z),w}function lE(w,z,Z,$,G){if(z==="submit"&&Z&&Z.stateNode===G){var Q=kF((G[_2]||null).action),_=$.submitter;_&&(z=(z=_[_2]||null)?kF(z.formAction):_.getAttribute("formAction"),z!==null&&(Q=z,_=null));var B=new P3("action","action",null,$,G);w.push({event:B,listeners:[{instance:null,listener:function(){if($.defaultPrevented){if(M4!==0){var A=_?jF(G,_):new FormData(G),D={pending:!0,data:A,method:G.method,action:Q};Object.freeze(D),kK(Z,D,null,A)}}else typeof Q==="function"&&(B.preventDefault(),A=_?jF(G,_):new FormData(G),D={pending:!0,data:A,method:G.method,action:Q},Object.freeze(D),kK(Z,D,Q,A))},currentTarget:G}]})}}function W3(w,z,Z){w.currentTarget=Z;try{z(w)}catch($){nU($)}w.currentTarget=null}function AF(w,z){z=(z&4)!==0;for(var Z=0;Z<w.length;Z++){var $=w[Z];w:{var G=void 0,Q=$.event;if($=$.listeners,z)for(var _=$.length-1;0<=_;_--){var B=$[_],A=B.instance,D=B.currentTarget;if(B=B.listener,A!==G&&Q.isPropagationStopped())break w;A!==null?n(A,W3,Q,B,D):W3(Q,B,D),G=A}else for(_=0;_<$.length;_++){if(B=$[_],A=B.instance,D=B.currentTarget,B=B.listener,A!==G&&Q.isPropagationStopped())break w;A!==null?n(A,W3,Q,B,D):W3(Q,B,D),G=A}}}}function k1(w,z){m_.has(w)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',w);var Z=z[yU];Z===void 0&&(Z=z[yU]=new Set);var $=w+"__bubble";Z.has($)||(MF(z,w,2,!1),Z.add($))}function zU(w,z,Z){m_.has(w)&&!z&&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 $=0;z&&($|=4),MF(Z,w,$,z)}function ZU(w){if(!w[qY]){w[qY]=!0,NN.forEach(function(Z){Z!=="selectionchange"&&(m_.has(Z)||zU(Z,!1,w),zU(Z,!0,w))});var z=w.nodeType===9?w:w.ownerDocument;z===null||z[qY]||(z[qY]=!0,zU("selectionchange",!1,z))}}function MF(w,z,Z,$){switch(ZN(z)){case r2:var G=Dv;break;case c5:G=Tv;break;default:G=FU}Z=G.bind(null,z,Z,w),G=void 0,!dU||z!=="touchstart"&&z!=="touchmove"&&z!=="wheel"||(G=!0),$?G!==void 0?w.addEventListener(z,Z,{capture:!0,passive:G}):w.addEventListener(z,Z,!0):G!==void 0?w.addEventListener(z,Z,{passive:G}):w.addEventListener(z,Z,!1)}function JU(w,z,Z,$,G){var Q=$;if((z&1)===0&&(z&2)===0&&$!==null)w:for(;;){if($===null)return;var _=$.tag;if(_===3||_===4){var B=$.stateNode.containerInfo;if(B===G)break;if(_===4)for(_=$.return;_!==null;){var A=_.tag;if((A===3||A===4)&&_.stateNode.containerInfo===G)return;_=_.return}for(;B!==null;){if(_=T0(B),_===null)return;if(A=_.tag,A===5||A===6||A===26||A===27){$=Q=_;continue w}B=B.parentNode}}$=$.return}SB(function(){var D=Q,i=DW(Z),a=[];w:{var y=Zk.get(w);if(y!==void 0){var Z0=P3,M0=w;switch(w){case"keypress":if(V$(Z)===0)break w;case"keydown":case"keyup":Z0=kh;break;case"focusin":M0="focus",Z0=lU;break;case"focusout":M0="blur",Z0=lU;break;case"beforeblur":case"afterblur":Z0=lU;break;case"click":if(Z.button===2)break w;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z0=uN;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z0=Qh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z0=Mh;break;case tN:case eN:case wk:Z0=Uh;break;case zk:Z0=Dh;break;case"scroll":case"scrollend":Z0=Yh;break;case"wheel":Z0=xh;break;case"copy":case"cut":case"paste":Z0=qh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z0=cN;break;case"toggle":case"beforetoggle":Z0=vh}var E0=(z&4)!==0,d1=!E0&&(w==="scroll"||w==="scrollend"),j1=E0?y!==null?y+"Capture":null:y;E0=[];for(var b=D,f;b!==null;){var l=b;if(f=l.stateNode,l=l.tag,l!==5&&l!==26&&l!==27||f===null||j1===null||(l=EZ(b,j1),l!=null&&E0.push(nZ(b,l,f))),d1)break;b=b.return}0<E0.length&&(y=new Z0(y,M0,null,Z,i),a.push({event:y,listeners:E0}))}}if((z&7)===0){w:{if(y=w==="mouseover"||w==="pointerover",Z0=w==="mouseout"||w==="pointerout",y&&Z!==QJ&&(M0=Z.relatedTarget||Z.fromElement)&&(T0(M0)||M0[X4]))break w;if(Z0||y){if(y=i.window===i?i:(y=i.ownerDocument)?y.defaultView||y.parentWindow:window,Z0){if(M0=Z.relatedTarget||Z.toElement,Z0=D,M0=M0?T0(M0):null,M0!==null&&(d1=x(M0),E0=M0.tag,M0!==d1||E0!==5&&E0!==27&&E0!==6))M0=null}else Z0=null,M0=D;if(Z0!==M0){if(E0=uN,l="onMouseLeave",j1="onMouseEnter",b="mouse",w==="pointerout"||w==="pointerover")E0=cN,l="onPointerLeave",j1="onPointerEnter",b="pointer";if(d1=Z0==null?y:u0(Z0),f=M0==null?y:u0(M0),y=new E0(l,b+"leave",Z0,Z,i),y.target=d1,y.relatedTarget=f,l=null,T0(i)===D&&(E0=new E0(j1,b+"enter",M0,Z,i),E0.target=f,E0.relatedTarget=d1,l=E0),d1=l,Z0&&M0)z:{E0=iE,j1=Z0,b=M0,f=0;for(l=j1;l;l=E0(l))f++;l=0;for(var W0=b;W0;W0=E0(W0))l++;for(;0<f-l;)j1=E0(j1),f--;for(;0<l-f;)b=E0(b),l--;for(;f--;){if(j1===b||b!==null&&j1===b.alternate){E0=j1;break z}j1=E0(j1),b=E0(b)}E0=null}else E0=null;Z0!==null&&OF(a,y,Z0,E0,!1),M0!==null&&d1!==null&&OF(a,d1,M0,E0,!0)}}}w:{if(y=D?u0(D):window,Z0=y.nodeName&&y.nodeName.toLowerCase(),Z0==="select"||Z0==="input"&&y.type==="file")var D0=dB;else if(fB(y))if(oN)D0=XE;else{D0=ZE;var Z1=zE}else Z0=y.nodeName,!Z0||Z0.toLowerCase()!=="input"||y.type!=="checkbox"&&y.type!=="radio"?D&&TZ(D.elementType)&&(D0=dB):D0=JE;if(D0&&(D0=D0(w,D))){mB(a,D0,Z,i);break w}Z1&&Z1(w,y,D),w==="focusout"&&D&&y.type==="number"&&D.memoizedProps.value!=null&&NW(y,"number",y.value)}switch(Z1=D?u0(D):window,w){case"focusin":if(fB(Z1)||Z1.contentEditable==="true")c9=Z1,rU=D,BJ=null;break;case"focusout":BJ=rU=c9=null;break;case"mousedown":aU=!0;break;case"contextmenu":case"mouseup":case"dragend":aU=!1,aB(a,Z,i);break;case"selectionchange":if(Ch)break;case"keydown":case"keyup":aB(a,Z,i)}var i0;if(iU)w:{switch(w){case"compositionstart":var m0="onCompositionStart";break w;case"compositionend":m0="onCompositionEnd";break w;case"compositionupdate":m0="onCompositionUpdate";break w}m0=void 0}else p9?RB(w,Z)&&(m0="onCompositionEnd"):w==="keydown"&&Z.keyCode===lN&&(m0="onCompositionStart");if(m0&&(iN&&Z.locale!=="ko"&&(p9||m0!=="onCompositionStart"?m0==="onCompositionEnd"&&p9&&(i0=bB()):($4=i,uU=("value"in $4)?$4.value:$4.textContent,p9=!0)),Z1=K3(D,m0),0<Z1.length&&(m0=new pN(m0,w,null,Z,i),a.push({event:m0,listeners:Z1}),i0?m0.data=i0:(i0=gB(Z),i0!==null&&(m0.data=i0)))),i0=Ph?nx(w,Z):tx(w,Z))m0=K3(D,"onBeforeInput"),0<m0.length&&(Z1=new Bh("onBeforeInput","beforeinput",null,Z,i),a.push({event:Z1,listeners:m0}),Z1.data=i0);lE(a,w,D,Z,i)}AF(a,z)})}function nZ(w,z,Z){return{instance:w,listener:z,currentTarget:Z}}function K3(w,z){for(var Z=z+"Capture",$=[];w!==null;){var G=w,Q=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||Q===null||(G=EZ(w,Z),G!=null&&$.unshift(nZ(w,G,Q)),G=EZ(w,z),G!=null&&$.push(nZ(w,G,Q))),w.tag===3)return $;w=w.return}return[]}function iE(w){if(w===null)return null;do w=w.return;while(w&&w.tag!==5&&w.tag!==27);return w?w:null}function OF(w,z,Z,$,G){for(var Q=z._reactName,_=[];Z!==null&&Z!==$;){var B=Z,A=B.alternate,D=B.stateNode;if(B=B.tag,A!==null&&A===$)break;B!==5&&B!==26&&B!==27||D===null||(A=D,G?(D=EZ(Z,Q),D!=null&&_.unshift(nZ(Z,D,A))):G||(D=EZ(Z,Q),D!=null&&_.push(nZ(Z,D,A)))),Z=Z.return}_.length!==0&&w.push({event:z,listeners:_})}function XU(w,z){rx(w,z),w!=="input"&&w!=="textarea"&&w!=="select"||z==null||z.value!==null||mN||(mN=!0,w==="select"&&z.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 Z={registrationNameDependencies:B7,possibleRegistrationNames:RU};TZ(w)||typeof z.is==="string"||sx(w,z,Z),z.contentEditable&&!z.suppressContentEditableWarning&&z.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 gw(w,z,Z,$){z!==Z&&(Z=e6(Z),e6(z)!==Z&&($[w]=z))}function rE(w,z,Z){z.forEach(function($){Z[xF($)]=$==="style"?YU(w):w.getAttribute($)})}function T8(w,z){z===!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 z)}function DF(w,z){return w=w.namespaceURI===E3||w.namespaceURI===f9?w.ownerDocument.createElementNS(w.namespaceURI,w.tagName):w.ownerDocument.createElement(w.tagName),w.innerHTML=z,w.innerHTML}function e6(w){return A1(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.",I0(w)),C0(w)),(typeof w==="string"?w:""+w).replace($P,`
176
+ `).replace(YP,"")}function TF(w,z){return z=e6(z),e6(w)===z?!0:!1}function y1(w,z,Z,$,G,Q){switch(Z){case"children":if(typeof $==="string")L$($,z,!1),z==="body"||z==="textarea"&&$===""||DZ(w,$);else if(typeof $==="number"||typeof $==="bigint")L$(""+$,z,!1),z!=="body"&&DZ(w,""+$);break;case"className":e4(w,"class",$);break;case"tabIndex":e4(w,"tabindex",$);break;case"dir":case"role":case"viewBox":case"width":case"height":e4(w,Z,$);break;case"style":PB(w,$,Q);break;case"data":if(z!=="object"){e4(w,"data",$);break}case"src":case"href":if($===""&&(z!=="a"||Z!=="href")){Z==="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.',Z,Z):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.',Z,Z),w.removeAttribute(Z);break}if($==null||typeof $==="function"||typeof $==="symbol"||typeof $==="boolean"){w.removeAttribute(Z);break}q0($,Z),$=xZ(""+$),w.setAttribute(Z,$);break;case"action":case"formAction":if($!=null&&(z==="form"?Z==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof $==="function"&&(G.encType==null&&G.method==null||LY||(LY=!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.")),G.target==null||BY||(BY=!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."))):z==="input"||z==="button"?Z==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):z!=="input"||G.type==="submit"||G.type==="image"||HY?z!=="button"||G.type==null||G.type==="submit"||HY?typeof $==="function"&&(G.name==null||Dj||(Dj=!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.')),G.formEncType==null&&G.formMethod==null||LY||(LY=!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.")),G.formTarget==null||BY||(BY=!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."))):(HY=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(HY=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):Z==="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 $==="function"){w.setAttribute(Z,"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 Q==="function"&&(Z==="formAction"?(z!=="input"&&y1(w,z,"name",G.name,G,null),y1(w,z,"formEncType",G.formEncType,G,null),y1(w,z,"formMethod",G.formMethod,G,null),y1(w,z,"formTarget",G.formTarget,G,null)):(y1(w,z,"encType",G.encType,G,null),y1(w,z,"method",G.method,G,null),y1(w,z,"target",G.target,G,null)));if($==null||typeof $==="symbol"||typeof $==="boolean"){w.removeAttribute(Z);break}q0($,Z),$=xZ(""+$),w.setAttribute(Z,$);break;case"onClick":$!=null&&(typeof $!=="function"&&T8(Z,$),w.onclick=e8);break;case"onScroll":$!=null&&(typeof $!=="function"&&T8(Z,$),k1("scroll",w));break;case"onScrollEnd":$!=null&&(typeof $!=="function"&&T8(Z,$),k1("scrollend",w));break;case"dangerouslySetInnerHTML":if($!=null){if(typeof $!=="object"||!("__html"in $))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Z=$.__html,Z!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=Z}}break;case"multiple":w.multiple=$&&typeof $!=="function"&&typeof $!=="symbol";break;case"muted":w.muted=$&&typeof $!=="function"&&typeof $!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if($==null||typeof $==="function"||typeof $==="boolean"||typeof $==="symbol"){w.removeAttribute("xlink:href");break}q0($,Z),Z=xZ(""+$),w.setAttributeNS(I7,"xlink:href",Z);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":$!=null&&typeof $!=="function"&&typeof $!=="symbol"?(q0($,Z),w.setAttribute(Z,""+$)):w.removeAttribute(Z);break;case"inert":$!==""||VY[Z]||(VY[Z]=!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.",Z));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":$&&typeof $!=="function"&&typeof $!=="symbol"?w.setAttribute(Z,""):w.removeAttribute(Z);break;case"capture":case"download":$===!0?w.setAttribute(Z,""):$!==!1&&$!=null&&typeof $!=="function"&&typeof $!=="symbol"?(q0($,Z),w.setAttribute(Z,$)):w.removeAttribute(Z);break;case"cols":case"rows":case"size":case"span":$!=null&&typeof $!=="function"&&typeof $!=="symbol"&&!isNaN($)&&1<=$?(q0($,Z),w.setAttribute(Z,$)):w.removeAttribute(Z);break;case"rowSpan":case"start":$==null||typeof $==="function"||typeof $==="symbol"||isNaN($)?w.removeAttribute(Z):(q0($,Z),w.setAttribute(Z,$));break;case"popover":k1("beforetoggle",w),k1("toggle",w),d6(w,"popover",$);break;case"xlinkActuate":f5(w,I7,"xlink:actuate",$);break;case"xlinkArcrole":f5(w,I7,"xlink:arcrole",$);break;case"xlinkRole":f5(w,I7,"xlink:role",$);break;case"xlinkShow":f5(w,I7,"xlink:show",$);break;case"xlinkTitle":f5(w,I7,"xlink:title",$);break;case"xlinkType":f5(w,I7,"xlink:type",$);break;case"xmlBase":f5(w,d_,"xml:base",$);break;case"xmlLang":f5(w,d_,"xml:lang",$);break;case"xmlSpace":f5(w,d_,"xml:space",$);break;case"is":Q!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),d6(w,"is",$);break;case"innerText":case"textContent":break;case"popoverTarget":Tj||$==null||typeof $!=="object"||(Tj=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",$));default:!(2<Z.length)||Z[0]!=="o"&&Z[0]!=="O"||Z[1]!=="n"&&Z[1]!=="N"?(Z=IB(Z),d6(w,Z,$)):B7.hasOwnProperty(Z)&&$!=null&&typeof $!=="function"&&T8(Z,$)}}function $U(w,z,Z,$,G,Q){switch(Z){case"style":PB(w,$,Q);break;case"dangerouslySetInnerHTML":if($!=null){if(typeof $!=="object"||!("__html"in $))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Z=$.__html,Z!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=Z}}break;case"children":typeof $==="string"?DZ(w,$):(typeof $==="number"||typeof $==="bigint")&&DZ(w,""+$);break;case"onScroll":$!=null&&(typeof $!=="function"&&T8(Z,$),k1("scroll",w));break;case"onScrollEnd":$!=null&&(typeof $!=="function"&&T8(Z,$),k1("scrollend",w));break;case"onClick":$!=null&&(typeof $!=="function"&&T8(Z,$),w.onclick=e8);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(B7.hasOwnProperty(Z))$!=null&&typeof $!=="function"&&T8(Z,$);else w:{if(Z[0]==="o"&&Z[1]==="n"&&(G=Z.endsWith("Capture"),z=Z.slice(2,G?Z.length-7:void 0),Q=w[_2]||null,Q=Q!=null?Q[Z]:null,typeof Q==="function"&&w.removeEventListener(z,Q,G),typeof $==="function")){typeof Q!=="function"&&Q!==null&&(Z in w?w[Z]=null:w.hasAttribute(Z)&&w.removeAttribute(Z)),w.addEventListener(z,$,G);break w}Z in w?w[Z]=$:$===!0?w.setAttribute(Z,""):d6(w,Z,$)}}}function sw(w,z,Z){switch(XU(z,Z),z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":k1("error",w),k1("load",w);var $=!1,G=!1,Q;for(Q in Z)if(Z.hasOwnProperty(Q)){var _=Z[Q];if(_!=null)switch(Q){case"src":$=!0;break;case"srcSet":G=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:y1(w,z,Q,_,Z,null)}}G&&y1(w,z,"srcSet",Z.srcSet,Z,null),$&&y1(w,z,"src",Z.src,Z,null);return;case"input":K8("input",Z),k1("invalid",w);var B=Q=_=G=null,A=null,D=null;for($ in Z)if(Z.hasOwnProperty($)){var i=Z[$];if(i!=null)switch($){case"name":G=i;break;case"type":_=i;break;case"checked":A=i;break;case"defaultChecked":D=i;break;case"value":Q=i;break;case"defaultValue":B=i;break;case"children":case"dangerouslySetInnerHTML":if(i!=null)throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y1(w,z,$,i,Z,null)}}BB(w,Z),LB(w,Q,B,A,D,_,G,!1);return;case"select":K8("select",Z),k1("invalid",w),$=_=Q=null;for(G in Z)if(Z.hasOwnProperty(G)&&(B=Z[G],B!=null))switch(G){case"value":Q=B;break;case"defaultValue":_=B;break;case"multiple":$=B;default:y1(w,z,G,B,Z,null)}NB(w,Z),z=Q,Z=_,w.multiple=!!$,z!=null?L9(w,!!$,z,!1):Z!=null&&L9(w,!!$,Z,!0);return;case"textarea":K8("textarea",Z),k1("invalid",w),Q=G=$=null;for(_ in Z)if(Z.hasOwnProperty(_)&&(B=Z[_],B!=null))switch(_){case"value":$=B;break;case"defaultValue":G=B;break;case"children":Q=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:y1(w,z,_,B,Z,null)}kB(w,Z),AB(w,$,G,Q);return;case"option":VB(w,Z);for(A in Z)if(Z.hasOwnProperty(A)&&($=Z[A],$!=null))switch(A){case"selected":w.selected=$&&typeof $!=="function"&&typeof $!=="symbol";break;default:y1(w,z,A,$,Z,null)}return;case"dialog":k1("beforetoggle",w),k1("toggle",w),k1("cancel",w),k1("close",w);break;case"iframe":case"object":k1("load",w);break;case"video":case"audio":for($=0;$<lJ.length;$++)k1(lJ[$],w);break;case"image":k1("error",w),k1("load",w);break;case"details":k1("toggle",w);break;case"embed":case"source":case"link":k1("error",w),k1("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(D in Z)if(Z.hasOwnProperty(D)&&($=Z[D],$!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:y1(w,z,D,$,Z,null)}return;default:if(TZ(z)){for(i in Z)Z.hasOwnProperty(i)&&($=Z[i],$!==void 0&&$U(w,z,i,$,Z,void 0));return}}for(B in Z)Z.hasOwnProperty(B)&&($=Z[B],$!=null&&y1(w,z,B,$,Z,null))}function aE(w,z,Z,$){switch(XU(z,$),z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var G=null,Q=null,_=null,B=null,A=null,D=null,i=null;for(Z0 in Z){var a=Z[Z0];if(Z.hasOwnProperty(Z0)&&a!=null)switch(Z0){case"checked":break;case"value":break;case"defaultValue":A=a;default:$.hasOwnProperty(Z0)||y1(w,z,Z0,null,$,a)}}for(var y in $){var Z0=$[y];if(a=Z[y],$.hasOwnProperty(y)&&(Z0!=null||a!=null))switch(y){case"type":Q=Z0;break;case"name":G=Z0;break;case"checked":D=Z0;break;case"defaultChecked":i=Z0;break;case"value":_=Z0;break;case"defaultValue":B=Z0;break;case"children":case"dangerouslySetInnerHTML":if(Z0!=null)throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Z0!==a&&y1(w,z,y,Z0,$,a)}}z=Z.type==="checkbox"||Z.type==="radio"?Z.checked!=null:Z.value!=null,$=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,z||!$||Oj||(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"),Oj=!0),!z||$||Mj||(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"),Mj=!0),FW(w,_,B,A,D,i,Q,G);return;case"select":Z0=_=B=y=null;for(Q in Z)if(A=Z[Q],Z.hasOwnProperty(Q)&&A!=null)switch(Q){case"value":break;case"multiple":Z0=A;default:$.hasOwnProperty(Q)||y1(w,z,Q,null,$,A)}for(G in $)if(Q=$[G],A=Z[G],$.hasOwnProperty(G)&&(Q!=null||A!=null))switch(G){case"value":y=Q;break;case"defaultValue":B=Q;break;case"multiple":_=Q;default:Q!==A&&y1(w,z,G,Q,$,A)}$=B,z=_,Z=Z0,y!=null?L9(w,!!z,y,!1):!!Z!==!!z&&($!=null?L9(w,!!z,$,!0):L9(w,!!z,z?[]:"",!1));return;case"textarea":Z0=y=null;for(B in Z)if(G=Z[B],Z.hasOwnProperty(B)&&G!=null&&!$.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:y1(w,z,B,null,$,G)}for(_ in $)if(G=$[_],Q=Z[_],$.hasOwnProperty(_)&&(G!=null||Q!=null))switch(_){case"value":y=G;break;case"defaultValue":Z0=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==Q&&y1(w,z,_,G,$,Q)}jB(w,y,Z0);return;case"option":for(var M0 in Z)if(y=Z[M0],Z.hasOwnProperty(M0)&&y!=null&&!$.hasOwnProperty(M0))switch(M0){case"selected":w.selected=!1;break;default:y1(w,z,M0,null,$,y)}for(A in $)if(y=$[A],Z0=Z[A],$.hasOwnProperty(A)&&y!==Z0&&(y!=null||Z0!=null))switch(A){case"selected":w.selected=y&&typeof y!=="function"&&typeof y!=="symbol";break;default:y1(w,z,A,y,$,Z0)}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 E0 in Z)y=Z[E0],Z.hasOwnProperty(E0)&&y!=null&&!$.hasOwnProperty(E0)&&y1(w,z,E0,null,$,y);for(D in $)if(y=$[D],Z0=Z[D],$.hasOwnProperty(D)&&y!==Z0&&(y!=null||Z0!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y1(w,z,D,y,$,Z0)}return;default:if(TZ(z)){for(var d1 in Z)y=Z[d1],Z.hasOwnProperty(d1)&&y!==void 0&&!$.hasOwnProperty(d1)&&$U(w,z,d1,void 0,$,y);for(i in $)y=$[i],Z0=Z[i],!$.hasOwnProperty(i)||y===Z0||y===void 0&&Z0===void 0||$U(w,z,i,y,$,Z0);return}}for(var j1 in Z)y=Z[j1],Z.hasOwnProperty(j1)&&y!=null&&!$.hasOwnProperty(j1)&&y1(w,z,j1,null,$,y);for(a in $)y=$[a],Z0=Z[a],!$.hasOwnProperty(a)||y===Z0||y==null&&Z0==null||y1(w,z,a,y,$,Z0)}function xF(w){switch(w){case"class":return"className";case"for":return"htmlFor";default:return w}}function YU(w){var z={};w=w.style;for(var Z=0;Z<w.length;Z++){var $=w[Z];z[$]=w.getPropertyValue($)}return z}function EF(w,z,Z){if(z!=null&&typeof z!=="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 $,G=$="",Q;for(Q in z)if(z.hasOwnProperty(Q)){var _=z[Q];_!=null&&typeof _!=="boolean"&&_!==""&&(Q.indexOf("--")===0?(O0(_,Q),$+=G+Q+":"+(""+_).trim()):typeof _!=="number"||_===0||gN.has(Q)?(O0(_,Q),$+=G+Q.replace(CN,"-$1").toLowerCase().replace(SN,"-ms-")+":"+(""+_).trim()):$+=G+Q.replace(CN,"-$1").toLowerCase().replace(SN,"-ms-")+":"+_+"px",G=";")}$=$||null,z=w.getAttribute("style"),z!==$&&($=e6($),e6(z)!==$&&(Z.style=YU(w)))}}function U5(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null)switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":return}else if($!=null)switch(typeof $){case"function":case"symbol":case"boolean":break;default:if(q0($,z),w===""+$)return}gw(z,w,$,Q)}function vF(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null){switch(typeof $){case"function":case"symbol":return}if(!$)return}else switch(typeof $){case"function":case"symbol":break;default:if($)return}gw(z,w,$,Q)}function GU(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null)switch(typeof $){case"undefined":case"function":case"symbol":return}else if($!=null)switch(typeof $){case"function":case"symbol":break;default:if(q0($,Z),w===""+$)return}gw(z,w,$,Q)}function hF(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null)switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN($))return}else if($!=null)switch(typeof $){case"function":case"symbol":case"boolean":break;default:if(!isNaN($)&&(q0($,z),w===""+$))return}gw(z,w,$,Q)}function QU(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null)switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":return}else if($!=null)switch(typeof $){case"function":case"symbol":case"boolean":break;default:if(q0($,z),Z=xZ(""+$),w===Z)return}gw(z,w,$,Q)}function PF(w,z,Z,$){for(var G={},Q=new Set,_=w.attributes,B=0;B<_.length;B++)switch(_[B].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:Q.add(_[B].name)}if(TZ(z)){for(var A in Z)if(Z.hasOwnProperty(A)){var D=Z[A];if(D!=null){if(B7.hasOwnProperty(A))typeof D!=="function"&&T8(A,D);else if(Z.suppressHydrationWarning!==!0)switch(A){case"children":typeof D!=="string"&&typeof D!=="number"||gw("children",w.textContent,D,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":_=w.innerHTML,D=D?D.__html:void 0,D!=null&&(D=DF(w,D),gw(A,_,D,G));continue;case"style":Q.delete(A),EF(w,D,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":Q.delete(A.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",A);continue;case"className":Q.delete("class"),_=_$(w,"class",D),gw("className",_,D,G);continue;default:$.context===j6&&z!=="svg"&&z!=="math"?Q.delete(A.toLowerCase()):Q.delete(A),_=_$(w,A,D),gw(A,_,D,G)}}}}else for(D in Z)if(Z.hasOwnProperty(D)&&(A=Z[D],A!=null)){if(B7.hasOwnProperty(D))typeof A!=="function"&&T8(D,A);else if(Z.suppressHydrationWarning!==!0)switch(D){case"children":typeof A!=="string"&&typeof A!=="number"||gw("children",w.textContent,A,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":_=w.innerHTML,A=A?A.__html:void 0,A!=null&&(A=DF(w,A),_!==A&&(G[D]={__html:_}));continue;case"className":U5(w,D,"class",A,Q,G);continue;case"tabIndex":U5(w,D,"tabindex",A,Q,G);continue;case"style":Q.delete(D),EF(w,A,G);continue;case"multiple":Q.delete(D),gw(D,w.multiple,A,G);continue;case"muted":Q.delete(D),gw(D,w.muted,A,G);continue;case"autoFocus":Q.delete("autofocus"),gw(D,w.autofocus,A,G);continue;case"data":if(z!=="object"){Q.delete(D),_=w.getAttribute("data"),gw(D,_,A,G);continue}case"src":case"href":if(!(A!==""||z==="a"&&D==="href"||z==="object"&&D==="data")){D==="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.',D,D):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.',D,D);continue}QU(w,D,D,A,Q,G);continue;case"action":case"formAction":if(_=w.getAttribute(D),typeof A==="function"){Q.delete(D.toLowerCase()),D==="formAction"?(Q.delete("name"),Q.delete("formenctype"),Q.delete("formmethod"),Q.delete("formtarget")):(Q.delete("enctype"),Q.delete("method"),Q.delete("target"));continue}else if(_===GP){Q.delete(D.toLowerCase()),gw(D,"function",A,G);continue}QU(w,D,D.toLowerCase(),A,Q,G);continue;case"xlinkHref":QU(w,D,"xlink:href",A,Q,G);continue;case"contentEditable":GU(w,D,"contenteditable",A,Q,G);continue;case"spellCheck":GU(w,D,"spellcheck",A,Q,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":GU(w,D,D,A,Q,G);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":vF(w,D,D.toLowerCase(),A,Q,G);continue;case"capture":case"download":w:{B=w;var i=_=D,a=G;if(Q.delete(i),B=B.getAttribute(i),B===null)switch(typeof A){case"undefined":case"function":case"symbol":break w;default:if(A===!1)break w}else if(A!=null)switch(typeof A){case"function":case"symbol":break;case"boolean":if(A===!0&&B==="")break w;break;default:if(q0(A,_),B===""+A)break w}gw(_,B,A,a)}continue;case"cols":case"rows":case"size":case"span":w:{if(B=w,i=_=D,a=G,Q.delete(i),B=B.getAttribute(i),B===null)switch(typeof A){case"undefined":case"function":case"symbol":case"boolean":break w;default:if(isNaN(A)||1>A)break w}else if(A!=null)switch(typeof A){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(A)||1>A)&&(q0(A,_),B===""+A))break w}gw(_,B,A,a)}continue;case"rowSpan":hF(w,D,"rowspan",A,Q,G);continue;case"start":hF(w,D,D,A,Q,G);continue;case"xHeight":U5(w,D,"x-height",A,Q,G);continue;case"xlinkActuate":U5(w,D,"xlink:actuate",A,Q,G);continue;case"xlinkArcrole":U5(w,D,"xlink:arcrole",A,Q,G);continue;case"xlinkRole":U5(w,D,"xlink:role",A,Q,G);continue;case"xlinkShow":U5(w,D,"xlink:show",A,Q,G);continue;case"xlinkTitle":U5(w,D,"xlink:title",A,Q,G);continue;case"xlinkType":U5(w,D,"xlink:type",A,Q,G);continue;case"xmlBase":U5(w,D,"xml:base",A,Q,G);continue;case"xmlLang":U5(w,D,"xml:lang",A,Q,G);continue;case"xmlSpace":U5(w,D,"xml:space",A,Q,G);continue;case"inert":A!==""||VY[D]||(VY[D]=!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.",D)),vF(w,D,D,A,Q,G);continue;default:if(!(2<D.length)||D[0]!=="o"&&D[0]!=="O"||D[1]!=="n"&&D[1]!=="N"){B=IB(D),_=!1,$.context===j6&&z!=="svg"&&z!=="math"?Q.delete(B.toLowerCase()):(i=D.toLowerCase(),i=v3.hasOwnProperty(i)?v3[i]||null:null,i!==null&&i!==D&&(_=!0,Q.delete(i)),Q.delete(B));w:if(i=w,a=B,B=A,t4(a))if(i.hasAttribute(a))i=i.getAttribute(a),q0(B,a),B=i===""+B?B:i;else{switch(typeof B){case"function":case"symbol":break w;case"boolean":if(i=a.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-")break w}B=B===void 0?void 0:null}else B=void 0;_||gw(D,B,A,G)}}}return 0<Q.size&&Z.suppressHydrationWarning!==!0&&rE(w,Q,G),Object.keys(G).length===0?null:G}function sE(w,z){switch(w.length){case 0:return"";case 1:return w[0];case 2:return w[0]+" "+z+" "+w[1];default:return w.slice(0,-1).join(", ")+", "+z+" "+w[w.length-1]}}function IF(w){switch(w){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function oE(){if(typeof performance.getEntriesByType==="function"){for(var w=0,z=0,Z=performance.getEntriesByType("resource"),$=0;$<Z.length;$++){var G=Z[$],Q=G.transferSize,_=G.initiatorType,B=G.duration;if(Q&&B&&IF(_)){_=0,B=G.responseEnd;for($+=1;$<Z.length;$++){var A=Z[$],D=A.startTime;if(D>B)break;var{transferSize:i,initiatorType:a}=A;i&&IF(a)&&(A=A.responseEnd,_+=i*(A<B?1:(B-D)/(A-D)))}if(--$,z+=8*(Q+_)/(G.duration/1000),w++,10<w)break}}if(0<w)return z/w/1e6}return navigator.connection&&(w=navigator.connection.downlink,typeof w==="number")?w:5}function U3(w){return w.nodeType===9?w:w.ownerDocument}function CF(w){switch(w){case f9:return Bz;case E3:return NY;default:return j6}}function SF(w,z){if(w===j6)switch(z){case"svg":return Bz;case"math":return NY;default:return j6}return w===Bz&&z==="foreignObject"?j6:w}function WU(w,z){return w==="textarea"||w==="noscript"||typeof z.children==="string"||typeof z.children==="number"||typeof z.children==="bigint"||typeof z.dangerouslySetInnerHTML==="object"&&z.dangerouslySetInnerHTML!==null&&z.dangerouslySetInnerHTML.__html!=null}function nE(){var w=window.event;if(w&&w.type==="popstate"){if(w===l_)return!1;return l_=w,!0}return l_=null,!1}function tZ(){var w=window.event;return w&&w!==aJ?w.type:null}function eZ(){var w=window.event;return w&&w!==aJ?w.timeStamp:-1.1}function tE(w){setTimeout(function(){throw w})}function eE(w,z,Z){switch(z){case"button":case"input":case"select":case"textarea":Z.autoFocus&&w.focus();break;case"img":Z.src?w.src=Z.src:Z.srcSet&&(w.srcset=Z.srcSet)}}function wv(){}function zv(w,z,Z,$){aE(w,z,Z,$),w[_2]=$}function bF(w){DZ(w,"")}function Zv(w,z,Z){w.nodeValue=Z}function yF(w){if(!w.__reactWarnedAboutChildrenConflict){var z=w[_2]||null;if(z!==null){var Z=a0(w);Z!==null&&(typeof z.children==="string"||typeof z.children==="number"?(w.__reactWarnedAboutChildrenConflict=!0,n(Z,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.')})):z.dangerouslySetInnerHTML!=null&&(w.__reactWarnedAboutChildrenConflict=!0,n(Z,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 w4(w){return w==="head"}function Jv(w,z){w.removeChild(z)}function Xv(w,z){(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w).removeChild(z)}function RF(w,z){var Z=z,$=0;do{var G=Z.nextSibling;if(w.removeChild(Z),G&&G.nodeType===8)if(Z=G.data,Z===rJ||Z===FY){if($===0){w.removeChild(G),C9(z);return}$--}else if(Z===iJ||Z===O4||Z===S7||Z===Hz||Z===C7)$++;else if(Z===WP)wJ(w.ownerDocument.documentElement);else if(Z===UP){Z=w.ownerDocument.head,wJ(Z);for(var Q=Z.firstChild;Q;){var{nextSibling:_,nodeName:B}=Q;Q[GJ]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&Q.rel.toLowerCase()==="stylesheet"||Z.removeChild(Q),Q=_}}else Z===KP&&wJ(w.ownerDocument.body);Z=G}while(Z);C9(z)}function gF(w,z){var Z=w;w=0;do{var $=Z.nextSibling;if(Z.nodeType===1?z?(Z._stashedDisplay=Z.style.display,Z.style.display="none"):(Z.style.display=Z._stashedDisplay||"",Z.getAttribute("style")===""&&Z.removeAttribute("style")):Z.nodeType===3&&(z?(Z._stashedText=Z.nodeValue,Z.nodeValue=""):Z.nodeValue=Z._stashedText||""),$&&$.nodeType===8)if(Z=$.data,Z===rJ)if(w===0)break;else w--;else Z!==iJ&&Z!==O4&&Z!==S7&&Z!==Hz||w++;Z=$}while(Z)}function $v(w){gF(w,!0)}function Yv(w){w=w.style,typeof w.setProperty==="function"?w.setProperty("display","none","important"):w.display="none"}function Gv(w){w.nodeValue=""}function Qv(w){gF(w,!1)}function Wv(w,z){z=z[_P],z=z!==void 0&&z!==null&&z.hasOwnProperty("display")?z.display:null,w.style.display=z==null||typeof z==="boolean"?"":(""+z).trim()}function Kv(w,z){w.nodeValue=z}function KU(w){var z=w.firstChild;z&&z.nodeType===10&&(z=z.nextSibling);for(;z;){var Z=z;switch(z=z.nextSibling,Z.nodeName){case"HTML":case"HEAD":case"BODY":KU(Z),N0(Z);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Z.rel.toLowerCase()==="stylesheet")continue}w.removeChild(Z)}}function Uv(w,z,Z,$){for(;w.nodeType===1;){var G=Z;if(w.nodeName.toLowerCase()!==z.toLowerCase()){if(!$&&(w.nodeName!=="INPUT"||w.type!=="hidden"))break}else if(!$)if(z==="input"&&w.type==="hidden"){q0(G.name,"name");var Q=G.name==null?null:""+G.name;if(G.type==="hidden"&&w.getAttribute("name")===Q)return w}else return w;else if(!w[GJ])switch(z){case"meta":if(!w.hasAttribute("itemprop"))break;return w;case"link":if(Q=w.getAttribute("rel"),Q==="stylesheet"&&w.hasAttribute("data-precedence"))break;else if(Q!==G.rel||w.getAttribute("href")!==(G.href==null||G.href===""?null:G.href)||w.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin)||w.getAttribute("title")!==(G.title==null?null:G.title))break;return w;case"style":if(w.hasAttribute("data-precedence"))break;return w;case"script":if(Q=w.getAttribute("src"),(Q!==(G.src==null?null:G.src)||w.getAttribute("type")!==(G.type==null?null:G.type)||w.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&Q&&w.hasAttribute("async")&&!w.hasAttribute("itemprop"))break;return w;default:return w}if(w=c2(w.nextSibling),w===null)break}return null}function _v(w,z,Z){if(z==="")return null;for(;w.nodeType!==3;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!Z)return null;if(w=c2(w.nextSibling),w===null)return null}return w}function fF(w,z){for(;w.nodeType!==8;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!z)return null;if(w=c2(w.nextSibling),w===null)return null}return w}function UU(w){return w.data===O4||w.data===S7}function _U(w){return w.data===Hz||w.data===O4&&w.ownerDocument.readyState!==Ej}function qv(w,z){var Z=w.ownerDocument;if(w.data===S7)w._reactRetry=z;else if(w.data!==O4||Z.readyState!==Ej)z();else{var $=function(){z(),Z.removeEventListener("DOMContentLoaded",$)};Z.addEventListener("DOMContentLoaded",$),w._reactRetry=$}}function c2(w){for(;w!=null;w=w.nextSibling){var z=w.nodeType;if(z===1||z===3)break;if(z===8){if(z=w.data,z===iJ||z===Hz||z===O4||z===S7||z===C7||z===u_||z===xj)break;if(z===rJ||z===FY)return null}}return w}function mF(w){if(w.nodeType===1){for(var z=w.nodeName.toLowerCase(),Z={},$=w.attributes,G=0;G<$.length;G++){var Q=$[G];Z[xF(Q.name)]=Q.name.toLowerCase()==="style"?YU(w):Q.value}return{type:z,props:Z}}return w.nodeType===8?w.data===C7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:w.nodeValue}function dF(w,z,Z){return Z===null||Z[QP]!==!0?(w.nodeValue===z?w=null:(z=e6(z),w=e6(w.nodeValue)===z?null:w.nodeValue),w):null}function qU(w){w=w.nextSibling;for(var z=0;w;){if(w.nodeType===8){var Z=w.data;if(Z===rJ||Z===FY){if(z===0)return c2(w.nextSibling);z--}else Z!==iJ&&Z!==Hz&&Z!==O4&&Z!==S7&&Z!==C7||z++}w=w.nextSibling}return null}function uF(w){w=w.previousSibling;for(var z=0;w;){if(w.nodeType===8){var Z=w.data;if(Z===iJ||Z===Hz||Z===O4||Z===S7||Z===C7){if(z===0)return w;z--}else Z!==rJ&&Z!==FY||z++}w=w.previousSibling}return null}function Hv(w){C9(w)}function Bv(w){C9(w)}function Lv(w){C9(w)}function pF(w,z,Z,$,G){switch(G&&OW(w,$.ancestorInfo),z=U3(Z),w){case"html":if(w=z.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=z.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=z.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 Vv(w,z,Z,$){if(!Z[X4]&&a0(Z)){var G=Z.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.",G,G,G)}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(G=Z.attributes;G.length;)Z.removeAttributeNode(G[0]);sw(Z,w,z),Z[ow]=$,Z[_2]=z}function wJ(w){for(var z=w.attributes;z.length;)w.removeAttributeNode(z[0]);N0(w)}function _3(w){return typeof w.getRootNode==="function"?w.getRootNode():w.nodeType===9?w:w.ownerDocument}function cF(w,z,Z){var $=Lz;if($&&typeof z==="string"&&z){var G=K5(z);G='link[rel="'+w+'"][href="'+G+'"]',typeof Z==="string"&&(G+='[crossorigin="'+Z+'"]'),Sj.has(G)||(Sj.add(G),w={rel:w,crossOrigin:Z,href:z},$.querySelector(G)===null&&(z=$.createElement("link"),sw(z,"link",w),d0(z),$.head.appendChild(z)))}}function lF(w,z,Z,$){var G=(G=Z4.current)?_3(G):null;if(!G)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 Z.precedence==="string"&&typeof Z.href==="string"?(Z=P9(Z.href),z=$1(G).hoistableStyles,$=z.get(Z),$||($={type:"style",instance:null,count:0,state:null},z.set(Z,$)),$):{type:"void",instance:null,count:0,state:null};case"link":if(Z.rel==="stylesheet"&&typeof Z.href==="string"&&typeof Z.precedence==="string"){w=P9(Z.href);var Q=$1(G).hoistableStyles,_=Q.get(w);if(!_&&(G=G.ownerDocument||G,_={type:"stylesheet",instance:null,count:0,state:{loading:y7,preload:null}},Q.set(w,_),(Q=G.querySelector(zJ(w)))&&!Q._p&&(_.instance=Q,_.state.loading=sJ|A5),!M5.has(w))){var B={rel:"preload",as:"style",href:Z.href,crossOrigin:Z.crossOrigin,integrity:Z.integrity,media:Z.media,hrefLang:Z.hrefLang,referrerPolicy:Z.referrerPolicy};M5.set(w,B),Q||Fv(G,w,B,_.state)}if(z&&$===null)throw Z=`
177
+
178
+ - `+q3(z)+`
179
+ + `+q3(Z),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."+Z);return _}if(z&&$!==null)throw Z=`
180
+
181
+ - `+q3(z)+`
182
+ + `+q3(Z),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."+Z);return null;case"script":return z=Z.async,Z=Z.src,typeof Z==="string"&&z&&typeof z!=="function"&&typeof z!=="symbol"?(Z=I9(Z),z=$1(G).hoistableScripts,$=z.get(Z),$||($={type:"script",instance:null,count:0,state:null},z.set(Z,$)),$):{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 q3(w){var z=0,Z="<link";return typeof w.rel==="string"?(z++,Z+=' rel="'+w.rel+'"'):p5.call(w,"rel")&&(z++,Z+=' rel="'+(w.rel===null?"null":"invalid type "+typeof w.rel)+'"'),typeof w.href==="string"?(z++,Z+=' href="'+w.href+'"'):p5.call(w,"href")&&(z++,Z+=' href="'+(w.href===null?"null":"invalid type "+typeof w.href)+'"'),typeof w.precedence==="string"?(z++,Z+=' precedence="'+w.precedence+'"'):p5.call(w,"precedence")&&(z++,Z+=" precedence={"+(w.precedence===null?"null":"invalid type "+typeof w.precedence)+"}"),Object.getOwnPropertyNames(w).length>z&&(Z+=" ..."),Z+" />"}function P9(w){return'href="'+K5(w)+'"'}function zJ(w){return'link[rel="stylesheet"]['+w+"]"}function iF(w){return _1({},w,{"data-precedence":w.precedence,precedence:null})}function Fv(w,z,Z,$){w.querySelector('link[rel="preload"][as="style"]['+z+"]")?$.loading=sJ:(z=w.createElement("link"),$.preload=z,z.addEventListener("load",function(){return $.loading|=sJ}),z.addEventListener("error",function(){return $.loading|=Ij}),sw(z,"link",Z),d0(z),w.head.appendChild(z))}function I9(w){return'[src="'+K5(w)+'"]'}function ZJ(w){return"script[async]"+w}function rF(w,z,Z){if(z.count++,z.instance===null)switch(z.type){case"style":var $=w.querySelector('style[data-href~="'+K5(Z.href)+'"]');if($)return z.instance=$,d0($),$;var G=_1({},Z,{"data-href":Z.href,"data-precedence":Z.precedence,href:null,precedence:null});return $=(w.ownerDocument||w).createElement("style"),d0($),sw($,"style",G),H3($,Z.precedence,w),z.instance=$;case"stylesheet":G=P9(Z.href);var Q=w.querySelector(zJ(G));if(Q)return z.state.loading|=A5,z.instance=Q,d0(Q),Q;$=iF(Z),(G=M5.get(G))&&HU($,G),Q=(w.ownerDocument||w).createElement("link"),d0(Q);var _=Q;return _._p=new Promise(function(B,A){_.onload=B,_.onerror=A}),sw(Q,"link",$),z.state.loading|=A5,H3(Q,Z.precedence,w),z.instance=Q;case"script":if(Q=I9(Z.src),G=w.querySelector(ZJ(Q)))return z.instance=G,d0(G),G;if($=Z,G=M5.get(Q))$=_1({},Z),BU($,G);return w=w.ownerDocument||w,G=w.createElement("script"),d0(G),sw(G,"link",$),w.head.appendChild(G),z.instance=G;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+z.type+'". this is a bug in React.')}else z.type==="stylesheet"&&(z.state.loading&A5)===y7&&($=z.instance,z.state.loading|=A5,H3($,Z.precedence,w));return z.instance}function H3(w,z,Z){for(var $=Z.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=$.length?$[$.length-1]:null,Q=G,_=0;_<$.length;_++){var B=$[_];if(B.dataset.precedence===z)Q=B;else if(Q!==G)break}Q?Q.parentNode.insertBefore(w,Q.nextSibling):(z=Z.nodeType===9?Z.head:Z,z.insertBefore(w,z.firstChild))}function HU(w,z){w.crossOrigin==null&&(w.crossOrigin=z.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=z.referrerPolicy),w.title==null&&(w.title=z.title)}function BU(w,z){w.crossOrigin==null&&(w.crossOrigin=z.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=z.referrerPolicy),w.integrity==null&&(w.integrity=z.integrity)}function aF(w,z,Z){if(kY===null){var $=new Map,G=kY=new Map;G.set(Z,$)}else G=kY,$=G.get(Z),$||($=new Map,G.set(Z,$));if($.has(w))return $;$.set(w,null),Z=Z.getElementsByTagName(w);for(G=0;G<Z.length;G++){var Q=Z[G];if(!(Q[GJ]||Q[ow]||w==="link"&&Q.getAttribute("rel")==="stylesheet")&&Q.namespaceURI!==f9){var _=Q.getAttribute(z)||"";_=w+_;var B=$.get(_);B?B.push(Q):$.set(_,[Q])}}return $}function sF(w,z,Z){w=w.ownerDocument||w,w.head.insertBefore(Z,z==="title"?w.querySelector("head > title"):null)}function Nv(w,z,Z){var $=!Z.ancestorInfo.containerTagInScope;if(Z.context===Bz||z.itemProp!=null)return!$||z.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 z.precedence!=="string"||typeof z.href!=="string"||z.href===""){$&&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 z.rel!=="string"||typeof z.href!=="string"||z.href===""||z.onLoad||z.onError){if(z.rel==="stylesheet"&&typeof z.precedence==="string"){w=z.href;var{onError:G,disabled:Q}=z;Z=[],z.onLoad&&Z.push("`onLoad`"),G&&Z.push("`onError`"),Q!=null&&Z.push("`disabled`"),G=sE(Z,"and"),G+=Z.length===1?" prop":" props",Q=Z.length===1?"an "+G:"the "+G,Z.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,Q,G)}$&&(typeof z.rel!=="string"||typeof z.href!=="string"||z.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"):(z.onError||z.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(z.rel){case"stylesheet":return w=z.precedence,z=z.disabled,typeof w!=="string"&&$&&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"&&z==null;default:return!0}case"script":if(w=z.async&&typeof z.async!=="function"&&typeof z.async!=="symbol",!w||z.onLoad||z.onError||!z.src||typeof z.src!=="string"){$&&(w?z.onLoad||z.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":$&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",w)}return!1}function oF(w){return w.type==="stylesheet"&&(w.state.loading&Cj)===y7?!1:!0}function kv(w,z,Z,$){if(Z.type==="stylesheet"&&(typeof $.media!=="string"||matchMedia($.media).matches!==!1)&&(Z.state.loading&A5)===y7){if(Z.instance===null){var G=P9($.href),Q=z.querySelector(zJ(G));if(Q){z=Q._p,z!==null&&typeof z==="object"&&typeof z.then==="function"&&(w.count++,w=B3.bind(w),z.then(w,w)),Z.state.loading|=A5,Z.instance=Q,d0(Q);return}Q=z.ownerDocument||z,$=iF($),(G=M5.get(G))&&HU($,G),Q=Q.createElement("link"),d0(Q);var _=Q;_._p=new Promise(function(B,A){_.onload=B,_.onerror=A}),sw(Q,"link",$),Z.instance=Q}w.stylesheets===null&&(w.stylesheets=new Map),w.stylesheets.set(Z,z),(z=Z.state.preload)&&(Z.state.loading&Cj)===y7&&(w.count++,Z=B3.bind(w),z.addEventListener("load",Z),z.addEventListener("error",Z))}}function jv(w,z){return w.stylesheets&&w.count===0&&L3(w,w.stylesheets),0<w.count||0<w.imgCount?function(Z){var $=setTimeout(function(){if(w.stylesheets&&L3(w,w.stylesheets),w.unsuspend){var Q=w.unsuspend;w.unsuspend=null,Q()}},BP+z);0<w.imgBytes&&r_===0&&(r_=125*oE()*VP);var G=setTimeout(function(){if(w.waitingForImages=!1,w.count===0&&(w.stylesheets&&L3(w,w.stylesheets),w.unsuspend)){var Q=w.unsuspend;w.unsuspend=null,Q()}},(w.imgBytes>r_?50:LP)+z);return w.unsuspend=Z,function(){w.unsuspend=null,clearTimeout($),clearTimeout(G)}}:null}function B3(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)L3(this,this.stylesheets);else if(this.unsuspend){var w=this.unsuspend;this.unsuspend=null,w()}}}function L3(w,z){w.stylesheets=null,w.unsuspend!==null&&(w.count++,jY=new Map,z.forEach(Av,w),jY=null,B3.call(w))}function Av(w,z){if(!(z.state.loading&A5)){var Z=jY.get(w);if(Z)var $=Z.get(a_);else{Z=new Map,jY.set(w,Z);for(var G=w.querySelectorAll("link[data-precedence],style[data-precedence]"),Q=0;Q<G.length;Q++){var _=G[Q];if(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")Z.set(_.dataset.precedence,_),$=_}$&&Z.set(a_,$)}G=z.instance,_=G.getAttribute("data-precedence"),Q=Z.get(_)||$,Q===$&&Z.set(a_,G),Z.set(_,G),this.count++,$=B3.bind(this),G.addEventListener("load",$),G.addEventListener("error",$),Q?Q.parentNode.insertBefore(G,Q.nextSibling):(w=w.nodeType===9?w.head:w,w.insertBefore(G,w.firstChild)),z.state.loading|=A5}}function Mv(w,z,Z,$,G,Q,_,B,A){this.tag=1,this.containerInfo=w,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=b7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=T1(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=T1(0),this.hiddenUpdates=T1(null),this.identifierPrefix=$,this.onUncaughtError=G,this.onCaughtError=Q,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,w=this.pendingUpdatersLaneMap=[];for(z=0;31>z;z++)w.push(new Set);this._debugRootType=Z?"hydrateRoot()":"createRoot()"}function nF(w,z,Z,$,G,Q,_,B,A,D,i,a){return w=new Mv(w,z,Z,_,A,D,i,a,B),z=uh,Q===!0&&(z|=J2|l5),z|=Y1,Q=k(3,null,null,z),w.current=Q,Q.stateNode=w,z=pW(),Q7(z),w.pooledCache=z,Q7(z),Q.memoizedState={element:$,isDehydrated:Z,cache:z},aW(Q),w}function tF(w){if(!w)return Q4;return w=Q4,w}function LU(w,z,Z,$,G,Q){if(Z2&&typeof Z2.onScheduleFiberRoot==="function")try{Z2.onScheduleFiberRoot(R9,$,Z)}catch(_){h8||(h8=!0,console.error("React instrumentation encountered an error: %o",_))}G=tF(G),$.context===null?$.context=G:$.pendingContext=G,v8&&i2!==null&&!gj&&(gj=!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.
183
+
184
+ Check the render method of %s.`,d(i2)||"Unknown")),$=r6(z),$.payload={element:Z},Q=Q===void 0?null:Q,Q!==null&&(typeof Q!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",Q),$.callback=Q),Z=a6(w,$,z),Z!==null&&(H8(z,"root.render()",null),Zw(Z,w,z),yZ(Z,w,z))}function eF(w,z){if(w=w.memoizedState,w!==null&&w.dehydrated!==null){var Z=w.retryLane;w.retryLane=Z!==0&&Z<z?Z:z}}function VU(w,z){eF(w,z),(w=w.alternate)&&eF(w,z)}function wN(w){if(w.tag===13||w.tag===31){var z=z2(w,67108864);z!==null&&Zw(z,w,67108864),VU(w,67108864)}}function zN(w){if(w.tag===13||w.tag===31){var z=p2(w);z=hw(z);var Z=z2(w,z);Z!==null&&Zw(Z,w,z),VU(w,z)}}function Ov(){return i2}function Dv(w,z,Z,$){var G=G0.T;G0.T=null;var Q=I1.p;try{I1.p=r2,FU(w,z,Z,$)}finally{I1.p=Q,G0.T=G}}function Tv(w,z,Z,$){var G=G0.T;G0.T=null;var Q=I1.p;try{I1.p=c5,FU(w,z,Z,$)}finally{I1.p=Q,G0.T=G}}function FU(w,z,Z,$){if(MY){var G=NU($);if(G===null)JU(w,z,$,OY,Z),JN(w,$);else if(xv(G,w,z,Z,$))$.stopPropagation();else if(JN(w,$),z&4&&-1<NP.indexOf(w)){for(;G!==null;){var Q=a0(G);if(Q!==null)switch(Q.tag){case 3:if(Q=Q.stateNode,Q.current.memoizedState.isDehydrated){var _=o0(Q.pendingLanes);if(_!==0){var B=Q;B.pendingLanes|=2;for(B.entangledLanes|=2;_;){var A=1<<31-U2(_);B.entanglements[1]|=A,_&=~A}D8(Q),(M1&(Sw|n2))===uw&&(YY=fw()+_j,oZ(0,!1))}}break;case 31:case 13:B=z2(Q,2),B!==null&&Zw(B,Q,2),E9(),VU(Q,2)}if(Q=NU($),Q===null&&JU(w,z,$,OY,Z),Q===G)break;G=Q}G!==null&&$.stopPropagation()}else JU(w,z,$,null,Z)}}function NU(w){return w=DW(w),kU(w)}function kU(w){if(OY=null,w=T0(w),w!==null){var z=x(w);if(z===null)w=null;else{var Z=z.tag;if(Z===13){if(w=E(z),w!==null)return w;w=null}else if(Z===31){if(w=I(z),w!==null)return w;w=null}else if(Z===3){if(z.stateNode.current.memoizedState.isDehydrated)return z.tag===3?z.stateNode.containerInfo:null;w=null}else z!==w&&(w=null)}}return OY=w,null}function ZN(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 r2;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 c5;case"message":switch(yv()){case CU:return r2;case SU:return c5;case y9:case Rv:return I8;case bU:return T3;default:return I8}default:return I8}}function JN(w,z){switch(w){case"focusin":case"focusout":D4=null;break;case"dragenter":case"dragleave":T4=null;break;case"mouseover":case"mouseout":x4=null;break;case"pointerover":case"pointerout":nJ.delete(z.pointerId);break;case"gotpointercapture":case"lostpointercapture":tJ.delete(z.pointerId)}}function JJ(w,z,Z,$,G,Q){if(w===null||w.nativeEvent!==Q)return w={blockedOn:z,domEventName:Z,eventSystemFlags:$,nativeEvent:Q,targetContainers:[G]},z!==null&&(z=a0(z),z!==null&&wN(z)),w;return w.eventSystemFlags|=$,z=w.targetContainers,G!==null&&z.indexOf(G)===-1&&z.push(G),w}function xv(w,z,Z,$,G){switch(z){case"focusin":return D4=JJ(D4,w,z,Z,$,G),!0;case"dragenter":return T4=JJ(T4,w,z,Z,$,G),!0;case"mouseover":return x4=JJ(x4,w,z,Z,$,G),!0;case"pointerover":var Q=G.pointerId;return nJ.set(Q,JJ(nJ.get(Q)||null,w,z,Z,$,G)),!0;case"gotpointercapture":return Q=G.pointerId,tJ.set(Q,JJ(tJ.get(Q)||null,w,z,Z,$,G)),!0}return!1}function XN(w){var z=T0(w.target);if(z!==null){var Z=x(z);if(Z!==null){if(z=Z.tag,z===13){if(z=E(Z),z!==null){w.blockedOn=z,K0(w.priority,function(){zN(Z)});return}}else if(z===31){if(z=I(Z),z!==null){w.blockedOn=z,K0(w.priority,function(){zN(Z)});return}}else if(z===3&&Z.stateNode.current.memoizedState.isDehydrated){w.blockedOn=Z.tag===3?Z.stateNode.containerInfo:null;return}}}w.blockedOn=null}function V3(w){if(w.blockedOn!==null)return!1;for(var z=w.targetContainers;0<z.length;){var Z=NU(w.nativeEvent);if(Z===null){Z=w.nativeEvent;var $=new Z.constructor(Z.type,Z),G=$;QJ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),QJ=G,Z.target.dispatchEvent($),QJ===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."),QJ=null}else return z=a0(Z),z!==null&&wN(z),w.blockedOn=Z,!1;z.shift()}return!0}function $N(w,z,Z){V3(w)&&Z.delete(z)}function Ev(){s_=!1,D4!==null&&V3(D4)&&(D4=null),T4!==null&&V3(T4)&&(T4=null),x4!==null&&V3(x4)&&(x4=null),nJ.forEach($N),tJ.forEach($N)}function F3(w,z){w.blockedOn===z&&(w.blockedOn=null,s_||(s_=!0,x1.unstable_scheduleCallback(x1.unstable_NormalPriority,Ev)))}function YN(w){DY!==w&&(DY=w,x1.unstable_scheduleCallback(x1.unstable_NormalPriority,function(){DY===w&&(DY=null);for(var z=0;z<w.length;z+=3){var Z=w[z],$=w[z+1],G=w[z+2];if(typeof $!=="function")if(kU($||Z)===null)continue;else break;var Q=a0(Z);Q!==null&&(w.splice(z,3),z-=3,Z={pending:!0,data:G,method:Z.method,action:$},Object.freeze(Z),kK(Q,Z,$,G))}}))}function C9(w){function z(A){return F3(A,w)}D4!==null&&F3(D4,w),T4!==null&&F3(T4,w),x4!==null&&F3(x4,w),nJ.forEach(z),tJ.forEach(z);for(var Z=0;Z<E4.length;Z++){var $=E4[Z];$.blockedOn===w&&($.blockedOn=null)}for(;0<E4.length&&(Z=E4[0],Z.blockedOn===null);)XN(Z),Z.blockedOn===null&&E4.shift();if(Z=(w.ownerDocument||w).$$reactFormReplay,Z!=null)for($=0;$<Z.length;$+=3){var G=Z[$],Q=Z[$+1],_=G[_2]||null;if(typeof Q==="function")_||YN(Z);else if(_){var B=null;if(Q&&Q.hasAttribute("formAction")){if(G=Q,_=Q[_2]||null)B=_.formAction;else if(kU(G)!==null)continue}else B=_.action;typeof B==="function"?Z[$+1]=B:(Z.splice($,3),$-=3),YN(Z)}}}function GN(){function w(Q){Q.canIntercept&&Q.info==="react-transition"&&Q.intercept({handler:function(){return new Promise(function(_){return G=_})},focusReset:"manual",scroll:"manual"})}function z(){G!==null&&(G(),G=null),$||setTimeout(Z,20)}function Z(){if(!$&&!navigation.transition){var Q=navigation.currentEntry;Q&&Q.url!=null&&navigation.navigate(Q.url,{state:Q.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var $=!1,G=null;return navigation.addEventListener("navigate",w),navigation.addEventListener("navigatesuccess",z),navigation.addEventListener("navigateerror",z),setTimeout(Z,100),function(){$=!0,navigation.removeEventListener("navigate",w),navigation.removeEventListener("navigatesuccess",z),navigation.removeEventListener("navigateerror",z),G!==null&&(G(),G=null)}}}function jU(w){this._internalRoot=w}function N3(w){this._internalRoot=w}function QN(w){w[X4]&&(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 _1=Object.assign,vv=Symbol.for("react.element"),x8=Symbol.for("react.transitional.element"),S9=Symbol.for("react.portal"),b9=Symbol.for("react.fragment"),k3=Symbol.for("react.strict_mode"),AU=Symbol.for("react.profiler"),MU=Symbol.for("react.consumer"),E8=Symbol.for("react.context"),XJ=Symbol.for("react.forward_ref"),OU=Symbol.for("react.suspense"),DU=Symbol.for("react.suspense_list"),j3=Symbol.for("react.memo"),l2=Symbol.for("react.lazy"),TU=Symbol.for("react.activity"),hv=Symbol.for("react.memo_cache_sentinel"),WN=Symbol.iterator,Pv=Symbol.for("react.client.reference"),Iw=Array.isArray,G0=Fz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I1=t_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Iv=Object.freeze({pending:!1,data:null,method:null,action:null}),xU=[],EU=[],G6=-1,z4=w0(null),$J=w0(null),Z4=w0(null),A3=w0(null),YJ=0,KN,UN,_N,qN,HN,BN,LN;P.__reactDisabledLog=!0;var vU,VN,hU=!1,PU=new(typeof WeakMap==="function"?WeakMap:Map),i2=null,v8=!1,p5=Object.prototype.hasOwnProperty,IU=x1.unstable_scheduleCallback,Cv=x1.unstable_cancelCallback,Sv=x1.unstable_shouldYield,bv=x1.unstable_requestPaint,fw=x1.unstable_now,yv=x1.unstable_getCurrentPriorityLevel,CU=x1.unstable_ImmediatePriority,SU=x1.unstable_UserBlockingPriority,y9=x1.unstable_NormalPriority,Rv=x1.unstable_LowPriority,bU=x1.unstable_IdlePriority,gv=x1.log,fv=x1.unstable_setDisableYieldValue,R9=null,Z2=null,h8=!1,P8=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",U2=Math.clz32?Math.clz32:h0,mv=Math.log,dv=Math.LN2,M3=256,O3=262144,D3=4194304,r2=2,c5=8,I8=32,T3=268435456,J4=Math.random().toString(36).slice(2),ow="__reactFiber$"+J4,_2="__reactProps$"+J4,X4="__reactContainer$"+J4,yU="__reactEvents$"+J4,uv="__reactListeners$"+J4,pv="__reactHandles$"+J4,FN="__reactResources$"+J4,GJ="__reactMarker$"+J4,NN=new Set,B7={},RU={},cv={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},lv=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]*$"),kN={},jN={},iv=/[\n"\\]/g,AN=!1,MN=!1,ON=!1,DN=!1,TN=!1,xN=!1,EN=["value","defaultValue"],vN=!1,hN=/["'&<>\n\t]|^\s|\s$/,rv="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(" "),PN="applet caption html table td th marquee object template foreignObject desc title".split(" "),av=PN.concat(["button"]),sv="dd dt li option optgroup p rp rt".split(" "),IN={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},x3={},gU={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"]},CN=/([A-Z])/g,SN=/^ms-/,ov=/^(?:webkit|moz|o)[A-Z]/,nv=/^-ms-/,tv=/-(.)/g,bN=/;\s*$/,g9={},fU={},yN=!1,RN=!1,gN=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(" ")),E3="http://www.w3.org/1998/Math/MathML",f9="http://www.w3.org/2000/svg",ev=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"]]),v3={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"},fN={"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},m9={},wh=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]*$"),zh=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]*$"),mN=!1,q2={},dN=/^on./,Zh=/^on[^A-Z]/,Jh=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]*$"),Xh=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]*$"),$h=/^[\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,QJ=null,d9=null,u9=null,mU=!1,C8=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dU=!1;if(C8)try{var WJ={};Object.defineProperty(WJ,"passive",{get:function(){dU=!0}}),window.addEventListener("test",WJ,WJ),window.removeEventListener("test",WJ,WJ)}catch(w){dU=!1}var $4=null,uU=null,h3=null,L7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(w){return w.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},P3=M2(L7),KJ=_1({},L7,{view:0,detail:0}),Yh=M2(KJ),pU,cU,UJ,I3=_1({},KJ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:TW,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!==UJ&&(UJ&&w.type==="mousemove"?(pU=w.screenX-UJ.screenX,cU=w.screenY-UJ.screenY):cU=pU=0,UJ=w),pU},movementY:function(w){return"movementY"in w?w.movementY:cU}}),uN=M2(I3),Gh=_1({},I3,{dataTransfer:0}),Qh=M2(Gh),Wh=_1({},KJ,{relatedTarget:0}),lU=M2(Wh),Kh=_1({},L7,{animationName:0,elapsedTime:0,pseudoElement:0}),Uh=M2(Kh),_h=_1({},L7,{clipboardData:function(w){return"clipboardData"in w?w.clipboardData:window.clipboardData}}),qh=M2(_h),Hh=_1({},L7,{data:0}),pN=M2(Hh),Bh=pN,Lh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vh={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"},Fh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Nh=_1({},KJ,{key:function(w){if(w.key){var z=Lh[w.key]||w.key;if(z!=="Unidentified")return z}return w.type==="keypress"?(w=V$(w),w===13?"Enter":String.fromCharCode(w)):w.type==="keydown"||w.type==="keyup"?Vh[w.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:TW,charCode:function(w){return w.type==="keypress"?V$(w):0},keyCode:function(w){return w.type==="keydown"||w.type==="keyup"?w.keyCode:0},which:function(w){return w.type==="keypress"?V$(w):w.type==="keydown"||w.type==="keyup"?w.keyCode:0}}),kh=M2(Nh),jh=_1({},I3,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cN=M2(jh),Ah=_1({},KJ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:TW}),Mh=M2(Ah),Oh=_1({},L7,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dh=M2(Oh),Th=_1({},I3,{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}),xh=M2(Th),Eh=_1({},L7,{newState:0,oldState:0}),vh=M2(Eh),hh=[9,13,27,32],lN=229,iU=C8&&"CompositionEvent"in window,_J=null;C8&&"documentMode"in document&&(_J=document.documentMode);var Ph=C8&&"TextEvent"in window&&!_J,iN=C8&&(!iU||_J&&8<_J&&11>=_J),rN=32,aN=String.fromCharCode(rN),sN=!1,p9=!1,Ih={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},qJ=null,HJ=null,oN=!1;C8&&(oN=ex("input")&&(!document.documentMode||9<document.documentMode));var H2=typeof Object.is==="function"?Object.is:$E,Ch=C8&&"documentMode"in document&&11>=document.documentMode,c9=null,rU=null,BJ=null,aU=!1,l9={animationend:z7("Animation","AnimationEnd"),animationiteration:z7("Animation","AnimationIteration"),animationstart:z7("Animation","AnimationStart"),transitionrun:z7("Transition","TransitionRun"),transitionstart:z7("Transition","TransitionStart"),transitioncancel:z7("Transition","TransitionCancel"),transitionend:z7("Transition","TransitionEnd")},sU={},nN={};C8&&(nN=document.createElement("div").style,("AnimationEvent"in window)||(delete l9.animationend.animation,delete l9.animationiteration.animation,delete l9.animationstart.animation),("TransitionEvent"in window)||delete l9.transitionend.transition);var tN=Z7("animationend"),eN=Z7("animationiteration"),wk=Z7("animationstart"),Sh=Z7("transitionrun"),bh=Z7("transitionstart"),yh=Z7("transitioncancel"),zk=Z7("transitionend"),Zk=new Map,oU="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(" ");oU.push("scrollEnd");var Jk=0;if(typeof performance==="object"&&typeof performance.now==="function")var Rh=performance,Xk=function(){return Rh.now()};else{var gh=Date;Xk=function(){return gh.now()}}var nU=typeof reportError==="function"?reportError:function(w){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var z=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(z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",w);return}console.error(w)},fh="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.",C3=0,tU=1,eU=2,w_=3,S3="– ",b3="+ ",$k="  ",c1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",_5="Components ⚛",q1="Scheduler ⚛",B1="Blocking",Y4=!1,Q6={color:"primary",properties:null,tooltipText:"",track:_5},G4={start:-0,end:-0,detail:{devtools:Q6}},mh=["Changed Props",""],Yk="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dh=["Changed Props",Yk],LJ=1,W6=2,q5=[],i9=0,z_=0,Q4={};Object.freeze(Q4);var H5=null,r9=null,w1=0,uh=1,Y1=2,J2=8,l5=16,ph=32,Gk=!1;try{var Qk=Object.preventExtensions({});}catch(w){Gk=!0}var Z_=new WeakMap,a9=[],s9=0,y3=null,VJ=0,B5=[],L5=0,V7=null,K6=1,U6="",nw=null,l1=null,F1=!1,S8=!1,a2=null,W4=null,V5=!1,J_=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."),X_=w0(null),$_=w0(null),Wk={},R3=null,o9=null,n9=!1,ch=typeof AbortController<"u"?AbortController:function(){var w=[],z=this.signal={aborted:!1,addEventListener:function(Z,$){w.push($)}};this.abort=function(){z.aborted=!0,w.forEach(function(Z){return Z()})}},lh=x1.unstable_scheduleCallback,ih=x1.unstable_NormalPriority,Fw={$$typeof:E8,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Nw=x1.unstable_now,g3=console.createTask?console.createTask:function(){return null},FJ=1,f3=2,mw=-0,K4=-0,_6=-0,q6=null,B2=-1.1,F7=-0,t1=-0,s0=-1.1,e0=-1.1,o1=null,Jw=!1,U4=-0,b8=-1.1,NJ=null,_4=0,Y_=null,G_=null,N7=-1.1,kJ=null,t9=-1.1,m3=-1.1,y8=-0,H6=-1.1,F5=-1.1,Q_=0,jJ=null,Kk=null,Uk=null,q4=-1.1,k7=null,H4=-1.1,d3=-1.1,_k=-0,qk=-0,u3=0,B6=null,Hk=0,AJ=-1.1,p3=!1,c3=!1,MJ=null,W_=0,j7=0,e9=null,Bk=G0.S;G0.S=function(w,z){if(Kj=fw(),typeof z==="object"&&z!==null&&typeof z.then==="function"){if(0>H6&&0>F5){H6=Nw();var Z=eZ(),$=tZ();if(Z!==H4||$!==k7)H4=-1.1;q4=Z,k7=$}_E(w,z)}Bk!==null&&Bk(w,z)};var A7=w0(null),i5={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},OJ=[],DJ=[],TJ=[],xJ=[],EJ=[],vJ=[],M7=new Set;i5.recordUnsafeLifecycleWarnings=function(w,z){M7.has(w.type)||(typeof z.componentWillMount==="function"&&z.componentWillMount.__suppressDeprecationWarning!==!0&&OJ.push(w),w.mode&J2&&typeof z.UNSAFE_componentWillMount==="function"&&DJ.push(w),typeof z.componentWillReceiveProps==="function"&&z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&TJ.push(w),w.mode&J2&&typeof z.UNSAFE_componentWillReceiveProps==="function"&&xJ.push(w),typeof z.componentWillUpdate==="function"&&z.componentWillUpdate.__suppressDeprecationWarning!==!0&&EJ.push(w),w.mode&J2&&typeof z.UNSAFE_componentWillUpdate==="function"&&vJ.push(w))},i5.flushPendingUnsafeLifecycleWarnings=function(){var w=new Set;0<OJ.length&&(OJ.forEach(function(B){w.add(d(B)||"Component"),M7.add(B.type)}),OJ=[]);var z=new Set;0<DJ.length&&(DJ.forEach(function(B){z.add(d(B)||"Component"),M7.add(B.type)}),DJ=[]);var Z=new Set;0<TJ.length&&(TJ.forEach(function(B){Z.add(d(B)||"Component"),M7.add(B.type)}),TJ=[]);var $=new Set;0<xJ.length&&(xJ.forEach(function(B){$.add(d(B)||"Component"),M7.add(B.type)}),xJ=[]);var G=new Set;0<EJ.length&&(EJ.forEach(function(B){G.add(d(B)||"Component"),M7.add(B.type)}),EJ=[]);var Q=new Set;if(0<vJ.length&&(vJ.forEach(function(B){Q.add(d(B)||"Component"),M7.add(B.type)}),vJ=[]),0<z.size){var _=F(z);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.
185
+
186
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
+
188
+ Please update the following components: %s`,_)}0<$.size&&(_=F($),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.
189
+
190
+ * Move data fetching code or side effects to componentDidUpdate.
191
+ * 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
192
+
193
+ Please update the following components: %s`,_)),0<Q.size&&(_=F(Q),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.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+
197
+ Please update the following components: %s`,_)),0<w.size&&(_=F(w),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
+
199
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
+ * 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.
201
+
202
+ Please update the following components: %s`,_)),0<Z.size&&(_=F(Z),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move data fetching code or side effects to componentDidUpdate.
205
+ * 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
206
+ * 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.
207
+
208
+ Please update the following components: %s`,_)),0<G.size&&(_=F(G),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
+
210
+ * Move data fetching code or side effects to componentDidUpdate.
211
+ * 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.
212
+
213
+ Please update the following components: %s`,_))};var l3=new Map,Lk=new Set;i5.recordLegacyContextWarning=function(w,z){var Z=null;for(var $=w;$!==null;)$.mode&J2&&(Z=$),$=$.return;Z===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."):!Lk.has(w.type)&&($=l3.get(Z),w.type.contextTypes!=null||w.type.childContextTypes!=null||z!==null&&typeof z.getChildContext==="function")&&($===void 0&&($=[],l3.set(Z,$)),$.push(w))},i5.flushLegacyContextWarning=function(){l3.forEach(function(w){if(w.length!==0){var z=w[0],Z=new Set;w.forEach(function(G){Z.add(d(G)||"Component"),Lk.add(G.type)});var $=F(Z);n(z,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
+
215
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
+
217
+ Please update the following components: %s
218
+
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,$)})}})},i5.discardPendingWarnings=function(){OJ=[],DJ=[],TJ=[],xJ=[],EJ=[],vJ=[],l3=new Map};var Vk={react_stack_bottom_frame:function(w,z,Z){var $=v8;v8=!0;try{return w(z,Z)}finally{v8=$}}},K_=Vk.react_stack_bottom_frame.bind(Vk),Fk={react_stack_bottom_frame:function(w){var z=v8;v8=!0;try{return w.render()}finally{v8=z}}},Nk=Fk.react_stack_bottom_frame.bind(Fk),kk={react_stack_bottom_frame:function(w,z){try{z.componentDidMount()}catch(Z){P1(w,w.return,Z)}}},U_=kk.react_stack_bottom_frame.bind(kk),jk={react_stack_bottom_frame:function(w,z,Z,$,G){try{z.componentDidUpdate(Z,$,G)}catch(Q){P1(w,w.return,Q)}}},Ak=jk.react_stack_bottom_frame.bind(jk),Mk={react_stack_bottom_frame:function(w,z){var Z=z.stack;w.componentDidCatch(z.value,{componentStack:Z!==null?Z:""})}},rh=Mk.react_stack_bottom_frame.bind(Mk),Ok={react_stack_bottom_frame:function(w,z,Z){try{Z.componentWillUnmount()}catch($){P1(w,z,$)}}},Dk=Ok.react_stack_bottom_frame.bind(Ok),Tk={react_stack_bottom_frame:function(w){var z=w.create;return w=w.inst,z=z(),w.destroy=z}},ah=Tk.react_stack_bottom_frame.bind(Tk),xk={react_stack_bottom_frame:function(w,z,Z){try{Z()}catch($){P1(w,z,$)}}},sh=xk.react_stack_bottom_frame.bind(xk),Ek={react_stack_bottom_frame:function(w){var z=w._init;return z(w._payload)}},oh=Ek.react_stack_bottom_frame.bind(Ek),wz=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`."),__=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."),i3=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."),r3={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.')}},O7=null,hJ=!1,zz=null,PJ=0,G1=null,q_,vk=q_=!1,hk={},Pk={},Ik={};N=function(w,z,Z){if(Z!==null&&typeof Z==="object"&&Z._store&&(!Z._store.validated&&Z.key==null||Z._store.validated===2)){if(typeof Z._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.");Z._store.validated=1;var $=d(w),G=$||"null";if(!hk[G]){hk[G]=!0,Z=Z._owner,w=w._debugOwner;var Q="";w&&typeof w.tag==="number"&&(G=d(w))&&(Q=`
220
+
221
+ Check the render method of \``+G+"`."),Q||$&&(Q=`
222
+
223
+ Check the top-level render call using <`+$+">.");var _="";Z!=null&&w!==Z&&($=null,typeof Z.tag==="number"?$=d(Z):typeof Z.name==="string"&&($=Z.name),$&&(_=" It was passed a child from "+$+".")),n(z,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.',Q,_)})}}};var D7=OL(!0),Ck=OL(!1),Sk=0,bk=1,yk=2,H_=3,B4=!1,Rk=!1,B_=null,L_=!1,Zz=w0(null),a3=w0(0),s2=w0(null),N5=null,Jz=1,IJ=2,qw=w0(0),s3=0,k5=1,L2=2,o2=4,V2=8,Xz,gk=new Set,fk=new Set,V_=new Set,mk=new Set,L6=0,z1=null,R1=null,kw=null,o3=!1,$z=!1,T7=!1,n3=0,CJ=0,V6=null,nh=0,th=25,$0=null,j5=null,F6=-1,SJ=!1,bJ={readContext:s1,use:n6,useCallback:Ww,useContext:Ww,useEffect:Ww,useImperativeHandle:Ww,useLayoutEffect:Ww,useInsertionEffect:Ww,useMemo:Ww,useReducer:Ww,useRef:Ww,useState:Ww,useDebugValue:Ww,useDeferredValue:Ww,useTransition:Ww,useSyncExternalStore:Ww,useId:Ww,useHostTransitionStatus:Ww,useFormState:Ww,useActionState:Ww,useOptimistic:Ww,useMemoCache:Ww,useCacheRefresh:Ww};bJ.useEffectEvent=Ww;var F_=null,dk=null,N_=null,uk=null,R8=null,r5=null,t3=null;F_={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",U1(),j9(z),LK(w,z)},useContext:function(w){return $0="useContext",U1(),s1(w)},useEffect:function(w,z){return $0="useEffect",U1(),j9(z),l$(w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",U1(),j9(Z),BK(w,z,Z)},useInsertionEffect:function(w,z){$0="useInsertionEffect",U1(),j9(z),K7(4,L2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",U1(),j9(z),HK(w,z)},useMemo:function(w,z){$0="useMemo",U1(),j9(z);var Z=G0.H;G0.H=R8;try{return VK(w,z)}finally{G0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",U1();var $=G0.H;G0.H=R8;try{return $K(w,z,Z)}finally{G0.H=$}},useRef:function(w){return $0="useRef",U1(),_K(w)},useState:function(w){$0="useState",U1();var z=G0.H;G0.H=R8;try{return WK(w)}finally{G0.H=z}},useDebugValue:function(){$0="useDebugValue",U1()},useDeferredValue:function(w,z){return $0="useDeferredValue",U1(),FK(w,z)},useTransition:function(){return $0="useTransition",U1(),jK()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",U1(),GK(w,z,Z)},useId:function(){return $0="useId",U1(),AK()},useFormState:function(w,z){return $0="useFormState",U1(),m$(),M9(w,z)},useActionState:function(w,z){return $0="useActionState",U1(),M9(w,z)},useOptimistic:function(w){return $0="useOptimistic",U1(),KK(w)},useHostTransitionStatus:U7,useMemoCache:W7,useCacheRefresh:function(){return $0="useCacheRefresh",U1(),MK()},useEffectEvent:function(w){return $0="useEffectEvent",U1(),qK(w)}},dk={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",H0(),LK(w,z)},useContext:function(w){return $0="useContext",H0(),s1(w)},useEffect:function(w,z){return $0="useEffect",H0(),l$(w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",H0(),BK(w,z,Z)},useInsertionEffect:function(w,z){$0="useInsertionEffect",H0(),K7(4,L2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",H0(),HK(w,z)},useMemo:function(w,z){$0="useMemo",H0();var Z=G0.H;G0.H=R8;try{return VK(w,z)}finally{G0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",H0();var $=G0.H;G0.H=R8;try{return $K(w,z,Z)}finally{G0.H=$}},useRef:function(w){return $0="useRef",H0(),_K(w)},useState:function(w){$0="useState",H0();var z=G0.H;G0.H=R8;try{return WK(w)}finally{G0.H=z}},useDebugValue:function(){$0="useDebugValue",H0()},useDeferredValue:function(w,z){return $0="useDeferredValue",H0(),FK(w,z)},useTransition:function(){return $0="useTransition",H0(),jK()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",H0(),GK(w,z,Z)},useId:function(){return $0="useId",H0(),AK()},useActionState:function(w,z){return $0="useActionState",H0(),M9(w,z)},useFormState:function(w,z){return $0="useFormState",H0(),m$(),M9(w,z)},useOptimistic:function(w){return $0="useOptimistic",H0(),KK(w)},useHostTransitionStatus:U7,useMemoCache:W7,useCacheRefresh:function(){return $0="useCacheRefresh",H0(),MK()},useEffectEvent:function(w){return $0="useEffectEvent",H0(),qK(w)}},N_={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",H0(),a$(w,z)},useContext:function(w){return $0="useContext",H0(),s1(w)},useEffect:function(w,z){$0="useEffect",H0(),O2(2048,V2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",H0(),r$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",H0(),O2(4,L2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",H0(),O2(4,o2,w,z)},useMemo:function(w,z){$0="useMemo",H0();var Z=G0.H;G0.H=r5;try{return s$(w,z)}finally{G0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",H0();var $=G0.H;G0.H=r5;try{return A9(w,z,Z)}finally{G0.H=$}},useRef:function(){return $0="useRef",H0(),C1().memoizedState},useState:function(){$0="useState",H0();var w=G0.H;G0.H=r5;try{return A9(d5)}finally{G0.H=w}},useDebugValue:function(){$0="useDebugValue",H0()},useDeferredValue:function(w,z){return $0="useDeferredValue",H0(),iL(w,z)},useTransition:function(){return $0="useTransition",H0(),tL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",H0(),u$(w,z,Z)},useId:function(){return $0="useId",H0(),C1().memoizedState},useFormState:function(w){return $0="useFormState",H0(),m$(),p$(w)},useActionState:function(w){return $0="useActionState",H0(),p$(w)},useOptimistic:function(w,z){return $0="useOptimistic",H0(),yL(w,z)},useHostTransitionStatus:U7,useMemoCache:W7,useCacheRefresh:function(){return $0="useCacheRefresh",H0(),C1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",H0(),i$(w)}},uk={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",H0(),a$(w,z)},useContext:function(w){return $0="useContext",H0(),s1(w)},useEffect:function(w,z){$0="useEffect",H0(),O2(2048,V2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",H0(),r$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",H0(),O2(4,L2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",H0(),O2(4,o2,w,z)},useMemo:function(w,z){$0="useMemo",H0();var Z=G0.H;G0.H=t3;try{return s$(w,z)}finally{G0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",H0();var $=G0.H;G0.H=t3;try{return mZ(w,z,Z)}finally{G0.H=$}},useRef:function(){return $0="useRef",H0(),C1().memoizedState},useState:function(){$0="useState",H0();var w=G0.H;G0.H=t3;try{return mZ(d5)}finally{G0.H=w}},useDebugValue:function(){$0="useDebugValue",H0()},useDeferredValue:function(w,z){return $0="useDeferredValue",H0(),rL(w,z)},useTransition:function(){return $0="useTransition",H0(),eL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",H0(),u$(w,z,Z)},useId:function(){return $0="useId",H0(),C1().memoizedState},useFormState:function(w){return $0="useFormState",H0(),m$(),c$(w)},useActionState:function(w){return $0="useActionState",H0(),c$(w)},useOptimistic:function(w,z){return $0="useOptimistic",H0(),gL(w,z)},useHostTransitionStatus:U7,useMemoCache:W7,useCacheRefresh:function(){return $0="useCacheRefresh",H0(),C1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",H0(),i$(w)}},R8={readContext:function(w){return L(),s1(w)},use:function(w){return q(),n6(w)},useCallback:function(w,z){return $0="useCallback",q(),U1(),LK(w,z)},useContext:function(w){return $0="useContext",q(),U1(),s1(w)},useEffect:function(w,z){return $0="useEffect",q(),U1(),l$(w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",q(),U1(),BK(w,z,Z)},useInsertionEffect:function(w,z){$0="useInsertionEffect",q(),U1(),K7(4,L2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",q(),U1(),HK(w,z)},useMemo:function(w,z){$0="useMemo",q(),U1();var Z=G0.H;G0.H=R8;try{return VK(w,z)}finally{G0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",q(),U1();var $=G0.H;G0.H=R8;try{return $K(w,z,Z)}finally{G0.H=$}},useRef:function(w){return $0="useRef",q(),U1(),_K(w)},useState:function(w){$0="useState",q(),U1();var z=G0.H;G0.H=R8;try{return WK(w)}finally{G0.H=z}},useDebugValue:function(){$0="useDebugValue",q(),U1()},useDeferredValue:function(w,z){return $0="useDeferredValue",q(),U1(),FK(w,z)},useTransition:function(){return $0="useTransition",q(),U1(),jK()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",q(),U1(),GK(w,z,Z)},useId:function(){return $0="useId",q(),U1(),AK()},useFormState:function(w,z){return $0="useFormState",q(),U1(),M9(w,z)},useActionState:function(w,z){return $0="useActionState",q(),U1(),M9(w,z)},useOptimistic:function(w){return $0="useOptimistic",q(),U1(),KK(w)},useMemoCache:function(w){return q(),W7(w)},useHostTransitionStatus:U7,useCacheRefresh:function(){return $0="useCacheRefresh",U1(),MK()},useEffectEvent:function(w){return $0="useEffectEvent",q(),U1(),qK(w)}},r5={readContext:function(w){return L(),s1(w)},use:function(w){return q(),n6(w)},useCallback:function(w,z){return $0="useCallback",q(),H0(),a$(w,z)},useContext:function(w){return $0="useContext",q(),H0(),s1(w)},useEffect:function(w,z){$0="useEffect",q(),H0(),O2(2048,V2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",q(),H0(),r$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",q(),H0(),O2(4,L2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",q(),H0(),O2(4,o2,w,z)},useMemo:function(w,z){$0="useMemo",q(),H0();var Z=G0.H;G0.H=r5;try{return s$(w,z)}finally{G0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",q(),H0();var $=G0.H;G0.H=r5;try{return A9(w,z,Z)}finally{G0.H=$}},useRef:function(){return $0="useRef",q(),H0(),C1().memoizedState},useState:function(){$0="useState",q(),H0();var w=G0.H;G0.H=r5;try{return A9(d5)}finally{G0.H=w}},useDebugValue:function(){$0="useDebugValue",q(),H0()},useDeferredValue:function(w,z){return $0="useDeferredValue",q(),H0(),iL(w,z)},useTransition:function(){return $0="useTransition",q(),H0(),tL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",q(),H0(),u$(w,z,Z)},useId:function(){return $0="useId",q(),H0(),C1().memoizedState},useFormState:function(w){return $0="useFormState",q(),H0(),p$(w)},useActionState:function(w){return $0="useActionState",q(),H0(),p$(w)},useOptimistic:function(w,z){return $0="useOptimistic",q(),H0(),yL(w,z)},useMemoCache:function(w){return q(),W7(w)},useHostTransitionStatus:U7,useCacheRefresh:function(){return $0="useCacheRefresh",H0(),C1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",q(),H0(),i$(w)}},t3={readContext:function(w){return L(),s1(w)},use:function(w){return q(),n6(w)},useCallback:function(w,z){return $0="useCallback",q(),H0(),a$(w,z)},useContext:function(w){return $0="useContext",q(),H0(),s1(w)},useEffect:function(w,z){$0="useEffect",q(),H0(),O2(2048,V2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",q(),H0(),r$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",q(),H0(),O2(4,L2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",q(),H0(),O2(4,o2,w,z)},useMemo:function(w,z){$0="useMemo",q(),H0();var Z=G0.H;G0.H=r5;try{return s$(w,z)}finally{G0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",q(),H0();var $=G0.H;G0.H=r5;try{return mZ(w,z,Z)}finally{G0.H=$}},useRef:function(){return $0="useRef",q(),H0(),C1().memoizedState},useState:function(){$0="useState",q(),H0();var w=G0.H;G0.H=r5;try{return mZ(d5)}finally{G0.H=w}},useDebugValue:function(){$0="useDebugValue",q(),H0()},useDeferredValue:function(w,z){return $0="useDeferredValue",q(),H0(),rL(w,z)},useTransition:function(){return $0="useTransition",q(),H0(),eL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",q(),H0(),u$(w,z,Z)},useId:function(){return $0="useId",q(),H0(),C1().memoizedState},useFormState:function(w){return $0="useFormState",q(),H0(),c$(w)},useActionState:function(w){return $0="useActionState",q(),H0(),c$(w)},useOptimistic:function(w,z){return $0="useOptimistic",q(),H0(),gL(w,z)},useMemoCache:function(w){return q(),W7(w)},useHostTransitionStatus:U7,useCacheRefresh:function(){return $0="useCacheRefresh",H0(),C1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",q(),H0(),i$(w)}};var pk={},ck=new Set,lk=new Set,ik=new Set,rk=new Set,ak=new Set,sk=new Set,ok=new Set,nk=new Set,tk=new Set,ek=new Set;Object.freeze(pk);var k_={enqueueSetState:function(w,z,Z){w=w._reactInternals;var $=p2(w),G=r6($);G.payload=z,Z!==void 0&&Z!==null&&(DK(Z),G.callback=Z),z=a6(w,G,$),z!==null&&(H8($,"this.setState()",w),Zw(z,w,$),yZ(z,w,$))},enqueueReplaceState:function(w,z,Z){w=w._reactInternals;var $=p2(w),G=r6($);G.tag=bk,G.payload=z,Z!==void 0&&Z!==null&&(DK(Z),G.callback=Z),z=a6(w,G,$),z!==null&&(H8($,"this.replaceState()",w),Zw(z,w,$),yZ(z,w,$))},enqueueForceUpdate:function(w,z){w=w._reactInternals;var Z=p2(w),$=r6(Z);$.tag=yk,z!==void 0&&z!==null&&(DK(z),$.callback=z),z=a6(w,$,Z),z!==null&&(H8(Z,"this.forceUpdate()",w),Zw(z,w,Z),yZ(z,w,Z))}},Yz=null,j_=null,A_=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."),jw=!1,wj={},zj={},Zj={},Jj={},Gz=!1,Xj={},e3={},M_={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},$j=!1,Yj=null;Yj=new Set;var N6=!1,Aw=!1,O_=!1,Gj=typeof WeakSet==="function"?WeakSet:Set,dw=null,Qz=null,Wz=null,Mw=null,x2=!1,a5=null,Cw=!1,yJ=8192,eh={getCacheForType:function(w){var z=s1(Fw),Z=z.data.get(w);return Z===void 0&&(Z=w(),z.data.set(w,Z)),Z},cacheSignal:function(){return s1(Fw).controller.signal},getOwner:function(){return i2}};if(typeof Symbol==="function"&&Symbol.for){var RJ=Symbol.for;RJ("selector.component"),RJ("selector.has_pseudo_class"),RJ("selector.role"),RJ("selector.test_id"),RJ("selector.text")}var wP=[],zP=typeof WeakMap==="function"?WeakMap:Map,uw=0,Sw=2,n2=4,k6=0,gJ=1,x7=2,wY=3,L4=4,zY=6,Qj=5,M1=uw,g1=null,K1=null,Q1=0,E2=0,ZY=1,E7=2,fJ=3,Wj=4,D_=5,mJ=6,JY=7,T_=8,v7=9,S1=E2,t2=null,V4=!1,Kz=!1,x_=!1,g8=0,e1=k6,F4=0,N4=0,E_=0,v2=0,h7=0,dJ=null,F2=null,XY=!1,$Y=0,Kj=0,Uj=300,YY=1/0,_j=500,uJ=null,Kw=null,k4=null,GY=0,v_=1,h_=2,qj=3,j4=0,Hj=1,Bj=2,Lj=3,Vj=4,QY=5,Ow=0,A4=null,Uz=null,s5=0,P_=0,I_=-0,C_=null,Fj=null,Nj=null,o5=GY,kj=null,ZP=50,pJ=0,S_=null,b_=!1,WY=!1,JP=50,P7=0,cJ=null,_z=!1,KY=null,jj=!1,Aj=new Set,XP={},UY=null,qz=null,y_=!1,R_=!1,_Y=!1,g_=!1,M4=0,f_={};(function(){for(var w=0;w<oU.length;w++){var z=oU[w],Z=z.toLowerCase();z=z[0].toUpperCase()+z.slice(1),m5(Z,"on"+z)}m5(tN,"onAnimationEnd"),m5(eN,"onAnimationIteration"),m5(wk,"onAnimationStart"),m5("dblclick","onDoubleClick"),m5("focusin","onFocus"),m5("focusout","onBlur"),m5(Sh,"onTransitionRun"),m5(bh,"onTransitionStart"),m5(yh,"onTransitionCancel"),m5(zk,"onTransitionEnd")})(),W2("onMouseEnter",["mouseout","mouseover"]),W2("onMouseLeave",["mouseout","mouseover"]),W2("onPointerEnter",["pointerout","pointerover"]),W2("onPointerLeave",["pointerout","pointerover"]),Pw("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pw("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pw("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pw("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pw("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pw("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lJ="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(" "),m_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lJ)),qY="_reactListening"+Math.random().toString(36).slice(2),Mj=!1,Oj=!1,HY=!1,Dj=!1,BY=!1,LY=!1,Tj=!1,VY={},$P=/\r\n?/g,YP=/\u0000|\uFFFD/g,I7="http://www.w3.org/1999/xlink",d_="http://www.w3.org/XML/1998/namespace",GP="javascript:throw new Error('React form unexpectedly submitted.')",QP="suppressHydrationWarning",C7="&",FY="/&",iJ="$",rJ="/$",O4="$?",S7="$~",Hz="$!",WP="html",KP="body",UP="head",u_="F!",xj="F",Ej="loading",_P="style",j6=0,Bz=1,NY=2,p_=null,c_=null,vj={dialog:!0,webview:!0},l_=null,aJ=void 0,hj=typeof setTimeout==="function"?setTimeout:void 0,qP=typeof clearTimeout==="function"?clearTimeout:void 0,b7=-1,Pj=typeof Promise==="function"?Promise:void 0,HP=typeof queueMicrotask==="function"?queueMicrotask:typeof Pj<"u"?function(w){return Pj.resolve(null).then(w).catch(tE)}:hj,i_=null,y7=0,sJ=1,Ij=2,Cj=3,A5=4,M5=new Map,Sj=new Set,A6=I1.d;I1.d={f:function(){var w=A6.f(),z=E9();return w||z},r:function(w){var z=a0(w);z!==null&&z.tag===5&&z.type==="form"?nL(z):A6.r(w)},D:function(w){A6.D(w),cF("dns-prefetch",w,null)},C:function(w,z){A6.C(w,z),cF("preconnect",w,z)},L:function(w,z,Z){A6.L(w,z,Z);var $=Lz;if($&&w&&z){var G='link[rel="preload"][as="'+K5(z)+'"]';z==="image"?Z&&Z.imageSrcSet?(G+='[imagesrcset="'+K5(Z.imageSrcSet)+'"]',typeof Z.imageSizes==="string"&&(G+='[imagesizes="'+K5(Z.imageSizes)+'"]')):G+='[href="'+K5(w)+'"]':G+='[href="'+K5(w)+'"]';var Q=G;switch(z){case"style":Q=P9(w);break;case"script":Q=I9(w)}M5.has(Q)||(w=_1({rel:"preload",href:z==="image"&&Z&&Z.imageSrcSet?void 0:w,as:z},Z),M5.set(Q,w),$.querySelector(G)!==null||z==="style"&&$.querySelector(zJ(Q))||z==="script"&&$.querySelector(ZJ(Q))||(z=$.createElement("link"),sw(z,"link",w),d0(z),$.head.appendChild(z)))}},m:function(w,z){A6.m(w,z);var Z=Lz;if(Z&&w){var $=z&&typeof z.as==="string"?z.as:"script",G='link[rel="modulepreload"][as="'+K5($)+'"][href="'+K5(w)+'"]',Q=G;switch($){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":Q=I9(w)}if(!M5.has(Q)&&(w=_1({rel:"modulepreload",href:w},z),M5.set(Q,w),Z.querySelector(G)===null)){switch($){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Z.querySelector(ZJ(Q)))return}$=Z.createElement("link"),sw($,"link",w),d0($),Z.head.appendChild($)}}},X:function(w,z){A6.X(w,z);var Z=Lz;if(Z&&w){var $=$1(Z).hoistableScripts,G=I9(w),Q=$.get(G);Q||(Q=Z.querySelector(ZJ(G)),Q||(w=_1({src:w,async:!0},z),(z=M5.get(G))&&BU(w,z),Q=Z.createElement("script"),d0(Q),sw(Q,"link",w),Z.head.appendChild(Q)),Q={type:"script",instance:Q,count:1,state:null},$.set(G,Q))}},S:function(w,z,Z){A6.S(w,z,Z);var $=Lz;if($&&w){var G=$1($).hoistableStyles,Q=P9(w);z=z||"default";var _=G.get(Q);if(!_){var B={loading:y7,preload:null};if(_=$.querySelector(zJ(Q)))B.loading=sJ|A5;else{w=_1({rel:"stylesheet",href:w,"data-precedence":z},Z),(Z=M5.get(Q))&&HU(w,Z);var A=_=$.createElement("link");d0(A),sw(A,"link",w),A._p=new Promise(function(D,i){A.onload=D,A.onerror=i}),A.addEventListener("load",function(){B.loading|=sJ}),A.addEventListener("error",function(){B.loading|=Ij}),B.loading|=A5,H3(_,z,$)}_={type:"stylesheet",instance:_,count:1,state:B},G.set(Q,_)}}},M:function(w,z){A6.M(w,z);var Z=Lz;if(Z&&w){var $=$1(Z).hoistableScripts,G=I9(w),Q=$.get(G);Q||(Q=Z.querySelector(ZJ(G)),Q||(w=_1({src:w,async:!0,type:"module"},z),(z=M5.get(G))&&BU(w,z),Q=Z.createElement("script"),d0(Q),sw(Q,"link",w),Z.head.appendChild(Q)),Q={type:"script",instance:Q,count:1,state:null},$.set(G,Q))}}};var Lz=typeof document>"u"?null:document,kY=null,BP=60000,LP=800,VP=500,r_=0,a_=null,jY=null,R7=Iv,oJ={$$typeof:E8,Provider:null,Consumer:null,_currentValue:R7,_currentValue2:R7,_threadCount:0},bj="%c%s%c",yj="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",Rj="",AY=" ",FP=Function.prototype.bind,gj=!1,fj=null,mj=null,dj=null,uj=null,pj=null,cj=null,lj=null,ij=null,rj=null,aj=null;fj=function(w,z,Z,$){z=J(w,z),z!==null&&(Z=X(z.memoizedState,Z,0,$),z.memoizedState=Z,z.baseState=Z,w.memoizedProps=_1({},w.memoizedProps),Z=z2(w,2),Z!==null&&Zw(Z,w,2))},mj=function(w,z,Z){z=J(w,z),z!==null&&(Z=K(z.memoizedState,Z,0),z.memoizedState=Z,z.baseState=Z,w.memoizedProps=_1({},w.memoizedProps),Z=z2(w,2),Z!==null&&Zw(Z,w,2))},dj=function(w,z,Z,$){z=J(w,z),z!==null&&(Z=Y(z.memoizedState,Z,$),z.memoizedState=Z,z.baseState=Z,w.memoizedProps=_1({},w.memoizedProps),Z=z2(w,2),Z!==null&&Zw(Z,w,2))},uj=function(w,z,Z){w.pendingProps=X(w.memoizedProps,z,0,Z),w.alternate&&(w.alternate.pendingProps=w.pendingProps),z=z2(w,2),z!==null&&Zw(z,w,2)},pj=function(w,z){w.pendingProps=K(w.memoizedProps,z,0),w.alternate&&(w.alternate.pendingProps=w.pendingProps),z=z2(w,2),z!==null&&Zw(z,w,2)},cj=function(w,z,Z){w.pendingProps=Y(w.memoizedProps,z,Z),w.alternate&&(w.alternate.pendingProps=w.pendingProps),z=z2(w,2),z!==null&&Zw(z,w,2)},lj=function(w){var z=z2(w,2);z!==null&&Zw(z,w,2)},ij=function(w){var z=H1(),Z=z2(w,z);Z!==null&&Zw(Z,w,z)},rj=function(w){H=w},aj=function(w){U=w};var MY=!0,OY=null,s_=!1,D4=null,T4=null,x4=null,nJ=new Map,tJ=new Map,E4=[],NP="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(" "),DY=null;if(N3.prototype.render=jU.prototype.render=function(w){var z=this._internalRoot;if(z===null)throw Error("Cannot update an unmounted root.");var Z=arguments;typeof Z[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()."):v(Z[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 Z[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),Z=w;var $=z.current,G=p2($);LU($,G,Z,z,null,null)},N3.prototype.unmount=jU.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 z=w.containerInfo;(M1&(Sw|n2))!==uw&&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."),LU(w.current,2,null,w,null,null),E9(),z[X4]=null}},N3.prototype.unstable_scheduleHydration=function(w){if(w){var z=s();w={blockedOn:null,target:w,priority:z};for(var Z=0;Z<E4.length&&z!==0&&z<E4[Z].priority;Z++);E4.splice(Z,0,w),Z===0&&XN(w)}},function(){var w=Fz.version;if(w!=="19.2.3")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
+ - react: `+(w+`
225
+ - react-dom: 19.2.3
226
+ 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"),I1.findDOMNode=function(w){var z=w._reactInternals;if(z===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=h(z),w=w!==null?m(w):null,w=w===null?null:w.stateNode,w},!function(){var w={bundleType:1,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:G0,reconcilerVersion:"19.2.3"};return w.overrideHookState=fj,w.overrideHookStateDeletePath=mj,w.overrideHookStateRenamePath=dj,w.overrideProps=uj,w.overridePropsDeletePath=pj,w.overridePropsRenamePath=cj,w.scheduleUpdate=lj,w.scheduleRetry=ij,w.setErrorHandler=rj,w.setSuspenseHandler=aj,w.scheduleRefresh=O,w.scheduleRoot=j,w.setRefreshHandler=M,w.getCurrentFiber=Ov,c0(w)}()&&C8&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var sj=window.location.protocol;/^(https?|file):$/.test(sj)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(sj==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}vP.createRoot=function(w,z){if(!v(w))throw Error("Target container is not a DOM element.");QN(w);var Z=!1,$="",G=$V,Q=YV,_=GV;return z!==null&&z!==void 0&&(z.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof z==="object"&&z!==null&&z.$$typeof===x8&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
+
229
+ let root = createRoot(domContainer);
230
+ root.render(<App />);`),z.unstable_strictMode===!0&&(Z=!0),z.identifierPrefix!==void 0&&($=z.identifierPrefix),z.onUncaughtError!==void 0&&(G=z.onUncaughtError),z.onCaughtError!==void 0&&(Q=z.onCaughtError),z.onRecoverableError!==void 0&&(_=z.onRecoverableError)),z=nF(w,1,!1,null,null,Z,$,null,G,Q,_,GN),w[X4]=z.current,ZU(w),new jU(z)},vP.hydrateRoot=function(w,z,Z){if(!v(w))throw Error("Target container is not a DOM element.");QN(w),z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var $=!1,G="",Q=$V,_=YV,B=GV,A=null;return Z!==null&&Z!==void 0&&(Z.unstable_strictMode===!0&&($=!0),Z.identifierPrefix!==void 0&&(G=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(Q=Z.onUncaughtError),Z.onCaughtError!==void 0&&(_=Z.onCaughtError),Z.onRecoverableError!==void 0&&(B=Z.onRecoverableError),Z.formState!==void 0&&(A=Z.formState)),z=nF(w,1,!0,z,Z!=null?Z:null,$,G,A,Q,_,B,GN),z.context=tF(null),Z=z.current,$=p2(Z),$=hw($),G=r6($),G.callback=null,a6(Z,G,$),H8($,"hydrateRoot()",null),Z=$,z.current.lanes=Z,W1(z,Z),D8(z),w[X4]=z.current,ZU(w),new N3(z)},vP.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var zA=f8((mg,wA)=>{var hP=p(ej());wA.exports=hP});var E1=f8((uP)=>{var u7=p(Y0());(function(){function J(P){if(P==null)return null;if(typeof P==="function")return P.$$typeof===d?null:P.displayName||P.name||null;if(typeof P==="string")return P;switch(P){case M:return"Fragment";case x:return"Profiler";case v:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList";case c:return"Activity"}if(typeof P==="object")switch(typeof P.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case O:return"Portal";case I:return P.displayName||"Context";case E:return(P._context.displayName||"Context")+".Consumer";case C:var z0=P.render;return P=P.displayName,P||(P=z0.displayName||z0.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case R:return z0=P.displayName||null,z0!==null?z0:J(P.type)||"Memo";case S:z0=P._payload,P=P._init;try{return J(P(z0))}catch(U0){}}return null}function X(P){return""+P}function Y(P){try{X(P);var z0=!1}catch(L0){z0=!0}if(z0){z0=console;var U0=z0.error,J0=typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return U0.call(z0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",J0),X(P)}}function W(P){if(P===M)return"<>";if(typeof P==="object"&&P!==null&&P.$$typeof===S)return"<...>";try{var z0=J(P);return z0?"<"+z0+">":"<...>"}catch(U0){return"<...>"}}function K(){var P=w0.A;return P===null?null:P.getOwner()}function U(){return Error("react-stack-top-frame")}function H(P){if(t.call(P,"key")){var z0=Object.getOwnPropertyDescriptor(P,"key").get;if(z0&&z0.isReactWarning)return!1}return P.key!==void 0}function q(P,z0){function U0(){r||(r=!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))}U0.isReactWarning=!0,Object.defineProperty(P,"key",{get:U0,configurable:!0})}function L(){var P=J(this.type);return e[P]||(e[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function V(P,z0,U0,J0,L0,S0){var V0=U0.ref;return P={$$typeof:j,type:P,key:z0,props:U0,_owner:J0},(V0!==void 0?V0:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:L}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:L0}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S0}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function N(P,z0,U0,J0,L0,S0){var V0=z0.children;if(V0!==void 0)if(J0)if(u(V0)){for(J0=0;J0<V0.length;J0++)F(V0[J0]);Object.freeze&&Object.freeze(V0)}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 F(V0);if(t.call(z0,"key")){V0=J(P);var _0=Object.keys(z0).filter(function(r0){return r0!=="key"});J0=0<_0.length?"{key: someKey, "+_0.join(": ..., ")+": ...}":"{key: someKey}",X0[V0+J0]||(_0=0<_0.length?"{"+_0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
+ let props = %s;
232
+ <%s {...props} />
233
+ React keys must be passed directly to JSX without using spread:
234
+ let props = %s;
235
+ <%s key={someKey} {...props} />`,J0,V0,_0,V0),X0[V0+J0]=!0)}if(V0=null,U0!==void 0&&(Y(U0),V0=""+U0),H(z0)&&(Y(z0.key),V0=""+z0.key),"key"in z0){U0={};for(var A0 in z0)A0!=="key"&&(U0[A0]=z0[A0])}else U0=z0;return V0&&q(U0,typeof P==="function"?P.displayName||P.name||"Unknown":P),V(P,V0,U0,K(),L0,S0)}function F(P){k(P)?P._store&&(P._store.validated=1):typeof P==="object"&&P!==null&&P.$$typeof===S&&(P._payload.status==="fulfilled"?k(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function k(P){return typeof P==="object"&&P!==null&&P.$$typeof===j}var j=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),I=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),c=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),w0=u7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,u=Array.isArray,Q0=console.createTask?console.createTask:function(){return null};u7={react_stack_bottom_frame:function(P){return P()}};var r,e={},o=u7.react_stack_bottom_frame.bind(u7,U)(),g=Q0(W(U)),X0={};uP.Fragment=M,uP.jsx=function(P,z0,U0){var J0=1e4>w0.recentlyCreatedOwnerStacks++;return N(P,z0,U0,!1,J0?Error("react-stack-top-frame"):o,J0?Q0(W(P)):g)},uP.jsxs=function(P,z0,U0){var J0=1e4>w0.recentlyCreatedOwnerStacks++;return N(P,z0,U0,!0,J0?Error("react-stack-top-frame"):o,J0?Q0(W(P)):g)}})()});var WH=f8((SS)=>{var $5=p(Y0());(function(){function J(k,j){return k===j&&(k!==0||1/k===1/j)||k!==k&&j!==j}function X(k,j){V||$5.startTransition===void 0||(V=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var O=j();if(!N){var M=j();K(O,M)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),N=!0)}M=U({inst:{value:O,getSnapshot:j}});var v=M[0].inst,x=M[1];return q(function(){v.value=O,v.getSnapshot=j,Y(v)&&x({inst:v})},[k,O,j]),H(function(){return Y(v)&&x({inst:v}),k(function(){Y(v)&&x({inst:v})})},[k]),L(O),O}function Y(k){var j=k.getSnapshot;k=k.value;try{var O=j();return!K(k,O)}catch(M){return!0}}function W(k,j){return j()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var K=typeof Object.is==="function"?Object.is:J,U=$5.useState,H=$5.useEffect,q=$5.useLayoutEffect,L=$5.useDebugValue,V=!1,N=!1,F=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?W:X;SS.useSyncExternalStore=$5.useSyncExternalStore!==void 0?$5.useSyncExternalStore:F,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var dO=f8((bS)=>{var v6=p(Y0());(function(){function J(L,V){return L===V&&(L!==0||1/L===1/V)||L!==L&&V!==V}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var X=WH(),Y=typeof Object.is==="function"?Object.is:J,W=X.useSyncExternalStore,K=v6.useRef,U=v6.useEffect,H=v6.useMemo,q=v6.useDebugValue;bS.useSyncExternalStoreWithSelector=function(L,V,N,F,k){var j=K(null);if(j.current===null){var O={hasValue:!1,value:null};j.current=O}else O=j.current;j=H(function(){function v(h){if(!x){if(x=!0,E=h,h=F(h),k!==void 0&&O.hasValue){var m=O.value;if(k(m,h))return I=m}return I=h}if(m=I,Y(E,h))return m;var R=F(h);if(k!==void 0&&k(m,R))return E=h,m;return E=h,I=R}var x=!1,E,I,C=N===void 0?null:N;return[function(){return v(V())},C===null?void 0:function(){return v(C())}]},[V,N,F,k]);var M=W(L,j[0],j[1]);return U(function(){O.hasValue=!0,O.value=M},[M]),q(M),M},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var h1=f8((dy)=>{var _9=p(Y0());(function(){function J(P){if(P==null)return null;if(typeof P==="function")return P.$$typeof===d?null:P.displayName||P.name||null;if(typeof P==="string")return P;switch(P){case M:return"Fragment";case x:return"Profiler";case v:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList";case c:return"Activity"}if(typeof P==="object")switch(typeof P.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case O:return"Portal";case I:return P.displayName||"Context";case E:return(P._context.displayName||"Context")+".Consumer";case C:var z0=P.render;return P=P.displayName,P||(P=z0.displayName||z0.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case R:return z0=P.displayName||null,z0!==null?z0:J(P.type)||"Memo";case S:z0=P._payload,P=P._init;try{return J(P(z0))}catch(U0){}}return null}function X(P){return""+P}function Y(P){try{X(P);var z0=!1}catch(L0){z0=!0}if(z0){z0=console;var U0=z0.error,J0=typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return U0.call(z0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",J0),X(P)}}function W(P){if(P===M)return"<>";if(typeof P==="object"&&P!==null&&P.$$typeof===S)return"<...>";try{var z0=J(P);return z0?"<"+z0+">":"<...>"}catch(U0){return"<...>"}}function K(){var P=w0.A;return P===null?null:P.getOwner()}function U(){return Error("react-stack-top-frame")}function H(P){if(t.call(P,"key")){var z0=Object.getOwnPropertyDescriptor(P,"key").get;if(z0&&z0.isReactWarning)return!1}return P.key!==void 0}function q(P,z0){function U0(){r||(r=!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))}U0.isReactWarning=!0,Object.defineProperty(P,"key",{get:U0,configurable:!0})}function L(){var P=J(this.type);return e[P]||(e[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function V(P,z0,U0,J0,L0,S0){var V0=U0.ref;return P={$$typeof:j,type:P,key:z0,props:U0,_owner:J0},(V0!==void 0?V0:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:L}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:L0}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S0}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function N(P,z0,U0,J0,L0,S0){var V0=z0.children;if(V0!==void 0)if(J0)if(u(V0)){for(J0=0;J0<V0.length;J0++)F(V0[J0]);Object.freeze&&Object.freeze(V0)}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 F(V0);if(t.call(z0,"key")){V0=J(P);var _0=Object.keys(z0).filter(function(r0){return r0!=="key"});J0=0<_0.length?"{key: someKey, "+_0.join(": ..., ")+": ...}":"{key: someKey}",X0[V0+J0]||(_0=0<_0.length?"{"+_0.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} />`,J0,V0,_0,V0),X0[V0+J0]=!0)}if(V0=null,U0!==void 0&&(Y(U0),V0=""+U0),H(z0)&&(Y(z0.key),V0=""+z0.key),"key"in z0){U0={};for(var A0 in z0)A0!=="key"&&(U0[A0]=z0[A0])}else U0=z0;return V0&&q(U0,typeof P==="function"?P.displayName||P.name||"Unknown":P),V(P,V0,U0,K(),L0,S0)}function F(P){k(P)?P._store&&(P._store.validated=1):typeof P==="object"&&P!==null&&P.$$typeof===S&&(P._payload.status==="fulfilled"?k(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function k(P){return typeof P==="object"&&P!==null&&P.$$typeof===j}var j=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),I=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),c=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),w0=_9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,u=Array.isArray,Q0=console.createTask?console.createTask:function(){return null};_9={react_stack_bottom_frame:function(P){return P()}};var r,e={},o=_9.react_stack_bottom_frame.bind(_9,U)(),g=Q0(W(U)),X0={};dy.Fragment=M,dy.jsxDEV=function(P,z0,U0,J0){var L0=1e4>w0.recentlyCreatedOwnerStacks++;return N(P,z0,U0,J0,L0?Error("react-stack-top-frame"):o,L0?Q0(W(P)):g)}})()});var fx=p(zA(),1);var d8=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(J){return this.listeners.add(J),this.onSubscribe(),()=>{this.listeners.delete(J),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var PP={setTimeout:(J,X)=>setTimeout(J,X),clearTimeout:(J)=>clearTimeout(J),setInterval:(J,X)=>setInterval(J,X),clearInterval:(J)=>clearInterval(J)},IP=class{#w=PP;#z=!1;setTimeoutProvider(J){if(this.#z&&J!==this.#w)console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#w,provider:J});this.#w=J,this.#z=!1}setTimeout(J,X){return this.#z=!0,this.#w.setTimeout(J,X)}clearTimeout(J){this.#w.clearTimeout(J)}setInterval(J,X){return this.#z=!0,this.#w.setInterval(J,X)}clearInterval(J){this.#w.clearInterval(J)}},u8=new IP;function ZA(J){setTimeout(J,0)}var h2=typeof window>"u"||"Deno"in globalThis;function Dw(){}function $A(J,X){return typeof J==="function"?J(X):J}function eJ(J){return typeof J==="number"&&J>=0&&J!==1/0}function EY(J,X){return Math.max(J+(X||0)-Date.now(),0)}function n5(J,X){return typeof J==="function"?J(X):J}function P2(J,X){return typeof J==="function"?J(X):J}function vY(J,X){let{type:Y="all",exact:W,fetchStatus:K,predicate:U,queryKey:H,stale:q}=J;if(H){if(W){if(X.queryHash!==wX(H,X.options))return!1}else if(!d7(X.queryKey,H))return!1}if(Y!=="all"){let L=X.isActive();if(Y==="active"&&!L)return!1;if(Y==="inactive"&&L)return!1}if(typeof q==="boolean"&&X.isStale()!==q)return!1;if(K&&K!==X.state.fetchStatus)return!1;if(U&&!U(X))return!1;return!0}function hY(J,X){let{exact:Y,status:W,predicate:K,mutationKey:U}=J;if(U){if(!X.options.mutationKey)return!1;if(Y){if(f7(X.options.mutationKey)!==f7(U))return!1}else if(!d7(X.options.mutationKey,U))return!1}if(W&&X.state.status!==W)return!1;if(K&&!K(X))return!1;return!0}function wX(J,X){return(X?.queryKeyHashFn||f7)(J)}function f7(J){return JSON.stringify(J,(X,Y)=>e_(Y)?Object.keys(Y).sort().reduce((W,K)=>{return W[K]=Y[K],W},{}):Y)}function d7(J,X){if(J===X)return!0;if(typeof J!==typeof X)return!1;if(J&&X&&typeof J==="object"&&typeof X==="object")return Object.keys(X).every((Y)=>d7(J[Y],X[Y]));return!1}var CP=Object.prototype.hasOwnProperty;function xY(J,X){if(J===X)return J;let Y=JA(J)&&JA(X);if(!Y&&!(e_(J)&&e_(X)))return X;let K=(Y?J:Object.keys(J)).length,U=Y?X:Object.keys(X),H=U.length,q=Y?Array(H):{},L=0;for(let V=0;V<H;V++){let N=Y?V:U[V],F=J[N],k=X[N];if(F===k){if(q[N]=F,Y?V<K:CP.call(J,N))L++;continue}if(F===null||k===null||typeof F!=="object"||typeof k!=="object"){q[N]=k;continue}let j=xY(F,k);if(q[N]=j,j===F)L++}return K===H&&L===K?J:q}function PY(J,X){if(!X||Object.keys(J).length!==Object.keys(X).length)return!1;for(let Y in J)if(J[Y]!==X[Y])return!1;return!0}function JA(J){return Array.isArray(J)&&J.length===Object.keys(J).length}function e_(J){if(!XA(J))return!1;let X=J.constructor;if(X===void 0)return!0;let Y=X.prototype;if(!XA(Y))return!1;if(!Y.hasOwnProperty("isPrototypeOf"))return!1;if(Object.getPrototypeOf(J)!==Object.prototype)return!1;return!0}function XA(J){return Object.prototype.toString.call(J)==="[object Object]"}function YA(J){return new Promise((X)=>{u8.setTimeout(X,J)})}function zX(J,X,Y){if(typeof Y.structuralSharing==="function")return Y.structuralSharing(J,X);else if(Y.structuralSharing!==!1){try{return xY(J,X)}catch(W){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. [${Y.queryHash}]: ${W}`),W}return xY(J,X)}return X}function GA(J,X,Y=0){let W=[...J,X];return Y&&W.length>Y?W.slice(1):W}function QA(J,X,Y=0){let W=[X,...J];return Y&&W.length>Y?W.slice(0,-1):W}var m7=Symbol();function IY(J,X){if(J.queryFn===m7)console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${J.queryHash}'`);if(!J.queryFn&&X?.initialPromise)return()=>X.initialPromise;if(!J.queryFn||J.queryFn===m7)return()=>Promise.reject(Error(`Missing queryFn: '${J.queryHash}'`));return J.queryFn}function wq(J,X){if(typeof J==="function")return J(...X);return!!J}var SP=class extends d8{#w;#z;#Z;constructor(){super();this.#Z=(J)=>{if(!h2&&window.addEventListener){let X=()=>J();return window.addEventListener("visibilitychange",X,!1),()=>{window.removeEventListener("visibilitychange",X)}}return}}onSubscribe(){if(!this.#z)this.setEventListener(this.#Z)}onUnsubscribe(){if(!this.hasListeners())this.#z?.(),this.#z=void 0}setEventListener(J){this.#Z=J,this.#z?.(),this.#z=J((X)=>{if(typeof X==="boolean")this.setFocused(X);else this.onFocus()})}setFocused(J){if(this.#w!==J)this.#w=J,this.onFocus()}onFocus(){let J=this.isFocused();this.listeners.forEach((X)=>{X(J)})}isFocused(){if(typeof this.#w==="boolean")return this.#w;return globalThis.document?.visibilityState!=="hidden"}},Nz=new SP;function ZX(){let J,X,Y=new Promise((K,U)=>{J=K,X=U});Y.status="pending",Y.catch(()=>{});function W(K){Object.assign(Y,K),delete Y.resolve,delete Y.reject}return Y.resolve=(K)=>{W({status:"fulfilled",value:K}),J(K)},Y.reject=(K)=>{W({status:"rejected",reason:K}),X(K)},Y}var WA=ZA;function bP(){let J=[],X=0,Y=(q)=>{q()},W=(q)=>{q()},K=WA,U=(q)=>{if(X)J.push(q);else K(()=>{Y(q)})},H=()=>{let q=J;if(J=[],q.length)K(()=>{W(()=>{q.forEach((L)=>{Y(L)})})})};return{batch:(q)=>{let L;X++;try{L=q()}finally{if(X--,!X)H()}return L},batchCalls:(q)=>{return(...L)=>{U(()=>{q(...L)})}},schedule:U,setNotifyFunction:(q)=>{Y=q},setBatchNotifyFunction:(q)=>{W=q},setScheduler:(q)=>{K=q}}}var n1=bP();var yP=class extends d8{#w=!0;#z;#Z;constructor(){super();this.#Z=(J)=>{if(!h2&&window.addEventListener){let X=()=>J(!0),Y=()=>J(!1);return window.addEventListener("online",X,!1),window.addEventListener("offline",Y,!1),()=>{window.removeEventListener("online",X),window.removeEventListener("offline",Y)}}return}}onSubscribe(){if(!this.#z)this.setEventListener(this.#Z)}onUnsubscribe(){if(!this.hasListeners())this.#z?.(),this.#z=void 0}setEventListener(J){this.#Z=J,this.#z?.(),this.#z=J(this.setOnline.bind(this))}setOnline(J){if(this.#w!==J)this.#w=J,this.listeners.forEach((Y)=>{Y(J)})}isOnline(){return this.#w}},kz=new yP;function RP(J){return Math.min(1000*2**J,30000)}function zq(J){return(J??"online")==="online"?kz.isOnline():!0}var CY=class extends Error{constructor(J){super("CancelledError");this.revert=J?.revert,this.silent=J?.silent}};function SY(J){let X=!1,Y=0,W,K=ZX(),U=()=>K.status!=="pending",H=(M)=>{if(!U()){let v=new CY(M);k(v),J.onCancel?.(v)}},q=()=>{X=!0},L=()=>{X=!1},V=()=>Nz.isFocused()&&(J.networkMode==="always"||kz.isOnline())&&J.canRun(),N=()=>zq(J.networkMode)&&J.canRun(),F=(M)=>{if(!U())W?.(),K.resolve(M)},k=(M)=>{if(!U())W?.(),K.reject(M)},j=()=>{return new Promise((M)=>{W=(v)=>{if(U()||V())M(v)},J.onPause?.()}).then(()=>{if(W=void 0,!U())J.onContinue?.()})},O=()=>{if(U())return;let M,v=Y===0?J.initialPromise:void 0;try{M=v??J.fn()}catch(x){M=Promise.reject(x)}Promise.resolve(M).then(F).catch((x)=>{if(U())return;let E=J.retry??(h2?0:3),I=J.retryDelay??RP,C=typeof I==="function"?I(Y,x):I,h=E===!0||typeof E==="number"&&Y<E||typeof E==="function"&&E(Y,x);if(X||!h){k(x);return}Y++,J.onFail?.(Y,x),YA(C).then(()=>{return V()?void 0:j()}).then(()=>{if(X)k(x);else O()})})};return{promise:K,status:()=>K.status,cancel:H,continue:()=>{return W?.(),K},cancelRetry:q,continueRetry:L,canStart:N,start:()=>{if(N())O();else j().then(O);return K}}}var bY=class{#w;destroy(){this.clearGcTimeout()}scheduleGc(){if(this.clearGcTimeout(),eJ(this.gcTime))this.#w=u8.setTimeout(()=>{this.optionalRemove()},this.gcTime)}updateGcTime(J){this.gcTime=Math.max(this.gcTime||0,J??(h2?1/0:300000))}clearGcTimeout(){if(this.#w)u8.clearTimeout(this.#w),this.#w=void 0}};var _A=class extends bY{#w;#z;#Z;#X;#J;#G;#Y;constructor(J){super();this.#Y=!1,this.#G=J.defaultOptions,this.setOptions(J.options),this.observers=[],this.#X=J.client,this.#Z=this.#X.getQueryCache(),this.queryKey=J.queryKey,this.queryHash=J.queryHash,this.#w=UA(this.options),this.state=J.state??this.#w,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#J?.promise}setOptions(J){if(this.options={...this.#G,...J},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let X=UA(this.options);if(X.data!==void 0)this.setState(KA(X.data,X.dataUpdatedAt)),this.#w=X}}optionalRemove(){if(!this.observers.length&&this.state.fetchStatus==="idle")this.#Z.remove(this)}setData(J,X){let Y=zX(this.state.data,J,this.options);return this.#$({data:Y,type:"success",dataUpdatedAt:X?.updatedAt,manual:X?.manual}),Y}setState(J,X){this.#$({type:"setState",state:J,setStateOptions:X})}cancel(J){let X=this.#J?.promise;return this.#J?.cancel(J),X?X.then(Dw).catch(Dw):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#w)}isActive(){return this.observers.some((J)=>P2(J.options.enabled,this)!==!1)}isDisabled(){if(this.getObserversCount()>0)return!this.isActive();return this.options.queryFn===m7||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){if(this.getObserversCount()>0)return this.observers.some((J)=>n5(J.options.staleTime,this)==="static");return!1}isStale(){if(this.getObserversCount()>0)return this.observers.some((J)=>J.getCurrentResult().isStale);return this.state.data===void 0||this.state.isInvalidated}isStaleByTime(J=0){if(this.state.data===void 0)return!0;if(J==="static")return!1;if(this.state.isInvalidated)return!0;return!EY(this.state.dataUpdatedAt,J)}onFocus(){this.observers.find((X)=>X.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#J?.continue()}onOnline(){this.observers.find((X)=>X.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#J?.continue()}addObserver(J){if(!this.observers.includes(J))this.observers.push(J),this.clearGcTimeout(),this.#Z.notify({type:"observerAdded",query:this,observer:J})}removeObserver(J){if(this.observers.includes(J)){if(this.observers=this.observers.filter((X)=>X!==J),!this.observers.length){if(this.#J)if(this.#Y)this.#J.cancel({revert:!0});else this.#J.cancelRetry();this.scheduleGc()}this.#Z.notify({type:"observerRemoved",query:this,observer:J})}}getObserversCount(){return this.observers.length}invalidate(){if(!this.state.isInvalidated)this.#$({type:"invalidate"})}async fetch(J,X){if(this.state.fetchStatus!=="idle"&&this.#J?.status()!=="rejected"){if(this.state.data!==void 0&&X?.cancelRefetch)this.cancel({silent:!0});else if(this.#J)return this.#J.continueRetry(),this.#J.promise}if(J)this.setOptions(J);if(!this.options.queryFn){let q=this.observers.find((L)=>L.options.queryFn);if(q)this.setOptions(q.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 Y=new AbortController,W=(q)=>{Object.defineProperty(q,"signal",{enumerable:!0,get:()=>{return this.#Y=!0,Y.signal}})},K=()=>{let q=IY(this.options,X),V=(()=>{let N={client:this.#X,queryKey:this.queryKey,meta:this.meta};return W(N),N})();if(this.#Y=!1,this.options.persister)return this.options.persister(q,V,this);return q(V)},H=(()=>{let q={fetchOptions:X,options:this.options,queryKey:this.queryKey,client:this.#X,state:this.state,fetchFn:K};return W(q),q})();if(this.options.behavior?.onFetch(H,this),this.#z=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==H.fetchOptions?.meta)this.#$({type:"fetch",meta:H.fetchOptions?.meta});this.#J=SY({initialPromise:X?.initialPromise,fn:H.fetchFn,onCancel:(q)=>{if(q instanceof CY&&q.revert)this.setState({...this.#z,fetchStatus:"idle"});Y.abort()},onFail:(q,L)=>{this.#$({type:"failed",failureCount:q,error:L})},onPause:()=>{this.#$({type:"pause"})},onContinue:()=>{this.#$({type:"continue"})},retry:H.options.retry,retryDelay:H.options.retryDelay,networkMode:H.options.networkMode,canRun:()=>!0});try{let q=await this.#J.start();if(q===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(q),this.#Z.config.onSuccess?.(q,this),this.#Z.config.onSettled?.(q,this.state.error,this),q}catch(q){if(q instanceof CY){if(q.silent)return this.#J.promise;else if(q.revert){if(this.state.data===void 0)throw q;return this.state.data}}throw this.#$({type:"error",error:q}),this.#Z.config.onError?.(q,this),this.#Z.config.onSettled?.(this.state.data,q,this),q}finally{this.scheduleGc()}}#$(J){let X=(Y)=>{switch(J.type){case"failed":return{...Y,fetchFailureCount:J.failureCount,fetchFailureReason:J.error};case"pause":return{...Y,fetchStatus:"paused"};case"continue":return{...Y,fetchStatus:"fetching"};case"fetch":return{...Y,...Zq(Y.data,this.options),fetchMeta:J.meta??null};case"success":let W={...Y,...KA(J.data,J.dataUpdatedAt),dataUpdateCount:Y.dataUpdateCount+1,...!J.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#z=J.manual?W:void 0,W;case"error":let K=J.error;return{...Y,error:K,errorUpdateCount:Y.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:Y.fetchFailureCount+1,fetchFailureReason:K,fetchStatus:"idle",status:"error"};case"invalidate":return{...Y,isInvalidated:!0};case"setState":return{...Y,...J.state}}};this.state=X(this.state),n1.batch(()=>{this.observers.forEach((Y)=>{Y.onQueryUpdate()}),this.#Z.notify({query:this,type:"updated",action:J})})}};function Zq(J,X){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zq(X.networkMode)?"fetching":"paused",...J===void 0&&{error:null,status:"pending"}}}function KA(J,X){return{data:J,dataUpdatedAt:X??Date.now(),error:null,isInvalidated:!1,status:"success"}}function UA(J){let X=typeof J.initialData==="function"?J.initialData():J.initialData,Y=X!==void 0,W=Y?typeof J.initialDataUpdatedAt==="function"?J.initialDataUpdatedAt():J.initialDataUpdatedAt:0;return{data:X,dataUpdateCount:0,dataUpdatedAt:Y?W??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:Y?"success":"pending",fetchStatus:"idle"}}var Xq=class extends d8{constructor(J,X){super();this.options=X,this.#w=J,this.#$=null,this.#Y=ZX(),this.bindMethods(),this.setOptions(X)}#w;#z=void 0;#Z=void 0;#X=void 0;#J;#G;#Y;#$;#B;#_;#q;#W;#K;#Q;#H=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#z.addObserver(this),qA(this.#z,this.options))this.#U();else this.updateResult();this.#N()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return Jq(this.#z,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Jq(this.#z,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#k(),this.#j(),this.#z.removeObserver(this)}setOptions(J){let X=this.options,Y=this.#z;if(this.options=this.#w.defaultQueryOptions(J),this.options.enabled!==void 0&&typeof this.options.enabled!=="boolean"&&typeof this.options.enabled!=="function"&&typeof P2(this.options.enabled,this.#z)!=="boolean")throw Error("Expected enabled to be a boolean or a callback that returns a boolean");if(this.#A(),this.#z.setOptions(this.options),X._defaulted&&!PY(this.options,X))this.#w.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#z,observer:this});let W=this.hasListeners();if(W&&HA(this.#z,Y,this.options,X))this.#U();if(this.updateResult(),W&&(this.#z!==Y||P2(this.options.enabled,this.#z)!==P2(X.enabled,this.#z)||n5(this.options.staleTime,this.#z)!==n5(X.staleTime,this.#z)))this.#L();let K=this.#V();if(W&&(this.#z!==Y||P2(this.options.enabled,this.#z)!==P2(X.enabled,this.#z)||K!==this.#Q))this.#F(K)}getOptimisticResult(J){let X=this.#w.getQueryCache().build(this.#w,J),Y=this.createResult(X,J);if(fP(this,Y))this.#X=Y,this.#G=this.options,this.#J=this.#z.state;return Y}getCurrentResult(){return this.#X}trackResult(J,X){return new Proxy(J,{get:(Y,W)=>{if(this.trackProp(W),X?.(W),W==="promise"){if(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#Y.status==="pending")this.#Y.reject(Error("experimental_prefetchInRender feature flag is not enabled"))}return Reflect.get(Y,W)}})}trackProp(J){this.#H.add(J)}getCurrentQuery(){return this.#z}refetch({...J}={}){return this.fetch({...J})}fetchOptimistic(J){let X=this.#w.defaultQueryOptions(J),Y=this.#w.getQueryCache().build(this.#w,X);return Y.fetch().then(()=>this.createResult(Y,X))}fetch(J){return this.#U({...J,cancelRefetch:J.cancelRefetch??!0}).then(()=>{return this.updateResult(),this.#X})}#U(J){this.#A();let X=this.#z.fetch(this.options,J);if(!J?.throwOnError)X=X.catch(Dw);return X}#L(){this.#k();let J=n5(this.options.staleTime,this.#z);if(h2||this.#X.isStale||!eJ(J))return;let Y=EY(this.#X.dataUpdatedAt,J)+1;this.#W=u8.setTimeout(()=>{if(!this.#X.isStale)this.updateResult()},Y)}#V(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#z):this.options.refetchInterval)??!1}#F(J){if(this.#j(),this.#Q=J,h2||P2(this.options.enabled,this.#z)===!1||!eJ(this.#Q)||this.#Q===0)return;this.#K=u8.setInterval(()=>{if(this.options.refetchIntervalInBackground||Nz.isFocused())this.#U()},this.#Q)}#N(){this.#L(),this.#F(this.#V())}#k(){if(this.#W)u8.clearTimeout(this.#W),this.#W=void 0}#j(){if(this.#K)u8.clearInterval(this.#K),this.#K=void 0}createResult(J,X){let Y=this.#z,W=this.options,K=this.#X,U=this.#J,H=this.#G,L=J!==Y?J.state:this.#Z,{state:V}=J,N={...V},F=!1,k;if(X._optimisticResults){let S=this.hasListeners(),c=!S&&qA(J,X),d=S&&HA(J,Y,X,W);if(c||d)N={...N,...Zq(V.data,J.options)};if(X._optimisticResults==="isRestoring")N.fetchStatus="idle"}let{error:j,errorUpdatedAt:O,status:M}=N;k=N.data;let v=!1;if(X.placeholderData!==void 0&&k===void 0&&M==="pending"){let S;if(K?.isPlaceholderData&&X.placeholderData===H?.placeholderData)S=K.data,v=!0;else S=typeof X.placeholderData==="function"?X.placeholderData(this.#q?.state.data,this.#q):X.placeholderData;if(S!==void 0)M="success",k=zX(K?.data,S,X),F=!0}if(X.select&&k!==void 0&&!v)if(K&&k===U?.data&&X.select===this.#B)k=this.#_;else try{this.#B=X.select,k=X.select(k),k=zX(K?.data,k,X),this.#_=k,this.#$=null}catch(S){this.#$=S}if(this.#$)j=this.#$,k=this.#_,O=Date.now(),M="error";let x=N.fetchStatus==="fetching",E=M==="pending",I=M==="error",C=E&&x,h=k!==void 0,R={status:M,fetchStatus:N.fetchStatus,isPending:E,isSuccess:M==="success",isError:I,isInitialLoading:C,isLoading:C,data:k,dataUpdatedAt:N.dataUpdatedAt,error:j,errorUpdatedAt:O,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>L.dataUpdateCount||N.errorUpdateCount>L.errorUpdateCount,isFetching:x,isRefetching:x&&!E,isLoadingError:I&&!h,isPaused:N.fetchStatus==="paused",isPlaceholderData:F,isRefetchError:I&&h,isStale:$q(J,X),refetch:this.refetch,promise:this.#Y,isEnabled:P2(X.enabled,J)!==!1};if(this.options.experimental_prefetchInRender){let S=(w0)=>{if(R.status==="error")w0.reject(R.error);else if(R.data!==void 0)w0.resolve(R.data)},c=()=>{let w0=this.#Y=R.promise=ZX();S(w0)},d=this.#Y;switch(d.status){case"pending":if(J.queryHash===Y.queryHash)S(d);break;case"fulfilled":if(R.status==="error"||R.data!==d.value)c();break;case"rejected":if(R.status!=="error"||R.error!==d.reason)c();break}}return R}updateResult(){let J=this.#X,X=this.createResult(this.#z,this.options);if(this.#J=this.#z.state,this.#G=this.options,this.#J.data!==void 0)this.#q=this.#z;if(PY(X,J))return;this.#X=X;let Y=()=>{if(!J)return!0;let{notifyOnChangeProps:W}=this.options,K=typeof W==="function"?W():W;if(K==="all"||!K&&!this.#H.size)return!0;let U=new Set(K??this.#H);if(this.options.throwOnError)U.add("error");return Object.keys(this.#X).some((H)=>{let q=H;return this.#X[q]!==J[q]&&U.has(q)})};this.#M({listeners:Y()})}#A(){let J=this.#w.getQueryCache().build(this.#w,this.options);if(J===this.#z)return;let X=this.#z;if(this.#z=J,this.#Z=J.state,this.hasListeners())X?.removeObserver(this),J.addObserver(this)}onQueryUpdate(){if(this.updateResult(),this.hasListeners())this.#N()}#M(J){n1.batch(()=>{if(J.listeners)this.listeners.forEach((X)=>{X(this.#X)});this.#w.getQueryCache().notify({query:this.#z,type:"observerResultsUpdated"})})}};function gP(J,X){return P2(X.enabled,J)!==!1&&J.state.data===void 0&&!(J.state.status==="error"&&X.retryOnMount===!1)}function qA(J,X){return gP(J,X)||J.state.data!==void 0&&Jq(J,X,X.refetchOnMount)}function Jq(J,X,Y){if(P2(X.enabled,J)!==!1&&n5(X.staleTime,J)!=="static"){let W=typeof Y==="function"?Y(J):Y;return W==="always"||W!==!1&&$q(J,X)}return!1}function HA(J,X,Y,W){return(J!==X||P2(W.enabled,J)===!1)&&(!Y.suspense||J.state.status!=="error")&&$q(J,Y)}function $q(J,X){return P2(X.enabled,J)!==!1&&J.isStaleByTime(n5(X.staleTime,J))}function fP(J,X){if(!PY(J.getCurrentResult(),X))return!0;return!1}function Yq(J){return{onFetch:(X,Y)=>{let W=X.options,K=X.fetchOptions?.meta?.fetchMore?.direction,U=X.state.data?.pages||[],H=X.state.data?.pageParams||[],q={pages:[],pageParams:[]},L=0,V=async()=>{let N=!1,F=(O)=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>{if(X.signal.aborted)N=!0;else X.signal.addEventListener("abort",()=>{N=!0});return X.signal}})},k=IY(X.options,X.fetchOptions),j=async(O,M,v)=>{if(N)return Promise.reject();if(M==null&&O.pages.length)return Promise.resolve(O);let E=(()=>{let m={client:X.client,queryKey:X.queryKey,pageParam:M,direction:v?"backward":"forward",meta:X.options.meta};return F(m),m})(),I=await k(E),{maxPages:C}=X.options,h=v?QA:GA;return{pages:h(O.pages,I,C),pageParams:h(O.pageParams,M,C)}};if(K&&U.length){let O=K==="backward",M=O?mP:BA,v={pages:U,pageParams:H},x=M(W,v);q=await j(v,x,O)}else{let O=J??U.length;do{let M=L===0?H[0]??W.initialPageParam:BA(W,q);if(L>0&&M==null)break;q=await j(q,M),L++}while(L<O)}return q};if(X.options.persister)X.fetchFn=()=>{return X.options.persister?.(V,{client:X.client,queryKey:X.queryKey,meta:X.options.meta,signal:X.signal},Y)};else X.fetchFn=V}}}function BA(J,{pages:X,pageParams:Y}){let W=X.length-1;return X.length>0?J.getNextPageParam(X[W],X,Y[W],Y):void 0}function mP(J,{pages:X,pageParams:Y}){return X.length>0?J.getPreviousPageParam?.(X[0],X,Y[0],Y):void 0}var LA=class extends bY{#w;#z;#Z;#X;constructor(J){super();this.#w=J.client,this.mutationId=J.mutationId,this.#Z=J.mutationCache,this.#z=[],this.state=J.state||dP(),this.setOptions(J.options),this.scheduleGc()}setOptions(J){this.options=J,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(J){if(!this.#z.includes(J))this.#z.push(J),this.clearGcTimeout(),this.#Z.notify({type:"observerAdded",mutation:this,observer:J})}removeObserver(J){this.#z=this.#z.filter((X)=>X!==J),this.scheduleGc(),this.#Z.notify({type:"observerRemoved",mutation:this,observer:J})}optionalRemove(){if(!this.#z.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(J){let X=()=>{this.#J({type:"continue"})},Y={client:this.#w,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#X=SY({fn:()=>{if(!this.options.mutationFn)return Promise.reject(Error("No mutationFn found"));return this.options.mutationFn(J,Y)},onFail:(U,H)=>{this.#J({type:"failed",failureCount:U,error:H})},onPause:()=>{this.#J({type:"pause"})},onContinue:X,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#Z.canRun(this)});let W=this.state.status==="pending",K=!this.#X.canStart();try{if(W)X();else{this.#J({type:"pending",variables:J,isPaused:K}),await this.#Z.config.onMutate?.(J,this,Y);let H=await this.options.onMutate?.(J,Y);if(H!==this.state.context)this.#J({type:"pending",context:H,variables:J,isPaused:K})}let U=await this.#X.start();return await this.#Z.config.onSuccess?.(U,J,this.state.context,this,Y),await this.options.onSuccess?.(U,J,this.state.context,Y),await this.#Z.config.onSettled?.(U,null,this.state.variables,this.state.context,this,Y),await this.options.onSettled?.(U,null,J,this.state.context,Y),this.#J({type:"success",data:U}),U}catch(U){try{throw await this.#Z.config.onError?.(U,J,this.state.context,this,Y),await this.options.onError?.(U,J,this.state.context,Y),await this.#Z.config.onSettled?.(void 0,U,this.state.variables,this.state.context,this,Y),await this.options.onSettled?.(void 0,U,J,this.state.context,Y),U}finally{this.#J({type:"error",error:U})}}finally{this.#Z.runNext(this)}}#J(J){let X=(Y)=>{switch(J.type){case"failed":return{...Y,failureCount:J.failureCount,failureReason:J.error};case"pause":return{...Y,isPaused:!0};case"continue":return{...Y,isPaused:!1};case"pending":return{...Y,context:J.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:J.isPaused,status:"pending",variables:J.variables,submittedAt:Date.now()};case"success":return{...Y,data:J.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...Y,data:void 0,error:J.error,failureCount:Y.failureCount+1,failureReason:J.error,isPaused:!1,status:"error"}}};this.state=X(this.state),n1.batch(()=>{this.#z.forEach((Y)=>{Y.onMutationUpdate(J)}),this.#Z.notify({mutation:this,type:"updated",action:J})})}};function dP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var VA=class extends d8{constructor(J={}){super();this.config=J,this.#w=new Set,this.#z=new Map,this.#Z=0}#w;#z;#Z;build(J,X,Y){let W=new LA({client:J,mutationCache:this,mutationId:++this.#Z,options:J.defaultMutationOptions(X),state:Y});return this.add(W),W}add(J){this.#w.add(J);let X=yY(J);if(typeof X==="string"){let Y=this.#z.get(X);if(Y)Y.push(J);else this.#z.set(X,[J])}this.notify({type:"added",mutation:J})}remove(J){if(this.#w.delete(J)){let X=yY(J);if(typeof X==="string"){let Y=this.#z.get(X);if(Y){if(Y.length>1){let W=Y.indexOf(J);if(W!==-1)Y.splice(W,1)}else if(Y[0]===J)this.#z.delete(X)}}}this.notify({type:"removed",mutation:J})}canRun(J){let X=yY(J);if(typeof X==="string"){let W=this.#z.get(X)?.find((K)=>K.state.status==="pending");return!W||W===J}else return!0}runNext(J){let X=yY(J);if(typeof X==="string")return this.#z.get(X)?.find((W)=>W!==J&&W.state.isPaused)?.continue()??Promise.resolve();else return Promise.resolve()}clear(){n1.batch(()=>{this.#w.forEach((J)=>{this.notify({type:"removed",mutation:J})}),this.#w.clear(),this.#z.clear()})}getAll(){return Array.from(this.#w)}find(J){let X={exact:!0,...J};return this.getAll().find((Y)=>hY(X,Y))}findAll(J={}){return this.getAll().filter((X)=>hY(J,X))}notify(J){n1.batch(()=>{this.listeners.forEach((X)=>{X(J)})})}resumePausedMutations(){let J=this.getAll().filter((X)=>X.state.isPaused);return n1.batch(()=>Promise.all(J.map((X)=>X.continue().catch(Dw))))}};function yY(J){return J.options.scope?.id}var FA=class extends d8{constructor(J={}){super();this.config=J,this.#w=new Map}#w;build(J,X,Y){let W=X.queryKey,K=X.queryHash??wX(W,X),U=this.get(K);if(!U)U=new _A({client:J,queryKey:W,queryHash:K,options:J.defaultQueryOptions(X),state:Y,defaultOptions:J.getQueryDefaults(W)}),this.add(U);return U}add(J){if(!this.#w.has(J.queryHash))this.#w.set(J.queryHash,J),this.notify({type:"added",query:J})}remove(J){let X=this.#w.get(J.queryHash);if(X){if(J.destroy(),X===J)this.#w.delete(J.queryHash);this.notify({type:"removed",query:J})}}clear(){n1.batch(()=>{this.getAll().forEach((J)=>{this.remove(J)})})}get(J){return this.#w.get(J)}getAll(){return[...this.#w.values()]}find(J){let X={exact:!0,...J};return this.getAll().find((Y)=>vY(X,Y))}findAll(J={}){let X=this.getAll();return Object.keys(J).length>0?X.filter((Y)=>vY(J,Y)):X}notify(J){n1.batch(()=>{this.listeners.forEach((X)=>{X(J)})})}onFocus(){n1.batch(()=>{this.getAll().forEach((J)=>{J.onFocus()})})}onOnline(){n1.batch(()=>{this.getAll().forEach((J)=>{J.onOnline()})})}};var Gq=class{#w;#z;#Z;#X;#J;#G;#Y;#$;constructor(J={}){this.#w=J.queryCache||new FA,this.#z=J.mutationCache||new VA,this.#Z=J.defaultOptions||{},this.#X=new Map,this.#J=new Map,this.#G=0}mount(){if(this.#G++,this.#G!==1)return;this.#Y=Nz.subscribe(async(J)=>{if(J)await this.resumePausedMutations(),this.#w.onFocus()}),this.#$=kz.subscribe(async(J)=>{if(J)await this.resumePausedMutations(),this.#w.onOnline()})}unmount(){if(this.#G--,this.#G!==0)return;this.#Y?.(),this.#Y=void 0,this.#$?.(),this.#$=void 0}isFetching(J){return this.#w.findAll({...J,fetchStatus:"fetching"}).length}isMutating(J){return this.#z.findAll({...J,status:"pending"}).length}getQueryData(J){let X=this.defaultQueryOptions({queryKey:J});return this.#w.get(X.queryHash)?.state.data}ensureQueryData(J){let X=this.defaultQueryOptions(J),Y=this.#w.build(this,X),W=Y.state.data;if(W===void 0)return this.fetchQuery(J);if(J.revalidateIfStale&&Y.isStaleByTime(n5(X.staleTime,Y)))this.prefetchQuery(X);return Promise.resolve(W)}getQueriesData(J){return this.#w.findAll(J).map(({queryKey:X,state:Y})=>{let W=Y.data;return[X,W]})}setQueryData(J,X,Y){let W=this.defaultQueryOptions({queryKey:J}),U=this.#w.get(W.queryHash)?.state.data,H=$A(X,U);if(H===void 0)return;return this.#w.build(this,W).setData(H,{...Y,manual:!0})}setQueriesData(J,X,Y){return n1.batch(()=>this.#w.findAll(J).map(({queryKey:W})=>[W,this.setQueryData(W,X,Y)]))}getQueryState(J){let X=this.defaultQueryOptions({queryKey:J});return this.#w.get(X.queryHash)?.state}removeQueries(J){let X=this.#w;n1.batch(()=>{X.findAll(J).forEach((Y)=>{X.remove(Y)})})}resetQueries(J,X){let Y=this.#w;return n1.batch(()=>{return Y.findAll(J).forEach((W)=>{W.reset()}),this.refetchQueries({type:"active",...J},X)})}cancelQueries(J,X={}){let Y={revert:!0,...X},W=n1.batch(()=>this.#w.findAll(J).map((K)=>K.cancel(Y)));return Promise.all(W).then(Dw).catch(Dw)}invalidateQueries(J,X={}){return n1.batch(()=>{if(this.#w.findAll(J).forEach((Y)=>{Y.invalidate()}),J?.refetchType==="none")return Promise.resolve();return this.refetchQueries({...J,type:J?.refetchType??J?.type??"active"},X)})}refetchQueries(J,X={}){let Y={...X,cancelRefetch:X.cancelRefetch??!0},W=n1.batch(()=>this.#w.findAll(J).filter((K)=>!K.isDisabled()&&!K.isStatic()).map((K)=>{let U=K.fetch(void 0,Y);if(!Y.throwOnError)U=U.catch(Dw);return K.state.fetchStatus==="paused"?Promise.resolve():U}));return Promise.all(W).then(Dw)}fetchQuery(J){let X=this.defaultQueryOptions(J);if(X.retry===void 0)X.retry=!1;let Y=this.#w.build(this,X);return Y.isStaleByTime(n5(X.staleTime,Y))?Y.fetch(X):Promise.resolve(Y.state.data)}prefetchQuery(J){return this.fetchQuery(J).then(Dw).catch(Dw)}fetchInfiniteQuery(J){return J.behavior=Yq(J.pages),this.fetchQuery(J)}prefetchInfiniteQuery(J){return this.fetchInfiniteQuery(J).then(Dw).catch(Dw)}ensureInfiniteQueryData(J){return J.behavior=Yq(J.pages),this.ensureQueryData(J)}resumePausedMutations(){if(kz.isOnline())return this.#z.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#w}getMutationCache(){return this.#z}getDefaultOptions(){return this.#Z}setDefaultOptions(J){this.#Z=J}setQueryDefaults(J,X){this.#X.set(f7(J),{queryKey:J,defaultOptions:X})}getQueryDefaults(J){let X=[...this.#X.values()],Y={};return X.forEach((W)=>{if(d7(J,W.queryKey))Object.assign(Y,W.defaultOptions)}),Y}setMutationDefaults(J,X){this.#J.set(f7(J),{mutationKey:J,defaultOptions:X})}getMutationDefaults(J){let X=[...this.#J.values()],Y={};return X.forEach((W)=>{if(d7(J,W.mutationKey))Object.assign(Y,W.defaultOptions)}),Y}defaultQueryOptions(J){if(J._defaulted)return J;let X={...this.#Z.queries,...this.getQueryDefaults(J.queryKey),...J,_defaulted:!0};if(!X.queryHash)X.queryHash=wX(X.queryKey,X);if(X.refetchOnReconnect===void 0)X.refetchOnReconnect=X.networkMode!=="always";if(X.throwOnError===void 0)X.throwOnError=!!X.suspense;if(!X.networkMode&&X.persister)X.networkMode="offlineFirst";if(X.queryFn===m7)X.enabled=!1;return X}defaultMutationOptions(J){if(J?._defaulted)return J;return{...this.#Z.mutations,...J?.mutationKey&&this.getMutationDefaults(J.mutationKey),...J,_defaulted:!0}}clear(){this.#w.clear(),this.#z.clear()}};var jz=p(Y0(),1),NA=p(E1(),1),Qq=jz.createContext(void 0),Wq=(J)=>{let X=jz.useContext(Qq);if(J)return J;if(!X)throw Error("No QueryClient set, use QueryClientProvider to set one");return X},Kq=({client:J,children:X})=>{return jz.useEffect(()=>{return J.mount(),()=>{J.unmount()}},[J]),NA.jsx(Qq.Provider,{value:J,children:X})};var RY=p(Y0(),1),kA=RY.createContext(!1),jA=()=>RY.useContext(kA),Nm=kA.Provider;var JX=p(Y0(),1),pP=p(E1(),1);function cP(){let J=!1;return{clearReset:()=>{J=!1},reset:()=>{J=!0},isReset:()=>{return J}}}var lP=JX.createContext(cP()),AA=()=>JX.useContext(lP);var MA=p(Y0(),1);var OA=(J,X)=>{if(J.suspense||J.throwOnError||J.experimental_prefetchInRender){if(!X.isReset())J.retryOnMount=!1}},DA=(J)=>{MA.useEffect(()=>{J.clearReset()},[J])},TA=({result:J,errorResetBoundary:X,throwOnError:Y,query:W,suspense:K})=>{return J.isError&&!X.isReset()&&!J.isFetching&&W&&(K&&J.data===void 0||wq(Y,[J.error,W]))};var xA=(J)=>{if(J.suspense){let Y=(K)=>K==="static"?K:Math.max(K??1000,1000),W=J.staleTime;if(J.staleTime=typeof W==="function"?(...K)=>Y(W(...K)):Y(W),typeof J.gcTime==="number")J.gcTime=Math.max(J.gcTime,1000)}},EA=(J,X)=>J.isLoading&&J.isFetching&&!X,vA=(J,X)=>J?.suspense&&X.isPending,Uq=(J,X,Y)=>X.fetchOptimistic(J).catch(()=>{Y.clearReset()});var v4=p(Y0(),1);function hA(J,X,Y){if(typeof J!=="object"||Array.isArray(J))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 W=jA(),K=AA(),U=Wq(Y),H=U.defaultQueryOptions(J);if(U.getDefaultOptions().queries?._experimental_beforeQuery?.(H),!H.queryFn)console.error(`[${H.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`);H._optimisticResults=W?"isRestoring":"optimistic",xA(H),OA(H,K),DA(K);let q=!U.getQueryCache().get(H.queryHash),[L]=v4.useState(()=>new X(U,H)),V=L.getOptimisticResult(H),N=!W&&J.subscribed!==!1;if(v4.useSyncExternalStore(v4.useCallback((F)=>{let k=N?L.subscribe(n1.batchCalls(F)):Dw;return L.updateResult(),k},[L,N]),()=>L.getCurrentResult(),()=>L.getCurrentResult()),v4.useEffect(()=>{L.setOptions(H)},[H,L]),vA(H,V))throw Uq(H,L,K);if(TA({result:V,errorResetBoundary:K,throwOnError:H.throwOnError,query:U.getQueryCache().get(H.queryHash),suspense:H.suspense}))throw V.error;if(U.getDefaultOptions().queries?._experimental_afterQuery?.(H,V),H.experimental_prefetchInRender&&!h2&&EA(V,W))(q?Uq(H,L,K):U.getQueryCache().get(H.queryHash)?.promise)?.catch(Dw).finally(()=>{L.updateResult()});return!H.notifyOnChangeProps?L.trackResult(V):V}function _q(J,X){return hA(J,Xq,X)}var gY=new Gq;async function PA(){return fetch("/api/stories").then((J)=>J.json())}var p8=p(Y0(),1);function Az({controlled:J,default:X,name:Y,state:W="value"}){let{current:K}=p8.useRef(J!==void 0),[U,H]=p8.useState(X),q=K?J:U;{p8.useEffect(()=>{if(K!==(J!==void 0))console.error([`Base UI: A component is changing the ${K?"":"un"}controlled ${W} state of ${Y} to be ${K?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${Y} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
241
+ `))},[W,Y,J]);let{current:V}=p8.useRef(X);p8.useEffect(()=>{if(!K&&JSON.stringify(V)!==JSON.stringify(X))console.error([`Base UI: A component is changing the default ${W} state of an uncontrolled ${Y} after being initialized. To suppress this warning opt to use a controlled ${Y}.`].join(`
242
+ `))},[JSON.stringify(X)])}let L=p8.useCallback((V)=>{if(!K)H(V)},[]);return[q,L]}var Hq=p(Y0(),1);var CA=p(Y0(),1),IA={};function r1(J,X){let Y=CA.useRef(IA);if(Y.current===IA)Y.current=J(X);return Y}var qq=Hq[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],iP=qq&&qq!==Hq.useLayoutEffect?qq:(J)=>J();function F0(J){let X=r1(rP).current;return X.next=J,iP(X.effect),X.trampoline}function rP(){let J={next:void 0,callback:aP,trampoline:(...X)=>J.callback?.(...X),effect:()=>{J.callback=J.next}};return J}function aP(){throw Error("Base UI: Cannot call an event handler while rendering.")}var SA=p(Y0(),1),sP=()=>{},k0=typeof document<"u"?SA.useLayoutEffect:sP;var h4=p(Y0(),1);var fY=p(Y0(),1),mY=fY.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>{return()=>{}},elementsRef:{current:[]},nextIndexRef:{current:0}});mY.displayName="CompositeListContext";function bA(){return fY.useContext(mY)}var yA=p(E1(),1);function Mz(J){let{children:X,elementsRef:Y,labelsRef:W,onMapChange:K}=J,U=F0(K),H=h4.useRef(0),q=r1(nP).current,L=r1(oP).current,[V,N]=h4.useState(0),F=h4.useRef(V),k=F0((x,E)=>{L.set(x,E??null),F.current+=1,N(F.current)}),j=F0((x)=>{L.delete(x),F.current+=1,N(F.current)}),O=h4.useMemo(()=>{eP(V);let x=new Map;return Array.from(L.keys()).filter((I)=>I.isConnected).sort(tP).forEach((I,C)=>{let h=L.get(I)??{};x.set(I,{...h,index:C})}),x},[L,V]);k0(()=>{if(typeof MutationObserver!=="function"||O.size===0)return;let x=new MutationObserver((E)=>{let I=new Set,C=(h)=>I.has(h)?I.delete(h):I.add(h);if(E.forEach((h)=>{h.removedNodes.forEach(C),h.addedNodes.forEach(C)}),I.size===0)F.current+=1,N(F.current)});return O.forEach((E,I)=>{if(I.parentElement)x.observe(I.parentElement,{childList:!0})}),()=>{x.disconnect()}},[O]),k0(()=>{if(F.current===V){if(Y.current.length!==O.size)Y.current.length=O.size;if(W&&W.current.length!==O.size)W.current.length=O.size;H.current=O.size}U(O)},[U,O,Y,W,V]),k0(()=>{return()=>{Y.current=[]}},[Y]),k0(()=>{return()=>{if(W)W.current=[]}},[W]);let M=F0((x)=>{return q.add(x),()=>{q.delete(x)}});k0(()=>{q.forEach((x)=>x(O))},[q,O]);let v=h4.useMemo(()=>({register:k,unregister:j,subscribeMapChange:M,elementsRef:Y,labelsRef:W,nextIndexRef:H}),[k,j,M,Y,W,H]);return yA.jsx(mY.Provider,{value:v,children:X})}function oP(){return new Map}function nP(){return new Set}function tP(J,X){let Y=J.compareDocumentPosition(X);if(Y&Node.DOCUMENT_POSITION_FOLLOWING||Y&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(Y&Node.DOCUMENT_POSITION_PRECEDING||Y&Node.DOCUMENT_POSITION_CONTAINS)return 1;return 0}function eP(J){}var dY=p(Y0(),1),RA=dY.createContext(void 0);RA.displayName="DirectionContext";function O5(){return dY.useContext(RA)?.direction??"ltr"}var iY=p(Y0(),1);function D5(J,X,Y,W){let K=r1(fA).current;if(wI(K,J,X,Y,W))mA(K,[J,X,Y,W]);return K.callback}function gA(J){let X=r1(fA).current;if(zI(X,J))mA(X,J);return X.callback}function fA(){return{callback:null,cleanup:null,refs:[]}}function wI(J,X,Y,W,K){return J.refs[0]!==X||J.refs[1]!==Y||J.refs[2]!==W||J.refs[3]!==K}function zI(J,X){return J.refs.length!==X.length||J.refs.some((Y,W)=>Y!==X[W])}function mA(J,X){if(J.refs=X,X.every((Y)=>Y==null)){J.callback=null;return}J.callback=(Y)=>{if(J.cleanup)J.cleanup(),J.cleanup=null;if(Y!=null){let W=Array(X.length).fill(null);for(let K=0;K<X.length;K+=1){let U=X[K];if(U==null)continue;switch(typeof U){case"function":{let H=U(Y);if(typeof H==="function")W[K]=H;break}case"object":{U.current=Y;break}default:}}J.cleanup=()=>{for(let K=0;K<X.length;K+=1){let U=X[K];if(U==null)continue;switch(typeof U){case"function":{let H=W[K];if(typeof H==="function")H();else U(null);break}case"object":{U.current=null;break}default:}}}}}}var uA=p(Y0(),1);var dA=p(Y0(),1),ZI=parseInt(dA.version,10);function Oz(J){return ZI>=J}function Bq(J){if(!uA.isValidElement(J))return null;let X=J,Y=X.props;return(Oz(19)?Y?.ref:X.ref)??null}function XX(J,X){if(J&&!X)return J;if(!J&&X)return X;if(J||X)return{...J,...X};return}function pA(J,X){let Y={};for(let W in J){let K=J[W];if(X?.hasOwnProperty(W)){let U=X[W](K);if(U!=null)Object.assign(Y,U);continue}if(K===!0)Y[`data-${W.toLowerCase()}`]="";else if(K)Y[`data-${W.toLowerCase()}`]=K.toString()}return Y}function cA(J,X){return typeof J==="function"?J(X):J}function lA(J,X){return typeof J==="function"?J(X):J}var YX={};function T5(J,X,Y,W,K){let U={...Lq(J,YX)};if(X)U=$X(U,X);if(Y)U=$X(U,Y);if(W)U=$X(U,W);if(K)U=$X(U,K);return U}function iA(J){if(J.length===0)return YX;if(J.length===1)return Lq(J[0],YX);let X={...Lq(J[0],YX)};for(let Y=1;Y<J.length;Y+=1)X=$X(X,J[Y]);return X}function $X(J,X){if(rA(X))return X(J);return JI(J,X)}function JI(J,X){if(!X)return J;for(let Y in X){let W=X[Y];switch(Y){case"style":{J[Y]=XX(J.style,W);break}case"className":{J[Y]=Vq(J.className,W);break}default:if(XI(Y,W))J[Y]=$I(J[Y],W);else J[Y]=W}}return J}function XI(J,X){let Y=J.charCodeAt(0),W=J.charCodeAt(1),K=J.charCodeAt(2);return Y===111&&W===110&&K>=65&&K<=90&&(typeof X==="function"||typeof X>"u")}function rA(J){return typeof J==="function"}function Lq(J,X){if(rA(J))return J(X);return J??YX}function $I(J,X){if(!X)return J;if(!J)return X;return(Y)=>{if(YI(Y)){let K=Y;uY(K);let U=X(K);if(!K.baseUIHandlerPrevented)J?.(K);return U}let W=X(Y);return J?.(Y),W}}function uY(J){return J.preventBaseUIHandler=()=>{J.baseUIHandlerPrevented=!0},J}function Vq(J,X){if(X){if(J)return X+" "+J;return X}return J}function YI(J){return J!=null&&typeof J==="object"&&"nativeEvent"in J}function pY(){}var e2=Object.freeze([]),v1=Object.freeze({});var aA=500,sA=500,oA={style:{transition:"none"}},cY="data-base-ui-click-trigger",nA={fallbackAxisSide:"none"},lY={fallbackAxisSide:"end"},tA={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Fq=p(Y0(),1);function v0(J,X,Y={}){let W=X.render,K=GI(X,Y);if(Y.enabled===!1)return null;let U=Y.state??v1;return QI(J,W,K,U)}function GI(J,X={}){let{className:Y,style:W,render:K}=J,{state:U=v1,ref:H,props:q,stateAttributesMapping:L,enabled:V=!0}=X,N=V?cA(Y,U):void 0,F=V?lA(W,U):void 0,k=V?pA(U,L):v1,j=V?XX(k,Array.isArray(q)?iA(q):q)??v1:v1;if(typeof document<"u")if(!V)D5(null,null);else if(Array.isArray(H))j.ref=gA([j.ref,Bq(K),...H]);else j.ref=D5(j.ref,Bq(K),H);if(!V)return v1;if(N!==void 0)j.className=Vq(j.className,N);if(F!==void 0)j.style=XX(j.style,F);return j}function QI(J,X,Y,W){if(X){if(typeof X==="function")return X(Y,W);let K=T5(Y,X.props);return K.ref=Y.ref,iY.cloneElement(X,K)}if(J){if(typeof J==="string")return WI(J,Y)}throw Error("Base UI: Render element or function are not defined.")}function WI(J,X){if(J==="button")return Fq.createElement("button",{type:"button",...X,key:X.key});if(J==="img")return Fq.createElement("img",{alt:"",...X,key:X.key});return iY.createElement(J,X)}var B0={};Vz(B0,{windowResize:()=>fI,wheel:()=>CI,triggerPress:()=>UI,triggerHover:()=>_I,triggerFocus:()=>qI,trackPress:()=>kI,siblingOpen:()=>yI,scrub:()=>SI,pointer:()=>PI,outsidePress:()=>HI,none:()=>KI,listNavigation:()=>vI,linkPress:()=>VI,keyboard:()=>hI,itemPress:()=>BI,inputPaste:()=>TI,inputClear:()=>OI,inputChange:()=>MI,inputBlur:()=>DI,incrementPress:()=>jI,imperativeAction:()=>gI,focusOut:()=>xI,escapeKey:()=>EI,drag:()=>II,disabled:()=>RI,decrementPress:()=>AI,closePress:()=>LI,clearPress:()=>FI,chipRemovePress:()=>NI,cancelOpen:()=>bI});var KI="none",UI="trigger-press",_I="trigger-hover",qI="trigger-focus",HI="outside-press",BI="item-press",LI="close-press",VI="link-press",FI="clear-press",NI="chip-remove-press",kI="track-press",jI="increment-press",AI="decrement-press",MI="input-change",OI="input-clear",DI="input-blur",TI="input-paste",xI="focus-out",EI="escape-key",vI="list-navigation",hI="keyboard",PI="pointer",II="drag",CI="wheel",SI="scrub",bI="cancel-open",yI="sibling-open",RI="disabled",gI="imperative-action",fI="window-resize";function P0(J,X,Y,W){let K=!1,U=!1,H=W??v1;return{reason:J,event:X??new Event("base-ui"),cancel(){K=!0},allowPropagation(){U=!0},get isCanceled(){return K},get isPropagationAllowed(){return U},trigger:Y,...H}}var rY=p(Y0(),1);var mI=p(Y0(),1),eA={...mI};var wM=0;function dI(J,X="mui"){let[Y,W]=rY.useState(J),K=J||Y;return rY.useEffect(()=>{if(Y==null)wM+=1,W(`${X}-${wM}`)},[Y,X]),K}var zM=eA.useId;function X2(J,X){if(zM!==void 0){let Y=zM();return J??(X?`${X}-${Y}`:Y)}return dI(J,X)}function ww(J){return X2(J,"base-ui")}var Nq=p(m8(),1);var ZM=p(Y0(),1),uI=[];function Dz(J){ZM.useEffect(J,uI)}var aY=null,Sd=globalThis.requestAnimationFrame;class JM{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=(J)=>{this.isScheduled=!1;let X=this.callbacks,Y=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,Y>0)for(let W=0;W<X.length;W+=1)X[W]?.(J)};request(J){let X=this.nextId;this.nextId+=1,this.callbacks.push(J),this.callbacksCount+=1;let Y=!1;if(!this.isScheduled||Y)requestAnimationFrame(this.tick),this.isScheduled=!0;return X}cancel(J){let X=J-this.startId;if(X<0||X>=this.callbacks.length)return;this.callbacks[X]=null,this.callbacksCount-=1}}var sY=new JM;class x5{static create(){return new x5}static request(J){return sY.request(J)}static cancel(J){return sY.cancel(J)}currentId=aY;request(J){this.cancel(),this.currentId=sY.request(()=>{this.currentId=aY,J()})}cancel=()=>{if(this.currentId!==aY)sY.cancel(this.currentId),this.currentId=aY};disposeEffect=()=>{return this.cancel}}function E5(){let J=r1(x5.create).current;return Dz(J.disposeEffect),J}function O6(J){if(J==null)return J;return"current"in J?J.current:J}function Tz(J,X=!1,Y=!0){let W=E5();return F0((K,U=null)=>{W.cancel();let H=O6(J);if(H==null)return;if(typeof H.getAnimations!=="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)K();else W.request(()=>{function q(){if(!H)return;Promise.all(H.getAnimations().map((L)=>L.finished)).then(()=>{if(U!=null&&U.aborted)return;Nq.flushSync(K)}).catch(()=>{if(Y){if(U!=null&&U.aborted)return;Nq.flushSync(K)}else if(H.getAnimations().length>0&&H.getAnimations().some((L)=>L.pending||L.playState!=="finished"))q()})}if(X)W.request(q);else q()})})}var GX=p(Y0(),1);function xz(J,X=!1,Y=!1){let[W,K]=GX.useState(J&&X?"idle":void 0),[U,H]=GX.useState(J);if(J&&!U)H(!0),K("starting");if(!J&&U&&W!=="ending"&&!Y)K("ending");if(!J&&!U&&W==="ending")K(void 0);return k0(()=>{if(!J&&U&&W!=="ending"&&Y){let q=x5.request(()=>{K("ending")});return()=>{x5.cancel(q)}}return},[J,U,W,Y]),k0(()=>{if(!J||X)return;let q=x5.request(()=>{K(void 0)});return()=>{x5.cancel(q)}},[X,J]),k0(()=>{if(!J||!X)return;if(J&&U&&W!=="idle")K("starting");let q=x5.request(()=>{K("idle")});return()=>{x5.cancel(q)}},[X,J,U,K,W]),GX.useMemo(()=>({mounted:U,setMounted:H,transitionStatus:W}),[U,W])}var D6=p(Y0(),1);var pI=function(J){return J[J.None=0]="None",J[J.GuessFromOrder=1]="GuessFromOrder",J}({});function v5(J={}){let{label:X,metadata:Y,textRef:W,indexGuessBehavior:K,index:U}=J,{register:H,unregister:q,subscribeMapChange:L,elementsRef:V,labelsRef:N,nextIndexRef:F}=bA(),k=D6.useRef(-1),[j,O]=D6.useState(U??(K===pI.GuessFromOrder?()=>{if(k.current===-1){let x=F.current;F.current+=1,k.current=x}return k.current}:-1)),M=D6.useRef(null),v=D6.useCallback((x)=>{if(M.current=x,j!==-1&&x!==null){if(V.current[j]=x,N){let E=X!==void 0;N.current[j]=E?X:W?.current?.textContent??x.textContent}}},[j,V,N,X,W]);return k0(()=>{if(U!=null)return;let x=M.current;if(x)return H(x,Y),()=>{q(x)};return},[U,H,q,Y]),k0(()=>{if(U!=null)return;return L((x)=>{let E=M.current?x.get(M.current)?.index:null;if(E!=null)O(E)})},[U,L,O]),D6.useMemo(()=>({ref:v,index:j}),[j,v])}var QX=function(J){return J.startingStyle="data-starting-style",J.endingStyle="data-ending-style",J}({}),cI={[QX.startingStyle]:""},lI={[QX.endingStyle]:""},I2={transitionStatus(J){if(J==="starting")return cI;if(J==="ending")return lI;return null}};function XM(J){return J==null||J.hasAttribute("disabled")||J.getAttribute("aria-disabled")==="true"}var p7=p(Y0(),1);function nY(){return typeof window<"u"}function t5(J){if(tY(J))return(J.nodeName||"").toLowerCase();return"#document"}function u1(J){var X;return(J==null||(X=J.ownerDocument)==null?void 0:X.defaultView)||window}function e5(J){var X;return(X=(tY(J)?J.ownerDocument:J.document)||window.document)==null?void 0:X.documentElement}function tY(J){if(!nY())return!1;return J instanceof Node||J instanceof u1(J).Node}function L1(J){if(!nY())return!1;return J instanceof Element||J instanceof u1(J).Element}function O1(J){if(!nY())return!1;return J instanceof HTMLElement||J instanceof u1(J).HTMLElement}function oY(J){if(!nY()||typeof ShadowRoot>"u")return!1;return J instanceof ShadowRoot||J instanceof u1(J).ShadowRoot}var iI=new Set(["inline","contents"]);function T6(J){let{overflow:X,overflowX:Y,overflowY:W,display:K}=pw(J);return/auto|scroll|overlay|hidden|clip/.test(X+W+Y)&&!iI.has(K)}var rI=new Set(["table","td","th"]);function $M(J){return rI.has(t5(J))}var aI=[":popover-open",":modal"];function WX(J){return aI.some((X)=>{try{return J.matches(X)}catch(Y){return!1}})}var sI=["transform","translate","scale","rotate","perspective"],oI=["transform","translate","scale","rotate","perspective","filter"],nI=["paint","layout","strict","content"];function eY(J){let X=Ez(),Y=L1(J)?pw(J):J;return sI.some((W)=>Y[W]?Y[W]!=="none":!1)||(Y.containerType?Y.containerType!=="normal":!1)||!X&&(Y.backdropFilter?Y.backdropFilter!=="none":!1)||!X&&(Y.filter?Y.filter!=="none":!1)||oI.some((W)=>(Y.willChange||"").includes(W))||nI.some((W)=>(Y.contain||"").includes(W))}function YM(J){let X=w5(J);while(O1(X)&&!Z5(X)){if(eY(X))return X;else if(WX(X))return null;X=w5(X)}return null}function Ez(){if(typeof CSS>"u"||!CSS.supports)return!1;return CSS.supports("-webkit-backdrop-filter","none")}var tI=new Set(["html","body","#document"]);function Z5(J){return tI.has(t5(J))}function pw(J){return u1(J).getComputedStyle(J)}function KX(J){if(L1(J))return{scrollLeft:J.scrollLeft,scrollTop:J.scrollTop};return{scrollLeft:J.scrollX,scrollTop:J.scrollY}}function w5(J){if(t5(J)==="html")return J;let X=J.assignedSlot||J.parentNode||oY(J)&&J.host||e5(J);return oY(X)?X.host:X}function GM(J){let X=w5(J);if(Z5(X))return J.ownerDocument?J.ownerDocument.body:J.body;if(O1(X)&&T6(X))return X;return GM(X)}function z5(J,X,Y){var W;if(X===void 0)X=[];if(Y===void 0)Y=!0;let K=GM(J),U=K===((W=J.ownerDocument)==null?void 0:W.body),H=u1(K);if(U){let q=wG(H);return X.concat(H,H.visualViewport||[],T6(K)?K:[],q&&Y?z5(q):[])}return X.concat(K,z5(K,[],Y))}function wG(J){return J.parent&&Object.getPrototypeOf(J.parent)?J.frameElement:null}var kq;kq=new Set;function jq(...J){{let X=J.join(" ");if(!kq.has(X))kq.add(X),console.error(`Base UI: ${X}`)}}var zG=p(Y0(),1),ZG=zG.createContext(void 0);ZG.displayName="CompositeRootContext";function vz(J=!1){let X=zG.useContext(ZG);if(X===void 0&&!J)throw Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return X}var QM=p(Y0(),1);function WM(J){let{focusableWhenDisabled:X,disabled:Y,composite:W=!1,tabIndex:K=0,isNativeButton:U}=J,H=W&&X!==!1,q=W&&X===!1;return{props:QM.useMemo(()=>{let V={onKeyDown(N){if(Y&&X&&N.key!=="Tab")N.preventDefault()}};if(!W){if(V.tabIndex=K,!U&&Y)V.tabIndex=X?K:-1}if(U&&(X||H)||!U&&Y)V["aria-disabled"]=Y;if(U&&(!X||q))V.disabled=Y;return V},[W,Y,X,H,q,U,K])}}function J5(J={}){let{disabled:X=!1,focusableWhenDisabled:Y,tabIndex:W=0,native:K=!0}=J,U=p7.useRef(null),H=vz(!0)!==void 0,q=F0(()=>{let k=U.current;return Boolean(k?.tagName==="A"&&k?.href)}),{props:L}=WM({focusableWhenDisabled:Y,disabled:X,composite:H,tabIndex:W,isNativeButton:K});p7.useEffect(()=>{if(!U.current)return;let k=U.current.tagName==="BUTTON";if(K){if(!k)jq("A component that acts as a button was not rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is a real <button>, or set the `nativeButton` prop on the component to `false`.")}else if(k)jq("A component that acts as a button was rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is not a real <button>, or set the `nativeButton` prop on the component to `true`.")},[K]);let V=p7.useCallback(()=>{let k=U.current;if(!eI(k))return;if(H&&X&&L.disabled===void 0&&k.disabled)k.disabled=!1},[X,L.disabled,H]);k0(V,[V]);let N=p7.useCallback((k={})=>{let{onClick:j,onMouseDown:O,onKeyUp:M,onKeyDown:v,onPointerDown:x,...E}=k;return T5({type:K?"button":void 0,onClick(C){if(X){C.preventDefault();return}j?.(C)},onMouseDown(C){if(!X)O?.(C)},onKeyDown(C){if(!X)uY(C),v?.(C);if(C.baseUIHandlerPrevented)return;let h=C.target===C.currentTarget&&!K&&!q()&&!X,m=C.key==="Enter",R=C.key===" ";if(h){if(R||m)C.preventDefault();if(m)j?.(C)}},onKeyUp(C){if(!X)uY(C),M?.(C);if(C.baseUIHandlerPrevented)return;if(C.target===C.currentTarget&&!K&&!X&&C.key===" ")j?.(C)},onPointerDown(C){if(X){C.preventDefault();return}x?.(C)}},!K?{role:"button"}:void 0,L,E)},[X,L,K,q]),F=F0((k)=>{U.current=k,V()});return{getButtonProps:N,buttonRef:F}}function eI(J){return O1(J)&&J.tagName==="BUTTON"}var P4=typeof navigator<"u",Aq=wC(),KM=ZC(),JG=zC(),UM=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),_M=Aq.platform==="MacIntel"&&Aq.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Aq.platform),Wu=P4&&/firefox/i.test(JG),XG=P4&&/apple/i.test(navigator.vendor),Ku=P4&&/Edg/i.test(JG),$G=P4&&/android/i.test(KM)||/android/i.test(JG),qM=P4&&KM.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,YG=JG.includes("jsdom/");function wC(){if(!P4)return{platform:"",maxTouchPoints:-1};let J=navigator.userAgentData;if(J?.platform)return{platform:J.platform,maxTouchPoints:navigator.maxTouchPoints};return{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function zC(){if(!P4)return"";let J=navigator.userAgentData;if(J&&Array.isArray(J.brands))return J.brands.map(({brand:X,version:Y})=>`${X}/${Y}`).join(" ");return navigator.userAgent}function ZC(){if(!P4)return"";let J=navigator.userAgentData;if(J?.platform)return J.platform;return navigator.platform??""}var UX="data-base-ui-focusable",Mq="active",Oq="selected",hz="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",c8="ArrowLeft",l8="ArrowRight",_X="ArrowUp",c7="ArrowDown";function $2(J){let X=J.activeElement;while(X?.shadowRoot?.activeElement!=null)X=X.shadowRoot.activeElement;return X}function t0(J,X){if(!J||!X)return!1;let Y=X.getRootNode?.();if(J.contains(X))return!0;if(Y&&oY(Y)){let W=X;while(W){if(J===W)return!0;W=W.parentNode||W.host}}return!1}function f1(J){if("composedPath"in J)return J.composedPath()[0];return J.target}function h5(J,X){if(X==null)return!1;if("composedPath"in J)return J.composedPath().includes(X);let Y=J;return Y.target!=null&&X.contains(Y.target)}function HM(J){return J.matches("html,body")}function b1(J){return J?.ownerDocument||document}function qX(J){return O1(J)&&J.matches(hz)}function HX(J){if(!J)return!1;return J.getAttribute("role")==="combobox"&&qX(J)}function BM(J){if(!J||YG)return!0;try{return J.matches(":focus-visible")}catch(X){return!0}}function l7(J){if(!J)return null;return J.hasAttribute(UX)?J:J.querySelector(`[${UX}]`)||J}function i8(J,X,Y=!0){return J.filter((K)=>K.parentId===X&&(!Y||K.context?.open)).flatMap((K)=>[K,...i8(J,K.id,Y)])}function Dq(J,X){let Y=[],W=J.find((K)=>K.id===X)?.parentId;while(W){let K=J.find((U)=>U.id===W);if(W=K?.parentId,K)Y=Y.concat(K)}return Y}function Xw(J){J.preventDefault(),J.stopPropagation()}function LM(J){return"nativeEvent"in J}function GG(J){if(J.mozInputSource===0&&J.isTrusted)return!0;if($G&&J.pointerType)return J.type==="click"&&J.buttons===1;return J.detail===0&&!J.pointerType}function QG(J){if(YG)return!1;return!$G&&J.width===0&&J.height===0||$G&&J.width===1&&J.height===1&&J.pressure===0&&J.detail===0&&J.pointerType==="mouse"||J.width<1&&J.height<1&&J.pressure===0&&J.detail===0&&J.pointerType==="touch"}function P5(J,X){let Y=["mouse","pen"];if(!X)Y.push("",void 0);return Y.includes(J)}function WG(J){let X=J.type;return X==="click"||X==="mousedown"||X==="keydown"||X==="keyup"}var NM=["top","right","bottom","left"];var{min:I4,max:N2,round:C4,floor:S4}=Math,w8=(J)=>({x:J,y:J}),JC={left:"right",right:"left",bottom:"top",top:"bottom"},XC={start:"end",end:"start"};function LX(J,X,Y){return N2(J,I4(X,Y))}function z8(J,X){return typeof J==="function"?J(X):J}function tw(J){return J.split("-")[0]}function Z8(J){return J.split("-")[1]}function UG(J){return J==="x"?"y":"x"}function VX(J){return J==="y"?"height":"width"}var $C=new Set(["top","bottom"]);function C2(J){return $C.has(tw(J))?"y":"x"}function FX(J){return UG(C2(J))}function kM(J,X,Y){if(Y===void 0)Y=!1;let W=Z8(J),K=FX(J),U=VX(K),H=K==="x"?W===(Y?"end":"start")?"right":"left":W==="start"?"bottom":"top";if(X.reference[U]>X.floating[U])H=BX(H);return[H,BX(H)]}function jM(J){let X=BX(J);return[KG(J),X,KG(X)]}function KG(J){return J.replace(/start|end/g,(X)=>XC[X])}var VM=["left","right"],FM=["right","left"],YC=["top","bottom"],GC=["bottom","top"];function QC(J,X,Y){switch(J){case"top":case"bottom":if(Y)return X?FM:VM;return X?VM:FM;case"left":case"right":return X?YC:GC;default:return[]}}function AM(J,X,Y,W){let K=Z8(J),U=QC(tw(J),Y==="start",W);if(K){if(U=U.map((H)=>H+"-"+K),X)U=U.concat(U.map(KG))}return U}function BX(J){return J.replace(/left|right|bottom|top/g,(X)=>JC[X])}function WC(J){return{top:0,right:0,bottom:0,left:0,...J}}function _G(J){return typeof J!=="number"?WC(J):{top:J,right:J,bottom:J,left:J}}function i7(J){let{x:X,y:Y,width:W,height:K}=J;return{width:W,height:K,top:Y,left:X,right:X+W,bottom:Y+K,x:X,y:Y}}function qG(J,X,Y){return Math.floor(J/X)!==Y}function x6(J,X){return X<0||X>=J.current.length}function r7(J,X){return Tw(J,{disabledIndices:X})}function Pz(J,X){return Tw(J,{decrement:!0,startingIndex:J.current.length,disabledIndices:X})}function Tw(J,{startingIndex:X=-1,decrement:Y=!1,disabledIndices:W,amount:K=1}={}){let U=X;do U+=Y?-K:K;while(U>=0&&U<=J.current.length-1&&J8(J,U,W));return U}function NX(J,{event:X,orientation:Y,loopFocus:W,rtl:K,cols:U,disabledIndices:H,minIndex:q,maxIndex:L,prevIndex:V,stopEvent:N=!1}){let F=V,k=[],j={},O=!1;{let x=null,E=-1;J.current.forEach((I,C)=>{if(I==null)return;let h=I.closest('[role="row"]');if(h)O=!0;if(h!==x||E===-1)x=h,E+=1,k[E]=[];k[E].push(C),j[C]=E})}let M=O&&k.length>0&&k.some((x)=>x.length!==U);function v(x){if(!M||V===-1)return;let E=j[V];if(E==null)return;let I=k[E].indexOf(V),C=x==="up"?E-1:E+1;if(W){if(C<0)C=k.length-1;else if(C>=k.length)C=0}let h=new Set;while(C>=0&&C<k.length&&!h.has(C)){h.add(C);let m=k[C];if(m.length===0){C=x==="up"?C-1:C+1;continue}let R=Math.min(I,m.length-1);for(let S=R;S>=0;S-=1){let c=m[S];if(!J8(J,c,H))return c}if(C=x==="up"?C-1:C+1,W){if(C<0)C=k.length-1;else if(C>=k.length)C=0}}return}if(X.key===_X){let x=v("up");if(x!==void 0){if(N)Xw(X);F=x}else{if(N)Xw(X);if(V===-1)F=L;else if(F=Tw(J,{startingIndex:F,amount:U,decrement:!0,disabledIndices:H}),W&&(V-U<q||F<0)){let E=V%U,I=L%U,C=L-(I-E);if(I===E)F=L;else F=I>E?C:C-U}if(x6(J,F))F=V}}if(X.key===c7){let x=v("down");if(x!==void 0){if(N)Xw(X);F=x}else{if(N)Xw(X);if(V===-1)F=q;else if(F=Tw(J,{startingIndex:V,amount:U,disabledIndices:H}),W&&V+U>L)F=Tw(J,{startingIndex:V%U-U,amount:U,disabledIndices:H});if(x6(J,F))F=V}}if(Y==="both"){let x=S4(V/U);if(X.key===(K?c8:l8)){if(N)Xw(X);if(V%U!==U-1){if(F=Tw(J,{startingIndex:V,disabledIndices:H}),W&&qG(F,U,x))F=Tw(J,{startingIndex:V-V%U-1,disabledIndices:H})}else if(W)F=Tw(J,{startingIndex:V-V%U-1,disabledIndices:H});if(qG(F,U,x))F=V}if(X.key===(K?l8:c8)){if(N)Xw(X);if(V%U!==0){if(F=Tw(J,{startingIndex:V,decrement:!0,disabledIndices:H}),W&&qG(F,U,x))F=Tw(J,{startingIndex:V+(U-V%U),decrement:!0,disabledIndices:H})}else if(W)F=Tw(J,{startingIndex:V+(U-V%U),decrement:!0,disabledIndices:H});if(qG(F,U,x))F=V}let E=S4(L/U)===x;if(x6(J,F))if(W&&E)F=X.key===(K?l8:c8)?L:Tw(J,{startingIndex:V-V%U-1,disabledIndices:H});else F=V}return F}function kX(J,X,Y){let W=[],K=0;return J.forEach(({width:U,height:H},q)=>{if(U>X)throw Error(`[Floating UI]: Invalid grid - item width at index ${q} is greater than grid columns`);let L=!1;if(Y)K=0;while(!L){let V=[];for(let N=0;N<U;N+=1)for(let F=0;F<H;F+=1)V.push(K+N+F*X);if(K%X+U<=X&&V.every((N)=>W[N]==null))V.forEach((N)=>{W[N]=q}),L=!0;else K+=1}}),[...W]}function jX(J,X,Y,W,K){if(J===-1)return-1;let U=Y.indexOf(J),H=X[J];switch(K){case"tl":return U;case"tr":if(!H)return U;return U+H.width-1;case"bl":if(!H)return U;return U+(H.height-1)*W;case"br":return Y.lastIndexOf(J);default:return-1}}function AX(J,X){return X.flatMap((Y,W)=>J.includes(Y)?[W]:[])}function J8(J,X,Y){if(typeof Y==="function")return Y(X);if(Y)return Y.includes(X);let W=J.current[X];if(!W)return!1;return W.hasAttribute("disabled")||W.getAttribute("aria-disabled")==="true"}/*!
243
+ * tabbable 6.3.0
244
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
245
+ */var KC=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],HG=KC.join(","),OM=typeof Element>"u",Iz=OM?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,BG=!OM&&Element.prototype.getRootNode?function(J){var X;return J===null||J===void 0?void 0:(X=J.getRootNode)===null||X===void 0?void 0:X.call(J)}:function(J){return J===null||J===void 0?void 0:J.ownerDocument},MX=function(X,Y){var W;if(Y===void 0)Y=!0;var K=X===null||X===void 0?void 0:(W=X.getAttribute)===null||W===void 0?void 0:W.call(X,"inert"),U=K===""||K==="true",H=U||Y&&X&&MX(X.parentNode);return H},UC=function(X){var Y,W=X===null||X===void 0?void 0:(Y=X.getAttribute)===null||Y===void 0?void 0:Y.call(X,"contenteditable");return W===""||W==="true"},DM=function(X,Y,W){if(MX(X))return[];var K=Array.prototype.slice.apply(X.querySelectorAll(HG));if(Y&&Iz.call(X,HG))K.unshift(X);return K=K.filter(W),K},LG=function(X,Y,W){var K=[],U=Array.from(X);while(U.length){var H=U.shift();if(MX(H,!1))continue;if(H.tagName==="SLOT"){var q=H.assignedElements(),L=q.length?q:H.children,V=LG(L,!0,W);if(W.flatten)K.push.apply(K,V);else K.push({scopeParent:H,candidates:V})}else{var N=Iz.call(H,HG);if(N&&W.filter(H)&&(Y||!X.includes(H)))K.push(H);var F=H.shadowRoot||typeof W.getShadowRoot==="function"&&W.getShadowRoot(H),k=!MX(F,!1)&&(!W.shadowRootFilter||W.shadowRootFilter(H));if(F&&k){var j=LG(F===!0?H.children:F.children,!0,W);if(W.flatten)K.push.apply(K,j);else K.push({scopeParent:H,candidates:j})}else U.unshift.apply(U,H.children)}}return K},TM=function(X){return!isNaN(parseInt(X.getAttribute("tabindex"),10))},xM=function(X){if(!X)throw Error("No node provided");if(X.tabIndex<0){if((/^(AUDIO|VIDEO|DETAILS)$/.test(X.tagName)||UC(X))&&!TM(X))return 0}return X.tabIndex},_C=function(X,Y){var W=xM(X);if(W<0&&Y&&!TM(X))return 0;return W},qC=function(X,Y){return X.tabIndex===Y.tabIndex?X.documentOrder-Y.documentOrder:X.tabIndex-Y.tabIndex},EM=function(X){return X.tagName==="INPUT"},HC=function(X){return EM(X)&&X.type==="hidden"},BC=function(X){var Y=X.tagName==="DETAILS"&&Array.prototype.slice.apply(X.children).some(function(W){return W.tagName==="SUMMARY"});return Y},LC=function(X,Y){for(var W=0;W<X.length;W++)if(X[W].checked&&X[W].form===Y)return X[W]},VC=function(X){if(!X.name)return!0;var Y=X.form||BG(X),W=function(q){return Y.querySelectorAll('input[type="radio"][name="'+q+'"]')},K;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape==="function")K=W(window.CSS.escape(X.name));else try{K=W(X.name)}catch(H){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",H.message),!1}var U=LC(K,X.form);return!U||U===X},FC=function(X){return EM(X)&&X.type==="radio"},NC=function(X){return FC(X)&&!VC(X)},kC=function(X){var Y,W=X&&BG(X),K=(Y=W)===null||Y===void 0?void 0:Y.host,U=!1;if(W&&W!==X){var H,q,L;U=!!((H=K)!==null&&H!==void 0&&(q=H.ownerDocument)!==null&&q!==void 0&&q.contains(K)||X!==null&&X!==void 0&&(L=X.ownerDocument)!==null&&L!==void 0&&L.contains(X));while(!U&&K){var V,N,F;W=BG(K),K=(V=W)===null||V===void 0?void 0:V.host,U=!!((N=K)!==null&&N!==void 0&&(F=N.ownerDocument)!==null&&F!==void 0&&F.contains(K))}}return U},MM=function(X){var Y=X.getBoundingClientRect(),W=Y.width,K=Y.height;return W===0&&K===0},jC=function(X,Y){var{displayCheck:W,getShadowRoot:K}=Y;if(W==="full-native"){if("checkVisibility"in X){var U=X.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!U}}if(getComputedStyle(X).visibility==="hidden")return!0;var H=Iz.call(X,"details>summary:first-of-type"),q=H?X.parentElement:X;if(Iz.call(q,"details:not([open]) *"))return!0;if(!W||W==="full"||W==="full-native"||W==="legacy-full"){if(typeof K==="function"){var L=X;while(X){var V=X.parentElement,N=BG(X);if(V&&!V.shadowRoot&&K(V)===!0)return MM(X);else if(X.assignedSlot)X=X.assignedSlot;else if(!V&&N!==X.ownerDocument)X=N.host;else X=V}X=L}if(kC(X))return!X.getClientRects().length;if(W!=="legacy-full")return!0}else if(W==="non-zero-area")return MM(X);return!1},AC=function(X){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(X.tagName)){var Y=X.parentElement;while(Y){if(Y.tagName==="FIELDSET"&&Y.disabled){for(var W=0;W<Y.children.length;W++){var K=Y.children.item(W);if(K.tagName==="LEGEND")return Iz.call(Y,"fieldset[disabled] *")?!0:!K.contains(X)}return!0}Y=Y.parentElement}}return!1},Tq=function(X,Y){if(Y.disabled||MX(Y)||HC(Y)||jC(Y,X)||BC(Y)||AC(Y))return!1;return!0},xq=function(X,Y){if(NC(Y)||xM(Y)<0||!Tq(X,Y))return!1;return!0},MC=function(X){var Y=parseInt(X.getAttribute("tabindex"),10);if(isNaN(Y)||Y>=0)return!0;return!1},vM=function(X){var Y=[],W=[];return X.forEach(function(K,U){var H=!!K.scopeParent,q=H?K.scopeParent:K,L=_C(q,H),V=H?vM(K.candidates):q;if(L===0)H?Y.push.apply(Y,V):Y.push(q);else W.push({documentOrder:U,tabIndex:L,item:K,isScope:H,content:V})}),W.sort(qC).reduce(function(K,U){return U.isScope?K.push.apply(K,U.content):K.push(U.content),K},[]).concat(Y)},a7=function(X,Y){Y=Y||{};var W;if(Y.getShadowRoot)W=LG([X],Y.includeContainer,{filter:xq.bind(null,Y),flatten:!1,getShadowRoot:Y.getShadowRoot,shadowRootFilter:MC});else W=DM(X,Y.includeContainer,xq.bind(null,Y));return vM(W)},hM=function(X,Y){Y=Y||{};var W;if(Y.getShadowRoot)W=LG([X],Y.includeContainer,{filter:Tq.bind(null,Y),flatten:!0,getShadowRoot:Y.getShadowRoot});else W=DM(X,Y.includeContainer,Tq.bind(null,Y));return W},Eq=function(X,Y){if(Y=Y||{},!X)throw Error("No node provided");if(Iz.call(X,HG)===!1)return!1;return xq(Y,X)};var s7=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver==="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function PM(J,X){let Y=a7(J,s7()),W=Y.length;if(W===0)return;let K=$2(b1(J)),U=Y.indexOf(K),H=U===-1?X===1?0:W-1:U+X;return Y[H]}function Cz(J){return PM(b1(J).body,1)||J}function VG(J){return PM(b1(J).body,-1)||J}function IM(J,X){if(!J)return null;let Y=a7(b1(J).body,s7()),W=Y.length;if(W===0)return null;let K=Y.indexOf(J);if(K===-1)return null;let U=(K+X+W)%W;return Y[U]}function CM(J){return IM(J,1)}function SM(J){return IM(J,-1)}function E6(J,X){let Y=X||J.currentTarget,W=J.relatedTarget;return!W||!t0(Y,W)}function bM(J){a7(J,s7()).forEach((Y)=>{Y.dataset.tabindex=Y.getAttribute("tabindex")||"",Y.setAttribute("tabindex","-1")})}function vq(J){J.querySelectorAll("[data-tabindex]").forEach((Y)=>{let W=Y.dataset.tabindex;if(delete Y.dataset.tabindex,W)Y.setAttribute("tabindex",W);else Y.removeAttribute("tabindex")})}var o7="ArrowUp",b4="ArrowDown",Sz="ArrowLeft",n7="ArrowRight",bz="Home",yz="End",hq=new Set([Sz,n7]),RM=new Set([Sz,n7,bz,yz]),Pq=new Set([o7,b4]),gM=new Set([o7,b4,bz,yz]),Iq=new Set([...hq,...Pq]),fM=new Set([...Iq,bz,yz]),NG=new Set([o7,b4,Sz,n7,bz,yz]),OC="Shift",DC="Control",TC="Alt",xC="Meta",mM=new Set([OC,DC,TC,xC]);function EC(J){return O1(J)&&J.tagName==="INPUT"}function Cq(J){if(EC(J)&&J.selectionStart!=null)return!0;if(O1(J)&&J.tagName==="TEXTAREA")return!0;return!1}function Sq(J,X,Y,W){if(!J||!X||!X.scrollTo)return;let{scrollLeft:K,scrollTop:U}=J,H=J.clientWidth<J.scrollWidth,q=J.clientHeight<J.scrollHeight;if(H&&W!=="vertical"){let L=yM(J,X,"left"),V=FG(J),N=FG(X);if(Y==="ltr"){if(L+X.offsetWidth+N.scrollMarginRight>J.scrollLeft+J.clientWidth-V.scrollPaddingRight)K=L+X.offsetWidth+N.scrollMarginRight-J.clientWidth+V.scrollPaddingRight;else if(L-N.scrollMarginLeft<J.scrollLeft+V.scrollPaddingLeft)K=L-N.scrollMarginLeft-V.scrollPaddingLeft}if(Y==="rtl"){if(L-N.scrollMarginRight<J.scrollLeft+V.scrollPaddingLeft)K=L-N.scrollMarginLeft-V.scrollPaddingLeft;else if(L+X.offsetWidth+N.scrollMarginRight>J.scrollLeft+J.clientWidth-V.scrollPaddingRight)K=L+X.offsetWidth+N.scrollMarginRight-J.clientWidth+V.scrollPaddingRight}}if(q&&W!=="horizontal"){let L=yM(J,X,"top"),V=FG(J),N=FG(X);if(L-N.scrollMarginTop<J.scrollTop+V.scrollPaddingTop)U=L-N.scrollMarginTop-V.scrollPaddingTop;else if(L+X.offsetHeight+N.scrollMarginBottom>J.scrollTop+J.clientHeight-V.scrollPaddingBottom)U=L+X.offsetHeight+N.scrollMarginBottom-J.clientHeight+V.scrollPaddingBottom}J.scrollTo({left:K,top:U,behavior:"auto"})}function yM(J,X,Y){let W=Y==="left"?"offsetLeft":"offsetTop",K=0;while(X.offsetParent){if(K+=X[W],X.offsetParent===J)break;X=X.offsetParent}return K}function FG(J){let X=getComputedStyle(J);return{scrollMarginTop:parseFloat(X.scrollMarginTop)||0,scrollMarginRight:parseFloat(X.scrollMarginRight)||0,scrollMarginBottom:parseFloat(X.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(X.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(X.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(X.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(X.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(X.scrollPaddingLeft)||0}}var dM=p(Y0(),1);function Uw(J){let X=r1(vC,J).current;return X.next=J,k0(X.effect),X}function vC(J){let X={current:J,next:J,effect:()=>{X.current=X.next}};return X}function I5(J){let{enabled:X=!0,open:Y,ref:W,onComplete:K}=J,U=Uw(Y),H=F0(K),q=Tz(W,Y);dM.useEffect(()=>{if(!X)return;q(()=>{if(Y===U.current)H()})},[X,Y,H,q,U])}var b5=p(Y0(),1);function xw(J){return J?.ownerDocument||document}var OX=0;class C5{static create(){return new C5}currentId=OX;start(J,X){this.clear(),this.currentId=setTimeout(()=>{this.currentId=OX,X()},J)}isStarted(){return this.currentId!==OX}clear=()=>{if(this.currentId!==OX)clearTimeout(this.currentId),this.currentId=OX};disposeEffect=()=>{return this.clear}}function a1(){let J=r1(C5.create).current;return Dz(J.disposeEffect),J}var uM={},pM={},cM="";function hC(J){if(typeof document>"u")return!1;let X=xw(J);return u1(X).innerWidth-X.documentElement.clientWidth>0}function PC(J){let X=xw(J),Y=X.documentElement,W=X.body,K=T6(Y)?Y:W,U=K.style.overflow;return K.style.overflow="hidden",()=>{K.style.overflow=U}}function IC(J){let X=xw(J),Y=X.documentElement,W=X.body,K=u1(Y),U=0,H=0,q=x5.create(),L=typeof CSS<"u"&&CSS.supports?.("scrollbar-gutter","stable");if(UM&&(K.visualViewport?.scale??1)!==1)return()=>{};function V(){let k=K.getComputedStyle(Y),j=K.getComputedStyle(W),v=(k.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";U=Y.scrollTop,H=Y.scrollLeft,uM={scrollbarGutter:Y.style.scrollbarGutter,overflowY:Y.style.overflowY,overflowX:Y.style.overflowX},cM=Y.style.scrollBehavior,pM={position:W.style.position,height:W.style.height,width:W.style.width,boxSizing:W.style.boxSizing,overflowY:W.style.overflowY,overflowX:W.style.overflowX,scrollBehavior:W.style.scrollBehavior};let x=Y.scrollHeight>Y.clientHeight,E=Y.scrollWidth>Y.clientWidth,I=k.overflowY==="scroll"||j.overflowY==="scroll",C=k.overflowX==="scroll"||j.overflowX==="scroll",h=Math.max(0,K.innerWidth-Y.clientWidth),m=Math.max(0,K.innerHeight-Y.clientHeight),R=parseFloat(j.marginTop)+parseFloat(j.marginBottom),S=parseFloat(j.marginLeft)+parseFloat(j.marginRight),c=T6(Y)?Y:W;if(L){Y.style.scrollbarGutter=v,c.style.overflowY="hidden",c.style.overflowX="hidden";return}if(Object.assign(Y.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),x||I)Y.style.overflowY="scroll";if(E||C)Y.style.overflowX="scroll";Object.assign(W.style,{position:"relative",height:R||m?`calc(100dvh - ${R+m}px)`:"100dvh",width:S||h?`calc(100vw - ${S+h}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),W.scrollTop=U,W.scrollLeft=H,Y.setAttribute("data-base-ui-scroll-locked",""),Y.style.scrollBehavior="unset"}function N(){if(Object.assign(Y.style,uM),Object.assign(W.style,pM),!L)Y.scrollTop=U,Y.scrollLeft=H,Y.removeAttribute("data-base-ui-scroll-locked"),Y.style.scrollBehavior=cM}function F(){N(),q.request(V)}return V(),K.addEventListener("resize",F),()=>{if(q.cancel(),N(),typeof K.removeEventListener==="function")K.removeEventListener("resize",F)}}class lM{lockCount=0;restore=null;timeoutLock=C5.create();timeoutUnlock=C5.create();acquire(J){if(this.lockCount+=1,this.lockCount===1&&this.restore===null)this.timeoutLock.start(0,()=>this.lock(J));return this.release}release=()=>{if(this.lockCount-=1,this.lockCount===0&&this.restore)this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{if(this.lockCount===0&&this.restore)this.restore?.(),this.restore=null};lock(J){if(this.lockCount===0||this.restore!==null)return;let Y=xw(J).documentElement,W=u1(Y).getComputedStyle(Y).overflowY;if(W==="hidden"||W==="clip"){this.restore=pY;return}let K=_M||!hC(J);this.restore=K?PC(J):IC(J)}}var CC=new lM;function kG(J=!0,X=null){k0(()=>{if(!J)return;return CC.acquire(X)},[J,X])}var S2=p(Y0(),1);var AG=p(Y0(),1);var y4=p(Y0(),1);function jG(){let J=new Map;return{emit(X,Y){J.get(X)?.forEach((W)=>W(Y))},on(X,Y){if(!J.has(X))J.set(X,new Set);J.get(X).add(Y)},off(X,Y){J.get(X)?.delete(Y)}}}class t7{nodesRef={current:[]};events=jG();addNode(J){this.nodesRef.current.push(J)}removeNode(J){let X=this.nodesRef.current.findIndex((Y)=>Y===J);if(X!==-1)this.nodesRef.current.splice(X,1)}}var bq=p(E1(),1),yq=y4.createContext(null);yq.displayName="FloatingNodeContext";var Rq=y4.createContext(null);Rq.displayName="FloatingTreeContext";var ew=()=>y4.useContext(yq)?.id||null,Y2=(J)=>{let X=y4.useContext(Rq);return J??X};function DX(J){let X=X2(),Y=Y2(J),W=ew();return k0(()=>{if(!X)return;let K={id:X,parentId:W};return Y?.addNode(K),()=>{Y?.removeNode(K)}},[Y,X,W]),X}function gq(J){let{children:X,id:Y}=J,W=ew();return bq.jsx(yq.Provider,{value:y4.useMemo(()=>({id:Y,parentId:W}),[Y,W]),children:X})}function fq(J){let{children:X,externalTree:Y}=J,W=r1(()=>Y??new t7).current;return bq.jsx(Rq.Provider,{value:W,children:X})}function X5(J){return`data-base-ui-${J}`}var Kp=X5("safe-polygon"),Up=`button,[role="button"],select,[tabindex]:not([tabindex="-1"]),${hz}`;function Rz(J,X,Y){if(Y&&!P5(Y))return 0;if(typeof J==="number")return J;if(typeof J==="function"){let W=J();if(typeof W==="number")return W;return W?.[X]}return J?.[X]}var iM=p(E1(),1),mq=S2.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new C5,currentIdRef:{current:null},currentContextRef:{current:null}});mq.displayName="FloatingDelayGroupContext";function dq(J){let{children:X,delay:Y,timeoutMs:W=0}=J,K=S2.useRef(Y),U=S2.useRef(Y),H=S2.useRef(null),q=S2.useRef(null),L=a1();return iM.jsx(mq.Provider,{value:S2.useMemo(()=>({hasProvider:!0,delayRef:K,initialDelayRef:U,currentIdRef:H,timeoutMs:W,currentContextRef:q,timeout:L}),[W,L]),children:X})}function uq(J,X={open:!1}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("floatingId"),{enabled:K=!0,open:U}=X,H=S2.useContext(mq),{currentIdRef:q,delayRef:L,timeoutMs:V,initialDelayRef:N,currentContextRef:F,hasProvider:k,timeout:j}=H,[O,M]=S2.useState(!1);return k0(()=>{function v(){M(!1),F.current?.setIsInstantPhase(!1),q.current=null,F.current=null,L.current=N.current}if(!K)return;if(!q.current)return;if(!U&&q.current===W){if(M(!1),V){let x=W;return j.start(V,()=>{if(Y.select("open")||q.current&&q.current!==x)return;v()}),()=>{j.clear()}}v()}return},[K,U,W,q,L,V,N,F,j,Y]),k0(()=>{if(!K)return;if(!U)return;let v=F.current,x=q.current;if(j.clear(),F.current={onOpenChange:Y.setOpen,setIsInstantPhase:M},q.current=W,L.current={open:0,close:Rz(N.current,"close")},x!==null&&x!==W)M(!0),v?.setIsInstantPhase(!0),v?.onOpenChange(!1,P0(B0.none));else M(!1),v?.setIsInstantPhase(!1)},[K,U,W,Y,q,L,V,N,F,j]),k0(()=>{return()=>{F.current=null}},[F]),S2.useMemo(()=>({hasProvider:k,delayRef:L,isInstantPhase:O}),[k,L,O])}var Bw=p(Y0(),1);var MG={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};var OG=p(Y0(),1);var rM=p(E1(),1),r8=OG.forwardRef(function(X,Y){let[W,K]=OG.useState();return k0(()=>{if(XG)K("button")},[]),rM.jsx("span",{...X,ref:Y,style:MG,"aria-hidden":W?void 0:!0,...{tabIndex:0,role:W},"data-base-ui-focus-guard":""})});r8.displayName="FocusGuard";var aM=0;function gz(J,X={}){let{preventScroll:Y=!1,cancelPrevious:W=!0,sync:K=!1}=X;if(W)cancelAnimationFrame(aM);let U=()=>J?.focus({preventScroll:Y});if(K)U();else aM=requestAnimationFrame(U)}var fz={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function sM(J){if(J==="inert")return fz.inert;if(J==="aria-hidden")return fz["aria-hidden"];return fz.none}var DG=new WeakSet,TG={},pq=0;var oM=(J)=>J&&(J.host||oM(J.parentNode)),SC=(J,X)=>X.map((Y)=>{if(J.contains(Y))return Y;let W=oM(Y);if(J.contains(W))return W;return null}).filter((Y)=>Y!=null);function bC(J,X,Y,W){let U=W?"inert":Y?"aria-hidden":null,H=SC(X,J),q=new Set,L=new Set(H),V=[];if(!TG["data-base-ui-inert"])TG["data-base-ui-inert"]=new WeakMap;let N=TG["data-base-ui-inert"];H.forEach(F),k(X),q.clear();function F(j){if(!j||q.has(j))return;if(q.add(j),j.parentNode)F(j.parentNode)}function k(j){if(!j||L.has(j))return;[].forEach.call(j.children,(O)=>{if(t5(O)==="script")return;if(q.has(O))k(O);else{let M=U?O.getAttribute(U):null,v=M!==null&&M!=="false",x=sM(U),E=(x.get(O)||0)+1,I=(N.get(O)||0)+1;if(x.set(O,E),N.set(O,I),V.push(O),E===1&&v)DG.add(O);if(I===1)O.setAttribute("data-base-ui-inert","");if(!v&&U)O.setAttribute(U,U==="inert"?"":"true")}})}return pq+=1,()=>{if(V.forEach((j)=>{let O=sM(U),v=(O.get(j)||0)-1,x=(N.get(j)||0)-1;if(O.set(j,v),N.set(j,x),!v){if(!DG.has(j)&&U)j.removeAttribute(U);DG.delete(j)}if(!x)j.removeAttribute("data-base-ui-inert")}),pq-=1,!pq)fz.inert=new WeakMap,fz["aria-hidden"]=new WeakMap,fz.none=new WeakMap,DG=new WeakSet,TG={}}}function nM(J,X=!1,Y=!1){let W=b1(J[0]).body;return bC(J.concat(Array.from(W.querySelectorAll("[aria-live]"))),W,X,Y)}var $w=p(Y0(),1),cq=p(m8(),1);var e7=p(E1(),1),lq=$w.createContext(null);lq.displayName="PortalContext";var iq=()=>$w.useContext(lq),yC=X5("portal");function xG(J={}){let{ref:X,container:Y,componentProps:W=v1,elementProps:K,elementState:U}=J,H=X2(),L=iq()?.portalNode,[V,N]=$w.useState(null),[F,k]=$w.useState(null),j=$w.useRef(null);k0(()=>{if(Y===null){if(j.current)j.current=null,k(null),N(null);return}if(H==null)return;let v=(Y&&(tY(Y)?Y:Y.current))??L??document.body;if(v==null){if(j.current)j.current=null,k(null),N(null);return}if(j.current!==v)j.current=v,k(null),N(v)},[Y,L,H]);let O=v0("div",W,{ref:[X,k],state:U,props:[{id:H,[yC]:""},K]});return{portalNode:F,portalSubtree:V&&O?cq.createPortal(O,V):null}}var mz=$w.forwardRef(function(X,Y){let{children:W,container:K,className:U,render:H,renderGuards:q,...L}=X,{portalNode:V,portalSubtree:N}=xG({container:K,ref:Y,componentProps:X,elementProps:L}),F=$w.useRef(null),k=$w.useRef(null),j=$w.useRef(null),O=$w.useRef(null),[M,v]=$w.useState(null),x=M?.modal,E=M?.open,I=typeof q==="boolean"?q:!!M&&!M.modal&&M.open&&!!V;$w.useEffect(()=>{if(!V||x)return;function h(m){if(V&&E6(m))(m.type==="focusin"?vq:bM)(V)}return V.addEventListener("focusin",h,!0),V.addEventListener("focusout",h,!0),()=>{V.removeEventListener("focusin",h,!0),V.removeEventListener("focusout",h,!0)}},[V,x]),$w.useEffect(()=>{if(!V||E)return;vq(V)},[E,V]);let C=$w.useMemo(()=>({beforeOutsideRef:F,afterOutsideRef:k,beforeInsideRef:j,afterInsideRef:O,portalNode:V,setFocusManagerState:v}),[V]);return e7.jsxs($w.Fragment,{children:[N,e7.jsxs(lq.Provider,{value:C,children:[I&&V&&e7.jsx(r8,{"data-type":"outside",ref:F,onFocus:(h)=>{if(E6(h,V))j.current?.focus();else{let m=M?M.domReference:null;VG(m)?.focus()}}}),I&&V&&e7.jsx("span",{"aria-owns":V.id,style:tA}),V&&cq.createPortal(W,V),I&&V&&e7.jsx(r8,{"data-type":"outside",ref:k,onFocus:(h)=>{if(E6(h,V))O.current?.focus();else{let m=M?M.domReference:null;if(Cz(m)?.focus(),M?.closeOnFocusOut)M?.onOpenChange(!1,P0(B0.focusOut,h.nativeEvent))}}})]})]})});mz.displayName="FloatingPortal";var TX=p(E1(),1);function RC(J,X){let Y=u1(J.target);if(J instanceof Y.KeyboardEvent)return"keyboard";if(J instanceof Y.FocusEvent)return X||"keyboard";if("pointerType"in J)return J.pointerType||"keyboard";if("touches"in J)return"touch";if(J instanceof Y.MouseEvent)return X||(J.detail===0?"keyboard":"mouse");return""}var tM=20,R4=[];function aq(){R4=R4.filter((J)=>J.isConnected)}function gC(J){if(aq(),J&&t5(J)!=="body"){if(R4.push(J),R4.length>tM)R4=R4.slice(-tM)}}function rq(){return aq(),R4[R4.length-1]}function fC(J){if(!J)return null;let X=s7();if(Eq(J,X))return J;return a7(J,X)[0]||J}function mC(J){if(!J||!J.isConnected)return!1;if(typeof J.checkVisibility==="function")return J.checkVisibility();return pw(J).display!=="none"}function eM(J,X){if(!X.current.includes("floating")&&!J.getAttribute("role")?.includes("dialog"))return;let Y=s7(),K=hM(J,Y).filter((H)=>{let q=H.getAttribute("data-tabindex")||"";return Eq(H,Y)||H.hasAttribute("data-tabindex")&&!q.startsWith("-")}),U=J.getAttribute("tabindex");if(X.current.includes("floating")||K.length===0){if(U!=="0")J.setAttribute("tabindex","0")}else if(U!=="-1"||J.hasAttribute("data-tabindex")&&J.getAttribute("data-tabindex")!=="-1")J.setAttribute("tabindex","-1"),J.setAttribute("data-tabindex","-1")}function xX(J){let{context:X,children:Y,disabled:W=!1,order:K=["content"],initialFocus:U=!0,returnFocus:H=!0,restoreFocus:q=!1,modal:L=!0,closeOnFocusOut:V=!0,openInteractionType:N="",getInsideElements:F=()=>[],nextFocusableElement:k,previousFocusableElement:j,beforeContentFocusGuardRef:O,externalTree:M}=J,v="rootStore"in X?X.rootStore:X,x=v.useState("open"),E=v.useState("domReferenceElement"),I=v.useState("floatingElement"),{events:C,dataRef:h}=v.context,m=F0(()=>h.current.floatingContext?.nodeId),R=F0(F),S=U===!1,c=HX(E)&&S,d=Uw(K),w0=Uw(U),t=Uw(H),u=Uw(N),Q0=Y2(M),r=iq(),e=Bw.useRef(null),o=Bw.useRef(null),g=Bw.useRef(!1),X0=Bw.useRef(!1),P=Bw.useRef(!1),z0=Bw.useRef(-1),U0=Bw.useRef(""),J0=Bw.useRef(""),L0=a1(),S0=a1(),V0=E5(),_0=r!=null,A0=l7(I),r0=F0((q0=A0)=>{return q0?a7(q0,s7()):[]}),n0=F0((q0)=>{let O0=r0(q0);return d.current.map(()=>O0).filter(Boolean).flat()});Bw.useEffect(()=>{if(W)return;if(!L)return;function q0(j0){if(j0.key==="Tab"){if(t0(A0,$2(b1(A0)))&&r0().length===0&&!c)Xw(j0)}}let O0=b1(A0);return O0.addEventListener("keydown",q0),()=>{O0.removeEventListener("keydown",q0)}},[W,E,A0,L,d,c,r0,n0]),Bw.useEffect(()=>{if(W)return;if(!I)return;function q0(O0){let j0=f1(O0),b0=r0().indexOf(j0);if(b0!==-1)z0.current=b0}return I.addEventListener("focusin",q0),()=>{I.removeEventListener("focusin",q0)}},[W,I,r0]),Bw.useEffect(()=>{if(W||!x)return;let q0=b1(A0);function O0(){P.current=!1}function j0(b0){let h0=f1(b0),o0=t0(I,h0)||t0(E,h0)||t0(r?.portalNode,h0);P.current=!o0,J0.current=b0.pointerType||"keyboard"}function c0(){J0.current="keyboard"}return q0.addEventListener("pointerdown",j0,!0),q0.addEventListener("pointerup",O0,!0),q0.addEventListener("pointercancel",O0,!0),q0.addEventListener("keydown",c0,!0),()=>{q0.removeEventListener("pointerdown",j0,!0),q0.removeEventListener("pointerup",O0,!0),q0.removeEventListener("pointercancel",O0,!0),q0.removeEventListener("keydown",c0,!0)}},[W,I,E,A0,x,r]),Bw.useEffect(()=>{if(W)return;if(!V)return;function q0(){X0.current=!0,S0.start(0,()=>{X0.current=!1})}function O0(h0){let{relatedTarget:o0,currentTarget:x0}=h0,l0=f1(h0);queueMicrotask(()=>{let y0=m(),H1=v.context.triggerElements,T1=!(t0(E,o0)||t0(I,o0)||t0(o0,I)||t0(r?.portalNode,o0)||o0!=null&&H1.hasElement(o0)||H1.hasMatchingElement((W1)=>t0(W1,o0))||o0?.hasAttribute(X5("focus-guard"))||Q0&&(i8(Q0.nodesRef.current,y0).find((W1)=>t0(W1.context?.elements.floating,o0)||t0(W1.context?.elements.domReference,o0))||Dq(Q0.nodesRef.current,y0).find((W1)=>[W1.context?.elements.floating,l7(W1.context?.elements.floating)].includes(o0)||W1.context?.elements.domReference===o0)));if(x0===E&&A0)eM(A0,d);if(q&&x0!==E&&!mC(l0)&&$2(b1(A0))===b1(A0).body){if(O1(A0)){if(A0.focus(),q==="popup"){V0.request(()=>{A0.focus()});return}}let W1=z0.current,Qw=r0(),zw=Qw[W1]||Qw[Qw.length-1]||A0;if(O1(zw))zw.focus()}if(h.current.insideReactTree){h.current.insideReactTree=!1;return}if((c?!0:!L)&&o0&&T1&&!X0.current&&(c||o0!==rq()))g.current=!0,v.setOpen(!1,P0(B0.focusOut,h0))})}function j0(){if(P.current)return;h.current.insideReactTree=!0,L0.start(0,()=>{h.current.insideReactTree=!1})}let c0=O1(E)?E:null,b0=[];if(!I&&!c0)return;if(c0)c0.addEventListener("focusout",O0),c0.addEventListener("pointerdown",q0),b0.push(()=>{c0.removeEventListener("focusout",O0),c0.removeEventListener("pointerdown",q0)});if(I){if(I.addEventListener("focusout",O0),r)I.addEventListener("focusout",j0,!0),b0.push(()=>{I.removeEventListener("focusout",j0,!0)});b0.push(()=>{I.removeEventListener("focusout",O0)})}return()=>{b0.forEach((h0)=>{h0()})}},[W,E,I,A0,L,Q0,r,v,V,q,r0,c,m,d,h,L0,S0,V0]);let n=Bw.useRef(null),R0=Bw.useRef(null),I0=D5(n,O,r?.beforeInsideRef),A1=D5(R0,r?.afterInsideRef);Bw.useEffect(()=>{if(W||!I||!x)return;let q0=Array.from(r?.portalNode?.querySelectorAll(`[${X5("portal")}]`)||[]),j0=(Q0?Dq(Q0.nodesRef.current,m()):[]).find((h0)=>HX(h0.context?.elements.domReference||null))?.context?.elements.domReference,c0=[I,j0,...q0,...R(),e.current,o.current,n.current,R0.current,r?.beforeOutsideRef.current,r?.afterOutsideRef.current,O6(j),O6(k),c?E:null].filter((h0)=>h0!=null),b0=nM(c0,L||c);return()=>{b0()}},[x,W,E,I,L,d,r,c,Q0,m,R,k,j]),k0(()=>{if(!x||W||!O1(A0))return;let q0=b1(A0),O0=$2(q0);queueMicrotask(()=>{let j0=n0(A0),c0=w0.current,b0=typeof c0==="function"?c0(u.current||""):c0;if(b0===void 0||b0===!1)return;let h0;if(b0===!0||b0===null)h0=j0[0]||A0;else h0=O6(b0);if(h0=h0||j0[0]||A0,t0(A0,O0))return;gz(h0,{preventScroll:h0===A0})})},[W,x,A0,S,n0,w0,u]),k0(()=>{if(W||!A0)return;let q0=b1(A0),O0=$2(q0);gC(O0);function j0(h0){if(!h0.open)U0.current=RC(h0.nativeEvent,J0.current);if(h0.reason===B0.triggerHover&&h0.nativeEvent.type==="mouseleave")g.current=!0;if(h0.reason!==B0.outsidePress)return;if(h0.nested)g.current=!1;else if(GG(h0.nativeEvent)||QG(h0.nativeEvent))g.current=!1;else{let o0=!1;if(document.createElement("div").focus({get preventScroll(){return o0=!0,!1}}),o0)g.current=!1;else g.current=!0}}C.on("openchange",j0);let c0=q0.createElement("span");if(c0.setAttribute("tabindex","-1"),c0.setAttribute("aria-hidden","true"),Object.assign(c0.style,MG),_0&&E)E.insertAdjacentElement("afterend",c0);function b0(){let h0=t.current,o0=typeof h0==="function"?h0(U0.current):h0;if(o0===void 0||o0===!1)return null;if(o0===null)o0=!0;if(typeof o0==="boolean"){let l0=E||rq();return l0&&l0.isConnected?l0:c0}let x0=E||rq()||c0;return O6(o0)||x0}return()=>{C.off("openchange",j0);let h0=$2(q0),o0=t0(I,h0)||Q0&&i8(Q0.nodesRef.current,m(),!1).some((l0)=>t0(l0.context?.elements.floating,h0)),x0=b0();queueMicrotask(()=>{let l0=fC(x0),y0=typeof t.current!=="boolean";if(t.current&&!g.current&&O1(l0)&&(!y0&&l0!==h0&&h0!==q0.body?o0:!0))l0.focus({preventScroll:!0});c0.remove()})}},[W,I,A0,t,h,C,Q0,_0,E,m]),Bw.useEffect(()=>{queueMicrotask(()=>{g.current=!1})},[W]),Bw.useEffect(()=>{if(W||!x)return;function q0(j0){if(f1(j0)?.closest(`[${cY}]`))X0.current=!0}let O0=b1(A0);return O0.addEventListener("pointerdown",q0,!0),()=>{O0.removeEventListener("pointerdown",q0,!0)}},[W,x,A0]),k0(()=>{if(W)return;if(!r)return;return r.setFocusManagerState({modal:L,closeOnFocusOut:V,open:x,onOpenChange:v.setOpen,domReference:E}),()=>{r.setFocusManagerState(null)}},[W,r,L,x,v,V,E]),k0(()=>{if(W||!A0)return;return eM(A0,d),()=>{queueMicrotask(aq)}},[W,A0,d]);let C0=!W&&(L?!c:!0)&&(_0||L);return TX.jsxs(Bw.Fragment,{children:[C0&&TX.jsx(r8,{"data-type":"inside",ref:I0,onFocus:(q0)=>{if(L){let O0=n0();gz(O0[O0.length-1])}else if(r?.portalNode)if(g.current=!1,E6(q0,r.portalNode))Cz(E)?.focus();else O6(j??r.beforeOutsideRef)?.focus()}}),Y,C0&&TX.jsx(r8,{"data-type":"inside",ref:A1,onFocus:(q0)=>{if(L)gz(n0()[0]);else if(r?.portalNode){if(V)g.current=!0;if(E6(q0,r.portalNode))VG(E)?.focus();else O6(k??r.afterOutsideRef)?.focus()}}})]})}var EX=p(Y0(),1);function w9(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.context.dataRef,{enabled:K=!0,event:U="click",toggle:H=!0,ignoreMouse:q=!1,stickIfOpen:L=!0,touchOpenDelay:V=0}=X,N=EX.useRef(void 0),F=E5(),k=a1(),j=EX.useMemo(()=>({onPointerDown(O){N.current=O.pointerType},onMouseDown(O){let M=N.current,v=O.nativeEvent,x=Y.select("open");if(O.button!==0||U==="click"||P5(M,!0)&&q)return;let E=W.current.openEvent,I=E?.type,C=Y.select("domReferenceElement")!==O.currentTarget,h=x&&C||!(x&&H&&(E&&L?I==="click"||I==="mousedown":!0));if(qX(v.target)){let R=P0(B0.triggerPress,v,v.target);if(h&&M==="touch"&&V>0)k.start(V,()=>{Y.setOpen(!0,R)});else Y.setOpen(h,R);return}let m=O.currentTarget;F.request(()=>{let R=P0(B0.triggerPress,v,m);if(h&&M==="touch"&&V>0)k.start(V,()=>{Y.setOpen(!0,R)});else Y.setOpen(h,R)})},onClick(O){if(U==="mousedown-only")return;let M=N.current;if(U==="mousedown"&&M){N.current=void 0;return}if(P5(M,!0)&&q)return;let v=Y.select("open"),x=W.current.openEvent,E=Y.select("domReferenceElement")!==O.currentTarget,I=v&&E||!(v&&H&&(x&&L?WG(x):!0)),C=P0(B0.triggerPress,O.nativeEvent,O.currentTarget);if(I&&M==="touch"&&V>0)k.start(V,()=>{Y.setOpen(!0,C)});else Y.setOpen(I,C)},onKeyDown(){N.current=void 0}}),[W,U,q,Y,L,H,F,k,V]);return EX.useMemo(()=>K?{reference:j}:v1,[K,j])}var k2=p(Y0(),1);function dC(J,X){let Y=null,W=null,K=!1;return{contextElement:J||void 0,getBoundingClientRect(){let U=J?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},H=X.axis==="x"||X.axis==="both",q=X.axis==="y"||X.axis==="both",L=["mouseenter","mousemove"].includes(X.dataRef.current.openEvent?.type||"")&&X.pointerType!=="touch",V=U.width,N=U.height,F=U.x,k=U.y;if(Y==null&&X.x&&H)Y=U.x-X.x;if(W==null&&X.y&&q)W=U.y-X.y;if(F-=Y||0,k-=W||0,V=0,N=0,!K||L)V=X.axis==="y"?U.width:0,N=X.axis==="x"?U.height:0,F=H&&X.x!=null?X.x:F,k=q&&X.y!=null?X.y:k;else if(K&&!L)N=X.axis==="x"?U.height:N,V=X.axis==="y"?U.width:V;return K=!0,{width:V,height:N,x:F,y:k,top:k,right:F+V,bottom:k+N,left:F}}}}function wO(J){return J!=null&&J.clientX!=null}function sq(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("domReferenceElement"),H=Y.context.dataRef,{enabled:q=!0,axis:L="both",x:V=null,y:N=null}=X,F=k2.useRef(!1),k=k2.useRef(null),[j,O]=k2.useState(),[M,v]=k2.useState([]),x=F0((m,R)=>{if(F.current)return;if(H.current.openEvent&&!wO(H.current.openEvent))return;Y.set("positionReference",dC(U,{x:m,y:R,axis:L,dataRef:H,pointerType:j}))}),E=F0((m)=>{if(V!=null||N!=null)return;if(!W)x(m.clientX,m.clientY);else if(!k.current)v([])}),I=P5(j)?K:W,C=k2.useCallback(()=>{if(!I||!q||V!=null||N!=null)return;let m=u1(K);function R(S){let c=f1(S);if(!t0(K,c))x(S.clientX,S.clientY);else m.removeEventListener("mousemove",R),k.current=null}if(!H.current.openEvent||wO(H.current.openEvent)){m.addEventListener("mousemove",R);let S=()=>{m.removeEventListener("mousemove",R),k.current=null};return k.current=S,S}Y.set("positionReference",U);return},[I,q,V,N,K,H,U,Y,x]);k2.useEffect(()=>{return C()},[C,M]),k2.useEffect(()=>{if(q&&!K)F.current=!1},[q,K]),k2.useEffect(()=>{if(!q&&W)F.current=!0},[q,W]),k0(()=>{if(q&&(V!=null||N!=null))F.current=!1,x(V,N)},[q,V,N,x]);let h=k2.useMemo(()=>{function m(R){O(R.pointerType)}return{onPointerDown:m,onPointerEnter:m,onMouseMove:E,onMouseEnter:E}},[E]);return k2.useMemo(()=>q?{reference:h}:{},[q,h])}var S5=p(Y0(),1);function zO(J,X,Y){let{reference:W,floating:K}=J,U=C2(X),H=FX(X),q=VX(H),L=tw(X),V=U==="y",N=W.x+W.width/2-K.width/2,F=W.y+W.height/2-K.height/2,k=W[q]/2-K[q]/2,j;switch(L){case"top":j={x:N,y:W.y-K.height};break;case"bottom":j={x:N,y:W.y+W.height};break;case"right":j={x:W.x+W.width,y:F};break;case"left":j={x:W.x-K.width,y:F};break;default:j={x:W.x,y:W.y}}switch(Z8(X)){case"start":j[H]-=k*(Y&&V?-1:1);break;case"end":j[H]+=k*(Y&&V?-1:1);break}return j}var XO=async(J,X,Y)=>{let{placement:W="bottom",strategy:K="absolute",middleware:U=[],platform:H}=Y,q=U.filter(Boolean),L=await(H.isRTL==null?void 0:H.isRTL(X)),V=await H.getElementRects({reference:J,floating:X,strategy:K}),{x:N,y:F}=zO(V,W,L),k=W,j={},O=0;for(let M=0;M<q.length;M++){let{name:v,fn:x}=q[M],{x:E,y:I,data:C,reset:h}=await x({x:N,y:F,initialPlacement:W,placement:k,strategy:K,middlewareData:j,rects:V,platform:H,elements:{reference:J,floating:X}});if(N=E!=null?E:N,F=I!=null?I:F,j={...j,[v]:{...j[v],...C}},h&&O<=50){if(O++,typeof h==="object"){if(h.placement)k=h.placement;if(h.rects)V=h.rects===!0?await H.getElementRects({reference:J,floating:X,strategy:K}):h.rects;({x:N,y:F}=zO(V,k,L))}M=-1}}return{x:N,y:F,placement:k,strategy:K,middlewareData:j}};async function dz(J,X){var Y;if(X===void 0)X={};let{x:W,y:K,platform:U,rects:H,elements:q,strategy:L}=J,{boundary:V="clippingAncestors",rootBoundary:N="viewport",elementContext:F="floating",altBoundary:k=!1,padding:j=0}=z8(X,J),O=_G(j),v=q[k?F==="floating"?"reference":"floating":F],x=i7(await U.getClippingRect({element:((Y=await(U.isElement==null?void 0:U.isElement(v)))!=null?Y:!0)?v:v.contextElement||await(U.getDocumentElement==null?void 0:U.getDocumentElement(q.floating)),boundary:V,rootBoundary:N,strategy:L})),E=F==="floating"?{x:W,y:K,width:H.floating.width,height:H.floating.height}:H.reference,I=await(U.getOffsetParent==null?void 0:U.getOffsetParent(q.floating)),C=await(U.isElement==null?void 0:U.isElement(I))?await(U.getScale==null?void 0:U.getScale(I))||{x:1,y:1}:{x:1,y:1},h=i7(U.convertOffsetParentRelativeRectToViewportRelativeRect?await U.convertOffsetParentRelativeRectToViewportRelativeRect({elements:q,rect:E,offsetParent:I,strategy:L}):E);return{top:(x.top-h.top+O.top)/C.y,bottom:(h.bottom-x.bottom+O.bottom)/C.y,left:(x.left-h.left+O.left)/C.x,right:(h.right-x.right+O.right)/C.x}}var $O=function(J){if(J===void 0)J={};return{name:"flip",options:J,async fn(X){var Y,W;let{placement:K,middlewareData:U,rects:H,initialPlacement:q,platform:L,elements:V}=X,{mainAxis:N=!0,crossAxis:F=!0,fallbackPlacements:k,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:M=!0,...v}=z8(J,X);if((Y=U.arrow)!=null&&Y.alignmentOffset)return{};let x=tw(K),E=C2(q),I=tw(q)===q,C=await(L.isRTL==null?void 0:L.isRTL(V.floating)),h=k||(I||!M?[BX(q)]:jM(q)),m=O!=="none";if(!k&&m)h.push(...AM(q,M,O,C));let R=[q,...h],S=await dz(X,v),c=[],d=((W=U.flip)==null?void 0:W.overflows)||[];if(N)c.push(S[x]);if(F){let Q0=kM(K,H,C);c.push(S[Q0[0]],S[Q0[1]])}if(d=[...d,{placement:K,overflows:c}],!c.every((Q0)=>Q0<=0)){var w0,t;let Q0=(((w0=U.flip)==null?void 0:w0.index)||0)+1,r=R[Q0];if(r){if(!(F==="alignment"?E!==C2(r):!1)||d.every((g)=>C2(g.placement)===E?g.overflows[0]>0:!0))return{data:{index:Q0,overflows:d},reset:{placement:r}}}let e=(t=d.filter((o)=>o.overflows[0]<=0).sort((o,g)=>o.overflows[1]-g.overflows[1])[0])==null?void 0:t.placement;if(!e)switch(j){case"bestFit":{var u;let o=(u=d.filter((g)=>{if(m){let X0=C2(g.placement);return X0===E||X0==="y"}return!0}).map((g)=>[g.placement,g.overflows.filter((X0)=>X0>0).reduce((X0,P)=>X0+P,0)]).sort((g,X0)=>g[1]-X0[1])[0])==null?void 0:u[0];if(o)e=o;break}case"initialPlacement":e=q;break}if(K!==e)return{reset:{placement:e}}}return{}}}};function ZO(J,X){return{top:J.top-X.height,right:J.right-X.width,bottom:J.bottom-X.height,left:J.left-X.width}}function JO(J){return NM.some((X)=>J[X]>=0)}var YO=function(J){if(J===void 0)J={};return{name:"hide",options:J,async fn(X){let{rects:Y}=X,{strategy:W="referenceHidden",...K}=z8(J,X);switch(W){case"referenceHidden":{let U=await dz(X,{...K,elementContext:"reference"}),H=ZO(U,Y.reference);return{data:{referenceHiddenOffsets:H,referenceHidden:JO(H)}}}case"escaped":{let U=await dz(X,{...K,altBoundary:!0}),H=ZO(U,Y.floating);return{data:{escapedOffsets:H,escaped:JO(H)}}}default:return{}}}}};var GO=new Set(["left","top"]);async function uC(J,X){let{placement:Y,platform:W,elements:K}=J,U=await(W.isRTL==null?void 0:W.isRTL(K.floating)),H=tw(Y),q=Z8(Y),L=C2(Y)==="y",V=GO.has(H)?-1:1,N=U&&L?-1:1,F=z8(X,J),{mainAxis:k,crossAxis:j,alignmentAxis:O}=typeof F==="number"?{mainAxis:F,crossAxis:0,alignmentAxis:null}:{mainAxis:F.mainAxis||0,crossAxis:F.crossAxis||0,alignmentAxis:F.alignmentAxis};if(q&&typeof O==="number")j=q==="end"?O*-1:O;return L?{x:j*N,y:k*V}:{x:k*V,y:j*N}}var QO=function(J){if(J===void 0)J=0;return{name:"offset",options:J,async fn(X){var Y,W;let{x:K,y:U,placement:H,middlewareData:q}=X,L=await uC(X,J);if(H===((Y=q.offset)==null?void 0:Y.placement)&&(W=q.arrow)!=null&&W.alignmentOffset)return{};return{x:K+L.x,y:U+L.y,data:{...L,placement:H}}}}},WO=function(J){if(J===void 0)J={};return{name:"shift",options:J,async fn(X){let{x:Y,y:W,placement:K}=X,{mainAxis:U=!0,crossAxis:H=!1,limiter:q={fn:(v)=>{let{x,y:E}=v;return{x,y:E}}},...L}=z8(J,X),V={x:Y,y:W},N=await dz(X,L),F=C2(tw(K)),k=UG(F),j=V[k],O=V[F];if(U){let v=k==="y"?"top":"left",x=k==="y"?"bottom":"right",E=j+N[v],I=j-N[x];j=LX(E,j,I)}if(H){let v=F==="y"?"top":"left",x=F==="y"?"bottom":"right",E=O+N[v],I=O-N[x];O=LX(E,O,I)}let M=q.fn({...X,[k]:j,[F]:O});return{...M,data:{x:M.x-Y,y:M.y-W,enabled:{[k]:U,[F]:H}}}}}},KO=function(J){if(J===void 0)J={};return{options:J,fn(X){let{x:Y,y:W,placement:K,rects:U,middlewareData:H}=X,{offset:q=0,mainAxis:L=!0,crossAxis:V=!0}=z8(J,X),N={x:Y,y:W},F=C2(K),k=UG(F),j=N[k],O=N[F],M=z8(q,X),v=typeof M==="number"?{mainAxis:M,crossAxis:0}:{mainAxis:0,crossAxis:0,...M};if(L){let I=k==="y"?"height":"width",C=U.reference[k]-U.floating[I]+v.mainAxis,h=U.reference[k]+U.reference[I]-v.mainAxis;if(j<C)j=C;else if(j>h)j=h}if(V){var x,E;let I=k==="y"?"width":"height",C=GO.has(tw(K)),h=U.reference[F]-U.floating[I]+(C?((x=H.offset)==null?void 0:x[F])||0:0)+(C?0:v.crossAxis),m=U.reference[F]+U.reference[I]+(C?0:((E=H.offset)==null?void 0:E[F])||0)-(C?v.crossAxis:0);if(O<h)O=h;else if(O>m)O=m}return{[k]:j,[F]:O}}}},UO=function(J){if(J===void 0)J={};return{name:"size",options:J,async fn(X){var Y,W;let{placement:K,rects:U,platform:H,elements:q}=X,{apply:L=()=>{},...V}=z8(J,X),N=await dz(X,V),F=tw(K),k=Z8(K),j=C2(K)==="y",{width:O,height:M}=U.floating,v,x;if(F==="top"||F==="bottom")v=F,x=k===(await(H.isRTL==null?void 0:H.isRTL(q.floating))?"start":"end")?"left":"right";else x=F,v=k==="end"?"top":"bottom";let E=M-N.top-N.bottom,I=O-N.left-N.right,C=I4(M-N[v],E),h=I4(O-N[x],I),m=!X.middlewareData.shift,R=C,S=h;if((Y=X.middlewareData.shift)!=null&&Y.enabled.x)S=I;if((W=X.middlewareData.shift)!=null&&W.enabled.y)R=E;if(m&&!k){let d=N2(N.left,0),w0=N2(N.right,0),t=N2(N.top,0),u=N2(N.bottom,0);if(j)S=O-2*(d!==0||w0!==0?d+w0:N2(N.left,N.right));else R=M-2*(t!==0||u!==0?t+u:N2(N.top,N.bottom))}await L({...X,availableWidth:S,availableHeight:R});let c=await H.getDimensions(q.floating);if(O!==c.width||M!==c.height)return{reset:{rects:!0}};return{}}}};function BO(J){let X=pw(J),Y=parseFloat(X.width)||0,W=parseFloat(X.height)||0,K=O1(J),U=K?J.offsetWidth:Y,H=K?J.offsetHeight:W,q=C4(Y)!==U||C4(W)!==H;if(q)Y=U,W=H;return{width:Y,height:W,$:q}}function nq(J){return!L1(J)?J.contextElement:J}function uz(J){let X=nq(J);if(!O1(X))return w8(1);let Y=X.getBoundingClientRect(),{width:W,height:K,$:U}=BO(X),H=(U?C4(Y.width):Y.width)/W,q=(U?C4(Y.height):Y.height)/K;if(!H||!Number.isFinite(H))H=1;if(!q||!Number.isFinite(q))q=1;return{x:H,y:q}}var pC=w8(0);function LO(J){let X=u1(J);if(!Ez()||!X.visualViewport)return pC;return{x:X.visualViewport.offsetLeft,y:X.visualViewport.offsetTop}}function cC(J,X,Y){if(X===void 0)X=!1;if(!Y||X&&Y!==u1(J))return!1;return X}function z9(J,X,Y,W){if(X===void 0)X=!1;if(Y===void 0)Y=!1;let K=J.getBoundingClientRect(),U=nq(J),H=w8(1);if(X)if(W){if(L1(W))H=uz(W)}else H=uz(J);let q=cC(U,Y,W)?LO(U):w8(0),L=(K.left+q.x)/H.x,V=(K.top+q.y)/H.y,N=K.width/H.x,F=K.height/H.y;if(U){let k=u1(U),j=W&&L1(W)?u1(W):W,O=k,M=wG(O);while(M&&W&&j!==O){let v=uz(M),x=M.getBoundingClientRect(),E=pw(M),I=x.left+(M.clientLeft+parseFloat(E.paddingLeft))*v.x,C=x.top+(M.clientTop+parseFloat(E.paddingTop))*v.y;L*=v.x,V*=v.y,N*=v.x,F*=v.y,L+=I,V+=C,O=u1(M),M=wG(O)}}return i7({width:N,height:F,x:L,y:V})}function EG(J,X){let Y=KX(J).scrollLeft;if(!X)return z9(e5(J)).left+Y;return X.left+Y}function VO(J,X){let Y=J.getBoundingClientRect(),W=Y.left+X.scrollLeft-EG(J,Y),K=Y.top+X.scrollTop;return{x:W,y:K}}function lC(J){let{elements:X,rect:Y,offsetParent:W,strategy:K}=J,U=K==="fixed",H=e5(W),q=X?WX(X.floating):!1;if(W===H||q&&U)return Y;let L={scrollLeft:0,scrollTop:0},V=w8(1),N=w8(0),F=O1(W);if(F||!F&&!U){if(t5(W)!=="body"||T6(H))L=KX(W);if(O1(W)){let j=z9(W);V=uz(W),N.x=j.x+W.clientLeft,N.y=j.y+W.clientTop}}let k=H&&!F&&!U?VO(H,L):w8(0);return{width:Y.width*V.x,height:Y.height*V.y,x:Y.x*V.x-L.scrollLeft*V.x+N.x+k.x,y:Y.y*V.y-L.scrollTop*V.y+N.y+k.y}}function iC(J){return Array.from(J.getClientRects())}function rC(J){let X=e5(J),Y=KX(J),W=J.ownerDocument.body,K=N2(X.scrollWidth,X.clientWidth,W.scrollWidth,W.clientWidth),U=N2(X.scrollHeight,X.clientHeight,W.scrollHeight,W.clientHeight),H=-Y.scrollLeft+EG(J),q=-Y.scrollTop;if(pw(W).direction==="rtl")H+=N2(X.clientWidth,W.clientWidth)-K;return{width:K,height:U,x:H,y:q}}var _O=25;function aC(J,X){let Y=u1(J),W=e5(J),K=Y.visualViewport,U=W.clientWidth,H=W.clientHeight,q=0,L=0;if(K){U=K.width,H=K.height;let N=Ez();if(!N||N&&X==="fixed")q=K.offsetLeft,L=K.offsetTop}let V=EG(W);if(V<=0){let N=W.ownerDocument,F=N.body,k=getComputedStyle(F),j=N.compatMode==="CSS1Compat"?parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0:0,O=Math.abs(W.clientWidth-F.clientWidth-j);if(O<=_O)U-=O}else if(V<=_O)U+=V;return{width:U,height:H,x:q,y:L}}var sC=new Set(["absolute","fixed"]);function oC(J,X){let Y=z9(J,!0,X==="fixed"),W=Y.top+J.clientTop,K=Y.left+J.clientLeft,U=O1(J)?uz(J):w8(1),H=J.clientWidth*U.x,q=J.clientHeight*U.y,L=K*U.x,V=W*U.y;return{width:H,height:q,x:L,y:V}}function qO(J,X,Y){let W;if(X==="viewport")W=aC(J,Y);else if(X==="document")W=rC(e5(J));else if(L1(X))W=oC(X,Y);else{let K=LO(J);W={x:X.x-K.x,y:X.y-K.y,width:X.width,height:X.height}}return i7(W)}function FO(J,X){let Y=w5(J);if(Y===X||!L1(Y)||Z5(Y))return!1;return pw(Y).position==="fixed"||FO(Y,X)}function nC(J,X){let Y=X.get(J);if(Y)return Y;let W=z5(J,[],!1).filter((q)=>L1(q)&&t5(q)!=="body"),K=null,U=pw(J).position==="fixed",H=U?w5(J):J;while(L1(H)&&!Z5(H)){let q=pw(H),L=eY(H);if(!L&&q.position==="fixed")K=null;if(U?!L&&!K:!L&&q.position==="static"&&!!K&&sC.has(K.position)||T6(H)&&!L&&FO(J,H))W=W.filter((N)=>N!==H);else K=q;H=w5(H)}return X.set(J,W),W}function tC(J){let{element:X,boundary:Y,rootBoundary:W,strategy:K}=J,H=[...Y==="clippingAncestors"?WX(X)?[]:nC(X,this._c):[].concat(Y),W],q=H[0],L=H.reduce((V,N)=>{let F=qO(X,N,K);return V.top=N2(F.top,V.top),V.right=I4(F.right,V.right),V.bottom=I4(F.bottom,V.bottom),V.left=N2(F.left,V.left),V},qO(X,q,K));return{width:L.right-L.left,height:L.bottom-L.top,x:L.left,y:L.top}}function eC(J){let{width:X,height:Y}=BO(J);return{width:X,height:Y}}function wS(J,X,Y){let W=O1(X),K=e5(X),U=Y==="fixed",H=z9(J,!0,U,X),q={scrollLeft:0,scrollTop:0},L=w8(0);function V(){L.x=EG(K)}if(W||!W&&!U){if(t5(X)!=="body"||T6(K))q=KX(X);if(W){let j=z9(X,!0,U,X);L.x=j.x+X.clientLeft,L.y=j.y+X.clientTop}else if(K)V()}if(U&&!W&&K)V();let N=K&&!W&&!U?VO(K,q):w8(0),F=H.left+q.scrollLeft-L.x-N.x,k=H.top+q.scrollTop-L.y-N.y;return{x:F,y:k,width:H.width,height:H.height}}function oq(J){return pw(J).position==="static"}function HO(J,X){if(!O1(J)||pw(J).position==="fixed")return null;if(X)return X(J);let Y=J.offsetParent;if(e5(J)===Y)Y=Y.ownerDocument.body;return Y}function NO(J,X){let Y=u1(J);if(WX(J))return Y;if(!O1(J)){let K=w5(J);while(K&&!Z5(K)){if(L1(K)&&!oq(K))return K;K=w5(K)}return Y}let W=HO(J,X);while(W&&$M(W)&&oq(W))W=HO(W,X);if(W&&Z5(W)&&oq(W)&&!eY(W))return Y;return W||YM(J)||Y}var zS=async function(J){let X=this.getOffsetParent||NO,Y=this.getDimensions,W=await Y(J.floating);return{reference:wS(J.reference,await X(J.floating),J.strategy),floating:{x:0,y:0,width:W.width,height:W.height}}};function ZS(J){return pw(J).direction==="rtl"}var tq={convertOffsetParentRelativeRectToViewportRelativeRect:lC,getDocumentElement:e5,getClippingRect:tC,getOffsetParent:NO,getElementRects:zS,getClientRects:iC,getDimensions:eC,getScale:uz,isElement:L1,isRTL:ZS};function kO(J,X){return J.x===X.x&&J.y===X.y&&J.width===X.width&&J.height===X.height}function JS(J,X){let Y=null,W,K=e5(J);function U(){var q;clearTimeout(W),(q=Y)==null||q.disconnect(),Y=null}function H(q,L){if(q===void 0)q=!1;if(L===void 0)L=1;U();let V=J.getBoundingClientRect(),{left:N,top:F,width:k,height:j}=V;if(!q)X();if(!k||!j)return;let O=S4(F),M=S4(K.clientWidth-(N+k)),v=S4(K.clientHeight-(F+j)),x=S4(N),I={rootMargin:-O+"px "+-M+"px "+-v+"px "+-x+"px",threshold:N2(0,I4(1,L))||1},C=!0;function h(m){let R=m[0].intersectionRatio;if(R!==L){if(!C)return H();if(!R)W=setTimeout(()=>{H(!1,0.0000001)},1000);else H(!1,R)}if(R===1&&!kO(V,J.getBoundingClientRect()))H();C=!1}try{Y=new IntersectionObserver(h,{...I,root:K.ownerDocument})}catch(m){Y=new IntersectionObserver(h,I)}Y.observe(J)}return H(!0),U}function vX(J,X,Y,W){if(W===void 0)W={};let{ancestorScroll:K=!0,ancestorResize:U=!0,elementResize:H=typeof ResizeObserver==="function",layoutShift:q=typeof IntersectionObserver==="function",animationFrame:L=!1}=W,V=nq(J),N=K||U?[...V?z5(V):[],...z5(X)]:[];N.forEach((x)=>{K&&x.addEventListener("scroll",Y,{passive:!0}),U&&x.addEventListener("resize",Y)});let F=V&&q?JS(V,Y):null,k=-1,j=null;if(H){if(j=new ResizeObserver((x)=>{let[E]=x;if(E&&E.target===V&&j)j.unobserve(X),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var I;(I=j)==null||I.observe(X)});Y()}),V&&!L)j.observe(V);j.observe(X)}let O,M=L?z9(J):null;if(L)v();function v(){let x=z9(J);if(M&&!kO(M,x))Y();M=x,O=requestAnimationFrame(v)}return Y(),()=>{var x;if(N.forEach((E)=>{K&&E.removeEventListener("scroll",Y),U&&E.removeEventListener("resize",Y)}),F==null||F(),(x=j)==null||x.disconnect(),j=null,L)cancelAnimationFrame(O)}}var jO=QO;var AO=WO,MO=$O,OO=UO,DO=YO;var TO=KO,vG=(J,X,Y)=>{let W=new Map,K={platform:tq,...Y},U={...K.platform,_c:W};return XO(J,X,{...K,platform:U})};var Ew=p(Y0(),1),EO=p(Y0(),1),vO=p(m8(),1),$S=typeof document<"u",YS=function(){},hG=$S?EO.useLayoutEffect:YS;function PG(J,X){if(J===X)return!0;if(typeof J!==typeof X)return!1;if(typeof J==="function"&&J.toString()===X.toString())return!0;let Y,W,K;if(J&&X&&typeof J==="object"){if(Array.isArray(J)){if(Y=J.length,Y!==X.length)return!1;for(W=Y;W--!==0;)if(!PG(J[W],X[W]))return!1;return!0}if(K=Object.keys(J),Y=K.length,Y!==Object.keys(X).length)return!1;for(W=Y;W--!==0;)if(!{}.hasOwnProperty.call(X,K[W]))return!1;for(W=Y;W--!==0;){let U=K[W];if(U==="_owner"&&J.$$typeof)continue;if(!PG(J[U],X[U]))return!1}return!0}return J!==J&&X!==X}function hO(J){if(typeof window>"u")return 1;return(J.ownerDocument.defaultView||window).devicePixelRatio||1}function xO(J,X){let Y=hO(J);return Math.round(X*Y)/Y}function eq(J){let X=Ew.useRef(J);return hG(()=>{X.current=J}),X}function PO(J){if(J===void 0)J={};let{placement:X="bottom",strategy:Y="absolute",middleware:W=[],platform:K,elements:{reference:U,floating:H}={},transform:q=!0,whileElementsMounted:L,open:V}=J,[N,F]=Ew.useState({x:0,y:0,strategy:Y,placement:X,middlewareData:{},isPositioned:!1}),[k,j]=Ew.useState(W);if(!PG(k,W))j(W);let[O,M]=Ew.useState(null),[v,x]=Ew.useState(null),E=Ew.useCallback((g)=>{if(g!==m.current)m.current=g,M(g)},[]),I=Ew.useCallback((g)=>{if(g!==R.current)R.current=g,x(g)},[]),C=U||O,h=H||v,m=Ew.useRef(null),R=Ew.useRef(null),S=Ew.useRef(N),c=L!=null,d=eq(L),w0=eq(K),t=eq(V),u=Ew.useCallback(()=>{if(!m.current||!R.current)return;let g={placement:X,strategy:Y,middleware:k};if(w0.current)g.platform=w0.current;vG(m.current,R.current,g).then((X0)=>{let P={...X0,isPositioned:t.current!==!1};if(Q0.current&&!PG(S.current,P))S.current=P,vO.flushSync(()=>{F(P)})})},[k,X,Y,w0,t]);hG(()=>{if(V===!1&&S.current.isPositioned)S.current.isPositioned=!1,F((g)=>({...g,isPositioned:!1}))},[V]);let Q0=Ew.useRef(!1);hG(()=>{return Q0.current=!0,()=>{Q0.current=!1}},[]),hG(()=>{if(C)m.current=C;if(h)R.current=h;if(C&&h){if(d.current)return d.current(C,h,u);u()}},[C,h,u,d,c]);let r=Ew.useMemo(()=>({reference:m,floating:R,setReference:E,setFloating:I}),[E,I]),e=Ew.useMemo(()=>({reference:C,floating:h}),[C,h]),o=Ew.useMemo(()=>{let g={position:Y,left:0,top:0};if(!e.floating)return g;let X0=xO(e.floating,N.x),P=xO(e.floating,N.y);if(q)return{...g,transform:"translate("+X0+"px, "+P+"px)",...hO(e.floating)>=1.5&&{willChange:"transform"}};return{position:Y,left:X0,top:P}},[Y,q,e.floating,N.x,N.y]);return Ew.useMemo(()=>({...N,update:u,refs:r,elements:e,floatingStyles:o}),[N,u,r,e,o])}var wH=(J,X)=>({...jO(J),options:[J,X]}),zH=(J,X)=>({...AO(J),options:[J,X]}),ZH=(J,X)=>({...TO(J),options:[J,X]}),JH=(J,X)=>({...MO(J),options:[J,X]}),XH=(J,X)=>({...OO(J),options:[J,X]});var $H=(J,X)=>({...DO(J),options:[J,X]});var GS={intentional:"onClick",sloppy:"onPointerDown"};function QS(J){return{escapeKey:typeof J==="boolean"?J:J?.escapeKey??!1,outsidePress:typeof J==="boolean"?J:J?.outsidePress??!0}}function Z9(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("referenceElement"),H=Y.useState("domReferenceElement"),{onOpenChange:q,dataRef:L}=Y.context,{enabled:V=!0,escapeKey:N=!0,outsidePress:F=!0,outsidePressEvent:k="sloppy",referencePress:j=!1,referencePressEvent:O="sloppy",ancestorScroll:M=!1,bubbles:v,externalTree:x}=X,E=Y2(x),I=F0(typeof F==="function"?F:()=>!1),C=typeof F==="function"?I:F,h=S5.useRef(!1),{escapeKey:m,outsidePress:R}=QS(v),S=S5.useRef(null),c=a1(),d=a1(),w0=F0(()=>{d.clear(),L.current.insideReactTree=!1}),t=S5.useRef(!1),u=S5.useRef(""),Q0=F0((n)=>{u.current=n.pointerType}),r=F0(()=>{let n=u.current,R0=n==="pen"||!n?"mouse":n,I0=typeof k==="function"?k():k;if(typeof I0==="string")return I0;return I0[R0]}),e=F0((n)=>{if(!W||!V||!N||n.key!=="Escape")return;if(t.current)return;let R0=L.current.floatingContext?.nodeId,I0=E?i8(E.nodesRef.current,R0):[];if(!m){if(I0.length>0){let q0=!0;if(I0.forEach((O0)=>{if(O0.context?.open&&!O0.context.dataRef.current.__escapeKeyBubbles)q0=!1}),!q0)return}}let A1=LM(n)?n.nativeEvent:n,C0=P0(B0.escapeKey,A1);if(Y.setOpen(!1,C0),!m&&!C0.isPropagationAllowed)n.stopPropagation()}),o=F0((n)=>{let R0=r();return R0==="intentional"&&n.type!=="click"||R0==="sloppy"&&n.type==="click"}),g=F0(()=>{L.current.insideReactTree=!0,d.start(0,w0)}),X0=F0((n,R0=!1)=>{if(o(n)){w0();return}if(L.current.insideReactTree){w0();return}if(r()==="intentional"&&R0)return;if(typeof C==="function"&&!C(n))return;let I0=f1(n),A1=`[${X5("inert")}]`,C0=b1(Y.select("floatingElement")).querySelectorAll(A1),q0=Y.context.triggerElements;if(I0&&(q0.hasElement(I0)||q0.hasMatchingElement((h0)=>t0(h0,I0))))return;let O0=L1(I0)?I0:null;while(O0&&!Z5(O0)){let h0=w5(O0);if(Z5(h0)||!L1(h0))break;O0=h0}if(C0.length&&L1(I0)&&!HM(I0)&&!t0(I0,Y.select("floatingElement"))&&Array.from(C0).every((h0)=>!t0(O0,h0)))return;if(O1(I0)&&!("touches"in n)){let h0=Z5(I0),o0=pw(I0),x0=/auto|scroll/,l0=h0||x0.test(o0.overflowX),y0=h0||x0.test(o0.overflowY),H1=l0&&I0.clientWidth>0&&I0.scrollWidth>I0.clientWidth,T1=y0&&I0.clientHeight>0&&I0.scrollHeight>I0.clientHeight,W1=o0.direction==="rtl",Qw=T1&&(W1?n.offsetX<=I0.offsetWidth-I0.clientWidth:n.offsetX>I0.clientWidth),zw=H1&&n.offsetY>I0.clientHeight;if(Qw||zw)return}let j0=L.current.floatingContext?.nodeId,c0=E&&i8(E.nodesRef.current,j0).some((h0)=>h5(n,h0.context?.elements.floating));if(h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement"))||c0)return;let b0=E?i8(E.nodesRef.current,j0):[];if(b0.length>0){let h0=!0;if(b0.forEach((o0)=>{if(o0.context?.open&&!o0.context.dataRef.current.__outsidePressBubbles)h0=!1}),!h0)return}Y.setOpen(!1,P0(B0.outsidePress,n)),w0()}),P=F0((n)=>{if(r()!=="sloppy"||n.pointerType==="touch"||!Y.select("open")||!V||h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement")))return;X0(n)}),z0=F0((n)=>{if(r()!=="sloppy"||!Y.select("open")||!V||h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement")))return;let R0=n.touches[0];if(R0)S.current={startTime:Date.now(),startX:R0.clientX,startY:R0.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},c.start(1000,()=>{if(S.current)S.current.dismissOnTouchEnd=!1,S.current.dismissOnMouseDown=!1})}),U0=F0((n)=>{let R0=f1(n);function I0(){z0(n),R0?.removeEventListener(n.type,I0)}R0?.addEventListener(n.type,I0)}),J0=F0((n)=>{let R0=h.current;if(h.current=!1,c.clear(),n.type==="mousedown"&&S.current&&!S.current.dismissOnMouseDown)return;let I0=f1(n);function A1(){if(n.type==="pointerdown")P(n);else X0(n,R0);I0?.removeEventListener(n.type,A1)}I0?.addEventListener(n.type,A1)}),L0=F0((n)=>{if(r()!=="sloppy"||!S.current||h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement")))return;let R0=n.touches[0];if(!R0)return;let I0=Math.abs(R0.clientX-S.current.startX),A1=Math.abs(R0.clientY-S.current.startY),C0=Math.sqrt(I0*I0+A1*A1);if(C0>5)S.current.dismissOnTouchEnd=!0;if(C0>10)X0(n),c.clear(),S.current=null}),S0=F0((n)=>{let R0=f1(n);function I0(){L0(n),R0?.removeEventListener(n.type,I0)}R0?.addEventListener(n.type,I0)}),V0=F0((n)=>{if(r()!=="sloppy"||!S.current||h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement")))return;if(S.current.dismissOnTouchEnd)X0(n);c.clear(),S.current=null}),_0=F0((n)=>{let R0=f1(n);function I0(){V0(n),R0?.removeEventListener(n.type,I0)}R0?.addEventListener(n.type,I0)});S5.useEffect(()=>{if(!W||!V)return;L.current.__escapeKeyBubbles=m,L.current.__outsidePressBubbles=R;let n=new C5;function R0(O0){Y.setOpen(!1,P0(B0.none,O0))}function I0(){n.clear(),t.current=!0}function A1(){n.start(Ez()?5:0,()=>{t.current=!1})}let C0=b1(K);if(C0.addEventListener("pointerdown",Q0,!0),N)C0.addEventListener("keydown",e),C0.addEventListener("compositionstart",I0),C0.addEventListener("compositionend",A1);if(C)C0.addEventListener("click",J0,!0),C0.addEventListener("pointerdown",J0,!0),C0.addEventListener("touchstart",U0,!0),C0.addEventListener("touchmove",S0,!0),C0.addEventListener("touchend",_0,!0),C0.addEventListener("mousedown",J0,!0);let q0=[];if(M){if(L1(H))q0=z5(H);if(L1(K))q0=q0.concat(z5(K));if(!L1(U)&&U&&U.contextElement)q0=q0.concat(z5(U.contextElement))}return q0=q0.filter((O0)=>O0!==C0.defaultView?.visualViewport),q0.forEach((O0)=>{O0.addEventListener("scroll",R0,{passive:!0})}),()=>{if(C0.removeEventListener("pointerdown",Q0,!0),N)C0.removeEventListener("keydown",e),C0.removeEventListener("compositionstart",I0),C0.removeEventListener("compositionend",A1);if(C)C0.removeEventListener("click",J0,!0),C0.removeEventListener("pointerdown",J0,!0),C0.removeEventListener("touchstart",U0,!0),C0.removeEventListener("touchmove",S0,!0),C0.removeEventListener("touchend",_0,!0),C0.removeEventListener("mousedown",J0,!0);q0.forEach((O0)=>{O0.removeEventListener("scroll",R0)}),n.clear()}},[L,K,U,H,N,C,W,q,M,V,m,R,e,X0,J0,P,U0,S0,_0,Q0,Y]),S5.useEffect(w0,[C,w0]);let A0=S5.useMemo(()=>({onKeyDown:e,...j&&{[GS[O]]:(n)=>{Y.setOpen(!1,P0(B0.triggerPress,n.nativeEvent))},...O!=="intentional"&&{onClick(n){Y.setOpen(!1,P0(B0.triggerPress,n.nativeEvent))}}}}),[e,Y,j,O]),r0=F0((n)=>{let R0=f1(n.nativeEvent);if(!t0(Y.select("floatingElement"),R0)||n.button!==0)return;h.current=!0}),n0=S5.useMemo(()=>({onKeyDown:e,onPointerDown:r0,onMouseDown:r0,onMouseUp:r0,onClickCapture:g,onMouseDownCapture:g,onPointerDownCapture:g,onMouseUpCapture:g,onTouchEndCapture:g,onTouchMoveCapture:g}),[e,r0,g]);return S5.useMemo(()=>V?{reference:A0,floating:n0,trigger:A0}:{},[V,A0,n0])}var j2=p(Y0(),1);var WS=(J,X,Y)=>{if(X.length===1&&X[0]===Y){let W=!1;try{let K={};if(J(K)===K)W=!0}catch{}if(W){let K=void 0;try{throw Error()}catch(U){({stack:K}=U)}console.warn(`The result function returned its own inputs without modification. e.g
246
+ \`createSelector([state => state.todos], todos => todos)\`
247
+ This could lead to inefficient memoization and unnecessary re-renders.
248
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:K})}}},KS=(J,X,Y)=>{let{memoize:W,memoizeOptions:K}=X,{inputSelectorResults:U,inputSelectorResultsCopy:H}=J,q=W(()=>({}),...K);if(q.apply(null,U)!==q.apply(null,H)){let V=void 0;try{throw Error()}catch(N){({stack:V}=N)}console.warn(`An input selector returned a different result when passed same arguments.
249
+ This means your output selector will likely run more frequently than intended.
250
+ Avoid returning a new reference inside your input selector, e.g.
251
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:Y,firstInputs:U,secondInputs:H,stack:V})}},US={inputStabilityCheck:"once",identityFunctionCheck:"once"};var CG=Symbol("NOT_FOUND");function _S(J,X=`expected a function, instead received ${typeof J}`){if(typeof J!=="function")throw TypeError(X)}function qS(J,X=`expected an object, instead received ${typeof J}`){if(typeof J!=="object")throw TypeError(X)}function HS(J,X="expected all items to be functions, instead received the following types: "){if(!J.every((Y)=>typeof Y==="function")){let Y=J.map((W)=>typeof W==="function"?`function ${W.name||"unnamed"}()`:typeof W).join(", ");throw TypeError(`${X}[${Y}]`)}}var IO=(J)=>{return Array.isArray(J)?J:[J]};function BS(J){let X=Array.isArray(J[0])?J[0]:J;return HS(X,"createSelector expects all input-selectors to be functions, but received the following types: "),X}function CO(J,X){let Y=[],{length:W}=J;for(let K=0;K<W;K++)Y.push(J[K].apply(null,X));return Y}var LS=(J,X)=>{let{identityFunctionCheck:Y,inputStabilityCheck:W}={...US,...X};return{identityFunctionCheck:{shouldRun:Y==="always"||Y==="once"&&J,run:WS},inputStabilityCheck:{shouldRun:W==="always"||W==="once"&&J,run:KS}}},SO=0,VS=null,yO=class{revision=SO;_value;_lastValue;_isEqual=YH;constructor(J,X=YH){this._value=this._lastValue=J,this._isEqual=X}get value(){return VS?.add(this),this._value}set value(J){if(this.value===J)return;this._value=J,this.revision=++SO}};function YH(J,X){return J===X}function GH(J){if(!(J instanceof yO))console.warn("Not a valid cell! ",J);return J.value}function FS(J,X=YH){return new yO(J,X)}var NS=(J,X)=>!1;function SG(){return FS(null,NS)}var RO=(J)=>{let X=J.collectionTag;if(X===null)X=J.collectionTag=SG();GH(X)};var rc=Symbol(),gO=0,kS=Object.getPrototypeOf({}),jS=class{constructor(J){this.value=J,this.value=J,this.tag.value=J}proxy=new Proxy(this,hX);tag=SG();tags={};children={};collectionTag=null;id=gO++},hX={get(J,X){function Y(){let{value:K}=J,U=Reflect.get(K,X);if(typeof X==="symbol")return U;if(X in kS)return U;if(typeof U==="object"&&U!==null){let H=J.children[X];if(H===void 0)H=J.children[X]=OS(U);if(H.tag)GH(H.tag);return H.proxy}else{let H=J.tags[X];if(H===void 0)H=J.tags[X]=SG(),H.value=U;return GH(H),U}}return Y()},ownKeys(J){return RO(J),Reflect.ownKeys(J.value)},getOwnPropertyDescriptor(J,X){return Reflect.getOwnPropertyDescriptor(J.value,X)},has(J,X){return Reflect.has(J.value,X)}},AS=class{constructor(J){this.value=J,this.value=J,this.tag.value=J}proxy=new Proxy([this],MS);tag=SG();tags={};children={};collectionTag=null;id=gO++},MS={get([J],X){if(X==="length")RO(J);return hX.get(J,X)},ownKeys([J]){return hX.ownKeys(J)},getOwnPropertyDescriptor([J],X){return hX.getOwnPropertyDescriptor(J,X)},has([J],X){return hX.has(J,X)}};function OS(J){if(Array.isArray(J))return new AS(J);return new jS(J)}function DS(J){let X;return{get(Y){if(X&&J(X.key,Y))return X.value;return CG},put(Y,W){X={key:Y,value:W}},getEntries(){return X?[X]:[]},clear(){X=void 0}}}function TS(J,X){let Y=[];function W(q){let L=Y.findIndex((V)=>X(q,V.key));if(L>-1){let V=Y[L];if(L>0)Y.splice(L,1),Y.unshift(V);return V.value}return CG}function K(q,L){if(W(q)===CG){if(Y.unshift({key:q,value:L}),Y.length>J)Y.pop()}}function U(){return Y}function H(){Y=[]}return{get:W,put:K,getEntries:U,clear:H}}var xS=(J,X)=>J===X;function ES(J){return function(Y,W){if(Y===null||W===null||Y.length!==W.length)return!1;let{length:K}=Y;for(let U=0;U<K;U++)if(!J(Y[U],W[U]))return!1;return!0}}function fO(J,X){let Y=typeof X==="object"?X:{equalityCheck:X},{equalityCheck:W=xS,maxSize:K=1,resultEqualityCheck:U}=Y,H=ES(W),q=0,L=K<=1?DS(H):TS(K,H);function V(){let N=L.get(arguments);if(N===CG){if(N=J.apply(null,arguments),q++,U){let k=L.getEntries().find((j)=>U(j.value,N));if(k)N=k.value,q!==0&&q--}L.put(arguments,N)}return N}return V.clearCache=()=>{L.clear(),V.resetResultsCount()},V.resultsCount=()=>q,V.resetResultsCount=()=>{q=0},V}var vS=class{constructor(J){this.value=J}deref(){return this.value}},hS=typeof WeakRef<"u"?WeakRef:vS,PS=0,bO=1;function IG(){return{s:PS,v:void 0,o:null,p:null}}function mO(J,X={}){let Y=IG(),{resultEqualityCheck:W}=X,K,U=0;function H(){let q=Y,{length:L}=arguments;for(let F=0,k=L;F<k;F++){let j=arguments[F];if(typeof j==="function"||typeof j==="object"&&j!==null){let O=q.o;if(O===null)q.o=O=new WeakMap;let M=O.get(j);if(M===void 0)q=IG(),O.set(j,q);else q=M}else{let O=q.p;if(O===null)q.p=O=new Map;let M=O.get(j);if(M===void 0)q=IG(),O.set(j,q);else q=M}}let V=q,N;if(q.s===bO)N=q.v;else if(N=J.apply(null,arguments),U++,W){let F=K?.deref?.()??K;if(F!=null&&W(F,N))N=F,U!==0&&U--;K=typeof N==="object"&&N!==null||typeof N==="function"?new hS(N):N}return V.s=bO,V.v=N,N}return H.clearCache=()=>{Y=IG(),H.resetResultsCount()},H.resultsCount=()=>U,H.resetResultsCount=()=>{U=0},H}function QH(J,...X){let Y=typeof J==="function"?{memoize:J,memoizeOptions:X}:J,W=(...K)=>{let U=0,H=0,q,L={},V=K.pop();if(typeof V==="object")L=V,V=K.pop();_S(V,`createSelector expects an output function after the inputs, but received: [${typeof V}]`);let N={...Y,...L},{memoize:F,memoizeOptions:k=[],argsMemoize:j=mO,argsMemoizeOptions:O=[],devModeChecks:M={}}=N,v=IO(k),x=IO(O),E=BS(K),I=F(function(){return U++,V.apply(null,arguments)},...v),C=!0,h=j(function(){H++;let R=CO(E,arguments);q=I.apply(null,R);{let{identityFunctionCheck:S,inputStabilityCheck:c}=LS(C,M);if(S.shouldRun)S.run(V,R,q);if(c.shouldRun){let d=CO(E,arguments);c.run({inputSelectorResults:R,inputSelectorResultsCopy:d},{memoize:F,memoizeOptions:v},arguments)}if(C)C=!1}return q},...x);return Object.assign(h,{resultFunc:V,memoizedResultFunc:I,dependencies:E,dependencyRecomputations:()=>H,resetDependencyRecomputations:()=>{H=0},lastResult:()=>q,recomputations:()=>U,resetRecomputations:()=>{U=0},memoize:F,argsMemoize:j})};return Object.assign(W,{withTypes:()=>W}),W}var IS=QH(mO),CS=Object.assign((J,X=IS)=>{qS(J,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof J}`);let Y=Object.keys(J),W=Y.map((U)=>J[U]);return X(W,(...U)=>{return U.reduce((H,q,L)=>{return H[Y[L]]=q,H},{})})},{withTypes:()=>CS});var wl=QH({memoize:fO,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),p0=(J,X,Y,W,K,U,...H)=>{if(H.length>0)throw Error("Unsupported number of selectors");let q;if(J&&X&&Y&&W&&K&&U)q=(L,V,N,F)=>{let k=J(L,V,N,F),j=X(L,V,N,F),O=Y(L,V,N,F),M=W(L,V,N,F),v=K(L,V,N,F);return U(k,j,O,M,v,V,N,F)};else if(J&&X&&Y&&W&&K)q=(L,V,N,F)=>{let k=J(L,V,N,F),j=X(L,V,N,F),O=Y(L,V,N,F),M=W(L,V,N,F);return K(k,j,O,M,V,N,F)};else if(J&&X&&Y&&W)q=(L,V,N,F)=>{let k=J(L,V,N,F),j=X(L,V,N,F),O=Y(L,V,N,F);return W(k,j,O,V,N,F)};else if(J&&X&&Y)q=(L,V,N,F)=>{let k=J(L,V,N,F),j=X(L,V,N,F);return Y(k,j,V,N,F)};else if(J&&X)q=(L,V,N,F)=>{let k=J(L,V,N,F);return X(k,V,N,F)};else if(J)q=J;else throw Error("Missing arguments");return q};var uO=p(Y0(),1),pO=p(WH(),1),cO=p(dO(),1);var yS=Oz(19),RS=yS?gS:fS;function lO(J,X,Y,W,K){return RS(J,X,Y,W,K)}function gS(J,X,Y,W,K){let U=uO.useCallback(()=>X(J.getSnapshot(),Y,W,K),[J,X,Y,W,K]);return pO.useSyncExternalStore(J.subscribe,U,U)}function fS(J,X,Y,W,K){return cO.useSyncExternalStoreWithSelector(J.subscribe,J.getSnapshot,J.getSnapshot,(U)=>X(U,Y,W,K))}class pz{constructor(J){this.state=J,this.listeners=new Set,this.updateTick=0}subscribe=(J)=>{return this.listeners.add(J),()=>{this.listeners.delete(J)}};getSnapshot=()=>{return this.state};setState(J){if(this.state===J)return;this.state=J,this.updateTick+=1;let X=this.updateTick;for(let Y of this.listeners){if(X!==this.updateTick)return;Y(J)}}update(J){for(let X in J)if(!Object.is(this.state[X],J[X])){pz.prototype.setState.call(this,{...this.state,...J});return}}set(J,X){if(!Object.is(this.state[J],X))pz.prototype.setState.call(this,{...this.state,[J]:X})}notifyAll(){let J={...this.state};pz.prototype.setState.call(this,J)}}var h6=p(Y0(),1);class P6 extends pz{constructor(J,X={},Y){super(J);this.context=X,this.selectors=Y}controlledValues=new Map;useSyncedValue(J,X){h6.useDebugValue(J),k0(()=>{if(this.state[J]!==X)this.set(J,X)},[J,X])}useSyncedValueWithCleanup(J,X){k0(()=>{if(this.state[J]!==X)this.set(J,X);return()=>{this.set(J,void 0)}},[J,X])}useSyncedValues(J){{h6.useDebugValue(J,(K)=>Object.keys(K));let Y=h6.useRef(Object.keys(J)).current,W=Object.keys(J);if(Y.length!==W.length||Y.some((K,U)=>K!==W[U]))console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}let X=Object.values(J);k0(()=>{this.update(J)},X)}useControlledProp(J,X,Y){h6.useDebugValue(J);let W=X!==void 0;{let K=this.controlledValues.get(J);if(K!==void 0&&K!==W)console.error(`A component is changing the ${W?"":"un"}controlled state of ${J.toString()} to be ${W?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}if(!this.controlledValues.has(J)){if(this.controlledValues.set(J,W),!W&&!Object.is(this.state[J],Y))super.setState({...this.state,[J]:Y})}k0(()=>{if(W&&!Object.is(this.state[J],X))super.setState({...this.state,[J]:X})},[J,X,Y,W])}set(J,X){if(this.controlledValues.get(J)===!0)return;super.set(J,X)}update(J){let X={...J};for(let Y in X){if(!Object.hasOwn(X,Y))continue;if(this.controlledValues.get(Y)===!0){delete X[Y];continue}}super.update(X)}setState(J){let X={...J};for(let Y in X){if(!Object.hasOwn(X,Y))continue;if(this.controlledValues.get(Y)===!0){delete X[Y];continue}}super.setState({...this.state,...X})}select=(J,X,Y,W)=>{let K=this.selectors[J];return K(this.state,X,Y,W)};useState=(J,X,Y,W)=>{h6.useDebugValue(J);let K=this.selectors[J];return lO(this,K,X,Y,W)};useContextCallback(J,X){h6.useDebugValue(J);let Y=F0(X??pY);this.context[J]=Y}useStateSetter(J){let X=h6.useRef(void 0);if(X.current===void 0)X.current=(Y)=>{this.set(J,Y)};return X.current}observe(J,X){let Y;if(typeof J==="function")Y=J;else Y=this.selectors[J];let W=Y(this.state);return X(W,W,this),this.subscribe((K)=>{let U=Y(K);if(!Object.is(W,U)){let H=W;W=U,X(U,H,this)}})}}var bG=p(Y0(),1);function iO(){let[,J]=bG.useState({});return bG.useCallback(()=>{J({})},[])}var mS={open:p0((J)=>J.open),domReferenceElement:p0((J)=>J.domReferenceElement),referenceElement:p0((J)=>J.positionReference??J.referenceElement),floatingElement:p0((J)=>J.floatingElement),floatingId:p0((J)=>J.floatingId)};class J9 extends P6{constructor(J){let{nested:X,noEmit:Y,onOpenChange:W,triggerElements:K,...U}=J;super({...U,positionReference:U.referenceElement,domReferenceElement:U.referenceElement},{onOpenChange:W,dataRef:{current:{}},events:jG(),nested:X,noEmit:Y,triggerElements:K},mS)}setOpen=(J,X)=>{if(!J||!this.state.open||WG(X.event))this.context.dataRef.current.openEvent=J?X.event:void 0;if(!this.context.noEmit){let Y={open:J,reason:X.reason,nativeEvent:X.event,nested:this.context.nested,triggerElement:X.trigger};this.context.events.emit("openchange",Y)}this.context.onOpenChange?.(J,X)}}var yG=p(Y0(),1);function KH(J,X){let Y=yG.useRef(null);return yG.useCallback((W)=>{if(J===void 0)return;if(Y.current!==null)X.context.triggerElements.delete(Y.current),Y.current=null;if(W!==null)Y.current=J,X.context.triggerElements.add(J,W)},[X,J])}function cz(J,X,Y,W){let K=Y.useState("isMountedByTrigger",J),U=KH(J,Y),H=F0((q)=>{if(U(q),q!==null&&Y.select("open")&&Y.select("activeTriggerId")==null)Y.update({activeTriggerId:J,activeTriggerElement:q,...W})});return k0(()=>{if(K)Y.update({activeTriggerElement:X.current,...W})},[K,Y,X,...Object.values(W)]),{registerTrigger:H,isMountedByThisTrigger:K}}function lz(J){let X=J.useState("open");k0(()=>{if(X&&!J.select("activeTriggerId")&&J.context.triggerElements.size===1){let Y=J.context.triggerElements.entries().next();if(!Y.done){let[W,K]=Y.value;J.update({activeTriggerId:W,activeTriggerElement:K})}}},[X,J])}function iz(J,X,Y){let{mounted:W,setMounted:K,transitionStatus:U}=xz(J);X.useSyncedValues({mounted:W,transitionStatus:U});let H=F0(()=>{K(!1),X.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),Y?.(),X.context.onOpenChangeComplete?.(!1)}),q=X.useState("preventUnmountingOnClose");return I5({enabled:!q,open:J,ref:X.context.popupRef,onComplete(){if(!J)H()}}),{forceUnmount:H,transitionStatus:U}}class X8{constructor(){this.elements=new Set,this.idMap=new Map}add(J,X){let Y=this.idMap.get(J);if(Y===X)return;if(Y!==void 0)this.elements.delete(Y);if(this.elements.add(X),this.idMap.set(J,X),this.elements.size!==this.idMap.size)throw Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.")}delete(J){let X=this.idMap.get(J);if(X)this.elements.delete(X),this.idMap.delete(J)}hasElement(J){return this.elements.has(J)}hasMatchingElement(J){for(let X of this.elements)if(J(X))return!0;return!1}getById(J){return this.idMap.get(J)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function rO(){return new J9({open:!1,floatingElement:null,referenceElement:null,triggerElements:new X8,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function rz(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:rO(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:v1,inactiveTriggerProps:v1,popupProps:v1}}var az={open:p0((J)=>J.open),mounted:p0((J)=>J.mounted),transitionStatus:p0((J)=>J.transitionStatus),floatingRootContext:p0((J)=>J.floatingRootContext),preventUnmountingOnClose:p0((J)=>J.preventUnmountingOnClose),payload:p0((J)=>J.payload),activeTriggerId:p0((J)=>J.activeTriggerId),activeTriggerElement:p0((J)=>J.mounted?J.activeTriggerElement:null),isTriggerActive:p0((J,X)=>X!==void 0&&J.activeTriggerId===X),isOpenedByTrigger:p0((J,X)=>X!==void 0&&J.activeTriggerId===X&&J.open),isMountedByTrigger:p0((J,X)=>X!==void 0&&J.activeTriggerId===X&&J.mounted),triggerProps:p0((J,X)=>X?J.activeTriggerProps:J.inactiveTriggerProps),popupProps:p0((J)=>J.popupProps),popupElement:p0((J)=>J.popupElement),positionerElement:p0((J)=>J.positionerElement)};function aO(J){let{open:X=!1,onOpenChange:Y,elements:W={}}=J,K=X2(),U=ew()!=null;{let q=W.reference;if(q&&!L1(q))console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}let H=r1(()=>new J9({open:X,onOpenChange:Y,referenceElement:W.reference??null,floatingElement:W.floating??null,triggerElements:W.triggers??new X8,floatingId:K,nested:U,noEmit:J.noEmit||!1})).current;return k0(()=>{let q={open:X,floatingId:K};if(W.reference!==void 0)q.referenceElement=W.reference,q.domReferenceElement=L1(W.reference)?W.reference:null;if(W.floating!==void 0)q.floatingElement=W.floating;H.update(q)},[X,K,W.reference,W.floating,H]),H.context.onOpenChange=Y,H.context.nested=U,H.context.noEmit=J.noEmit||!1,H}function UH(J={}){let{nodeId:X,externalTree:Y}=J,W=aO(J),K=J.rootContext||W,U={reference:K.useState("referenceElement"),floating:K.useState("floatingElement"),domReference:K.useState("domReferenceElement")},[H,q]=j2.useState(null),L=j2.useRef(null),V=Y2(Y);k0(()=>{if(U.domReference)L.current=U.domReference},[U.domReference]);let N=PO({...J,elements:{...U,...H&&{reference:H}}}),F=j2.useCallback((R)=>{let S=L1(R)?{getBoundingClientRect:()=>R.getBoundingClientRect(),getClientRects:()=>R.getClientRects(),contextElement:R}:R;q(S),N.refs.setReference(S)},[N.refs]),[k,j]=j2.useState(null),[O,M]=j2.useState(null);K.useSyncedValue("referenceElement",k),K.useSyncedValue("domReferenceElement",L1(k)?k:null),K.useSyncedValue("floatingElement",O);let v=j2.useCallback((R)=>{if(L1(R)||R===null)L.current=R,j(R);if(L1(N.refs.reference.current)||N.refs.reference.current===null||R!==null&&!L1(R))N.refs.setReference(R)},[N.refs,j]),x=j2.useCallback((R)=>{M(R),N.refs.setFloating(R)},[N.refs]),E=j2.useMemo(()=>({...N.refs,setReference:v,setFloating:x,setPositionReference:F,domReference:L}),[N.refs,v,x,F]),I=j2.useMemo(()=>({...N.elements,domReference:U.domReference}),[N.elements,U.domReference]),C=K.useState("open"),h=K.useState("floatingId"),m=j2.useMemo(()=>({...N,dataRef:K.context.dataRef,open:C,onOpenChange:K.setOpen,events:K.context.events,floatingId:h,refs:E,elements:I,nodeId:X,rootStore:K}),[N,E,I,X,K,C,h]);return k0(()=>{K.context.dataRef.current.floatingContext=m;let R=V?.nodesRef.current.find((S)=>S.id===X);if(R)R.context=m}),j2.useMemo(()=>({...N,context:m,refs:E,elements:I,rootStore:K}),[N,E,I,m,K])}function X9(J){let{popupStore:X,noEmit:Y=!1,treatPopupAsFloatingElement:W=!1,onOpenChange:K}=J,U=X2(),H=ew()!=null,q=X.useState("open"),L=X.useState("activeTriggerElement"),V=X.useState(W?"popupElement":"positionerElement"),N=X.context.triggerElements,F=r1(()=>new J9({open:q,referenceElement:L,floatingElement:V,triggerElements:N,onOpenChange:K,floatingId:U,nested:H,noEmit:Y})).current;return k0(()=>{let k={open:q,floatingId:U,referenceElement:L,floatingElement:V};if(L1(L))k.domReferenceElement=L;F.update(k)},[q,U,L,V,F]),F.context.onOpenChange=K,F.context.nested=H,F.context.noEmit=Y,F}var I6=p(Y0(),1);var _H=qM&&XG;function PX(J,X={}){let Y="rootStore"in J?J.rootStore:J,{events:W,dataRef:K}=Y.context,{enabled:U=!0,visibleOnly:H=!0}=X,q=I6.useRef(!1),L=a1(),V=I6.useRef(!0);I6.useEffect(()=>{let F=Y.select("domReferenceElement");if(!U)return;let k=u1(F);function j(){if(!Y.select("open")&&O1(F)&&F===$2(b1(F)))q.current=!0}function O(){V.current=!0}function M(){V.current=!1}if(k.addEventListener("blur",j),_H)k.addEventListener("keydown",O,!0),k.addEventListener("pointerdown",M,!0);return()=>{if(k.removeEventListener("blur",j),_H)k.removeEventListener("keydown",O,!0),k.removeEventListener("pointerdown",M,!0)}},[Y,U]),I6.useEffect(()=>{if(!U)return;function F(k){if(k.reason===B0.triggerPress||k.reason===B0.escapeKey)q.current=!0}return W.on("openchange",F),()=>{W.off("openchange",F)}},[W,U]);let N=I6.useMemo(()=>({onMouseLeave(){q.current=!1},onFocus(F){if(q.current)return;let k=f1(F.nativeEvent);if(H&&L1(k)){if(_H&&!F.relatedTarget){if(!V.current&&!qX(k))return}else if(!BM(k))return}Y.setOpen(!0,P0(B0.triggerFocus,F.nativeEvent,F.currentTarget))},onBlur(F){q.current=!1;let{relatedTarget:k,nativeEvent:j}=F,O=L1(k)&&k.hasAttribute(X5("focus-guard"))&&k.getAttribute("data-type")==="outside";L.start(0,()=>{let M=Y.select("domReferenceElement"),v=$2(M?M.ownerDocument:document);if(!k&&v===M)return;if(t0(K.current.floatingContext?.refs.floating.current,v)||t0(M,v)||O)return;if(Y.context.triggerElements.hasElement(F.relatedTarget))return;Y.setOpen(!1,P0(B0.triggerFocus,j))})}}),[K,Y,H,L]);return I6.useMemo(()=>U?{reference:N,trigger:N}:{},[U,N])}var sz=p(Y0(),1);var $8=p(Y0(),1);var IX=X5("safe-polygon"),dS=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${hz}`;function sO(J){return J?Boolean(J.closest(dS)):!1}function RG(J){let X=$8.useRef(void 0),Y=$8.useRef(!1),W=$8.useRef(void 0),K=$8.useRef(!0),U=$8.useRef(!1),H=$8.useRef(()=>{}),q=$8.useRef(!1),L=a1(),V=a1(),N=$8.useRef(void 0);return $8.useMemo(()=>{let F=J.context.dataRef.current;if(!F.hoverInteractionState)F.hoverInteractionState={pointerTypeRef:X,interactedInsideRef:Y,handlerRef:W,blockMouseMoveRef:K,performedPointerEventsMutationRef:U,unbindMouseMoveRef:H,restTimeoutPendingRef:q,openChangeTimeout:L,restTimeout:V,handleCloseOptionsRef:N};return F.hoverInteractionState},[J,X,Y,W,K,U,H,q,L,V,N])}var uS=new Set(["click","mousedown"]);function CX(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("domReferenceElement"),{dataRef:H}=Y.context,{enabled:q=!0,closeDelay:L=0,externalTree:V}=X,{pointerTypeRef:N,interactedInsideRef:F,handlerRef:k,performedPointerEventsMutationRef:j,unbindMouseMoveRef:O,restTimeoutPendingRef:M,openChangeTimeout:v,handleCloseOptionsRef:x}=RG(Y),E=Y2(V),I=ew(),C=F0(()=>{if(F.current)return!0;return H.current.openEvent?uS.has(H.current.openEvent.type):!1}),h=F0(()=>{let d=H.current.openEvent?.type;return d?.includes("mouse")&&d!=="mousedown"}),m=sz.useCallback((d,w0=!0)=>{let t=pS(L,N.current);if(t&&!k.current)v.start(t,()=>Y.setOpen(!1,P0(B0.triggerHover,d)));else if(w0)v.clear(),Y.setOpen(!1,P0(B0.triggerHover,d))},[L,k,Y,N,v]),R=F0(()=>{O.current(),k.current=void 0}),S=F0(()=>{if(j.current){let d=b1(K).body;d.style.pointerEvents="",d.removeAttribute(IX),j.current=!1}}),c=F0((d)=>{let w0=f1(d);if(!sO(w0)){F.current=!1;return}F.current=!0});k0(()=>{if(!W)N.current=void 0,M.current=!1,F.current=!1,R(),S()},[W,N,M,F,R,S]),sz.useEffect(()=>{return()=>{R()}},[R]),sz.useEffect(()=>{return S},[S]),k0(()=>{if(!q)return;if(W&&x.current?.blockPointerEvents&&h()&&L1(U)&&K){j.current=!0;let d=b1(K).body;d.setAttribute(IX,"");let w0=U,t=K,u=E?.nodesRef.current.find((Q0)=>Q0.id===I)?.context?.elements.floating;if(u)u.style.pointerEvents="";return d.style.pointerEvents="none",w0.style.pointerEvents="auto",t.style.pointerEvents="auto",()=>{d.style.pointerEvents="",w0.style.pointerEvents="",t.style.pointerEvents=""}}return},[q,W,U,K,x,h,E,I,j]),sz.useEffect(()=>{if(!q)return;function d(Q0){if(C()||!H.current.floatingContext||!Y.select("open"))return;let r=Y.context.triggerElements;if(Q0.relatedTarget&&r.hasElement(Q0.relatedTarget))return;if(S(),R(),!C())m(Q0)}function w0(Q0){v.clear(),S(),k.current?.(Q0),R()}function t(Q0){if(!C())m(Q0,!1)}let u=K;if(u)u.addEventListener("mouseleave",d),u.addEventListener("mouseenter",w0),u.addEventListener("mouseleave",t),u.addEventListener("pointerdown",c,!0);return()=>{if(u)u.removeEventListener("mouseleave",d),u.removeEventListener("mouseenter",w0),u.removeEventListener("mouseleave",t),u.removeEventListener("pointerdown",c,!0)}})}function pS(J,X){if(X&&!P5(X))return 0;if(typeof J==="function")return J();return J}var $9=p(Y0(),1),oO=p(m8(),1);function qH(J){if(typeof J==="function")return J();return J}var cS={current:null};function Y9(J,X={}){let Y="rootStore"in J?J.rootStore:J,{dataRef:W,events:K}=Y.context,{enabled:U=!0,delay:H=0,handleClose:q=null,mouseOnly:L=!1,restMs:V=0,move:N=!0,triggerElementRef:F=cS,externalTree:k,isActiveTrigger:j=!0}=X,O=Y2(k),{pointerTypeRef:M,interactedInsideRef:v,handlerRef:x,blockMouseMoveRef:E,performedPointerEventsMutationRef:I,unbindMouseMoveRef:C,restTimeoutPendingRef:h,openChangeTimeout:m,restTimeout:R,handleCloseOptionsRef:S}=RG(Y),c=Uw(q),d=Uw(H),w0=Uw(V);if(j)S.current=c.current?.__options;let t=F0(()=>{if(v.current)return!0;return W.current.openEvent?["click","mousedown"].includes(W.current.openEvent.type):!1}),u=$9.useCallback((o,g=!0)=>{let X0=Rz(d.current,"close",M.current);if(X0&&!x.current)m.start(X0,()=>Y.setOpen(!1,P0(B0.triggerHover,o)));else if(g)m.clear(),Y.setOpen(!1,P0(B0.triggerHover,o))},[d,x,Y,M,m]),Q0=F0(()=>{C.current(),x.current=void 0}),r=F0(()=>{if(I.current){let o=b1(Y.select("domReferenceElement")).body;o.style.pointerEvents="",o.removeAttribute(IX),I.current=!1}});$9.useEffect(()=>{if(!U)return;function o(g){if(!g.open)m.clear(),R.clear(),E.current=!0,h.current=!1}return K.on("openchange",o),()=>{K.off("openchange",o)}},[U,K,m,R,E,h]);let e=F0((o)=>{if(t())return;if(!W.current.floatingContext)return;let g=Y.context.triggerElements;if(o.relatedTarget&&g.hasElement(o.relatedTarget))return;let X0=F.current;c.current?.({...W.current.floatingContext,tree:O,x:o.clientX,y:o.clientY,onClose(){if(r(),Q0(),!t()&&X0===Y.select("domReferenceElement"))u(o)}})(o)});return $9.useEffect(()=>{if(!U)return;let o=F.current??(j?Y.select("domReferenceElement"):null);if(!L1(o))return;function g(z0){if(m.clear(),E.current=!1,L&&!P5(M.current))return;if(qH(w0.current)>0&&!Rz(d.current,"open"))return;let U0=Rz(d.current,"open",M.current),J0=Y.select("domReferenceElement"),L0=Y.context.triggerElements,S0=(L0.hasElement(z0.target)||L0.hasMatchingElement((A0)=>t0(A0,z0.target)))&&(!J0||!t0(J0,z0.target)),V0=z0.currentTarget??null,_0=!Y.select("open")||S0;if(U0)m.start(U0,()=>{if(_0)Y.setOpen(!0,P0(B0.triggerHover,z0,V0))});else if(_0)Y.setOpen(!0,P0(B0.triggerHover,z0,V0))}function X0(z0){if(t()){r();return}C.current();let U0=Y.select("domReferenceElement"),J0=b1(U0);R.clear(),h.current=!1;let L0=Y.context.triggerElements;if(z0.relatedTarget&&L0.hasElement(z0.relatedTarget))return;if(c.current&&W.current.floatingContext){if(!Y.select("open"))m.clear();let V0=F.current;x.current=c.current({...W.current.floatingContext,tree:O,x:z0.clientX,y:z0.clientY,onClose(){if(r(),Q0(),!t()&&V0===Y.select("domReferenceElement"))u(z0,!0)}});let _0=x.current;_0(z0),J0.addEventListener("mousemove",_0),C.current=()=>{J0.removeEventListener("mousemove",_0)};return}if(M.current==="touch"?!t0(Y.select("floatingElement"),z0.relatedTarget):!0)u(z0)}function P(z0){e(z0)}if(Y.select("open"))o.addEventListener("mouseleave",P);if(N)o.addEventListener("mousemove",g,{once:!0});return o.addEventListener("mouseenter",g),o.addEventListener("mouseleave",X0),()=>{if(o.removeEventListener("mouseleave",P),N)o.removeEventListener("mousemove",g);o.removeEventListener("mouseenter",g),o.removeEventListener("mouseleave",X0)}},[Q0,r,E,W,d,u,Y,U,c,e,j,t,L,N,M,w0,R,h,m,F,O,C,x]),$9.useMemo(()=>{function o(g){M.current=g.pointerType}return{onPointerDown:o,onPointerEnter:o,onMouseMove(g){let{nativeEvent:X0}=g,P=g.currentTarget,z0=Y.select("domReferenceElement"),U0=Y.context.triggerElements,J0=Y.select("open"),L0=(U0.hasElement(g.target)||U0.hasMatchingElement((V0)=>t0(V0,g.target)))&&(!z0||!t0(z0,g.target));if(L&&!P5(M.current))return;if(J0&&!L0||qH(w0.current)===0)return;if(!L0&&h.current&&g.movementX**2+g.movementY**2<2)return;R.clear();function S0(){if(!E.current&&(!J0||L0))Y.setOpen(!0,P0(B0.triggerHover,X0,P))}if(M.current==="touch")oO.flushSync(()=>{S0()});else if(L0&&J0)S0();else h.current=!0,R.start(qH(w0.current),S0)}}},[E,L,Y,M,w0,R,h])}var G9=p(Y0(),1);function Y5(J=[]){let X=J.map((V)=>V?.reference),Y=J.map((V)=>V?.floating),W=J.map((V)=>V?.item),K=J.map((V)=>V?.trigger),U=G9.useCallback((V)=>gG(V,J,"reference"),X),H=G9.useCallback((V)=>gG(V,J,"floating"),Y),q=G9.useCallback((V)=>gG(V,J,"item"),W),L=G9.useCallback((V)=>gG(V,J,"trigger"),K);return G9.useMemo(()=>({getReferenceProps:U,getFloatingProps:H,getItemProps:q,getTriggerProps:L}),[U,H,q,L])}function gG(J,X,Y){let W=new Map,K=Y==="item",U={};if(Y==="floating")U.tabIndex=-1,U[UX]="";for(let H in J){if(K&&J){if(H===Mq||H===Oq)continue}U[H]=J[H]}for(let H=0;H<X.length;H+=1){let q,L=X[H]?.[Y];if(typeof L==="function")q=J?L(J):null;else q=L;if(!q)continue;nO(U,q,K,W)}return nO(U,J,K,W),U}function nO(J,X,Y,W){for(let K in X){let U=X[K];if(Y&&(K===Mq||K===Oq))continue;if(!K.startsWith("on"))J[K]=U;else{if(!W.has(K))W.set(K,[]);if(typeof U==="function")W.get(K)?.push(U),J[K]=(...H)=>{return W.get(K)?.map((q)=>q(...H)).find((q)=>q!==void 0)}}}}var bw=p(Y0(),1);var lS="Escape";function mG(J,X,Y){switch(J){case"vertical":return X;case"horizontal":return Y;default:return X||Y}}function fG(J,X){return mG(X,J===_X||J===c7,J===c8||J===l8)}function HH(J,X,Y){return mG(X,J===c7,Y?J===c8:J===l8)||J==="Enter"||J===" "||J===""}function iS(J,X,Y){return mG(X,Y?J===c8:J===l8,J===c7)}function rS(J,X,Y,W){let K=Y?J===l8:J===c8,U=J===_X;if(X==="both"||X==="horizontal"&&W&&W>1)return J===lS;return mG(X,K,U)}function BH(J,X){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("domReferenceElement"),H=Y.context.dataRef,{listRef:q,activeIndex:L,onNavigate:V=()=>{},enabled:N=!0,selectedIndex:F=null,allowEscape:k=!1,loopFocus:j=!1,nested:O=!1,rtl:M=!1,virtual:v=!1,focusItemOnOpen:x="auto",focusItemOnHover:E=!0,openOnArrowKeyDown:I=!0,disabledIndices:C=void 0,orientation:h="vertical",parentOrientation:m,cols:R=1,scrollItemIntoView:S=!0,itemSizes:c,dense:d=!1,id:w0,resetOnPointerLeave:t=!0,externalTree:u}=X;if(k){if(!j)console.warn("`useListNavigation` looping must be enabled to allow escaping.");if(!v)console.warn("`useListNavigation` must be virtual to allow escaping.")}if(h==="vertical"&&R>1)console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".');let Q0=l7(K),r=Uw(Q0),e=ew(),o=Y2(u);k0(()=>{H.current.orientation=h},[H,h]);let g=HX(U),X0=bw.useRef(x),P=bw.useRef(F??-1),z0=bw.useRef(null),U0=bw.useRef(!0),J0=F0((x0)=>{V(P.current===-1?null:P.current,x0)}),L0=bw.useRef(J0),S0=bw.useRef(!!K),V0=bw.useRef(W),_0=bw.useRef(!1),A0=bw.useRef(!1),r0=Uw(C),n0=Uw(W),n=Uw(S),R0=Uw(F),I0=Uw(t),A1=F0(()=>{function x0(T1){if(v)o?.events.emit("virtualfocus",T1);else gz(T1,{sync:_0.current,preventScroll:!0})}let l0=q.current[P.current],y0=A0.current;if(l0)x0(l0);(_0.current?(T1)=>T1():requestAnimationFrame)(()=>{let T1=q.current[P.current]||l0;if(!T1)return;if(!l0)x0(T1);let W1=n.current;if(W1&&q0&&(y0||!U0.current))T1.scrollIntoView?.(typeof W1==="boolean"?{block:"nearest",inline:"nearest"}:W1)})});k0(()=>{if(!N)return;if(W&&K){if(P.current=F??-1,X0.current&&F!=null)A0.current=!0,J0()}else if(S0.current)P.current=-1,L0.current()},[N,W,K,F,J0]),k0(()=>{if(!N)return;if(!W){_0.current=!1;return}if(!K)return;if(L==null){if(_0.current=!1,R0.current!=null)return;if(S0.current)P.current=-1,A1();if((!V0.current||!S0.current)&&X0.current&&(z0.current!=null||X0.current===!0&&z0.current==null)){let x0=0,l0=()=>{if(q.current[0]==null){if(x0<2)(x0?requestAnimationFrame:queueMicrotask)(l0);x0+=1}else P.current=z0.current==null||HH(z0.current,h,M)||O?r7(q):Pz(q),z0.current=null,J0()};l0()}}else if(!x6(q,L))P.current=L,A1(),A0.current=!1},[N,W,K,L,R0,O,q,h,M,J0,A1,r0]),k0(()=>{if(!N||K||!o||v||!S0.current)return;let x0=o.nodesRef.current,l0=x0.find((T1)=>T1.id===e)?.context?.elements.floating,y0=$2(b1(K)),H1=x0.some((T1)=>T1.context&&t0(T1.context.elements.floating,y0));if(l0&&!H1&&U0.current)l0.focus({preventScroll:!0})},[N,K,o,e,v]),k0(()=>{L0.current=J0,V0.current=W,S0.current=!!K}),k0(()=>{if(!W)z0.current=null,X0.current=x},[W,x]);let C0=L!=null,q0=bw.useMemo(()=>{function x0(y0){if(!n0.current)return;let H1=q.current.indexOf(y0.currentTarget);if(H1!==-1&&P.current!==H1)P.current=H1,J0(y0)}return{onFocus(y0){_0.current=!0,x0(y0)},onClick:({currentTarget:y0})=>y0.focus({preventScroll:!0}),onMouseMove(y0){if(_0.current=!0,A0.current=!1,E)x0(y0)},onPointerLeave(y0){if(!n0.current||!U0.current||y0.pointerType==="touch")return;_0.current=!0;let H1=y0.relatedTarget;if(!E||q.current.includes(H1))return;if(!I0.current)return;if(P.current=-1,J0(y0),!v)r.current?.focus({preventScroll:!0})}}},[n0,r,E,q,J0,I0,v]),O0=bw.useCallback(()=>{return m??o?.nodesRef.current.find((x0)=>x0.id===e)?.context?.dataRef?.current.orientation},[e,o,m]),j0=F0((x0)=>{if(U0.current=!1,_0.current=!0,x0.which===229)return;if(!n0.current&&x0.currentTarget===r.current)return;if(O&&rS(x0.key,h,M,R)){if(!fG(x0.key,O0()))Xw(x0);if(Y.setOpen(!1,P0(B0.listNavigation,x0.nativeEvent)),O1(U))if(v)o?.events.emit("virtualfocus",U);else U.focus();return}let l0=P.current,y0=r7(q,C),H1=Pz(q,C);if(!g){if(x0.key==="Home")Xw(x0),P.current=y0,J0(x0);if(x0.key==="End")Xw(x0),P.current=H1,J0(x0)}if(R>1){let T1=c||Array.from({length:q.current.length},()=>({width:1,height:1})),W1=kX(T1,R,d),Qw=W1.findIndex((_w)=>_w!=null&&!J8(q,_w,C)),zw=W1.reduce((_w,hw,J1)=>hw!=null&&!J8(q,hw,C)?J1:_w,-1),Vw=W1[NX({current:W1.map((_w)=>_w!=null?q.current[_w]:null)},{event:x0,orientation:h,loopFocus:j,rtl:M,cols:R,disabledIndices:AX([...(typeof C!=="function"?C:null)||q.current.map((_w,hw)=>J8(q,hw,C)?hw:void 0),void 0],W1),minIndex:Qw,maxIndex:zw,prevIndex:jX(P.current>H1?y0:P.current,T1,W1,R,x0.key===c7?"bl":x0.key===(M?c8:l8)?"tr":"tl"),stopEvent:!0})];if(Vw!=null)P.current=Vw,J0(x0);if(h==="both")return}if(fG(x0.key,h)){if(Xw(x0),W&&!v&&$2(x0.currentTarget.ownerDocument)===x0.currentTarget){P.current=HH(x0.key,h,M)?y0:H1,J0(x0);return}if(HH(x0.key,h,M))if(j)if(l0>=H1)if(k&&l0!==q.current.length)P.current=-1;else _0.current=!1,P.current=y0;else P.current=Tw(q,{startingIndex:l0,disabledIndices:C});else P.current=Math.min(H1,Tw(q,{startingIndex:l0,disabledIndices:C}));else if(j)if(l0<=y0)if(k&&l0!==-1)P.current=q.current.length;else _0.current=!1,P.current=H1;else P.current=Tw(q,{startingIndex:l0,decrement:!0,disabledIndices:C});else P.current=Math.max(y0,Tw(q,{startingIndex:l0,decrement:!0,disabledIndices:C}));if(x6(q,P.current))P.current=-1;J0(x0)}}),c0=bw.useMemo(()=>{return v&&W&&C0&&{"aria-activedescendant":`${w0}-${L}`}},[v,W,C0,w0,L]),b0=bw.useMemo(()=>{return{"aria-orientation":h==="both"?void 0:h,...!g?c0:{},onKeyDown(x0){if(x0.key==="Tab"&&x0.shiftKey&&W&&!v){let l0=f1(x0.nativeEvent);if(l0&&!t0(r.current,l0))return;if(Xw(x0),Y.setOpen(!1,P0(B0.focusOut,x0.nativeEvent)),O1(U))U.focus();return}j0(x0)},onPointerMove(){U0.current=!0}}},[c0,j0,r,h,g,Y,W,v,U]),h0=bw.useMemo(()=>{function x0(y0){if(x==="auto"&&GG(y0.nativeEvent))X0.current=!v}function l0(y0){if(X0.current=x,x==="auto"&&QG(y0.nativeEvent))X0.current=!0}return{onKeyDown(y0){let H1=Y.select("open");U0.current=!1;let T1=y0.key.startsWith("Arrow"),W1=iS(y0.key,O0(),M),Qw=fG(y0.key,h),zw=(O?W1:Qw)||y0.key==="Enter"||y0.key.trim()==="";if(v&&H1)return j0(y0);if(!H1&&!I&&T1)return;if(zw){let Vw=fG(y0.key,O0());z0.current=O&&Vw?null:y0.key}if(O){if(W1)if(Xw(y0),H1)P.current=r7(q,r0.current),J0(y0);else Y.setOpen(!0,P0(B0.listNavigation,y0.nativeEvent,y0.currentTarget));return}if(Qw){if(R0.current!=null)P.current=R0.current;if(Xw(y0),!H1&&I)Y.setOpen(!0,P0(B0.listNavigation,y0.nativeEvent,y0.currentTarget));else j0(y0);if(H1)J0(y0)}return},onFocus(y0){if(Y.select("open")&&!v)P.current=-1,J0(y0)},onPointerDown:l0,onPointerEnter:l0,onMouseDown:x0,onClick:x0}},[j0,r0,x,q,O,J0,Y,I,h,O0,M,R0,v]),o0=bw.useMemo(()=>{return{...c0,...h0}},[c0,h0]);return bw.useMemo(()=>N?{reference:o0,floating:b0,item:q0,trigger:h0}:{},[N,o0,b0,h0,q0])}var g4=p(Y0(),1);var aS=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function SX(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingId"),U=Y.useState("domReferenceElement"),H=Y.useState("floatingElement"),{enabled:q=!0,role:L="dialog"}=X,V=X2(),N=U?.id||V,F=g4.useMemo(()=>l7(H)?.id||K,[H,K]),k=aS.get(L)??L,O=ew()!=null,M=g4.useMemo(()=>{if(k==="tooltip"||L==="label")return v1;return{"aria-haspopup":k==="alertdialog"?"dialog":k,"aria-expanded":"false",...k==="listbox"&&{role:"combobox"},...k==="menu"&&O&&{role:"menuitem"},...L==="select"&&{"aria-autocomplete":"none"},...L==="combobox"&&{"aria-autocomplete":"list"}}},[k,O,L]),v=g4.useMemo(()=>{if(k==="tooltip"||L==="label")return{[`aria-${L==="label"?"labelledby":"describedby"}`]:W?F:void 0};return{...M,"aria-expanded":W?"true":"false","aria-controls":W?F:void 0,...k==="menu"&&{id:N}}},[k,F,W,N,L,M]),x=g4.useMemo(()=>{let I={id:F,...k&&{role:k}};if(k==="tooltip"||L==="label")return I;return{...I,...k==="menu"&&{"aria-labelledby":N}}},[k,F,N,L]),E=g4.useCallback(({active:I,selected:C})=>{let h={role:"option",...I&&{id:`${F}-fui-option`}};switch(L){case"select":case"combobox":return{...h,"aria-selected":C};default:}return{}},[F,L]);return g4.useMemo(()=>q?{reference:v,floating:x,item:E,trigger:M}:{},[q,v,x,M,E])}var f4=p(Y0(),1);function LH(J,X){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.context.dataRef,{listRef:U,activeIndex:H,onMatch:q,onTypingChange:L,enabled:V=!0,findMatch:N=null,resetMs:F=750,ignoreKeys:k=e2,selectedIndex:j=null}=X,O=a1(),M=f4.useRef(""),v=f4.useRef(j??H??-1),x=f4.useRef(null);k0(()=>{if(W)O.clear(),x.current=null,M.current=""},[W,O]),k0(()=>{if(W&&M.current==="")v.current=j??H??-1},[W,j,H]);let E=F0((m)=>{if(m){if(!K.current.typing)K.current.typing=m,L?.(m)}else if(K.current.typing)K.current.typing=m,L?.(m)}),I=F0((m)=>{function R(t,u,Q0){let r=N?N(u,Q0):u.find((e)=>e?.toLocaleLowerCase().indexOf(Q0.toLocaleLowerCase())===0);return r?t.indexOf(r):-1}let S=U.current;if(M.current.length>0&&M.current[0]!==" "){if(R(S,S,M.current)===-1)E(!1);else if(m.key===" ")Xw(m)}if(S==null||k.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;if(W&&m.key!==" ")Xw(m),E(!0);if(S.every((t)=>t?t[0]?.toLocaleLowerCase()!==t[1]?.toLocaleLowerCase():!0)&&M.current===m.key)M.current="",v.current=x.current;M.current+=m.key,O.start(F,()=>{M.current="",v.current=x.current,E(!1)});let d=v.current,w0=R(S,[...S.slice((d||0)+1),...S.slice(0,(d||0)+1)],M.current);if(w0!==-1)q?.(w0),x.current=w0;else if(m.key!==" ")M.current="",E(!1)}),C=f4.useMemo(()=>({onKeyDown:I}),[I]),h=f4.useMemo(()=>{return{onKeyDown:I,onKeyUp(m){if(m.key===" ")E(!1)}}},[I,E]);return f4.useMemo(()=>V?{reference:C,floating:h}:{},[V,C,h])}function tO(J,X){let[Y,W]=J,K=!1,U=X.length;for(let H=0,q=U-1;H<U;q=H++){let[L,V]=X[H]||[0,0],[N,F]=X[q]||[0,0];if(V>=W!==F>=W&&Y<=(N-L)*(W-V)/(F-V)+L)K=!K}return K}function sS(J,X){return J[0]>=X.x&&J[0]<=X.x+X.width&&J[1]>=X.y&&J[1]<=X.y+X.height}function Q9(J={}){let{buffer:X=0.5,blockPointerEvents:Y=!1,requireIntent:W=!0}=J,K=new C5,U=!1,H=null,q=null,L=typeof performance<"u"?performance.now():0;function V(F,k){let j=performance.now(),O=j-L;if(H===null||q===null||O===0)return H=F,q=k,L=j,null;let M=F-H,v=k-q,E=Math.sqrt(M*M+v*v)/O;return H=F,q=k,L=j,E}let N=({x:F,y:k,placement:j,elements:O,onClose:M,nodeId:v,tree:x})=>{return function(I){function C(){K.clear(),M()}if(K.clear(),!O.domReference||!O.floating||j==null||F==null||k==null)return;let{clientX:h,clientY:m}=I,R=[h,m],S=f1(I),c=I.type==="mouseleave",d=t0(O.floating,S),w0=t0(O.domReference,S),t=O.domReference.getBoundingClientRect(),u=O.floating.getBoundingClientRect(),Q0=j.split("-")[0],r=F>u.right-u.width/2,e=k>u.bottom-u.height/2,o=sS(R,t),g=u.width>t.width,X0=u.height>t.height,P=(g?t:u).left,z0=(g?t:u).right,U0=(X0?t:u).top,J0=(X0?t:u).bottom;if(d){if(U=!0,!c)return}if(w0)U=!1;if(w0&&!c){U=!0;return}if(c&&L1(I.relatedTarget)&&t0(O.floating,I.relatedTarget))return;if(x&&i8(x.nodesRef.current,v).some(({context:V0})=>V0?.open))return;if(Q0==="top"&&k>=t.bottom-1||Q0==="bottom"&&k<=t.top+1||Q0==="left"&&F>=t.right-1||Q0==="right"&&F<=t.left+1)return C();let L0=[];switch(Q0){case"top":L0=[[P,t.top+1],[P,u.bottom-1],[z0,u.bottom-1],[z0,t.top+1]];break;case"bottom":L0=[[P,u.top+1],[P,t.bottom-1],[z0,t.bottom-1],[z0,u.top+1]];break;case"left":L0=[[u.right-1,J0],[u.right-1,U0],[t.left+1,U0],[t.left+1,J0]];break;case"right":L0=[[t.right-1,J0],[t.right-1,U0],[u.left+1,U0],[u.left+1,J0]];break;default:}function S0([V0,_0]){switch(Q0){case"top":{let A0=[g?V0+X/2:r?V0+X*4:V0-X*4,_0+X+1],r0=[g?V0-X/2:r?V0+X*4:V0-X*4,_0+X+1],n0=[[u.left,r?u.bottom-X:g?u.bottom-X:u.top],[u.right,r?g?u.bottom-X:u.top:u.bottom-X]];return[A0,r0,...n0]}case"bottom":{let A0=[g?V0+X/2:r?V0+X*4:V0-X*4,_0-X],r0=[g?V0-X/2:r?V0+X*4:V0-X*4,_0-X],n0=[[u.left,r?u.top+X:g?u.top+X:u.bottom],[u.right,r?g?u.top+X:u.bottom:u.top+X]];return[A0,r0,...n0]}case"left":{let A0=[V0+X+1,X0?_0+X/2:e?_0+X*4:_0-X*4],r0=[V0+X+1,X0?_0-X/2:e?_0+X*4:_0-X*4];return[...[[e?u.right-X:X0?u.right-X:u.left,u.top],[e?X0?u.right-X:u.left:u.right-X,u.bottom]],A0,r0]}case"right":{let A0=[V0-X,X0?_0+X/2:e?_0+X*4:_0-X*4],r0=[V0-X,X0?_0-X/2:e?_0+X*4:_0-X*4],n0=[[e?u.left+X:X0?u.left+X:u.right,u.top],[e?X0?u.left+X:u.right:u.left+X,u.bottom]];return[A0,r0,...n0]}default:return[]}}if(tO([h,m],L0))return;if(U&&!o)return C();if(!c&&W){let V0=V(I.clientX,I.clientY),_0=0.1;if(V0!==null&&V0<0.1)return C()}if(!tO([h,m],S0([F,k])))C();else if(!U&&W)K.start(40,C);return}};return N.__options={blockPointerEvents:Y},N}var oz=p(Y0(),1);var bX=p(Y0(),1);function eO(J){let X=bX.useRef(""),Y=bX.useCallback((K)=>{if(K.defaultPrevented)return;X.current=K.pointerType,J(K,K.pointerType)},[J]);return{onClick:bX.useCallback((K)=>{if(K.detail===0){J(K,"keyboard");return}if("pointerType"in K)J(K,K.pointerType);J(K,X.current),X.current=""},[J]),onPointerDown:Y}}function dG(J){let[X,Y]=oz.useState(null),W=F0((q,L)=>{if(!J)Y(L)}),K=oz.useCallback(()=>{Y(null)},[]),{onClick:U,onPointerDown:H}=eO(W);return oz.useMemo(()=>({openMethod:X,reset:K,triggerProps:{onClick:U,onPointerDown:H}}),[X,K,U,H])}function wD(J){let{store:X,parentContext:Y,actionsRef:W}=J,K=X.useState("open"),U=X.useState("disablePointerDismissal"),H=X.useState("modal"),q=X.useState("popupElement"),{openMethod:L,triggerProps:V,reset:N}=dG(K);lz(X);let{forceUnmount:F}=iz(K,X,()=>{N()}),k=F0((d)=>{let w0=P0(d);return w0.preventUnmountOnClose=()=>{X.set("preventUnmountingOnClose",!0)},w0}),j=b5.useCallback(()=>{X.setOpen(!1,k(B0.imperativeAction))},[X,k]);b5.useImperativeHandle(W,()=>({unmount:F,close:j}),[F,j]);let O=X9({popupStore:X,onOpenChange:X.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[M,v]=b5.useState(0),x=M===0,E=SX(O),I=Z9(O,{outsidePressEvent(){if(X.context.internalBackdropRef.current||X.context.backdropRef.current)return"intentional";return{mouse:H==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(d){if("button"in d&&d.button!==0)return!1;if("touches"in d&&d.touches.length!==1)return!1;let w0=f1(d);if(x&&!U){let t=w0;if(H)return X.context.internalBackdropRef.current||X.context.backdropRef.current?X.context.internalBackdropRef.current===t||X.context.backdropRef.current===t||t0(t,q)&&!t?.hasAttribute("data-base-ui-portal"):!0;return!0}return!1},escapeKey:x});kG(K&&H===!0,q);let{getReferenceProps:C,getFloatingProps:h,getTriggerProps:m}=Y5([E,I]);X.useContextCallback("onNestedDialogOpen",(d)=>{v(d+1)}),X.useContextCallback("onNestedDialogClose",()=>{v(0)}),b5.useEffect(()=>{if(Y?.onNestedDialogOpen&&K)Y.onNestedDialogOpen(M);if(Y?.onNestedDialogClose&&!K)Y.onNestedDialogClose();return()=>{if(Y?.onNestedDialogClose&&K)Y.onNestedDialogClose()}},[K,Y,M]);let R=b5.useMemo(()=>C(V),[C,V]),S=b5.useMemo(()=>m(V),[m,V]),c=b5.useMemo(()=>h(),[h]);X.useSyncedValues({openMethod:L,activeTriggerProps:R,inactiveTriggerProps:S,popupProps:c,floatingRootContext:O,nestedOpenDialogCount:M})}var uG=p(Y0(),1),pG=uG.createContext(void 0);pG.displayName="DialogRootContext";function cw(J){let X=uG.useContext(pG);if(J===!1&&X===void 0)throw Error("Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");return X}var cG=p(Y0(),1);var oS={...az,modal:p0((J)=>J.modal),nested:p0((J)=>J.nested),nestedOpenDialogCount:p0((J)=>J.nestedOpenDialogCount),disablePointerDismissal:p0((J)=>J.disablePointerDismissal),openMethod:p0((J)=>J.openMethod),descriptionElementId:p0((J)=>J.descriptionElementId),titleElementId:p0((J)=>J.titleElementId),viewportElement:p0((J)=>J.viewportElement),role:p0((J)=>J.role)};class yX extends P6{constructor(J){super(nS(J),{popupRef:cG.createRef(),backdropRef:cG.createRef(),internalBackdropRef:cG.createRef(),triggerElements:new X8,onOpenChange:void 0,onOpenChangeComplete:void 0},oS)}setOpen=(J,X)=>{if(X.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!J&&X.trigger==null&&this.state.activeTriggerId!=null)X.trigger=this.state.activeTriggerElement??void 0;if(this.context.onOpenChange?.(J,X),X.isCanceled)return;let Y={open:J,nativeEvent:X.event,reason:X.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",Y);let W={open:J},K=X.trigger?.id??null;if(K||J)W.activeTriggerId=K,W.activeTriggerElement=X.trigger??null;this.update(W)}}function nS(J={}){return{...rz(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...J}}var lG=p(Y0(),1);var G5=function(J){return J.open="data-open",J.closed="data-closed",J[J.startingStyle=QX.startingStyle]="startingStyle",J[J.endingStyle=QX.endingStyle]="endingStyle",J.anchorHidden="data-anchor-hidden",J}({}),VH=function(J){return J.popupOpen="data-popup-open",J.pressed="data-pressed",J}({}),tS={[VH.popupOpen]:""},eS={[VH.popupOpen]:"",[VH.pressed]:""},wb={[G5.open]:""},zb={[G5.closed]:""},Zb={[G5.anchorHidden]:""},nz={open(J){if(J)return tS;return null}},RX={open(J){if(J)return eS;return null}},vw={open(J){if(J)return wb;return zb},anchorHidden(J){if(J)return Zb;return null}};var Jb={...vw,...I2},FH=lG.forwardRef(function(X,Y){let{render:W,className:K,forceRender:U=!1,...H}=X,{store:q}=cw(),L=q.useState("open"),V=q.useState("nested"),N=q.useState("mounted"),F=q.useState("transitionStatus"),k=lG.useMemo(()=>({open:L,transitionStatus:F}),[L,F]);return v0("div",X,{state:k,ref:[q.context.backdropRef,Y],stateAttributesMapping:Jb,props:[{role:"presentation",hidden:!N,style:{userSelect:"none",WebkitUserSelect:"none"}},H],enabled:U||!V})});FH.displayName="DialogBackdrop";var iG=p(Y0(),1);var NH=iG.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,nativeButton:H=!0,...q}=X,{store:L}=cw(),V=L.useState("open");function N(O){if(V)L.setOpen(!1,P0(B0.closePress,O.nativeEvent))}let{getButtonProps:F,buttonRef:k}=J5({disabled:U,native:H}),j=iG.useMemo(()=>({disabled:U}),[U]);return v0("button",X,{state:j,ref:[Y,k],props:[{onClick:N},q,F]})});NH.displayName="DialogClose";var zD=p(Y0(),1);var kH=zD.forwardRef(function(X,Y){let{render:W,className:K,id:U,...H}=X,{store:q}=cw(),L=ww(U);return q.useSyncedValueWithCleanup("descriptionElementId",L),v0("p",X,{ref:Y,props:[{id:L},H]})});kH.displayName="DialogDescription";var oG=p(Y0(),1);var ZD=function(J){return J.nestedDialogs="--nested-dialogs",J}({});var JD=function(J){return J[J.open=G5.open]="open",J[J.closed=G5.closed]="closed",J[J.startingStyle=G5.startingStyle]="startingStyle",J[J.endingStyle=G5.endingStyle]="endingStyle",J.nested="data-nested",J.nestedDialogOpen="data-nested-dialog-open",J}({});var rG=p(Y0(),1),aG=rG.createContext(void 0);aG.displayName="DialogPortalContext";function sG(){let J=rG.useContext(aG);if(J===void 0)throw Error("Base UI: <Dialog.Portal> is missing.");return J}var XD=p(E1(),1),Xb={...vw,...I2,nestedDialogOpen(J){return J?{[JD.nestedDialogOpen]:""}:null}},jH=oG.forwardRef(function(X,Y){let{className:W,finalFocus:K,initialFocus:U,render:H,...q}=X,{store:L}=cw(),V=L.useState("descriptionElementId"),N=L.useState("disablePointerDismissal"),F=L.useState("floatingRootContext"),k=L.useState("popupProps"),j=L.useState("modal"),O=L.useState("mounted"),M=L.useState("nested"),v=L.useState("nestedOpenDialogCount"),x=L.useState("open"),E=L.useState("openMethod"),I=L.useState("titleElementId"),C=L.useState("transitionStatus"),h=L.useState("role");sG(),I5({open:x,ref:L.context.popupRef,onComplete(){if(x)L.context.onOpenChangeComplete?.(!0)}});function m(w0){if(w0==="touch")return L.context.popupRef.current;return!0}let R=U===void 0?m:U,S=v>0,c=oG.useMemo(()=>({open:x,nested:M,transitionStatus:C,nestedDialogOpen:S}),[x,M,C,S]),d=v0("div",X,{state:c,props:[k,{"aria-labelledby":I??void 0,"aria-describedby":V??void 0,role:h,tabIndex:-1,hidden:!O,onKeyDown(w0){if(NG.has(w0.key))w0.stopPropagation()},style:{[ZD.nestedDialogs]:v}},q],ref:[Y,L.context.popupRef,L.useStateSetter("popupElement")],stateAttributesMapping:Xb});return XD.jsx(xX,{context:F,openInteractionType:E,disabled:!O,closeOnFocusOut:!N,initialFocus:R,returnFocus:K,modal:j!==!1,restoreFocus:"popup",children:d})});jH.displayName="DialogPopup";var GD=p(Y0(),1);function tz(J){if(Oz(19))return J;return J?"true":void 0}var $D=p(Y0(),1),YD=p(E1(),1),gX=$D.forwardRef(function(X,Y){let{cutout:W,...K}=X,U;if(W){let H=W?.getBoundingClientRect();U=`polygon(
252
+ 0% 0%,
253
+ 100% 0%,
254
+ 100% 100%,
255
+ 0% 100%,
256
+ 0% 0%,
257
+ ${H.left}px ${H.top}px,
258
+ ${H.left}px ${H.bottom}px,
259
+ ${H.right}px ${H.bottom}px,
260
+ ${H.right}px ${H.top}px,
261
+ ${H.left}px ${H.top}px
262
+ )`}return YD.jsx("div",{ref:Y,role:"presentation","data-base-ui-inert":"",...K,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:U}})});gX.displayName="InternalBackdrop";var fX=p(E1(),1),AH=GD.forwardRef(function(X,Y){let{keepMounted:W=!1,...K}=X,{store:U}=cw(),H=U.useState("mounted"),q=U.useState("modal");if(!(H||W))return null;return fX.jsx(aG.Provider,{value:W,children:fX.jsxs(mz,{ref:Y,...K,children:[H&&q===!0&&fX.jsx(gX,{ref:U.context.internalBackdropRef,inert:tz(!open)}),X.children]})})});AH.displayName="DialogPortal";var QD=p(Y0(),1);var MH=QD.forwardRef(function(X,Y){let{render:W,className:K,id:U,...H}=X,{store:q}=cw(),L=ww(U);return q.useSyncedValueWithCleanup("titleElementId",L),v0("h2",X,{ref:Y,props:[{id:L},H]})});MH.displayName="DialogTitle";var ez=p(Y0(),1);var OH=ez.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,nativeButton:H=!0,id:q,payload:L,handle:V,...N}=X,F=cw(!0),k=V?.store??F?.store;if(!k)throw Error("Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");let j=ww(q),O=k.useState("floatingRootContext"),M=k.useState("isOpenedByTrigger",j),v=ez.useRef(null),{registerTrigger:x,isMountedByThisTrigger:E}=cz(j,v,k,{payload:L}),{getButtonProps:I,buttonRef:C}=J5({disabled:U,native:H}),h=w9(O,{enabled:O!=null}),m=Y5([h]),R=ez.useMemo(()=>({disabled:U,open:M}),[U,M]),S=k.useState("triggerProps",E);return v0("button",X,{state:R,ref:[C,Y,x,v],props:[m.getReferenceProps(),S,{[cY]:"",id:j},N,I],stateAttributesMapping:nz})});OH.displayName="DialogTrigger";var nG=p(Y0(),1);var DH=function(J){return J[J.open=G5.open]="open",J[J.closed=G5.closed]="closed",J[J.startingStyle=G5.startingStyle]="startingStyle",J[J.endingStyle=G5.endingStyle]="endingStyle",J.nested="data-nested",J.nestedDialogOpen="data-nested-dialog-open",J}({});var $b={...vw,...I2,nested(J){return J?{[DH.nested]:""}:null},nestedDialogOpen(J){return J?{[DH.nestedDialogOpen]:""}:null}},TH=nG.forwardRef(function(X,Y){let{className:W,render:K,children:U,...H}=X,q=sG(),{store:L}=cw(),V=L.useState("open"),N=L.useState("nested"),F=L.useState("transitionStatus"),k=L.useState("nestedOpenDialogCount"),j=L.useState("mounted"),O=k>0,M=nG.useMemo(()=>({open:V,nested:N,transitionStatus:F,nestedDialogOpen:O}),[V,N,F,O]);return v0("div",X,{enabled:q||j,state:M,ref:[Y,L.useStateSetter("viewportElement")],stateAttributesMapping:$b,props:[{role:"presentation",hidden:!j,children:U},H]})});TH.displayName="DialogViewport";class tG{constructor(J){this.store=J??new yX}open(J){let X=J?this.store.context.triggerElements.getById(J):void 0;if(J&&!X)console.warn(`Base UI: DialogHandle.open: No trigger found with id "${J}". The dialog will open, but the trigger will not be associated with the dialog.`);this.store.setOpen(!0,P0(B0.imperativeAction,void 0,X))}openWithPayload(J){this.store.set("payload",J),this.store.setOpen(!0,P0(B0.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,P0(B0.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}function WD(){return new tG}function KD(J){let X=J.getBoundingClientRect(),Y=window.getComputedStyle(J,"::before"),W=window.getComputedStyle(J,"::after");if(!(Y.content!=="none"||W.content!=="none"))return X;let U=parseFloat(Y.width)||0,H=parseFloat(Y.height)||0,q=parseFloat(W.width)||0,L=parseFloat(W.height)||0,V=Math.max(X.width,U,q),N=Math.max(X.height,H,L),F=V-X.width,k=N-X.height;return{left:X.left-F/2,right:X.right+F/2,top:X.top-k/2,bottom:X.bottom+k/2}}var Q5=p(Y0(),1);var Yb=(J)=>({name:"arrow",options:J,async fn(X){let{x:Y,y:W,placement:K,rects:U,platform:H,elements:q,middlewareData:L}=X,{element:V,padding:N=0,offsetParent:F="real"}=z8(J,X)||{};if(V==null)return{};let k=_G(N),j={x:Y,y:W},O=FX(K),M=VX(O),v=await H.getDimensions(V),x=O==="y",E=x?"top":"left",I=x?"bottom":"right",C=x?"clientHeight":"clientWidth",h=U.reference[M]+U.reference[O]-j[O]-U.floating[M],m=j[O]-U.reference[O],R=F==="real"?await H.getOffsetParent?.(V):q.floating,S=q.floating[C]||U.floating[M];if(!S||!await H.isElement?.(R))S=q.floating[C]||U.floating[M];let c=h/2-m/2,d=S/2-v[M]/2-1,w0=Math.min(k[E],d),t=Math.min(k[I],d),u=w0,Q0=S-v[M]-t,r=S/2-v[M]/2+c,e=LX(u,r,Q0),o=!L.arrow&&Z8(K)!=null&&r!==e&&U.reference[M]/2-(r<u?w0:t)-v[M]/2<0,g=o?r<u?r-u:r-Q0:0;return{[O]:j[O]+g,data:{[O]:e,centerOffset:r-e-g,...o&&{alignmentOffset:g}},reset:o}}}),UD=(J,X)=>({...Yb(J),options:[J,X]});var _D={name:"hide",async fn(J){let{width:X,height:Y,x:W,y:K}=J.rects.reference,U=X===0&&Y===0&&W===0&&K===0;return{data:{referenceHidden:(await $H().fn(J)).data?.referenceHidden||U}}}};var mX={sideX:"left",sideY:"top"},qD={name:"adaptiveOrigin",async fn(J){let{x:X,y:Y,rects:{floating:W},elements:{floating:K},platform:U,strategy:H,placement:q}=J,L=u1(K),V=L.getComputedStyle(K);if(!(V.transitionDuration!=="0s"&&V.transitionDuration!==""))return{x:X,y:Y,data:mX};let F=await U.getOffsetParent?.(K),k={width:0,height:0};if(H==="fixed"&&L?.visualViewport)k={width:L.visualViewport.width,height:L.visualViewport.height};else if(F===L){let E=xw(K);k={width:E.documentElement.clientWidth,height:E.documentElement.clientHeight}}else if(await U.isElement?.(F))k=await U.getDimensions(F);let j=tw(q),O=X,M=Y;if(j==="left")O=k.width-(X+W.width);if(j==="top")M=k.height-(Y+W.height);let v=j==="left"?"right":mX.sideX,x=j==="top"?"bottom":mX.sideY;return{x:O,y:M,data:{sideX:v,sideY:x}}}};function LD(J,X,Y){let W=J==="inline-start"||J==="inline-end";return{top:"top",right:W?Y?"inline-start":"inline-end":"right",bottom:"bottom",left:W?Y?"inline-end":"inline-start":"left"}[X]}function HD(J,X,Y){let{rects:W,placement:K}=J;return{side:LD(X,tw(K),Y),align:Z8(K)||"center",anchor:{width:W.reference.width,height:W.reference.height},positioner:{width:W.floating.width,height:W.floating.height}}}function eG(J){let{anchor:X,positionMethod:Y="absolute",side:W="bottom",sideOffset:K=0,align:U="center",alignOffset:H=0,collisionBoundary:q,collisionPadding:L=5,sticky:V=!1,arrowPadding:N=5,disableAnchorTracking:F=!1,keepMounted:k=!1,floatingRootContext:j,mounted:O,collisionAvoidance:M,shiftCrossAxis:v=!1,nodeId:x,adaptiveOrigin:E,lazyFlip:I=!1,externalTree:C}=J,[h,m]=Q5.useState(null);if(!O&&h!==null)m(null);let R=M.side||"flip",S=M.align||"flip",c=M.fallbackAxisSide||"end",d=typeof X==="function"?X:void 0,w0=F0(d),t=d?w0:X,u=Uw(X),r=O5()==="rtl",e=h||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":r?"left":"right","inline-start":r?"right":"left"}[W],o=U==="center"?e:`${e}-${U}`,g=L,X0=1,P=W==="bottom"?X0:0,z0=W==="top"?X0:0,U0=W==="right"?X0:0,J0=W==="left"?X0:0;if(typeof g==="number")g={top:g+P,right:g+J0,bottom:g+z0,left:g+U0};else if(g)g={top:(g.top||0)+P,right:(g.right||0)+J0,bottom:(g.bottom||0)+z0,left:(g.left||0)+U0};let L0={boundary:q==="clipping-ancestors"?"clippingAncestors":q,padding:g},S0=Q5.useRef(null),V0=Uw(K),_0=Uw(H),n0=[wH((s)=>{let K0=HD(s,W,r),N0=typeof V0.current==="function"?V0.current(K0):V0.current,T0=typeof _0.current==="function"?_0.current(K0):_0.current;return{mainAxis:N0,crossAxis:T0,alignmentAxis:T0}},[typeof K!=="function"?K:0,typeof H!=="function"?H:0,r,W])],n=S==="none"&&R!=="shift",R0=!n&&(V||v||R==="shift"),I0=R==="none"?null:JH({...L0,padding:{top:g.top+X0,right:g.right+X0,bottom:g.bottom+X0,left:g.left+X0},mainAxis:!v&&R==="flip",crossAxis:S==="flip"?"alignment":!1,fallbackAxisSideDirection:c}),A1=n?null:zH((s)=>{let K0=xw(s.elements.floating).documentElement;return{...L0,rootBoundary:v?{x:0,y:0,width:K0.clientWidth,height:K0.clientHeight}:void 0,mainAxis:S!=="none",crossAxis:R0,limiter:V||v?void 0:ZH((N0)=>{if(!S0.current)return{};let{width:T0,height:a0}=S0.current.getBoundingClientRect(),u0=C2(tw(N0.placement)),$1=u0==="y"?T0:a0,d0=u0==="y"?g.left+g.right:g.top+g.bottom;return{offset:$1/2+d0/2}})}},[L0,V,v,g,S]);if(R==="shift"||S==="shift"||U==="center")n0.push(A1,I0);else n0.push(I0,A1);n0.push(XH({...L0,apply({elements:{floating:s},rects:{reference:K0},availableWidth:N0,availableHeight:T0}){Object.entries({"--available-width":`${N0}px`,"--available-height":`${T0}px`,"--anchor-width":`${K0.width}px`,"--anchor-height":`${K0.height}px`}).forEach(([a0,u0])=>{s.style.setProperty(a0,u0)})}}),UD(()=>({element:S0.current||document.createElement("div"),padding:N,offsetParent:"floating"}),[N]),{name:"transformOrigin",fn(s){let{elements:K0,middlewareData:N0,placement:T0,rects:a0,y:u0}=s,$1=tw(T0),d0=C2($1),Pw=S0.current,W2=N0.arrow?.x||0,K8=N0.arrow?.y||0,t4=Pw?.clientWidth||0,_$=Pw?.clientHeight||0,d6=W2+t4/2,e4=K8+_$/2,f5=Math.abs(N0.shift?.y||0),A2=a0.reference.height/2,u6=typeof K==="function"?K(HD(s,W,r)):K,VW=f5>u6,AZ={top:`${d6}px calc(100% + ${u6}px)`,bottom:`${d6}px ${-u6}px`,left:`calc(100% + ${u6}px) ${e4}px`,right:`${-u6}px ${e4}px`}[$1],q$=`${d6}px ${a0.reference.y+A2-u0}px`;return K0.floating.style.setProperty("--transform-origin",R0&&d0==="y"&&VW?q$:AZ),{}}},_D,E),k0(()=>{if(!O&&j)j.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[O,j]);let C0=Q5.useMemo(()=>({elementResize:!F&&typeof ResizeObserver<"u",layoutShift:!F&&typeof IntersectionObserver<"u"}),[F]),{refs:q0,elements:O0,x:j0,y:c0,middlewareData:b0,update:h0,placement:o0,context:x0,isPositioned:l0,floatingStyles:y0}=UH({rootContext:j,placement:o,middleware:n0,strategy:Y,whileElementsMounted:k?void 0:(...s)=>vX(...s,C0),nodeId:x,externalTree:C}),{sideX:H1,sideY:T1}=b0.adaptiveOrigin||mX,W1=l0?Y:"fixed",Qw=Q5.useMemo(()=>E?{position:W1,[H1]:j0,[T1]:c0}:{position:W1,...y0},[E,W1,H1,j0,T1,c0,y0]),zw=Q5.useRef(null);k0(()=>{if(!O)return;let s=u.current,K0=typeof s==="function"?s():s,T0=(BD(K0)?K0.current:K0)||null||null;if(T0!==zw.current)q0.setPositionReference(T0),zw.current=T0},[O,q0,t,u]),Q5.useEffect(()=>{if(!O)return;let s=u.current;if(typeof s==="function")return;if(BD(s)&&s.current!==zw.current)q0.setPositionReference(s.current),zw.current=s.current},[O,q0,t,u]),Q5.useEffect(()=>{if(k&&O&&O0.domReference&&O0.floating)return vX(O0.domReference,O0.floating,h0,C0);return},[k,O,O0,h0,C0]);let Vw=tw(o0),_w=LD(W,Vw,r),hw=Z8(o0)||"center",J1=Boolean(b0.hide?.referenceHidden);k0(()=>{if(I&&O&&l0)m(Vw)},[I,O,l0,Vw]);let N1=Q5.useMemo(()=>({position:"absolute",top:b0.arrow?.y,left:b0.arrow?.x}),[b0.arrow]),T=b0.arrow?.centerOffset!==0;return Q5.useMemo(()=>({positionerStyles:Qw,arrowStyles:N1,arrowRef:S0,arrowUncentered:T,side:_w,align:hw,physicalSide:Vw,anchorHidden:J1,refs:q0,context:x0,isPositioned:l0,update:h0}),[Qw,N1,S0,T,_w,hw,Vw,J1,q0,x0,l0,h0])}function BD(J){return J!=null&&"current"in J}function wZ(J){return J==="starting"?oA:v1}var wQ=p(Y0(),1);var dX=wQ.forwardRef(function(X,Y){let{className:W,render:K,orientation:U="horizontal",...H}=X,q=wQ.useMemo(()=>({orientation:U}),[U]);return v0("div",X,{state:q,ref:Y,props:[{role:"separator","aria-orientation":U},H]})});dX.displayName="Separator";var zQ=p(Y0(),1);var ZQ=zQ.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,focusableWhenDisabled:H=!1,nativeButton:q=!0,...L}=X,V=Boolean(U),{getButtonProps:N,buttonRef:F}=J5({disabled:V,focusableWhenDisabled:H,native:q}),k=zQ.useMemo(()=>({disabled:V}),[V]);return v0("button",X,{state:k,ref:[Y,F],props:[L,N]})});ZQ.displayName="Button";var C6={};Vz(C6,{Trigger:()=>CH,SubmenuTrigger:()=>J$,SubmenuRoot:()=>hQ,Separator:()=>dX,Root:()=>RD,RadioItemIndicator:()=>w$,RadioItem:()=>eX,RadioGroup:()=>tX,Positioner:()=>nX,Portal:()=>oX,Popup:()=>sX,Item:()=>aX,GroupLabel:()=>rX,Group:()=>iX,CheckboxItemIndicator:()=>lX,CheckboxItem:()=>cX,Backdrop:()=>pX,Arrow:()=>uX});var G8=p(Y0(),1);var JQ=p(Y0(),1),XQ=JQ.createContext(void 0);XQ.displayName="ContextMenuRootContext";function y5(J=!0){let X=JQ.useContext(XQ);if(X===void 0&&!J)throw Error("Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.");return X}var yQ={};Vz(yQ,{createHandle:()=>yD,Trigger:()=>IH,SubmenuTrigger:()=>J$,SubmenuRoot:()=>hQ,Separator:()=>dX,Root:()=>vQ,RadioItemIndicator:()=>w$,RadioItem:()=>eX,RadioGroup:()=>tX,Positioner:()=>nX,Portal:()=>oX,Popup:()=>sX,Item:()=>aX,Handle:()=>bQ,GroupLabel:()=>rX,Group:()=>iX,CheckboxItemIndicator:()=>lX,CheckboxItem:()=>cX,Backdrop:()=>pX,Arrow:()=>uX});var QQ=p(Y0(),1);var $Q=p(Y0(),1),YQ=$Q.createContext(void 0);YQ.displayName="MenuPositionerContext";function R5(J){let X=$Q.useContext(YQ);if(X===void 0&&!J)throw Error("Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.");return X}var GQ=p(Y0(),1),zZ=GQ.createContext(void 0);zZ.displayName="MenuRootContext";function p1(J){let X=GQ.useContext(zZ);if(X===void 0&&!J)throw Error("Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.");return X}var uX=QQ.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,{store:H}=p1(),{arrowRef:q,side:L,align:V,arrowUncentered:N,arrowStyles:F}=R5(),k=H.useState("open"),j=QQ.useMemo(()=>({open:k,side:L,align:V,uncentered:N}),[k,L,V,N]);return v0("div",X,{ref:[q,Y],stateAttributesMapping:vw,state:j,props:{style:F,"aria-hidden":!0,...U}})});uX.displayName="MenuArrow";var WQ=p(Y0(),1);var Gb={...vw,...I2},pX=WQ.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,{store:H}=p1(),q=H.useState("open"),L=H.useState("mounted"),V=H.useState("transitionStatus"),N=H.useState("lastOpenChangeReason"),F=y5(),k=WQ.useMemo(()=>({open:q,transitionStatus:V}),[q,V]);return v0("div",X,{ref:F?.backdropRef?[Y,F.backdropRef]:Y,state:k,stateAttributesMapping:Gb,props:[{role:"presentation",hidden:!L,style:{pointerEvents:N===B0.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},U]})});pX.displayName="MenuBackdrop";var _Q=p(Y0(),1);var KQ=p(Y0(),1),UQ=KQ.createContext(void 0);UQ.displayName="MenuCheckboxItemContext";function VD(){let J=KQ.useContext(UQ);if(J===void 0)throw Error("Base UI: MenuCheckboxItemContext is missing. MenuCheckboxItem parts must be placed within <Menu.CheckboxItem>.");return J}var ZZ=p(Y0(),1);var JZ={type:"regular-item"};function m4(J){let{closeOnClick:X,disabled:Y=!1,highlighted:W,id:K,store:U,nativeButton:H,itemMetadata:q,nodeId:L}=J,V=ZZ.useRef(null),N=y5(!0),F=N!==void 0,{events:k}=U.useState("floatingTreeRoot"),{getButtonProps:j,buttonRef:O}=J5({disabled:Y,focusableWhenDisabled:!0,native:H}),M=ZZ.useCallback((x)=>{return T5({id:K,role:"menuitem",tabIndex:W?0:-1,onMouseMove(E){if(!L)return;k.emit("itemhover",{nodeId:L,target:E.currentTarget})},onMouseEnter(){if(q.type!=="submenu-trigger")return;q.setActive()},onKeyUp(E){if(E.key===" "&&U.context.typingRef.current)E.preventBaseUIHandler()},onClick(E){if(X)k.emit("close",{domEvent:E,reason:B0.itemPress})},onMouseUp(E){if(N){let I=N.initialCursorPointRef.current;if(N.initialCursorPointRef.current=null,F&&I&&Math.abs(E.clientX-I.x)<=1&&Math.abs(E.clientY-I.y)<=1)return}if(V.current&&U.context.allowMouseUpTriggerRef.current&&(!F||E.button===2)){if(q.type==="regular-item")V.current.click()}}},x,j)},[K,W,j,X,k,U,F,N,q,L]),v=D5(V,O);return ZZ.useMemo(()=>({getItemProps:M,itemRef:v}),[M,v])}var xH=function(J){return J.checked="data-checked",J.unchecked="data-unchecked",J.disabled="data-disabled",J.highlighted="data-highlighted",J}({});var d4={checked(J){if(J)return{[xH.checked]:""};return{[xH.unchecked]:""}},...I2};var FD=p(E1(),1),cX=_Q.forwardRef(function(X,Y){let{render:W,className:K,id:U,label:H,nativeButton:q=!1,disabled:L=!1,closeOnClick:V=!1,checked:N,defaultChecked:F,onCheckedChange:k,...j}=X,O=v5({label:H}),M=R5(!0),v=ww(U),{store:x}=p1(),E=x.useState("isActive",O.index),I=x.useState("itemProps"),[C,h]=Az({controlled:N,default:F??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:m,itemRef:R}=m4({closeOnClick:V,disabled:L,highlighted:E,id:v,store:x,nativeButton:q,nodeId:M?.nodeId,itemMetadata:JZ}),S=_Q.useMemo(()=>({disabled:L,highlighted:E,checked:C}),[L,E,C]),c=F0((w0)=>{let t={...P0(B0.itemPress,w0.nativeEvent),preventUnmountOnClose:()=>{}};if(k?.(!C,t),t.isCanceled)return;h((u)=>!u)}),d=v0("div",X,{state:S,stateAttributesMapping:d4,props:[I,{role:"menuitemcheckbox","aria-checked":C,onClick:c},j,m],ref:[R,Y,O.ref]});return FD.jsx(UQ.Provider,{value:S,children:d})});cX.displayName="MenuCheckboxItem";var XZ=p(Y0(),1);var lX=XZ.forwardRef(function(X,Y){let{render:W,className:K,keepMounted:U=!1,...H}=X,q=VD(),L=XZ.useRef(null),{transitionStatus:V,setMounted:N}=xz(q.checked);I5({open:q.checked,ref:L,onComplete(){if(!q.checked)N(!1)}});let F=XZ.useMemo(()=>({checked:q.checked,disabled:q.disabled,highlighted:q.highlighted,transitionStatus:V}),[q.checked,q.disabled,q.highlighted,V]);return v0("span",X,{state:F,ref:[Y,L],stateAttributesMapping:d4,props:{"aria-hidden":!0,...H},enabled:U||q.checked})});lX.displayName="MenuCheckboxItemIndicator";var $Z=p(Y0(),1);var qQ=p(Y0(),1),HQ=qQ.createContext(void 0);HQ.displayName="MenuGroupContext";function ND(){let J=qQ.useContext(HQ);if(J===void 0)throw Error("Base UI: MenuGroupRootContext is missing. Menu group parts must be used within <Menu.Group>.");return J}var kD=p(E1(),1),iX=$Z.forwardRef(function(X,Y){let{render:W,className:K,...U}=X,[H,q]=$Z.useState(void 0),L=$Z.useMemo(()=>({setLabelId:q}),[q]),V=v0("div",X,{ref:Y,props:{role:"group","aria-labelledby":H,...U}});return kD.jsx(HQ.Provider,{value:L,children:V})});iX.displayName="MenuGroup";var jD=p(Y0(),1);var rX=jD.forwardRef(function(X,Y){let{className:W,render:K,id:U,...H}=X,q=ww(U),{setLabelId:L}=ND();return k0(()=>{return L(q),()=>{L(void 0)}},[L,q]),v0("div",X,{ref:Y,props:{id:q,role:"presentation",...H}})});rX.displayName="MenuGroupLabel";var BQ=p(Y0(),1);var aX=BQ.forwardRef(function(X,Y){let{render:W,className:K,id:U,label:H,nativeButton:q=!1,disabled:L=!1,closeOnClick:V=!0,...N}=X,F=v5({label:H}),k=R5(!0),j=ww(U),{store:O}=p1(),M=O.useState("isActive",F.index),v=O.useState("itemProps"),{getItemProps:x,itemRef:E}=m4({closeOnClick:V,disabled:L,highlighted:M,id:j,store:O,nativeButton:q,nodeId:k?.nodeId,itemMetadata:JZ}),I=BQ.useMemo(()=>({disabled:L,highlighted:M}),[L,M]);return v0("div",X,{state:I,props:[v,N,x],ref:[E,Y,F.ref]})});aX.displayName="MenuItem";var YZ=p(Y0(),1);var LQ=p(Y0(),1),AD=LQ.createContext(void 0);AD.displayName="ToolbarRootContext";function MD(J){let X=LQ.useContext(AD);if(X===void 0&&!J)throw Error("Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.");return X}var OD=p(E1(),1),Qb={...vw,...I2},sX=YZ.forwardRef(function(X,Y){let{render:W,className:K,finalFocus:U,...H}=X,{store:q}=p1(),{side:L,align:V}=R5(),N=MD(!0)!=null,F=q.useState("open"),k=q.useState("transitionStatus"),j=q.useState("popupProps"),O=q.useState("mounted"),M=q.useState("instantType"),v=q.useState("activeTriggerElement"),x=q.useState("parent"),E=q.useState("lastOpenChangeReason"),I=q.useState("rootId"),C=q.useState("floatingRootContext"),h=q.useState("floatingTreeRoot"),m=q.useState("closeDelay"),R=q.useState("activeTriggerElement");I5({open:F,ref:q.context.popupRef,onComplete(){if(F)q.context.onOpenChangeComplete?.(!0)}}),YZ.useEffect(()=>{function u(Q0){q.setOpen(!1,P0(Q0.reason,Q0.domEvent))}return h.events.on("close",u),()=>{h.events.off("close",u)}},[h.events,q]);let S=q.useState("hoverEnabled"),c=q.useState("disabled");CX(C,{enabled:S&&!c&&x.type!=="context-menu"&&x.type!=="menubar",closeDelay:m});let d=YZ.useMemo(()=>({transitionStatus:k,side:L,align:V,open:F,nested:x.type==="menu",instant:M}),[k,L,V,F,x.type,M]),w0=v0("div",X,{state:d,ref:[Y,q.context.popupRef],stateAttributesMapping:Qb,props:[j,{onKeyDown(u){if(N&&NG.has(u.key))u.stopPropagation()}},wZ(k),H,{"data-rootownerid":I}]}),t=x.type===void 0||x.type==="context-menu";if(v||x.type==="menubar"&&E!==B0.outsidePress)t=!0;return OD.jsx(xX,{context:C,modal:!1,disabled:!O,returnFocus:U===void 0?t:U,initialFocus:x.type!=="menu",restoreFocus:!0,externalTree:x.type!=="menubar"?h:void 0,previousFocusableElement:R,nextFocusableElement:x.type===void 0?q.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:x.type===void 0?q.context.beforeContentFocusGuardRef:void 0,children:w0})});sX.displayName="MenuPopup";var TD=p(Y0(),1);var VQ=p(Y0(),1),FQ=VQ.createContext(void 0);FQ.displayName="MenuPortalContext";function DD(){let J=VQ.useContext(FQ);if(J===void 0)throw Error("Base UI: <Menu.Portal> is missing.");return J}var EH=p(E1(),1),oX=TD.forwardRef(function(X,Y){let{keepMounted:W=!1,...K}=X,{store:U}=p1();if(!(U.useState("mounted")||W))return null;return EH.jsx(FQ.Provider,{value:W,children:EH.jsx(mz,{ref:Y,...K})})});oX.displayName="MenuPortal";var Y8=p(Y0(),1);var GZ=p(E1(),1),nX=Y8.forwardRef(function(X,Y){let{anchor:W,positionMethod:K="absolute",className:U,render:H,side:q,align:L,sideOffset:V=0,alignOffset:N=0,collisionBoundary:F="clipping-ancestors",collisionPadding:k=5,arrowPadding:j=5,sticky:O=!1,disableAnchorTracking:M=!1,collisionAvoidance:v=nA,...x}=X,{store:E}=p1(),I=DD(),C=y5(!0),h=E.useState("parent"),m=E.useState("floatingRootContext"),R=E.useState("floatingTreeRoot"),S=E.useState("mounted"),c=E.useState("open"),d=E.useState("modal"),w0=E.useState("activeTriggerElement"),t=E.useState("lastOpenChangeReason"),u=E.useState("floatingNodeId"),Q0=E.useState("floatingParentNodeId"),r=W,e=V,o=N,g=L,X0=v;if(h.type==="context-menu"){if(r=W??h.context?.anchor,g=g??"start",!q&&g!=="center")o=X.alignOffset??2,e=X.sideOffset??-5}let P=q,z0=g;if(h.type==="menu")P=P??"inline-end",z0=z0??"start",X0=X.collisionAvoidance??lY;else if(h.type==="menubar")P=P??"bottom",z0=z0??"start";let U0=h.type==="context-menu",J0=eG({anchor:r,floatingRootContext:m,positionMethod:C?"fixed":K,mounted:S,side:P,sideOffset:e,align:z0,alignOffset:o,arrowPadding:U0?0:j,collisionBoundary:F,collisionPadding:k,sticky:O,nodeId:u,keepMounted:I,disableAnchorTracking:M,collisionAvoidance:X0,shiftCrossAxis:U0,externalTree:R}),L0=Y8.useMemo(()=>{let n0={};if(!c)n0.pointerEvents="none";return{role:"presentation",hidden:!S,style:{...J0.positionerStyles,...n0}}},[c,S,J0.positionerStyles]);Y8.useEffect(()=>{function n0(n){if(n.open){if(n.parentNodeId===u)E.set("hoverEnabled",!1);if(n.nodeId!==u&&n.parentNodeId===E.select("floatingParentNodeId"))E.setOpen(!1,P0(B0.siblingOpen))}else if(n.parentNodeId===u){if(n.reason!==B0.siblingOpen)E.set("hoverEnabled",!0)}}return R.events.on("menuopenchange",n0),()=>{R.events.off("menuopenchange",n0)}},[E,R.events,u]),Y8.useEffect(()=>{if(E.select("floatingParentNodeId")==null)return;function n0(n){if(n.open||n.nodeId!==E.select("floatingParentNodeId"))return;let R0=n.reason??B0.siblingOpen;E.setOpen(!1,P0(R0))}return R.events.on("menuopenchange",n0),()=>{R.events.off("menuopenchange",n0)}},[R.events,E]),Y8.useEffect(()=>{function n0(n){if(!c||n.nodeId!==E.select("floatingParentNodeId"))return;if(n.target&&w0&&w0!==n.target)E.setOpen(!1,P0(B0.siblingOpen))}return R.events.on("itemhover",n0),()=>{R.events.off("itemhover",n0)}},[R.events,c,w0,E]),Y8.useEffect(()=>{let n0={open:c,nodeId:u,parentNodeId:Q0,reason:E.select("lastOpenChangeReason")};R.events.emit("menuopenchange",n0)},[R.events,c,E,u,Q0]);let S0=Y8.useMemo(()=>({open:c,side:J0.side,align:J0.align,anchorHidden:J0.anchorHidden,nested:h.type==="menu"}),[c,J0.side,J0.align,J0.anchorHidden,h.type]),V0=Y8.useMemo(()=>({side:J0.side,align:J0.align,arrowRef:J0.arrowRef,arrowUncentered:J0.arrowUncentered,arrowStyles:J0.arrowStyles,nodeId:J0.context.nodeId}),[J0.side,J0.align,J0.arrowRef,J0.arrowUncentered,J0.arrowStyles,J0.context.nodeId]),_0=v0("div",X,{state:S0,stateAttributesMapping:vw,ref:[Y,E.useStateSetter("positionerElement")],props:[L0,x]}),A0=S&&h.type!=="menu"&&(h.type!=="menubar"&&d&&t!==B0.triggerHover||h.type==="menubar"&&h.context.modal),r0=null;if(h.type==="menubar")r0=h.context.contentElement;else if(h.type===void 0)r0=w0;return GZ.jsxs(YQ.Provider,{value:V0,children:[A0&&GZ.jsx(gX,{ref:h.type==="context-menu"||h.type==="nested-context-menu"?h.context.internalBackdropRef:null,inert:tz(!c),cutout:r0}),GZ.jsx(gq,{id:u,children:GZ.jsx(Mz,{elementsRef:E.context.itemDomElements,labelsRef:E.context.itemLabels,children:_0})})]})});nX.displayName="MenuPositioner";var W9=p(Y0(),1);var NQ=p(Y0(),1),kQ=NQ.createContext(void 0);kQ.displayName="MenuRadioGroupContext";function xD(){let J=NQ.useContext(kQ);if(J===void 0)throw Error("Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>.");return J}var ED=p(E1(),1),tX=W9.memo(W9.forwardRef(function(X,Y){let{render:W,className:K,value:U,defaultValue:H,onValueChange:q,disabled:L=!1,...V}=X,[N,F]=Az({controlled:U,default:H,name:"MenuRadioGroup"}),k=F0(q),j=F0((x,E)=>{if(k?.(x,E),E.isCanceled)return;F(x)}),O=W9.useMemo(()=>({disabled:L}),[L]),M=v0("div",X,{state:O,ref:Y,props:{role:"group","aria-disabled":L||void 0,...V}}),v=W9.useMemo(()=>({value:N,setValue:j,disabled:L}),[N,j,L]);return ED.jsx(kQ.Provider,{value:v,children:M})}));tX.displayName="MenuRadioGroup";var MQ=p(Y0(),1);var jQ=p(Y0(),1),AQ=jQ.createContext(void 0);AQ.displayName="MenuRadioItemContext";function vD(){let J=jQ.useContext(AQ);if(J===void 0)throw Error("Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>.");return J}var hD=p(E1(),1),eX=MQ.forwardRef(function(X,Y){let{render:W,className:K,id:U,label:H,nativeButton:q=!1,disabled:L=!1,closeOnClick:V=!1,value:N,...F}=X,k=v5({label:H}),j=R5(!0),O=ww(U),{store:M}=p1(),v=M.useState("isActive",k.index),x=M.useState("itemProps"),{value:E,setValue:I,disabled:C}=xD(),h=C||L,m=E===N,{getItemProps:R,itemRef:S}=m4({closeOnClick:V,disabled:h,highlighted:v,id:O,store:M,nativeButton:q,nodeId:j?.nodeId,itemMetadata:JZ}),c=MQ.useMemo(()=>({disabled:h,highlighted:v,checked:m}),[h,v,m]),d=F0((t)=>{let u={...P0(B0.itemPress,t.nativeEvent),preventUnmountOnClose:()=>{}};I(N,u)}),w0=v0("div",X,{state:c,stateAttributesMapping:d4,props:[x,{role:"menuitemradio","aria-checked":m,onClick:d},F,R],ref:[S,Y,k.ref]});return hD.jsx(AQ.Provider,{value:c,children:w0})});eX.displayName="MenuRadioItem";var QZ=p(Y0(),1);var w$=QZ.forwardRef(function(X,Y){let{render:W,className:K,keepMounted:U=!1,...H}=X,q=vD(),L=QZ.useRef(null),{transitionStatus:V,setMounted:N}=xz(q.checked);I5({open:q.checked,ref:L,onComplete(){if(!q.checked)N(!1)}});let F=QZ.useMemo(()=>({checked:q.checked,disabled:q.disabled,highlighted:q.highlighted,transitionStatus:V}),[q.checked,q.disabled,q.highlighted,V]);return v0("span",X,{state:F,stateAttributesMapping:d4,ref:[Y,L],props:{"aria-hidden":!0,...H},enabled:U||q.checked})});w$.displayName="MenuRadioItemIndicator";var Yw=p(Y0(),1),ID=p(m8(),1);var OQ=p(Y0(),1),PD=OQ.createContext(null);PD.displayName="MenubarContext";function DQ(J){let X=OQ.useContext(PD);if(X===null&&!J)throw Error("Base UI: MenubarContext is missing. Menubar parts must be placed within <Menubar>.");return X}var z$=p(Y0(),1);var Wb={...az,disabled:p0((J)=>J.parent.type==="menubar"?J.parent.context.disabled||J.disabled:J.disabled),modal:p0((J)=>(J.parent.type===void 0||J.parent.type==="context-menu")&&(J.modal??!0)),allowMouseEnter:p0((J)=>J.parent.type==="menu"?J.parent.store.select("allowMouseEnter"):J.allowMouseEnter),stickIfOpen:p0((J)=>J.stickIfOpen),parent:p0((J)=>J.parent),rootId:p0((J)=>{if(J.parent.type==="menu")return J.parent.store.select("rootId");return J.parent.type!==void 0?J.parent.context.rootId:J.rootId}),activeIndex:p0((J)=>J.activeIndex),isActive:p0((J,X)=>J.activeIndex===X),hoverEnabled:p0((J)=>J.hoverEnabled),instantType:p0((J)=>J.instantType),lastOpenChangeReason:p0((J)=>J.openChangeReason),floatingTreeRoot:p0((J)=>{if(J.parent.type==="menu")return J.parent.store.select("floatingTreeRoot");return J.floatingTreeRoot}),floatingNodeId:p0((J)=>J.floatingNodeId),floatingParentNodeId:p0((J)=>J.floatingParentNodeId),itemProps:p0((J)=>J.itemProps),closeDelay:p0((J)=>J.closeDelay),keyboardEventRelay:p0((J)=>{if(J.keyboardEventRelay)return J.keyboardEventRelay;if(J.parent.type==="menu")return J.parent.store.select("keyboardEventRelay");return})};class WZ extends P6{constructor(J){super({...Kb(),...J},{positionerRef:z$.createRef(),popupRef:z$.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:z$.createRef(),beforeContentFocusGuardRef:z$.createRef(),onOpenChangeComplete:void 0,triggerElements:new X8},Wb);this.observe(p0((X)=>X.allowMouseEnter),(X,Y)=>{if(this.state.parent.type==="menu"&&X!==Y)this.state.parent.store.set("allowMouseEnter",X)}),this.unsubscribeParentListener=this.observe("parent",(X)=>{if(this.unsubscribeParentListener?.(),X.type==="menu"){this.unsubscribeParentListener=X.store.subscribe(()=>{this.notifyAll()}),this.context.allowMouseUpTriggerRef=X.store.context.allowMouseUpTriggerRef;return}if(X.type!==void 0)this.context.allowMouseUpTriggerRef=X.context.allowMouseUpTriggerRef;this.unsubscribeParentListener=null})}setOpen(J,X){this.state.floatingRootContext.context.events.emit("setOpen",{open:J,eventDetails:X})}static useStore(J,X){return r1(()=>{return J??new WZ(X)}).current}unsubscribeParentListener=null}function Kb(){return{...rz(),disabled:!1,modal:!0,allowMouseEnter:!0,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new t7,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:v1,keyboardEventRelay:void 0,closeDelay:0}}var TQ=p(Y0(),1),xQ=TQ.createContext(void 0);xQ.displayName="MenuSubmenuRootContext";function EQ(){return TQ.useContext(xQ)}var vH=p(E1(),1);function vQ(J){let{children:X,open:Y,onOpenChange:W,onOpenChangeComplete:K,defaultOpen:U=!1,disabled:H=!1,modal:q,loopFocus:L=!0,orientation:V="vertical",actionsRef:N,closeParentOnEsc:F=!1,handle:k,triggerId:j,defaultTriggerId:O=null,highlightItemOnHover:M=!0}=J,v=y5(!0),x=p1(!0),E=DQ(!0),I=EQ(),C=Yw.useMemo(()=>{if(I&&x)return{type:"menu",store:x.store};if(E)return{type:"menubar",context:E};if(v&&!x)return{type:"context-menu",context:v};return{type:void 0}},[v,x,E,I]),h=WZ.useStore(k?.store,{parent:C}),m=h.useState("floatingTreeRoot"),R=DX(m),S=ew();k0(()=>{if(v&&!x)h.update({parent:{type:"context-menu",context:v},floatingNodeId:R,floatingParentNodeId:S});else if(x)h.update({floatingNodeId:R,floatingParentNodeId:S})},[v,x,R,S,h]),h.useControlledProp("open",Y,U),h.useControlledProp("activeTriggerId",j,O),h.useContextCallback("onOpenChangeComplete",K);let c=h.useState("open"),d=h.useState("activeTriggerElement"),w0=h.useState("positionerElement"),t=h.useState("hoverEnabled"),u=h.useState("modal"),Q0=h.useState("disabled"),r=h.useState("lastOpenChangeReason"),e=h.useState("parent"),o=h.useState("activeIndex"),g=h.useState("payload"),X0=h.useState("floatingParentNodeId"),P=Yw.useRef(null),z0=X0!=null,U0;if(e.type!==void 0&&q!==void 0)console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");h.useSyncedValues({disabled:H,modal:e.type===void 0?q:void 0,rootId:X2()});let{openMethod:J0,triggerProps:L0,reset:S0}=dG(c);lz(h);let{forceUnmount:V0}=iz(c,h,()=>{h.update({allowMouseEnter:!1,stickIfOpen:!0}),S0()}),_0=Yw.useRef(e.type!=="context-menu"),A0=a1();Yw.useEffect(()=>{if(!c)P.current=null;if(e.type!=="context-menu")return;if(!c){A0.clear(),_0.current=!1;return}A0.start(500,()=>{_0.current=!0})},[A0,c,e.type]),kG(c&&u&&r!==B0.triggerHover&&J0!=="touch",w0),k0(()=>{if(!c&&!t)h.set("hoverEnabled",!0)},[c,t,h]);let r0=Yw.useRef(!0),n0=a1(),n=F0((J1,N1)=>{let T=N1.reason;if(c===J1&&N1.trigger===d)return;if(N1.preventUnmountOnClose=()=>{h.set("preventUnmountingOnClose",!0)},!J1&&N1.trigger==null)N1.trigger=d??void 0;if(W?.(J1,N1),N1.isCanceled)return;let s={open:J1,nativeEvent:N1.event,reason:N1.reason,nested:z0};U0?.emit("openchange",s);let K0=N1.event;if(J1===!1&&K0?.type==="click"&&K0.pointerType==="touch"&&!r0.current)return;if(!J1&&o!==null){let u0=h.context.itemDomElements.current[o];queueMicrotask(()=>{u0?.setAttribute("tabindex","-1")})}if(J1&&T===B0.triggerFocus)r0.current=!1,n0.start(300,()=>{r0.current=!0});else r0.current=!0,n0.clear();let N0=(T===B0.triggerPress||T===B0.itemPress)&&K0.detail===0&&K0?.isTrusted,T0=!J1&&(T===B0.escapeKey||T==null);function a0(){let u0={open:J1,openChangeReason:T};P.current=N1.event??null;let $1=N1.trigger?.id??null;if($1||J1)u0.activeTriggerId=$1,u0.activeTriggerElement=N1.trigger??null;h.update(u0)}if(T===B0.triggerHover)ID.flushSync(a0);else a0();if(e.type==="menubar"&&(T===B0.triggerFocus||T===B0.focusOut||T===B0.triggerHover||T===B0.listNavigation||T===B0.siblingOpen))h.set("instantType","group");else if(N0||T0)h.set("instantType",N0?"click":"dismiss");else h.set("instantType",void 0)}),R0=Yw.useCallback((J1)=>{let N1=P0(J1);return N1.preventUnmountOnClose=()=>{h.set("preventUnmountingOnClose",!0)},N1},[h]),I0=Yw.useCallback(()=>{h.setOpen(!1,R0(B0.imperativeAction))},[h,R0]);Yw.useImperativeHandle(N,()=>({unmount:V0,close:I0}),[V0,I0]);let A1;if(e.type==="context-menu")A1=e.context;Yw.useImperativeHandle(A1?.positionerRef,()=>w0,[w0]),Yw.useImperativeHandle(A1?.actionsRef,()=>({setOpen:n}),[n]);let C0=X9({popupStore:h,onOpenChange:n});U0=C0.context.events,Yw.useEffect(()=>{let J1=({open:N1,eventDetails:T})=>n(N1,T);return U0.on("setOpen",J1),()=>{U0?.off("setOpen",J1)}},[U0,n]);let q0=Z9(C0,{enabled:!Q0,bubbles:F&&e.type==="menu",outsidePress(){if(e.type!=="context-menu"||P.current?.type==="contextmenu")return!0;return _0.current},externalTree:z0?m:void 0}),O0=SX(C0,{role:"menu"}),j0=O5(),c0=Yw.useCallback((J1)=>{if(h.select("activeIndex")===J1)return;h.set("activeIndex",J1)},[h]),b0=BH(C0,{enabled:!Q0,listRef:h.context.itemDomElements,activeIndex:o,nested:e.type!==void 0,loopFocus:L,orientation:V,parentOrientation:e.type==="menubar"?e.context.orientation:void 0,rtl:j0==="rtl",disabledIndices:e2,onNavigate:c0,openOnArrowKeyDown:e.type!=="context-menu",externalTree:z0?m:void 0,focusItemOnHover:M}),h0=Yw.useCallback((J1)=>{h.context.typingRef.current=J1},[h]),o0=LH(C0,{listRef:h.context.itemLabels,activeIndex:o,resetMs:aA,onMatch:(J1)=>{if(c&&J1!==o)h.set("activeIndex",J1)},onTypingChange:h0}),{getReferenceProps:x0,getFloatingProps:l0,getItemProps:y0,getTriggerProps:H1}=Y5([q0,O0,b0,o0]),T1=Yw.useMemo(()=>{let J1=T5(x0(),{onMouseEnter(){h.set("hoverEnabled",!0)},onMouseMove(){h.set("allowMouseEnter",!0)}},L0);return delete J1.role,J1},[x0,h,L0]),W1=Yw.useMemo(()=>{let J1=H1();if(!J1)return J1;let N1=T5(J1,L0);return delete N1.role,delete N1["aria-controls"],N1},[H1,L0]),Qw=E5(),zw=Yw.useMemo(()=>l0({onMouseEnter(){if(e.type==="menu")Qw.request(()=>h.set("hoverEnabled",!1))},onMouseMove(){h.set("allowMouseEnter",!0)},onClick(){if(h.select("hoverEnabled"))h.set("hoverEnabled",!1)},onKeyDown(J1){let N1=h.select("keyboardEventRelay");if(N1&&!J1.isPropagationStopped())N1(J1)}}),[l0,e.type,Qw,h]),Vw=Yw.useMemo(()=>y0(),[y0]);h.useSyncedValues({floatingRootContext:C0,activeTriggerProps:T1,inactiveTriggerProps:W1,popupProps:zw,itemProps:Vw});let _w=Yw.useMemo(()=>({store:h,parent:C}),[h,C]),hw=vH.jsx(zZ.Provider,{value:_w,children:typeof X==="function"?X({payload:g}):X});if(e.type===void 0||e.type==="context-menu")return vH.jsx(fq,{externalTree:m,children:hw});return hw}var CD=p(Y0(),1);var hH=p(E1(),1);function hQ(J){let X=p1().store,Y=CD.useMemo(()=>({parentMenu:X}),[X]);return hH.jsx(xQ.Provider,{value:Y,children:hH.jsx(vQ,{...J})})}var yw=p(Y0(),1),PH=p(m8(),1);var PQ=p(Y0(),1);function IQ(J={}){let{highlightItemOnHover:X,highlightedIndex:Y,onHighlightedIndexChange:W}=vz(),{ref:K,index:U}=v5(J),H=Y===U,q=PQ.useRef(null),L=D5(K,q);return{compositeProps:PQ.useMemo(()=>({tabIndex:H?0:-1,onFocus(){W(U)},onMouseMove(){let N=q.current;if(!X||!N)return;let F=N.hasAttribute("disabled")||N.ariaDisabled==="true";if(!H&&!F)N.focus()}}),[H,W,U,X]),compositeRef:L,index:U}}function SD(J){let{render:X,className:Y,state:W=v1,props:K=e2,refs:U=e2,metadata:H,stateAttributesMapping:q,tag:L="div",...V}=J,{compositeProps:N,compositeRef:F}=IQ({metadata:H});return v0(L,J,{state:W,ref:[...U,F],props:[N,...K,V],stateAttributesMapping:q})}function Z$(J){if(O1(J)&&J.hasAttribute("data-rootownerid"))return J.getAttribute("data-rootownerid")??void 0;if(Z5(J))return;return Z$(w5(J))}var CQ=p(Y0(),1);function bD(J){let{enabled:X=!0,mouseDownAction:Y,open:W}=J,K=CQ.useRef(!1);return CQ.useMemo(()=>{if(!X)return v1;return{onMouseDown:(U)=>{if(Y==="open"&&!W||Y==="close"&&W)K.current=!0,xw(U.currentTarget).addEventListener("click",()=>{K.current=!1},{once:!0})},onClick:(U)=>{if(K.current)K.current=!1,U.preventBaseUIHandler()}}},[X,Y,W])}var u4=p(E1(),1),SQ=2,IH=yw.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,nativeButton:H=!0,id:q,openOnHover:L,delay:V=100,closeDelay:N=0,handle:F,payload:k,...j}=X,O=p1(!0),M=F?.store??O?.store;if(!M)throw Error("Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.");let v=ww(q),x=M.useState("isTriggerActive",v),E=M.useState("floatingRootContext"),I=M.useState("isOpenedByTrigger",v),C=yw.useRef(null),h=_b(),m=vz(!0),R=Y2(),S=yw.useMemo(()=>{return R??new t7},[R]),c=DX(S),d=ew(),{registerTrigger:w0,isMountedByThisTrigger:t}=cz(v,C,M,{payload:k,closeDelay:N,parent:h,floatingTreeRoot:S,floatingNodeId:c,floatingParentNodeId:d,keyboardEventRelay:m?.relayKeyboardEvent}),u=M.useState("disabled"),Q0=U||u||h.type==="menubar"&&h.context.disabled,{getButtonProps:r,buttonRef:e}=J5({disabled:Q0,native:H});yw.useEffect(()=>{if(!I&&h.type===void 0)M.context.allowMouseUpTriggerRef.current=!1},[M,I,h.type]);let o=yw.useRef(null),g=a1(),X0=F0((O0)=>{if(!o.current)return;g.clear(),M.context.allowMouseUpTriggerRef.current=!1;let j0=O0.target;if(t0(o.current,j0)||t0(M.select("positionerElement"),j0)||j0===o.current)return;if(j0!=null&&Z$(j0)===M.select("rootId"))return;let c0=KD(o.current);if(O0.clientX>=c0.left-SQ&&O0.clientX<=c0.right+SQ&&O0.clientY>=c0.top-SQ&&O0.clientY<=c0.bottom+SQ)return;S.events.emit("close",{domEvent:O0,reason:B0.cancelOpen})});yw.useEffect(()=>{if(I&&M.select("lastOpenChangeReason")===B0.triggerHover)xw(o.current).addEventListener("mouseup",X0,{once:!0})},[I,X0,M]);let P=h.type==="menubar"&&h.context.hasSubmenuOpen,U0=Y9(E,{enabled:(L??P??!1)&&!Q0&&h.type!=="context-menu"&&(h.type!=="menubar"||P&&!t),handleClose:Q9({blockPointerEvents:h.type!=="menubar"}),mouseOnly:!0,move:!1,restMs:h.type===void 0?V:void 0,delay:{close:N},triggerElementRef:C,externalTree:S,isActiveTrigger:x}),J0=Ub(I,M.select("lastOpenChangeReason")),L0=w9(E,{enabled:!Q0&&h.type!=="context-menu",event:I&&h.type==="menubar"?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:h.type===void 0?J0:!1}),S0=PX(E,{enabled:!Q0&&(h.type!=="menubar"&&I||P)}),V0=bD({open:I,enabled:h.type==="menubar",mouseDownAction:"open"}),_0=Y5([L0,S0]),A0=h.type==="menubar",r0=yw.useMemo(()=>({disabled:Q0,open:I}),[Q0,I]),n0=M.useState("triggerProps",t),n=[o,Y,e,w0,C],R0=[_0.getReferenceProps(),U0??v1,n0,{"aria-haspopup":"menu",id:v,onMouseDown:(O0)=>{if(M.select("open"))return;g.start(200,()=>{M.context.allowMouseUpTriggerRef.current=!0}),xw(O0.currentTarget).addEventListener("mouseup",X0,{once:!0})}},A0?{role:"menuitem"}:{},V0,j,r],I0=yw.useRef(null),A1=F0((O0)=>{PH.flushSync(()=>{M.setOpen(!1,P0(B0.focusOut,O0.nativeEvent,O0.currentTarget))}),SM(I0.current)?.focus()}),C0=F0((O0)=>{let j0=M.select("positionerElement");if(j0&&E6(O0,j0))M.context.beforeContentFocusGuardRef.current?.focus();else{PH.flushSync(()=>{M.setOpen(!1,P0(B0.focusOut,O0.nativeEvent,O0.currentTarget))});let c0=CM(C.current);while(c0!==null&&t0(j0,c0)||c0?.hasAttribute("aria-hidden")){let b0=c0;if(c0=Cz(c0),c0===b0)break}c0?.focus()}}),q0=v0("button",X,{enabled:!A0,stateAttributesMapping:RX,state:r0,ref:n,props:R0});if(A0)return u4.jsx(SD,{tag:"button",render:W,className:K,state:r0,refs:n,props:R0,stateAttributesMapping:RX});if(I)return u4.jsxs(yw.Fragment,{children:[u4.jsx(r8,{ref:I0,onFocus:A1},`${v}-pre-focus-guard`),u4.jsx(yw.Fragment,{children:q0},v),u4.jsx(r8,{ref:M.context.triggerFocusTargetRef,onFocus:C0},`${v}-post-focus-guard`)]});return u4.jsx(yw.Fragment,{children:q0},v)});IH.displayName="MenuTrigger";function Ub(J,X){let Y=a1(),[W,K]=yw.useState(!1);return k0(()=>{if(J&&X==="trigger-hover")K(!0),Y.start(sA,()=>{K(!1)});else if(!J)Y.clear(),K(!1)},[J,X,Y]),W}function _b(){let J=y5(!0),X=p1(!0),Y=DQ(!0);return yw.useMemo(()=>{if(Y)return{type:"menubar",context:Y};if(J&&!X)return{type:"context-menu",context:J};return{type:void 0}},[J,X,Y])}var a8=p(Y0(),1);var J$=a8.forwardRef(function(X,Y){let{render:W,className:K,label:U,id:H,nativeButton:q=!1,openOnHover:L=!0,delay:V=100,closeDelay:N=0,disabled:F=!1,...k}=X,j=v5(),O=R5(),{store:M}=p1(),v=ww(H),x=M.useState("open"),E=M.useState("floatingRootContext"),I=M.useState("floatingTreeRoot"),C=KH(v,M),h=a8.useCallback((S0)=>{let V0=C(S0);if(S0!==null&&M.select("open")&&M.select("activeTriggerId")==null)M.update({activeTriggerId:v,activeTriggerElement:S0,closeDelay:N});return V0},[C,N,M,v]),m=a8.useRef(null),R=a8.useCallback((S0)=>{m.current=S0,M.set("activeTriggerElement",S0)},[M]),S=EQ();if(!S?.parentMenu)throw Error("Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>.");M.useSyncedValue("closeDelay",N);let c=S.parentMenu,d=c.useState("itemProps"),w0=c.useState("isActive",j.index),t=a8.useMemo(()=>({type:"submenu-trigger",setActive:()=>c.set("activeIndex",j.index)}),[c,j.index]),u=M.useState("disabled"),Q0=F||u,{getItemProps:r,itemRef:e}=m4({closeOnClick:!1,disabled:Q0,highlighted:w0,id:v,store:M,nativeButton:q,itemMetadata:t,nodeId:O?.nodeId}),o=M.useState("hoverEnabled"),g=M.useState("allowMouseEnter"),X0=Y9(E,{enabled:o&&L&&!Q0&&g,handleClose:Q9({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:V,delay:{open:V,close:N},triggerElementRef:m,externalTree:I}),P=w9(E,{enabled:!Q0,event:"mousedown",toggle:!L,ignoreMouse:L,stickIfOpen:!1}),z0=Y5([P]),U0=M.useState("triggerProps",!0);delete U0.id;let J0=a8.useMemo(()=>({disabled:Q0,highlighted:w0,open:x}),[Q0,w0,x]);return v0("div",X,{state:J0,stateAttributesMapping:nz,props:[z0.getReferenceProps(),X0,U0,d,{tabIndex:x||w0?0:-1,onBlur(){if(w0)c.set("activeIndex",null)}},k,r],ref:[Y,j.ref,e,h,R]})});J$.displayName="MenuSubmenuTrigger";class bQ{constructor(){this.store=new WZ}open(J){let X=J?this.store.context.triggerElements.getById(J):void 0;if(J&&!X)throw Error(`Base UI: MenuHandle.open: No trigger found with id "${J}".`);this.store.setOpen(!0,P0("imperative-action",void 0,X))}close(){this.store.setOpen(!1,P0("imperative-action",void 0,void 0))}get isOpen(){return this.store.state.open}}function yD(){return new bQ}var RQ=p(E1(),1);function RD(J){let[X,Y]=G8.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),W=G8.useRef(null),K=G8.useRef(null),U=G8.useRef(null),H=G8.useRef(null),q=G8.useRef(!0),L=G8.useRef(null),V=X2(),N=G8.useMemo(()=>({anchor:X,setAnchor:Y,actionsRef:U,backdropRef:W,internalBackdropRef:K,positionerRef:H,allowMouseUpTriggerRef:q,initialCursorPointRef:L,rootId:V}),[X,V]);return RQ.jsx(XQ.Provider,{value:N,children:RQ.jsx(zZ.Provider,{value:void 0,children:RQ.jsx(yQ.Root,{...J})})})}var s8=p(Y0(),1);var gD=500,CH=s8.forwardRef(function(X,Y){let{render:W,className:K,...U}=X,{setAnchor:H,actionsRef:q,internalBackdropRef:L,backdropRef:V,positionerRef:N,allowMouseUpTriggerRef:F,initialCursorPointRef:k,rootId:j}=y5(!1),{store:O}=p1(!1),M=O.useState("open"),v=s8.useRef(null),x=s8.useRef(null),E=a1(),I=a1(),C=s8.useRef(!1);function h(t,u,Q0){let r=Q0.type.startsWith("touch");k.current={x:t,y:u},H({getBoundingClientRect(){return DOMRect.fromRect({width:r?10:0,height:r?10:0,x:t,y:u})}}),C.current=!1,q.current?.setOpen(!0,P0(B0.triggerPress,Q0)),I.start(gD,()=>{C.current=!0})}function m(t){F.current=!0,Xw(t),h(t.clientX,t.clientY,t.nativeEvent),xw(v.current).addEventListener("mouseup",(Q0)=>{if(F.current=!1,!C.current)return;I.clear(),C.current=!1;let r=f1(Q0);if(t0(N.current,r))return;if(j&&r&&Z$(r)===j)return;q.current?.setOpen(!1,P0(B0.cancelOpen,Q0))},{once:!0})}function R(t){if(F.current=!1,t.touches.length===1){t.stopPropagation();let u=t.touches[0];x.current={x:u.clientX,y:u.clientY},E.start(gD,()=>{if(x.current)h(x.current.x,x.current.y,t.nativeEvent)})}}function S(t){if(E.isStarted()&&x.current&&t.touches.length===1){let u=t.touches[0],Q0=10,r=Math.abs(u.clientX-x.current.x),e=Math.abs(u.clientY-x.current.y);if(r>10||e>10)E.clear()}}function c(){E.clear(),x.current=null}s8.useEffect(()=>{function t(Q0){let e=f1(Q0);if(t0(v.current,e)||t0(L.current,e)||t0(V.current,e))Q0.preventDefault()}let u=xw(v.current);return u.addEventListener("contextmenu",t),()=>{u.removeEventListener("contextmenu",t)}},[V,L]);let d=s8.useMemo(()=>({open:M}),[M]);return v0("div",X,{state:d,ref:[v,Y],props:[{onContextMenu:m,onTouchStart:R,onTouchMove:S,onTouchEnd:c,onTouchCancel:c,style:{WebkitTouchCallout:"none"}},U],stateAttributesMapping:RX})});CH.displayName="ContextMenuTrigger";var o8={};Vz(o8,{createHandle:()=>WD,Viewport:()=>TH,Trigger:()=>OH,Title:()=>MH,Root:()=>dD,Portal:()=>AH,Popup:()=>jH,Handle:()=>tG,Description:()=>kH,Close:()=>NH,Backdrop:()=>FH});var fD=p(Y0(),1);var mD=p(E1(),1);function dD(J){let{children:X,open:Y,defaultOpen:W=!1,onOpenChange:K,onOpenChangeComplete:U,disablePointerDismissal:H=!1,modal:q=!0,actionsRef:L,handle:V,triggerId:N,defaultTriggerId:F=null}=J,k=cw(!0),j=Boolean(k),O=r1(()=>{return V?.store??new yX({open:Y??W,activeTriggerId:N!==void 0?N:F,modal:q,disablePointerDismissal:H,nested:j})}).current;O.useControlledProp("open",Y,W),O.useControlledProp("activeTriggerId",N,F),O.useSyncedValues({disablePointerDismissal:H,nested:j,modal:q}),O.useContextCallback("onOpenChange",K),O.useContextCallback("onOpenChangeComplete",U);let M=O.useState("payload");wD({store:O,actionsRef:L,parentContext:k?.store.context,onOpenChange:K,triggerIdProp:N});let v=fD.useMemo(()=>({store:O}),[O]);return mD.jsx(pG.Provider,{value:v,children:typeof X==="function"?X({payload:M}):X})}var pD=p(Y0(),1);var S6=p(Y0(),1);var gQ="data-composite-item-active";var qb=[];function uD(J){let{itemSizes:X,cols:Y=1,loopFocus:W=!0,dense:K=!1,orientation:U="both",direction:H,highlightedIndex:q,onHighlightedIndexChange:L,rootRef:V,enableHomeAndEndKeys:N=!1,stopEventPropagation:F=!1,disabledIndices:k,modifierKeys:j=qb}=J,[O,M]=S6.useState(0),v=Y>1,x=S6.useRef(null),E=D5(x,V),I=S6.useRef([]),C=S6.useRef(!1),h=q??O,m=F0((c,d=!1)=>{if((L??M)(c),d){let w0=I.current[c];Sq(x.current,w0,H,U)}}),R=F0((c)=>{if(c.size===0||C.current)return;C.current=!0;let d=Array.from(c.keys()),w0=d.find((u)=>u?.hasAttribute(gQ))??null,t=w0?d.indexOf(w0):-1;if(t!==-1)m(t);Sq(x.current,w0,H,U)}),S=S6.useMemo(()=>({"aria-orientation":U==="both"?void 0:U,ref:E,onFocus(c){if(!x.current||!Cq(c.target))return;c.target.setSelectionRange(0,c.target.value.length??0)},onKeyDown(c){let d=N?fM:Iq;if(!d.has(c.key))return;if(Hb(c,j))return;if(!x.current)return;let t=H==="rtl",u=t?Sz:n7,Q0={horizontal:u,vertical:b4,both:u}[U],r=t?n7:Sz,e={horizontal:r,vertical:o7,both:r}[U];if(Cq(c.target)&&!XM(c.target)){let J0=c.target.selectionStart,L0=c.target.selectionEnd,S0=c.target.value??"";if(J0==null||c.shiftKey||J0!==L0)return;if(c.key!==e&&J0<S0.length)return;if(c.key!==Q0&&J0>0)return}let o=h,g=r7(I,k),X0=Pz(I,k);if(v){let J0=X||Array.from({length:I.current.length},()=>({width:1,height:1})),L0=kX(J0,Y,K),S0=L0.findIndex((_0)=>_0!=null&&!J8(I,_0,k)),V0=L0.reduce((_0,A0,r0)=>A0!=null&&!J8(I,A0,k)?r0:_0,-1);o=L0[NX({current:L0.map((_0)=>_0?I.current[_0]:null)},{event:c,orientation:U,loopFocus:W,cols:Y,disabledIndices:AX([...k||I.current.map((_0,A0)=>J8(I,A0)?A0:void 0),void 0],L0),minIndex:S0,maxIndex:V0,prevIndex:jX(h>X0?g:h,J0,L0,Y,c.key===b4?"bl":c.key===n7?"tr":"tl"),rtl:t})]}let P={horizontal:[u],vertical:[b4],both:[u,b4]}[U],z0={horizontal:[r],vertical:[o7],both:[r,o7]}[U],U0=v?d:{horizontal:N?RM:hq,vertical:N?gM:Pq,both:d}[U];if(N){if(c.key===bz)o=g;else if(c.key===yz)o=X0}if(o===h&&(P.includes(c.key)||z0.includes(c.key)))if(W&&o===X0&&P.includes(c.key))o=g;else if(W&&o===g&&z0.includes(c.key))o=X0;else o=Tw(I,{startingIndex:o,decrement:z0.includes(c.key),disabledIndices:k});if(o!==h&&!x6(I,o)){if(F)c.stopPropagation();if(U0.has(c.key))c.preventDefault();m(o,!0),queueMicrotask(()=>{I.current[o]?.focus()})}}}),[Y,K,H,k,I,N,h,v,X,W,E,j,m,U,F]);return S6.useMemo(()=>({props:S,highlightedIndex:h,onHighlightedIndexChange:m,elementsRef:I,disabledIndices:k,onMapChange:R,relayKeyboardEvent:S.onKeyDown}),[S,h,m,I,k,R])}function Hb(J,X){for(let Y of mM.values()){if(X.includes(Y))continue;if(J.getModifierState(Y))return!0}return!1}var SH=p(E1(),1);function cD(J){let{render:X,className:Y,refs:W=e2,props:K=e2,state:U=v1,stateAttributesMapping:H,highlightedIndex:q,onHighlightedIndexChange:L,orientation:V,dense:N,itemSizes:F,loopFocus:k,cols:j,enableHomeAndEndKeys:O,onMapChange:M,stopEventPropagation:v=!0,rootRef:x,disabledIndices:E,modifierKeys:I,highlightItemOnHover:C=!1,tag:h="div",...m}=J,R=O5(),{props:S,highlightedIndex:c,onHighlightedIndexChange:d,elementsRef:w0,onMapChange:t,relayKeyboardEvent:u}=uD({itemSizes:F,cols:j,loopFocus:k,dense:N,orientation:V,highlightedIndex:q,onHighlightedIndexChange:L,rootRef:x,stopEventPropagation:v,enableHomeAndEndKeys:O,direction:R,disabledIndices:E,modifierKeys:I}),Q0=v0(h,J,{state:U,ref:W,props:[S,...K,m],stateAttributesMapping:H}),r=pD.useMemo(()=>({highlightedIndex:c,onHighlightedIndexChange:d,highlightItemOnHover:C,relayKeyboardEvent:u}),[c,d,C,u]);return SH.jsx(ZG.Provider,{value:r,children:SH.jsx(Mz,{elementsRef:w0,onMapChange:(e)=>{M?.(e),t(e)},children:Q0})})}function KZ(J){let X=pw(J),Y=parseFloat(X.width)||0,W=parseFloat(X.height)||0,K=O1(J),U=K?J.offsetWidth:Y,H=K?J.offsetHeight:W;if(C4(Y)!==U||C4(W)!==H)Y=U,W=H;return{width:Y,height:W}}var $$=p(Y0(),1);var Bb=typeof ResizeObserver<"u",Lb=()=>!0;function lD(J){let{popupElement:X,positionerElement:Y,content:W,mounted:K,enabled:U=Lb,onMeasureLayout:H,onMeasureLayoutComplete:q,side:L,direction:V}=J,N=$$.useRef(!0),F=Tz(X,!0,!1),k=E5(),j=$$.useRef(null),O=F0(H),M=F0(q),v=$$.useMemo(()=>{let x=L==="top",E=L==="left";if(V==="rtl")x=x||L==="inline-end",E=E||L==="inline-end";else x=x||L==="inline-start",E=E||L==="inline-start";return x?{position:"absolute",[L==="top"?"bottom":"top"]:"0",[E?"right":"left"]:"0"}:v1},[L,V]);k0(()=>{if(!K||!U()||!Bb){N.current=!0,j.current=null;return}if(!X||!Y)return;Object.entries(v).forEach(([c,d])=>{X.style.setProperty(c,d)});let x=new ResizeObserver((c)=>{let d=c[0];if(d)if(j.current===null)j.current={width:Math.ceil(d.borderBoxSize[0].inlineSize),height:Math.ceil(d.borderBoxSize[0].blockSize)};else j.current.width=Math.ceil(d.borderBoxSize[0].inlineSize),j.current.height=Math.ceil(d.borderBoxSize[0].blockSize)});x.observe(X),X.style.setProperty("--popup-width","auto"),X.style.setProperty("--popup-height","auto");let E=X$(X,"position","static"),I=X$(X,"transform","none"),C=X$(X,"scale","1"),h=X$(Y,"--available-width","max-content"),m=X$(Y,"--available-height","max-content");if(O?.(),N.current||j.current===null){Y.style.setProperty("--positioner-width","max-content"),Y.style.setProperty("--positioner-height","max-content");let c=KZ(X);return Y.style.setProperty("--positioner-width",`${c.width}px`),Y.style.setProperty("--positioner-height",`${c.height}px`),E(),I(),C(),h(),m(),M?.(null,c),N.current=!1,()=>{x.disconnect()}}X.style.setProperty("--popup-width","auto"),X.style.setProperty("--popup-height","auto"),Y.style.setProperty("--positioner-width","max-content"),Y.style.setProperty("--positioner-height","max-content");let R=KZ(X);X.style.setProperty("--popup-width",`${j.current.width}px`),X.style.setProperty("--popup-height",`${j.current.height}px`),E(),I(),h(),m(),M?.(j.current,R),Y.style.setProperty("--positioner-width",`${R.width}px`),Y.style.setProperty("--positioner-height",`${R.height}px`);let S=new AbortController;return k.request(()=>{X.style.setProperty("--popup-width",`${R.width}px`),X.style.setProperty("--popup-height",`${R.height}px`),F(()=>{X.style.setProperty("--popup-width","auto"),X.style.setProperty("--popup-height","auto")},S.signal)}),()=>{x.disconnect(),S.abort(),k.cancel()}},[W,X,Y,F,k,U,K,O,M,v])}function X$(J,X,Y){let W=J.style.getPropertyValue(X);return J.style.setProperty(X,Y),()=>{J.style.setProperty(X,W)}}var iD=p(Y0(),1);function rD(J){let[X,Y]=iD.useState({current:J,previous:null});if(J!==X.current)Y({current:J,previous:X.current});return X.previous}var fQ=p(Y0(),1),aD=p(m8(),1);var sD=p(E1(),1),bH=fQ.forwardRef(function(X,Y){let{children:W,container:K,className:U,render:H,...q}=X,{portalNode:L,portalSubtree:V}=xG({container:K,ref:Y,componentProps:X,elementProps:q});if(!V&&!L)return null;return sD.jsxs(fQ.Fragment,{children:[V,L&&aD.createPortal(W,L)]})});bH.displayName="FloatingPortalLite";var R6={};Vz(R6,{Tab:()=>gH,Root:()=>RH,Panel:()=>mH,List:()=>uH,Indicator:()=>fH});var G2=p(Y0(),1);var mQ=p(Y0(),1),dQ=mQ.createContext(void 0);dQ.displayName="TabsRootContext";function b6(){let J=mQ.useContext(dQ);if(J===void 0)throw Error("Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");return J}var oD=function(J){return J.activationDirection="data-activation-direction",J.orientation="data-orientation",J}({});var p4={tabActivationDirection:(J)=>({[oD.activationDirection]:J})};var yH=p(E1(),1),RH=G2.forwardRef(function(X,Y){let{className:W,defaultValue:K=0,onValueChange:U,orientation:H="horizontal",render:q,value:L,...V}=X,N=O5(),F=Object.hasOwn(X,"defaultValue"),k=G2.useRef([]),[j,O]=G2.useState(()=>new Map),[M,v]=Az({controlled:L,default:K,name:"Tabs",state:"value"}),x=L!==void 0,[E,I]=G2.useState(()=>new Map),[C,h]=G2.useState("none"),m=F0((o,g)=>{if(U?.(o,g),g.isCanceled)return;v(o),h(g.activationDirection)}),R=F0((o,g)=>{O((X0)=>{if(X0.get(o)===g)return X0;let P=new Map(X0);return P.set(o,g),P})}),S=F0((o,g)=>{O((X0)=>{if(!X0.has(o)||X0.get(o)!==g)return X0;let P=new Map(X0);return P.delete(o),P})}),c=G2.useCallback((o)=>{return j.get(o)},[j]),d=G2.useCallback((o)=>{for(let g of E.values())if(o===g?.value)return g?.id;return},[E]),w0=G2.useCallback((o)=>{if(o===void 0)return null;for(let[g,X0]of E.entries())if(X0!=null&&o===(X0.value??X0.index))return g;return null},[E]),t=G2.useMemo(()=>({direction:N,getTabElementBySelectedValue:w0,getTabIdByPanelValue:d,getTabPanelIdByValue:c,onValueChange:m,orientation:H,registerMountedTabPanel:R,setTabMap:I,unregisterMountedTabPanel:S,tabActivationDirection:C,value:M}),[N,w0,d,c,m,H,R,I,S,C,M]),u=G2.useMemo(()=>{for(let o of E.values())if(o!=null&&o.value===M)return o;return},[E,M]),Q0=G2.useMemo(()=>{for(let o of E.values())if(o!=null&&!o.disabled)return o.value;return},[E]);k0(()=>{if(x||E.size===0)return;let o=u?.disabled,g=u==null&&M!==null;if(F&&o&&M===K)return;if(!o&&!g)return;let P=Q0??null;if(M===P)return;v(P),h("none")},[K,Q0,F,x,u,h,v,E,M]);let e=v0("div",X,{state:{orientation:H,tabActivationDirection:C},ref:Y,props:V,stateAttributesMapping:p4});return yH.jsx(dQ.Provider,{value:t,children:yH.jsx(Mz,{elementsRef:k,children:e})})});RH.displayName="TabsRoot";var y6=p(Y0(),1);var uQ=p(Y0(),1),pQ=uQ.createContext(void 0);pQ.displayName="TabsListContext";function cQ(){let J=uQ.useContext(pQ);if(J===void 0)throw Error("Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");return J}var gH=y6.forwardRef(function(X,Y){let{className:W,disabled:K=!1,render:U,value:H,id:q,nativeButton:L=!0,...V}=X,{value:N,getTabPanelIdByValue:F,orientation:k}=b6(),{activateOnFocus:j,highlightedTabIndex:O,onTabActivation:M,setHighlightedTabIndex:v,tabsListElement:x}=cQ(),E=ww(q),I=y6.useMemo(()=>({disabled:K,id:E,value:H}),[K,E,H]),{compositeProps:C,compositeRef:h,index:m}=IQ({metadata:I}),R=H===N,S=y6.useRef(!1);k0(()=>{if(S.current){S.current=!1;return}if(!(R&&m>-1&&O!==m))return;let X0=x;if(X0!=null){let P=$2(xw(X0));if(P&&t0(X0,P))return}if(!K)v(m)},[R,m,O,v,K,x]);let{getButtonProps:c,buttonRef:d}=J5({disabled:K,native:L,focusableWhenDisabled:!0}),w0=F(H),t=y6.useRef(!1),u=y6.useRef(!1);function Q0(X0){if(R||K)return;M(H,P0(B0.none,X0.nativeEvent,void 0,{activationDirection:"none"}))}function r(X0){if(R)return;if(m>-1&&!K)v(m);if(K)return;if(j&&(!t.current||t.current&&u.current))M(H,P0(B0.none,X0.nativeEvent,void 0,{activationDirection:"none"}))}function e(X0){if(R||K)return;t.current=!0;function P(){t.current=!1,u.current=!1}if(!X0.button||X0.button===0)u.current=!0,xw(X0.currentTarget).addEventListener("pointerup",P,{once:!0})}let o=y6.useMemo(()=>({disabled:K,active:R,orientation:k}),[K,R,k]);return v0("button",X,{state:o,ref:[Y,d,h],props:[C,{role:"tab","aria-controls":w0,"aria-selected":R,id:E,onClick:Q0,onFocus:r,onPointerDown:e,[gQ]:R?"":void 0,onKeyDownCapture(){S.current=!0}},V,c]})});gH.displayName="TabsTab";var W5=p(Y0(),1);var nD='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';var K9=function(J){return J.activeTabLeft="--active-tab-left",J.activeTabRight="--active-tab-right",J.activeTabTop="--active-tab-top",J.activeTabBottom="--active-tab-bottom",J.activeTabWidth="--active-tab-width",J.activeTabHeight="--active-tab-height",J}({});var lQ=p(E1(),1),Vb={...p4,activeTabPosition:()=>null,activeTabSize:()=>null},fH=W5.forwardRef(function(X,Y){let{className:W,render:K,renderBeforeHydration:U=!1,...H}=X,{getTabElementBySelectedValue:q,orientation:L,tabActivationDirection:V,value:N}=b6(),{tabsListElement:F}=cQ(),[k,j]=W5.useState(!1),{value:O}=b6();Dz(()=>j(!0));let M=iO();W5.useEffect(()=>{if(N!=null&&F!=null&&typeof ResizeObserver<"u"){let u=new ResizeObserver(M);return u.observe(F),()=>{u.disconnect()}}return},[N,F,M]);let v=0,x=0,E=0,I=0,C=0,h=0,m=!1;if(N!=null&&F!=null){let u=q(N);if(m=!0,u!=null){let{width:Q0,height:r}=KZ(u),{width:e,height:o}=KZ(F),g=u.getBoundingClientRect(),X0=F.getBoundingClientRect(),P=e>0?X0.width/e:1,z0=o>0?X0.height/o:1;if(Math.abs(P)>Number.EPSILON&&Math.abs(z0)>Number.EPSILON){let J0=g.left-X0.left,L0=g.top-X0.top;v=J0/P+F.scrollLeft-F.clientLeft,E=L0/z0+F.scrollTop-F.clientTop}else v=u.offsetLeft,E=u.offsetTop;C=Q0,h=r,x=F.scrollWidth-v-C,I=F.scrollHeight-E-h}}let R=W5.useMemo(()=>m?{left:v,right:x,top:E,bottom:I}:null,[v,x,E,I,m]),S=W5.useMemo(()=>m?{width:C,height:h}:null,[C,h,m]),c=W5.useMemo(()=>{if(!m)return;return{[K9.activeTabLeft]:`${v}px`,[K9.activeTabRight]:`${x}px`,[K9.activeTabTop]:`${E}px`,[K9.activeTabBottom]:`${I}px`,[K9.activeTabWidth]:`${C}px`,[K9.activeTabHeight]:`${h}px`}},[v,x,E,I,C,h,m]),d=m&&C>0&&h>0,w0=W5.useMemo(()=>({orientation:L,activeTabPosition:R,activeTabSize:S,tabActivationDirection:V}),[L,R,S,V]),t=v0("span",X,{state:w0,ref:Y,props:[{role:"presentation",style:c,hidden:!d},H,{suppressHydrationWarning:!0}],stateAttributesMapping:Vb});if(O==null)return null;return lQ.jsxs(W5.Fragment,{children:[t,!k&&U&&lQ.jsx("script",{dangerouslySetInnerHTML:{__html:nD},suppressHydrationWarning:!0})]})});fH.displayName="TabsIndicator";var Y$=p(Y0(),1);var tD=function(J){return J.index="data-index",J.activationDirection="data-activation-direction",J.orientation="data-orientation",J.hidden="data-hidden",J}({});var mH=Y$.forwardRef(function(X,Y){let{className:W,value:K,render:U,keepMounted:H=!1,...q}=X,{value:L,getTabIdByPanelValue:V,orientation:N,tabActivationDirection:F,registerMountedTabPanel:k,unregisterMountedTabPanel:j}=b6(),O=ww(),M=Y$.useMemo(()=>({id:O,value:K}),[O,K]),{ref:v,index:x}=v5({metadata:M}),E=K!==L,I=V(K),C=Y$.useMemo(()=>({hidden:E,orientation:N,tabActivationDirection:F}),[E,N,F]),h=v0("div",X,{state:C,ref:[Y,v],props:[{"aria-labelledby":I,hidden:E,id:O??void 0,role:"tabpanel",tabIndex:E?-1:0,[tD.index]:x},q],stateAttributesMapping:p4});if(k0(()=>{if(E&&!H)return;if(O==null)return;return k(K,O),()=>{j(K,O)}},[E,H,K,O,k,j]),!(!E||H))return null;return h});mH.displayName="TabsPanel";var Q8=p(Y0(),1);var dH=p(E1(),1),uH=Q8.forwardRef(function(X,Y){let{activateOnFocus:W=!1,className:K,loopFocus:U=!0,render:H,...q}=X,{getTabElementBySelectedValue:L,onValueChange:V,orientation:N,value:F,setTabMap:k,tabActivationDirection:j}=b6(),[O,M]=Q8.useState(0),[v,x]=Q8.useState(null),E=Fb(F,N,v,L),I=F0((R,S)=>{if(R!==F){let c=E(R);S.activationDirection=c,V(R,S)}}),C=Q8.useMemo(()=>({orientation:N,tabActivationDirection:j}),[N,j]),h={"aria-orientation":N==="vertical"?"vertical":void 0,role:"tablist"},m=Q8.useMemo(()=>({activateOnFocus:W,highlightedTabIndex:O,onTabActivation:I,setHighlightedTabIndex:M,tabsListElement:v,value:F}),[W,O,I,M,v,F]);return dH.jsx(pQ.Provider,{value:m,children:dH.jsx(cD,{render:H,className:K,state:C,refs:[Y,x],props:[h,q],stateAttributesMapping:p4,highlightedIndex:O,enableHomeAndEndKeys:!0,loopFocus:U,orientation:N,onHighlightedIndexChange:M,onMapChange:k,disabledIndices:e2})})});uH.displayName="TabsList";function eD(J,X){let{left:Y,top:W}=J.getBoundingClientRect(),{left:K,top:U}=X.getBoundingClientRect(),H=Y-K,q=W-U;return{left:H,top:q}}function Fb(J,X,Y,W){let[K,U]=Q8.useState(null);return k0(()=>{if(J==null||Y==null){U(null);return}let H=W(J);if(H==null){U(null);return}let{left:q,top:L}=eD(H,Y);U(X==="horizontal"?q:L)},[X,W,Y,J]),Q8.useCallback((H)=>{if(H===J)return"none";if(H==null)return U(null),"none";if(H!=null&&Y!=null){let q=W(H);if(q!=null){let{left:L,top:V}=eD(q,Y);if(K==null)return U(X==="horizontal"?L:V),"none";if(X==="horizontal"){if(L<K)return U(L),"left";if(L>K)return U(L),"right"}else if(V<K)return U(V),"up";else if(V>K)return U(V),"down"}}return"none"},[W,X,K,Y,J])}var t8={};Vz(t8,{createHandle:()=>KT,Viewport:()=>eH,Trigger:()=>pH,Root:()=>JT,Provider:()=>nH,Positioner:()=>iH,Portal:()=>lH,Popup:()=>rH,Handle:()=>ZW,Arrow:()=>aH});var n8=p(Y0(),1);var iQ=p(Y0(),1),rQ=iQ.createContext(void 0);rQ.displayName="TooltipRootContext";function g5(J){let X=iQ.useContext(rQ);if(X===void 0&&!J)throw Error("Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.");return X}var wT=p(Y0(),1),zT=p(m8(),1);var Nb={...az,disabled:p0((J)=>J.disabled),instantType:p0((J)=>J.instantType),isInstantPhase:p0((J)=>J.isInstantPhase),trackCursorAxis:p0((J)=>J.trackCursorAxis),disableHoverablePopup:p0((J)=>J.disableHoverablePopup),lastOpenChangeReason:p0((J)=>J.openChangeReason),closeDelay:p0((J)=>J.closeDelay)};class UZ extends P6{constructor(J){super({...kb(),...J},{popupRef:wT.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new X8},Nb)}setOpen=(J,X)=>{let Y=X.reason,W=Y===B0.triggerHover,K=J&&Y===B0.triggerFocus,U=!J&&(Y===B0.triggerPress||Y===B0.escapeKey);if(X.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(J,X),X.isCanceled)return;let H=()=>{let q={open:J,openChangeReason:Y};if(K)q.instantType="focus";else if(U)q.instantType="dismiss";else if(Y===B0.triggerHover)q.instantType=void 0;let L=X.trigger?.id??null;if(L||J)q.activeTriggerId=L,q.activeTriggerElement=X.trigger??null;this.update(q)};if(W)zT.flushSync(H);else H()};static useStore(J,X){let Y=r1(()=>{return J??new UZ(X)}).current,W=X9({popupStore:Y,onOpenChange:Y.setOpen});return Y.state.floatingRootContext=W,Y}}function kb(){return{...rz(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}var ZT=p(E1(),1);function JT(J){let{disabled:X=!1,defaultOpen:Y=!1,open:W,disableHoverablePopup:K=!1,trackCursorAxis:U="none",actionsRef:H,onOpenChange:q,onOpenChangeComplete:L,handle:V,triggerId:N,defaultTriggerId:F=null,children:k}=J,j=UZ.useStore(V?.store,{open:W??Y,activeTriggerId:N!==void 0?N:F});j.useControlledProp("open",W,Y),j.useControlledProp("activeTriggerId",N,F),j.useContextCallback("onOpenChange",q),j.useContextCallback("onOpenChangeComplete",L);let O=j.useState("open"),M=j.useState("activeTriggerId"),v=j.useState("payload");j.useSyncedValues({trackCursorAxis:U,disableHoverablePopup:K});let x=!X&&O;k0(()=>{if(O&&X)j.setOpen(!1,P0(B0.disabled))},[O,X,j]),j.useSyncedValue("disabled",X),lz(j);let{forceUnmount:E,transitionStatus:I}=iz(x,j),C=j.useState("isInstantPhase"),h=j.useState("instantType"),m=j.useState("lastOpenChangeReason"),R=n8.useRef(null);k0(()=>{if(I==="ending"&&m===B0.none||I!=="ending"&&C){if(h!=="delay")R.current=h;j.set("instantType","delay")}else if(R.current!==null)j.set("instantType",R.current),R.current=null},[I,C,m,h,j]),k0(()=>{if(x){if(M==null)j.set("payload",void 0)}},[j,M,x]);let S=n8.useCallback(()=>{j.setOpen(!1,jb(j,B0.imperativeAction))},[j]);n8.useImperativeHandle(H,()=>({unmount:E,close:S}),[E,S]);let c=j.useState("floatingRootContext"),d=PX(c,{enabled:!X}),w0=Z9(c,{enabled:!X,referencePress:!0}),t=sq(c,{enabled:!X&&U!=="none",axis:U==="none"?void 0:U}),{getReferenceProps:u,getFloatingProps:Q0,getTriggerProps:r}=Y5([d,w0,t]),e=n8.useMemo(()=>u(),[u]),o=n8.useMemo(()=>r(),[r]),g=n8.useMemo(()=>Q0(),[Q0]);return j.useSyncedValues({floatingRootContext:c,activeTriggerProps:e,inactiveTriggerProps:o,popupProps:g}),ZT.jsx(rQ.Provider,{value:j,children:typeof k==="function"?k({payload:v}):k})}function jb(J,X){let Y=P0(X);return Y.preventUnmountOnClose=()=>{J.set("preventUnmountingOnClose",!0)},Y}var _Z=p(Y0(),1);var aQ=p(Y0(),1),sQ=aQ.createContext(void 0);sQ.displayName="TooltipProviderContext";function XT(){return aQ.useContext(sQ)}var $T=600;var pH=_Z.forwardRef(function(X,Y){let{className:W,render:K,handle:U,payload:H,disabled:q,delay:L,closeDelay:V,id:N,...F}=X,k=g5(!0),j=U?.store??k;if(!j)throw Error("Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.");let O=ww(N),M=j.useState("isTriggerActive",O),v=j.useState("floatingRootContext"),x=j.useState("isOpenedByTrigger",O),E=_Z.useRef(null),I=L??$T,C=V??0,{registerTrigger:h,isMountedByThisTrigger:m}=cz(O,E,j,{payload:H,closeDelay:C}),R=XT(),{delayRef:S,isInstantPhase:c,hasProvider:d}=uq(v,{open:x});j.useSyncedValue("isInstantPhase",c);let w0=j.useState("disabled"),t=q??w0,u=j.useState("trackCursorAxis"),Q0=j.useState("disableHoverablePopup"),r=Y9(v,{enabled:!t,mouseOnly:!0,move:!1,handleClose:!Q0&&u!=="both"?Q9():null,restMs(){let X0=R?.delay,P=typeof S.current==="object"?S.current.open:void 0,z0=I;if(d)if(P!==0)z0=L??X0??I;else z0=0;return z0},delay(){let X0=typeof S.current==="object"?S.current.close:void 0,P=C;if(V==null&&d)P=X0;return{close:P}},triggerElementRef:E,isActiveTrigger:M}),e=_Z.useMemo(()=>({open:x}),[x]),o=j.useState("triggerProps",m);return v0("button",X,{state:e,ref:[Y,h,E],props:[r,o,{id:O},F],stateAttributesMapping:nz})});pH.displayName="TooltipTrigger";var GT=p(Y0(),1);var oQ=p(Y0(),1),nQ=oQ.createContext(void 0);nQ.displayName="TooltipPortalContext";function YT(){let J=oQ.useContext(nQ);if(J===void 0)throw Error("Base UI: <Tooltip.Portal> is missing.");return J}var cH=p(E1(),1),lH=GT.forwardRef(function(X,Y){let{keepMounted:W=!1,...K}=X;if(!(g5().useState("mounted")||W))return null;return cH.jsx(nQ.Provider,{value:W,children:cH.jsx(bH,{ref:Y,...K})})});lH.displayName="TooltipPortal";var qZ=p(Y0(),1);var tQ=p(Y0(),1),eQ=tQ.createContext(void 0);eQ.displayName="TooltipPositionerContext";function wW(){let J=tQ.useContext(eQ);if(J===void 0)throw Error("Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.");return J}var QT=p(E1(),1),iH=qZ.forwardRef(function(X,Y){let{render:W,className:K,anchor:U,positionMethod:H="absolute",side:q="top",align:L="center",sideOffset:V=0,alignOffset:N=0,collisionBoundary:F="clipping-ancestors",collisionPadding:k=5,arrowPadding:j=5,sticky:O=!1,disableAnchorTracking:M=!1,collisionAvoidance:v=lY,...x}=X,E=g5(),I=YT(),C=E.useState("open"),h=E.useState("mounted"),m=E.useState("trackCursorAxis"),R=E.useState("disableHoverablePopup"),S=E.useState("floatingRootContext"),c=E.useState("instantType"),d=E.useState("transitionStatus"),w0=eG({anchor:U,positionMethod:H,floatingRootContext:S,mounted:h,side:q,sideOffset:V,align:L,alignOffset:N,collisionBoundary:F,collisionPadding:k,sticky:O,arrowPadding:j,disableAnchorTracking:M,keepMounted:I,collisionAvoidance:v,adaptiveOrigin:qD}),t=qZ.useMemo(()=>{let e={};if(!C||m==="both"||R)e.pointerEvents="none";return{role:"presentation",hidden:!h,style:{...w0.positionerStyles,...e}}},[C,m,R,h,w0.positionerStyles]),u=qZ.useMemo(()=>({open:C,side:w0.side,align:w0.align,anchorHidden:w0.anchorHidden,instant:m!=="none"?"tracking-cursor":c}),[C,w0.side,w0.align,w0.anchorHidden,m,c]),Q0=qZ.useMemo(()=>({...u,arrowRef:w0.arrowRef,arrowStyles:w0.arrowStyles,arrowUncentered:w0.arrowUncentered}),[u,w0.arrowRef,w0.arrowStyles,w0.arrowUncentered]),r=v0("div",X,{state:u,props:[t,wZ(d),x],ref:[Y,E.useStateSetter("positionerElement")],stateAttributesMapping:vw});return QT.jsx(eQ.Provider,{value:Q0,children:r})});iH.displayName="TooltipPositioner";var HZ=p(Y0(),1);var Ab={...vw,...I2},rH=HZ.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,H=g5(),{side:q,align:L}=wW(),V=H.useState("open"),N=H.useState("mounted"),F=H.useState("instantType"),k=H.useState("transitionStatus"),j=H.useState("popupProps"),O=H.useState("payload"),M=H.useState("popupElement"),v=H.useState("positionerElement"),x=H.useState("floatingRootContext"),E=O5();I5({open:V,ref:H.context.popupRef,onComplete(){if(V)H.context.onOpenChangeComplete?.(!0)}});function I(){x.context.events.emit("measure-layout")}function C(d,w0){x.context.events.emit("measure-layout-complete",{previousDimensions:d,nextDimensions:w0})}let h=HZ.useCallback(()=>H.context.triggerElements.size>1,[H]);lD({popupElement:M,positionerElement:v,mounted:N,content:O,enabled:h,onMeasureLayout:I,onMeasureLayoutComplete:C,side:q,direction:E});let m=H.useState("disabled"),R=H.useState("closeDelay");CX(x,{enabled:!m,closeDelay:R});let S=HZ.useMemo(()=>({open:V,side:q,align:L,instant:F,transitionStatus:k}),[V,q,L,F,k]);return v0("div",X,{state:S,ref:[Y,H.context.popupRef,H.useStateSetter("popupElement")],props:[j,wZ(k),U],stateAttributesMapping:Ab})});rH.displayName="TooltipPopup";var zW=p(Y0(),1);var aH=zW.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,q=g5().useState("instantType"),{open:L,arrowRef:V,side:N,align:F,arrowUncentered:k,arrowStyles:j}=wW(),O=zW.useMemo(()=>({open:L,side:N,align:F,uncentered:k,instant:q}),[L,N,F,k,q]);return v0("div",X,{state:O,ref:[Y,V],props:[{style:j,"aria-hidden":!0},U],stateAttributesMapping:vw})});aH.displayName="TooltipArrow";var sH=p(Y0(),1);var oH=p(E1(),1),nH=function(X){let{delay:Y,closeDelay:W,timeout:K=400}=X,U=sH.useMemo(()=>({delay:Y,closeDelay:W}),[Y,W]),H=sH.useMemo(()=>({open:Y,close:W}),[Y,W]);return oH.jsx(sQ.Provider,{value:U,children:oH.jsx(dq,{delay:H,timeoutMs:K,children:X.children})})};nH.displayName="TooltipProvider";var lw=p(Y0(),1);var tH=function(J){return J.popupWidth="--popup-width",J.popupHeight="--popup-height",J}({});var BZ=p(E1(),1),Mb={activationDirection:(J)=>J?{"data-activation-direction":J}:null},eH=lw.forwardRef(function(X,Y){let{render:W,className:K,children:U,...H}=X,q=g5(),L=q.useState("activeTriggerElement"),V=q.useState("open"),N=q.useState("floatingRootContext"),F=q.useState("instantType"),k=rD(V?L:null),j=lw.useRef(null),[O,M]=lw.useState(null),[v,x]=lw.useState(null),E=lw.useRef(null),I=lw.useRef(null),C=Tz(E,!0,!1),h=E5(),[m,R]=lw.useState(null),[S,c]=lw.useState(!1),d=F0(()=>{E.current?.style.setProperty("animation","none"),E.current?.style.setProperty("transition","none"),I.current?.style.setProperty("display","none")}),w0=F0((e)=>{if(E.current?.style.removeProperty("animation"),E.current?.style.removeProperty("transition"),I.current?.style.removeProperty("display"),!m)R(e.previousDimensions)});lw.useEffect(()=>{return N.context.events.on("measure-layout",d),N.context.events.on("measure-layout-complete",w0),()=>{N.context.events.off("measure-layout",d),N.context.events.off("measure-layout-complete",w0)}},[N,d,w0]);let t=lw.useRef(null);k0(()=>{if(L&&k&&L!==k&&t.current!==L&&j.current){M(j.current),c(!0);let e=Db(k,L);x(e),h.request(()=>{h.request(()=>{c(!1),C(()=>{M(null),R(null),j.current=null})})}),t.current=L}},[L,k,O,C,h]),k0(()=>{let e=E.current;if(!e)return;let o=document.createElement("div");for(let g of Array.from(e.childNodes))o.appendChild(g.cloneNode(!0));j.current=o});let u=O!=null,Q0;if(!u)Q0=BZ.jsx("div",{"data-current":!0,ref:E,children:U},"current");else Q0=BZ.jsxs(lw.Fragment,{children:[BZ.jsx("div",{"data-previous":!0,inert:tz(!0),ref:I,style:{[tH.popupWidth]:`${m?.width}px`,[tH.popupHeight]:`${m?.height}px`,position:"absolute"},"data-ending-style":S?void 0:""},"previous"),BZ.jsx("div",{"data-current":!0,ref:E,"data-starting-style":S?"":void 0,children:U},"current")]});k0(()=>{let e=I.current;if(!e||!O)return;e.replaceChildren(...Array.from(O.childNodes))},[O]);let r=lw.useMemo(()=>{return{activationDirection:Ob(v),transitioning:u,instant:F}},[v,u,F]);return v0("div",X,{state:r,ref:Y,props:[H,{children:Q0}],stateAttributesMapping:Mb})});eH.displayName="TooltipViewport";function Ob(J){if(!J)return;return`${WT(J.horizontal,5,"right","left")} ${WT(J.vertical,5,"down","up")}`}function WT(J,X,Y,W){if(J>X)return Y;if(J<-X)return W;return""}function Db(J,X){let Y=J.getBoundingClientRect(),W=X.getBoundingClientRect(),K={x:Y.left+Y.width/2,y:Y.top+Y.height/2},U={x:W.left+W.width/2,y:W.top+W.height/2};return{horizontal:U.x-K.x,vertical:U.y-K.y}}class ZW{constructor(){this.store=new UZ}open(J){let X=J?this.store.context.triggerElements.getById(J):void 0;if(J&&!X)throw Error(`Base UI: TooltipHandle.open: No trigger found with id "${J}".`);this.store.setOpen(!0,P0(B0.imperativeAction,void 0,X))}close(){this.store.setOpen(!1,P0(B0.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}function KT(){return new ZW}function wB(J){return v0(J.defaultTagName??"div",J,J)}var Rx=p(Y0(),1);var Ix=p(Y0(),1);function UT(J){let X=J.getLocation(),Y=new Set,W=(H)=>{X=J.getLocation(),Y.forEach((q)=>q({location:X,action:H}))},K=(H)=>{if(J.notifyOnIndexChange??!0)W(H);else X=J.getLocation()},U=async({task:H,navigateOpts:q,...L})=>{if(q?.ignoreBlocker??!1){H();return}let N=J.getBlockers?.()??[],F=L.type==="PUSH"||L.type==="REPLACE";if(typeof document<"u"&&N.length&&F)for(let k of N){let j=_T(L.path,L.state);if(await k.blockerFn({currentLocation:X,nextLocation:j,action:L.type})){J.onBlocked?.();return}}H()};return{get location(){return X},get length(){return J.getLength()},subscribers:Y,subscribe:(H)=>{return Y.add(H),()=>{Y.delete(H)}},push:(H,q,L)=>{let V=X.state.__TSR_index;q=zB(V+1,q),U({task:()=>{J.pushState(H,q),W({type:"PUSH"})},navigateOpts:L,type:"PUSH",path:H,state:q})},replace:(H,q,L)=>{let V=X.state.__TSR_index;q=zB(V,q),U({task:()=>{J.replaceState(H,q),W({type:"REPLACE"})},navigateOpts:L,type:"REPLACE",path:H,state:q})},go:(H,q)=>{U({task:()=>{J.go(H),K({type:"GO",index:H})},navigateOpts:q,type:"GO"})},back:(H)=>{U({task:()=>{J.back(H?.ignoreBlocker??!1),K({type:"BACK"})},navigateOpts:H,type:"BACK"})},forward:(H)=>{U({task:()=>{J.forward(H?.ignoreBlocker??!1),K({type:"FORWARD"})},navigateOpts:H,type:"FORWARD"})},canGoBack:()=>X.state.__TSR_index!==0,createHref:(H)=>J.createHref(H),block:(H)=>{if(!J.setBlockers)return()=>{};let q=J.getBlockers?.()??[];return J.setBlockers([...q,H]),()=>{let L=J.getBlockers?.()??[];J.setBlockers?.(L.filter((V)=>V!==H))}},flush:()=>J.flush?.(),destroy:()=>J.destroy?.(),notify:W}}function zB(J,X){if(!X)X={};let Y=qT();return{...X,key:Y,__TSR_key:Y,["__TSR_index"]:J}}function LZ(J={initialEntries:["/"]}){let X=J.initialEntries,Y=J.initialIndex?Math.min(Math.max(J.initialIndex,0),X.length-1):X.length-1,W=X.map((U,H)=>zB(H,void 0));return UT({getLocation:()=>_T(X[Y],W[Y]),getLength:()=>X.length,pushState:(U,H)=>{if(Y<X.length-1)X.splice(Y+1),W.splice(Y+1);W.push(H),X.push(U),Y=Math.max(X.length-1,0)},replaceState:(U,H)=>{W[Y]=H,X[Y]=U},back:()=>{Y=Math.max(Y-1,0)},forward:()=>{Y=Math.min(Y+1,X.length-1)},go:(U)=>{Y=Math.min(Math.max(Y+U,0),X.length-1)},createHref:(U)=>U})}function _T(J,X){let Y=J.indexOf("#"),W=J.indexOf("?"),K=qT();return{href:J,pathname:J.substring(0,Y>0?W>0?Math.min(Y,W):Y:W>0?W:J.length),hash:Y>-1?J.substring(Y):"",search:W>-1?J.slice(W,Y===-1?void 0:Y):"",state:X||{["__TSR_index"]:0,key:K,__TSR_key:K}}}function qT(){return(Math.random()+1).toString(36).substring(7)}function BT(J){return"init"in J}function ZB(J){return!!J.write}function HT(J){return"v"in J||"e"in J}function JW(J){if("e"in J)throw J.e;if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("v"in J))throw Error("[Bug] atom state is not initialized");return J.v}var XW=new WeakMap;function LT(J){var X;return $W(J)&&!!((X=XW.get(J))==null?void 0:X[0])}function Tb(J){let X=XW.get(J);if(X==null?void 0:X[0])X[0]=!1,X[1].forEach((Y)=>Y())}function YW(J,X){let Y=XW.get(J);if(!Y){Y=[!0,new Set],XW.set(J,Y);let W=()=>{Y[0]=!1};J.then(W,W)}Y[1].add(X)}function $W(J){return typeof(J==null?void 0:J.then)==="function"}function VT(J,X,Y){if(!Y.p.has(J)){Y.p.add(J);let W=()=>Y.p.delete(J);X.then(W,W)}}function FT(J,X,Y){var W;let K=new Set;for(let U of((W=Y.get(J))==null?void 0:W.t)||[])K.add(U);for(let U of X.p)K.add(U);return K}var xb=(J,X,...Y)=>X.read(...Y),Eb=(J,X,...Y)=>X.write(...Y),vb=(J,X)=>{if(X.INTERNAL_onInit)return X.INTERNAL_onInit(J);if(X.unstable_onInit)return console.warn("[DEPRECATED] atom.unstable_onInit is renamed to atom.INTERNAL_onInit."),X.unstable_onInit(J)},hb=(J,X,Y)=>{var W;return(W=X.onMount)==null?void 0:W.call(X,Y)},Pb=(J,X)=>{var Y;let W=Q2(J),K=W[0],U=W[6],H=W[9];if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!X)throw Error("Atom is undefined or null");let q=K.get(X);if(!q)q={d:new Map,p:new Set,n:0},K.set(X,q),(Y=U.i)==null||Y.call(U,X),H==null||H(J,X);return q},Ib=(J)=>{let X=Q2(J),Y=X[1],W=X[3],K=X[4],U=X[5],H=X[6],q=X[13],L=[],V=(N)=>{try{N()}catch(F){L.push(F)}};do{if(H.f)V(H.f);let N=new Set,F=N.add.bind(N);if(W.forEach((k)=>{var j;return(j=Y.get(k))==null?void 0:j.l.forEach(F)}),W.clear(),U.forEach(F),U.clear(),K.forEach(F),K.clear(),N.forEach(V),W.size)q(J)}while(W.size||U.size||K.size);if(L.length)throw AggregateError(L)},Cb=(J)=>{let X=Q2(J),Y=X[1],W=X[2],K=X[3],U=X[11],H=X[14],q=X[17],L=[],V=new WeakSet,N=new WeakSet,F=Array.from(K);while(F.length){let k=F[F.length-1],j=U(J,k);if(N.has(k)){F.pop();continue}if(V.has(k)){if(W.get(k)===j.n)L.push([k,j]);else if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&W.has(k))throw Error("[Bug] invalidated atom exists");N.add(k),F.pop();continue}V.add(k);for(let O of FT(k,j,Y))if(!V.has(O))F.push(O)}for(let k=L.length-1;k>=0;--k){let[j,O]=L[k],M=!1;for(let v of O.d.keys())if(v!==j&&K.has(v)){M=!0;break}if(M)H(J,j),q(J,j);W.delete(j)}},JB=new WeakSet,Sb=(J,X)=>{var Y,W;let K=Q2(J),U=K[1],H=K[2],q=K[3],L=K[6],V=K[7],N=K[11],F=K[12],k=K[13],j=K[14],O=K[16],M=K[17],v=K[20],x=N(J,X);if(HT(x)){if(U.has(X)&&H.get(X)!==x.n)return x;let c=!1;for(let[d,w0]of x.d)if(j(J,d).n!==w0){c=!0;break}if(!c)return x}x.d.clear();let E=!0;function I(){if(U.has(X))M(J,X),k(J),F(J)}function C(c){var d;if(c===X){let t=N(J,c);if(!HT(t))if(BT(c))v(J,c,c.init);else throw Error("no atom init");return JW(t)}let w0=j(J,c);try{return JW(w0)}finally{if(x.d.set(c,w0.n),LT(x.v))VT(X,x.v,w0);if(U.has(X))(d=U.get(c))==null||d.t.add(X);if(!E)I()}}let h,m,R={get signal(){if(!h)h=new AbortController;return h.signal},get setSelf(){if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!ZB(X))console.warn("setSelf function cannot be used with read-only atom");if(!m&&ZB(X))m=(...c)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&E)console.warn("setSelf function cannot be called in sync");if(!E)try{return O(J,X,...c)}finally{k(J),F(J)}};return m}},S=x.n;try{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")JB.delete(J);let c=V(J,X,C,R);if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&JB.has(J))console.warn("Detected store mutation during atom read. This is not supported.");if(v(J,X,c),$W(c))YW(c,()=>h==null?void 0:h.abort()),c.then(I,I);return(Y=L.r)==null||Y.call(L,X),x}catch(c){return delete x.v,x.e=c,++x.n,x}finally{if(E=!1,S!==x.n&&H.get(X)===S)H.set(X,x.n),q.add(X),(W=L.c)==null||W.call(L,X)}},bb=(J,X)=>{let Y=Q2(J),W=Y[1],K=Y[2],U=Y[11],H=[X];while(H.length){let q=H.pop(),L=U(J,q);for(let V of FT(q,L,W)){let N=U(J,V);K.set(V,N.n),H.push(V)}}},yb=(J,X,...Y)=>{let W=Q2(J),K=W[3],U=W[6],H=W[8],q=W[11],L=W[12],V=W[13],N=W[14],F=W[15],k=W[16],j=W[17],O=W[20],M=!0,v=(E)=>JW(N(J,E)),x=(E,...I)=>{var C;let h=q(J,E);try{if(E===X){if(!BT(E))throw Error("atom not writable");if((import.meta.env?import.meta.env.MODE:void 0)!=="production")JB.add(J);let m=h.n,R=I[0];if(O(J,E,R),j(J,E),m!==h.n)K.add(E),F(J,E),(C=U.c)==null||C.call(U,E);return}else return k(J,E,...I)}finally{if(!M)V(J),L(J)}};try{return H(J,X,v,x,...Y)}finally{M=!1}},Rb=(J,X)=>{var Y;let W=Q2(J),K=W[1],U=W[3],H=W[6],q=W[11],L=W[15],V=W[18],N=W[19],F=q(J,X),k=K.get(X);if(k&&!LT(F.v)){for(let[j,O]of F.d)if(!k.d.has(j)){let M=q(J,j);if(V(J,j).t.add(X),k.d.add(j),O!==M.n)U.add(j),L(J,j),(Y=H.c)==null||Y.call(H,j)}for(let j of k.d)if(!F.d.has(j)){k.d.delete(j);let O=N(J,j);O==null||O.t.delete(X)}}},gb=(J,X)=>{var Y;let W=Q2(J),K=W[1],U=W[4],H=W[6],q=W[10],L=W[11],V=W[12],N=W[13],F=W[14],k=W[16],j=W[18],O=L(J,X),M=K.get(X);if(!M){F(J,X);for(let v of O.d.keys())j(J,v).t.add(X);if(M={l:new Set,d:new Set(O.d.keys()),t:new Set},K.set(X,M),ZB(X)){let v=()=>{let x=!0,E=(...I)=>{try{return k(J,X,...I)}finally{if(!x)N(J),V(J)}};try{let I=q(J,X,E);if(I)M.u=()=>{x=!0;try{I()}finally{x=!1}}}finally{x=!1}};U.add(v)}(Y=H.m)==null||Y.call(H,X)}return M},fb=(J,X)=>{var Y,W;let K=Q2(J),U=K[1],H=K[5],q=K[6],L=K[11],V=K[19],N=L(J,X),F=U.get(X);if(!F||F.l.size)return F;let k=!1;for(let j of F.t)if((Y=U.get(j))==null?void 0:Y.d.has(X)){k=!0;break}if(!k){if(F.u)H.add(F.u);F=void 0,U.delete(X);for(let j of N.d.keys()){let O=V(J,j);O==null||O.t.delete(X)}(W=q.u)==null||W.call(q,X);return}return F},mb=(J,X,Y)=>{let W=Q2(J)[11],K=W(J,X),U="v"in K,H=K.v;if($W(Y))for(let q of K.d.keys())VT(X,Y,W(J,q));if(K.v=Y,delete K.e,!U||!Object.is(H,K.v)){if(++K.n,$W(H))Tb(H)}},db=(J,X)=>{let Y=Q2(J)[14];return JW(Y(J,X))},ub=(J,X,...Y)=>{let W=Q2(J),K=W[12],U=W[13],H=W[16];try{return H(J,X,...Y)}finally{U(J),K(J)}},pb=(J,X,Y)=>{let W=Q2(J),K=W[12],U=W[18],H=W[19],L=U(J,X).l;return L.add(Y),K(J),()=>{L.delete(Y),H(J,X),K(J)}},NT=new WeakMap,Q2=(J)=>{let X=NT.get(J);if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!X)throw Error("Store must be created by buildStore to read its building blocks");return X};function kT(...J){let X={get(W){let K=Q2(X)[21];return K(X,W)},set(W,...K){let U=Q2(X)[22];return U(X,W,...K)},sub(W,K){let U=Q2(X)[23];return U(X,W,K)}},Y=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},xb,Eb,vb,hb,Pb,Ib,Cb,Sb,bb,yb,Rb,gb,fb,mb,db,ub,pb,void 0].map((W,K)=>J[K]||W);return NT.set(X,Object.freeze(Y)),X}var cb=0;function VZ(J,X){let Y=`atom${++cb}`,W={toString(){return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&this.debugLabel?Y+":"+this.debugLabel:Y}};if(typeof J==="function")W.read=J;else W.init=J,W.read=lb,W.write=ib;if(X)W.write=X;return W}function lb(J){return J(this)}function ib(J,X,Y){return X(this,typeof Y==="function"?Y(J(this)):Y)}var jT;function AT(){if(jT)return jT();return kT()}var G$;function MT(){if(!G$){if(G$=AT(),(import.meta.env?import.meta.env.MODE:void 0)!=="production"){if(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=G$),globalThis.__JOTAI_DEFAULT_STORE__!==G$)console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")}}return G$}var w2=p(Y0(),1);var rb=w2.createContext(void 0);function DT(J){let X=w2.useContext(rb);return(J==null?void 0:J.store)||X||MT()}var $B=(J)=>typeof(J==null?void 0:J.then)==="function",YB=(J)=>{if(!J.status)J.status="pending",J.then((X)=>{J.status="fulfilled",J.value=X},(X)=>{J.status="rejected",J.reason=X})},ab=w2.default.use||((J)=>{if(J.status==="pending")throw J;else if(J.status==="fulfilled")return J.value;else if(J.status==="rejected")throw J.reason;else throw YB(J),J}),XB=new WeakMap,OT=(J,X)=>{let Y=XB.get(J);if(!Y)Y=new Promise((W,K)=>{let U=J,H=(V)=>(N)=>{if(U===V)W(N)},q=(V)=>(N)=>{if(U===V)K(N)},L=()=>{try{let V=X();if($B(V))XB.set(V,Y),U=V,V.then(H(V),q(V)),YW(V,L);else W(V)}catch(V){K(V)}};J.then(H(J),q(J)),YW(J,L)}),XB.set(J,Y);return Y};function sb(J,X){let{delay:Y,unstable_promiseStatus:W=!w2.default.use}=X||{},K=DT(X),[[U,H,q],L]=w2.useReducer((N)=>{let F=K.get(J);if(Object.is(N[0],F)&&N[1]===K&&N[2]===J)return N;return[F,K,J]},void 0,()=>[K.get(J),K,J]),V=U;if(H!==K||q!==J)L(),V=K.get(J);if(w2.useEffect(()=>{let N=K.sub(J,()=>{if(W)try{let F=K.get(J);if($B(F))YB(OT(F,()=>K.get(J)))}catch(F){}if(typeof Y==="number"){setTimeout(L,Y);return}L()});return L(),N},[K,J,Y,W]),w2.useDebugValue(V),$B(V)){let N=OT(V,()=>K.get(J));if(W)YB(N);return ab(N)}return V}function ob(J,X){let Y=DT(X);return w2.useCallback((...K)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("write"in J))throw Error("not writable atom");return Y.set(J,...K)},[Y,J])}function Gw(J,X){return[sb(J,X),ob(J,X)]}var nb=Symbol((import.meta.env?import.meta.env.MODE:void 0)!=="production"?"RESET":"");var TT=(J)=>typeof(J==null?void 0:J.then)==="function";function tb(J=()=>{try{return window.localStorage}catch(Y){if((import.meta.env?import.meta.env.MODE:void 0)!=="production"){if(typeof window<"u")console.warn(Y)}return}},X){var Y;let W,K,U={getItem:(L,V)=>{var N,F;let k=(O)=>{if(O=O||"",W!==O){try{K=JSON.parse(O,X==null?void 0:X.reviver)}catch(M){return V}W=O}return K},j=(F=(N=J())==null?void 0:N.getItem(L))!=null?F:null;if(TT(j))return j.then(k);return k(j)},setItem:(L,V)=>{var N;return(N=J())==null?void 0:N.setItem(L,JSON.stringify(V,X==null?void 0:X.replacer))},removeItem:(L)=>{var V;return(V=J())==null?void 0:V.removeItem(L)}},H=(L)=>(V,N,F)=>L(V,(k)=>{let j;try{j=JSON.parse(k||"")}catch(O){j=F}N(j)}),q;try{q=(Y=J())==null?void 0:Y.subscribe}catch(L){}if(!q&&typeof window<"u"&&typeof window.addEventListener==="function"&&window.Storage)q=(L,V)=>{if(!(J()instanceof window.Storage))return()=>{};let N=(F)=>{if(F.storageArea===J()&&F.key===L)V(F.newValue)};return window.addEventListener("storage",N),()=>{window.removeEventListener("storage",N)}};if(q)U.subscribe=H(q);return U}var eb=tb();function GB(J,X,Y=eb,W){let K=W==null?void 0:W.getOnInit,U=VZ(K?Y.getItem(J,X):X);if((import.meta.env?import.meta.env.MODE:void 0)!=="production")U.debugPrivate=!0;return U.onMount=(q)=>{q(Y.getItem(J,X));let L;if(Y.subscribe)L=Y.subscribe(J,q,X);return L},VZ((q)=>q(U),(q,L,V)=>{let N=typeof V==="function"?V(q(U)):V;if(N===nb)return L(U,X),Y.removeItem(J);if(TT(N))return N.then((F)=>{return L(U,F),Y.setItem(J,F)});return L(U,N),Y.setItem(J,N)})}var xT=p(Y0(),1),GW=GB("activeTabId",null),c4=GB("tabs",[]),l4=VZ({}),QB=VZ(null);function i4(){return Gw(c4)}function FZ(){let[J]=Gw(c4),[X,Y]=Gw(GW),[W]=Gw(l4),K=J.find((H)=>H.id===X)??null,U=X?W[X]??null:null;return{activeTab:K,setActiveTab:Y,tabHistory:U}}function ET(){let[,J]=Gw(c4),[,X]=Gw(GW),[,Y]=Gw(l4);return(W)=>{let K=crypto.randomUUID();return J((U)=>[...U,{...W,id:K}]),Y((U)=>({...U,[K]:LZ({initialEntries:[W.path]})})),X(K),K}}function QW(){let[J,X]=Gw(c4);return(Y)=>{X(J.map((W)=>W.id===Y?{...W,temporary:!1}:W))}}function vT(){let[J,X]=Gw(c4),[Y,W]=Gw(GW),[,K]=Gw(l4);return(U)=>{if(X(J.filter((H)=>H.id!==U)),K((H)=>{let{[U]:q,...L}=H;return L}),Y===U){let H=J.findIndex((L)=>L.id===U),q=J[H-1]||J[H+1]||null;W(q?q.id:null)}}}function hT(){let[J,X]=Gw(c4),[,Y]=Gw(l4);return(W,K)=>{X(J.map((U)=>U.id===W?{...K,id:W}:U)),Y((U)=>{let H=U[W]??LZ({initialEntries:[K.path]});return H.push(K.path),{...U,[W]:H}})}}function PT(){let[J,X]=Gw(c4),[Y,W]=Gw(GW),[K,U]=Gw(QB),[H,q]=Gw(l4);return(L)=>{let V=new Set;for(let k of Object.values(L))for(let j of k)V.add(j.path);let N=new Set;if(K)for(let k of Object.values(K))for(let j of k)N.add(j.path);if(J.filter((k)=>!V.has(k.path)).length>0){let k=[];for(let M of Object.values(L))for(let v of M)if(!N.has(v.path))k.push(v);let j=J.map((M)=>{if(!V.has(M.path)){let v=k.find((x)=>{let E=M.name.toLowerCase(),I=x.name.toLowerCase();return I.includes(E)||E.includes(I)||wy(E,I)<=3});if(v){let x=k.indexOf(v);if(x>-1)k.splice(x,1);return{...M,path:v.path,name:v.name}}}return M}),O=j.filter((M)=>V.has(M.path));if(O.length!==J.length||j.some((M,v)=>M.path!==J[v]?.path)){if(X(O),q((M)=>{let v={};for(let x of O){let E=M[x.id];if(E)E.replace(x.path),v[x.id]=E;else v[x.id]=LZ({initialEntries:[x.path]})}return v}),Y&&!O.find((M)=>M.id===Y))W(O[0]?.id??null)}}U(L)}}function IT(){let[J]=Gw(c4),[,X]=Gw(l4);xT.useEffect(()=>{X((Y)=>{let W=!1,K={...Y};for(let U of J)if(!K[U.id])K[U.id]=LZ({initialEntries:[U.path]}),W=!0;for(let U of Object.keys(K))if(!J.find((H)=>H.id===U))delete K[U],W=!0;return W?K:Y})},[X,J])}function wy(J,X){let Y=[];for(let W=0;W<=X.length;W++)Y[W]=[W];for(let W=0;W<=J.length;W++)Y[0][W]=W;for(let W=1;W<=X.length;W++)for(let K=1;K<=J.length;K++)if(X.charAt(W-1)===J.charAt(K-1))Y[W][K]=Y[W-1][K-1];else Y[W][K]=Math.min(Y[W-1][K-1]+1,Y[W][K-1]+1,Y[W-1][K]+1);return Y[X.length][J.length]}function CT(J){var X,Y,W="";if(typeof J=="string"||typeof J=="number")W+=J;else if(typeof J=="object")if(Array.isArray(J)){var K=J.length;for(X=0;X<K;X++)J[X]&&(Y=CT(J[X]))&&(W&&(W+=" "),W+=Y)}else for(Y in J)J[Y]&&(W&&(W+=" "),W+=Y);return W}function WW(){for(var J,X,Y=0,W="",K=arguments.length;Y<K;Y++)(J=arguments[Y])&&(X=CT(J))&&(W&&(W+=" "),W+=X);return W}var ST=(J)=>typeof J==="boolean"?`${J}`:J===0?"0":J,bT=WW,KW=(J,X)=>(Y)=>{var W;if((X===null||X===void 0?void 0:X.variants)==null)return bT(J,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className);let{variants:K,defaultVariants:U}=X,H=Object.keys(K).map((V)=>{let N=Y===null||Y===void 0?void 0:Y[V],F=U===null||U===void 0?void 0:U[V];if(N===null)return null;let k=ST(N)||ST(F);return K[V][k]}),q=Y&&Object.entries(Y).reduce((V,N)=>{let[F,k]=N;if(k===void 0)return V;return V[F]=k,V},{}),L=X===null||X===void 0?void 0:(W=X.compoundVariants)===null||W===void 0?void 0:W.reduce((V,N)=>{let{class:F,className:k,...j}=N;return Object.entries(j).every((O)=>{let[M,v]=O;return Array.isArray(v)?v.includes({...U,...q}[M]):{...U,...q}[M]===v})?[...V,F,k]:V},[]);return bT(J,H,L,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className)};var zy=(J,X)=>{let Y=Array(J.length+X.length);for(let W=0;W<J.length;W++)Y[W]=J[W];for(let W=0;W<X.length;W++)Y[J.length+W]=X[W];return Y},Zy=(J,X)=>({classGroupId:J,validator:X}),mT=(J=new Map,X=null,Y)=>({nextPart:J,validators:X,classGroupId:Y});var yT=[];var Jy=(J)=>{let X=$y(J),{conflictingClassGroups:Y,conflictingClassGroupModifiers:W}=J;return{getClassGroupId:(H)=>{if(H.startsWith("[")&&H.endsWith("]"))return Xy(H);let q=H.split("-"),L=q[0]===""&&q.length>1?1:0;return dT(q,L,X)},getConflictingClassGroupIds:(H,q)=>{if(q){let L=W[H],V=Y[H];if(L){if(V)return zy(V,L);return L}return V||yT}return Y[H]||yT}}},dT=(J,X,Y)=>{if(J.length-X===0)return Y.classGroupId;let K=J[X],U=Y.nextPart.get(K);if(U){let V=dT(J,X+1,U);if(V)return V}let H=Y.validators;if(H===null)return;let q=X===0?J.join("-"):J.slice(X).join("-"),L=H.length;for(let V=0;V<L;V++){let N=H[V];if(N.validator(q))return N.classGroupId}return},Xy=(J)=>J.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let X=J.slice(1,-1),Y=X.indexOf(":"),W=X.slice(0,Y);return W?"arbitrary.."+W:void 0})(),$y=(J)=>{let{theme:X,classGroups:Y}=J;return Yy(Y,X)},Yy=(J,X)=>{let Y=mT();for(let W in J){let K=J[W];UB(K,Y,W,X)}return Y},UB=(J,X,Y,W)=>{let K=J.length;for(let U=0;U<K;U++){let H=J[U];Gy(H,X,Y,W)}},Gy=(J,X,Y,W)=>{if(typeof J==="string"){Qy(J,X,Y);return}if(typeof J==="function"){Wy(J,X,Y,W);return}Ky(J,X,Y,W)},Qy=(J,X,Y)=>{let W=J===""?X:uT(X,J);W.classGroupId=Y},Wy=(J,X,Y,W)=>{if(Uy(J)){UB(J(W),X,Y,W);return}if(X.validators===null)X.validators=[];X.validators.push(Zy(Y,J))},Ky=(J,X,Y,W)=>{let K=Object.entries(J),U=K.length;for(let H=0;H<U;H++){let[q,L]=K[H];UB(L,uT(X,q),Y,W)}},uT=(J,X)=>{let Y=J,W=X.split("-"),K=W.length;for(let U=0;U<K;U++){let H=W[U],q=Y.nextPart.get(H);if(!q)q=mT(),Y.nextPart.set(H,q);Y=q}return Y},Uy=(J)=>("isThemeGetter"in J)&&J.isThemeGetter===!0,_y=(J)=>{if(J<1)return{get:()=>{return},set:()=>{}};let X=0,Y=Object.create(null),W=Object.create(null),K=(U,H)=>{if(Y[U]=H,X++,X>J)X=0,W=Y,Y=Object.create(null)};return{get(U){let H=Y[U];if(H!==void 0)return H;if((H=W[U])!==void 0)return K(U,H),H},set(U,H){if(U in Y)Y[U]=H;else K(U,H)}}};var qy=[],RT=(J,X,Y,W,K)=>({modifiers:J,hasImportantModifier:X,baseClassName:Y,maybePostfixModifierPosition:W,isExternal:K}),Hy=(J)=>{let{prefix:X,experimentalParseClassName:Y}=J,W=(K)=>{let U=[],H=0,q=0,L=0,V,N=K.length;for(let M=0;M<N;M++){let v=K[M];if(H===0&&q===0){if(v===":"){U.push(K.slice(L,M)),L=M+1;continue}if(v==="/"){V=M;continue}}if(v==="[")H++;else if(v==="]")H--;else if(v==="(")q++;else if(v===")")q--}let F=U.length===0?K:K.slice(L),k=F,j=!1;if(F.endsWith("!"))k=F.slice(0,-1),j=!0;else if(F.startsWith("!"))k=F.slice(1),j=!0;let O=V&&V>L?V-L:void 0;return RT(U,j,k,O)};if(X){let K=X+":",U=W;W=(H)=>H.startsWith(K)?U(H.slice(K.length)):RT(qy,!1,H,void 0,!0)}if(Y){let K=W;W=(U)=>Y({className:U,parseClassName:K})}return W},By=(J)=>{let X=new Map;return J.orderSensitiveModifiers.forEach((Y,W)=>{X.set(Y,1e6+W)}),(Y)=>{let W=[],K=[];for(let U=0;U<Y.length;U++){let H=Y[U],q=H[0]==="[",L=X.has(H);if(q||L){if(K.length>0)K.sort(),W.push(...K),K=[];W.push(H)}else K.push(H)}if(K.length>0)K.sort(),W.push(...K);return W}},Ly=(J)=>({cache:_y(J.cacheSize),parseClassName:Hy(J),sortModifiers:By(J),...Jy(J)}),Vy=/\s+/,Fy=(J,X)=>{let{parseClassName:Y,getClassGroupId:W,getConflictingClassGroupIds:K,sortModifiers:U}=X,H=[],q=J.trim().split(Vy),L="";for(let V=q.length-1;V>=0;V-=1){let N=q[V],{isExternal:F,modifiers:k,hasImportantModifier:j,baseClassName:O,maybePostfixModifierPosition:M}=Y(N);if(F){L=N+(L.length>0?" "+L:L);continue}let v=!!M,x=W(v?O.substring(0,M):O);if(!x){if(!v){L=N+(L.length>0?" "+L:L);continue}if(x=W(O),!x){L=N+(L.length>0?" "+L:L);continue}v=!1}let E=k.length===0?"":k.length===1?k[0]:U(k).join(":"),I=j?E+"!":E,C=I+x;if(H.indexOf(C)>-1)continue;H.push(C);let h=K(x,v);for(let m=0;m<h.length;++m){let R=h[m];H.push(I+R)}L=N+(L.length>0?" "+L:L)}return L},Ny=(...J)=>{let X=0,Y,W,K="";while(X<J.length)if(Y=J[X++]){if(W=pT(Y))K&&(K+=" "),K+=W}return K},pT=(J)=>{if(typeof J==="string")return J;let X,Y="";for(let W=0;W<J.length;W++)if(J[W]){if(X=pT(J[W]))Y&&(Y+=" "),Y+=X}return Y},ky=(J,...X)=>{let Y,W,K,U,H=(L)=>{let V=X.reduce((N,F)=>F(N),J());return Y=Ly(V),W=Y.cache.get,K=Y.cache.set,U=q,q(L)},q=(L)=>{let V=W(L);if(V)return V;let N=Fy(L,Y);return K(L,N),N};return U=H,(...L)=>U(Ny(...L))},jy=[],Rw=(J)=>{let X=(Y)=>Y[J]||jy;return X.isThemeGetter=!0,X},cT=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lT=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ay=/^\d+\/\d+$/,My=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Oy=/\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$/,Dy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ty=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,NZ=(J)=>Ay.test(J),V1=(J)=>!!J&&!Number.isNaN(Number(J)),r4=(J)=>!!J&&Number.isInteger(Number(J)),WB=(J)=>J.endsWith("%")&&V1(J.slice(0,-1)),g6=(J)=>My.test(J),Ey=()=>!0,vy=(J)=>Oy.test(J)&&!Dy.test(J),iT=()=>!1,hy=(J)=>Ty.test(J),Py=(J)=>xy.test(J),Iy=(J)=>!g0(J)&&!f0(J),Cy=(J)=>kZ(J,sT,iT),g0=(J)=>cT.test(J),U9=(J)=>kZ(J,oT,vy),KB=(J)=>kZ(J,gy,V1),gT=(J)=>kZ(J,rT,iT),Sy=(J)=>kZ(J,aT,Py),UW=(J)=>kZ(J,nT,hy),f0=(J)=>lT.test(J),Q$=(J)=>jZ(J,oT),by=(J)=>jZ(J,fy),fT=(J)=>jZ(J,rT),yy=(J)=>jZ(J,sT),Ry=(J)=>jZ(J,aT),_W=(J)=>jZ(J,nT,!0),kZ=(J,X,Y)=>{let W=cT.exec(J);if(W){if(W[1])return X(W[1]);return Y(W[2])}return!1},jZ=(J,X,Y=!1)=>{let W=lT.exec(J);if(W){if(W[1])return X(W[1]);return Y}return!1},rT=(J)=>J==="position"||J==="percentage",aT=(J)=>J==="image"||J==="url",sT=(J)=>J==="length"||J==="size"||J==="bg-size",oT=(J)=>J==="length",gy=(J)=>J==="number",fy=(J)=>J==="family-name",nT=(J)=>J==="shadow";var my=()=>{let J=Rw("color"),X=Rw("font"),Y=Rw("text"),W=Rw("font-weight"),K=Rw("tracking"),U=Rw("leading"),H=Rw("breakpoint"),q=Rw("container"),L=Rw("spacing"),V=Rw("radius"),N=Rw("shadow"),F=Rw("inset-shadow"),k=Rw("text-shadow"),j=Rw("drop-shadow"),O=Rw("blur"),M=Rw("perspective"),v=Rw("aspect"),x=Rw("ease"),E=Rw("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],h=()=>[...C(),f0,g0],m=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],S=()=>[f0,g0,L],c=()=>[NZ,"full","auto",...S()],d=()=>[r4,"none","subgrid",f0,g0],w0=()=>["auto",{span:["full",r4,f0,g0]},r4,f0,g0],t=()=>[r4,"auto",f0,g0],u=()=>["auto","min","max","fr",f0,g0],Q0=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],r=()=>["start","end","center","stretch","center-safe","end-safe"],e=()=>["auto",...S()],o=()=>[NZ,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],g=()=>[J,f0,g0],X0=()=>[...C(),fT,gT,{position:[f0,g0]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z0=()=>["auto","cover","contain",yy,Cy,{size:[f0,g0]}],U0=()=>[WB,Q$,U9],J0=()=>["","none","full",V,f0,g0],L0=()=>["",V1,Q$,U9],S0=()=>["solid","dashed","dotted","double"],V0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_0=()=>[V1,WB,fT,gT],A0=()=>["","none",O,f0,g0],r0=()=>["none",V1,f0,g0],n0=()=>["none",V1,f0,g0],n=()=>[V1,f0,g0],R0=()=>[NZ,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[g6],breakpoint:[g6],color:[Ey],container:[g6],"drop-shadow":[g6],ease:["in","out","in-out"],font:[Iy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[g6],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[g6],shadow:[g6],spacing:["px",V1],text:[g6],"text-shadow":[g6],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",NZ,g0,f0,v]}],container:["container"],columns:[{columns:[V1,g0,f0,q]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:h()}],overflow:[{overflow:m()}],"overflow-x":[{"overflow-x":m()}],"overflow-y":[{"overflow-y":m()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:c()}],"inset-x":[{"inset-x":c()}],"inset-y":[{"inset-y":c()}],start:[{start:c()}],end:[{end:c()}],top:[{top:c()}],right:[{right:c()}],bottom:[{bottom:c()}],left:[{left:c()}],visibility:["visible","invisible","collapse"],z:[{z:[r4,"auto",f0,g0]}],basis:[{basis:[NZ,"full","auto",q,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[V1,NZ,"auto","initial","none",g0]}],grow:[{grow:["",V1,f0,g0]}],shrink:[{shrink:["",V1,f0,g0]}],order:[{order:[r4,"first","last","none",f0,g0]}],"grid-cols":[{"grid-cols":d()}],"col-start-end":[{col:w0()}],"col-start":[{"col-start":t()}],"col-end":[{"col-end":t()}],"grid-rows":[{"grid-rows":d()}],"row-start-end":[{row:w0()}],"row-start":[{"row-start":t()}],"row-end":[{"row-end":t()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":u()}],"auto-rows":[{"auto-rows":u()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...Q0(),"normal"]}],"justify-items":[{"justify-items":[...r(),"normal"]}],"justify-self":[{"justify-self":["auto",...r()]}],"align-content":[{content:["normal",...Q0()]}],"align-items":[{items:[...r(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...r(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q0()}],"place-items":[{"place-items":[...r(),"baseline"]}],"place-self":[{"place-self":["auto",...r()]}],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:e()}],mx:[{mx:e()}],my:[{my:e()}],ms:[{ms:e()}],me:[{me:e()}],mt:[{mt:e()}],mr:[{mr:e()}],mb:[{mb:e()}],ml:[{ml:e()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:o()}],w:[{w:[q,"screen",...o()]}],"min-w":[{"min-w":[q,"screen","none",...o()]}],"max-w":[{"max-w":[q,"screen","none","prose",{screen:[H]},...o()]}],h:[{h:["screen","lh",...o()]}],"min-h":[{"min-h":["screen","lh","none",...o()]}],"max-h":[{"max-h":["screen","lh",...o()]}],"font-size":[{text:["base",Y,Q$,U9]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[W,f0,KB]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",WB,g0]}],"font-family":[{font:[by,g0,X]}],"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:[K,f0,g0]}],"line-clamp":[{"line-clamp":[V1,"none",f0,KB]}],leading:[{leading:[U,...S()]}],"list-image":[{"list-image":["none",f0,g0]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f0,g0]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...S0(),"wavy"]}],"text-decoration-thickness":[{decoration:[V1,"from-font","auto",f0,U9]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[V1,"auto",f0,g0]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f0,g0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f0,g0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X0()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:z0()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},r4,f0,g0],radial:["",f0,g0],conic:[r4,f0,g0]},Ry,Sy]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:U0()}],"gradient-via-pos":[{via:U0()}],"gradient-to-pos":[{to:U0()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:J0()}],"rounded-s":[{"rounded-s":J0()}],"rounded-e":[{"rounded-e":J0()}],"rounded-t":[{"rounded-t":J0()}],"rounded-r":[{"rounded-r":J0()}],"rounded-b":[{"rounded-b":J0()}],"rounded-l":[{"rounded-l":J0()}],"rounded-ss":[{"rounded-ss":J0()}],"rounded-se":[{"rounded-se":J0()}],"rounded-ee":[{"rounded-ee":J0()}],"rounded-es":[{"rounded-es":J0()}],"rounded-tl":[{"rounded-tl":J0()}],"rounded-tr":[{"rounded-tr":J0()}],"rounded-br":[{"rounded-br":J0()}],"rounded-bl":[{"rounded-bl":J0()}],"border-w":[{border:L0()}],"border-w-x":[{"border-x":L0()}],"border-w-y":[{"border-y":L0()}],"border-w-s":[{"border-s":L0()}],"border-w-e":[{"border-e":L0()}],"border-w-t":[{"border-t":L0()}],"border-w-r":[{"border-r":L0()}],"border-w-b":[{"border-b":L0()}],"border-w-l":[{"border-l":L0()}],"divide-x":[{"divide-x":L0()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L0()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...S0(),"hidden","none"]}],"divide-style":[{divide:[...S0(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...S0(),"none","hidden"]}],"outline-offset":[{"outline-offset":[V1,f0,g0]}],"outline-w":[{outline:["",V1,Q$,U9]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",N,_W,UW]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",F,_W,UW]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:L0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[V1,U9]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":L0()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",k,_W,UW]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[V1,f0,g0]}],"mix-blend":[{"mix-blend":[...V0(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":V0()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[V1]}],"mask-image-linear-from-pos":[{"mask-linear-from":_0()}],"mask-image-linear-to-pos":[{"mask-linear-to":_0()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":_0()}],"mask-image-t-to-pos":[{"mask-t-to":_0()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":_0()}],"mask-image-r-to-pos":[{"mask-r-to":_0()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":_0()}],"mask-image-b-to-pos":[{"mask-b-to":_0()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":_0()}],"mask-image-l-to-pos":[{"mask-l-to":_0()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":_0()}],"mask-image-x-to-pos":[{"mask-x-to":_0()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":_0()}],"mask-image-y-to-pos":[{"mask-y-to":_0()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[f0,g0]}],"mask-image-radial-from-pos":[{"mask-radial-from":_0()}],"mask-image-radial-to-pos":[{"mask-radial-to":_0()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[V1]}],"mask-image-conic-from-pos":[{"mask-conic-from":_0()}],"mask-image-conic-to-pos":[{"mask-conic-to":_0()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X0()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:z0()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f0,g0]}],filter:[{filter:["","none",f0,g0]}],blur:[{blur:A0()}],brightness:[{brightness:[V1,f0,g0]}],contrast:[{contrast:[V1,f0,g0]}],"drop-shadow":[{"drop-shadow":["","none",j,_W,UW]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",V1,f0,g0]}],"hue-rotate":[{"hue-rotate":[V1,f0,g0]}],invert:[{invert:["",V1,f0,g0]}],saturate:[{saturate:[V1,f0,g0]}],sepia:[{sepia:["",V1,f0,g0]}],"backdrop-filter":[{"backdrop-filter":["","none",f0,g0]}],"backdrop-blur":[{"backdrop-blur":A0()}],"backdrop-brightness":[{"backdrop-brightness":[V1,f0,g0]}],"backdrop-contrast":[{"backdrop-contrast":[V1,f0,g0]}],"backdrop-grayscale":[{"backdrop-grayscale":["",V1,f0,g0]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V1,f0,g0]}],"backdrop-invert":[{"backdrop-invert":["",V1,f0,g0]}],"backdrop-opacity":[{"backdrop-opacity":[V1,f0,g0]}],"backdrop-saturate":[{"backdrop-saturate":[V1,f0,g0]}],"backdrop-sepia":[{"backdrop-sepia":["",V1,f0,g0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f0,g0]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[V1,"initial",f0,g0]}],ease:[{ease:["linear","initial",x,f0,g0]}],delay:[{delay:[V1,f0,g0]}],animate:[{animate:["none",E,f0,g0]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,f0,g0]}],"perspective-origin":[{"perspective-origin":h()}],rotate:[{rotate:r0()}],"rotate-x":[{"rotate-x":r0()}],"rotate-y":[{"rotate-y":r0()}],"rotate-z":[{"rotate-z":r0()}],scale:[{scale:n0()}],"scale-x":[{"scale-x":n0()}],"scale-y":[{"scale-y":n0()}],"scale-z":[{"scale-z":n0()}],"scale-3d":["scale-3d"],skew:[{skew:n()}],"skew-x":[{"skew-x":n()}],"skew-y":[{"skew-y":n()}],transform:[{transform:[f0,g0,"","none","gpu","cpu"]}],"transform-origin":[{origin:h()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:R0()}],"translate-x":[{"translate-x":R0()}],"translate-y":[{"translate-y":R0()}],"translate-z":[{"translate-z":R0()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f0,g0]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",f0,g0]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[V1,Q$,U9,KB]}],stroke:[{stroke:["none",...g()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var tT=ky(my);function D1(...J){return tT(WW(J))}var eT=p(h1(),1),uy=KW("focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border dark:bg-input/20 dark:bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",destructive:"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function f6({className:J,variant:X="default",size:Y="default",...W}){return eT.jsxDEV(ZQ,{"data-slot":"button",className:D1(uy({variant:X,size:Y,className:J})),...W},void 0,!1,void 0,this)}var zx=p(h1(),1);function wx({className:J,...X}){return zx.jsxDEV("kbd",{"data-slot":"kbd",className:D1("bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-xs px-1 font-sans text-[0.625rem] font-medium [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none",J),...X},void 0,!1,void 0,this)}var HW=p(Y0(),1);var Zx=(J)=>J.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),py=(J)=>J.replace(/^([A-Z])|[\s-_]+(\w)/g,(X,Y,W)=>W?W.toUpperCase():Y.toLowerCase()),_B=(J)=>{let X=py(J);return X.charAt(0).toUpperCase()+X.slice(1)},qW=(...J)=>J.filter((X,Y,W)=>{return Boolean(X)&&X.trim()!==""&&W.indexOf(X)===Y}).join(" ").trim(),Jx=(J)=>{for(let X in J)if(X.startsWith("aria-")||X==="role"||X==="title")return!0};var W$=p(Y0(),1);var Xx={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 $x=W$.forwardRef(({color:J="currentColor",size:X=24,strokeWidth:Y=2,absoluteStrokeWidth:W,className:K="",children:U,iconNode:H,...q},L)=>W$.createElement("svg",{ref:L,...Xx,width:X,height:X,stroke:J,strokeWidth:W?Number(Y)*24/Number(X):Y,className:qW("lucide",K),...!U&&!Jx(q)&&{"aria-hidden":"true"},...q},[...H.map(([V,N])=>W$.createElement(V,N)),...Array.isArray(U)?U:[U]]));var a4=(J,X)=>{let Y=HW.forwardRef(({className:W,...K},U)=>HW.createElement($x,{ref:U,iconNode:X,className:qW(`lucide-${Zx(_B(J))}`,`lucide-${J}`,W),...K}));return Y.displayName=_B(J),Y};var cy=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],K$=a4("arrow-left",cy);var ly=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],U$=a4("arrow-right",ly);var iy=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],s4=a4("loader-circle",iy);var ry=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],q9=a4("x",ry);var y2=p(Y0(),1);var BW=p(Y0(),1),qB=768;function Yx(){let[J,X]=BW.useState(void 0);return BW.useEffect(()=>{let Y=window.matchMedia(`(max-width: ${qB-1}px)`),W=()=>{X(window.innerWidth<qB)};return Y.addEventListener("change",W),X(window.innerWidth<qB),()=>Y.removeEventListener("change",W)},[]),!!J}var ay=p(h1(),1);var sy=p(h1(),1);var b2=p(h1(),1);function Gx({...J}){return b2.jsxDEV(o8.Root,{"data-slot":"sheet",...J},void 0,!1,void 0,this)}function oy({...J}){return b2.jsxDEV(o8.Portal,{"data-slot":"sheet-portal",...J},void 0,!1,void 0,this)}function ny({className:J,...X}){return b2.jsxDEV(o8.Backdrop,{"data-slot":"sheet-overlay",className:D1("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",J),...X},void 0,!1,void 0,this)}function Qx({className:J,children:X,side:Y="right",showCloseButton:W=!0,...K}){return b2.jsxDEV(oy,{children:[b2.jsxDEV(ny,{},void 0,!1,void 0,this),b2.jsxDEV(o8.Popup,{"data-slot":"sheet-content","data-side":Y,className:D1("bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",J),...K,children:[X,W&&b2.jsxDEV(o8.Close,{"data-slot":"sheet-close",render:b2.jsxDEV(f6,{variant:"ghost",className:"absolute top-4 right-4",size:"icon-sm"},void 0,!1,void 0,this),children:[b2.jsxDEV(q9,{},void 0,!1,void 0,this),b2.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 Wx({className:J,...X}){return b2.jsxDEV("div",{"data-slot":"sheet-header",className:D1("gap-1.5 p-6 flex flex-col",J),...X},void 0,!1,void 0,this)}function Kx({className:J,...X}){return b2.jsxDEV(o8.Title,{"data-slot":"sheet-title",className:D1("text-foreground text-sm font-medium",J),...X},void 0,!1,void 0,this)}function Ux({className:J,...X}){return b2.jsxDEV(o8.Description,{"data-slot":"sheet-description",className:D1("text-muted-foreground text-xs/relaxed",J),...X},void 0,!1,void 0,this)}var ty=p(h1(),1);var m6=p(h1(),1);function ey({delay:J=0,...X}){return m6.jsxDEV(t8.Provider,{"data-slot":"tooltip-provider",delay:J,...X},void 0,!1,void 0,this)}function _x({...J}){return m6.jsxDEV(ey,{children:m6.jsxDEV(t8.Root,{"data-slot":"tooltip",...J},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function qx({...J}){return m6.jsxDEV(t8.Trigger,{"data-slot":"tooltip-trigger",...J},void 0,!1,void 0,this)}function Hx({className:J,side:X="top",sideOffset:Y=4,align:W="center",alignOffset:K=0,children:U,...H}){return m6.jsxDEV(t8.Portal,{children:m6.jsxDEV(t8.Positioner,{align:W,alignOffset:K,side:X,sideOffset:Y,className:"isolate z-50",children:m6.jsxDEV(t8.Popup,{"data-slot":"tooltip-content",className:D1("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-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 rounded-md px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-md bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)",J),...H,children:[U,m6.jsxDEV(t8.Arrow,{className:"size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Lw=p(h1(),1),wR="sidebar_state",zR=604800,ZR="16rem",JR="18rem",XR="3rem",$R="b",Bx=y2.createContext(null);function Lx(){let J=y2.useContext(Bx);if(!J)throw Error("useSidebar must be used within a SidebarProvider.");return J}function Vx({defaultOpen:J=!0,open:X,onOpenChange:Y,className:W,style:K,children:U,...H}){let q=Yx(),[L,V]=y2.useState(!1),[N,F]=y2.useState(J),k=X??N,j=y2.useCallback((x)=>{let E=typeof x==="function"?x(k):x;if(Y)Y(E);else F(E);document.cookie=`${wR}=${E}; path=/; max-age=${zR}`},[Y,k]),O=y2.useCallback(()=>{return q?V((x)=>!x):j((x)=>!x)},[q,j,V]);y2.useEffect(()=>{let x=(E)=>{if(E.key===$R&&(E.metaKey||E.ctrlKey))E.preventDefault(),O()};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[O]);let M=k?"expanded":"collapsed",v=y2.useMemo(()=>({state:M,open:k,setOpen:j,isMobile:q,openMobile:L,setOpenMobile:V,toggleSidebar:O}),[M,k,j,q,L,V,O]);return Lw.jsxDEV(Bx.Provider,{value:v,children:Lw.jsxDEV("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":ZR,"--sidebar-width-icon":XR,...K},className:D1("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",W),...H,children:U},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Fx({side:J="left",variant:X="sidebar",collapsible:Y="offExamples",className:W,children:K,...U}){let{isMobile:H,state:q,openMobile:L,setOpenMobile:V}=Lx();if(Y==="none")return Lw.jsxDEV("div",{"data-slot":"sidebar",className:D1("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",W),...U,children:K},void 0,!1,void 0,this);if(H)return Lw.jsxDEV(Gx,{open:L,onOpenChange:V,...U,children:Lw.jsxDEV(Qx,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":JR},side:J,children:[Lw.jsxDEV(Wx,{className:"sr-only",children:[Lw.jsxDEV(Kx,{children:"Sidebar"},void 0,!1,void 0,this),Lw.jsxDEV(Ux,{children:"Displays the mobile sidebar."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Lw.jsxDEV("div",{className:"flex h-full w-full flex-col",children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return Lw.jsxDEV("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":q,"data-collapsible":q==="collapsed"?Y:"","data-variant":X,"data-side":J,"data-slot":"sidebar",children:[Lw.jsxDEV("div",{"data-slot":"sidebar-gap",className:D1("transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent","group-data-[collapsible=offExamples]:w-0","group-data-[side=right]:rotate-180",X==="floating"||X==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")},void 0,!1,void 0,this),Lw.jsxDEV("div",{"data-slot":"sidebar-container",className:D1("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",J==="left"?"left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]",X==="floating"||X==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",W),...U,children:Lw.jsxDEV("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 flex size-full flex-col",children:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Nx({className:J,...X}){return Lw.jsxDEV("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:D1("gap-2 p-2 flex flex-col",J),...X},void 0,!1,void 0,this)}function kx({className:J,...X}){return Lw.jsxDEV("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:D1("no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",J),...X},void 0,!1,void 0,this)}function jx({className:J,...X}){return Lw.jsxDEV("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:D1("px-2 py-1 relative flex w-full min-w-0 flex-col",J),...X},void 0,!1,void 0,this)}function Ax({className:J,render:X,...Y}){return wB({defaultTagName:"div",props:T5({className:D1("text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",J)},Y),render:X,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function Mx({className:J,...X}){return Lw.jsxDEV("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:D1("text-xs w-full",J),...X},void 0,!1,void 0,this)}function Ox({className:J,...X}){return Lw.jsxDEV("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:D1("gap-px flex w-full min-w-0 flex-col",J),...X},void 0,!1,void 0,this)}var YR=KW("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Dx({render:J,isActive:X=!1,variant:Y="default",size:W="default",tooltip:K,className:U,...H}){let{isMobile:q,state:L}=Lx(),V=wB({defaultTagName:"button",props:T5({className:D1(YR({variant:Y,size:W}),U)},H),render:!K?J:qx,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:W,active:X}});if(!K)return V;if(typeof K==="string")K={children:K};return Lw.jsxDEV(_x,{children:[V,Lw.jsxDEV(Hx,{side:"right",align:"center",hidden:L!=="collapsed"||q,...K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var xx=p(h1(),1);function Tx({className:J,...X}){return xx.jsxDEV(s4,{role:"status","aria-label":"Loading",className:D1("size-4 animate-spin",J),...X},void 0,!1,void 0,this)}var H9=p(h1(),1);function Ex({...J}){return H9.jsxDEV(C6.Root,{"data-slot":"context-menu",...J},void 0,!1,void 0,this)}function vx({className:J,...X}){return H9.jsxDEV(C6.Trigger,{"data-slot":"context-menu-trigger",className:D1("select-none",J),...X},void 0,!1,void 0,this)}function hx({className:J,align:X="start",alignOffset:Y=4,side:W="right",sideOffset:K=0,...U}){return H9.jsxDEV(C6.Portal,{children:H9.jsxDEV(C6.Positioner,{className:"isolate z-50 outline-none",align:X,alignOffset:Y,side:W,sideOffset:K,children:H9.jsxDEV(C6.Popup,{"data-slot":"context-menu-content",className:D1("data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 dark z-50 max-h-(--available-height) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none",J),...U},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function HB({className:J,inset:X,variant:Y="default",...W}){return H9.jsxDEV(C6.Item,{"data-slot":"context-menu-item","data-inset":X,"data-variant":Y,className:D1("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 not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 group/context-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",J),...W},void 0,!1,void 0,this)}var B9=p(h1(),1);function Px({story:J,...X}){let[Y]=i4(),{activeTab:W,setActiveTab:K}=FZ(),U=ET(),H=hT(),q=(V)=>{console.info("[TabButton] open",{story:J.id,state:V});let N=Y.find((F)=>F.path===J.id);if(N){console.info("[TabButton] focusing existing tab",N.id),K(N.id);return}if(W?.temporary){console.info("[TabButton] replacing temporary tab",W.id),H(W.id,{name:J.name,path:J.id,temporary:V==="temporary"});return}U({name:J.name,path:J.id,temporary:V==="temporary"})},L=()=>{console.info("[TabButton] open in new tab",{story:J.id}),U({name:J.name,path:J.id,temporary:!1})};return B9.jsxDEV(Ex,{children:[B9.jsxDEV(vx,{render:B9.jsxDEV(Dx,{onClick:()=>q("temporary"),onDoubleClick:()=>q("permanent"),...X},void 0,!1,void 0,this)},void 0,!1,void 0,this),B9.jsxDEV(hx,{children:[B9.jsxDEV(HB,{onSelect:(V)=>{V.preventDefault?.(),V.stopPropagation?.(),console.info("[TabButton] context open"),q("permanent")},onClick:(V)=>{V.preventDefault(),V.stopPropagation(),console.info("[TabButton] context open click"),q("permanent")},children:"Open"},void 0,!1,void 0,this),B9.jsxDEV(HB,{onSelect:(V)=>{V.preventDefault?.(),V.stopPropagation?.(),console.info("[TabButton] context open in new tab"),L()},onClick:(V)=>{V.preventDefault(),V.stopPropagation(),console.info("[TabButton] context open in new tab click"),L()},children:"Open in New Tab"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var iw=p(h1(),1);function Cx(){let{data:J,isLoading:X,error:Y}=_q({queryKey:["stories"],queryFn:PA}),W=PT();return Ix.useEffect(()=>{if(J)W(J)},[J,W]),iw.jsxDEV(Fx,{children:[iw.jsxDEV(Nx,{children:iw.jsxDEV(f6,{variant:"outline",size:"lg",className:"flex justify-between gap-1 w-full text-zinc-500 font-normal",children:[iw.jsxDEV("span",{children:"Search..."},void 0,!1,void 0,this),iw.jsxDEV(wx,{children:"⌘ K"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),iw.jsxDEV(kx,{children:[X&&iw.jsxDEV("div",{className:"w-full py-8 flex items-center justify-center",children:iw.jsxDEV(Tx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&iw.jsxDEV("div",{className:"w-full py-8 flex flex-col items-center justify-center text-center gap-2",children:[iw.jsxDEV("p",{className:"text-xs text-destructive font-medium",children:"Failed to load stories."},void 0,!1,void 0,this),iw.jsxDEV("p",{className:"text-xs text-muted-foreground",children:"Check if your server is running and accessible."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J&&Object.keys(J).map((K)=>iw.jsxDEV(jx,{children:[iw.jsxDEV(Ax,{children:K},void 0,!1,void 0,this),iw.jsxDEV(Mx,{children:iw.jsxDEV(Ox,{children:J[K]?.map((U)=>iw.jsxDEV(Px,{story:{id:U.path,name:U.name},children:iw.jsxDEV("span",{children:U.name},void 0,!1,void 0,this)},U.path,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},K,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var LW=p(Y0(),1);var o4=p(h1(),1);function Sx(){let[J]=i4(),X=QW(),Y=LW.useRef([]),W=15,K=LW.useMemo(()=>{console.info("[TabContent] recompute visited paths",{tabs:J.map((q)=>q.path),cache:Y.current});let U=[...Y.current],H=!1;for(let q of J)if(!U.includes(q.path))console.info("[TabContent] adding path to cache",q.path),U.push(q.path),H=!0;if(U.length>15)U.splice(0,U.length-15),H=!0;if(H)return Y.current=U,[...U];return Y.current},[J]);return o4.jsxDEV(o4.Fragment,{children:J.map((U)=>o4.jsxDEV(R6.Panel,{value:U.id,className:"flex-1 min-h-0 data-[hidden]:hidden",keepMounted:!0,children:o4.jsxDEV(GR,{activePath:U.path,title:U.name,onInteract:X,visitedPaths:K},void 0,!1,void 0,this)},U.id,!1,void 0,this))},void 0,!1,void 0,this)}function GR({activePath:J,title:X,onInteract:Y,visitedPaths:W}){return o4.jsxDEV("div",{className:"w-full h-full relative",children:W.map((K)=>o4.jsxDEV("iframe",{src:`/iframe/${K}`,className:D1("w-full h-full border-none bg-white absolute inset-0",K===J?"visible opacity-100":"invisible opacity-0 pointer-events-none"),title:X,onPointerDown:()=>{console.info("[TabContent] iframe interact",{path:J}),Y(J)}},K,!1,void 0,this))},void 0,!1,void 0,this)}var bx=p(Y0(),1);var W8=p(h1(),1);function yx(){let{activeTab:J}=FZ(),[X,Y]=i4(),[W]=Gw(l4),[K]=Gw(QB),U=QW(),H=vT(),q=J?W[J.id]:null,L=q?.canGoBack()??!1,V=q?(q.location.state?.__TSR_index??0)<q.length-1:!1;return bx.useEffect(()=>{if(!J||!q)return;let N=(k)=>{if(!K)return null;for(let j of Object.values(K))for(let O of j)if(O.path===k)return O.name;return null};return q.subscribe(({location:k})=>{let j=N(k.href);Y((O)=>O.map((M)=>M.id===J.id?{...M,path:k.href,name:j??M.name}:M))})},[J,q,K,Y]),W8.jsxDEV(R6.List,{className:"border-b h-8 bg-sidebar flex w-full",children:[X.length>0&&W8.jsxDEV("div",{className:"flex h-full items-center px-1.5 gap-0.5 border-r",children:[W8.jsxDEV(f6,{variant:"ghost",size:"icon-sm",disabled:!L,onClick:()=>q?.back(),children:W8.jsxDEV(K$,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W8.jsxDEV(f6,{variant:"ghost",size:"icon-sm",disabled:!V,onClick:()=>q?.forward(),children:W8.jsxDEV(U$,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.map((N)=>W8.jsxDEV(R6.Tab,{nativeButton:!1,render:W8.jsxDEV("div",{},void 0,!1,void 0,this),value:N.id,className:"px-6 h-8 border-r text-xs flex items-center justify-center relative group data-[temporary=true]:italic select-none","data-temporary":N.temporary,onClick:()=>{if(N.temporary)U(N.id)},children:[N.name,W8.jsxDEV(f6,{size:"icon-xs",variant:"ghost",className:"absolute right-1 invisible opacity-0 group-hover:visible group-hover:opacity-100 transition-opacity duration-200 p-0",onClick:(F)=>{F.stopPropagation(),H(N.id)},children:W8.jsxDEV(q9,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},N.id,!0,void 0,this))]},void 0,!0,void 0,this)}var n4=p(h1(),1);function gx(){let{activeTab:J,setActiveTab:X}=FZ(),[Y]=i4();IT();let W=J?.id??null;return Rx.useEffect(()=>{let K=Y[0];if(K&&!J)X(K.id)},[X,J,Y]),n4.jsxDEV(Kq,{client:gY,children:n4.jsxDEV(Vx,{children:[n4.jsxDEV(Cx,{},void 0,!1,void 0,this),n4.jsxDEV("main",{className:"flex flex-col w-full h-screen overflow-hidden",children:n4.jsxDEV(R6.Root,{className:"flex flex-col flex-1 min-h-0",value:W,onValueChange:(K)=>X(K),children:[n4.jsxDEV(yx,{},void 0,!1,void 0,this),n4.jsxDEV(Sx,{},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,!1,void 0,this)}var dx=p(h1(),1),mx=document.getElementById("root");if(!mx)throw Error("Root element not found");function QR(){let J=0,X=10;function Y(){let K=document.querySelectorAll("iframe");K.forEach((U)=>{let H=U.src,q=new URL(H);q.searchParams.set("_hmr",Date.now().toString()),U.src=q.toString()}),console.log(`[HMR] Refreshed ${K.length} iframe(s)`),gY.invalidateQueries({queryKey:["stories"]}),console.log("[HMR] Invalidated stories query")}function W(){let K=new WebSocket(`ws://${location.host}/__hmr`);K.onopen=()=>{console.log("[HMR] Connected"),J=0},K.onmessage=(U)=>{if(JSON.parse(U.data).type==="reload")console.log("[HMR] Reloading iframes..."),Y()},K.onclose=()=>{if(console.log("[HMR] Disconnected"),J<X)J++,setTimeout(W,1000*Math.min(J,5))},K.onerror=()=>K.close()}W()}fx.createRoot(mx).render(dx.jsxDEV(gx,{},void 0,!1,void 0,this));QR();
263
+
264
+ //# debugId=12DABB31D2AAFA7C64756E2164756E21
265
+ //# sourceMappingURL=chunk-9ya1h99m.js.map