@weaverclub/render 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/chunk-we1qr50v.js +265 -0
- package/dist/cli/{chunk-mqkenycc.js.map → chunk-we1qr50v.js.map} +37 -37
- package/dist/cli/{chunk-4vtgvy4t.css → chunk-zgyeg8hc.css} +1 -1
- package/dist/cli/entrypoint.mjs +2 -2
- package/dist/cli/index.html +1 -1
- package/package.json +1 -1
- package/dist/cli/chunk-mqkenycc.js +0 -265
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
var qP=Object.create;var{getPrototypeOf:BP,defineProperty:i_,getOwnPropertyNames:LP}=Object;var VP=Object.prototype.hasOwnProperty;var p=(J,X,Y)=>{Y=J!=null?qP(BP(J)):{};let W=X||!J||!J.__esModule?i_(Y,"default",{value:J,enumerable:!0}):Y;for(let K of LP(J))if(!VP.call(W,K))i_(W,K,{get:()=>J[K],enumerable:!0});return W};var f8=(J,X)=>()=>(X||J((X={exports:{}}).exports,X),X.exports);var qz=(J,X)=>{for(var Y in X)i_(J,Y,{get:X[Y],enumerable:!0,configurable:!0,set:(W)=>X[Y]=()=>W})};var ij=f8((FP)=>{(function(){function J(){if(C=!1,S){var r=FP.unstable_now();w0=r;var e=!0;try{w:{E=!1,I&&(I=!1,m(c),c=-1),x=!0;var o=h;try{z:{U(r);for(M=Y(k);M!==null&&!(M.expirationTime>r&&H());){var g=M.callback;if(typeof g==="function"){M.callback=null,h=M.priorityLevel;var X0=g(M.expirationTime<=r);if(r=FP.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(q,P.startTime-r),e=!1}}break w}finally{M=null,h=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 q(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(q,e.startTime-r)}}function H(){return C?!0:FP.unstable_now()-w0<d?!1:!0}function L(r,e){c=v(function(){r(FP.unstable_now())},e)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),FP.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var N=performance;FP.unstable_now=function(){return N.now()}}else{var F=Date,V=F.now();FP.unstable_now=function(){return F.now()-V}}var k=[],j=[],O=1,M=null,h=3,x=!1,E=!1,I=!1,C=!1,v=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(){v(J,0)};FP.unstable_IdlePriority=5,FP.unstable_ImmediatePriority=1,FP.unstable_LowPriority=4,FP.unstable_NormalPriority=3,FP.unstable_Profiling=null,FP.unstable_UserBlockingPriority=2,FP.unstable_cancelCallback=function(r){r.callback=null},FP.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},FP.unstable_getCurrentPriorityLevel=function(){return h},FP.unstable_next=function(r){switch(h){case 1:case 2:case 3:var e=3;break;default:e=h}var o=h;h=e;try{return r()}finally{h=o}},FP.unstable_requestPaint=function(){C=!0},FP.unstable_runWithPriority=function(r,e){switch(r){case 1:case 2:case 3:case 4:case 5:break;default:r=3}var o=h;h=r;try{return e()}finally{h=o}},FP.unstable_scheduleCallback=function(r,e,o){var g=FP.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(q,o-g))):(r.sortIndex=X0,X(k,r),E||x||(E=!0,S||(S=!0,t()))),r},FP.unstable_shouldYield=H,FP.unstable_wrapCallback=function(r){var e=h;return function(){var o=h;h=e;try{return r.apply(this,arguments)}finally{h=o}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var G0=f8((NP,MY)=>{(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 q(){}function H(T){return""+T}function L(T){try{H(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),H(T)}}function N(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:N(T.type)||"Memo";case A0:s=T._payload,T=T._init;try{return N(T(s))}catch(K0){}}return null}function F(T){if(T===X0)return"<>";if(typeof T==="object"&&T!==null&&T.$$typeof===A0)return"<...>";try{var s=N(T);return s?"<"+s+">":"<...>"}catch(K0){return"<...>"}}function V(){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(){v0||(v0=!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=N(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 h(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=h(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 v(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(q,q):(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===""?"."+v(u0,0):N0;return H0(T0)?(K0="",$1!=null&&(K0=$1.replace(D1,"$&/")+"/"),R(T0,s,K0,"",function(vw){return vw})):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(D1,"$&/")+"/")+$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+":",H0(T))for(var d0=0;d0<T.length;d0++)N0=T[d0],a0=$1+v(N0,d0),u0+=R(N0,s,K0,a0,T0);else if(d0=X(T),typeof d0==="function")for(d0===T.entries&&(q1||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),q1=!0),T=d0.call(T),d0=0;!(N0=T.next()).done;)N0=N0.value,a0=$1+v(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=(MY&&MY[s]).call(MY,"timers").setImmediate}catch(K0){zw=function(N0){Gw===!1&&(Gw=!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!==Lw-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. "),Lw=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 H0=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 v0,o0,x0={},l0=C0.react_stack_bottom_frame.bind(C0,k)(),y0=b0(F(k)),q1=!1,D1=/\/+/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)},Gw=!1,zw=null,Lw=0,Uw=!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}};NP.Activity=r0,NP.Children=N1,NP.Component=W,NP.Fragment=X0,NP.Profiler=z0,NP.PureComponent=U,NP.StrictMode=P,NP.Suspense=S0,NP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j0,NP.__COMPILER_RUNTIME=C0,NP.act=function(T){var s=j0.actQueue,K0=Lw;Lw++;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||Uw||(Uw=!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,vw){T0=!0,u0.then(function(Q2){if(Q0(s,K0),K0===0){try{e(N0),t(function(){return r(Q2,d0,vw)})}catch(s4){j0.thrownErrors.push(s4)}if(0<j0.thrownErrors.length){var K8=u(j0.thrownErrors);j0.thrownErrors.length=0,vw(K8)}}else d0(Q2)},function(Q2){Q0(s,K0),0<j0.thrownErrors.length?(Q2=u(j0.thrownErrors),j0.thrownErrors.length=0,vw(Q2)):vw(Q2)})}}}var $1=a0;if(Q0(s,K0),K0===0&&(e(N0),N0.length!==0&&J1(function(){T0||Uw||(Uw=!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,vw){T0=!0,K0===0?(j0.actQueue=N0,t(function(){return r($1,d0,vw)})):d0($1)}}},NP.cache=function(T){return function(){return T.apply(null,arguments)}},NP.cacheSignal=function(){return null},NP.captureOwnerStack=function(){var T=j0.getCurrentStack;return T===null?null:T()},NP.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=V()),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=h(T.type,T0,N0,a0,T._debugStack,T._debugTask);for(T0=2;T0<arguments.length;T0++)E(arguments[T0]);return N0},NP.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},NP.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 h(T,T0,N0,V(),d0?Error("react-stack-top-frame"):l0,d0?b0(F(T)):y0)},NP.createRef=function(){var T={current:null};return Object.seal(T),T},NP.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},NP.isValidElement=I,NP.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},NP.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},NP.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(q,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}},NP.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},NP.use=function(T){return d().use(T)},NP.useActionState=function(T,s,K0){return d().useActionState(T,s,K0)},NP.useCallback=function(T,s){return d().useCallback(T,s)},NP.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)},NP.useDebugValue=function(T,s){return d().useDebugValue(T,s)},NP.useDeferredValue=function(T,s){return d().useDeferredValue(T,s)},NP.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)},NP.useEffectEvent=function(T){return d().useEffectEvent(T)},NP.useId=function(){return d().useId()},NP.useImperativeHandle=function(T,s,K0){return d().useImperativeHandle(T,s,K0)},NP.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)},NP.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)},NP.useMemo=function(T,s){return d().useMemo(T,s)},NP.useOptimistic=function(T,s){return d().useOptimistic(T,s)},NP.useReducer=function(T,s,K0){return d().useReducer(T,s,K0)},NP.useRef=function(T){return d().useRef(T)},NP.useState=function(T){return d().useState(T)},NP.useSyncExternalStore=function(T,s,K0){return d().useSyncExternalStore(T,s,K0)},NP.useTransition=function(){return d().useTransition()},NP.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rj=f8((kP)=>{var r_=p(G0());(function(){function J(){}function X(F){return""+F}function Y(F,V,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:F,containerInfo:V,implementation:k}}function W(F,V){if(F==="font")return"";if(typeof V==="string")return V==="use-credentials"?V:""}function K(F){return F===null?"`null`":F===void 0?"`undefined`":F===""?"an empty string":'something with type "'+typeof F+'"'}function U(F){return F===null?"`null`":F===void 0?"`undefined`":F===""?"an empty string":typeof F==="string"?JSON.stringify(F):typeof F==="number"?"`"+F+"`":'something with type "'+typeof F+'"'}function q(){var F=N.H;return F===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.`),F}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H={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"),N=r_.__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"),kP.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,kP.createPortal=function(F,V){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!V||V.nodeType!==1&&V.nodeType!==9&&V.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(F,V,null,k)},kP.flushSync=function(F){var V=N.T,k=H.p;try{if(N.T=null,H.p=2,F)return F()}finally{N.T=V,H.p=k,H.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.")}},kP.preconnect=function(F,V){typeof F==="string"&&F?V!=null&&typeof V!=="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(V)):V!=null&&typeof V.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(V.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(F)),typeof F==="string"&&(V?(V=V.crossOrigin,V=typeof V==="string"?V==="use-credentials"?V:"":void 0):V=null,H.d.C(F,V))},kP.prefetchDNS=function(F){if(typeof F!=="string"||!F)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(F));else if(1<arguments.length){var V=arguments[1];typeof V==="object"&&V.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(V)):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(V))}typeof F==="string"&&H.d.D(F)},kP.preinit=function(F,V){if(typeof F==="string"&&F?V==null||typeof V!=="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(V)):V.as!=="style"&&V.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(V.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(F)),typeof F==="string"&&V&&typeof V.as==="string"){var k=V.as,j=W(k,V.crossOrigin),O=typeof V.integrity==="string"?V.integrity:void 0,M=typeof V.fetchPriority==="string"?V.fetchPriority:void 0;k==="style"?H.d.S(F,typeof V.precedence==="string"?V.precedence:void 0,{crossOrigin:j,integrity:O,fetchPriority:M}):k==="script"&&H.d.X(F,{crossOrigin:j,integrity:O,fetchPriority:M,nonce:typeof V.nonce==="string"?V.nonce:void 0})}},kP.preinitModule=function(F,V){var k="";if(typeof F==="string"&&F||(k+=" The `href` argument encountered was "+K(F)+"."),V!==void 0&&typeof V!=="object"?k+=" The `options` argument encountered was "+K(V)+".":V&&("as"in V)&&V.as!=="script"&&(k+=" The `as` option encountered was "+U(V.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=V&&typeof V.as==="string"?V.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,F)}if(typeof F==="string")if(typeof V==="object"&&V!==null){if(V.as==null||V.as==="script")k=W(V.as,V.crossOrigin),H.d.M(F,{crossOrigin:k,integrity:typeof V.integrity==="string"?V.integrity:void 0,nonce:typeof V.nonce==="string"?V.nonce:void 0})}else V==null&&H.d.M(F)},kP.preload=function(F,V){var k="";if(typeof F==="string"&&F||(k+=" The `href` argument encountered was "+K(F)+"."),V==null||typeof V!=="object"?k+=" The `options` argument encountered was "+K(V)+".":typeof V.as==="string"&&V.as||(k+=" The `as` option encountered was "+K(V.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 F==="string"&&typeof V==="object"&&V!==null&&typeof V.as==="string"){k=V.as;var j=W(k,V.crossOrigin);H.d.L(F,k,{crossOrigin:j,integrity:typeof V.integrity==="string"?V.integrity:void 0,nonce:typeof V.nonce==="string"?V.nonce:void 0,type:typeof V.type==="string"?V.type:void 0,fetchPriority:typeof V.fetchPriority==="string"?V.fetchPriority:void 0,referrerPolicy:typeof V.referrerPolicy==="string"?V.referrerPolicy:void 0,imageSrcSet:typeof V.imageSrcSet==="string"?V.imageSrcSet:void 0,imageSizes:typeof V.imageSizes==="string"?V.imageSizes:void 0,media:typeof V.media==="string"?V.media:void 0})}},kP.preloadModule=function(F,V){var k="";typeof F==="string"&&F||(k+=" The `href` argument encountered was "+K(F)+"."),V!==void 0&&typeof V!=="object"?k+=" The `options` argument encountered was "+K(V)+".":V&&("as"in V)&&typeof V.as!=="string"&&(k+=" The `as` option encountered was "+K(V.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 F==="string"&&(V?(k=W(V.as,V.crossOrigin),H.d.m(F,{as:typeof V.as==="string"&&V.as!=="script"?V.as:void 0,crossOrigin:k,integrity:typeof V.integrity==="string"?V.integrity:void 0})):H.d.m(F))},kP.requestFormReset=function(F){H.d.r(F)},kP.unstable_batchedUpdates=function(F,V){return F(V)},kP.useFormState=function(F,V,k){return q().useFormState(F,V,k)},kP.useFormStatus=function(){return q().useHostTransitionStatus()},kP.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((Tg,aj)=>{var jP=p(rj());aj.exports=jP});var sj=f8((AP)=>{var T1=p(ij()),Bz=p(G0()),a_=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=Pw(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=Pw(w)?w.slice():_1({},w);return $+1===z.length?(Q[Z[$]]=Q[G],Pw(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=Pw(w)?w.slice():_1({},w);if(Z+1===z.length)return Pw(G)?G.splice($,1):delete G[$],G;return G[$]=K(w[$],z,Z+1),G}function U(){return!1}function q(){return null}function H(){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 N(){}function F(){}function V(w){var z=[];return w.forEach(function(Z){z.push(Z)}),z.sort().join(", ")}function k(w,z,Z,$){return new JE(w,z,Z,$)}function j(w,z){w.context===Q4&&(_U(w.current,2,z,w,null,null),D9())}function O(w,z){if(q5!==null){var Z=z.staleFamilies;z=z.updatedFamilies,lZ(),tB(w.current,z,Z),D9()}}function M(w){q5=w}function h(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 v(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=$N&&w[$N]||w["@@iterator"],typeof w==="function"?w:null}function S(w){if(w==null)return null;if(typeof w==="function")return w.$$typeof===Oh?null:w.displayName||w.name||null;if(typeof w==="string")return w;switch(w){case I9:return"Fragment";case FU:return"Profiler";case V3:return"StrictMode";case kU:return"Suspense";case jU:return"SuspenseList";case AU: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 P9:return"Portal";case E8:return w.displayName||"Context";case NU:return(w._context.displayName||"Context")+".Consumer";case zJ:var z=w.render;return w=w.displayName,w||(w=z.displayName||z.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case F3: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===V3?"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!==OU[G6]&&console.error("Unexpected Fiber popped."),w.current=MU[G6],MU[G6]=null,OU[G6]=null,G6--)}function u(w,z,Z){G6++,MU[G6]=w.current,OU[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(ZJ,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)?hF(z):j6:j6;break;default:if(Z=z.tagName,z=z.namespaceURI)z=hF(z),z=vF(z,Z);else switch(Z){case"svg":z=_z;break;case"math":z=LY;break;default:z=j6}}Z=Z.toLowerCase(),Z=MB(null,Z),Z={context:z,ancestorInfo:Z},t(z4,w),u(z4,Z,w)}function e(w){t(z4,w),t(ZJ,w),t(Z4,w)}function o(){return Q0(z4.current)}function g(w){w.memoizedState!==null&&u(N3,w,w);var z=Q0(z4.current),Z=w.type,$=vF(z.context,Z);Z=MB(z.ancestorInfo,Z),$={context:$,ancestorInfo:Z},z!==$&&(u(ZJ,w,w),u(z4,$,w))}function X0(w){ZJ.current===w&&(t(z4,w),t(ZJ,w)),N3.current===w&&(t(N3,w),rJ._currentValue=S7)}function P(){}function z0(){if(JJ===0){YN=console.log,GN=console.info,QN=console.warn,WN=console.error,KN=console.group,UN=console.groupCollapsed,_N=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})}JJ++}function U0(){if(JJ--,JJ===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_1({},w,{value:YN}),info:_1({},w,{value:GN}),warn:_1({},w,{value:QN}),error:_1({},w,{value:WN}),group:_1({},w,{value:KN}),groupCollapsed:_1({},w,{value:UN}),groupEnd:_1({},w,{value:_N})})}0>JJ&&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(DU===void 0)try{throw Error()}catch(Z){var z=Z.stack.trim().match(/\n( *(at )?)/);DU=z&&z[1]||"",HN=-1<Z.stack.indexOf(`
|
|
21
|
+
at`)?" (<anonymous>)":-1<Z.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
+
`+DU+w+HN}function S0(w,z){if(!w||TU)return"";var Z=xU.get(w);if(Z!==void 0)return Z;TU=!0,Z=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var $=null;$=Y0.H,Y0.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"&&xU.set(w,a),a}while(1<=Q&&0<=_);break}}}finally{TU=!1,Y0.H=$,U0(),Error.prepareStackTrace=Z}return D=(D=w?w.displayName||w.name:"")?L0(D):"",typeof w==="function"&&xU.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){Y0.getCurrentStack=w===null?null:n0,h8=!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 H0(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{S9=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 Ph==="function"&&Ih(w),z2&&typeof z2.setStrictMode==="function")try{z2.setStrictMode(S9,w)}catch(z){v8||(v8=!0,console.error("React instrumentation encountered an error: %o",z))}}function v0(w){return w>>>=0,w===0?32:31-(Ch(w)/Sh|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 q1(){var w=A3;return A3<<=1,(A3&62914560)===0&&(A3=4194304),w}function D1(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 Gw(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-K2(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-K2(z);w.entangledLanes|=z,w.entanglements[$]=w.entanglements[$]|1073741824|Z&261930}function Lw(w,z){var Z=w.entangledLanes|=z;for(w=w.entanglements;Z;){var $=31-K2(Z),G=1<<$;G&z|w[$]&z&&(w[$]|=z),Z&=~G}}function Uw(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-K2(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-K2(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:M3:c5:r2}function s(){var w=I1.p;if(w!==0)return w;return w=window.event,w===void 0?I8:tF(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[sw],delete w[U2],delete w[IU],delete w[bh],delete w[yh]}function T0(w){var z=w[sw];if(z)return z;for(var Z=w.parentNode;Z;){if(z=Z[X4]||Z[sw]){if(Z=z.alternate,z.child!==null||Z!==null&&Z.child!==null)for(w=gF(w);w!==null;){if(Z=w[sw])return Z;w=gF(w)}return z}w=Z,Z=w.parentNode}return null}function a0(w){if(w=w[sw]||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[qN];return z||(z=w[qN]={hoistableStyles:new Map,hoistableScripts:new Map}),z}function d0(w){w[XJ]=!0}function vw(w,z){Q2(w,z),Q2(w+"Capture",z)}function Q2(w,z){_7[w]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",w),_7[w]=z;var Z=w.toLowerCase();CU[Z]=w,w==="onDoubleClick"&&(CU.ondblclick=w);for(w=0;w<z.length;w++)BN.add(z[w])}function K8(w,z){Rh[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 s4(w){if(p5.call(VN,w))return!0;if(p5.call(LN,w))return!1;if(gh.test(w))return VN[w]=!0;return LN[w]=!0,console.error("Invalid attribute name: `%s`",w),!1}function W$(w,z,Z){if(s4(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 H0(Z,z),w===""+Z?Z:w}}function d6(w,z,Z){if(s4(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}}H0(Z,z),w.setAttribute(z,""+Z)}}function o4(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}H0(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}H0($,Z),w.setAttributeNS(z,Z,""+$)}}function j2(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 HW(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 NZ(w){if(!w._valueTracker){var z=u6(w)?"checked":"value";w._valueTracker=HW(w,z,""+w[z])}}function K$(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 U$(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(fh,function(z){return"\\"+z.charCodeAt(0).toString(16)+" "})}function UB(w,z){z.checked===void 0||z.defaultChecked===void 0||NN||(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),NN=!0),z.value===void 0||z.defaultValue===void 0||FN||(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),FN=!0)}function qW(w,z,Z,$,G,Q,_,B){if(w.name="",_!=null&&typeof _!=="function"&&typeof _!=="symbol"&&typeof _!=="boolean"?(H0(_,"type"),w.type=_):w.removeAttribute("type"),z!=null)if(_==="number"){if(z===0&&w.value===""||w.value!=z)w.value=""+j2(z)}else w.value!==""+j2(z)&&(w.value=""+j2(z));else _!=="submit"&&_!=="reset"||w.removeAttribute("value");z!=null?BW(w,_,j2(z)):Z!=null?BW(w,_,j2(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"?(H0(B,"name"),w.name=""+j2(B)):w.removeAttribute("name")}function _B(w,z,Z,$,G,Q,_,B){if(Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&typeof Q!=="boolean"&&(H0(Q,"type"),w.type=Q),z!=null||Z!=null){if(!(Q!=="submit"&&Q!=="reset"||z!==void 0&&z!==null)){NZ(w);return}Z=Z!=null?""+j2(Z):"",z=z!=null?""+j2(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"&&(H0(_,"name"),w.name=_),NZ(w)}function BW(w,z,Z){z==="number"&&U$(w.ownerDocument)===w||w.defaultValue===""+Z||(w.defaultValue=""+Z)}function HB(w,z){z.value==null&&(typeof z.children==="object"&&z.children!==null?Bz.Children.forEach(z.children,function(Z){Z==null||typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint"||jN||(jN=!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||AN||(AN=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),z.selected==null||kN||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),kN=!0)}function qB(){var w=r0();return w?`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+w+"`.":""}function H9(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=""+j2(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 BB(w,z){for(w=0;w<ON.length;w++){var Z=ON[w];if(z[Z]!=null){var $=Pw(z[Z]);z.multiple&&!$?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",Z,qB()):!z.multiple&&$&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Z,qB())}}z.value===void 0||z.defaultValue===void 0||MN||(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"),MN=!0)}function LB(w,z){z.value===void 0||z.defaultValue===void 0||DN||(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"),DN=!0),z.children!=null&&z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function VB(w,z,Z){if(z!=null&&(z=""+j2(z),z!==w.value&&(w.value=z),Z==null)){w.defaultValue!==z&&(w.defaultValue=z);return}w.defaultValue=Z!=null?""+j2(Z):""}function FB(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(Pw($)){if(1<$.length)throw Error("<textarea> can only have at most one child.");$=$[0]}Z=$}Z==null&&(Z=""),z=Z}Z=j2(z),w.defaultValue=Z,$=w.textContent,$===Z&&$!==""&&$!==null&&(w.value=$),NZ(w)}function NB(w,z){return w.serverProps===void 0&&w.serverTail.length===0&&w.children.length===1&&3<w.distanceFromLeaf&&w.distanceFromLeaf>15-z?NB(w.children[0],z):w}function R2(w){return" "+" ".repeat(w)}function q9(w){return"+ "+" ".repeat(w)}function n4(w){return"- "+" ".repeat(w)}function kB(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 kZ(w,z){return TN.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 _$(w,z,Z){var $=120-2*Z;if(z===null)return q9(Z)+kZ(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)),q9(Z)+kZ(w,$)+`
|
|
37
|
+
`+n4(Z)+kZ(z,$)+`
|
|
38
|
+
`}return R2(Z)+kZ(w,$)+`
|
|
39
|
+
`}function LW(w){return Object.prototype.toString.call(w).replace(/^\[object (.*)\]$/,function(z,Z){return Z})}function jZ(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(Pw(w))return"[...]";if(w.$$typeof===x8)return(z=S(w.type))?"<"+z+">":"<...>";var Z=LW(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=jZ(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 B9(w,z){return typeof w!=="string"||TN.test(w)?"{"+jZ(w,z-2)+"}":w.length>z-2?5>z?'"..."':'"'+w.slice(0,z-5)+'..."':'"'+w+'"'}function VW(w,z,Z){var $=120-Z.length-w.length,G=[],Q;for(Q in z)if(z.hasOwnProperty(Q)&&Q!=="children"){var _=B9(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 bx(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=jZ(w[Q],_);z.hasOwnProperty(Q)?(_=jZ(z[Q],_),$+=q9(Z)+Q+": "+B+`
|
|
46
|
+
`,$+=n4(Z)+Q+": "+_+`
|
|
47
|
+
`):$+=q9(Z)+Q+": "+B+`
|
|
48
|
+
`}for(var A in G)G.hasOwnProperty(A)&&(w=jZ(G[A],120-2*Z-A.length-2),$+=n4(Z)+A+": "+w+`
|
|
49
|
+
`);return $}function yx(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+=VW(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=B9(D,B);B=B9(A,B),typeof D==="object"&&D!==null&&typeof A==="object"&&A!==null&&LW(D)==="Object"&&LW(A)==="Object"&&(2<Object.keys(D).length||2<Object.keys(A).length||-1<i.indexOf("...")||-1<B.indexOf("..."))?G+=R2($+1)+_+`={{
|
|
50
|
+
`+bx(D,A,$+2)+R2($+1)+`}}
|
|
51
|
+
`:(G+=q9($+1)+_+"="+i+`
|
|
52
|
+
`,G+=n4($+1)+_+"="+B+`
|
|
53
|
+
`)}else G+=R2($+1)+_+"="+B9(z[_],B)+`
|
|
54
|
+
`}Q.forEach(function(a){if(a!=="children"){var y=120-2*($+1)-a.length-1;G+=n4($+1)+a+"="+B9(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+=_$(Q,""+w,$+1)}else if(typeof z==="string"||typeof z==="number"||typeof z==="bigint")G=w==null?G+_$(""+z,null,$+1):G+_$(""+z,void 0,$+1);return G}function jB(w,z){var Z=kB(w);if(Z===null){Z="";for(w=w.child;w;)Z+=jB(w,z),w=w.sibling;return Z}return R2(z)+"<"+Z+`>
|
|
59
|
+
`}function FW(w,z){var Z=NB(w,z);if(Z!==w&&(w.children.length!==1||w.children[0]!==Z))return R2(z)+`...
|
|
60
|
+
`+FW(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)$=_$(G,w.serverProps,z),z++;else if(Q=kB(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=B9(G[D],15);if(_-=D.length+A.length+2,0>_){B+=" ...";break}B+=" "+D+"="+A}$=R2($)+"<"+Q+B+`>
|
|
62
|
+
`,z++}else w.serverProps===null?($=VW(Q,G,q9(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."):($=yx(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+=FW(_,z),Q++):D+=jB(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+(n4(z)+kZ(Q,120-2*z)+`
|
|
64
|
+
`):D+VW(Q.type,Q.props,n4(z));return Z+$+D}function NW(w){try{return`
|
|
65
|
+
|
|
66
|
+
`+FW(w,0)}catch(z){return""}}function AB(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?NW(G).replaceAll(/^[+-]/gm,">"):""}function MB(w,z){var Z=_1({},w||EN),$={tag:z};if(xN.indexOf(z)!==-1&&(Z.aTagInScope=null,Z.buttonTagInScope=null,Z.nobrTagInScope=null),dh.indexOf(z)!==-1&&(Z.pTagInButtonScope=null),mh.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 OB(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 uh.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 Rx(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 DB(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 kW(w,z){z=z||EN;var Z=z.current;if(z=(Z=OB(w,Z&&Z.tag,z.implicitRootScope)?null:Z)?null:Rx(w,z),z=Z||z,!z)return!0;var $=z.tag;if(z=String(!!Z)+"|"+w+"|"+$,O3[z])return!1;O3[z]=!0;var G=(z=i2)?DB(z.return,$):null,Q=z!==null&&G!==null?AB(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 H$(w,z,Z){if(Z||OB("#text",z,!1))return!0;if(Z="#text|"+z,O3[Z])return!1;O3[Z]=!0;var $=(Z=i2)?DB(Z,z):null;return Z=Z!==null&&$!==null?AB($,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 AZ(w,z){if(z){var Z=w.firstChild;if(Z&&Z===w.lastChild&&Z.nodeType===3){Z.nodeValue=z;return}}w.textContent=z}function gx(w){return w.replace(lh,function(z,Z){return Z.toUpperCase()})}function TB(w,z,Z){var $=z.indexOf("--")===0;$||(-1<z.indexOf("-")?b9.hasOwnProperty(z)&&b9[z]||(b9[z]=!0,console.error("Unsupported style property %s. Did you mean %s?",z,gx(z.replace(ch,"ms-")))):ph.test(z)?b9.hasOwnProperty(z)&&b9[z]||(b9[z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",z,z.charAt(0).toUpperCase()+z.slice(1))):!PN.test(Z)||bU.hasOwnProperty(Z)&&bU[Z]||(bU[Z]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,z,Z.replace(PN,""))),typeof Z==="number"&&(isNaN(Z)?IN||(IN=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",z)):isFinite(Z)||CN||(CN=!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||SN.has(z)?z==="float"?w.cssFloat=Z:(O0(Z,z),w[z]=(""+Z).trim()):w[z]=Z+"px"}function xB(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=SU[G]||[G],_=0;_<Q.length;_++)$[Q[_]]=G}for(var B in z)if(z.hasOwnProperty(B)&&(!Z||Z[B]!==z[B]))for(G=SU[B]||[B],Q=0;Q<G.length;Q++)$[G[Q]]=B;B={};for(var A in z)for(G=SU[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&&TB(w,y,D)}else for($ in z)z.hasOwnProperty($)&&TB(w,$,z[$])}function MZ(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 EB(w){return ih.get(w)||w}function fx(w,z){if(p5.call(R9,z)&&R9[z])return!0;if(ah.test(z)){if(w="aria-"+z.slice(4).toLowerCase(),w=bN.hasOwnProperty(w)?w:null,w==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",z),R9[z]=!0;if(z!==w)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",z,w),R9[z]=!0}if(rh.test(z)){if(w=z.toLowerCase(),w=bN.hasOwnProperty(w)?w:null,w==null)return R9[z]=!0,!1;z!==w&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",z,w),R9[z]=!0)}return!0}function mx(w,z){var Z=[],$;for($ in z)fx(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 dx(w,z,Z,$){if(p5.call(_2,z)&&_2[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."),_2[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,$),_2[z]=!0;if(RN.test(z))return console.error("Unknown event handler property `%s`. It will be ignored.",z),_2[z]=!0}else if(RN.test(z))return sh.test(z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",z),_2[z]=!0;if(oh.test(z)||nh.test(z))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),_2[z]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),_2[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),_2[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),_2[z]=!0;if(T3.hasOwnProperty(G)){if(G=T3[G],G!==z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",z,G),_2[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),_2[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),_2[z]=!0}case"function":case"symbol":return _2[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),_2[z]=!0}}return!0}function ux(w,z,Z){var $=[],G;for(G in z)dx(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 OZ(w){return th.test(""+w)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":w}function e8(){}function jW(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}function hB(w){var z=a0(w);if(z&&(w=z.stateNode)){var Z=w[U2]||null;w:switch(w=z.stateNode,z.type){case"input":if(qW(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;H0(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=$[U2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");qW($,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&&K$($)}break w;case"textarea":VB(w,Z.value,Z.defaultValue);break w;case"select":z=Z.value,z!=null&&H9(w,!!Z.multiple,z,!1)}}}function vB(w,z,Z){if(yU)return w(z,Z);yU=!0;try{var $=w(z);return $}finally{if(yU=!1,g9!==null||f9!==null){if(D9(),g9&&(z=g9,w=f9,f9=g9=null,hB(z),w))for(z=0;z<w.length;z++)hB(w[z])}}}function DZ(w,z){var Z=w.stateNode;if(Z===null)return null;var $=Z[U2]||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 PB(){if(x3)return x3;var w,z=gU,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 x3=G.slice(w,1<$?1-$:void 0)}function q$(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 B$(){return!0}function IB(){return!1}function A2(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)?B$:IB,this.isPropagationStopped=IB,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=B$)},stopPropagation:function(){var Z=this.nativeEvent;Z&&(Z.stopPropagation?Z.stopPropagation():typeof Z.cancelBubble!=="unknown"&&(Z.cancelBubble=!0),this.isPropagationStopped=B$)},persist:function(){},isPersistent:B$}),z}function px(w){var z=this.nativeEvent;return z.getModifierState?z.getModifierState(w):(w=Uv[w])?!!z[w]:!1}function AW(){return px}function CB(w,z){switch(w){case"keyup":return Mv.indexOf(z.keyCode)!==-1;case"keydown":return z.keyCode!==dN;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SB(w){return w=w.detail,typeof w==="object"&&"data"in w?w.data:null}function cx(w,z){switch(w){case"compositionend":return SB(z);case"keypress":if(z.which!==pN)return null;return lN=!0,cN;case"textInput":return w=z.data,w===cN&&lN?null:w;default:return null}}function lx(w,z){if(m9)return w==="compositionend"||!uU&&CB(w,z)?(w=PB(),x3=gU=$4=null,m9=!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 uN&&z.locale!=="ko"?null:z.data;default:return null}}function bB(w){var z=w&&w.nodeName&&w.nodeName.toLowerCase();return z==="input"?!!Dv[w.type]:z==="textarea"?!0:!1}function ix(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 yB(w,z,Z,$){g9?f9?f9.push($):f9=[$]:g9=$,z=G3(z,"onChange"),0<z.length&&(Z=new E3("onChange","change",null,Z,$),w.push({event:Z,listeners:z}))}function rx(w){FF(w,0)}function L$(w){var z=u0(w);if(K$(z))return w}function RB(w,z){if(w==="change")return z}function gB(){KJ&&(KJ.detachEvent("onpropertychange",fB),UJ=KJ=null)}function fB(w){if(w.propertyName==="value"&&L$(UJ)){var z=[];yB(z,UJ,w,jW(w)),vB(rx,z)}}function ax(w,z,Z){w==="focusin"?(gB(),KJ=z,UJ=Z,KJ.attachEvent("onpropertychange",fB)):w==="focusout"&&gB()}function sx(w){if(w==="selectionchange"||w==="keyup"||w==="keydown")return L$(UJ)}function ox(w,z){if(w==="click")return L$(z)}function nx(w,z){if(w==="input"||w==="change")return L$(z)}function tx(w,z){return w===z&&(w!==0||1/w===1/z)||w!==w&&z!==z}function TZ(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 mB(w){for(;w&&w.firstChild;)w=w.firstChild;return w}function dB(w,z){var Z=mB(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=mB(Z)}}function uB(w,z){return w&&z?w===z?!0:w&&w.nodeType===3?!1:z&&z.nodeType===3?uB(w,z.parentNode):("contains"in w)?w.contains(z):w.compareDocumentPosition?!!(w.compareDocumentPosition(z)&16):!1:!1}function pB(w){w=w!=null&&w.ownerDocument!=null&&w.ownerDocument.defaultView!=null?w.ownerDocument.defaultView:window;for(var z=U$(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=U$(w.document)}return z}function MW(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 cB(w,z,Z){var $=Z.window===Z?Z.document:Z.nodeType===9?Z:Z.ownerDocument;cU||d9==null||d9!==U$($)||($=d9,("selectionStart"in $)&&MW($)?$={start:$.selectionStart,end:$.selectionEnd}:($=($.ownerDocument&&$.ownerDocument.defaultView||window).getSelection(),$={anchorNode:$.anchorNode,anchorOffset:$.anchorOffset,focusNode:$.focusNode,focusOffset:$.focusOffset}),_J&&TZ(_J,$)||(_J=$,$=G3(pU,"onSelect"),0<$.length&&(z=new E3("onSelect","select",null,z,Z),w.push({event:z,listeners:$}),z.target=d9)))}function t4(w,z){var Z={};return Z[w.toLowerCase()]=z.toLowerCase(),Z["Webkit"+w]="webkit"+z,Z["Moz"+w]="moz"+z,Z}function e4(w){if(lU[w])return lU[w];if(!u9[w])return w;var z=u9[w],Z;for(Z in z)if(z.hasOwnProperty(Z)&&Z in rN)return lU[w]=z[Z];return w}function m5(w,z){tN.set(w,z),vw(z,[w])}function ex(w){for(var z=v3,Z=0;Z<w.length;Z++){var $=w[Z];if(typeof $==="object"&&$!==null)if(Pw($)&&$.length===2&&typeof $[0]==="string"){if(z!==v3&&z!==oU)return aU;z=oU}else return aU;else{if(typeof $==="function"||typeof $==="string"&&50<$.length||z!==v3&&z!==sU)return aU;z=sU}}return z}function OW(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&&(!Pw(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=ex(z),D===sU||D===v3){z=JSON.stringify(z);break}else if(D===oU){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>$&&OW(z,Z,$+1,G);return}case"function":z=z.name===""?"() => {}":z.name+"() {}";break;case"string":z=z===Iv?"…":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 lB(w,z,Z,$){var G=!0;for(_ in w)_ in z||(Z.push([P3+" ".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([P3+G,"…"],[I3+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([P3+G,_],[I3+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=[zk+" ".repeat($)+Q,D==="[object Array]"?"Array":""],Z.push(A),D=Z.length,lB(_,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([zk+" ".repeat($)+Q,_+" Referentially unequal function closure. Consider memoization."]);continue}}U8(Q,_,Z,$,P3),U8(Q,B,Z,$,I3)}G=!1}}else Z.push([I3+" ".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 V$(w,z,Z){_8(w,z,Z,"Reconnect")}function F$(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=[Cv],D=lB(_.memoizedProps,D,A,0),1<A.length&&(D&&!Y4&&(_.lanes&G)===0&&100<w.actualDuration?(Y4=!0,A[0]=Sv,Q6.color="warning",Q6.tooltipText=Zk):(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 DW(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&&OW(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 H8(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&&OW(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 wE(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,H1,G)):console.timeStamp(Z,w,z,B1,H1,G)}}function iB(w,z,Z,$){!c1||z<=w||(Z=(Z&738197653)===Z?"tertiary-dark":"primary-dark",$?$.run(console.timeStamp.bind(console,"Prewarm",w,z,B1,H1,Z)):console.timeStamp("Prewarm",w,z,B1,H1,Z))}function rB(w,z,Z,$){!c1||z<=w||(Z=(Z&738197653)===Z?"tertiary-dark":"primary-dark",$?$.run(console.timeStamp.bind(console,"Suspended",w,z,B1,H1,Z)):console.timeStamp("Suspended",w,z,B1,H1,Z))}function zE(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:H1,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:Z}}},Q?Q.run(performance.measure.bind(performance,"Recovered",w)):performance.measure("Recovered",w)}}function TW(w,z,Z,$){!c1||z<=w||($?$.run(console.timeStamp.bind(console,"Errored",w,z,B1,H1,"error")):console.timeStamp("Errored",w,z,B1,H1,"error"))}function ZE(w,z,Z,$){!c1||z<=w||($?$.run(console.timeStamp.bind(console,Z,w,z,B1,H1,"secondary-light")):console.timeStamp(Z,w,z,B1,H1,"secondary-light"))}function aB(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:H1,tooltipText:$?"Remaining Effects Errored":"Commit Errored",properties:Q}}},G?G.run(performance.measure.bind(performance,"Errored",w)):performance.measure("Errored",w)}}function xZ(w,z,Z){!c1||z<=w||(Z?Z.run(console.timeStamp.bind(console,"Animating",w,z,B1,H1,"secondary-dark")):console.timeStamp("Animating",w,z,B1,H1,"secondary-dark"))}function N$(){for(var w=p9,z=nU=p9=0;z<w;){var Z=H5[z];H5[z++]=null;var $=H5[z];H5[z++]=null;var G=H5[z];H5[z++]=null;var Q=H5[z];if(H5[z++]=null,$!==null&&G!==null){var _=$.pending;_===null?G.next=G:(G.next=_.next,_.next=G),$.pending=G}Q!==0&&sB(Z,G,Q)}}function k$(w,z,Z,$){H5[p9++]=w,H5[p9++]=z,H5[p9++]=Z,H5[p9++]=$,nU|=$,w.lanes|=$,w=w.alternate,w!==null&&(w.lanes|=$)}function xW(w,z,Z,$){return k$(w,z,Z,$),j$(w)}function w2(w,z){return k$(w,null,null,z),j$(w)}function sB(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&HJ||(G=!0)),w=Q,Q=Q.return;return w.tag===3?(Q=w.stateNode,G&&z!==null&&(G=31-K2(Z),w=Q.hiddenUpdates,$=w[G],$===null?w[G]=[z]:$.push(z),z.lane=Z|536870912),Q):null}function j$(w){if(mJ>sv)throw E7=mJ=0,dJ=v_=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.");E7>ov&&(E7=0,dJ=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&&UF(w);for(var z=w,Z=z.return;Z!==null;)z.alternate===null&&(z.flags&4098)!==0&&UF(w),z=Z,Z=z.return;return z.tag===3?z.stateNode:null}function w7(w){if(q5===null)return w;var z=q5(w);return z===void 0?w:z.current}function EW(w){if(q5===null)return w;var z=q5(w);return z===void 0?w!==null&&w!==void 0&&typeof w.render==="function"&&(z=w7(w.render),w.render!==z)?(z={$$typeof:zJ,render:z},w.displayName!==void 0&&(z.displayName=w.displayName),z):w:z.current}function oB(w,z){if(q5===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===zJ?$=!0:G===l2&&($=!0);break;case 14:case 15:G===F3?$=!0:G===l2&&($=!0);break;default:return!1}return $&&(w=q5(Z),w!==void 0&&w===q5(z))?!0:!1}function nB(w){q5!==null&&typeof WeakSet==="function"&&(c9===null&&(c9=new WeakSet),c9.add(w))}function tB(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(q5===null)throw Error("Expected resolveFamily to be set during hot reload.");var D=!1;if($=!1,A!==null&&(A=q5(A),A!==void 0&&(Z.has(A)?$=!0:z.has(A)&&(B===1?$=!0:D=!0))),c9!==null&&(c9.has(w)||G!==null&&c9.has(G))&&($=!0),$&&(w._debugNeedsRemount=!0),$||D)G=w2(w,2),G!==null&&Zw(G,w,2);if(Q===null||$||tB(Q,z,Z),_===null)break;w=_}while(1)}function JE(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,Jk||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function hW(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=w7(w.type);break;case 1:Z.type=w7(w.type);break;case 11:Z.type=EW(w.type)}return Z}function eB(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 vW(w,z,Z,$,G,Q){var _=0,B=w;if(typeof w==="function")hW(w)&&(_=1),B=w7(B);else if(typeof w==="string")_=o(),_=_h(w,Z,_)?26:w==="html"||w==="head"||w==="body"?27:5;else w:switch(w){case AU:return z=k(31,Z,z,G),z.elementType=AU,z.lanes=Q,z;case I9:return z7(Z.children,G,Q,z);case V3:_=8,G|=Z2,G|=l5;break;case FU: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=FU,z.lanes=Q,z.stateNode={effectDuration:0,passiveEffectDuration:0},z;case kU:return z=k(13,Z,z,G),z.elementType=kU,z.lanes=Q,z;case jU:return z=k(19,Z,z,G),z.elementType=jU,z.lanes=Q,z;default:if(typeof w==="object"&&w!==null)switch(w.$$typeof){case E8:_=10;break w;case NU:_=9;break w;case zJ:_=11,B=EW(B);break w;case F3:_=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":Pw(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 A$(w,z,Z){return z=vW(w.type,w.key,w.props,w._owner,z,Z),z._debugOwner=w._owner,z._debugStack=w._debugStack,z._debugTask=w._debugTask,z}function z7(w,z,Z,$){return w=k(7,w,$,z),w.lanes=Z,w}function PW(w,z,Z){return w=k(6,w,null,z),w.lanes=Z,w}function wL(w){var z=k(18,null,null,w1);return z.stateNode=w,z}function IW(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=tU.get(w);if(Z!==void 0)return Z;return z={value:w,source:z,stack:_0(z)},tU.set(w,z),z}return{value:w,source:z,stack:_0(z)}}function z6(w,z){p6(),l9[i9++]=qJ,l9[i9++]=C3,C3=w,qJ=z}function zL(w,z,Z){p6(),B5[L5++]=K6,B5[L5++]=U6,B5[L5++]=q7,q7=w;var $=K6;w=U6;var G=32-K2($)-1;$&=~(1<<G),Z+=1;var Q=32-K2(z)+G;if(30<Q){var _=G-G%5;Q=($&(1<<_)-1).toString(32),$>>=_,G-=_,K6=1<<32-K2(z)+G|Z<<G|$,U6=Q+w}else K6=1<<Q|Z<<G|$,U6=w}function CW(w){p6(),w.return!==null&&(z6(w,1),zL(w,1,0))}function SW(w){for(;w===C3;)C3=l9[--i9],l9[i9]=null,qJ=l9[--i9],l9[i9]=null;for(;w===q7;)q7=B5[--L5],B5[L5]=null,U6=B5[--L5],B5[L5]=null,K6=B5[--L5],B5[L5]=null}function ZL(){return p6(),q7!==null?{id:K6,overflow:U6}:null}function JL(w,z){p6(),B5[L5++]=K6,B5[L5++]=U6,B5[L5++]=q7,K6=z.id,U6=z.overflow,q7=w}function p6(){F1||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Z7(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=Z7(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 XL(){F1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function M$(w,z){S8||(w=Z7(w,0),w.serverProps=null,z!==null&&(z=yF(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=NW($)),EZ(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)),eU}function $L(w){var{stateNode:z,type:Z,memoizedProps:$}=w;switch(z[sw]=w,z[U2]=$,wU(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<uJ.length;Z++)k1(uJ[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),UB(z,$),_B(z,$.value,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name,!0);break;case"option":HB(z,$);break;case"select":K8("select",$),k1("invalid",z),BB(z,$);break;case"textarea":K8("textarea",$),k1("invalid",z),LB(z,$),FB(z,$.value,$.defaultValue,$.children)}Z=$.children,typeof Z!=="string"&&typeof Z!=="number"&&typeof Z!=="bigint"||z.textContent===""+Z||$.suppressHydrationWarning===!0||AF(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 YL(w){for(ow=w.return;ow;)switch(ow.tag){case 5:case 31:case 13:V5=!1;return;case 27:case 3:V5=!0;return;default:ow=ow.return}}function L9(w){if(w!==ow)return!1;if(!F1)return YL(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")||$U(w.type,w.memoizedProps);Z=!Z}if(Z&&l1){for(Z=l1;Z;){var $=Z7(w,0),G=yF(Z);$.serverTail.push(G),Z=G.type==="Suspense"?WU(Z):c2(Z.nextSibling)}c6(w)}if(YL(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=WU(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=WU(w)}else z===27?(z=l1,w4(w.type)?(w=u_,u_=null,l1=w):l1=z):l1=ow?c2(w.stateNode.nextSibling):null;return!0}function J7(){l1=ow=null,S8=F1=!1}function bW(){var w=W4;return w!==null&&(V2===null?V2=w:V2.push.apply(V2,w),W4=null),w}function EZ(w){W4===null?W4=[w]:W4.push(w)}function yW(){var w=a2;if(w!==null){a2=null;for(var z=NW(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 O$(){r9=S3=null,a9=!1}function l6(w,z,Z){u(w_,z._currentValue,w),z._currentValue=Z,u(z_,z._currentRenderer,w),z._currentRenderer!==void 0&&z._currentRenderer!==null&&z._currentRenderer!==$k&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),z._currentRenderer=$k}function Z6(w,z){w._currentValue=w_.current;var Z=z_.current;t(z_,z),w._currentRenderer=Z,t(w_,z)}function RW(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 gW(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),RW(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),RW(_,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 V9(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===N3.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(rJ):w=[rJ])}G=G.return}w!==null&&gW(z,w,Z,$),z.flags|=262144}function D$(w){for(w=w.firstContext;w!==null;){if(!H2(w.context._currentValue,w.memoizedValue))return!0;w=w.next}return!1}function X7(w){S3=w,r9=null,w=w.dependencies,w!==null&&(w.firstContext=null)}function s1(w){return a9&&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()."),GL(S3,w)}function T$(w,z){return S3===null&&X7(w),GL(w,z)}function GL(w,z){var Z=z._currentValue;if(z={context:z,memoizedValue:Z,next:null},r9===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().");r9=z,w.dependencies={lanes:0,firstContext:z,_debugThenableState:null},w.flags|=524288}else r9=r9.next=z;return Z}function fW(){return{controller:new Rv,data:new Map,refCount:0}}function $7(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 hZ(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&&gv(fv,function(){w.controller.abort()})}function q8(w,z,Z){if((w&127)!==0)0>b8&&(b8=Fw(),LJ=b3(z),Z_=z,Z!=null&&(J_=d(Z)),(M1&(Cw|n2))!==dw&&(Jw=!0,_4=BJ),w=oZ(),z=sZ(),w!==s9||z!==VJ?s9=-1.1:z!==null&&(_4=BJ),L7=w,VJ=z);else if((w&4194048)!==0&&0>F5&&(F5=Fw(),FJ=b3(z),Yk=z,Z!=null&&(Gk=d(Z)),0>q6)){if(w=oZ(),z=sZ(),w!==q4||z!==V7)q4=-1.1;H4=w,V7=z}}function XE(w){if(0>b8){b8=Fw(),LJ=w._debugTask!=null?w._debugTask:null,(M1&(Cw|n2))!==dw&&(_4=BJ);var z=oZ(),Z=sZ();z!==s9||Z!==VJ?s9=-1.1:Z!==null&&(_4=BJ),L7=z,VJ=Z}if(0>F5&&(F5=Fw(),FJ=w._debugTask!=null?w._debugTask:null,0>q6)){if(w=oZ(),z=sZ(),w!==q4||z!==V7)q4=-1.1;H4=w,V7=z}}function J6(){var w=B7;return B7=0,w}function x$(w){var z=B7;return B7=w,z}function vZ(w){var z=B7;return B7+=w,z}function E$(){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 mW(w){q2=Fw(),0>w.actualStartTime&&(w.actualStartTime=q2)}function dW(w){if(0<=q2){var z=Fw()-q2;w.actualDuration+=z,w.selfBaseDuration=z,q2=-1}}function QL(w){if(0<=q2){var z=Fw()-q2;w.actualDuration+=z,q2=-1}}function N8(){if(0<=q2){var w=Fw(),z=w-q2;q2=-1,B7+=z,t1+=z,e0=w}}function WL(w){o1===null&&(o1=[]),o1.push(w),H6===null&&(H6=[]),H6.push(w)}function k8(){q2=Fw(),0>s0&&(s0=q2)}function PZ(w){for(var z=w.child;z;)w.actualDuration+=z.actualDuration,z=z.sibling}function $E(w,z){if(kJ===null){var Z=kJ=[];$_=0,F7=oK(),o9={status:"pending",value:void 0,then:function($){Z.push($)}}}return $_++,z.then(KL,KL),z}function KL(){if(--$_===0&&(-1<F5||(q6=-1.1),kJ!==null)){o9!==null&&(o9.status="fulfilled");var w=kJ;kJ=null,F7=0,o9=null;for(var z=0;z<w.length;z++)(0,w[z])()}}function YE(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 uW(){var w=N7.current;return w!==null?w:g1.pooledCache}function h$(w,z){z===null?u(N7,N7.current,w):u(N7,z.pool,w)}function UL(){var w=uW();return w===null?null:{parent:Vw._currentValue,pool:w}}function _L(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function HL(w){return w=w.status,w==="fulfilled"||w==="rejected"}function qL(w,z,Z){Y0.actQueue!==null&&(Y0.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,LL(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,LL(w),w}throw j7=z,xJ=!0,n9}}function i6(w){try{return pv(w)}catch(z){if(z!==null&&typeof z==="object"&&typeof z.then==="function")throw j7=z,xJ=!0,n9;throw z}}function BL(){if(j7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var w=j7;return j7=null,xJ=!1,w}function LL(w){if(w===n9||w===p3)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 iw(w){var z=G1;return w!=null&&(G1=z===null?w:z.concat(w)),z}function pW(){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 v$(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=A$(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 P$(w){var z=EJ;return EJ+=1,t9===null&&(t9=_L()),qL(t9,w,z)}function IZ(w,z){z=z.props.ref,w.ref=z!==void 0?z:null}function VL(w,z){if(z.$$typeof===Ah)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 I$(w,z){var Z=pW();Z!==null?Z.run(VL.bind(null,w,z)):VL(w,z)}function FL(w,z){var Z=d(w)||"Component";xk[Z]||(xk[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 C$(w,z){var Z=pW();Z!==null?Z.run(FL.bind(null,w,z)):FL(w,z)}function NL(w,z){var Z=d(w)||"Component";Ek[Z]||(Ek[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 S$(w,z){var Z=pW();Z!==null?Z.run(NL.bind(null,w,z)):NL(w,z)}function kL(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=PW(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===I9)return f=i(b,f,l.props.children,W0,l.key),v$(l,f,b),f;if(f!==null&&(f.elementType===D0||oB(f,l)||typeof D0==="object"&&D0!==null&&D0.$$typeof===l2&&i6(D0)===f.type))return f=G(f,l.props),IZ(f,l),f.return=b,f._debugOwner=l._owner,f._debugInfo=G1,f;return f=A$(l,b.mode,W0),IZ(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=IW(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=z7(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=PW(""+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=A$(f,b.mode,l),IZ(l,f),l.return=b,b=iw(f._debugInfo),l._debugInfo=G1,G1=b,l;case P9:return f=IW(f,b.mode,l),f.return=b,f._debugInfo=G1,f;case l2:var W0=iw(f._debugInfo);return f=i6(f),b=a(b,f,l),G1=W0,b}if(Pw(f)||R(f))return l=z7(f,b.mode,l,null),l.return=b,l._debugOwner=b,l._debugTask=b._debugTask,b=iw(f._debugInfo),l._debugInfo=G1,G1=b,l;if(typeof f.then==="function")return W0=iw(f._debugInfo),b=a(b,P$(f),l),G1=W0,b;if(f.$$typeof===E8)return a(b,T$(b,f),l);I$(b,f)}return typeof f==="function"&&C$(b,f),typeof f==="symbol"&&S$(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=iw(l._debugInfo),b=A(b,f,l,W0),G1=D0,b):null;case P9:return l.key===D0?D(b,f,l,W0):null;case l2:return D0=iw(l._debugInfo),l=i6(l),b=y(b,f,l,W0),G1=D0,b}if(Pw(l)||R(l)){if(D0!==null)return null;return D0=iw(l._debugInfo),b=i(b,f,l,W0,null),G1=D0,b}if(typeof l.then==="function")return D0=iw(l._debugInfo),b=y(b,f,P$(l),W0),G1=D0,b;if(l.$$typeof===E8)return y(b,f,T$(b,l),W0);I$(b,l)}return typeof l==="function"&&C$(b,l),typeof l==="symbol"&&S$(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=iw(W0._debugInfo),f=A(f,l,W0,D0),G1=b,f;case P9:return b=b.get(W0.key===null?l:W0.key)||null,D(f,b,W0,D0);case l2:var Z1=iw(W0._debugInfo);return W0=i6(W0),f=Z0(b,f,l,W0,D0),G1=Z1,f}if(Pw(W0)||R(W0))return l=b.get(l)||null,b=iw(W0._debugInfo),f=i(f,l,W0,D0,null),G1=b,f;if(typeof W0.then==="function")return Z1=iw(W0._debugInfo),f=Z0(b,f,l,P$(W0),D0),G1=Z1,f;if(W0.$$typeof===E8)return Z0(b,f,l,T$(f,W0),D0);I$(f,W0)}return typeof W0==="function"&&C$(f,W0),typeof W0==="symbol"&&S$(f,W0),null}function M0(b,f,l,W0){if(typeof l!=="object"||l===null)return W0;switch(l.$$typeof){case x8:case P9:F(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(HP){return z(b,HP)}),F1&&z6(b,m0),D0}function j1(b,f,l,W0){if(typeof l==="object"&&l!==null&&l.type===I9&&l.key===null&&(v$(l,null,b),l=l.props.children),typeof l==="object"&&l!==null){switch(l.$$typeof){case x8:var D0=iw(l._debugInfo);w:{for(var Z1=l.key;f!==null;){if(f.key===Z1){if(Z1=l.type,Z1===I9){if(f.tag===7){Z(b,f.sibling),W0=G(f,l.props.children),W0.return=b,W0._debugOwner=l._owner,W0._debugInfo=G1,v$(l,W0,b),b=W0;break w}}else if(f.elementType===Z1||oB(f,l)||typeof Z1==="object"&&Z1!==null&&Z1.$$typeof===l2&&i6(Z1)===f.type){Z(b,f.sibling),W0=G(f,l.props),IZ(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===I9?(W0=z7(l.props.children,b.mode,W0,l.key),W0.return=b,W0._debugOwner=b,W0._debugTask=b._debugTask,W0._debugInfo=G1,v$(l,W0,b),b=W0):(W0=A$(l,b.mode,W0),IZ(W0,l),W0.return=b,W0._debugInfo=G1,b=W0)}return b=_(b),G1=D0,b;case P9: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=IW(D0,b.mode,W0),W0.return=b,b=W0}return _(b);case l2:return D0=iw(l._debugInfo),l=i6(l),b=j1(b,f,l,W0),G1=D0,b}if(Pw(l))return D0=iw(l._debugInfo),b=E0(b,f,l,W0),G1=D0,b;if(R(l)){if(D0=iw(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]")Dk||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."),Dk=!0}else l.entries!==Z1||W_||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),W_=!0);return b=d1(b,f,i0,W0),G1=D0,b}if(typeof l.then==="function")return D0=iw(l._debugInfo),b=j1(b,f,P$(l),W0),G1=D0,b;if(l.$$typeof===E8)return j1(b,f,T$(b,l),W0);I$(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=PW(D0,b.mode,W0),W0.return=b,W0._debugOwner=b,W0._debugTask=b._debugTask,W0._debugInfo=G1,b=W0),_(b);return typeof l==="function"&&C$(b,l),typeof l==="symbol"&&S$(b,l),Z(b,f)}return function(b,f,l,W0){var D0=G1;G1=null;try{EJ=0;var Z1=j1(b,f,l,W0);return t9=null,Z1}catch(i1){if(i1===n9||i1===p3)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 jL(w,z){var Z=Pw(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 cW(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lW(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:vk,payload:null,callback:null,next:null}}function a6(w,z,Z){var $=w.updateQueue;if($===null)return null;if($=$.shared,U_===$&&!Ck){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),Ck=!0}if((M1&Cw)!==dw)return G=$.pending,G===null?z.next=z:(z.next=G.next,G.next=z),$.pending=z,z=j$(w),sB(w,null,Z),z;return k$(w,$,z,Z),j$(w)}function CZ(w,z,Z){if(z=z.updateQueue,z!==null&&(z=z.shared,(Z&4194048)!==0)){var $=z.lanes;$&=w.pendingLanes,Z|=$,z.lanes=Z,Lw(w,Z)}}function b$(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 SZ(){if(__){var w=o9;if(w!==null)throw w}}function bZ(w,z,Z,$){__=!1;var G=w.updateQueue;B4=!1,U_=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===F7&&(__=!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 Pk:if(M0=M0.payload,typeof M0==="function"){a9=!0;var j1=M0.call(d1,a,E0);if(y.mode&Z2){b0(!0);try{M0.call(d1,a,E0)}finally{b0(!1)}}a9=!1,a=j1;break w}a=M0;break w;case K_:y.flags=y.flags&-65537|128;case vk:if(j1=M0.payload,typeof j1==="function"){if(a9=!0,M0=j1.call(d1,a,E0),y.mode&Z2){b0(!0);try{j1.call(d1,a,E0)}finally{b0(!1)}}a9=!1}else M0=j1;if(M0===null||M0===void 0)break w;a=_1({},a,M0);break w;case Ik: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}U_=null}function AL(w,z){if(typeof w!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+w);w.call(z)}function GE(w,z){var Z=w.shared.hiddenCallbacks;if(Z!==null)for(w.shared.hiddenCallbacks=null,w=0;w<Z.length;w++)AL(Z[w],z)}function ML(w,z){var Z=w.callbacks;if(Z!==null)for(w.callbacks=null,w=0;w<Z.length;w++)AL(Z[w],z)}function OL(w,z){var Z=g8;u(l3,Z,w),u(e9,z,w),g8=Z|z.baseLanes}function iW(w){u(l3,g8,w),u(e9,e9.current,w)}function rW(w){g8=l3.current,t(e9,w),t(l3,w)}function s6(w){var z=w.alternate;u(_w,_w.current&wz,w),u(s2,w,w),N5===null&&(z===null||e9.current!==null?N5=w:z.memoizedState!==null&&(N5=w))}function aW(w){u(_w,_w.current,w),u(s2,w,w),N5===null&&(N5=w)}function DL(w){w.tag===22?(u(_w,_w.current,w),u(s2,w,w),N5===null&&(N5=w)):o6(w)}function o6(w){u(_w,_w.current,w),u(s2,s2.current,w)}function u2(w){t(s2,w),N5===w&&(N5=null),t(_w,w)}function y$(w){for(var z=w;z!==null;){if(z.tag===13){var Z=z.memoizedState;if(Z!==null&&(Z=Z.dehydrated,Z===null||GU(Z)||QU(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 q0(){var w=$0;if(j5!==null&&(F6++,j5[F6]!==w)){var z=d(z1);if(!Sk.has(z)&&(Sk.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 F9(w){w===void 0||w===null||Pw(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 R$(){var w=d(z1);yk.has(w)||(yk.add(w),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",w))}function Qw(){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 sW(w,z){if(PJ)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 oW(w,z,Z,$,G,Q){if(L6=Q,z1=z,j5=w!==null?w._debugHookTypes:null,F6=-1,PJ=w!==null&&w.type!==z.type,Object.prototype.toString.call(Z)==="[object AsyncFunction]"||Object.prototype.toString.call(Z)==="[object AsyncGeneratorFunction]")Q=d(z1),H_.has(Q)||(H_.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,Y0.H=w!==null&&w.memoizedState!==null?B_:j5!==null?Rk:q_,M7=Q=(z.mode&Z2)!==w1;var _=Y_(Z,$,G);if(M7=!1,Zz&&(_=nW(z,Z,$,G)),Q){b0(!0);try{_=nW(z,Z,$,G)}finally{b0(!1)}}return TL(w,z),_}function TL(w,z){z._debugHookTypes=j5,z.dependencies===null?V6!==null&&(z.dependencies={lanes:0,firstContext:null,_debugThenableState:V6}):z.dependencies._debugThenableState=V6,Y0.H=IJ;var Z=R1!==null&&R1.next!==null;if(L6=0,j5=$0=Nw=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."),r3=!1,vJ=0,V6=null,Z)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");w===null||kw||(w=w.dependencies,w!==null&&D$(w)&&(kw=!0)),xJ?(xJ=!1,w=!0):w=!1,w&&(z=d(z)||"Unknown",bk.has(z)||H_.has(z)||(bk.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 nW(w,z,Z,$){z1=w;var G=0;do{if(Zz&&(V6=null),vJ=0,Zz=!1,G>=lv)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,PJ=!1,Nw=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,Y0.H=gk,Q=Y_(z,Z,$)}while(Zz);return Q}function QE(){var w=Y0.H,z=w.useState()[0];return z=typeof z.then==="function"?yZ(z):z,w=w.useState()[0],(R1!==null?R1.memoizedState:null)!==w&&(z1.flags|=1024),z}function tW(){var w=a3!==0;return a3=0,w}function eW(w,z,Z){z.updateQueue=w.updateQueue,z.flags=(z.mode&l5)!==w1?z.flags&-402655237:z.flags&-2053,w.lanes&=~Z}function wK(w){if(r3){for(w=w.memoizedState;w!==null;){var z=w.queue;z!==null&&(z.pending=null),w=w.next}r3=!1}L6=0,j5=Nw=R1=z1=null,F6=-1,$0=null,Zz=!1,vJ=a3=0,V6=null}function W2(){var w={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nw===null?z1.memoizedState=Nw=w:Nw=Nw.next=w,Nw}function C1(){if(R1===null){var w=z1.alternate;w=w!==null?w.memoizedState:null}else w=R1.next;var z=Nw===null?z1.memoizedState:Nw.next;if(z!==null)Nw=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},Nw===null?z1.memoizedState=Nw=w:Nw=Nw.next=w}return Nw}function g$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yZ(w){var z=vJ;return vJ+=1,V6===null&&(V6=_L()),w=qL(V6,w,z),z=z1,(Nw===null?z.memoizedState:Nw.next)===null&&(z=z.alternate,Y0.H=z!==null&&z.memoizedState!==null?B_:q_),w}function n6(w){if(w!==null&&typeof w==="object"){if(typeof w.then==="function")return yZ(w);if(w.$$typeof===E8)return s1(w)}throw Error("An unsupported type was passed to use(): "+String(w))}function Y7(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=g$(),z1.updateQueue=Z),Z.memoCache=z,Z=z.data[z.index],Z===void 0||PJ)for(Z=z.data[z.index]=Array(w),$=0;$<w;$++)Z[$]=Mh;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 zK(w,z,Z){var $=W2();if(Z!==void 0){var G=Z(z);if(M7){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=HE.bind(null,z1,w),[$.memoizedState,w]}function N9(w){var z=C1();return ZK(z,R1,w)}function ZK(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===F7&&(i=!0);else if((L6&y)===y){D=D.next,y===F7&&(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,M7&&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)&&(kw=!0,i&&(Z=o9,Z!==null)))throw Z;w.memoizedState=Q,w.baseState=_,w.baseQueue=A,$.lastRenderedState=Q}return G===null&&($.lanes=0),[w.memoizedState,$.dispatch]}function RZ(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)||(kw=!0),z.memoizedState=Q,z.baseQueue===null&&(z.baseState=Q),Z.lastRenderedState=Q}return[Q,$]}function JK(w,z,Z){var $=z1,G=W2();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();zz||Q===Z()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),zz=!0)}else{if(Q=z(),zz||(Z=z(),H2(Q,Z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zz=!0)),g1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Q1&127)!==0||xL($,z,Q)}return G.memoizedState=Q,Z={value:Q,getSnapshot:z},G.queue=Z,u$(hL.bind(null,$,Z,w),[w]),$.flags|=2048,j9(k5|L2,{destroy:void 0},EL.bind(null,$,Z,Q,z),null),Q}function f$(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(),!zz){var _=z();H2(Z,_)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zz=!0)}if(_=!H2((R1||G).memoizedState,Z))G.memoizedState=Z,kw=!0;G=G.queue;var B=hL.bind(null,$,G,w);if(M2(2048,L2,B,[w]),G.getSnapshot!==z||_||Nw!==null&&Nw.memoizedState.tag&k5){if($.flags|=2048,j9(k5|L2,{destroy:void 0},EL.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||xL($,z,Z)}return Z}function xL(w,z,Z){w.flags|=16384,w={getSnapshot:z,value:Z},z=z1.updateQueue,z===null?(z=g$(),z1.updateQueue=z,z.stores=[w]):(Z=z.stores,Z===null?z.stores=[w]:Z.push(w))}function EL(w,z,Z,$){z.value=Z,z.getSnapshot=$,vL(z)&&PL(w)}function hL(w,z,Z){return Z(function(){vL(z)&&(q8(2,"updateSyncExternalStore()",w),PL(w))})}function vL(w){var z=w.getSnapshot;w=w.value;try{var Z=z();return!H2(w,Z)}catch($){return!0}}function PL(w){var z=w2(w,2);z!==null&&Zw(z,w,2)}function XK(w){var z=W2();if(typeof w==="function"){var Z=w;if(w=Z(),M7){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 $K(w){w=XK(w);var z=w.queue,Z=oL.bind(null,z1,z);return z.dispatch=Z,[w.memoizedState,Z]}function YK(w){var z=W2();z.memoizedState=z.baseState=w;var Z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return z.queue=Z,z=kK.bind(null,z1,!0,Z),Z.dispatch=z,[w,z]}function IL(w,z){var Z=C1();return CL(Z,R1,w,z)}function CL(w,z,Z,$){return w.baseState=Z,ZK(w,R1,typeof $==="function"?$:d5)}function SL(w,z){var Z=C1();if(R1!==null)return CL(Z,R1,w,z);return Z.baseState=w,[w,Z.queue.dispatch]}function WE(w,z,Z,$,G){if(a$(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(_)}};Y0.T!==null?Z(!0):Q.isTransition=!1,$(Q),Z=z.pending,Z===null?(Q.next=z.pending=Q,bL(z,Q)):(Q.next=Z.next,z.pending=Z.next=Q)}}function bL(w,z){var{action:Z,payload:$}=z,G=w.state;if(z.isTransition){var Q=Y0.T,_={};_._updatedFibers=new Set,Y0.T=_;try{var B=Z(G,$),A=Y0.S;A!==null&&A(_,B),yL(w,z,B)}catch(D){GK(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),Y0.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,$),yL(w,z,_)}catch(D){GK(w,z,D)}}function yL(w,z,Z){Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?(Y0.asyncTransitions++,Z.then(r$,r$),Z.then(function($){RL(w,z,$)},function($){return GK(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.")):RL(w,z,Z)}function RL(w,z,Z){z.status="fulfilled",z.value=Z,gL(z),w.state=Z,z=w.pending,z!==null&&(Z=z.next,Z===z?w.pending=null:(Z=Z.next,z.next=Z,bL(w,Z)))}function GK(w,z,Z){var $=w.pending;if(w.pending=null,$!==null){$=$.next;do z.status="rejected",z.reason=Z,gL(z),z=z.next;while(z!==$)}w.action=null}function gL(w){w=w.listeners;for(var z=0;z<w.length;z++)(0,w[z])()}function fL(w,z){return z}function k9(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===g_||Q===Mj?G:null}if(G){l1=c2(G.nextSibling),$=G.data===g_;break w}}c6($)}$=!1}$&&(z=Z[0])}}return Z=W2(),Z.memoizedState=Z.baseState=z,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fL,lastRenderedState:z},Z.queue=$,Z=oL.bind(null,z1,$),$.dispatch=Z,$=XK(!1),Q=kK.bind(null,z1,!1,$.queue),$=W2(),G={state:z,dispatch:null,action:w,pending:null},$.queue=G,Z=WE.bind(null,z1,G,Q,Z),G.dispatch=Z,$.memoizedState=w,[z,Z,!1]}function m$(w){var z=C1();return mL(z,R1,w)}function mL(w,z,Z){if(z=ZK(w,z,fL)[0],w=N9(d5)[0],typeof z==="object"&&z!==null&&typeof z.then==="function")try{var $=yZ(z)}catch(_){if(_===n9)throw p3;throw _}else $=z;z=C1();var G=z.queue,Q=G.dispatch;return Z!==z.memoizedState&&(z1.flags|=2048,j9(k5|L2,{destroy:void 0},KE.bind(null,G,Z),null)),[$,Q,w]}function KE(w,z){w.action=z}function d$(w){var z=C1(),Z=R1;if(Z!==null)return mL(z,Z,w);C1(),z=z.memoizedState,Z=C1();var $=Z.queue.dispatch;return Z.memoizedState=w,[z,$,!1]}function j9(w,z,Z,$){return w={tag:w,create:Z,deps:$,inst:z,next:null},z=z1.updateQueue,z===null&&(z=g$(),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 QK(w){var z=W2();return w={current:w},z.memoizedState=w}function G7(w,z,Z,$){var G=W2();z1.flags|=w,G.memoizedState=j9(k5|z,{destroy:void 0},Z,$===void 0?null:$)}function M2(w,z,Z,$){var G=C1();$=$===void 0?null:$;var Q=G.memoizedState.inst;R1!==null&&$!==null&&sW($,R1.memoizedState.deps)?G.memoizedState=j9(z,Q,Z,$):(z1.flags|=w,G.memoizedState=j9(k5|z,Q,Z,$))}function u$(w,z){(z1.mode&l5)!==w1?G7(276826112,L2,w,z):G7(8390656,L2,w,z)}function UE(w){z1.flags|=4;var z=z1.updateQueue;if(z===null)z=g$(),z1.updateQueue=z,z.events=[w];else{var Z=z.events;Z===null?z.events=[w]:Z.push(w)}}function WK(w){var z=W2(),Z={impl:w};return z.memoizedState=Z,function(){if((M1&Cw)!==dw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function p$(w){var z=C1().memoizedState;return UE({ref:z,nextImpl:w}),function(){if((M1&Cw)!==dw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return z.impl.apply(void 0,arguments)}}function KK(w,z){var Z=4194308;return(z1.mode&l5)!==w1&&(Z|=134217728),G7(Z,o2,w,z)}function dL(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 UK(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),G7($,o2,dL.bind(null,z,w),Z)}function c$(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,M2(4,o2,dL.bind(null,z,w),Z)}function _K(w,z){return W2().memoizedState=[w,z===void 0?null:z],w}function l$(w,z){var Z=C1();z=z===void 0?null:z;var $=Z.memoizedState;if(z!==null&&sW(z,$[1]))return $[0];return Z.memoizedState=[w,z],w}function HK(w,z){var Z=W2();z=z===void 0?null:z;var $=w();if(M7){b0(!0);try{w()}finally{b0(!1)}}return Z.memoizedState=[$,z],$}function i$(w,z){var Z=C1();z=z===void 0?null:z;var $=Z.memoizedState;if(z!==null&&sW(z,$[1]))return $[0];if($=w(),M7){b0(!0);try{w()}finally{b0(!1)}}return Z.memoizedState=[$,z],$}function qK(w,z){var Z=W2();return BK(Z,w,z)}function uL(w,z){var Z=C1();return cL(Z,R1.memoizedState,w,z)}function pL(w,z){var Z=C1();return R1===null?BK(Z,w,z):cL(Z,R1.memoizedState,w,z)}function BK(w,z,Z){if(Z===void 0||(L6&1073741824)!==0&&(Q1&261930)===0)return w.memoizedState=z;return w.memoizedState=Z,w=lV(),z1.lanes|=w,F4|=w,Z}function cL(w,z,Z,$){if(H2(Z,z))return Z;if(e9.current!==null)return w=BK(w,Z,$),H2(w,z)||(kw=!0),w;if((L6&42)===0||(L6&1073741824)!==0&&(Q1&261930)===0)return kw=!0,w.memoizedState=Z;return w=lV(),z1.lanes|=w,F4|=w,z}function r$(){Y0.asyncTransitions--}function lL(w,z,Z,$,G){var Q=I1.p;I1.p=Q!==0&&Q<c5?Q:c5;var _=Y0.T,B={};B._updatedFibers=new Set,Y0.T=B,kK(w,!1,z,Z);try{var A=G(),D=Y0.S;if(D!==null&&D(B,A),A!==null&&typeof A==="object"&&typeof A.then==="function"){Y0.asyncTransitions++,A.then(r$,r$);var i=YE(A,$);gZ(w,z,i,p2(w))}else gZ(w,z,$,p2(w))}catch(a){gZ(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),Y0.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 LK(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=iL(w).queue;XE(w),lL(w,G,z,S7,Z===null?N:function(){return rL(w),Z($)})}function iL(w){var z=w.memoizedState;if(z!==null)return z;z={memoizedState:S7,baseState:S7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:d5,lastRenderedState:S7},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 rL(w){Y0.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var z=iL(w);z.next===null&&(z=w.alternate.memoizedState),gZ(w,z.next.queue,{},p2(w))}function VK(){var w=XK(!1);return w=lL.bind(null,z1,w.queue,!0,!1),W2().memoizedState=w,[!1,w]}function aL(){var w=N9(d5)[0],z=C1().memoizedState;return[typeof w==="boolean"?w:yZ(w),z]}function sL(){var w=RZ(d5)[0],z=C1().memoizedState;return[typeof w==="boolean"?w:yZ(w),z]}function Q7(){return s1(rJ)}function FK(){var w=W2(),z=g1.identifierPrefix;if(F1){var Z=U6,$=K6;Z=($&~(1<<32-K2($)-1)).toString(32)+Z,z="_"+z+"R_"+Z,Z=a3++,0<Z&&(z+="H"+Z.toString(32)),z+="_"}else Z=cv++,z="_"+z+"r_"+Z.toString(32)+"_";return w.memoizedState=z}function NK(){return W2().memoizedState=_E.bind(null,z1)}function _E(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&&(q8($,"refresh()",w),Zw(Q,Z,$),CZ(Q,Z,$)),w=fW(),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 HE(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};a$(w)?nL(z,G):(G=xW(w,z,G,$),G!==null&&(q8($,"dispatch()",w),Zw(G,w,$),tL(G,z,$)))}function oL(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),gZ(w,z,Z,$)&&q8($,"setState()",w)}function gZ(w,z,Z,$){var G={lane:$,revertLane:0,gesture:null,action:Z,hasEagerState:!1,eagerState:null,next:null};if(a$(w))nL(z,G);else{var Q=w.alternate;if(w.lanes===0&&(Q===null||Q.lanes===0)&&(Q=z.lastRenderedReducer,Q!==null)){var _=Y0.H;Y0.H=r5;try{var B=z.lastRenderedState,A=Q(B,Z);if(G.hasEagerState=!0,G.eagerState=A,H2(A,B))return k$(w,z,G,0),g1===null&&N$(),!1}catch(D){}finally{Y0.H=_}}if(Z=xW(w,z,G,$),Z!==null)return Zw(Z,w,$),tL(Z,z,$),!0}return!1}function kK(w,z,Z,$){if(Y0.T===null&&F7===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:oK(),gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null},a$(w)){if(z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else z=xW(w,Z,$,2),z!==null&&(q8(2,"setOptimistic()",w),Zw(z,w,2))}function a$(w){var z=w.alternate;return w===z1||z!==null&&z===z1}function nL(w,z){Zz=r3=!0;var Z=w.pending;Z===null?z.next=z:(z.next=Z.next,Z.next=z),w.pending=z}function tL(w,z,Z){if((Z&4194048)!==0){var $=z.lanes;$&=w.pendingLanes,Z|=$,z.lanes=Z,Lw(w,Z)}}function jK(w){if(w!==null&&typeof w!=="function"){var z=String(w);sk.has(z)||(sk.add(z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",w))}}function AK(w,z,Z,$){var G=w.memoizedState,Q=Z($,G);if(w.mode&Z2){b0(!0);try{Q=Z($,G)}finally{b0(!1)}}Q===void 0&&(z=S(z)||"Component",lk.has(z)||(lk.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 eL(w,z,Z,$,G,Q,_){var B=w.stateNode;if(typeof B.shouldComponentUpdate==="function"){if(Z=B.shouldComponentUpdate($,Q,_),w.mode&Z2){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?!TZ(Z,$)||!TZ(G,Q):!0}function wV(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",mk.has(w)||(mk.add(w),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",w)),L_.enqueueReplaceState(z,z.state,null))}function W7(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 zV(w){rU(w),console.warn(`%s
|
|
116
|
+
|
|
117
|
+
%s
|
|
118
|
+
`,Jz?"An error occurred in the <"+Jz+"> 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 ZV(w){var z=Jz?"The above error occurred in the <"+Jz+"> 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, "+((V_||"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,Pj+" "+w[0],Ij,NY+$+NY,Cj):w.splice(0,0,Pj,Ij,NY+$+NY,Cj),w.unshift(console),$=UP.apply(console.error,w),$()}else console.error(`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,w,z,Z)}function JV(w){rU(w)}function s$(w,z){try{Jz=z.source?d(z.source):null,V_=null;var Z=z.value;if(Y0.actQueue!==null)Y0.thrownErrors.push(Z);else{var $=w.onUncaughtError;$(Z,{componentStack:z.stack})}}catch(G){setTimeout(function(){throw G})}}function XV(w,z,Z){try{Jz=Z.source?d(Z.source):null,V_=d(z);var $=w.onCaughtError;$(Z.value,{componentStack:Z.stack,errorBoundary:z.tag===1?z.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function MK(w,z,Z){return Z=r6(Z),Z.tag=K_,Z.payload={element:null},Z.callback=function(){n(z.source,s$,w,z)},Z}function OK(w){return w=r6(w),w.tag=K_,w}function DK(w,z,Z,$){var G=Z.type.getDerivedStateFromError;if(typeof G==="function"){var Q=$.value;w.payload=function(){return G(Q)},w.callback=function(){nB(Z),n($.source,XV,z,Z,$)}}var _=Z.stateNode;_!==null&&typeof _.componentDidCatch==="function"&&(w.callback=function(){nB(Z),n($.source,XV,z,Z,$),typeof G!=="function"&&(k4===null?k4=new Set([this]):k4.add(this)),mv(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 qE(w,z,Z,$,G){if(Z.flags|=32768,P8&&iZ(w,G),$!==null&&typeof $==="object"&&typeof $.then==="function"){if(z=Z.alternate,z!==null&&V9(z,Z,G,!0),F1&&(S8=!0),Z=s2.current,Z!==null){switch(Z.tag){case 31:case 13:return N5===null?X3():Z.alternate===null&&e1===k6&&(e1=n3),Z.flags&=-257,Z.flags|=65536,Z.lanes=G,$===c3?Z.flags|=16384:(z=Z.updateQueue,z===null?Z.updateQueue=new Set([$]):z.add($),iK(w,$,G)),!1;case 22:return Z.flags|=65536,$===c3?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($)),iK(w,$,G)),!1}throw Error("Unexpected Suspense handler tag ("+Z.tag+"). This is a bug in React.")}return iK(w,$,G),X3(),!1}if(F1)return S8=!0,z=s2.current,z!==null?((z.flags&65536)===0&&(z.flags|=256),z.flags|=65536,z.lanes=G,$!==eU&&EZ(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))):($!==eU&&EZ(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=MK(w.stateNode,$,G),b$(w,G),e1!==L4&&(e1=O7)),!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(gJ===null?gJ=[Q]:gJ.push(Q),e1!==L4&&(e1=O7),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=MK(Z.stateNode,$,w),b$(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=OK(G),DK(G,w,Z,$),b$(Z,G),!1}Z=Z.return}while(Z!==null);return!1}function rw(w,z,Z,$){z.child=w===null?hk(z,null,Z,$):A7(z,w.child,Z,$)}function $V(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(X7(z),$=oW(w,z,Z,_,Q,G),B=tW(),w!==null&&!kw)return eW(w,z,G),X6(w,z,G);return F1&&B&&CW(z),z.flags|=1,rw(w,z,$,G),z.child}function YV(w,z,Z,$,G){if(w===null){var Q=Z.type;if(typeof Q==="function"&&!hW(Q)&&Q.defaultProps===void 0&&Z.compare===null)return Z=w7(Q),z.tag=15,z.type=Z,xK(z,Q),GV(w,z,Z,$,G);return w=vW(Z.type,null,$,z,z.mode,G),w.ref=z.ref,w.return=z,z.child=w}if(Q=w.child,!CK(w,G)){var _=Q.memoizedProps;if(Z=Z.compare,Z=Z!==null?Z:TZ,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 GV(w,z,Z,$,G){if(w!==null){var Q=w.memoizedProps;if(TZ(Q,$)&&w.ref===z.ref&&z.type===w.type)if(kw=!1,z.pendingProps=$=Q,CK(w,G))(w.flags&131072)!==0&&(kw=!0);else return z.lanes=w.lanes,X6(w,z,G)}return TK(w,z,Z,$,G)}function QV(w,z,Z,$){var G=$.children,Q=w!==null?w.memoizedState:null;if(w===null&&z.stateNode===null&&(z.stateNode={_visibility:HJ,_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 WV(w,z,Q,Z,$)}if((Z&536870912)!==0)z.memoizedState={baseLanes:0,cachePool:null},w!==null&&h$(z,Q!==null?Q.cachePool:null),Q!==null?OL(z,Q):iW(z),DL(z);else return $=z.lanes=536870912,WV(w,z,Q!==null?Q.baseLanes|Z:Z,Z,$)}else Q!==null?(h$(z,Q.cachePool),OL(z,Q),o6(z),z.memoizedState=null):(w!==null&&h$(z,null),iW(z),o6(z));return rw(w,z,G,Z),z.child}function fZ(w,z){return w!==null&&w.tag===22||z.stateNode!==null||(z.stateNode={_visibility:HJ,_pendingMarkers:null,_retryCache:null,_transitions:null}),z.sibling}function WV(w,z,Z,$,G){var Q=uW();return Q=Q===null?null:{parent:Vw._currentValue,pool:Q},z.memoizedState={baseLanes:Z,cachePool:Q},w!==null&&h$(z,null),iW(z),DL(z),w!==null&&V9(w,z,$,!0),z.childLanes=G,null}function o$(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=t$({mode:z.mode,children:z.children},w.mode),z.ref=w.ref,w.child=z,z.return=w,z}function KV(w,z,Z){return A7(z,w.child,null,Z),w=o$(z,z.pendingProps),w.flags|=2,u2(z),z.memoizedState=null,w}function BE(w,z,Z){var $=z.pendingProps,G=(z.flags&128)!==0;if(z.flags&=-129,w===null){if(F1){if($.mode==="hidden")return w=o$(z,$),z.lanes=536870912,fZ(null,w);if(aW(z),(w=l1)?(Z=bF(w,V5),Z=Z!==null&&Z.data===v7?Z:null,Z!==null&&($={dehydrated:Z,treeContext:ZL(),retryLane:536870912,hydrationErrors:null},z.memoizedState=$,$=wL(Z),$.return=z,z.child=$,ow=z,l1=null)):Z=null,Z===null)throw M$(z,w),c6(z);return z.lanes=536870912,null}return o$(z,$)}var Q=w.memoizedState;if(Q!==null){var _=Q.dehydrated;if(aW(z),G)if(z.flags&256)z.flags&=-257,z=KV(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(XL(),(Z&536870912)!==0&&J3(z),kw||V9(w,z,Z,!1),G=(Z&w.childLanes)!==0,kw||G){if($=g1,$!==null&&(_=Uw($,Z),_!==0&&_!==Q.retryLane))throw Q.retryLane=_,w2(w,_),Zw($,w,_),F_;X3(),z=KV(w,z,Z)}else w=Q.treeContext,l1=c2(_.nextSibling),ow=z,F1=!0,W4=null,S8=!1,a2=null,V5=!1,w!==null&&JL(z,w),z=o$(z,$),z.flags|=4096;return z}return Q=w.child,$={mode:$.mode,children:$.children},(Z&536870912)!==0&&(Z&w.lanes)!==0&&J3(z),w=w6(Q,$),w.ref=z.ref,z.child=w,w.return=z,w}function n$(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 TK(w,z,Z,$,G){if(Z.prototype&&typeof Z.prototype.render==="function"){var Q=S(Z)||"Unknown";ok[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),ok[Q]=!0)}if(z.mode&Z2&&i5.recordLegacyContextWarning(z,null),w===null&&(xK(z,z.type),Z.contextTypes&&(Q=S(Z)||"Unknown",tk[Q]||(tk[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)))),X7(z),Z=oW(w,z,Z,$,void 0,G),$=tW(),w!==null&&!kw)return eW(w,z,G),X6(w,z,G);return F1&&$&&CW(z),z.flags|=1,rw(w,z,Z,G),z.child}function UV(w,z,Z,$,G,Q){if(X7(z),F6=-1,PJ=w!==null&&w.type!==z.type,z.updateQueue=null,Z=nW(z,$,Z,G),TL(w,z),$=tW(),w!==null&&!kw)return eW(w,z,Q),X6(w,z,Q);return F1&&$&&CW(z),z.flags|=1,rw(w,z,Z,Q),z.child}function _V(w,z,Z,$,G){switch(q(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=OK(B),DK(B,_,z,f2(Q,z)),b$(z,B)}if(X7(z),z.stateNode===null){if(_=Q4,Q=Z.contextType,"contextType"in Z&&Q!==null&&(Q===void 0||Q.$$typeof!==E8)&&!ak.has(Z)&&(ak.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===NU?" 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&Z2){b0(!0);try{Q=new Z($,_)}finally{b0(!1)}}if(_=z.memoizedState=Q.state!==null&&Q.state!==void 0?Q.state:null,Q.updater=L_,z.stateNode=Q,Q._reactInternals=z,Q._reactInternalInstance=fk,typeof Z.getDerivedStateFromProps==="function"&&_===null&&(_=S(Z)||"Component",dk.has(_)||(dk.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()";pk.has(Q)||(pk.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&&!rk.has(Z)&&(rk.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&&!ik.has(Z)&&(ik.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"||uk.has(Z)||(uk.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"||Pw(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={},cW(z),_=Z.contextType,Q.context=typeof _==="object"&&_!==null?s1(_):Q4,Q.state===$&&(_=S(Z)||"Component",ck.has(_)||(ck.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&Z2&&i5.recordLegacyContextWarning(z,Q),i5.recordUnsafeLifecycleWarnings(z,Q),Q.state=z.memoizedState,_=Z.getDerivedStateFromProps,typeof _==="function"&&(AK(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"),L_.enqueueReplaceState(Q,Q.state,null)),bZ(z,$,Q,G),SZ(),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=W7(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!==_)&&wV(z,Q,$,_),B4=!1;var y=z.memoizedState;Q.state=y,bZ(z,$,Q,G),SZ(),a=z.memoizedState,i||y!==a||B4?(typeof D==="function"&&(AK(z,Z,D,$),a=z.memoizedState),(B=B4||eL(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,lW(w,z),_=z.memoizedProps,A=W7(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)&&wV(z,Q,$,B),B4=!1,y=z.memoizedState,Q.state=y,bZ(z,$,Q,G),SZ();var Z0=z.memoizedState;_!==D||y!==Z0||B4||w!==null&&w.dependencies!==null&&D$(w.dependencies)?(typeof i==="function"&&(AK(z,Z,i,$),Z0=z.memoizedState),(A=B4||eL(z,Z,A,$,y,Z0,B)||w!==null&&w.dependencies!==null&&D$(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,n$(w,z),_=(z.flags&128)!==0,B||_){if(B=z.stateNode,R0(z),_&&typeof Z.getDerivedStateFromError!=="function")Z=null,q2=-1;else if(Z=Bk(B),z.mode&Z2){b0(!0);try{Bk(B)}finally{b0(!1)}}z.flags|=1,w!==null&&_?(z.child=A7(z,w.child,null,G),z.child=A7(z,null,Z,G)):rw(w,z,Z,G),z.memoizedState=B.state,w=z.child}else w=X6(w,z,G);return G=z.stateNode,Q&&G.props!==$&&(Xz||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"),Xz=!0),w}function HV(w,z,Z,$){return J7(),z.flags|=256,rw(w,z,Z,$),z.child}function xK(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",ek[w]||(console.error("%s: Function components do not support getDerivedStateFromProps.",w),ek[w]=!0)),typeof z.contextType==="object"&&z.contextType!==null&&(z=S(z)||"Unknown",nk[z]||(console.error("%s: Function components do not support contextType.",z),nk[z]=!0))}function EK(w){return{baseLanes:w,cachePool:UL()}}function hK(w,z,Z){return w=w!==null?w.childLanes&~Z:0,z&&(w|=E2),w}function qV(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:(_w.current&hJ)!==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=bF(w,V5),Z=Z!==null&&Z.data!==v7?Z:null,Z!==null&&($={dehydrated:Z,treeContext:ZL(),retryLane:536870912,hydrationErrors:null},z.memoizedState=$,$=wL(Z),$.return=z,z.child=$,ow=z,l1=null)):Z=null,Z===null)throw M$(z,w),c6(z);return QU(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=t$({mode:"hidden",children:B},A),G=z7(G,A,Z,null),B.return=z,G.return=z,B.sibling=G,z.child=B,G=z.child,G.memoizedState=EK(Z),G.childLanes=hK(w,$,Z),z.memoizedState=N_,fZ(null,G)}return s6(z),vK(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=PK(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=t$({mode:"visible",children:G.children},A),B=z7(B,A,Z,null),B.flags|=2,G.return=z,B.return=z,G.sibling=B,z.child=G,A7(z,w.child,null,Z),G=z.child,G.memoizedState=EK(Z),G.childLanes=hK(w,$,Z),z.memoizedState=N_,z=fZ(null,G));else if(s6(z),XL(),(Z&536870912)!==0&&J3(z),QU(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"&&tU.set(B,G),EZ(G),z=PK(w,z,Z)}else if(kw||V9(w,z,Z,!1),$=(Z&w.childLanes)!==0,kw||$){if($=g1,$!==null&&(G=Uw($,Z),G!==0&&G!==D.retryLane))throw D.retryLane=G,w2(w,G),Zw($,w,G),F_;GU(i)||X3(),z=PK(w,z,Z)}else GU(i)?(z.flags|=192,z.child=w.child,z=null):(w=D.treeContext,l1=c2(i.nextSibling),ow=z,F1=!0,W4=null,S8=!1,a2=null,V5=!1,w!==null&&JL(z,w),z=vK(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=z7(B,A,Z,null),B.flags|=2),B.return=z,G.return=z,G.sibling=B,z.child=G,fZ(null,G),G=z.child,B=w.child.memoizedState,B===null?B=EK(Z):(A=B.cachePool,A!==null?(y=Vw._currentValue,A=A.parent!==y?{parent:y,pool:y}:A):A=UL(),B={baseLanes:B.baseLanes|Z,cachePool:A}),G.memoizedState=B,G.childLanes=hK(w,$,Z),z.memoizedState=N_,fZ(w.child,G);return D!==null&&(Z&62914560)===Z&&(Z&w.lanes)!==0&&J3(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 vK(w,z){return z=t$({mode:"visible",children:z},w.mode),z.return=w,w.child=z}function t$(w,z){return w=k(22,w,null,z),w.lanes=0,w}function PK(w,z,Z){return A7(z,w.child,null,Z),w=vK(z,z.pendingProps.children),w.flags|=2,z.memoizedState=null,w}function BV(w,z,Z){w.lanes|=z;var $=w.alternate;$!==null&&($.lanes|=z),RW(w.return,z,Z)}function IK(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 LV(w,z,Z){var $=z.pendingProps,G=$.revealOrder,Q=$.tail,_=$.children,B=_w.current;if(($=(B&hJ)!==0)?(B=B&wz|hJ,z.flags|=128):B&=wz,u(_w,B,z),B=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!wj[B])if(wj[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,!o3[B])if(Q==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")o3[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"?(o3[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"&&(o3[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(Pw(_)){for(B=0;B<_.length;B++)if(!jL(_[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(!jL(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(rw(w,z,_,Z),F1?(p6(),_=qJ):_=0,!$&&w!==null&&(w.flags&128)!==0)w:for(w=z.child;w!==null;){if(w.tag===13)w.memoizedState!==null&&BV(w,Z,z);else if(w.tag===19)BV(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&&y$(w)===null&&(G=Z),Z=Z.sibling;Z=G,Z===null?(G=z.child,z.child=null):(G=Z.sibling,Z.sibling=null),IK(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&&y$(w)===null){z.child=G;break}w=G.sibling,G.sibling=Z,Z=G,G=w}IK(z,!0,Z,null,Q,_);break;case"together":IK(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),q2=-1,F4|=z.lanes,(Z&z.childLanes)===0)if(w!==null){if(V9(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 CK(w,z){if((w.lanes&z)!==0)return!0;return w=w.dependencies,w!==null&&D$(w)?!0:!1}function LE(w,z,Z){switch(z.tag){case 3:r(z,z.stateNode.containerInfo),l6(z,Vw,w.memoizedState.cache),J7();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,aW(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 qV(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,$||(V9(w,z,Z,!1),$=(Z&z.childLanes)!==0),G){if($)return LV(w,z,Z);z.flags|=128}if(G=z.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),u(_w,_w.current,z),$)break;else return null;case 22:return z.lanes=0,QV(w,z,Z,z.pendingProps);case 24:l6(z,Vw,w.memoizedState.cache)}return X6(w,z,Z)}function SK(w,z,Z){if(z._debugNeedsRemount&&w!==null){Z=vW(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)kw=!0;else{if(!CK(w,Z)&&(z.flags&128)===0)return kw=!1,LE(w,z,Z);kw=(w.flags&131072)!==0?!0:!1}else{if(kw=!1,$=F1)p6(),$=(z.flags&1048576)!==0;$&&($=z.index,p6(),zL(z,qJ,$))}switch(z.lanes=0,z.tag){case 16:w:if($=z.pendingProps,w=i6(z.elementType),z.type=w,typeof w==="function")hW(w)?($=W7(w,$),z.tag=1,z.type=w=w7(w),z=_V(null,z,w,$,Z)):(z.tag=0,xK(z,w),z.type=w=w7(w),z=TK(null,z,w,$,Z));else{if(w!==void 0&&w!==null){if(G=w.$$typeof,G===zJ){z.tag=11,z.type=w=EW(w),z=$V(null,z,w,$,Z);break w}else if(G===F3){z.tag=14,z=YV(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 TK(w,z,z.type,z.pendingProps,Z);case 1:return $=z.type,G=W7($,z.pendingProps),_V(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,lW(w,z),bZ(z,$,null,Z);var _=z.memoizedState;if($=_.cache,l6(z,Vw,$),$!==Q.cache&&gW(z,[Vw],Z,!0),SZ(),$=_.element,Q.isDehydrated)if(Q={element:$,isDehydrated:!1,cache:_.cache},z.updateQueue.baseState=Q,z.memoizedState=Q,z.flags&256){z=HV(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),EZ(G),z=HV(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),ow=z,F1=!0,W4=null,S8=!1,a2=null,V5=!0,Z=hk(z,null,$,Z);for(z.child=Z;Z;)Z.flags=Z.flags&-3|4096,Z=Z.sibling}else{if(J7(),$===G){z=X6(w,z,Z);break w}rw(w,z,$,Z)}z=z.child}return z;case 26:return n$(w,z),w===null?(Z=dF(z.type,null,z.pendingProps,null))?z.memoizedState=Z:F1||(Z=z.type,w=z.pendingProps,$=Q0(Z4.current),$=Q3($).createElement(Z),$[sw]=z,$[U2]=w,aw($,Z,w),d0($),z.stateNode=$):z.memoizedState=dF(z.type,w.memoizedProps,z.pendingProps,w.memoizedState),null;case 27:return g(z),w===null&&F1&&($=Q0(Z4.current),G=o(),$=z.stateNode=fF(z.type,z.pendingProps,$,G,!1),S8||(G=xF($,z.type,z.pendingProps,G),G!==null&&(Z7(z,0).serverProps=G)),ow=z,V5=!0,G=l1,w4(z.type)?(u_=G,l1=c2($.firstChild)):l1=G),rw(w,z,z.pendingProps.children,Z),n$(w,z),w===null&&(z.flags|=4194304),z.child;case 5:return w===null&&F1&&(Q=o(),$=kW(z.type,Q.ancestorInfo),G=l1,(_=!G)||(_=Xh(G,z.type,z.pendingProps,V5),_!==null?(z.stateNode=_,S8||(Q=xF(_,z.type,z.pendingProps,Q),Q!==null&&(Z7(z,0).serverProps=Q)),ow=z,l1=c2(_.firstChild),V5=!1,Q=!0):Q=!1,_=!Q),_&&($&&M$(z,G),c6(z))),g(z),G=z.type,Q=z.pendingProps,_=w!==null?w.memoizedProps:null,$=Q.children,$U(G,Q)?$=null:_!==null&&$U(G,_)&&(z.flags|=32),z.memoizedState!==null&&(G=oW(w,z,QE,null,null,Z),rJ._currentValue=G),n$(w,z),rw(w,z,$,Z),z.child;case 6:return w===null&&F1&&(Z=z.pendingProps,w=o(),$=w.ancestorInfo.current,Z=$!=null?H$(Z,$.tag,w.ancestorInfo.implicitRootScope):!0,w=l1,($=!w)||($=$h(w,z.pendingProps,V5),$!==null?(z.stateNode=$,ow=z,l1=null,$=!0):$=!1,$=!$),$&&(Z&&M$(z,w),c6(z))),null;case 13:return qV(w,z,Z);case 4:return r(z,z.stateNode.containerInfo),$=z.pendingProps,w===null?z.child=A7(z,null,$,Z):rw(w,z,$,Z),z.child;case 11:return $V(w,z,z.type,z.pendingProps,Z);case 7:return rw(w,z,z.pendingProps,Z),z.child;case 8:return rw(w,z,z.pendingProps.children,Z),z.child;case 12:return z.flags|=4,z.flags|=2048,$=z.stateNode,$.effectDuration=-0,$.passiveEffectDuration=-0,rw(w,z,z.pendingProps.children,Z),z.child;case 10:return $=z.type,G=z.pendingProps,Q=G.value,"value"in G||zj||(zj=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),l6(z,$,Q),rw(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."),X7(z),G=s1(G),$=Y_($,G,void 0),z.flags|=1,rw(w,z,$,Z),z.child;case 14:return YV(w,z,z.type,z.pendingProps,Z);case 15:return GV(w,z,z.type,z.pendingProps,Z);case 19:return LV(w,z,Z);case 31:return BE(w,z,Z);case 22:return QV(w,z,Z,z.pendingProps);case 24:return X7(z),$=s1(Vw),w===null?(G=uW(),G===null&&(G=g1,Q=fW(),G.pooledCache=Q,$7(Q),Q!==null&&(G.pooledCacheLanes|=Z),G=Q),z.memoizedState={parent:$,cache:G},cW(z),l6(z,Vw,G)):((w.lanes&Z)!==0&&(lW(w,z),bZ(z,null,null,Z),SZ()),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,Vw,$)):($=Q.cache,l6(z,Vw,$),$!==G.cache&&gW(z,[Vw],Z,!0))),rw(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 bK(w,z,Z,$,G){if(z=(w.mode&yv)!==w1)z=!1;if(z){if(w.flags|=16777216,(G&335544128)===G)if(w.stateNode.complete)w.flags|=8192;else if(sV())w.flags|=8192;else throw j7=c3,Q_}else w.flags&=-16777217}function VV(w,z){if(z.type!=="stylesheet"||(z.state.loading&A5)!==C7)w.flags&=-16777217;else if(w.flags|=16777216,!iF(z))if(sV())w.flags|=8192;else throw j7=c3,Q_}function e$(w,z){z!==null&&(w.flags|=4),w.flags&16384&&(z=w.tag!==22?q1():536870912,w.lanes|=z,x7|=z)}function mZ(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 VE(w,z,Z){var $=z.pendingProps;switch(SW(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(Vw,z),e(z),Z.pendingContext&&(Z.context=Z.pendingContext,Z.pendingContext=null),w===null||w.child===null)L9(z)?(yW(),$6(z)):w===null||w.memoizedState.isDehydrated&&(z.flags&256)===0||(z.flags|=1024,bW());return m1(z),null;case 26:var{type:G,memoizedState:Q}=z;return w===null?($6(z),Q!==null?(m1(z),VV(z,Q)):(m1(z),bK(z,G,null,$,Z))):Q?Q!==w.memoizedState?($6(z),m1(z),VV(z,Q)):(m1(z),z.flags&=-16777217):(w=w.memoizedProps,w!==$&&$6(z),m1(z),bK(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(),L9(z)?$L(z,w):(w=fF(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(L9(z))$L(z,_);else{switch(Q=Q0(Z4.current),kW(G,_.ancestorInfo),_=_.context,Q=Q3(Q),_){case _z:Q=Q.createElementNS(y9,G);break;case LY:Q=Q.createElementNS(D3,G);break;default:switch(G){case"svg":Q=Q.createElementNS(y9,G);break;case"math":Q=Q.createElementNS(D3,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(Dj,G)||(Dj[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[sw]=z,Q[U2]=$;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(aw(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),bK(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(),L9(z)){if(w=z.stateNode,Z=z.memoizedProps,G=!S8,$=null,Q=ow,Q!==null)switch(Q.tag){case 3:G&&(G=RF(w,Z,$),G!==null&&(Z7(z,0).serverProps=G));break;case 27:case 5:$=Q.memoizedProps,G&&(G=RF(w,Z,$),G!==null&&(Z7(z,0).serverProps=G))}w[sw]=z,w=w.nodeValue===Z||$!==null&&$.suppressHydrationWarning===!0||AF(w.nodeValue,Z)?!0:!1,w||c6(z,!0)}else G=Z.ancestorInfo.current,G!=null&&H$($,G.tag,Z.ancestorInfo.implicitRootScope),w=Q3(w).createTextNode($),w[sw]=z,z.stateNode=w}return m1(z),null;case 31:if(Z=z.memoizedState,w===null||w.memoizedState!==null){if($=L9(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[sw]=z,m1(z),(z.mode&Y1)!==w1&&Z!==null&&(w=z.child,w!==null&&(z.treeBaseDuration-=w.treeBaseDuration))}else yW(),J7(),(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=bW(),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=L9(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[sw]=z,m1(z),(z.mode&Y1)!==w1&&G!==null&&(G=z.child,G!==null&&(z.treeBaseDuration-=G.treeBaseDuration))}else yW(),J7(),(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=bW(),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&&PZ(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),e$(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&&tK(z.stateNode.containerInfo),m1(z),null;case 10:return Z6(z.type,z),m1(z),null;case 19:if(t(_w,z),$=z.memoizedState,$===null)return m1(z),null;if(G=(z.flags&128)!==0,Q=$.rendering,Q===null)if(G)mZ($,!1);else{if(e1!==k6||w!==null&&(w.flags&128)!==0)for(w=z.child;w!==null;){if(Q=y$(w),Q!==null){z.flags|=128,mZ($,!1),w=Q.updateQueue,z.updateQueue=w,e$(z,w),z.subtreeFlags=0,w=Z;for(Z=z.child;Z!==null;)eB(Z,w),Z=Z.sibling;return u(_w,_w.current&wz|hJ,z),F1&&z6(z,$.treeForkCount),z.child}w=w.sibling}$.tail!==null&&gw()>JY&&(z.flags|=128,G=!0,mZ($,!1),z.lanes=4194304)}else{if(!G)if(w=y$(Q),w!==null){if(z.flags|=128,G=!0,w=w.updateQueue,z.updateQueue=w,e$(z,w),mZ($,!0),$.tail===null&&$.tailMode==="hidden"&&!Q.alternate&&!F1)return m1(z),null}else 2*gw()-$.renderingStartTime>JY&&Z!==536870912&&(z.flags|=128,G=!0,mZ($,!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=gw(),w.sibling=null,Z=_w.current,Z=G?Z&wz|hJ:Z&wz,u(_w,Z,z),F1&&z6(z,$.treeForkCount),w;return m1(z),null;case 22:case 23:return u2(z),rW(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&&e$(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(N7,z),null;case 24:return Z=null,w!==null&&(Z=w.memoizedState.cache),z.memoizedState.cache!==Z&&(z.flags|=2048),Z6(Vw,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 FE(w,z){switch(SW(z),z.tag){case 1:return w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&PZ(z),z):null;case 3:return Z6(Vw,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.");J7()}return w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&PZ(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.");J7()}return w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&PZ(z),z):null;case 19:return t(_w,z),null;case 4:return e(z),null;case 10:return Z6(z.type,z),null;case 22:case 23:return u2(z),rW(z),w!==null&&t(N7,z),w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&PZ(z),z):null;case 24:return Z6(Vw,z),null;case 25:return null;default:return null}}function FV(w,z){switch(SW(z),z.tag){case 3:Z6(Vw,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(_w,z);break;case 10:Z6(z.type,z);break;case 22:case 23:u2(z),rW(z),w!==null&&t(N7,z);break;case 24:Z6(Vw,z)}}function j8(w){return(w.mode&Y1)!==w1}function NV(w,z){j8(w)?(k8(),dZ(z,w),N8()):dZ(z,w)}function yK(w,z,Z){j8(w)?(k8(),A9(Z,w,z),N8()):A9(Z,w,z)}function dZ(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&B2)!==i3&&(Wz=!0),$=n(z,dv,Z),(w&B2)!==i3&&(Wz=!1),$!==void 0&&typeof $!=="function")){var Q=void 0;Q=(Z.tag&o2)!==0?"useLayoutEffect":(Z.tag&B2)!==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 A9(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&B2)!==i3&&(Wz=!0),G=z,n(G,uv,G,Z,B),(w&B2)!==i3&&(Wz=!1))}$=$.next}while($!==Q)}}catch(A){P1(z,z.return,A)}}function kV(w,z){j8(w)?(k8(),dZ(z,w),N8()):dZ(z,w)}function RK(w,z,Z){j8(w)?(k8(),A9(Z,w,z),N8()):A9(Z,w,z)}function jV(w){var z=w.updateQueue;if(z!==null){var Z=w.stateNode;w.type.defaultProps||"ref"in w.memoizedProps||Xz||(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,ML,z,Z)}catch($){P1(w,w.return,$)}}}function NE(w,z,Z){return w.getSnapshotBeforeUpdate(z,Z)}function kE(w,z){var{memoizedProps:Z,memoizedState:$}=z;z=w.stateNode,w.type.defaultProps||"ref"in w.memoizedProps||Xz||(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=W7(w.type,Z),Q=n(w,NE,z,G,$);Z=Zj,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 AV(w,z,Z){Z.props=W7(w.type,w.memoizedProps),Z.state=w.memoizedState,j8(w)?(k8(),n(w,jk,w,z,Z),N8()):n(w,jk,w,z,Z)}function jE(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 uZ(w,z){try{n(w,jE,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 MV(w,z,Z,$){var G=w.memoizedProps,Q=G.id,_=G.onCommit;G=G.onRender,z=z===null?"mount":"update",m3&&(z="nested-update"),typeof G==="function"&&G(Q,z,w.actualDuration,w.treeBaseDuration,w.actualStartTime,Z),typeof _==="function"&&_(Q,z,$,Z)}function AE(w,z,Z,$){var G=w.memoizedProps;w=G.id,G=G.onPostCommit,z=z===null?"mount":"update",m3&&(z="nested-update"),typeof G==="function"&&G(w,z,$,Z)}function OV(w){var{type:z,memoizedProps:Z,stateNode:$}=w;try{n(w,iE,$,z,Z,w)}catch(G){P1(w,w.return,G)}}function gK(w,z,Z){try{n(w,aE,w.stateNode,w.type,Z,z,w)}catch($){P1(w,w.return,$)}}function DV(w){return w.tag===5||w.tag===3||w.tag===26||w.tag===27&&w4(w.type)||w.tag===4}function fK(w){w:for(;;){for(;w.sibling===null;){if(w.return===null||DV(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 mK(w,z,Z){var $=w.tag;if($===5||$===6)w=w.stateNode,z?(IF(Z),(Z.nodeType===9?Z.body:Z.nodeName==="HTML"?Z.ownerDocument.body:Z).insertBefore(w,z)):(IF(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(mK(w,z,Z),w=w.sibling;w!==null;)mK(w,z,Z),w=w.sibling}function w3(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(w3(w,z,Z),w=w.sibling;w!==null;)w3(w,z,Z),w=w.sibling}function ME(w){for(var z,Z=w.return;Z!==null;){if(DV(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=fK(w),w3(w,Z,z);break;case 5:Z=z.stateNode,z.flags&32&&(PF(Z),z.flags&=-33),z=fK(w),w3(w,z,Z);break;case 3:case 4:z=z.stateNode.containerInfo,Z=fK(w),mK(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 TV(w){var{stateNode:z,memoizedProps:Z}=w;try{n(w,Kh,w.type,Z,z,w)}catch($){P1(w,w.return,$)}}function xV(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 OE(w,z){if(w=w.containerInfo,f_=kY,w=pB(w),MW(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;m_={focusedElem:w,selectionRange:Z},kY=!1;for(mw=z;mw!==null;)if(z=mw,w=z.child,(z.subtreeFlags&1028)!==0&&w!==null)w.return=z,mw=w;else for(;mw!==null;){switch(w=z=mw,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&&kE(w,Z);break;case 3:if((G&1024)!==0){if(w=w.stateNode.containerInfo,Z=w.nodeType,Z===9)YU(w);else if(Z===1)switch(w.nodeName){case"HEAD":case"HTML":case"BODY":YU(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,mw=w;break}mw=z.return}}function EV(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&&NV(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||Xz||(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,G_,Z,w),N8()):n(Z,G_,Z,w);else{var A=W7(Z.type,z.memoizedProps);z=z.memoizedState,Z.type.defaultProps||"ref"in Z.memoizedProps||Xz||(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,Fk,Z,w,A,z,w.__reactInternalSnapshotBeforeUpdate),N8()):n(Z,Fk,Z,w,A,z,w.__reactInternalSnapshotBeforeUpdate)}B&64&&jV(Z),B&512&&uZ(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,ML,B,A)}catch(i){P1(Z,Z.return,i)}}w.effectDuration+=x$(z);break;case 27:z===null&&B&4&&TV(Z);case 26:case 5:if(M8(w,Z),z===null){if(B&4)OV(Z);else if(B&64){w=Z.type,z=Z.memoizedProps,A=Z.stateNode;try{n(Z,rE,A,w,z,Z)}catch(i){P1(Z,Z.return,i)}}}B&512&&uZ(Z,Z.return);break;case 12:if(B&4){B=J6(),M8(w,Z),w=Z.stateNode,w.effectDuration+=vZ(B);try{n(Z,MV,Z,z,K4,w.effectDuration)}catch(i){P1(Z,Z.return,i)}}else M8(w,Z);break;case 31:M8(w,Z),B&4&&PV(w,Z);break;case 13:M8(w,Z),B&4&&IV(w,Z),B&64&&(w=Z.memoizedState,w!==null&&(w=w.dehydrated,w!==null&&(B=CE.bind(null,Z),Yh(w,B))));break;case 22:if(B=Z.memoizedState!==null||N6,!B){z=z!==null&&z.memoizedState!==null||jw,A=N6;var D=jw;N6=B,(jw=z)&&!D?(O8(w,Z,(Z.subtreeFlags&8772)!==0),(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&V$(Z,s0,e0)):M8(w,Z),N6=A,jw=D}break;case 30:break;default:M8(w,Z)}(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&((Jw||0.05<t1)&&H8(Z,s0,e0,t1,o1),Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null&&0.05<e0-s0&&(xV(Z.return.alternate,Z.return)||_8(Z,s0,e0,"Mount"))),d2($),L8(G),o1=Q,Jw=_}function hV(w){var z=w.alternate;z!==null&&(w.alternate=null,hV(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;)vV(w,z,Z),Z=Z.sibling}function vV(w,z,Z){if(z2&&typeof z2.onCommitFiberUnmount==="function")try{z2.onCommitFiberUnmount(S9,Z)}catch(D){v8||(v8=!0,console.error("React instrumentation encountered an error: %o",D))}var $=m2(),G=B8(),Q=V8(),_=F8();switch(Z.tag){case 26:jw||A8(Z,z),Y6(w,z,Z),Z.memoizedState?Z.memoizedState.count--:Z.stateNode&&(w=Z.stateNode,w.parentNode.removeChild(w));break;case 27:jw||A8(Z,z);var B=Aw,A=T2;w4(Z.type)&&(Aw=Z.stateNode,T2=!1),Y6(w,z,Z),n(Z,nZ,Z.stateNode),Aw=B,T2=A;break;case 5:jw||A8(Z,z);case 6:if(B=Aw,A=T2,Aw=null,Y6(w,z,Z),Aw=B,T2=A,Aw!==null)if(T2)try{n(Z,nE,Aw,Z.stateNode)}catch(D){P1(Z,z,D)}else try{n(Z,oE,Aw,Z.stateNode)}catch(D){P1(Z,z,D)}break;case 18:Aw!==null&&(T2?(w=Aw,CF(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w,Z.stateNode),v9(w)):CF(Aw,Z.stateNode));break;case 4:B=Aw,A=T2,Aw=Z.stateNode.containerInfo,T2=!0,Y6(w,z,Z),Aw=B,T2=A;break;case 0:case 11:case 14:case 15:A9(B2,Z,z),jw||yK(Z,z,o2),Y6(w,z,Z);break;case 1:jw||(A8(Z,z),B=Z.stateNode,typeof B.componentWillUnmount==="function"&&AV(Z,z,B)),Y6(w,z,Z);break;case 21:Y6(w,z,Z);break;case 22:jw=(B=jw)||Z.memoizedState!==null,Y6(w,z,Z),jw=B;break;default:Y6(w,z,Z)}(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&H8(Z,s0,e0,t1,o1),d2($),L8(G),o1=Q,Jw=_}function PV(w,z){if(z.memoizedState===null&&(w=z.alternate,w!==null&&(w=w.memoizedState,w!==null))){w=w.dehydrated;try{n(z,Qh,w)}catch(Z){P1(z,z.return,Z)}}}function IV(w,z){if(z.memoizedState===null&&(w=z.alternate,w!==null&&(w=w.memoizedState,w!==null&&(w=w.dehydrated,w!==null))))try{n(z,Wh,w)}catch(Z){P1(z,z.return,Z)}}function DE(w){switch(w.tag){case 31:case 13:case 19:var z=w.stateNode;return z===null&&(z=w.stateNode=new Jj),z;case 22:return w=w.stateNode,z=w._retryCache,z===null&&(z=w._retryCache=new Jj),z;default:throw Error("Unexpected Suspense handler tag ("+w.tag+"). This is a bug in React.")}}function z3(w,z){var Z=DE(w);z.forEach(function($){if(!Z.has($)){if(Z.add($),P8)if($z!==null&&Yz!==null)iZ(Yz,$z);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=SE.bind(null,w,$);$.then(G,G)}})}function O2(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)){Aw=A.stateNode,T2=!1;break w}break;case 5:Aw=A.stateNode,T2=!1;break w;case 3:case 4:Aw=A.stateNode.containerInfo,T2=!0;break w}A=A.return}if(Aw===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");vV(G,Q,_),Aw=null,T2=!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;)CV(z,w),z=z.sibling}function CV(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:O2(z,w),D2(w),B&4&&(A9(B2|k5,w,w.return),dZ(B2|k5,w),yK(w,w.return,o2|k5));break;case 1:if(O2(z,w),D2(w),B&512&&(jw||_===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,O2(z,w),D2(w),B&512&&(jw||_===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[XJ]||D[sw]||D.namespaceURI===y9||D.hasAttribute("itemprop"))D=A.createElement(B),A.head.insertBefore(D,A.querySelector("head > title"));aw(D,B,_),D[sw]=w,d0(D),B=D;break w;case"link":var i=cF("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),aw(D,B,_),A.head.appendChild(D);break;case"meta":if(i=cF("meta","content",A).get(B+(_.content||""))){for(a=0;a<i.length;a++)if(D=i[a],H0(_.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),aw(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[sw]=w,d0(D),B=D}w.stateNode=B}else lF(A,w.type,w.stateNode);else w.stateNode=pF(A,B,w.memoizedProps);else D!==B?(D===null?_.stateNode!==null&&(_=_.stateNode,_.parentNode.removeChild(_)):D.count--,B===null?lF(A,w.type,w.stateNode):pF(A,B,w.memoizedProps)):B===null&&w.stateNode!==null&&gK(w,w.memoizedProps,_.memoizedProps)}break;case 27:O2(z,w),D2(w),B&512&&(jw||_===null||A8(_,_.return)),_!==null&&B&4&&gK(w,w.memoizedProps,_.memoizedProps);break;case 5:if(O2(z,w),D2(w),B&512&&(jw||_===null||A8(_,_.return)),w.flags&32){A=w.stateNode;try{n(w,PF,A)}catch(E0){P1(w,w.return,E0)}}B&4&&w.stateNode!=null&&(A=w.memoizedProps,gK(w,A,_!==null?_.memoizedProps:A)),B&1024&&(k_=!0,w.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(O2(z,w),D2(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,sE,A,_,B)}catch(E0){P1(w,w.return,E0)}}break;case 3:if(A=J6(),VY=null,D=a5,a5=W3(z.containerInfo),O2(z,w),a5=D,D2(w),B&4&&_!==null&&_.memoizedState.isDehydrated)try{n(w,Gh,z.containerInfo)}catch(E0){P1(w,w.return,E0)}k_&&(k_=!1,SV(w)),z.effectDuration+=x$(A);break;case 4:B=a5,a5=W3(w.stateNode.containerInfo),O2(z,w),D2(w),a5=B;break;case 12:B=J6(),O2(z,w),D2(w),w.stateNode.effectDuration+=vZ(B);break;case 31:O2(z,w),D2(w),B&4&&(B=w.updateQueue,B!==null&&(w.updateQueue=null,z3(w,B)));break;case 13:O2(z,w),D2(w),w.child.flags&8192&&w.memoizedState!==null!==(_!==null&&_.memoizedState!==null)&&(ZY=gw()),B&4&&(B=w.updateQueue,B!==null&&(w.updateQueue=null,z3(w,B)));break;case 22:A=w.memoizedState!==null;var y=_!==null&&_.memoizedState!==null,Z0=N6,M0=jw;if(N6=Z0||A,jw=M0||y,O2(z,w),jw=M0,N6=Z0,y&&!A&&!Z0&&!M0&&(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&V$(w,s0,e0),D2(w),B&8192)w:for(z=w.stateNode,z._visibility=A?z._visibility&~HJ:z._visibility|HJ,!A||_===null||y||N6||jw||(K7(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,eE,D):n(y,Zh,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,wh,i):n(y,Jh,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,tE,a):n(y,zh,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,z3(w,_))));break;case 19:O2(z,w),D2(w),B&4&&(B=w.updateQueue,B!==null&&(w.updateQueue=null,z3(w,B)));break;case 30:break;case 21:break;default:O2(z,w),D2(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&((Jw||0.05<t1)&&H8(w,s0,e0,t1,o1),w.alternate===null&&w.return!==null&&w.return.alternate!==null&&0.05<e0-s0&&(xV(w.return.alternate,w.return)||_8(w,s0,e0,"Mount"))),d2(Z),L8($),o1=G,Jw=Q}function D2(w){var z=w.flags;if(z&2){try{n(w,ME,w)}catch(Z){P1(w,w.return,Z)}w.flags&=-3}z&4096&&(w.flags&=-4097)}function SV(w){if(w.subtreeFlags&1024)for(w=w.child;w!==null;){var z=w;SV(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;)EV(w,z.alternate,z),z=z.sibling}function bV(w){var z=m2(),Z=B8(),$=V8(),G=F8();switch(w.tag){case 0:case 11:case 14:case 15:yK(w,w.return,o2),K7(w);break;case 1:A8(w,w.return);var Q=w.stateNode;typeof Q.componentWillUnmount==="function"&&AV(w,w.return,Q),K7(w);break;case 27:n(w,nZ,w.stateNode);case 26:case 5:A8(w,w.return),K7(w);break;case 22:w.memoizedState===null&&K7(w);break;case 30:K7(w);break;default:K7(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&H8(w,s0,e0,t1,o1),d2(z),L8(Z),o1=$,Jw=G}function K7(w){for(w=w.child;w!==null;)bV(w),w=w.sibling}function yV(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,$),NV(Z,o2);break;case 1:if(O8(w,Z,$),z=Z.stateNode,typeof z.componentDidMount==="function"&&n(Z,G_,Z,z),z=Z.updateQueue,z!==null){w=Z.stateNode;try{n(Z,GE,z,w)}catch(D){P1(Z,Z.return,D)}}$&&A&64&&jV(Z),uZ(Z,Z.return);break;case 27:TV(Z);case 26:case 5:O8(w,Z,$),$&&z===null&&A&4&&OV(Z),uZ(Z,Z.return);break;case 12:if($&&A&4){A=J6(),O8(w,Z,$),$=Z.stateNode,$.effectDuration+=vZ(A);try{n(Z,MV,Z,z,K4,$.effectDuration)}catch(D){P1(Z,Z.return,D)}}else O8(w,Z,$);break;case 31:O8(w,Z,$),$&&A&4&&PV(w,Z);break;case 13:O8(w,Z,$),$&&A&4&&IV(w,Z);break;case 22:Z.memoizedState===null&&O8(w,Z,$),uZ(Z,Z.return);break;case 30:break;default:O8(w,Z,$)}(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&H8(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;)yV(w,z.alternate,z,Z),z=z.sibling}function dK(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&&$7(w),Z!=null&&hZ(Z))}function uK(w,z){w=null,z.alternate!==null&&(w=z.alternate.memoizedState.cache),z=z.memoizedState.cache,z!==w&&($7(z),w!=null&&hZ(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;RV(w,z,Z,$,Q!==null?Q.actualStartTime:G),z=Q}}function RV(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&&F$(z,z.actualStartTime,G,Iw,Z),u5(w,z,Z,$,G),i&2048&&kV(z,L2|k5);break;case 1:(z.mode&Y1)!==w1&&0<z.actualStartTime&&((z.flags&128)!==0?DW(z,z.actualStartTime,G,[]):(z.flags&1)!==0&&F$(z,z.actualStartTime,G,Iw,Z)),u5(w,z,Z,$,G);break;case 3:var a=J6(),y=Iw;Iw=z.alternate!==null&&z.alternate.memoizedState.isDehydrated&&(z.flags&256)===0,u5(w,z,Z,$,G),Iw=y,i&2048&&(Z=null,z.alternate!==null&&(Z=z.alternate.memoizedState.cache),$=z.memoizedState.cache,$!==Z&&($7($),Z!=null&&hZ(Z))),w.passiveEffectDuration+=x$(a);break;case 12:if(i&2048){i=J6(),u5(w,z,Z,$,G),w=z.stateNode,w.passiveEffectDuration+=vZ(i);try{n(z,AE,z,z.alternate,K4,w.passiveEffectDuration)}catch(Z0){P1(z,z.return,Z0)}}else u5(w,z,Z,$,G);break;case 31:i=Iw,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?(Iw=!1,a=a.hydrationErrors,a!==null&&DW(z,z.actualStartTime,G,a)):Iw=!0):Iw=!1,u5(w,z,Z,$,G),Iw=i;break;case 13:i=Iw,a=z.alternate!==null?z.alternate.memoizedState:null,y=z.memoizedState,a===null||a.dehydrated===null||y!==null&&y.dehydrated!==null?Iw=!1:(y=z.deletions,y!==null&&0<y.length&&y[0].tag===18?(Iw=!1,a=a.hydrationErrors,a!==null&&DW(z,z.actualStartTime,G,a)):Iw=!0),u5(w,z,Z,$,G),Iw=i;break;case 23:break;case 22:y=z.stateNode,a=z.alternate,z.memoizedState!==null?y._visibility&W6?u5(w,z,Z,$,G):pZ(w,z,Z,$,G):y._visibility&W6?u5(w,z,Z,$,G):(y._visibility|=W6,M9(w,z,Z,$,(z.subtreeFlags&10256)!==0||z.actualDuration!==0&&(z.alternate===null||z.alternate.child!==z.child),G),(z.mode&Y1)===w1||Iw||(w=z.actualStartTime,0<=w&&0.05<G-w&&V$(z,w,G),0<=s0&&0<=e0&&0.05<e0-s0&&V$(z,s0,e0))),i&2048&&dK(a,z);break;case 24:u5(w,z,Z,$,G),i&2048&&uK(z.alternate,z);break;default:u5(w,z,Z,$,G)}if((z.mode&Y1)!==w1){if(w=!Iw&&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)&&H8(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 M9(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;gV(w,z,Z,$,G,_!==null?_.actualStartTime:Q),z=_}}function gV(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&&F$(z,z.actualStartTime,Q,Iw,Z);var a=z.flags;switch(z.tag){case 0:case 11:case 15:M9(w,z,Z,$,G,Q),kV(z,L2);break;case 23:break;case 22:var y=z.stateNode;z.memoizedState!==null?y._visibility&W6?M9(w,z,Z,$,G,Q):pZ(w,z,Z,$,Q):(y._visibility|=W6,M9(w,z,Z,$,G,Q)),G&&a&2048&&dK(z.alternate,z);break;case 24:M9(w,z,Z,$,G,Q),G&&a&2048&&uK(z.alternate,z);break;default:M9(w,z,Z,$,G,Q)}(z.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&H8(z,s0,e0,t1,o1),d2(_),L8(B),o1=A,Jw=D,Y4=i}function pZ(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&&F$(Q,Q.actualStartTime,D,Iw,B);var a=Q.flags;switch(Q.tag){case 22:pZ(_,Q,B,A,D),a&2048&&dK(Q.alternate,Q);break;case 24:pZ(_,Q,B,A,D),a&2048&&uK(Q.alternate,Q);break;default:pZ(_,Q,B,A,D)}Y4=i,Q=z}}function O9(w,z,Z){if(w.subtreeFlags&CJ)for(w=w.child;w!==null;)fV(w,z,Z),w=w.sibling}function fV(w,z,Z){switch(w.tag){case 26:O9(w,z,Z),w.flags&CJ&&w.memoizedState!==null&&Hh(Z,a5,w.memoizedState,w.memoizedProps);break;case 5:O9(w,z,Z);break;case 3:case 4:var $=a5;a5=W3(w.stateNode.containerInfo),O9(w,z,Z),a5=$;break;case 22:w.memoizedState===null&&($=w.alternate,$!==null&&$.memoizedState!==null?($=CJ,CJ=16777216,O9(w,z,Z),CJ=$):O9(w,z,Z));break;default:O9(w,z,Z)}}function mV(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 cZ(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();mw=$,pV($,w),($.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&_8($,s0,e0,"Unmount"),d2(G)}mV(w)}if(w.subtreeFlags&10256)for(w=w.child;w!==null;)dV(w),w=w.sibling}function dV(w){var z=m2(),Z=B8(),$=V8(),G=F8();switch(w.tag){case 0:case 11:case 15:cZ(w),w.flags&2048&&RK(w,w.return,L2|k5);break;case 3:var Q=J6();cZ(w),w.stateNode.passiveEffectDuration+=x$(Q);break;case 12:Q=J6(),cZ(w),w.stateNode.passiveEffectDuration+=vZ(Q);break;case 22:Q=w.stateNode,w.memoizedState!==null&&Q._visibility&W6&&(w.return===null||w.return.tag!==13)?(Q._visibility&=~W6,Z3(w),(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&_8(w,s0,e0,"Disconnect")):cZ(w);break;default:cZ(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&H8(w,s0,e0,t1,o1),d2(z),L8(Z),Jw=G,o1=$}function Z3(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();mw=$,pV($,w),($.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&_8($,s0,e0,"Unmount"),d2(G)}mV(w)}for(w=w.child;w!==null;)uV(w),w=w.sibling}function uV(w){var z=m2(),Z=B8(),$=V8(),G=F8();switch(w.tag){case 0:case 11:case 15:RK(w,w.return,L2),Z3(w);break;case 22:var Q=w.stateNode;Q._visibility&W6&&(Q._visibility&=~W6,Z3(w));break;default:Z3(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&H8(w,s0,e0,t1,o1),d2(z),L8(Z),Jw=G,o1=$}function pV(w,z){for(;mw!==null;){var Z=mw,$=Z,G=z,Q=m2(),_=B8(),B=V8(),A=F8();switch($.tag){case 0:case 11:case 15:RK($,G,L2);break;case 23:case 22:$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool,G!=null&&$7(G));break;case 24:hZ($.memoizedState.cache)}if(($.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&H8($,s0,e0,t1,o1),d2(Q),L8(_),Jw=A,o1=B,$=Z.child,$!==null)$.return=Z,mw=$;else w:for(Z=w;mw!==null;){if($=mw,Q=$.sibling,_=$.return,hV($),$===Z){mw=null;break w}if(Q!==null){Q.return=_,mw=Q;break w}mw=_}}}function TE(){rv.forEach(function(w){return w()})}function cV(){var w=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return w||Y0.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),w}function p2(w){if((M1&Cw)!==dw&&Q1!==0)return Q1&-Q1;var z=Y0.T;return z!==null?(z._updatedFibers||(z._updatedFibers=new Set),z._updatedFibers.add(w),oK()):s()}function lV(){if(E2===0)if((Q1&536870912)===0||F1){var w=j3;j3<<=1,(j3&3932160)===0&&(j3=262144),E2=w}else E2=536870912;return w=s2.current,w!==null&&(w.flags|=32),E2}function Zw(w,z,Z){if(Wz&&console.error("useInsertionEffect must not schedule updates."),P_&&(YY=!0),w===g1&&(S1===D7||S1===T7)||w.cancelPendingCommit!==null)T9(w,0),t6(w,Q1,E2,!1);if(W1(w,Z),(M1&Cw)!==dw&&w===g1){if(h8)switch(z.tag){case 0:case 11:case 15:w=K1&&d(K1)||"Unknown",Fj.has(w)||(Fj.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:Vj||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Vj=!0)}}else P8&&J1(w,z,Z),yE(z),w===g1&&((M1&Cw)===dw&&(N4|=Z),e1===L4&&t6(w,Q1,E2,!1)),D8(w)}function iV(w,z,Z){if((M1&(Cw|n2))!==dw)throw Error("Should not already be working.");if(Q1!==0&&K1!==null){var $=K1,G=gw();switch(Kk){case yJ:case D7:var Q=NJ;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 T7:Q=NJ,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-NJ,3>$||console.timeStamp("Blocked",NJ,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))?EE(w,z):cK(w,z,!0);var _=Z;do{if(Q===k6){Gz&&!Z&&t6(w,z,0,!1),z=S1,NJ=Fw(),Kk=z;break}else{if($=gw(),G=w.current.alternate,_&&!xE(G)){g2(z),G=fw,Q=$,!c1||Q<=G||(Ww?Ww.run(console.timeStamp.bind(console,"Teared Render",G,Q,B1,H1,"error")):console.timeStamp("Teared Render",G,Q,B1,H1,"error")),U7(z,$),Q=cK(w,z,!1),_=!1;continue}if(Q===O7){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),TW(fw,$,z,Ww),U7(z,$),z=B;w:{$=w,Q=_,_=gJ;var A=$.current.memoizedState.isDehydrated;if(A&&(T9($,B).flags|=256),B=cK($,B,!1),B!==O7){if(M_&&!A){$.errorRecoveryDisabledLanes|=Q,N4|=Q,Q=L4;break w}$=V2,V2=_,$!==null&&(V2===null?V2=$:V2.push.apply(V2,$))}Q=B}if(_=!1,Q!==O7)continue;else $=gw()}}if(Q===bJ){g2(z),TW(fw,$,z,Ww),U7(z,$),T9(w,0),t6(w,z,0,!0);break}w:{switch(Z=w,Q){case k6:case bJ:throw Error("Root did not complete. This is a bug in React.");case L4:if((z&4194048)!==z)break;case t3:g2(z),iB(fw,$,z,Ww),U7(z,$),G=z,(G&127)!==0?R3=$:(G&4194048)!==0&&(g3=$),t6(Z,z,E2,!V4);break w;case O7:V2=null;break;case n3:case Xj:break;default:throw Error("Unknown root exit status.")}if(Y0.actQueue!==null)lK(Z,G,z,V2,fJ,zY,E2,N4,x7,Q,null,null,fw,$);else{if((z&62914560)===z&&(_=ZY+Gj-gw(),10<_)){if(t6(Z,z,E2,!V4),x0(Z,0,!0)!==0)break w;s5=z,Z.timeoutHandle=Tj(rV.bind(null,Z,G,V2,fJ,zY,z,E2,N4,x7,V4,Q,"Throttled",fw,$),_);break w}rV(Z,G,V2,fJ,zY,z,E2,N4,x7,V4,Q,null,fw,$)}}}break}while(1);D8(w)}function rV(w,z,Z,$,G,Q,_,B,A,D,i,a,y,Z0){w.timeoutHandle=I7;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},fV(z,Q,E0),M0=(Q&62914560)===Q?ZY-gw():(Q&4194048)===Q?Yj-gw():0,M0=qh(E0,M0),M0!==null){s5=Q,w.cancelPendingCommit=M0(lK.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}}lK(w,z,Q,Z,$,G,_,B,A,i,E0,a,y,Z0)}function xE(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&=~O_,z&=~N4,w.suspendedLanes|=z,w.pingedLanes&=~z,$&&(w.warmLanes|=z),$=w.expirationTimes;for(var G=z;0<G;){var Q=31-K2(G),_=1<<Q;$[Q]=-1,G&=~_}Z!==0&&zw(w,Z,z)}function D9(){return(M1&(Cw|n2))===dw?(rZ(0,!1),!1):!0}function pK(){if(K1!==null){if(S1===x2)var w=K1.return;else w=K1,O$(),wK(w),t9=null,EJ=0,w=K1;for(;w!==null;)FV(w.alternate,w),w=w.return;K1=null}}function U7(w,z){(w&127)!==0&&(U4=z),(w&4194048)!==0&&(y8=z),(w&62914560)!==0&&(Qk=z),(w&2080374784)!==0&&(Wk=z)}function T9(w,z){c1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",H1,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",H1,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",H1,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",H1,"primary-light"));var Z=fw;if(fw=Fw(),Q1!==0&&0<Z){if(g2(Q1),e1===n3||e1===L4)iB(Z,fw,z,Ww);else{var $=fw,G=Ww;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,H1,Q)):console.timeStamp(_,Z,$,B1,H1,Q)}}U7(Q1,fw)}if(Z=Ww,Ww=null,(z&127)!==0){Ww=LJ,G=0<=b8&&b8<U4?U4:b8,$=0<=L7&&L7<U4?U4:L7,Q=0<=$?$:0<=G?G:fw,0<=R3?(g2(2),rB(R3,Q,z,Z)):(f3&127)!==0&&(g2(2),xZ(U4,Q,B6)),Z=G;var B=$,A=VJ,D=0<s9,i=_4===BJ,a=_4===y3;if(G=fw,$=LJ,Q=Z_,_=J_,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,H1,y)):console.timeStamp(D?"Consecutive":"Event: "+A,B,Z,B1,H1,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:H1,color:B}}},$?$.run(performance.measure.bind(performance,i,Z)):performance.measure(i,Z))}b8=-1.1,_4=0,J_=Z_=null,R3=-1.1,s9=L7,L7=-1.1,U4=Fw()}if((z&4194048)!==0&&(Ww=FJ,G=0<=q6&&q6<y8?y8:q6,Z=0<=F5&&F5<y8?y8:F5,$=0<=H4&&H4<y8?y8:H4,Q=0<=$?$:0<=Z?Z:fw,0<=g3?(g2(256),rB(g3,Q,z,Ww)):(f3&4194048)!==0&&(g2(256),xZ(y8,Q,B6)),a=$,B=V7,A=0<q4,D=X_===y3,Q=fw,$=FJ,_=Yk,i=Gk,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,H1,y)):console.timeStamp(A?"Consecutive":"Event: "+B,a,G,B1,H1,y)),Z>G&&($?$.run(console.timeStamp.bind(console,"Action",G,Z,B1,H1,"primary-dark")):console.timeStamp("Action",G,Z,B1,H1,"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:H1,color:"primary-light"}}},$?$.run(performance.measure.bind(performance,G,Z)):performance.measure(G,Z))),F5=q6=-1.1,X_=0,g3=-1.1,q4=H4,H4=-1.1,y8=Fw()),(z&62914560)!==0&&(f3&62914560)!==0&&(g2(4194304),xZ(Qk,fw,B6)),(z&2080374784)!==0&&(f3&2080374784)!==0&&(g2(268435456),xZ(Wk,fw,B6)),Z=w.timeoutHandle,Z!==I7&&(w.timeoutHandle=I7,YP(Z)),Z=w.cancelPendingCommit,Z!==null&&(w.cancelPendingCommit=null,Z()),s5=0,pK(),g1=w,K1=Z=w6(w.current,null),Q1=z,S1=x2,t2=null,V4=!1,Gz=l0(w,z),M_=!1,e1=k6,x7=E2=O_=N4=F4=0,V2=gJ=null,zY=!1,(z&8)!==0&&(z|=z&32),$=w.entangledLanes,$!==0)for(w=w.entanglements,$&=z;0<$;)G=31-K2($),Q=1<<G,z|=w[G],$&=~Q;return g8=z,N$(),w=wk(),1000<w-eN&&(Y0.recentlyCreatedOwnerStacks=0,eN=w),i5.discardPendingWarnings(),Z}function aV(w,z){z1=null,Y0.H=IJ,Y0.getCurrentStack=null,h8=!1,i2=null,z===n9||z===p3?(z=BL(),S1=yJ):z===Q_?(z=BL(),S1=$j):S1=z===F_?A_:z!==null&&typeof z==="object"&&typeof z.then==="function"?RJ:e3,t2=z;var Z=K1;Z===null?(e1=bJ,s$(w,f2(z,w.current))):Z.mode&Y1&&dW(Z)}function sV(){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 oV(){var w=Y0.H;return Y0.H=IJ,w===null?IJ:w}function nV(){var w=Y0.A;return Y0.A=iv,w}function J3(w){Ww===null&&(Ww=w._debugTask==null?null:w._debugTask)}function X3(){e1=L4,V4||(Q1&4194048)!==Q1&&s2.current!==null||(Gz=!0),(F4&134217727)===0&&(N4&134217727)===0||g1===null||t6(g1,Q1,E2,!1)}function cK(w,z,Z){var $=M1;M1|=Cw;var G=oV(),Q=nV();if(g1!==w||Q1!==z){if(P8){var _=w.memoizedUpdaters;0<_.size&&(iZ(w,Q1),_.clear()),N1(w,z)}fJ=null,T9(w,z)}z=!1,_=e1;w:do try{if(S1!==x2&&K1!==null){var B=K1,A=t2;switch(S1){case A_:pK(),_=t3;break w;case yJ:case D7:case T7:case RJ:s2.current===null&&(z=!0);var D=S1;if(S1=x2,t2=null,x9(w,B,A,D),Z&&Gz){_=k6;break w}break;default:D=S1,S1=x2,t2=null,x9(w,B,A,D)}}tV(),_=e1;break}catch(i){aV(w,i)}while(1);return z&&w.shellSuspendCounter++,O$(),M1=$,Y0.H=G,Y0.A=Q,K1===null&&(g1=null,Q1=0,N$()),_}function tV(){for(;K1!==null;)eV(K1)}function EE(w,z){var Z=M1;M1|=Cw;var $=oV(),G=nV();if(g1!==w||Q1!==z){if(P8){var Q=w.memoizedUpdaters;0<Q.size&&(iZ(w,Q1),Q.clear()),N1(w,z)}fJ=null,JY=gw()+Qj,T9(w,z)}else Gz=l0(w,z);w:do try{if(S1!==x2&&K1!==null)z:switch(z=K1,Q=t2,S1){case e3:S1=x2,t2=null,x9(w,z,Q,e3);break;case D7:case T7:if(HL(Q)){S1=x2,t2=null,wF(z);break}z=function(){S1!==D7&&S1!==T7||g1!==w||(S1=wY),D8(w)},Q.then(z,z);break w;case yJ:S1=wY;break w;case $j:S1=j_;break w;case wY:HL(Q)?(S1=x2,t2=null,wF(z)):(S1=x2,t2=null,x9(w,z,Q,wY));break;case j_:var _=null;switch(K1.tag){case 26:_=K1.memoizedState;case 5:case 27:var B=K1;if(_?iF(_):B.stateNode.complete){S1=x2,t2=null;var A=B.sibling;if(A!==null)K1=A;else{var D=B.return;D!==null?(K1=D,$3(D)):K1=null}break z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}S1=x2,t2=null,x9(w,z,Q,j_);break;case RJ:S1=x2,t2=null,x9(w,z,Q,RJ);break;case A_:pK(),e1=t3;break w;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y0.actQueue!==null?tV():hE();break}catch(i){aV(w,i)}while(1);if(O$(),Y0.H=$,Y0.A=G,M1=Z,K1!==null)return k6;return g1=null,Q1=0,N$(),e1}function hE(){for(;K1!==null&&!xh();)eV(K1)}function eV(w){var z=w.alternate;(w.mode&Y1)!==w1?(mW(w),z=n(w,SK,z,w,g8),dW(w)):z=n(w,SK,z,w,g8),w.memoizedProps=w.pendingProps,z===null?$3(w):K1=z}function wF(w){var z=n(w,vE,w);w.memoizedProps=w.pendingProps,z===null?$3(w):K1=z}function vE(w){var z=w.alternate,Z=(w.mode&Y1)!==w1;switch(Z&&mW(w),w.tag){case 15:case 0:z=UV(z,w,w.pendingProps,w.type,void 0,Q1);break;case 11:z=UV(z,w,w.pendingProps,w.type.render,w.ref,Q1);break;case 5:wK(w);default:FV(z,w),w=K1=eB(w,g8),z=SK(z,w,g8)}return Z&&dW(w),z}function x9(w,z,Z,$){O$(),wK(z),t9=null,EJ=0;var G=z.return;try{if(qE(w,G,z,Z,Q1)){e1=bJ,s$(w,f2(Z,w.current)),K1=null;return}}catch(Q){if(G!==null)throw K1=G,Q;e1=bJ,s$(w,f2(Z,w.current)),K1=null;return}if(z.flags&32768){if(F1||$===e3)w=!0;else if(Gz||(Q1&536870912)!==0)w=!1;else if(V4=w=!0,$===D7||$===T7||$===yJ||$===RJ)$=s2.current,$!==null&&$.tag===13&&($.flags|=16384);zF(z,w)}else $3(z)}function $3(w){var z=w;do{if((z.flags&32768)!==0){zF(z,V4);return}var Z=z.alternate;if(w=z.return,mW(z),Z=n(z,VE,Z,z,g8),(z.mode&Y1)!==w1&&QL(z),Z!==null){K1=Z;return}if(z=z.sibling,z!==null){K1=z;return}K1=z=w}while(z!==null);e1===k6&&(e1=Xj)}function zF(w,z){do{var Z=FE(w.alternate,w);if(Z!==null){Z.flags&=32767,K1=Z;return}if((w.mode&Y1)!==w1){QL(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=t3,K1=null}function lK(w,z,Z,$,G,Q,_,B,A,D,i,a,y,Z0){w.cancelPendingCommit=null;do lZ();while(Mw!==j4);if(i5.flushLegacyContextWarning(),i5.flushPendingUnsafeLifecycleWarnings(),(M1&(Cw|n2))!==dw)throw Error("Should not already be working.");if(g2(Z),D===O7?TW(y,Z0,Z,Ww):$!==null?zE(y,Z0,Z,$,z!==null&&z.alternate!==null&&z.alternate.memoizedState.isDehydrated&&(z.flags&256)!==0,Ww):wE(y,Z0,Z,Ww),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|=nU,Gw(w,Z,Q,_,B,A),w===g1&&(K1=g1=null,Q1=0),Qz=z,A4=w,s5=Z,x_=Q,h_=G,qj=$,E_=Z0,Bj=a,o5=XY,Lj=null,z.actualDuration!==0||(z.subtreeFlags&10256)!==0||(z.flags&10256)!==0?(w.callbackNode=null,w.callbackPriority=0,bE(C9,function(){return lJ=window.event,o5===XY&&(o5=T_),YF(),null})):(w.callbackNode=null,w.callbackPriority=0),H6=null,K4=Fw(),a!==null&&ZE(Z0,K4,a,Ww),$=(z.flags&13878)!==0,(z.subtreeFlags&13878)!==0||$){$=Y0.T,Y0.T=null,G=I1.p,I1.p=r2,_=M1,M1|=n2;try{OE(w,z,Z)}finally{M1=_,I1.p=G,Y0.T=$}}Mw=Kj,ZF(),JF(),XF()}}function ZF(){if(Mw===Kj){Mw=j4;var w=A4,z=Qz,Z=s5,$=(z.flags&13878)!==0;if((z.subtreeFlags&13878)!==0||$){$=Y0.T,Y0.T=null;var G=I1.p;I1.p=r2;var Q=M1;M1|=n2;try{$z=Z,Yz=w,E$(),CV(z,w),Yz=$z=null,Z=m_;var _=pB(w.containerInfo),B=Z.focusedElem,A=Z.selectionRange;if(_!==B&&B&&B.ownerDocument&&uB(B.ownerDocument.documentElement,B)){if(A!==null&&MW(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=dB(B,E0),b=dB(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}}kY=!!f_,m_=f_=null}finally{M1=Q,I1.p=G,Y0.T=$}}w.current=z,Mw=Uj}}function JF(){if(Mw===Uj){Mw=j4;var w=Lj;if(w!==null){K4=Fw();var z=_6,Z=K4;!c1||Z<=z||(B6?B6.run(console.timeStamp.bind(console,w,z,Z,B1,H1,"secondary-light")):console.timeStamp(w,z,Z,B1,H1,"secondary-light"))}w=A4,z=Qz,Z=s5;var $=(z.flags&8772)!==0;if((z.subtreeFlags&8772)!==0||$){$=Y0.T,Y0.T=null;var G=I1.p;I1.p=r2;var Q=M1;M1|=n2;try{$z=Z,Yz=w,E$(),EV(w,z.alternate,z),Yz=$z=null}finally{M1=Q,I1.p=G,Y0.T=$}}w=E_,z=Bj,_6=Fw(),w=z===null?w:K4,z=_6,Z=o5===D_,$=Ww,H6!==null?aB(w,z,H6,!1,$):!c1||z<=w||($?$.run(console.timeStamp.bind(console,Z?"Commit Interrupted View Transition":"Commit",w,z,B1,H1,Z?"error":"secondary-dark")):console.timeStamp(Z?"Commit Interrupted View Transition":"Commit",w,z,B1,H1,Z?"error":"secondary-dark")),Mw=_j}}function XF(){if(Mw===Hj||Mw===_j){if(Mw===Hj){var w=_6;_6=Fw();var z=_6,Z=o5===D_;!c1||z<=w||(B6?B6.run(console.timeStamp.bind(console,Z?"Interrupted View Transition":"Starting Animation",w,z,B1,H1,Z?"error":"secondary-light")):console.timeStamp(Z?"Interrupted View Transition":"Starting Animation",w,z,B1,H1,Z?" error":"secondary-light")),o5!==D_&&(o5=Wj)}Mw=j4,Eh(),w=A4;var $=Qz;z=s5,Z=qj;var G=$.actualDuration!==0||($.subtreeFlags&10256)!==0||($.flags&10256)!==0;G?Mw=$Y:(Mw=j4,Qz=A4=null,$F(w,w.pendingLanes),E7=0,dJ=null);var Q=w.pendingLanes;if(Q===0&&(k4=null),G||KF(w),Q=T(z),$=$.stateNode,z2&&typeof z2.onCommitFiberRoot==="function")try{var _=($.current.flags&128)===128;switch(Q){case r2:var B=hU;break;case c5:B=vU;break;case I8:B=C9;break;case M3:B=PU;break;default:B=C9}z2.onCommitFiberRoot(S9,$,B,_)}catch(a){v8||(v8=!0,console.error("React instrumentation encountered an error: %o",a))}if(P8&&w.memoizedUpdaters.clear(),TE(),Z!==null){_=Y0.T,B=I1.p,I1.p=r2,Y0.T=null;try{var A=w.onRecoverableError;for($=0;$<Z.length;$++){var D=Z[$],i=PE(D.stack);n(D.source,A,D.value,i)}}finally{Y0.T=_,I1.p=B}}(s5&3)!==0&&lZ(),D8(w),Q=w.pendingLanes,(z&261930)!==0&&(Q&42)!==0?(d3=!0,w===v_?mJ++:(mJ=0,v_=w)):mJ=0,G||U7(z,_6),rZ(0,!1)}}function PE(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 $F(w,z){(w.pooledCacheLanes&=z)===0&&(z=w.pooledCache,z!=null&&(w.pooledCache=null,hZ(z)))}function lZ(){return ZF(),JF(),XF(),YF()}function YF(){if(Mw!==$Y)return!1;var w=A4,z=x_;x_=0;var Z=T(s5),$=I8===0||I8>Z?I8:Z;Z=Y0.T;var G=I1.p;try{I1.p=$,Y0.T=null;var Q=h_;h_=null,$=A4;var _=s5;if(Mw=j4,Qz=A4=null,s5=0,(M1&(Cw|n2))!==dw)throw Error("Cannot flush passive effects while already rendering.");g2(_),P_=!0,YY=!1;var B=0;if(H6=null,B=gw(),o5===Wj)xZ(_6,B,B6);else{var A=_6,D=B,i=o5===T_;!c1||D<=A||(Ww?Ww.run(console.timeStamp.bind(console,i?"Waiting for Paint":"Waiting",A,D,B1,H1,"secondary-light")):console.timeStamp(i?"Waiting for Paint":"Waiting",A,D,B1,H1,"secondary-light"))}A=M1,M1|=n2;var a=$.current;E$(),dV(a);var y=$.current;a=E_,E$(),RV($,y,_,Q,a),KF($),M1=A;var Z0=gw();if(y=B,a=Ww,H6!==null?aB(y,Z0,H6,!0,a):!c1||Z0<=y||(a?a.run(console.timeStamp.bind(console,"Remaining Effects",y,Z0,B1,H1,"secondary-dark")):console.timeStamp("Remaining Effects",y,Z0,B1,H1,"secondary-dark")),U7(_,Z0),rZ(0,!1),YY?$===dJ?E7++:(E7=0,dJ=$):E7=0,YY=P_=!1,z2&&typeof z2.onPostCommitFiberRoot==="function")try{z2.onPostCommitFiberRoot(S9,$)}catch(E0){v8||(v8=!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,Y0.T=Z,$F(w,z)}}function GF(w,z,Z){z=f2(Z,z),WL(z),z=MK(w.stateNode,z,2),w=a6(w,z,2),w!==null&&(W1(w,2),D8(w))}function P1(w,z,Z){if(Wz=!1,w.tag===3)GF(w,w,Z);else{for(;z!==null;){if(z.tag===3){GF(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),WL(w),Z=OK(2),$=a6(z,Z,2),$!==null&&(DK(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 iK(w,z,Z){var $=w.pingCache;if($===null){$=w.pingCache=new av;var G=new Set;$.set(z,G)}else G=$.get(z),G===void 0&&(G=new Set,$.set(z,G));G.has(Z)||(M_=!0,G.add(Z),$=IE.bind(null,w,z,Z),P8&&iZ(w,Z),z.then($,$))}function IE(w,z,Z){var $=w.pingCache;$!==null&&$.delete(z),w.pingedLanes|=w.suspendedLanes&Z,w.warmLanes&=~Z,(Z&127)!==0?0>b8&&(U4=b8=Fw(),LJ=b3("Promise Resolved"),_4=y3):(Z&4194048)!==0&&0>F5&&(y8=F5=Fw(),FJ=b3("Promise Resolved"),X_=y3),cV()&&Y0.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===n3&&(Q1&62914560)===Q1&&gw()-ZY<Gj?(M1&Cw)===dw&&T9(w,0):O_|=Z,x7===Q1&&(x7=0)),D8(w)}function QF(w,z){z===0&&(z=q1()),w=w2(w,z),w!==null&&(W1(w,z),D8(w))}function CE(w){var z=w.memoizedState,Z=0;z!==null&&(Z=z.retryLane),QF(w,Z)}function SE(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),QF(w,Z)}function rK(w,z,Z){if((z.subtreeFlags&67117056)!==0)for(z=z.child;z!==null;){var $=w,G=z,Q=G.type===V3;Q=Z||Q,G.tag!==22?G.flags&67108864?Q&&n(G,WF,$,G):rK($,G,Q):G.memoizedState===null&&(Q&&G.flags&8192?n(G,WF,$,G):G.subtreeFlags&67108864&&n(G,rK,$,G,Q)),z=z.sibling}}function WF(w,z){b0(!0);try{bV(z),uV(z),yV(w,z.alternate,z,!1),gV(w,z,0,null,!1,0)}finally{b0(!1)}}function KF(w){var z=!0;w.current.mode&(Z2|l5)||(z=!1),rK(w,w.current,z)}function UF(w){if((M1&Cw)===dw){var z=w.tag;if(z===3||z===1||z===0||z===11||z===14||z===15){if(z=d(w)||"ReactComponent",GY!==null){if(GY.has(z))return;GY.add(z)}else GY=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 iZ(w,z){P8&&w.memoizedUpdaters.forEach(function(Z){J1(w,Z,z)})}function bE(w,z){var Z=Y0.actQueue;return Z!==null?(Z.push(z),nv):EU(w,z)}function yE(w){cV()&&Y0.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!==Kz&&w.next===null&&(Kz===null?QY=Kz=w:Kz=Kz.next=w),WY=!0,Y0.actQueue!==null?C_||(C_=!0,BF()):I_||(I_=!0,BF())}function rZ(w,z){if(!S_&&WY){S_=!0;do{var Z=!1;for(var $=QY;$!==null;){if(!z)if(w!==0){var G=$.pendingLanes;if(G===0)var Q=0;else{var{suspendedLanes:_,pingedLanes:B}=$;Q=(1<<31-K2(42|w)+1)-1,Q&=G&~(_&~B),Q=Q&201326741?Q&201326741|1:Q?Q|2:0}Q!==0&&(Z=!0,qF($,Q))}else Q=Q1,Q=x0($,$===g1?Q:0,$.cancelPendingCommit!==null||$.timeoutHandle!==I7),(Q&3)===0||l0($,Q)||(Z=!0,qF($,Q));$=$.next}}while(Z);S_=!1}}function RE(){lJ=window.event,aK()}function aK(){WY=C_=I_=!1;var w=0;M4!==0&&cE()&&(w=M4);for(var z=gw(),Z=null,$=QY;$!==null;){var G=$.next,Q=_F($,z);if(Q===0)$.next=null,Z===null?QY=G:Z.next=G,G===null&&(Kz=Z);else if(Z=$,w!==0||(Q&3)!==0)WY=!0;$=G}Mw!==j4&&Mw!==$Y||rZ(w,!1),M4!==0&&(M4=0)}function _F(w,z){for(var{suspendedLanes:Z,pingedLanes:$,expirationTimes:G}=w,Q=w.pendingLanes&-62914561;0<Q;){var _=31-K2(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!==I7),$=w.callbackNode,Z===0||w===z&&(S1===D7||S1===T7)||w.cancelPendingCommit!==null)return $!==null&&sK($),w.callbackNode=null,w.callbackPriority=0;if((Z&3)===0||l0(w,Z)){if(z=Z&-Z,z!==w.callbackPriority||Y0.actQueue!==null&&$!==b_)sK($);else return z;switch(T(Z)){case r2:case c5:Z=vU;break;case I8:Z=C9;break;case M3:Z=PU;break;default:Z=C9}return $=HF.bind(null,w),Y0.actQueue!==null?(Y0.actQueue.push($),Z=b_):Z=EU(Z,$),w.callbackPriority=z,w.callbackNode=Z,z}return $!==null&&sK($),w.callbackPriority=2,w.callbackNode=null,2}function HF(w,z){if(d3=m3=!1,lJ=window.event,Mw!==j4&&Mw!==$Y)return w.callbackNode=null,w.callbackPriority=0,null;var Z=w.callbackNode;if(o5===XY&&(o5=T_),lZ()&&w.callbackNode!==Z)return null;var $=Q1;if($=x0(w,w===g1?$:0,w.cancelPendingCommit!==null||w.timeoutHandle!==I7),$===0)return null;return iV(w,$,z),_F(w,gw()),w.callbackNode!=null&&w.callbackNode===Z?HF.bind(null,w):null}function qF(w,z){if(lZ())return null;m3=d3,d3=!1,iV(w,z,!0)}function sK(w){w!==b_&&w!==null&&Th(w)}function BF(){Y0.actQueue!==null&&Y0.actQueue.push(function(){return aK(),null}),GP(function(){(M1&(Cw|n2))!==dw?EU(hU,RE):aK()})}function oK(){if(M4===0){var w=F7;w===0&&(w=k3,k3<<=1,(k3&261888)===0&&(k3=256)),M4=w}return M4}function LF(w){if(w==null||typeof w==="symbol"||typeof w==="boolean")return null;if(typeof w==="function")return w;return H0(w,"action"),OZ(""+w)}function VF(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 gE(w,z,Z,$,G){if(z==="submit"&&Z&&Z.stateNode===G){var Q=LF((G[U2]||null).action),_=$.submitter;_&&(z=(z=_[U2]||null)?LF(z.formAction):_.getAttribute("formAction"),z!==null&&(Q=z,_=null));var B=new E3("action","action",null,$,G);w.push({event:B,listeners:[{instance:null,listener:function(){if($.defaultPrevented){if(M4!==0){var A=_?VF(G,_):new FormData(G),D={pending:!0,data:A,method:G.method,action:Q};Object.freeze(D),LK(Z,D,null,A)}}else typeof Q==="function"&&(B.preventDefault(),A=_?VF(G,_):new FormData(G),D={pending:!0,data:A,method:G.method,action:Q},Object.freeze(D),LK(Z,D,Q,A))},currentTarget:G}]})}}function Y3(w,z,Z){w.currentTarget=Z;try{z(w)}catch($){rU($)}w.currentTarget=null}function FF(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,Y3,Q,B,D):Y3(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,Y3,Q,B,D):Y3(Q,B,D),G=A}}}}function k1(w,z){y_.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[IU];Z===void 0&&(Z=z[IU]=new Set);var $=w+"__bubble";Z.has($)||(NF(z,w,2,!1),Z.add($))}function nK(w,z,Z){y_.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),NF(Z,w,$,z)}function tK(w){if(!w[KY]){w[KY]=!0,BN.forEach(function(Z){Z!=="selectionchange"&&(y_.has(Z)||nK(Z,!1,w),nK(Z,!0,w))});var z=w.nodeType===9?w:w.ownerDocument;z===null||z[KY]||(z[KY]=!0,nK("selectionchange",!1,z))}}function NF(w,z,Z,$){switch(tF(z)){case r2:var G=Fh;break;case c5:G=Nh;break;default:G=qU}Z=G.bind(null,z,Z,w),G=void 0,!RU||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 eK(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}vB(function(){var D=Q,i=jW(Z),a=[];w:{var y=tN.get(w);if(y!==void 0){var Z0=E3,M0=w;switch(w){case"keypress":if(q$(Z)===0)break w;case"keydown":case"keyup":Z0=Hv;break;case"focusin":M0="focus",Z0=dU;break;case"focusout":M0="blur",Z0=dU;break;case"beforeblur":case"afterblur":Z0=dU;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=gN;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z0=zv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z0=Lv;break;case aN:case sN:case oN:Z0=Xv;break;case nN:Z0=Fv;break;case"scroll":case"scrollend":Z0=eh;break;case"wheel":Z0=kv;break;case"copy":case"cut":case"paste":Z0=Yv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z0=mN;break;case"toggle":case"beforetoggle":Z0=Av}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=DZ(b,j1),l!=null&&E0.push(aZ(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!==$J&&(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=gN,l="onMouseLeave",j1="onMouseEnter",b="mouse",w==="pointerout"||w==="pointerover")E0=mN,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=fE,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&&kF(a,y,Z0,E0,!1),M0!==null&&d1!==null&&kF(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=RB;else if(bB(y))if(iN)D0=nx;else{D0=sx;var Z1=ax}else Z0=y.nodeName,!Z0||Z0.toLowerCase()!=="input"||y.type!=="checkbox"&&y.type!=="radio"?D&&MZ(D.elementType)&&(D0=RB):D0=ox;if(D0&&(D0=D0(w,D))){yB(a,D0,Z,i);break w}Z1&&Z1(w,y,D),w==="focusout"&&D&&y.type==="number"&&D.memoizedProps.value!=null&&BW(y,"number",y.value)}switch(Z1=D?u0(D):window,w){case"focusin":if(bB(Z1)||Z1.contentEditable==="true")d9=Z1,pU=D,_J=null;break;case"focusout":_J=pU=d9=null;break;case"mousedown":cU=!0;break;case"contextmenu":case"mouseup":case"dragend":cU=!1,cB(a,Z,i);break;case"selectionchange":if(Tv)break;case"keydown":case"keyup":cB(a,Z,i)}var i0;if(uU)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 m9?CB(w,Z)&&(m0="onCompositionEnd"):w==="keydown"&&Z.keyCode===dN&&(m0="onCompositionStart");if(m0&&(uN&&Z.locale!=="ko"&&(m9||m0!=="onCompositionStart"?m0==="onCompositionEnd"&&m9&&(i0=PB()):($4=i,gU=("value"in $4)?$4.value:$4.textContent,m9=!0)),Z1=G3(D,m0),0<Z1.length&&(m0=new fN(m0,w,null,Z,i),a.push({event:m0,listeners:Z1}),i0?m0.data=i0:(i0=SB(Z),i0!==null&&(m0.data=i0)))),i0=Ov?cx(w,Z):lx(w,Z))m0=G3(D,"onBeforeInput"),0<m0.length&&(Z1=new Qv("onBeforeInput","beforeinput",null,Z,i),a.push({event:Z1,listeners:m0}),Z1.data=i0);gE(a,w,D,Z,i)}FF(a,z)})}function aZ(w,z,Z){return{instance:w,listener:z,currentTarget:Z}}function G3(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=DZ(w,Z),G!=null&&$.unshift(aZ(w,G,Q)),G=DZ(w,z),G!=null&&$.push(aZ(w,G,Q))),w.tag===3)return $;w=w.return}return[]}function fE(w){if(w===null)return null;do w=w.return;while(w&&w.tag!==5&&w.tag!==27);return w?w:null}function kF(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=DZ(Z,Q),D!=null&&_.unshift(aZ(Z,D,A))):G||(D=DZ(Z,Q),D!=null&&_.push(aZ(Z,D,A)))),Z=Z.return}_.length!==0&&w.push({event:z,listeners:_})}function wU(w,z){mx(w,z),w!=="input"&&w!=="textarea"&&w!=="select"||z==null||z.value!==null||yN||(yN=!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:_7,possibleRegistrationNames:CU};MZ(w)||typeof z.is==="string"||ux(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 Rw(w,z,Z,$){z!==Z&&(Z=e6(Z),e6(z)!==Z&&($[w]=z))}function mE(w,z,Z){z.forEach(function($){Z[MF($)]=$==="style"?ZU(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 jF(w,z){return w=w.namespaceURI===D3||w.namespaceURI===y9?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(tv,`
|
|
176
|
+
`).replace(ev,"")}function AF(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")H$($,z,!1),z==="body"||z==="textarea"&&$===""||AZ(w,$);else if(typeof $==="number"||typeof $==="bigint")H$(""+$,z,!1),z!=="body"&&AZ(w,""+$);break;case"className":o4(w,"class",$);break;case"tabIndex":o4(w,"tabindex",$);break;case"dir":case"role":case"viewBox":case"width":case"height":o4(w,Z,$);break;case"style":xB(w,$,Q);break;case"data":if(z!=="object"){o4(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}H0($,Z),$=OZ(""+$),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||HY||(HY=!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||_Y||(_Y=!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"||UY?z!=="button"||G.type==null||G.type==="submit"||UY?typeof $==="function"&&(G.name==null||jj||(jj=!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||HY||(HY=!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||_Y||(_Y=!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."))):(UY=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(UY=!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}H0($,Z),$=OZ(""+$),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}H0($,Z),Z=OZ(""+$),w.setAttributeNS(h7,"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"?(H0($,Z),w.setAttribute(Z,""+$)):w.removeAttribute(Z);break;case"inert":$!==""||qY[Z]||(qY[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"?(H0($,Z),w.setAttribute(Z,$)):w.removeAttribute(Z);break;case"cols":case"rows":case"size":case"span":$!=null&&typeof $!=="function"&&typeof $!=="symbol"&&!isNaN($)&&1<=$?(H0($,Z),w.setAttribute(Z,$)):w.removeAttribute(Z);break;case"rowSpan":case"start":$==null||typeof $==="function"||typeof $==="symbol"||isNaN($)?w.removeAttribute(Z):(H0($,Z),w.setAttribute(Z,$));break;case"popover":k1("beforetoggle",w),k1("toggle",w),d6(w,"popover",$);break;case"xlinkActuate":f5(w,h7,"xlink:actuate",$);break;case"xlinkArcrole":f5(w,h7,"xlink:arcrole",$);break;case"xlinkRole":f5(w,h7,"xlink:role",$);break;case"xlinkShow":f5(w,h7,"xlink:show",$);break;case"xlinkTitle":f5(w,h7,"xlink:title",$);break;case"xlinkType":f5(w,h7,"xlink:type",$);break;case"xmlBase":f5(w,R_,"xml:base",$);break;case"xmlLang":f5(w,R_,"xml:lang",$);break;case"xmlSpace":f5(w,R_,"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":Aj||$==null||typeof $!=="object"||(Aj=!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=EB(Z),d6(w,Z,$)):_7.hasOwnProperty(Z)&&$!=null&&typeof $!=="function"&&T8(Z,$)}}function zU(w,z,Z,$,G,Q){switch(Z){case"style":xB(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"?AZ(w,$):(typeof $==="number"||typeof $==="bigint")&&AZ(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(_7.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[U2]||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 aw(w,z,Z){switch(wU(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)}}UB(w,Z),_B(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)}BB(w,Z),z=Q,Z=_,w.multiple=!!$,z!=null?H9(w,!!$,z,!1):Z!=null&&H9(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)}LB(w,Z),FB(w,$,G,Q);return;case"option":HB(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;$<uJ.length;$++)k1(uJ[$],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(MZ(z)){for(i in Z)Z.hasOwnProperty(i)&&($=Z[i],$!==void 0&&zU(w,z,i,$,Z,void 0));return}}for(B in Z)Z.hasOwnProperty(B)&&($=Z[B],$!=null&&y1(w,z,B,$,Z,null))}function dE(w,z,Z,$){switch(wU(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||!$||kj||(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"),kj=!0),!z||$||Nj||(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"),Nj=!0),qW(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?H9(w,!!z,y,!1):!!Z!==!!z&&($!=null?H9(w,!!z,$,!0):H9(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)}VB(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(MZ(z)){for(var d1 in Z)y=Z[d1],Z.hasOwnProperty(d1)&&y!==void 0&&!$.hasOwnProperty(d1)&&zU(w,z,d1,void 0,$,y);for(i in $)y=$[i],Z0=Z[i],!$.hasOwnProperty(i)||y===Z0||y===void 0&&Z0===void 0||zU(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 MF(w){switch(w){case"class":return"className";case"for":return"htmlFor";default:return w}}function ZU(w){var z={};w=w.style;for(var Z=0;Z<w.length;Z++){var $=w[Z];z[$]=w.getPropertyValue($)}return z}function OF(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||SN.has(Q)?(O0(_,Q),$+=G+Q.replace(hN,"-$1").toLowerCase().replace(vN,"-ms-")+":"+(""+_).trim()):$+=G+Q.replace(hN,"-$1").toLowerCase().replace(vN,"-ms-")+":"+_+"px",G=";")}$=$||null,z=w.getAttribute("style"),z!==$&&($=e6($),e6(z)!==$&&(Z.style=ZU(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(H0($,z),w===""+$)return}Rw(z,w,$,Q)}function DF(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}Rw(z,w,$,Q)}function JU(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(H0($,Z),w===""+$)return}Rw(z,w,$,Q)}function TF(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($)&&(H0($,z),w===""+$))return}Rw(z,w,$,Q)}function XU(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(H0($,z),Z=OZ(""+$),w===Z)return}Rw(z,w,$,Q)}function xF(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(MZ(z)){for(var A in Z)if(Z.hasOwnProperty(A)){var D=Z[A];if(D!=null){if(_7.hasOwnProperty(A))typeof D!=="function"&&T8(A,D);else if(Z.suppressHydrationWarning!==!0)switch(A){case"children":typeof D!=="string"&&typeof D!=="number"||Rw("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=jF(w,D),Rw(A,_,D,G));continue;case"style":Q.delete(A),OF(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$(w,"class",D),Rw("className",_,D,G);continue;default:$.context===j6&&z!=="svg"&&z!=="math"?Q.delete(A.toLowerCase()):Q.delete(A),_=W$(w,A,D),Rw(A,_,D,G)}}}}else for(D in Z)if(Z.hasOwnProperty(D)&&(A=Z[D],A!=null)){if(_7.hasOwnProperty(D))typeof A!=="function"&&T8(D,A);else if(Z.suppressHydrationWarning!==!0)switch(D){case"children":typeof A!=="string"&&typeof A!=="number"||Rw("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=jF(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),OF(w,A,G);continue;case"multiple":Q.delete(D),Rw(D,w.multiple,A,G);continue;case"muted":Q.delete(D),Rw(D,w.muted,A,G);continue;case"autoFocus":Q.delete("autofocus"),Rw(D,w.autofocus,A,G);continue;case"data":if(z!=="object"){Q.delete(D),_=w.getAttribute("data"),Rw(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}XU(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(_===wP){Q.delete(D.toLowerCase()),Rw(D,"function",A,G);continue}XU(w,D,D.toLowerCase(),A,Q,G);continue;case"xlinkHref":XU(w,D,"xlink:href",A,Q,G);continue;case"contentEditable":JU(w,D,"contenteditable",A,Q,G);continue;case"spellCheck":JU(w,D,"spellcheck",A,Q,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":JU(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":DF(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(H0(A,_),B===""+A)break w}Rw(_,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)&&(H0(A,_),B===""+A))break w}Rw(_,B,A,a)}continue;case"rowSpan":TF(w,D,"rowspan",A,Q,G);continue;case"start":TF(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!==""||qY[D]||(qY[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)),DF(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=EB(D),_=!1,$.context===j6&&z!=="svg"&&z!=="math"?Q.delete(B.toLowerCase()):(i=D.toLowerCase(),i=T3.hasOwnProperty(i)?T3[i]||null:null,i!==null&&i!==D&&(_=!0,Q.delete(i)),Q.delete(B));w:if(i=w,a=B,B=A,s4(a))if(i.hasAttribute(a))i=i.getAttribute(a),H0(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;_||Rw(D,B,A,G)}}}return 0<Q.size&&Z.suppressHydrationWarning!==!0&&mE(w,Q,G),Object.keys(G).length===0?null:G}function uE(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 EF(w){switch(w){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pE(){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&&EF(_)){_=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&&EF(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 Q3(w){return w.nodeType===9?w:w.ownerDocument}function hF(w){switch(w){case y9:return _z;case D3:return LY;default:return j6}}function vF(w,z){if(w===j6)switch(z){case"svg":return _z;case"math":return LY;default:return j6}return w===_z&&z==="foreignObject"?j6:w}function $U(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 cE(){var w=window.event;if(w&&w.type==="popstate"){if(w===d_)return!1;return d_=w,!0}return d_=null,!1}function sZ(){var w=window.event;return w&&w!==lJ?w.type:null}function oZ(){var w=window.event;return w&&w!==lJ?w.timeStamp:-1.1}function lE(w){setTimeout(function(){throw w})}function iE(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 rE(){}function aE(w,z,Z,$){dE(w,z,Z,$),w[U2]=$}function PF(w){AZ(w,"")}function sE(w,z,Z){w.nodeValue=Z}function IF(w){if(!w.__reactWarnedAboutChildrenConflict){var z=w[U2]||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 oE(w,z){w.removeChild(z)}function nE(w,z){(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w).removeChild(z)}function CF(w,z){var Z=z,$=0;do{var G=Z.nextSibling;if(w.removeChild(Z),G&&G.nodeType===8)if(Z=G.data,Z===cJ||Z===BY){if($===0){w.removeChild(G),v9(z);return}$--}else if(Z===pJ||Z===O4||Z===P7||Z===Uz||Z===v7)$++;else if(Z===ZP)nZ(w.ownerDocument.documentElement);else if(Z===XP){Z=w.ownerDocument.head,nZ(Z);for(var Q=Z.firstChild;Q;){var{nextSibling:_,nodeName:B}=Q;Q[XJ]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&Q.rel.toLowerCase()==="stylesheet"||Z.removeChild(Q),Q=_}}else Z===JP&&nZ(w.ownerDocument.body);Z=G}while(Z);v9(z)}function SF(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===cJ)if(w===0)break;else w--;else Z!==pJ&&Z!==O4&&Z!==P7&&Z!==Uz||w++;Z=$}while(Z)}function tE(w){SF(w,!0)}function eE(w){w=w.style,typeof w.setProperty==="function"?w.setProperty("display","none","important"):w.display="none"}function wh(w){w.nodeValue=""}function zh(w){SF(w,!1)}function Zh(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 Jh(w,z){w.nodeValue=z}function YU(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":YU(Z),N0(Z);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Z.rel.toLowerCase()==="stylesheet")continue}w.removeChild(Z)}}function Xh(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"){H0(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[XJ])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 $h(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 bF(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 GU(w){return w.data===O4||w.data===P7}function QU(w){return w.data===Uz||w.data===O4&&w.ownerDocument.readyState!==Oj}function Yh(w,z){var Z=w.ownerDocument;if(w.data===P7)w._reactRetry=z;else if(w.data!==O4||Z.readyState!==Oj)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===pJ||z===Uz||z===O4||z===P7||z===v7||z===g_||z===Mj)break;if(z===cJ||z===BY)return null}}return w}function yF(w){if(w.nodeType===1){for(var z=w.nodeName.toLowerCase(),Z={},$=w.attributes,G=0;G<$.length;G++){var Q=$[G];Z[MF(Q.name)]=Q.name.toLowerCase()==="style"?ZU(w):Q.value}return{type:z,props:Z}}return w.nodeType===8?w.data===v7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:w.nodeValue}function RF(w,z,Z){return Z===null||Z[zP]!==!0?(w.nodeValue===z?w=null:(z=e6(z),w=e6(w.nodeValue)===z?null:w.nodeValue),w):null}function WU(w){w=w.nextSibling;for(var z=0;w;){if(w.nodeType===8){var Z=w.data;if(Z===cJ||Z===BY){if(z===0)return c2(w.nextSibling);z--}else Z!==pJ&&Z!==Uz&&Z!==O4&&Z!==P7&&Z!==v7||z++}w=w.nextSibling}return null}function gF(w){w=w.previousSibling;for(var z=0;w;){if(w.nodeType===8){var Z=w.data;if(Z===pJ||Z===Uz||Z===O4||Z===P7||Z===v7){if(z===0)return w;z--}else Z!==cJ&&Z!==BY||z++}w=w.previousSibling}return null}function Gh(w){v9(w)}function Qh(w){v9(w)}function Wh(w){v9(w)}function fF(w,z,Z,$,G){switch(G&&kW(w,$.ancestorInfo),z=Q3(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 Kh(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]);aw(Z,w,z),Z[sw]=$,Z[U2]=z}function nZ(w){for(var z=w.attributes;z.length;)w.removeAttributeNode(z[0]);N0(w)}function W3(w){return typeof w.getRootNode==="function"?w.getRootNode():w.nodeType===9?w:w.ownerDocument}function mF(w,z,Z){var $=Hz;if($&&typeof z==="string"&&z){var G=K5(z);G='link[rel="'+w+'"][href="'+G+'"]',typeof Z==="string"&&(G+='[crossorigin="'+Z+'"]'),vj.has(G)||(vj.add(G),w={rel:w,crossOrigin:Z,href:z},$.querySelector(G)===null&&(z=$.createElement("link"),aw(z,"link",w),d0(z),$.head.appendChild(z)))}}function dF(w,z,Z,$){var G=(G=Z4.current)?W3(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=E9(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=E9(Z.href);var Q=$1(G).hoistableStyles,_=Q.get(w);if(!_&&(G=G.ownerDocument||G,_={type:"stylesheet",instance:null,count:0,state:{loading:C7,preload:null}},Q.set(w,_),(Q=G.querySelector(tZ(w)))&&!Q._p&&(_.instance=Q,_.state.loading=iJ|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||Uh(G,w,B,_.state)}if(z&&$===null)throw Z=`
|
|
177
|
+
|
|
178
|
+
- `+K3(z)+`
|
|
179
|
+
+ `+K3(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
|
+
- `+K3(z)+`
|
|
182
|
+
+ `+K3(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=h9(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 K3(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 E9(w){return'href="'+K5(w)+'"'}function tZ(w){return'link[rel="stylesheet"]['+w+"]"}function uF(w){return _1({},w,{"data-precedence":w.precedence,precedence:null})}function Uh(w,z,Z,$){w.querySelector('link[rel="preload"][as="style"]['+z+"]")?$.loading=iJ:(z=w.createElement("link"),$.preload=z,z.addEventListener("load",function(){return $.loading|=iJ}),z.addEventListener("error",function(){return $.loading|=Ej}),aw(z,"link",Z),d0(z),w.head.appendChild(z))}function h9(w){return'[src="'+K5(w)+'"]'}function eZ(w){return"script[async]"+w}function pF(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($),aw($,"style",G),U3($,Z.precedence,w),z.instance=$;case"stylesheet":G=E9(Z.href);var Q=w.querySelector(tZ(G));if(Q)return z.state.loading|=A5,z.instance=Q,d0(Q),Q;$=uF(Z),(G=M5.get(G))&&KU($,G),Q=(w.ownerDocument||w).createElement("link"),d0(Q);var _=Q;return _._p=new Promise(function(B,A){_.onload=B,_.onerror=A}),aw(Q,"link",$),z.state.loading|=A5,U3(Q,Z.precedence,w),z.instance=Q;case"script":if(Q=h9(Z.src),G=w.querySelector(eZ(Q)))return z.instance=G,d0(G),G;if($=Z,G=M5.get(Q))$=_1({},Z),UU($,G);return w=w.ownerDocument||w,G=w.createElement("script"),d0(G),aw(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)===C7&&($=z.instance,z.state.loading|=A5,U3($,Z.precedence,w));return z.instance}function U3(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 KU(w,z){w.crossOrigin==null&&(w.crossOrigin=z.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=z.referrerPolicy),w.title==null&&(w.title=z.title)}function UU(w,z){w.crossOrigin==null&&(w.crossOrigin=z.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=z.referrerPolicy),w.integrity==null&&(w.integrity=z.integrity)}function cF(w,z,Z){if(VY===null){var $=new Map,G=VY=new Map;G.set(Z,$)}else G=VY,$=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[XJ]||Q[sw]||w==="link"&&Q.getAttribute("rel")==="stylesheet")&&Q.namespaceURI!==y9){var _=Q.getAttribute(z)||"";_=w+_;var B=$.get(_);B?B.push(Q):$.set(_,[Q])}}return $}function lF(w,z,Z){w=w.ownerDocument||w,w.head.insertBefore(Z,z==="title"?w.querySelector("head > title"):null)}function _h(w,z,Z){var $=!Z.ancestorInfo.containerTagInScope;if(Z.context===_z||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=uE(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 iF(w){return w.type==="stylesheet"&&(w.state.loading&hj)===C7?!1:!0}function Hh(w,z,Z,$){if(Z.type==="stylesheet"&&(typeof $.media!=="string"||matchMedia($.media).matches!==!1)&&(Z.state.loading&A5)===C7){if(Z.instance===null){var G=E9($.href),Q=z.querySelector(tZ(G));if(Q){z=Q._p,z!==null&&typeof z==="object"&&typeof z.then==="function"&&(w.count++,w=_3.bind(w),z.then(w,w)),Z.state.loading|=A5,Z.instance=Q,d0(Q);return}Q=z.ownerDocument||z,$=uF($),(G=M5.get(G))&&KU($,G),Q=Q.createElement("link"),d0(Q);var _=Q;_._p=new Promise(function(B,A){_.onload=B,_.onerror=A}),aw(Q,"link",$),Z.instance=Q}w.stylesheets===null&&(w.stylesheets=new Map),w.stylesheets.set(Z,z),(z=Z.state.preload)&&(Z.state.loading&hj)===C7&&(w.count++,Z=_3.bind(w),z.addEventListener("load",Z),z.addEventListener("error",Z))}}function qh(w,z){return w.stylesheets&&w.count===0&&H3(w,w.stylesheets),0<w.count||0<w.imgCount?function(Z){var $=setTimeout(function(){if(w.stylesheets&&H3(w,w.stylesheets),w.unsuspend){var Q=w.unsuspend;w.unsuspend=null,Q()}},QP+z);0<w.imgBytes&&p_===0&&(p_=125*pE()*KP);var G=setTimeout(function(){if(w.waitingForImages=!1,w.count===0&&(w.stylesheets&&H3(w,w.stylesheets),w.unsuspend)){var Q=w.unsuspend;w.unsuspend=null,Q()}},(w.imgBytes>p_?50:WP)+z);return w.unsuspend=Z,function(){w.unsuspend=null,clearTimeout($),clearTimeout(G)}}:null}function _3(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)H3(this,this.stylesheets);else if(this.unsuspend){var w=this.unsuspend;this.unsuspend=null,w()}}}function H3(w,z){w.stylesheets=null,w.unsuspend!==null&&(w.count++,FY=new Map,z.forEach(Bh,w),FY=null,_3.call(w))}function Bh(w,z){if(!(z.state.loading&A5)){var Z=FY.get(w);if(Z)var $=Z.get(c_);else{Z=new Map,FY.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(c_,$)}G=z.instance,_=G.getAttribute("data-precedence"),Q=Z.get(_)||$,Q===$&&Z.set(c_,G),Z.set(_,G),this.count++,$=_3.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 Lh(w,z,Z,$,G,Q,_,B,A){this.tag=1,this.containerInfo=w,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=I7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=D1(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=D1(0),this.hiddenUpdates=D1(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 rF(w,z,Z,$,G,Q,_,B,A,D,i,a){return w=new Lh(w,z,Z,_,A,D,i,a,B),z=bv,Q===!0&&(z|=Z2|l5),z|=Y1,Q=k(3,null,null,z),w.current=Q,Q.stateNode=w,z=fW(),$7(z),w.pooledCache=z,$7(z),Q.memoizedState={element:$,isDehydrated:Z,cache:z},cW(Q),w}function aF(w){if(!w)return Q4;return w=Q4,w}function _U(w,z,Z,$,G,Q){if(z2&&typeof z2.onScheduleFiberRoot==="function")try{z2.onScheduleFiberRoot(S9,$,Z)}catch(_){v8||(v8=!0,console.error("React instrumentation encountered an error: %o",_))}G=aF(G),$.context===null?$.context=G:$.pendingContext=G,h8&&i2!==null&&!Sj&&(Sj=!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&&(q8(z,"root.render()",null),Zw(Z,w,z),CZ(Z,w,z))}function sF(w,z){if(w=w.memoizedState,w!==null&&w.dehydrated!==null){var Z=w.retryLane;w.retryLane=Z!==0&&Z<z?Z:z}}function HU(w,z){sF(w,z),(w=w.alternate)&&sF(w,z)}function oF(w){if(w.tag===13||w.tag===31){var z=w2(w,67108864);z!==null&&Zw(z,w,67108864),HU(w,67108864)}}function nF(w){if(w.tag===13||w.tag===31){var z=p2(w);z=hw(z);var Z=w2(w,z);Z!==null&&Zw(Z,w,z),HU(w,z)}}function Vh(){return i2}function Fh(w,z,Z,$){var G=Y0.T;Y0.T=null;var Q=I1.p;try{I1.p=r2,qU(w,z,Z,$)}finally{I1.p=Q,Y0.T=G}}function Nh(w,z,Z,$){var G=Y0.T;Y0.T=null;var Q=I1.p;try{I1.p=c5,qU(w,z,Z,$)}finally{I1.p=Q,Y0.T=G}}function qU(w,z,Z,$){if(kY){var G=BU($);if(G===null)eK(w,z,$,jY,Z),eF(w,$);else if(kh(G,w,z,Z,$))$.stopPropagation();else if(eF(w,$),z&4&&-1<_P.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-K2(_);B.entanglements[1]|=A,_&=~A}D8(Q),(M1&(Cw|n2))===dw&&(JY=gw()+Qj,rZ(0,!1))}}break;case 31:case 13:B=w2(Q,2),B!==null&&Zw(B,Q,2),D9(),HU(Q,2)}if(Q=BU($),Q===null&&eK(w,z,$,jY,Z),Q===G)break;G=Q}G!==null&&$.stopPropagation()}else eK(w,z,$,null,Z)}}function BU(w){return w=jW(w),LU(w)}function LU(w){if(jY=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 jY=w,null}function tF(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(hh()){case hU:return r2;case vU:return c5;case C9:case vh:return I8;case PU:return M3;default:return I8}default:return I8}}function eF(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":aJ.delete(z.pointerId);break;case"gotpointercapture":case"lostpointercapture":sJ.delete(z.pointerId)}}function wJ(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&&oF(z)),w;return w.eventSystemFlags|=$,z=w.targetContainers,G!==null&&z.indexOf(G)===-1&&z.push(G),w}function kh(w,z,Z,$,G){switch(z){case"focusin":return D4=wJ(D4,w,z,Z,$,G),!0;case"dragenter":return T4=wJ(T4,w,z,Z,$,G),!0;case"mouseover":return x4=wJ(x4,w,z,Z,$,G),!0;case"pointerover":var Q=G.pointerId;return aJ.set(Q,wJ(aJ.get(Q)||null,w,z,Z,$,G)),!0;case"gotpointercapture":return Q=G.pointerId,sJ.set(Q,wJ(sJ.get(Q)||null,w,z,Z,$,G)),!0}return!1}function wN(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(){nF(Z)});return}}else if(z===31){if(z=I(Z),z!==null){w.blockedOn=z,K0(w.priority,function(){nF(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 q3(w){if(w.blockedOn!==null)return!1;for(var z=w.targetContainers;0<z.length;){var Z=BU(w.nativeEvent);if(Z===null){Z=w.nativeEvent;var $=new Z.constructor(Z.type,Z),G=$;$J!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),$J=G,Z.target.dispatchEvent($),$J===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."),$J=null}else return z=a0(Z),z!==null&&oF(z),w.blockedOn=Z,!1;z.shift()}return!0}function zN(w,z,Z){q3(w)&&Z.delete(z)}function jh(){l_=!1,D4!==null&&q3(D4)&&(D4=null),T4!==null&&q3(T4)&&(T4=null),x4!==null&&q3(x4)&&(x4=null),aJ.forEach(zN),sJ.forEach(zN)}function B3(w,z){w.blockedOn===z&&(w.blockedOn=null,l_||(l_=!0,T1.unstable_scheduleCallback(T1.unstable_NormalPriority,jh)))}function ZN(w){AY!==w&&(AY=w,T1.unstable_scheduleCallback(T1.unstable_NormalPriority,function(){AY===w&&(AY=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(LU($||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),LK(Q,Z,$,G))}}))}function v9(w){function z(A){return B3(A,w)}D4!==null&&B3(D4,w),T4!==null&&B3(T4,w),x4!==null&&B3(x4,w),aJ.forEach(z),sJ.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);)wN(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[U2]||null;if(typeof Q==="function")_||ZN(Z);else if(_){var B=null;if(Q&&Q.hasAttribute("formAction")){if(G=Q,_=Q[U2]||null)B=_.formAction;else if(LU(G)!==null)continue}else B=_.action;typeof B==="function"?Z[$+1]=B:(Z.splice($,3),$-=3),ZN(Z)}}}function JN(){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 VU(w){this._internalRoot=w}function L3(w){this._internalRoot=w}function XN(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,Ah=Symbol.for("react.element"),x8=Symbol.for("react.transitional.element"),P9=Symbol.for("react.portal"),I9=Symbol.for("react.fragment"),V3=Symbol.for("react.strict_mode"),FU=Symbol.for("react.profiler"),NU=Symbol.for("react.consumer"),E8=Symbol.for("react.context"),zJ=Symbol.for("react.forward_ref"),kU=Symbol.for("react.suspense"),jU=Symbol.for("react.suspense_list"),F3=Symbol.for("react.memo"),l2=Symbol.for("react.lazy"),AU=Symbol.for("react.activity"),Mh=Symbol.for("react.memo_cache_sentinel"),$N=Symbol.iterator,Oh=Symbol.for("react.client.reference"),Pw=Array.isArray,Y0=Bz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I1=a_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Dh=Object.freeze({pending:!1,data:null,method:null,action:null}),MU=[],OU=[],G6=-1,z4=w0(null),ZJ=w0(null),Z4=w0(null),N3=w0(null),JJ=0,YN,GN,QN,WN,KN,UN,_N;P.__reactDisabledLog=!0;var DU,HN,TU=!1,xU=new(typeof WeakMap==="function"?WeakMap:Map),i2=null,h8=!1,p5=Object.prototype.hasOwnProperty,EU=T1.unstable_scheduleCallback,Th=T1.unstable_cancelCallback,xh=T1.unstable_shouldYield,Eh=T1.unstable_requestPaint,gw=T1.unstable_now,hh=T1.unstable_getCurrentPriorityLevel,hU=T1.unstable_ImmediatePriority,vU=T1.unstable_UserBlockingPriority,C9=T1.unstable_NormalPriority,vh=T1.unstable_LowPriority,PU=T1.unstable_IdlePriority,Ph=T1.log,Ih=T1.unstable_setDisableYieldValue,S9=null,z2=null,v8=!1,P8=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",K2=Math.clz32?Math.clz32:v0,Ch=Math.log,Sh=Math.LN2,k3=256,j3=262144,A3=4194304,r2=2,c5=8,I8=32,M3=268435456,J4=Math.random().toString(36).slice(2),sw="__reactFiber$"+J4,U2="__reactProps$"+J4,X4="__reactContainer$"+J4,IU="__reactEvents$"+J4,bh="__reactListeners$"+J4,yh="__reactHandles$"+J4,qN="__reactResources$"+J4,XJ="__reactMarker$"+J4,BN=new Set,_7={},CU={},Rh={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gh=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]*$"),LN={},VN={},fh=/[\n"\\]/g,FN=!1,NN=!1,kN=!1,jN=!1,AN=!1,MN=!1,ON=["value","defaultValue"],DN=!1,TN=/["'&<>\n\t]|^\s|\s$/,mh="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(" "),xN="applet caption html table td th marquee object template foreignObject desc title".split(" "),dh=xN.concat(["button"]),uh="dd dt li option optgroup p rp rt".split(" "),EN={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},O3={},SU={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"]},hN=/([A-Z])/g,vN=/^ms-/,ph=/^(?:webkit|moz|o)[A-Z]/,ch=/^-ms-/,lh=/-(.)/g,PN=/;\s*$/,b9={},bU={},IN=!1,CN=!1,SN=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(" ")),D3="http://www.w3.org/1998/Math/MathML",y9="http://www.w3.org/2000/svg",ih=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"]]),T3={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"},bN={"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},R9={},rh=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]*$"),ah=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]*$"),yN=!1,_2={},RN=/^on./,sh=/^on[^A-Z]/,oh=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]*$"),nh=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]*$"),th=/^[\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,$J=null,g9=null,f9=null,yU=!1,C8=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),RU=!1;if(C8)try{var YJ={};Object.defineProperty(YJ,"passive",{get:function(){RU=!0}}),window.addEventListener("test",YJ,YJ),window.removeEventListener("test",YJ,YJ)}catch(w){RU=!1}var $4=null,gU=null,x3=null,H7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(w){return w.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},E3=A2(H7),GJ=_1({},H7,{view:0,detail:0}),eh=A2(GJ),fU,mU,QJ,h3=_1({},GJ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:AW,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!==QJ&&(QJ&&w.type==="mousemove"?(fU=w.screenX-QJ.screenX,mU=w.screenY-QJ.screenY):mU=fU=0,QJ=w),fU},movementY:function(w){return"movementY"in w?w.movementY:mU}}),gN=A2(h3),wv=_1({},h3,{dataTransfer:0}),zv=A2(wv),Zv=_1({},GJ,{relatedTarget:0}),dU=A2(Zv),Jv=_1({},H7,{animationName:0,elapsedTime:0,pseudoElement:0}),Xv=A2(Jv),$v=_1({},H7,{clipboardData:function(w){return"clipboardData"in w?w.clipboardData:window.clipboardData}}),Yv=A2($v),Gv=_1({},H7,{data:0}),fN=A2(Gv),Qv=fN,Wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kv={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"},Uv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},_v=_1({},GJ,{key:function(w){if(w.key){var z=Wv[w.key]||w.key;if(z!=="Unidentified")return z}return w.type==="keypress"?(w=q$(w),w===13?"Enter":String.fromCharCode(w)):w.type==="keydown"||w.type==="keyup"?Kv[w.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:AW,charCode:function(w){return w.type==="keypress"?q$(w):0},keyCode:function(w){return w.type==="keydown"||w.type==="keyup"?w.keyCode:0},which:function(w){return w.type==="keypress"?q$(w):w.type==="keydown"||w.type==="keyup"?w.keyCode:0}}),Hv=A2(_v),qv=_1({},h3,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mN=A2(qv),Bv=_1({},GJ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:AW}),Lv=A2(Bv),Vv=_1({},H7,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fv=A2(Vv),Nv=_1({},h3,{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}),kv=A2(Nv),jv=_1({},H7,{newState:0,oldState:0}),Av=A2(jv),Mv=[9,13,27,32],dN=229,uU=C8&&"CompositionEvent"in window,WJ=null;C8&&"documentMode"in document&&(WJ=document.documentMode);var Ov=C8&&"TextEvent"in window&&!WJ,uN=C8&&(!uU||WJ&&8<WJ&&11>=WJ),pN=32,cN=String.fromCharCode(pN),lN=!1,m9=!1,Dv={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},KJ=null,UJ=null,iN=!1;C8&&(iN=ix("input")&&(!document.documentMode||9<document.documentMode));var H2=typeof Object.is==="function"?Object.is:tx,Tv=C8&&"documentMode"in document&&11>=document.documentMode,d9=null,pU=null,_J=null,cU=!1,u9={animationend:t4("Animation","AnimationEnd"),animationiteration:t4("Animation","AnimationIteration"),animationstart:t4("Animation","AnimationStart"),transitionrun:t4("Transition","TransitionRun"),transitionstart:t4("Transition","TransitionStart"),transitioncancel:t4("Transition","TransitionCancel"),transitionend:t4("Transition","TransitionEnd")},lU={},rN={};C8&&(rN=document.createElement("div").style,("AnimationEvent"in window)||(delete u9.animationend.animation,delete u9.animationiteration.animation,delete u9.animationstart.animation),("TransitionEvent"in window)||delete u9.transitionend.transition);var aN=e4("animationend"),sN=e4("animationiteration"),oN=e4("animationstart"),xv=e4("transitionrun"),Ev=e4("transitionstart"),hv=e4("transitioncancel"),nN=e4("transitionend"),tN=new Map,iU="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(" ");iU.push("scrollEnd");var eN=0;if(typeof performance==="object"&&typeof performance.now==="function")var vv=performance,wk=function(){return vv.now()};else{var Pv=Date;wk=function(){return Pv.now()}}var rU=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)},Iv="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.",v3=0,aU=1,sU=2,oU=3,P3="– ",I3="+ ",zk=" ",c1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",_5="Components ⚛",H1="Scheduler ⚛",B1="Blocking",Y4=!1,Q6={color:"primary",properties:null,tooltipText:"",track:_5},G4={start:-0,end:-0,detail:{devtools:Q6}},Cv=["Changed Props",""],Zk="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",Sv=["Changed Props",Zk],HJ=1,W6=2,H5=[],p9=0,nU=0,Q4={};Object.freeze(Q4);var q5=null,c9=null,w1=0,bv=1,Y1=2,Z2=8,l5=16,yv=32,Jk=!1;try{var Xk=Object.preventExtensions({});}catch(w){Jk=!0}var tU=new WeakMap,l9=[],i9=0,C3=null,qJ=0,B5=[],L5=0,q7=null,K6=1,U6="",ow=null,l1=null,F1=!1,S8=!1,a2=null,W4=null,V5=!1,eU=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."),w_=w0(null),z_=w0(null),$k={},S3=null,r9=null,a9=!1,Rv=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()})}},gv=T1.unstable_scheduleCallback,fv=T1.unstable_NormalPriority,Vw={$$typeof:E8,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Fw=T1.unstable_now,b3=console.createTask?console.createTask:function(){return null},BJ=1,y3=2,fw=-0,K4=-0,_6=-0,H6=null,q2=-1.1,B7=-0,t1=-0,s0=-1.1,e0=-1.1,o1=null,Jw=!1,U4=-0,b8=-1.1,LJ=null,_4=0,Z_=null,J_=null,L7=-1.1,VJ=null,s9=-1.1,R3=-1.1,y8=-0,q6=-1.1,F5=-1.1,X_=0,FJ=null,Yk=null,Gk=null,H4=-1.1,V7=null,q4=-1.1,g3=-1.1,Qk=-0,Wk=-0,f3=0,B6=null,Kk=0,NJ=-1.1,m3=!1,d3=!1,kJ=null,$_=0,F7=0,o9=null,Uk=Y0.S;Y0.S=function(w,z){if(Yj=gw(),typeof z==="object"&&z!==null&&typeof z.then==="function"){if(0>q6&&0>F5){q6=Fw();var Z=oZ(),$=sZ();if(Z!==q4||$!==V7)q4=-1.1;H4=Z,V7=$}$E(w,z)}Uk!==null&&Uk(w,z)};var N7=w0(null),i5={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},jJ=[],AJ=[],MJ=[],OJ=[],DJ=[],TJ=[],k7=new Set;i5.recordUnsafeLifecycleWarnings=function(w,z){k7.has(w.type)||(typeof z.componentWillMount==="function"&&z.componentWillMount.__suppressDeprecationWarning!==!0&&jJ.push(w),w.mode&Z2&&typeof z.UNSAFE_componentWillMount==="function"&&AJ.push(w),typeof z.componentWillReceiveProps==="function"&&z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&MJ.push(w),w.mode&Z2&&typeof z.UNSAFE_componentWillReceiveProps==="function"&&OJ.push(w),typeof z.componentWillUpdate==="function"&&z.componentWillUpdate.__suppressDeprecationWarning!==!0&&DJ.push(w),w.mode&Z2&&typeof z.UNSAFE_componentWillUpdate==="function"&&TJ.push(w))},i5.flushPendingUnsafeLifecycleWarnings=function(){var w=new Set;0<jJ.length&&(jJ.forEach(function(B){w.add(d(B)||"Component"),k7.add(B.type)}),jJ=[]);var z=new Set;0<AJ.length&&(AJ.forEach(function(B){z.add(d(B)||"Component"),k7.add(B.type)}),AJ=[]);var Z=new Set;0<MJ.length&&(MJ.forEach(function(B){Z.add(d(B)||"Component"),k7.add(B.type)}),MJ=[]);var $=new Set;0<OJ.length&&(OJ.forEach(function(B){$.add(d(B)||"Component"),k7.add(B.type)}),OJ=[]);var G=new Set;0<DJ.length&&(DJ.forEach(function(B){G.add(d(B)||"Component"),k7.add(B.type)}),DJ=[]);var Q=new Set;if(0<TJ.length&&(TJ.forEach(function(B){Q.add(d(B)||"Component"),k7.add(B.type)}),TJ=[]),0<z.size){var _=V(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&&(_=V($),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&&(_=V(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&&(_=V(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&&(_=V(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&&(_=V(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 u3=new Map,_k=new Set;i5.recordLegacyContextWarning=function(w,z){var Z=null;for(var $=w;$!==null;)$.mode&Z2&&(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."):!_k.has(w.type)&&($=u3.get(Z),w.type.contextTypes!=null||w.type.childContextTypes!=null||z!==null&&typeof z.getChildContext==="function")&&($===void 0&&($=[],u3.set(Z,$)),$.push(w))},i5.flushLegacyContextWarning=function(){u3.forEach(function(w){if(w.length!==0){var z=w[0],Z=new Set;w.forEach(function(G){Z.add(d(G)||"Component"),_k.add(G.type)});var $=V(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(){jJ=[],AJ=[],MJ=[],OJ=[],DJ=[],TJ=[],u3=new Map};var Hk={react_stack_bottom_frame:function(w,z,Z){var $=h8;h8=!0;try{return w(z,Z)}finally{h8=$}}},Y_=Hk.react_stack_bottom_frame.bind(Hk),qk={react_stack_bottom_frame:function(w){var z=h8;h8=!0;try{return w.render()}finally{h8=z}}},Bk=qk.react_stack_bottom_frame.bind(qk),Lk={react_stack_bottom_frame:function(w,z){try{z.componentDidMount()}catch(Z){P1(w,w.return,Z)}}},G_=Lk.react_stack_bottom_frame.bind(Lk),Vk={react_stack_bottom_frame:function(w,z,Z,$,G){try{z.componentDidUpdate(Z,$,G)}catch(Q){P1(w,w.return,Q)}}},Fk=Vk.react_stack_bottom_frame.bind(Vk),Nk={react_stack_bottom_frame:function(w,z){var Z=z.stack;w.componentDidCatch(z.value,{componentStack:Z!==null?Z:""})}},mv=Nk.react_stack_bottom_frame.bind(Nk),kk={react_stack_bottom_frame:function(w,z,Z){try{Z.componentWillUnmount()}catch($){P1(w,z,$)}}},jk=kk.react_stack_bottom_frame.bind(kk),Ak={react_stack_bottom_frame:function(w){var z=w.create;return w=w.inst,z=z(),w.destroy=z}},dv=Ak.react_stack_bottom_frame.bind(Ak),Mk={react_stack_bottom_frame:function(w,z,Z){try{Z()}catch($){P1(w,z,$)}}},uv=Mk.react_stack_bottom_frame.bind(Mk),Ok={react_stack_bottom_frame:function(w){var z=w._init;return z(w._payload)}},pv=Ok.react_stack_bottom_frame.bind(Ok),n9=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`."),Q_=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."),p3=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."),c3={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.')}},j7=null,xJ=!1,t9=null,EJ=0,G1=null,W_,Dk=W_=!1,Tk={},xk={},Ek={};F=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(!Tk[G]){Tk[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 A7=kL(!0),hk=kL(!1),vk=0,Pk=1,Ik=2,K_=3,B4=!1,Ck=!1,U_=null,__=!1,e9=w0(null),l3=w0(0),s2=w0(null),N5=null,wz=1,hJ=2,_w=w0(0),i3=0,k5=1,B2=2,o2=4,L2=8,zz,Sk=new Set,bk=new Set,H_=new Set,yk=new Set,L6=0,z1=null,R1=null,Nw=null,r3=!1,Zz=!1,M7=!1,a3=0,vJ=0,V6=null,cv=0,lv=25,$0=null,j5=null,F6=-1,PJ=!1,IJ={readContext:s1,use:n6,useCallback:Qw,useContext:Qw,useEffect:Qw,useImperativeHandle:Qw,useLayoutEffect:Qw,useInsertionEffect:Qw,useMemo:Qw,useReducer:Qw,useRef:Qw,useState:Qw,useDebugValue:Qw,useDeferredValue:Qw,useTransition:Qw,useSyncExternalStore:Qw,useId:Qw,useHostTransitionStatus:Qw,useFormState:Qw,useActionState:Qw,useOptimistic:Qw,useMemoCache:Qw,useCacheRefresh:Qw};IJ.useEffectEvent=Qw;var q_=null,Rk=null,B_=null,gk=null,R8=null,r5=null,s3=null;q_={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",U1(),F9(z),_K(w,z)},useContext:function(w){return $0="useContext",U1(),s1(w)},useEffect:function(w,z){return $0="useEffect",U1(),F9(z),u$(w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",U1(),F9(Z),UK(w,z,Z)},useInsertionEffect:function(w,z){$0="useInsertionEffect",U1(),F9(z),G7(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",U1(),F9(z),KK(w,z)},useMemo:function(w,z){$0="useMemo",U1(),F9(z);var Z=Y0.H;Y0.H=R8;try{return HK(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",U1();var $=Y0.H;Y0.H=R8;try{return zK(w,z,Z)}finally{Y0.H=$}},useRef:function(w){return $0="useRef",U1(),QK(w)},useState:function(w){$0="useState",U1();var z=Y0.H;Y0.H=R8;try{return $K(w)}finally{Y0.H=z}},useDebugValue:function(){$0="useDebugValue",U1()},useDeferredValue:function(w,z){return $0="useDeferredValue",U1(),qK(w,z)},useTransition:function(){return $0="useTransition",U1(),VK()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",U1(),JK(w,z,Z)},useId:function(){return $0="useId",U1(),FK()},useFormState:function(w,z){return $0="useFormState",U1(),R$(),k9(w,z)},useActionState:function(w,z){return $0="useActionState",U1(),k9(w,z)},useOptimistic:function(w){return $0="useOptimistic",U1(),YK(w)},useHostTransitionStatus:Q7,useMemoCache:Y7,useCacheRefresh:function(){return $0="useCacheRefresh",U1(),NK()},useEffectEvent:function(w){return $0="useEffectEvent",U1(),WK(w)}},Rk={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",q0(),_K(w,z)},useContext:function(w){return $0="useContext",q0(),s1(w)},useEffect:function(w,z){return $0="useEffect",q0(),u$(w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",q0(),UK(w,z,Z)},useInsertionEffect:function(w,z){$0="useInsertionEffect",q0(),G7(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",q0(),KK(w,z)},useMemo:function(w,z){$0="useMemo",q0();var Z=Y0.H;Y0.H=R8;try{return HK(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",q0();var $=Y0.H;Y0.H=R8;try{return zK(w,z,Z)}finally{Y0.H=$}},useRef:function(w){return $0="useRef",q0(),QK(w)},useState:function(w){$0="useState",q0();var z=Y0.H;Y0.H=R8;try{return $K(w)}finally{Y0.H=z}},useDebugValue:function(){$0="useDebugValue",q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",q0(),qK(w,z)},useTransition:function(){return $0="useTransition",q0(),VK()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",q0(),JK(w,z,Z)},useId:function(){return $0="useId",q0(),FK()},useActionState:function(w,z){return $0="useActionState",q0(),k9(w,z)},useFormState:function(w,z){return $0="useFormState",q0(),R$(),k9(w,z)},useOptimistic:function(w){return $0="useOptimistic",q0(),YK(w)},useHostTransitionStatus:Q7,useMemoCache:Y7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),NK()},useEffectEvent:function(w){return $0="useEffectEvent",q0(),WK(w)}},B_={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",q0(),l$(w,z)},useContext:function(w){return $0="useContext",q0(),s1(w)},useEffect:function(w,z){$0="useEffect",q0(),M2(2048,L2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",q0(),c$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",q0(),M2(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",q0(),M2(4,o2,w,z)},useMemo:function(w,z){$0="useMemo",q0();var Z=Y0.H;Y0.H=r5;try{return i$(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",q0();var $=Y0.H;Y0.H=r5;try{return N9(w,z,Z)}finally{Y0.H=$}},useRef:function(){return $0="useRef",q0(),C1().memoizedState},useState:function(){$0="useState",q0();var w=Y0.H;Y0.H=r5;try{return N9(d5)}finally{Y0.H=w}},useDebugValue:function(){$0="useDebugValue",q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",q0(),uL(w,z)},useTransition:function(){return $0="useTransition",q0(),aL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",q0(),f$(w,z,Z)},useId:function(){return $0="useId",q0(),C1().memoizedState},useFormState:function(w){return $0="useFormState",q0(),R$(),m$(w)},useActionState:function(w){return $0="useActionState",q0(),m$(w)},useOptimistic:function(w,z){return $0="useOptimistic",q0(),IL(w,z)},useHostTransitionStatus:Q7,useMemoCache:Y7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),C1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",q0(),p$(w)}},gk={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",q0(),l$(w,z)},useContext:function(w){return $0="useContext",q0(),s1(w)},useEffect:function(w,z){$0="useEffect",q0(),M2(2048,L2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",q0(),c$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",q0(),M2(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",q0(),M2(4,o2,w,z)},useMemo:function(w,z){$0="useMemo",q0();var Z=Y0.H;Y0.H=s3;try{return i$(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",q0();var $=Y0.H;Y0.H=s3;try{return RZ(w,z,Z)}finally{Y0.H=$}},useRef:function(){return $0="useRef",q0(),C1().memoizedState},useState:function(){$0="useState",q0();var w=Y0.H;Y0.H=s3;try{return RZ(d5)}finally{Y0.H=w}},useDebugValue:function(){$0="useDebugValue",q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",q0(),pL(w,z)},useTransition:function(){return $0="useTransition",q0(),sL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",q0(),f$(w,z,Z)},useId:function(){return $0="useId",q0(),C1().memoizedState},useFormState:function(w){return $0="useFormState",q0(),R$(),d$(w)},useActionState:function(w){return $0="useActionState",q0(),d$(w)},useOptimistic:function(w,z){return $0="useOptimistic",q0(),SL(w,z)},useHostTransitionStatus:Q7,useMemoCache:Y7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),C1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",q0(),p$(w)}},R8={readContext:function(w){return L(),s1(w)},use:function(w){return H(),n6(w)},useCallback:function(w,z){return $0="useCallback",H(),U1(),_K(w,z)},useContext:function(w){return $0="useContext",H(),U1(),s1(w)},useEffect:function(w,z){return $0="useEffect",H(),U1(),u$(w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",H(),U1(),UK(w,z,Z)},useInsertionEffect:function(w,z){$0="useInsertionEffect",H(),U1(),G7(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",H(),U1(),KK(w,z)},useMemo:function(w,z){$0="useMemo",H(),U1();var Z=Y0.H;Y0.H=R8;try{return HK(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",H(),U1();var $=Y0.H;Y0.H=R8;try{return zK(w,z,Z)}finally{Y0.H=$}},useRef:function(w){return $0="useRef",H(),U1(),QK(w)},useState:function(w){$0="useState",H(),U1();var z=Y0.H;Y0.H=R8;try{return $K(w)}finally{Y0.H=z}},useDebugValue:function(){$0="useDebugValue",H(),U1()},useDeferredValue:function(w,z){return $0="useDeferredValue",H(),U1(),qK(w,z)},useTransition:function(){return $0="useTransition",H(),U1(),VK()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",H(),U1(),JK(w,z,Z)},useId:function(){return $0="useId",H(),U1(),FK()},useFormState:function(w,z){return $0="useFormState",H(),U1(),k9(w,z)},useActionState:function(w,z){return $0="useActionState",H(),U1(),k9(w,z)},useOptimistic:function(w){return $0="useOptimistic",H(),U1(),YK(w)},useMemoCache:function(w){return H(),Y7(w)},useHostTransitionStatus:Q7,useCacheRefresh:function(){return $0="useCacheRefresh",U1(),NK()},useEffectEvent:function(w){return $0="useEffectEvent",H(),U1(),WK(w)}},r5={readContext:function(w){return L(),s1(w)},use:function(w){return H(),n6(w)},useCallback:function(w,z){return $0="useCallback",H(),q0(),l$(w,z)},useContext:function(w){return $0="useContext",H(),q0(),s1(w)},useEffect:function(w,z){$0="useEffect",H(),q0(),M2(2048,L2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",H(),q0(),c$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",H(),q0(),M2(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",H(),q0(),M2(4,o2,w,z)},useMemo:function(w,z){$0="useMemo",H(),q0();var Z=Y0.H;Y0.H=r5;try{return i$(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",H(),q0();var $=Y0.H;Y0.H=r5;try{return N9(w,z,Z)}finally{Y0.H=$}},useRef:function(){return $0="useRef",H(),q0(),C1().memoizedState},useState:function(){$0="useState",H(),q0();var w=Y0.H;Y0.H=r5;try{return N9(d5)}finally{Y0.H=w}},useDebugValue:function(){$0="useDebugValue",H(),q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",H(),q0(),uL(w,z)},useTransition:function(){return $0="useTransition",H(),q0(),aL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",H(),q0(),f$(w,z,Z)},useId:function(){return $0="useId",H(),q0(),C1().memoizedState},useFormState:function(w){return $0="useFormState",H(),q0(),m$(w)},useActionState:function(w){return $0="useActionState",H(),q0(),m$(w)},useOptimistic:function(w,z){return $0="useOptimistic",H(),q0(),IL(w,z)},useMemoCache:function(w){return H(),Y7(w)},useHostTransitionStatus:Q7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),C1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",H(),q0(),p$(w)}},s3={readContext:function(w){return L(),s1(w)},use:function(w){return H(),n6(w)},useCallback:function(w,z){return $0="useCallback",H(),q0(),l$(w,z)},useContext:function(w){return $0="useContext",H(),q0(),s1(w)},useEffect:function(w,z){$0="useEffect",H(),q0(),M2(2048,L2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",H(),q0(),c$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",H(),q0(),M2(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",H(),q0(),M2(4,o2,w,z)},useMemo:function(w,z){$0="useMemo",H(),q0();var Z=Y0.H;Y0.H=r5;try{return i$(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",H(),q0();var $=Y0.H;Y0.H=r5;try{return RZ(w,z,Z)}finally{Y0.H=$}},useRef:function(){return $0="useRef",H(),q0(),C1().memoizedState},useState:function(){$0="useState",H(),q0();var w=Y0.H;Y0.H=r5;try{return RZ(d5)}finally{Y0.H=w}},useDebugValue:function(){$0="useDebugValue",H(),q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",H(),q0(),pL(w,z)},useTransition:function(){return $0="useTransition",H(),q0(),sL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",H(),q0(),f$(w,z,Z)},useId:function(){return $0="useId",H(),q0(),C1().memoizedState},useFormState:function(w){return $0="useFormState",H(),q0(),d$(w)},useActionState:function(w){return $0="useActionState",H(),q0(),d$(w)},useOptimistic:function(w,z){return $0="useOptimistic",H(),q0(),SL(w,z)},useMemoCache:function(w){return H(),Y7(w)},useHostTransitionStatus:Q7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),C1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",H(),q0(),p$(w)}};var fk={},mk=new Set,dk=new Set,uk=new Set,pk=new Set,ck=new Set,lk=new Set,ik=new Set,rk=new Set,ak=new Set,sk=new Set;Object.freeze(fk);var L_={enqueueSetState:function(w,z,Z){w=w._reactInternals;var $=p2(w),G=r6($);G.payload=z,Z!==void 0&&Z!==null&&(jK(Z),G.callback=Z),z=a6(w,G,$),z!==null&&(q8($,"this.setState()",w),Zw(z,w,$),CZ(z,w,$))},enqueueReplaceState:function(w,z,Z){w=w._reactInternals;var $=p2(w),G=r6($);G.tag=Pk,G.payload=z,Z!==void 0&&Z!==null&&(jK(Z),G.callback=Z),z=a6(w,G,$),z!==null&&(q8($,"this.replaceState()",w),Zw(z,w,$),CZ(z,w,$))},enqueueForceUpdate:function(w,z){w=w._reactInternals;var Z=p2(w),$=r6(Z);$.tag=Ik,z!==void 0&&z!==null&&(jK(z),$.callback=z),z=a6(w,$,Z),z!==null&&(q8(Z,"this.forceUpdate()",w),Zw(z,w,Z),CZ(z,w,Z))}},Jz=null,V_=null,F_=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."),kw=!1,ok={},nk={},tk={},ek={},Xz=!1,wj={},o3={},N_={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},zj=!1,Zj=null;Zj=new Set;var N6=!1,jw=!1,k_=!1,Jj=typeof WeakSet==="function"?WeakSet:Set,mw=null,$z=null,Yz=null,Aw=null,T2=!1,a5=null,Iw=!1,CJ=8192,iv={getCacheForType:function(w){var z=s1(Vw),Z=z.data.get(w);return Z===void 0&&(Z=w(),z.data.set(w,Z)),Z},cacheSignal:function(){return s1(Vw).controller.signal},getOwner:function(){return i2}};if(typeof Symbol==="function"&&Symbol.for){var SJ=Symbol.for;SJ("selector.component"),SJ("selector.has_pseudo_class"),SJ("selector.role"),SJ("selector.test_id"),SJ("selector.text")}var rv=[],av=typeof WeakMap==="function"?WeakMap:Map,dw=0,Cw=2,n2=4,k6=0,bJ=1,O7=2,n3=3,L4=4,t3=6,Xj=5,M1=dw,g1=null,K1=null,Q1=0,x2=0,e3=1,D7=2,yJ=3,$j=4,j_=5,RJ=6,wY=7,A_=8,T7=9,S1=x2,t2=null,V4=!1,Gz=!1,M_=!1,g8=0,e1=k6,F4=0,N4=0,O_=0,E2=0,x7=0,gJ=null,V2=null,zY=!1,ZY=0,Yj=0,Gj=300,JY=1/0,Qj=500,fJ=null,Ww=null,k4=null,XY=0,D_=1,T_=2,Wj=3,j4=0,Kj=1,Uj=2,_j=3,Hj=4,$Y=5,Mw=0,A4=null,Qz=null,s5=0,x_=0,E_=-0,h_=null,qj=null,Bj=null,o5=XY,Lj=null,sv=50,mJ=0,v_=null,P_=!1,YY=!1,ov=50,E7=0,dJ=null,Wz=!1,GY=null,Vj=!1,Fj=new Set,nv={},QY=null,Kz=null,I_=!1,C_=!1,WY=!1,S_=!1,M4=0,b_={};(function(){for(var w=0;w<iU.length;w++){var z=iU[w],Z=z.toLowerCase();z=z[0].toUpperCase()+z.slice(1),m5(Z,"on"+z)}m5(aN,"onAnimationEnd"),m5(sN,"onAnimationIteration"),m5(oN,"onAnimationStart"),m5("dblclick","onDoubleClick"),m5("focusin","onFocus"),m5("focusout","onBlur"),m5(xv,"onTransitionRun"),m5(Ev,"onTransitionStart"),m5(hv,"onTransitionCancel"),m5(nN,"onTransitionEnd")})(),Q2("onMouseEnter",["mouseout","mouseover"]),Q2("onMouseLeave",["mouseout","mouseover"]),Q2("onPointerEnter",["pointerout","pointerover"]),Q2("onPointerLeave",["pointerout","pointerover"]),vw("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vw("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vw("onBeforeInput",["compositionend","keypress","textInput","paste"]),vw("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vw("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vw("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uJ="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(" "),y_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uJ)),KY="_reactListening"+Math.random().toString(36).slice(2),Nj=!1,kj=!1,UY=!1,jj=!1,_Y=!1,HY=!1,Aj=!1,qY={},tv=/\r\n?/g,ev=/\u0000|\uFFFD/g,h7="http://www.w3.org/1999/xlink",R_="http://www.w3.org/XML/1998/namespace",wP="javascript:throw new Error('React form unexpectedly submitted.')",zP="suppressHydrationWarning",v7="&",BY="/&",pJ="$",cJ="/$",O4="$?",P7="$~",Uz="$!",ZP="html",JP="body",XP="head",g_="F!",Mj="F",Oj="loading",$P="style",j6=0,_z=1,LY=2,f_=null,m_=null,Dj={dialog:!0,webview:!0},d_=null,lJ=void 0,Tj=typeof setTimeout==="function"?setTimeout:void 0,YP=typeof clearTimeout==="function"?clearTimeout:void 0,I7=-1,xj=typeof Promise==="function"?Promise:void 0,GP=typeof queueMicrotask==="function"?queueMicrotask:typeof xj<"u"?function(w){return xj.resolve(null).then(w).catch(lE)}:Tj,u_=null,C7=0,iJ=1,Ej=2,hj=3,A5=4,M5=new Map,vj=new Set,A6=I1.d;I1.d={f:function(){var w=A6.f(),z=D9();return w||z},r:function(w){var z=a0(w);z!==null&&z.tag===5&&z.type==="form"?rL(z):A6.r(w)},D:function(w){A6.D(w),mF("dns-prefetch",w,null)},C:function(w,z){A6.C(w,z),mF("preconnect",w,z)},L:function(w,z,Z){A6.L(w,z,Z);var $=Hz;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=E9(w);break;case"script":Q=h9(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(tZ(Q))||z==="script"&&$.querySelector(eZ(Q))||(z=$.createElement("link"),aw(z,"link",w),d0(z),$.head.appendChild(z)))}},m:function(w,z){A6.m(w,z);var Z=Hz;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=h9(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(eZ(Q)))return}$=Z.createElement("link"),aw($,"link",w),d0($),Z.head.appendChild($)}}},X:function(w,z){A6.X(w,z);var Z=Hz;if(Z&&w){var $=$1(Z).hoistableScripts,G=h9(w),Q=$.get(G);Q||(Q=Z.querySelector(eZ(G)),Q||(w=_1({src:w,async:!0},z),(z=M5.get(G))&&UU(w,z),Q=Z.createElement("script"),d0(Q),aw(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 $=Hz;if($&&w){var G=$1($).hoistableStyles,Q=E9(w);z=z||"default";var _=G.get(Q);if(!_){var B={loading:C7,preload:null};if(_=$.querySelector(tZ(Q)))B.loading=iJ|A5;else{w=_1({rel:"stylesheet",href:w,"data-precedence":z},Z),(Z=M5.get(Q))&&KU(w,Z);var A=_=$.createElement("link");d0(A),aw(A,"link",w),A._p=new Promise(function(D,i){A.onload=D,A.onerror=i}),A.addEventListener("load",function(){B.loading|=iJ}),A.addEventListener("error",function(){B.loading|=Ej}),B.loading|=A5,U3(_,z,$)}_={type:"stylesheet",instance:_,count:1,state:B},G.set(Q,_)}}},M:function(w,z){A6.M(w,z);var Z=Hz;if(Z&&w){var $=$1(Z).hoistableScripts,G=h9(w),Q=$.get(G);Q||(Q=Z.querySelector(eZ(G)),Q||(w=_1({src:w,async:!0,type:"module"},z),(z=M5.get(G))&&UU(w,z),Q=Z.createElement("script"),d0(Q),aw(Q,"link",w),Z.head.appendChild(Q)),Q={type:"script",instance:Q,count:1,state:null},$.set(G,Q))}}};var Hz=typeof document>"u"?null:document,VY=null,QP=60000,WP=800,KP=500,p_=0,c_=null,FY=null,S7=Dh,rJ={$$typeof:E8,Provider:null,Consumer:null,_currentValue:S7,_currentValue2:S7,_threadCount:0},Pj="%c%s%c",Ij="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",Cj="",NY=" ",UP=Function.prototype.bind,Sj=!1,bj=null,yj=null,Rj=null,gj=null,fj=null,mj=null,dj=null,uj=null,pj=null,cj=null;bj=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=w2(w,2),Z!==null&&Zw(Z,w,2))},yj=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=w2(w,2),Z!==null&&Zw(Z,w,2))},Rj=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=w2(w,2),Z!==null&&Zw(Z,w,2))},gj=function(w,z,Z){w.pendingProps=X(w.memoizedProps,z,0,Z),w.alternate&&(w.alternate.pendingProps=w.pendingProps),z=w2(w,2),z!==null&&Zw(z,w,2)},fj=function(w,z){w.pendingProps=K(w.memoizedProps,z,0),w.alternate&&(w.alternate.pendingProps=w.pendingProps),z=w2(w,2),z!==null&&Zw(z,w,2)},mj=function(w,z,Z){w.pendingProps=Y(w.memoizedProps,z,Z),w.alternate&&(w.alternate.pendingProps=w.pendingProps),z=w2(w,2),z!==null&&Zw(z,w,2)},dj=function(w){var z=w2(w,2);z!==null&&Zw(z,w,2)},uj=function(w){var z=q1(),Z=w2(w,z);Z!==null&&Zw(Z,w,z)},pj=function(w){q=w},cj=function(w){U=w};var kY=!0,jY=null,l_=!1,D4=null,T4=null,x4=null,aJ=new Map,sJ=new Map,E4=[],_P="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(" "),AY=null;if(L3.prototype.render=VU.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()."):h(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($);_U($,G,Z,z,null,null)},L3.prototype.unmount=VU.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&(Cw|n2))!==dw&&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."),_U(w.current,2,null,w,null,null),D9(),z[X4]=null}},L3.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&&wN(w)}},function(){var w=Bz.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=v(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:Y0,reconcilerVersion:"19.2.3"};return w.overrideHookState=bj,w.overrideHookStateDeletePath=yj,w.overrideHookStateRenamePath=Rj,w.overrideProps=gj,w.overridePropsDeletePath=fj,w.overridePropsRenamePath=mj,w.scheduleUpdate=dj,w.scheduleRetry=uj,w.setErrorHandler=pj,w.setSuspenseHandler=cj,w.scheduleRefresh=O,w.scheduleRoot=j,w.setRefreshHandler=M,w.getCurrentFiber=Vh,c0(w)}()&&C8&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var lj=window.location.protocol;/^(https?|file):$/.test(lj)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(lj==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}AP.createRoot=function(w,z){if(!h(w))throw Error("Target container is not a DOM element.");XN(w);var Z=!1,$="",G=zV,Q=ZV,_=JV;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=rF(w,1,!1,null,null,Z,$,null,G,Q,_,JN),w[X4]=z.current,tK(w),new VU(z)},AP.hydrateRoot=function(w,z,Z){if(!h(w))throw Error("Target container is not a DOM element.");XN(w),z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var $=!1,G="",Q=zV,_=ZV,B=JV,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=rF(w,1,!0,z,Z!=null?Z:null,$,G,A,Q,_,B,JN),z.context=aF(null),Z=z.current,$=p2(Z),$=hw($),G=r6($),G.callback=null,a6(Z,G,$),q8($,"hydrateRoot()",null),Z=$,z.current.lanes=Z,W1(z,Z),D8(z),w[X4]=z.current,tK(w),new L3(z)},AP.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((Sg,oj)=>{var MP=p(sj());oj.exports=MP});var x1=f8((bP)=>{var f7=p(G0());(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 h:return"StrictMode";case v: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 q(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 H(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 N(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 F(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++)V(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 V(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),q(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&&H(U0,typeof P==="function"?P.displayName||P.name||"Unknown":P),N(P,V0,U0,K(),L0,S0)}function V(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"),h=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"),v=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=f7.__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};f7={react_stack_bottom_frame:function(P){return P()}};var r,e={},o=f7.react_stack_bottom_frame.bind(f7,U)(),g=Q0(W(U)),X0={};bP.Fragment=M,bP.jsx=function(P,z0,U0){var J0=1e4>w0.recentlyCreatedOwnerStacks++;return F(P,z0,U0,!1,J0?Error("react-stack-top-frame"):o,J0?Q0(W(P)):g)},bP.jsxs=function(P,z0,U0){var J0=1e4>w0.recentlyCreatedOwnerStacks++;return F(P,z0,U0,!0,J0?Error("react-stack-top-frame"):o,J0?Q0(W(P)):g)}})()});var $q=f8((xS)=>{var $5=p(G0());(function(){function J(k,j){return k===j&&(k!==0||1/k===1/j)||k!==k&&j!==j}function X(k,j){N||$5.startTransition===void 0||(N=!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(!F){var M=j();K(O,M)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),F=!0)}M=U({inst:{value:O,getSnapshot:j}});var h=M[0].inst,x=M[1];return H(function(){h.value=O,h.getSnapshot=j,Y(h)&&x({inst:h})},[k,O,j]),q(function(){return Y(h)&&x({inst:h}),k(function(){Y(h)&&x({inst:h})})},[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,q=$5.useEffect,H=$5.useLayoutEffect,L=$5.useDebugValue,N=!1,F=!1,V=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?W:X;xS.useSyncExternalStore=$5.useSyncExternalStore!==void 0?$5.useSyncExternalStore:V,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var RO=f8((ES)=>{var h6=p(G0());(function(){function J(L,N){return L===N&&(L!==0||1/L===1/N)||L!==L&&N!==N}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var X=$q(),Y=typeof Object.is==="function"?Object.is:J,W=X.useSyncExternalStore,K=h6.useRef,U=h6.useEffect,q=h6.useMemo,H=h6.useDebugValue;ES.useSyncExternalStoreWithSelector=function(L,N,F,V,k){var j=K(null);if(j.current===null){var O={hasValue:!1,value:null};j.current=O}else O=j.current;j=q(function(){function h(v){if(!x){if(x=!0,E=v,v=V(v),k!==void 0&&O.hasValue){var m=O.value;if(k(m,v))return I=m}return I=v}if(m=I,Y(E,v))return m;var R=V(v);if(k!==void 0&&k(m,R))return E=v,m;return E=v,I=R}var x=!1,E,I,C=F===void 0?null:F;return[function(){return h(N())},C===null?void 0:function(){return h(C())}]},[N,F,V,k]);var M=W(L,j[0],j[1]);return U(function(){O.hasValue=!0,O.value=M},[M]),H(M),M},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var v1=f8((yy)=>{var W9=p(G0());(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 h:return"StrictMode";case v: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 q(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 H(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 N(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 F(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++)V(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 V(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),q(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&&H(U0,typeof P==="function"?P.displayName||P.name||"Unknown":P),N(P,V0,U0,K(),L0,S0)}function V(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"),h=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"),v=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=W9.__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};W9={react_stack_bottom_frame:function(P){return P()}};var r,e={},o=W9.react_stack_bottom_frame.bind(W9,U)(),g=Q0(W(U)),X0={};yy.Fragment=M,yy.jsxDEV=function(P,z0,U0,J0){var L0=1e4>w0.recentlyCreatedOwnerStacks++;return F(P,z0,U0,J0,L0?Error("react-stack-top-frame"):o,L0?Q0(W(P)):g)}})()});var Ix=p(nj(),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 OP={setTimeout:(J,X)=>setTimeout(J,X),clearTimeout:(J)=>clearTimeout(J),setInterval:(J,X)=>setInterval(J,X),clearInterval:(J)=>clearInterval(J)},DP=class{#w=OP;#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 DP;function tj(J){setTimeout(J,0)}var h2=typeof window>"u"||"Deno"in globalThis;function Ow(){}function zA(J,X){return typeof J==="function"?J(X):J}function oJ(J){return typeof J==="number"&&J>=0&&J!==1/0}function DY(J,X){return Math.max(J+(X||0)-Date.now(),0)}function n5(J,X){return typeof J==="function"?J(X):J}function v2(J,X){return typeof J==="function"?J(X):J}function TY(J,X){let{type:Y="all",exact:W,fetchStatus:K,predicate:U,queryKey:q,stale:H}=J;if(q){if(W){if(X.queryHash!==nJ(q,X.options))return!1}else if(!g7(X.queryKey,q))return!1}if(Y!=="all"){let L=X.isActive();if(Y==="active"&&!L)return!1;if(Y==="inactive"&&L)return!1}if(typeof H==="boolean"&&X.isStale()!==H)return!1;if(K&&K!==X.state.fetchStatus)return!1;if(U&&!U(X))return!1;return!0}function xY(J,X){let{exact:Y,status:W,predicate:K,mutationKey:U}=J;if(U){if(!X.options.mutationKey)return!1;if(Y){if(y7(X.options.mutationKey)!==y7(U))return!1}else if(!g7(X.options.mutationKey,U))return!1}if(W&&X.state.status!==W)return!1;if(K&&!K(X))return!1;return!0}function nJ(J,X){return(X?.queryKeyHashFn||y7)(J)}function y7(J){return JSON.stringify(J,(X,Y)=>s_(Y)?Object.keys(Y).sort().reduce((W,K)=>{return W[K]=Y[K],W},{}):Y)}function g7(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)=>g7(J[Y],X[Y]));return!1}var TP=Object.prototype.hasOwnProperty;function OY(J,X){if(J===X)return J;let Y=ej(J)&&ej(X);if(!Y&&!(s_(J)&&s_(X)))return X;let K=(Y?J:Object.keys(J)).length,U=Y?X:Object.keys(X),q=U.length,H=Y?Array(q):{},L=0;for(let N=0;N<q;N++){let F=Y?N:U[N],V=J[F],k=X[F];if(V===k){if(H[F]=V,Y?N<K:TP.call(J,F))L++;continue}if(V===null||k===null||typeof V!=="object"||typeof k!=="object"){H[F]=k;continue}let j=OY(V,k);if(H[F]=j,j===V)L++}return K===q&&L===K?J:H}function EY(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 ej(J){return Array.isArray(J)&&J.length===Object.keys(J).length}function s_(J){if(!wA(J))return!1;let X=J.constructor;if(X===void 0)return!0;let Y=X.prototype;if(!wA(Y))return!1;if(!Y.hasOwnProperty("isPrototypeOf"))return!1;if(Object.getPrototypeOf(J)!==Object.prototype)return!1;return!0}function wA(J){return Object.prototype.toString.call(J)==="[object Object]"}function ZA(J){return new Promise((X)=>{u8.setTimeout(X,J)})}function tJ(J,X,Y){if(typeof Y.structuralSharing==="function")return Y.structuralSharing(J,X);else if(Y.structuralSharing!==!1){try{return OY(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 OY(J,X)}return X}function JA(J,X,Y=0){let W=[...J,X];return Y&&W.length>Y?W.slice(1):W}function XA(J,X,Y=0){let W=[X,...J];return Y&&W.length>Y?W.slice(0,-1):W}var R7=Symbol();function hY(J,X){if(J.queryFn===R7)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===R7)return()=>Promise.reject(Error(`Missing queryFn: '${J.queryHash}'`));return J.queryFn}function o_(J,X){if(typeof J==="function")return J(...X);return!!J}var xP=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"}},Lz=new xP;function eJ(){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 $A=tj;function EP(){let J=[],X=0,Y=(H)=>{H()},W=(H)=>{H()},K=$A,U=(H)=>{if(X)J.push(H);else K(()=>{Y(H)})},q=()=>{let H=J;if(J=[],H.length)K(()=>{W(()=>{H.forEach((L)=>{Y(L)})})})};return{batch:(H)=>{let L;X++;try{L=H()}finally{if(X--,!X)q()}return L},batchCalls:(H)=>{return(...L)=>{U(()=>{H(...L)})}},schedule:U,setNotifyFunction:(H)=>{Y=H},setBatchNotifyFunction:(H)=>{W=H},setScheduler:(H)=>{K=H}}}var n1=EP();var hP=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}},Vz=new hP;function vP(J){return Math.min(1000*2**J,30000)}function n_(J){return(J??"online")==="online"?Vz.isOnline():!0}var vY=class extends Error{constructor(J){super("CancelledError");this.revert=J?.revert,this.silent=J?.silent}};function PY(J){let X=!1,Y=0,W,K=eJ(),U=()=>K.status!=="pending",q=(M)=>{if(!U()){let h=new vY(M);k(h),J.onCancel?.(h)}},H=()=>{X=!0},L=()=>{X=!1},N=()=>Lz.isFocused()&&(J.networkMode==="always"||Vz.isOnline())&&J.canRun(),F=()=>n_(J.networkMode)&&J.canRun(),V=(M)=>{if(!U())W?.(),K.resolve(M)},k=(M)=>{if(!U())W?.(),K.reject(M)},j=()=>{return new Promise((M)=>{W=(h)=>{if(U()||N())M(h)},J.onPause?.()}).then(()=>{if(W=void 0,!U())J.onContinue?.()})},O=()=>{if(U())return;let M,h=Y===0?J.initialPromise:void 0;try{M=h??J.fn()}catch(x){M=Promise.reject(x)}Promise.resolve(M).then(V).catch((x)=>{if(U())return;let E=J.retry??(h2?0:3),I=J.retryDelay??vP,C=typeof I==="function"?I(Y,x):I,v=E===!0||typeof E==="number"&&Y<E||typeof E==="function"&&E(Y,x);if(X||!v){k(x);return}Y++,J.onFail?.(Y,x),ZA(C).then(()=>{return N()?void 0:j()}).then(()=>{if(X)k(x);else O()})})};return{promise:K,status:()=>K.status,cancel:q,continue:()=>{return W?.(),K},cancelRetry:H,continueRetry:L,canStart:F,start:()=>{if(F())O();else j().then(O);return K}}}var IY=class{#w;destroy(){this.clearGcTimeout()}scheduleGc(){if(this.clearGcTimeout(),oJ(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 QA=class extends IY{#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=GA(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=GA(this.options);if(X.data!==void 0)this.setState(YA(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=tJ(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(Ow).catch(Ow):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#w)}isActive(){return this.observers.some((J)=>v2(J.options.enabled,this)!==!1)}isDisabled(){if(this.getObserversCount()>0)return!this.isActive();return this.options.queryFn===R7||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!DY(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 H=this.observers.find((L)=>L.options.queryFn);if(H)this.setOptions(H.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=(H)=>{Object.defineProperty(H,"signal",{enumerable:!0,get:()=>{return this.#Y=!0,Y.signal}})},K=()=>{let H=hY(this.options,X),N=(()=>{let F={client:this.#X,queryKey:this.queryKey,meta:this.meta};return W(F),F})();if(this.#Y=!1,this.options.persister)return this.options.persister(H,N,this);return H(N)},q=(()=>{let H={fetchOptions:X,options:this.options,queryKey:this.queryKey,client:this.#X,state:this.state,fetchFn:K};return W(H),H})();if(this.options.behavior?.onFetch(q,this),this.#z=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==q.fetchOptions?.meta)this.#$({type:"fetch",meta:q.fetchOptions?.meta});this.#J=PY({initialPromise:X?.initialPromise,fn:q.fetchFn,onCancel:(H)=>{if(H instanceof vY&&H.revert)this.setState({...this.#z,fetchStatus:"idle"});Y.abort()},onFail:(H,L)=>{this.#$({type:"failed",failureCount:H,error:L})},onPause:()=>{this.#$({type:"pause"})},onContinue:()=>{this.#$({type:"continue"})},retry:q.options.retry,retryDelay:q.options.retryDelay,networkMode:q.options.networkMode,canRun:()=>!0});try{let H=await this.#J.start();if(H===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(H),this.#Z.config.onSuccess?.(H,this),this.#Z.config.onSettled?.(H,this.state.error,this),H}catch(H){if(H instanceof vY){if(H.silent)return this.#J.promise;else if(H.revert){if(this.state.data===void 0)throw H;return this.state.data}}throw this.#$({type:"error",error:H}),this.#Z.config.onError?.(H,this),this.#Z.config.onSettled?.(this.state.data,H,this),H}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,...t_(Y.data,this.options),fetchMeta:J.meta??null};case"success":let W={...Y,...YA(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 t_(J,X){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:n_(X.networkMode)?"fetching":"paused",...J===void 0&&{error:null,status:"pending"}}}function YA(J,X){return{data:J,dataUpdatedAt:X??Date.now(),error:null,isInvalidated:!1,status:"success"}}function GA(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 wH=class extends d8{constructor(J,X){super();this.options=X,this.#w=J,this.#$=null,this.#Y=eJ(),this.bindMethods(),this.setOptions(X)}#w;#z=void 0;#Z=void 0;#X=void 0;#J;#G;#Y;#$;#B;#_;#H;#W;#K;#Q;#q=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#z.addObserver(this),WA(this.#z,this.options))this.#U();else this.updateResult();this.#N()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return e_(this.#z,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return e_(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 v2(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&&!EY(this.options,X))this.#w.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#z,observer:this});let W=this.hasListeners();if(W&&KA(this.#z,Y,this.options,X))this.#U();if(this.updateResult(),W&&(this.#z!==Y||v2(this.options.enabled,this.#z)!==v2(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||v2(this.options.enabled,this.#z)!==v2(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(IP(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.#q.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(Ow);return X}#L(){this.#k();let J=n5(this.options.staleTime,this.#z);if(h2||this.#X.isStale||!oJ(J))return;let Y=DY(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||v2(this.options.enabled,this.#z)===!1||!oJ(this.#Q)||this.#Q===0)return;this.#K=u8.setInterval(()=>{if(this.options.refetchIntervalInBackground||Lz.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,q=this.#G,L=J!==Y?J.state:this.#Z,{state:N}=J,F={...N},V=!1,k;if(X._optimisticResults){let S=this.hasListeners(),c=!S&&WA(J,X),d=S&&KA(J,Y,X,W);if(c||d)F={...F,...t_(N.data,J.options)};if(X._optimisticResults==="isRestoring")F.fetchStatus="idle"}let{error:j,errorUpdatedAt:O,status:M}=F;k=F.data;let h=!1;if(X.placeholderData!==void 0&&k===void 0&&M==="pending"){let S;if(K?.isPlaceholderData&&X.placeholderData===q?.placeholderData)S=K.data,h=!0;else S=typeof X.placeholderData==="function"?X.placeholderData(this.#H?.state.data,this.#H):X.placeholderData;if(S!==void 0)M="success",k=tJ(K?.data,S,X),V=!0}if(X.select&&k!==void 0&&!h)if(K&&k===U?.data&&X.select===this.#B)k=this.#_;else try{this.#B=X.select,k=X.select(k),k=tJ(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=F.fetchStatus==="fetching",E=M==="pending",I=M==="error",C=E&&x,v=k!==void 0,R={status:M,fetchStatus:F.fetchStatus,isPending:E,isSuccess:M==="success",isError:I,isInitialLoading:C,isLoading:C,data:k,dataUpdatedAt:F.dataUpdatedAt,error:j,errorUpdatedAt:O,failureCount:F.fetchFailureCount,failureReason:F.fetchFailureReason,errorUpdateCount:F.errorUpdateCount,isFetched:F.dataUpdateCount>0||F.errorUpdateCount>0,isFetchedAfterMount:F.dataUpdateCount>L.dataUpdateCount||F.errorUpdateCount>L.errorUpdateCount,isFetching:x,isRefetching:x&&!E,isLoadingError:I&&!v,isPaused:F.fetchStatus==="paused",isPlaceholderData:V,isRefetchError:I&&v,isStale:zH(J,X),refetch:this.refetch,promise:this.#Y,isEnabled:v2(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=eJ();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.#H=this.#z;if(EY(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.#q.size)return!0;let U=new Set(K??this.#q);if(this.options.throwOnError)U.add("error");return Object.keys(this.#X).some((q)=>{let H=q;return this.#X[H]!==J[H]&&U.has(H)})};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 PP(J,X){return v2(X.enabled,J)!==!1&&J.state.data===void 0&&!(J.state.status==="error"&&X.retryOnMount===!1)}function WA(J,X){return PP(J,X)||J.state.data!==void 0&&e_(J,X,X.refetchOnMount)}function e_(J,X,Y){if(v2(X.enabled,J)!==!1&&n5(X.staleTime,J)!=="static"){let W=typeof Y==="function"?Y(J):Y;return W==="always"||W!==!1&&zH(J,X)}return!1}function KA(J,X,Y,W){return(J!==X||v2(W.enabled,J)===!1)&&(!Y.suspense||J.state.status!=="error")&&zH(J,Y)}function zH(J,X){return v2(X.enabled,J)!==!1&&J.isStaleByTime(n5(X.staleTime,J))}function IP(J,X){if(!EY(J.getCurrentResult(),X))return!0;return!1}function ZH(J){return{onFetch:(X,Y)=>{let W=X.options,K=X.fetchOptions?.meta?.fetchMore?.direction,U=X.state.data?.pages||[],q=X.state.data?.pageParams||[],H={pages:[],pageParams:[]},L=0,N=async()=>{let F=!1,V=(O)=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>{if(X.signal.aborted)F=!0;else X.signal.addEventListener("abort",()=>{F=!0});return X.signal}})},k=hY(X.options,X.fetchOptions),j=async(O,M,h)=>{if(F)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:h?"backward":"forward",meta:X.options.meta};return V(m),m})(),I=await k(E),{maxPages:C}=X.options,v=h?XA:JA;return{pages:v(O.pages,I,C),pageParams:v(O.pageParams,M,C)}};if(K&&U.length){let O=K==="backward",M=O?CP:UA,h={pages:U,pageParams:q},x=M(W,h);H=await j(h,x,O)}else{let O=J??U.length;do{let M=L===0?q[0]??W.initialPageParam:UA(W,H);if(L>0&&M==null)break;H=await j(H,M),L++}while(L<O)}return H};if(X.options.persister)X.fetchFn=()=>{return X.options.persister?.(N,{client:X.client,queryKey:X.queryKey,meta:X.options.meta,signal:X.signal},Y)};else X.fetchFn=N}}}function UA(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 CP(J,{pages:X,pageParams:Y}){return X.length>0?J.getPreviousPageParam?.(X[0],X,Y[0],Y):void 0}var _A=class extends IY{#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||SP(),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=PY({fn:()=>{if(!this.options.mutationFn)return Promise.reject(Error("No mutationFn found"));return this.options.mutationFn(J,Y)},onFail:(U,q)=>{this.#J({type:"failed",failureCount:U,error:q})},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 q=await this.options.onMutate?.(J,Y);if(q!==this.state.context)this.#J({type:"pending",context:q,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 SP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var HA=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 _A({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=CY(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=CY(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=CY(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=CY(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)=>xY(X,Y))}findAll(J={}){return this.getAll().filter((X)=>xY(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(Ow))))}};function CY(J){return J.options.scope?.id}var qA=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??nJ(W,X),U=this.get(K);if(!U)U=new QA({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)=>TY(X,Y))}findAll(J={}){let X=this.getAll();return Object.keys(J).length>0?X.filter((Y)=>TY(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 JH=class{#w;#z;#Z;#X;#J;#G;#Y;#$;constructor(J={}){this.#w=J.queryCache||new qA,this.#z=J.mutationCache||new HA,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=Lz.subscribe(async(J)=>{if(J)await this.resumePausedMutations(),this.#w.onFocus()}),this.#$=Vz.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,q=zA(X,U);if(q===void 0)return;return this.#w.build(this,W).setData(q,{...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(Ow).catch(Ow)}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(Ow);return K.state.fetchStatus==="paused"?Promise.resolve():U}));return Promise.all(W).then(Ow)}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(Ow).catch(Ow)}fetchInfiniteQuery(J){return J.behavior=ZH(J.pages),this.fetchQuery(J)}prefetchInfiniteQuery(J){return this.fetchInfiniteQuery(J).then(Ow).catch(Ow)}ensureInfiniteQueryData(J){return J.behavior=ZH(J.pages),this.ensureQueryData(J)}resumePausedMutations(){if(Vz.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(y7(J),{queryKey:J,defaultOptions:X})}getQueryDefaults(J){let X=[...this.#X.values()],Y={};return X.forEach((W)=>{if(g7(J,W.queryKey))Object.assign(Y,W.defaultOptions)}),Y}setMutationDefaults(J,X){this.#J.set(y7(J),{mutationKey:J,defaultOptions:X})}getMutationDefaults(J){let X=[...this.#J.values()],Y={};return X.forEach((W)=>{if(g7(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=nJ(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===R7)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 Fz=p(G0(),1),BA=p(x1(),1),XH=Fz.createContext(void 0),$H=(J)=>{let X=Fz.useContext(XH);if(J)return J;if(!X)throw Error("No QueryClient set, use QueryClientProvider to set one");return X},YH=({client:J,children:X})=>{return Fz.useEffect(()=>{return J.mount(),()=>{J.unmount()}},[J]),BA.jsx(XH.Provider,{value:J,children:X})};var SY=p(G0(),1),LA=SY.createContext(!1),VA=()=>SY.useContext(LA),Hm=LA.Provider;var wX=p(G0(),1),yP=p(x1(),1);function RP(){let J=!1;return{clearReset:()=>{J=!1},reset:()=>{J=!0},isReset:()=>{return J}}}var gP=wX.createContext(RP()),FA=()=>wX.useContext(gP);var NA=p(G0(),1);var kA=(J,X)=>{if(J.suspense||J.throwOnError||J.experimental_prefetchInRender){if(!X.isReset())J.retryOnMount=!1}},jA=(J)=>{NA.useEffect(()=>{J.clearReset()},[J])},AA=({result:J,errorResetBoundary:X,throwOnError:Y,query:W,suspense:K})=>{return J.isError&&!X.isReset()&&!J.isFetching&&W&&(K&&J.data===void 0||o_(Y,[J.error,W]))};var MA=(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)}},OA=(J,X)=>J.isLoading&&J.isFetching&&!X,DA=(J,X)=>J?.suspense&&X.isPending,GH=(J,X,Y)=>X.fetchOptimistic(J).catch(()=>{Y.clearReset()});var h4=p(G0(),1);function TA(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=VA(),K=FA(),U=$H(Y),q=U.defaultQueryOptions(J);if(U.getDefaultOptions().queries?._experimental_beforeQuery?.(q),!q.queryFn)console.error(`[${q.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`);q._optimisticResults=W?"isRestoring":"optimistic",MA(q),kA(q,K),jA(K);let H=!U.getQueryCache().get(q.queryHash),[L]=h4.useState(()=>new X(U,q)),N=L.getOptimisticResult(q),F=!W&&J.subscribed!==!1;if(h4.useSyncExternalStore(h4.useCallback((V)=>{let k=F?L.subscribe(n1.batchCalls(V)):Ow;return L.updateResult(),k},[L,F]),()=>L.getCurrentResult(),()=>L.getCurrentResult()),h4.useEffect(()=>{L.setOptions(q)},[q,L]),DA(q,N))throw GH(q,L,K);if(AA({result:N,errorResetBoundary:K,throwOnError:q.throwOnError,query:U.getQueryCache().get(q.queryHash),suspense:q.suspense}))throw N.error;if(U.getDefaultOptions().queries?._experimental_afterQuery?.(q,N),q.experimental_prefetchInRender&&!h2&&OA(N,W))(H?GH(q,L,K):U.getQueryCache().get(q.queryHash)?.promise)?.catch(Ow).finally(()=>{L.updateResult()});return!q.notifyOnChangeProps?L.trackResult(N):N}function QH(J,X){return TA(J,wH,X)}var bY=new JH;async function xA(){return fetch("/api/stories").then((J)=>J.json())}var p8=p(G0(),1);function Nz({controlled:J,default:X,name:Y,state:W="value"}){let{current:K}=p8.useRef(J!==void 0),[U,q]=p8.useState(X),H=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:N}=p8.useRef(X);p8.useEffect(()=>{if(!K&&JSON.stringify(N)!==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((N)=>{if(!K)q(N)},[]);return[H,L]}var KH=p(G0(),1);var hA=p(G0(),1),EA={};function r1(J,X){let Y=hA.useRef(EA);if(Y.current===EA)Y.current=J(X);return Y}var WH=KH[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],fP=WH&&WH!==KH.useLayoutEffect?WH:(J)=>J();function F0(J){let X=r1(mP).current;return X.next=J,fP(X.effect),X.trampoline}function mP(){let J={next:void 0,callback:dP,trampoline:(...X)=>J.callback?.(...X),effect:()=>{J.callback=J.next}};return J}function dP(){throw Error("Base UI: Cannot call an event handler while rendering.")}var vA=p(G0(),1),uP=()=>{},k0=typeof document<"u"?vA.useLayoutEffect:uP;var v4=p(G0(),1);var yY=p(G0(),1),RY=yY.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>{return()=>{}},elementsRef:{current:[]},nextIndexRef:{current:0}});RY.displayName="CompositeListContext";function PA(){return yY.useContext(RY)}var IA=p(x1(),1);function kz(J){let{children:X,elementsRef:Y,labelsRef:W,onMapChange:K}=J,U=F0(K),q=v4.useRef(0),H=r1(cP).current,L=r1(pP).current,[N,F]=v4.useState(0),V=v4.useRef(N),k=F0((x,E)=>{L.set(x,E??null),V.current+=1,F(V.current)}),j=F0((x)=>{L.delete(x),V.current+=1,F(V.current)}),O=v4.useMemo(()=>{iP(N);let x=new Map;return Array.from(L.keys()).filter((I)=>I.isConnected).sort(lP).forEach((I,C)=>{let v=L.get(I)??{};x.set(I,{...v,index:C})}),x},[L,N]);k0(()=>{if(typeof MutationObserver!=="function"||O.size===0)return;let x=new MutationObserver((E)=>{let I=new Set,C=(v)=>I.has(v)?I.delete(v):I.add(v);if(E.forEach((v)=>{v.removedNodes.forEach(C),v.addedNodes.forEach(C)}),I.size===0)V.current+=1,F(V.current)});return O.forEach((E,I)=>{if(I.parentElement)x.observe(I.parentElement,{childList:!0})}),()=>{x.disconnect()}},[O]),k0(()=>{if(V.current===N){if(Y.current.length!==O.size)Y.current.length=O.size;if(W&&W.current.length!==O.size)W.current.length=O.size;q.current=O.size}U(O)},[U,O,Y,W,N]),k0(()=>{return()=>{Y.current=[]}},[Y]),k0(()=>{return()=>{if(W)W.current=[]}},[W]);let M=F0((x)=>{return H.add(x),()=>{H.delete(x)}});k0(()=>{H.forEach((x)=>x(O))},[H,O]);let h=v4.useMemo(()=>({register:k,unregister:j,subscribeMapChange:M,elementsRef:Y,labelsRef:W,nextIndexRef:q}),[k,j,M,Y,W,q]);return IA.jsx(RY.Provider,{value:h,children:X})}function pP(){return new Map}function cP(){return new Set}function lP(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 iP(J){}var gY=p(G0(),1),CA=gY.createContext(void 0);CA.displayName="DirectionContext";function O5(){return gY.useContext(CA)?.direction??"ltr"}var pY=p(G0(),1);function D5(J,X,Y,W){let K=r1(bA).current;if(rP(K,J,X,Y,W))yA(K,[J,X,Y,W]);return K.callback}function SA(J){let X=r1(bA).current;if(aP(X,J))yA(X,J);return X.callback}function bA(){return{callback:null,cleanup:null,refs:[]}}function rP(J,X,Y,W,K){return J.refs[0]!==X||J.refs[1]!==Y||J.refs[2]!==W||J.refs[3]!==K}function aP(J,X){return J.refs.length!==X.length||J.refs.some((Y,W)=>Y!==X[W])}function yA(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 q=U(Y);if(typeof q==="function")W[K]=q;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 q=W[K];if(typeof q==="function")q();else U(null);break}case"object":{U.current=null;break}default:}}}}}}var gA=p(G0(),1);var RA=p(G0(),1),sP=parseInt(RA.version,10);function jz(J){return sP>=J}function UH(J){if(!gA.isValidElement(J))return null;let X=J,Y=X.props;return(jz(19)?Y?.ref:X.ref)??null}function zX(J,X){if(J&&!X)return J;if(!J&&X)return X;if(J||X)return{...J,...X};return}function fA(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 mA(J,X){return typeof J==="function"?J(X):J}function dA(J,X){return typeof J==="function"?J(X):J}var JX={};function T5(J,X,Y,W,K){let U={..._H(J,JX)};if(X)U=ZX(U,X);if(Y)U=ZX(U,Y);if(W)U=ZX(U,W);if(K)U=ZX(U,K);return U}function uA(J){if(J.length===0)return JX;if(J.length===1)return _H(J[0],JX);let X={..._H(J[0],JX)};for(let Y=1;Y<J.length;Y+=1)X=ZX(X,J[Y]);return X}function ZX(J,X){if(pA(X))return X(J);return oP(J,X)}function oP(J,X){if(!X)return J;for(let Y in X){let W=X[Y];switch(Y){case"style":{J[Y]=zX(J.style,W);break}case"className":{J[Y]=HH(J.className,W);break}default:if(nP(Y,W))J[Y]=tP(J[Y],W);else J[Y]=W}}return J}function nP(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 pA(J){return typeof J==="function"}function _H(J,X){if(pA(J))return J(X);return J??JX}function tP(J,X){if(!X)return J;if(!J)return X;return(Y)=>{if(eP(Y)){let K=Y;fY(K);let U=X(K);if(!K.baseUIHandlerPrevented)J?.(K);return U}let W=X(Y);return J?.(Y),W}}function fY(J){return J.preventBaseUIHandler=()=>{J.baseUIHandlerPrevented=!0},J}function HH(J,X){if(X){if(J)return X+" "+J;return X}return J}function eP(J){return J!=null&&typeof J==="object"&&"nativeEvent"in J}function mY(){}var e2=Object.freeze([]),E1=Object.freeze({});var cA=500,lA=500,iA={style:{transition:"none"}},dY="data-base-ui-click-trigger",rA={fallbackAxisSide:"none"},uY={fallbackAxisSide:"end"},aA={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var qH=p(G0(),1);function h0(J,X,Y={}){let W=X.render,K=wI(X,Y);if(Y.enabled===!1)return null;let U=Y.state??E1;return zI(J,W,K,U)}function wI(J,X={}){let{className:Y,style:W,render:K}=J,{state:U=E1,ref:q,props:H,stateAttributesMapping:L,enabled:N=!0}=X,F=N?mA(Y,U):void 0,V=N?dA(W,U):void 0,k=N?fA(U,L):E1,j=N?zX(k,Array.isArray(H)?uA(H):H)??E1:E1;if(typeof document<"u")if(!N)D5(null,null);else if(Array.isArray(q))j.ref=SA([j.ref,UH(K),...q]);else j.ref=D5(j.ref,UH(K),q);if(!N)return E1;if(F!==void 0)j.className=HH(j.className,F);if(V!==void 0)j.style=zX(j.style,V);return j}function zI(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,pY.cloneElement(X,K)}if(J){if(typeof J==="string")return ZI(J,Y)}throw Error("Base UI: Render element or function are not defined.")}function ZI(J,X){if(J==="button")return qH.createElement("button",{type:"button",...X,key:X.key});if(J==="img")return qH.createElement("img",{alt:"",...X,key:X.key});return pY.createElement(J,X)}var B0={};qz(B0,{windowResize:()=>II,wheel:()=>TI,triggerPress:()=>XI,triggerHover:()=>$I,triggerFocus:()=>YI,trackPress:()=>HI,siblingOpen:()=>hI,scrub:()=>xI,pointer:()=>OI,outsidePress:()=>GI,none:()=>JI,listNavigation:()=>AI,linkPress:()=>KI,keyboard:()=>MI,itemPress:()=>QI,inputPaste:()=>NI,inputClear:()=>VI,inputChange:()=>LI,inputBlur:()=>FI,incrementPress:()=>qI,imperativeAction:()=>PI,focusOut:()=>kI,escapeKey:()=>jI,drag:()=>DI,disabled:()=>vI,decrementPress:()=>BI,closePress:()=>WI,clearPress:()=>UI,chipRemovePress:()=>_I,cancelOpen:()=>EI});var JI="none",XI="trigger-press",$I="trigger-hover",YI="trigger-focus",GI="outside-press",QI="item-press",WI="close-press",KI="link-press",UI="clear-press",_I="chip-remove-press",HI="track-press",qI="increment-press",BI="decrement-press",LI="input-change",VI="input-clear",FI="input-blur",NI="input-paste",kI="focus-out",jI="escape-key",AI="list-navigation",MI="keyboard",OI="pointer",DI="drag",TI="wheel",xI="scrub",EI="cancel-open",hI="sibling-open",vI="disabled",PI="imperative-action",II="window-resize";function P0(J,X,Y,W){let K=!1,U=!1,q=W??E1;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,...q}}var cY=p(G0(),1);var CI=p(G0(),1),sA={...CI};var oA=0;function SI(J,X="mui"){let[Y,W]=cY.useState(J),K=J||Y;return cY.useEffect(()=>{if(Y==null)oA+=1,W(`${X}-${oA}`)},[Y,X]),K}var nA=sA.useId;function J2(J,X){if(nA!==void 0){let Y=nA();return J??(X?`${X}-${Y}`:Y)}return SI(J,X)}function ww(J){return J2(J,"base-ui")}var BH=p(m8(),1);var tA=p(G0(),1),bI=[];function Az(J){tA.useEffect(J,bI)}var lY=null,Ed=globalThis.requestAnimationFrame;class eA{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 iY=new eA;class x5{static create(){return new x5}static request(J){return iY.request(J)}static cancel(J){return iY.cancel(J)}currentId=lY;request(J){this.cancel(),this.currentId=iY.request(()=>{this.currentId=lY,J()})}cancel=()=>{if(this.currentId!==lY)iY.cancel(this.currentId),this.currentId=lY};disposeEffect=()=>{return this.cancel}}function E5(){let J=r1(x5.create).current;return Az(J.disposeEffect),J}function O6(J){if(J==null)return J;return"current"in J?J.current:J}function Mz(J,X=!1,Y=!0){let W=E5();return F0((K,U=null)=>{W.cancel();let q=O6(J);if(q==null)return;if(typeof q.getAnimations!=="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)K();else W.request(()=>{function H(){if(!q)return;Promise.all(q.getAnimations().map((L)=>L.finished)).then(()=>{if(U!=null&&U.aborted)return;BH.flushSync(K)}).catch(()=>{if(Y){if(U!=null&&U.aborted)return;BH.flushSync(K)}else if(q.getAnimations().length>0&&q.getAnimations().some((L)=>L.pending||L.playState!=="finished"))H()})}if(X)W.request(H);else H()})})}var XX=p(G0(),1);function Oz(J,X=!1,Y=!1){let[W,K]=XX.useState(J&&X?"idle":void 0),[U,q]=XX.useState(J);if(J&&!U)q(!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 H=x5.request(()=>{K("ending")});return()=>{x5.cancel(H)}}return},[J,U,W,Y]),k0(()=>{if(!J||X)return;let H=x5.request(()=>{K(void 0)});return()=>{x5.cancel(H)}},[X,J]),k0(()=>{if(!J||!X)return;if(J&&U&&W!=="idle")K("starting");let H=x5.request(()=>{K("idle")});return()=>{x5.cancel(H)}},[X,J,U,K,W]),XX.useMemo(()=>({mounted:U,setMounted:q,transitionStatus:W}),[U,W])}var D6=p(G0(),1);var yI=function(J){return J[J.None=0]="None",J[J.GuessFromOrder=1]="GuessFromOrder",J}({});function h5(J={}){let{label:X,metadata:Y,textRef:W,indexGuessBehavior:K,index:U}=J,{register:q,unregister:H,subscribeMapChange:L,elementsRef:N,labelsRef:F,nextIndexRef:V}=PA(),k=D6.useRef(-1),[j,O]=D6.useState(U??(K===yI.GuessFromOrder?()=>{if(k.current===-1){let x=V.current;V.current+=1,k.current=x}return k.current}:-1)),M=D6.useRef(null),h=D6.useCallback((x)=>{if(M.current=x,j!==-1&&x!==null){if(N.current[j]=x,F){let E=X!==void 0;F.current[j]=E?X:W?.current?.textContent??x.textContent}}},[j,N,F,X,W]);return k0(()=>{if(U!=null)return;let x=M.current;if(x)return q(x,Y),()=>{H(x)};return},[U,q,H,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:h,index:j}),[j,h])}var $X=function(J){return J.startingStyle="data-starting-style",J.endingStyle="data-ending-style",J}({}),RI={[$X.startingStyle]:""},gI={[$X.endingStyle]:""},P2={transitionStatus(J){if(J==="starting")return RI;if(J==="ending")return gI;return null}};function wM(J){return J==null||J.hasAttribute("disabled")||J.getAttribute("aria-disabled")==="true"}var m7=p(G0(),1);function aY(){return typeof window<"u"}function t5(J){if(sY(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=(sY(J)?J.ownerDocument:J.document)||window.document)==null?void 0:X.documentElement}function sY(J){if(!aY())return!1;return J instanceof Node||J instanceof u1(J).Node}function L1(J){if(!aY())return!1;return J instanceof Element||J instanceof u1(J).Element}function O1(J){if(!aY())return!1;return J instanceof HTMLElement||J instanceof u1(J).HTMLElement}function rY(J){if(!aY()||typeof ShadowRoot>"u")return!1;return J instanceof ShadowRoot||J instanceof u1(J).ShadowRoot}var fI=new Set(["inline","contents"]);function T6(J){let{overflow:X,overflowX:Y,overflowY:W,display:K}=uw(J);return/auto|scroll|overlay|hidden|clip/.test(X+W+Y)&&!fI.has(K)}var mI=new Set(["table","td","th"]);function zM(J){return mI.has(t5(J))}var dI=[":popover-open",":modal"];function YX(J){return dI.some((X)=>{try{return J.matches(X)}catch(Y){return!1}})}var uI=["transform","translate","scale","rotate","perspective"],pI=["transform","translate","scale","rotate","perspective","filter"],cI=["paint","layout","strict","content"];function oY(J){let X=Dz(),Y=L1(J)?uw(J):J;return uI.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)||pI.some((W)=>(Y.willChange||"").includes(W))||cI.some((W)=>(Y.contain||"").includes(W))}function ZM(J){let X=w5(J);while(O1(X)&&!Z5(X)){if(oY(X))return X;else if(YX(X))return null;X=w5(X)}return null}function Dz(){if(typeof CSS>"u"||!CSS.supports)return!1;return CSS.supports("-webkit-backdrop-filter","none")}var lI=new Set(["html","body","#document"]);function Z5(J){return lI.has(t5(J))}function uw(J){return u1(J).getComputedStyle(J)}function GX(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||rY(J)&&J.host||e5(J);return rY(X)?X.host:X}function JM(J){let X=w5(J);if(Z5(X))return J.ownerDocument?J.ownerDocument.body:J.body;if(O1(X)&&T6(X))return X;return JM(X)}function z5(J,X,Y){var W;if(X===void 0)X=[];if(Y===void 0)Y=!0;let K=JM(J),U=K===((W=J.ownerDocument)==null?void 0:W.body),q=u1(K);if(U){let H=nY(q);return X.concat(q,q.visualViewport||[],T6(K)?K:[],H&&Y?z5(H):[])}return X.concat(K,z5(K,[],Y))}function nY(J){return J.parent&&Object.getPrototypeOf(J.parent)?J.frameElement:null}var LH;LH=new Set;function VH(...J){{let X=J.join(" ");if(!LH.has(X))LH.add(X),console.error(`Base UI: ${X}`)}}var tY=p(G0(),1),eY=tY.createContext(void 0);eY.displayName="CompositeRootContext";function Tz(J=!1){let X=tY.useContext(eY);if(X===void 0&&!J)throw Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return X}var XM=p(G0(),1);function $M(J){let{focusableWhenDisabled:X,disabled:Y,composite:W=!1,tabIndex:K=0,isNativeButton:U}=J,q=W&&X!==!1,H=W&&X===!1;return{props:XM.useMemo(()=>{let N={onKeyDown(F){if(Y&&X&&F.key!=="Tab")F.preventDefault()}};if(!W){if(N.tabIndex=K,!U&&Y)N.tabIndex=X?K:-1}if(U&&(X||q)||!U&&Y)N["aria-disabled"]=Y;if(U&&(!X||H))N.disabled=Y;return N},[W,Y,X,q,H,U,K])}}function J5(J={}){let{disabled:X=!1,focusableWhenDisabled:Y,tabIndex:W=0,native:K=!0}=J,U=m7.useRef(null),q=Tz(!0)!==void 0,H=F0(()=>{let k=U.current;return Boolean(k?.tagName==="A"&&k?.href)}),{props:L}=$M({focusableWhenDisabled:Y,disabled:X,composite:q,tabIndex:W,isNativeButton:K});m7.useEffect(()=>{if(!U.current)return;let k=U.current.tagName==="BUTTON";if(K){if(!k)VH("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)VH("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 N=m7.useCallback(()=>{let k=U.current;if(!iI(k))return;if(q&&X&&L.disabled===void 0&&k.disabled)k.disabled=!1},[X,L.disabled,q]);k0(N,[N]);let F=m7.useCallback((k={})=>{let{onClick:j,onMouseDown:O,onKeyUp:M,onKeyDown:h,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)fY(C),h?.(C);if(C.baseUIHandlerPrevented)return;let v=C.target===C.currentTarget&&!K&&!H()&&!X,m=C.key==="Enter",R=C.key===" ";if(v){if(R||m)C.preventDefault();if(m)j?.(C)}},onKeyUp(C){if(!X)fY(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,H]),V=F0((k)=>{U.current=k,N()});return{getButtonProps:F,buttonRef:V}}function iI(J){return O1(J)&&J.tagName==="BUTTON"}var P4=typeof navigator<"u",FH=rI(),YM=sI(),wG=aI(),GM=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),QM=FH.platform==="MacIntel"&&FH.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(FH.platform),Ju=P4&&/firefox/i.test(wG),zG=P4&&/apple/i.test(navigator.vendor),Xu=P4&&/Edg/i.test(wG),ZG=P4&&/android/i.test(YM)||/android/i.test(wG),WM=P4&&YM.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,JG=wG.includes("jsdom/");function rI(){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 aI(){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 sI(){if(!P4)return"";let J=navigator.userAgentData;if(J?.platform)return J.platform;return navigator.platform??""}var QX="data-base-ui-focusable",NH="active",kH="selected",xz="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",c8="ArrowLeft",l8="ArrowRight",WX="ArrowUp",d7="ArrowDown";function X2(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&&rY(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 v5(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 KM(J){return J.matches("html,body")}function b1(J){return J?.ownerDocument||document}function KX(J){return O1(J)&&J.matches(xz)}function UX(J){if(!J)return!1;return J.getAttribute("role")==="combobox"&&KX(J)}function UM(J){if(!J||JG)return!0;try{return J.matches(":focus-visible")}catch(X){return!0}}function u7(J){if(!J)return null;return J.hasAttribute(QX)?J:J.querySelector(`[${QX}]`)||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 jH(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 _M(J){return"nativeEvent"in J}function XG(J){if(J.mozInputSource===0&&J.isTrusted)return!0;if(ZG&&J.pointerType)return J.type==="click"&&J.buttons===1;return J.detail===0&&!J.pointerType}function $G(J){if(JG)return!1;return!ZG&&J.width===0&&J.height===0||ZG&&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 YG(J){let X=J.type;return X==="click"||X==="mousedown"||X==="keydown"||X==="keyup"}var BM=["top","right","bottom","left"];var{min:I4,max:F2,round:C4,floor:S4}=Math,w8=(J)=>({x:J,y:J}),oI={left:"right",right:"left",bottom:"top",top:"bottom"},nI={start:"end",end:"start"};function HX(J,X,Y){return F2(J,I4(X,Y))}function z8(J,X){return typeof J==="function"?J(X):J}function nw(J){return J.split("-")[0]}function Z8(J){return J.split("-")[1]}function QG(J){return J==="x"?"y":"x"}function qX(J){return J==="y"?"height":"width"}var tI=new Set(["top","bottom"]);function I2(J){return tI.has(nw(J))?"y":"x"}function BX(J){return QG(I2(J))}function LM(J,X,Y){if(Y===void 0)Y=!1;let W=Z8(J),K=BX(J),U=qX(K),q=K==="x"?W===(Y?"end":"start")?"right":"left":W==="start"?"bottom":"top";if(X.reference[U]>X.floating[U])q=_X(q);return[q,_X(q)]}function VM(J){let X=_X(J);return[GG(J),X,GG(X)]}function GG(J){return J.replace(/start|end/g,(X)=>nI[X])}var HM=["left","right"],qM=["right","left"],eI=["top","bottom"],wC=["bottom","top"];function zC(J,X,Y){switch(J){case"top":case"bottom":if(Y)return X?qM:HM;return X?HM:qM;case"left":case"right":return X?eI:wC;default:return[]}}function FM(J,X,Y,W){let K=Z8(J),U=zC(nw(J),Y==="start",W);if(K){if(U=U.map((q)=>q+"-"+K),X)U=U.concat(U.map(GG))}return U}function _X(J){return J.replace(/left|right|bottom|top/g,(X)=>oI[X])}function ZC(J){return{top:0,right:0,bottom:0,left:0,...J}}function WG(J){return typeof J!=="number"?ZC(J):{top:J,right:J,bottom:J,left:J}}function p7(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 KG(J,X,Y){return Math.floor(J/X)!==Y}function x6(J,X){return X<0||X>=J.current.length}function c7(J,X){return Dw(J,{disabledIndices:X})}function Ez(J,X){return Dw(J,{decrement:!0,startingIndex:J.current.length,disabledIndices:X})}function Dw(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 LX(J,{event:X,orientation:Y,loopFocus:W,rtl:K,cols:U,disabledIndices:q,minIndex:H,maxIndex:L,prevIndex:N,stopEvent:F=!1}){let V=N,k=[],j={},O=!1;{let x=null,E=-1;J.current.forEach((I,C)=>{if(I==null)return;let v=I.closest('[role="row"]');if(v)O=!0;if(v!==x||E===-1)x=v,E+=1,k[E]=[];k[E].push(C),j[C]=E})}let M=O&&k.length>0&&k.some((x)=>x.length!==U);function h(x){if(!M||N===-1)return;let E=j[N];if(E==null)return;let I=k[E].indexOf(N),C=x==="up"?E-1:E+1;if(W){if(C<0)C=k.length-1;else if(C>=k.length)C=0}let v=new Set;while(C>=0&&C<k.length&&!v.has(C)){v.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,q))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===WX){let x=h("up");if(x!==void 0){if(F)Xw(X);V=x}else{if(F)Xw(X);if(N===-1)V=L;else if(V=Dw(J,{startingIndex:V,amount:U,decrement:!0,disabledIndices:q}),W&&(N-U<H||V<0)){let E=N%U,I=L%U,C=L-(I-E);if(I===E)V=L;else V=I>E?C:C-U}if(x6(J,V))V=N}}if(X.key===d7){let x=h("down");if(x!==void 0){if(F)Xw(X);V=x}else{if(F)Xw(X);if(N===-1)V=H;else if(V=Dw(J,{startingIndex:N,amount:U,disabledIndices:q}),W&&N+U>L)V=Dw(J,{startingIndex:N%U-U,amount:U,disabledIndices:q});if(x6(J,V))V=N}}if(Y==="both"){let x=S4(N/U);if(X.key===(K?c8:l8)){if(F)Xw(X);if(N%U!==U-1){if(V=Dw(J,{startingIndex:N,disabledIndices:q}),W&&KG(V,U,x))V=Dw(J,{startingIndex:N-N%U-1,disabledIndices:q})}else if(W)V=Dw(J,{startingIndex:N-N%U-1,disabledIndices:q});if(KG(V,U,x))V=N}if(X.key===(K?l8:c8)){if(F)Xw(X);if(N%U!==0){if(V=Dw(J,{startingIndex:N,decrement:!0,disabledIndices:q}),W&&KG(V,U,x))V=Dw(J,{startingIndex:N+(U-N%U),decrement:!0,disabledIndices:q})}else if(W)V=Dw(J,{startingIndex:N+(U-N%U),decrement:!0,disabledIndices:q});if(KG(V,U,x))V=N}let E=S4(L/U)===x;if(x6(J,V))if(W&&E)V=X.key===(K?l8:c8)?L:Dw(J,{startingIndex:N-N%U-1,disabledIndices:q});else V=N}return V}function VX(J,X,Y){let W=[],K=0;return J.forEach(({width:U,height:q},H)=>{if(U>X)throw Error(`[Floating UI]: Invalid grid - item width at index ${H} is greater than grid columns`);let L=!1;if(Y)K=0;while(!L){let N=[];for(let F=0;F<U;F+=1)for(let V=0;V<q;V+=1)N.push(K+F+V*X);if(K%X+U<=X&&N.every((F)=>W[F]==null))N.forEach((F)=>{W[F]=H}),L=!0;else K+=1}}),[...W]}function FX(J,X,Y,W,K){if(J===-1)return-1;let U=Y.indexOf(J),q=X[J];switch(K){case"tl":return U;case"tr":if(!q)return U;return U+q.width-1;case"bl":if(!q)return U;return U+(q.height-1)*W;case"br":return Y.lastIndexOf(J);default:return-1}}function NX(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 JC=["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])"],UG=JC.join(","),kM=typeof Element>"u",hz=kM?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_G=!kM&&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},kX=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",q=U||Y&&X&&kX(X.parentNode);return q},XC=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"},jM=function(X,Y,W){if(kX(X))return[];var K=Array.prototype.slice.apply(X.querySelectorAll(UG));if(Y&&hz.call(X,UG))K.unshift(X);return K=K.filter(W),K},HG=function(X,Y,W){var K=[],U=Array.from(X);while(U.length){var q=U.shift();if(kX(q,!1))continue;if(q.tagName==="SLOT"){var H=q.assignedElements(),L=H.length?H:q.children,N=HG(L,!0,W);if(W.flatten)K.push.apply(K,N);else K.push({scopeParent:q,candidates:N})}else{var F=hz.call(q,UG);if(F&&W.filter(q)&&(Y||!X.includes(q)))K.push(q);var V=q.shadowRoot||typeof W.getShadowRoot==="function"&&W.getShadowRoot(q),k=!kX(V,!1)&&(!W.shadowRootFilter||W.shadowRootFilter(q));if(V&&k){var j=HG(V===!0?q.children:V.children,!0,W);if(W.flatten)K.push.apply(K,j);else K.push({scopeParent:q,candidates:j})}else U.unshift.apply(U,q.children)}}return K},AM=function(X){return!isNaN(parseInt(X.getAttribute("tabindex"),10))},MM=function(X){if(!X)throw Error("No node provided");if(X.tabIndex<0){if((/^(AUDIO|VIDEO|DETAILS)$/.test(X.tagName)||XC(X))&&!AM(X))return 0}return X.tabIndex},$C=function(X,Y){var W=MM(X);if(W<0&&Y&&!AM(X))return 0;return W},YC=function(X,Y){return X.tabIndex===Y.tabIndex?X.documentOrder-Y.documentOrder:X.tabIndex-Y.tabIndex},OM=function(X){return X.tagName==="INPUT"},GC=function(X){return OM(X)&&X.type==="hidden"},QC=function(X){var Y=X.tagName==="DETAILS"&&Array.prototype.slice.apply(X.children).some(function(W){return W.tagName==="SUMMARY"});return Y},WC=function(X,Y){for(var W=0;W<X.length;W++)if(X[W].checked&&X[W].form===Y)return X[W]},KC=function(X){if(!X.name)return!0;var Y=X.form||_G(X),W=function(H){return Y.querySelectorAll('input[type="radio"][name="'+H+'"]')},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(q){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",q.message),!1}var U=WC(K,X.form);return!U||U===X},UC=function(X){return OM(X)&&X.type==="radio"},_C=function(X){return UC(X)&&!KC(X)},HC=function(X){var Y,W=X&&_G(X),K=(Y=W)===null||Y===void 0?void 0:Y.host,U=!1;if(W&&W!==X){var q,H,L;U=!!((q=K)!==null&&q!==void 0&&(H=q.ownerDocument)!==null&&H!==void 0&&H.contains(K)||X!==null&&X!==void 0&&(L=X.ownerDocument)!==null&&L!==void 0&&L.contains(X));while(!U&&K){var N,F,V;W=_G(K),K=(N=W)===null||N===void 0?void 0:N.host,U=!!((F=K)!==null&&F!==void 0&&(V=F.ownerDocument)!==null&&V!==void 0&&V.contains(K))}}return U},NM=function(X){var Y=X.getBoundingClientRect(),W=Y.width,K=Y.height;return W===0&&K===0},qC=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 q=hz.call(X,"details>summary:first-of-type"),H=q?X.parentElement:X;if(hz.call(H,"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 N=X.parentElement,F=_G(X);if(N&&!N.shadowRoot&&K(N)===!0)return NM(X);else if(X.assignedSlot)X=X.assignedSlot;else if(!N&&F!==X.ownerDocument)X=F.host;else X=N}X=L}if(HC(X))return!X.getClientRects().length;if(W!=="legacy-full")return!0}else if(W==="non-zero-area")return NM(X);return!1},BC=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 hz.call(Y,"fieldset[disabled] *")?!0:!K.contains(X)}return!0}Y=Y.parentElement}}return!1},AH=function(X,Y){if(Y.disabled||kX(Y)||GC(Y)||qC(Y,X)||QC(Y)||BC(Y))return!1;return!0},MH=function(X,Y){if(_C(Y)||MM(Y)<0||!AH(X,Y))return!1;return!0},LC=function(X){var Y=parseInt(X.getAttribute("tabindex"),10);if(isNaN(Y)||Y>=0)return!0;return!1},DM=function(X){var Y=[],W=[];return X.forEach(function(K,U){var q=!!K.scopeParent,H=q?K.scopeParent:K,L=$C(H,q),N=q?DM(K.candidates):H;if(L===0)q?Y.push.apply(Y,N):Y.push(H);else W.push({documentOrder:U,tabIndex:L,item:K,isScope:q,content:N})}),W.sort(YC).reduce(function(K,U){return U.isScope?K.push.apply(K,U.content):K.push(U.content),K},[]).concat(Y)},l7=function(X,Y){Y=Y||{};var W;if(Y.getShadowRoot)W=HG([X],Y.includeContainer,{filter:MH.bind(null,Y),flatten:!1,getShadowRoot:Y.getShadowRoot,shadowRootFilter:LC});else W=jM(X,Y.includeContainer,MH.bind(null,Y));return DM(W)},TM=function(X,Y){Y=Y||{};var W;if(Y.getShadowRoot)W=HG([X],Y.includeContainer,{filter:AH.bind(null,Y),flatten:!0,getShadowRoot:Y.getShadowRoot});else W=jM(X,Y.includeContainer,AH.bind(null,Y));return W},OH=function(X,Y){if(Y=Y||{},!X)throw Error("No node provided");if(hz.call(X,UG)===!1)return!1;return MH(Y,X)};var i7=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver==="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function xM(J,X){let Y=l7(J,i7()),W=Y.length;if(W===0)return;let K=X2(b1(J)),U=Y.indexOf(K),q=U===-1?X===1?0:W-1:U+X;return Y[q]}function vz(J){return xM(b1(J).body,1)||J}function qG(J){return xM(b1(J).body,-1)||J}function EM(J,X){if(!J)return null;let Y=l7(b1(J).body,i7()),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 hM(J){return EM(J,1)}function vM(J){return EM(J,-1)}function E6(J,X){let Y=X||J.currentTarget,W=J.relatedTarget;return!W||!t0(Y,W)}function PM(J){l7(J,i7()).forEach((Y)=>{Y.dataset.tabindex=Y.getAttribute("tabindex")||"",Y.setAttribute("tabindex","-1")})}function DH(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 r7="ArrowUp",b4="ArrowDown",Pz="ArrowLeft",a7="ArrowRight",Iz="Home",Cz="End",TH=new Set([Pz,a7]),CM=new Set([Pz,a7,Iz,Cz]),xH=new Set([r7,b4]),SM=new Set([r7,b4,Iz,Cz]),EH=new Set([...TH,...xH]),bM=new Set([...EH,Iz,Cz]),LG=new Set([r7,b4,Pz,a7,Iz,Cz]),VC="Shift",FC="Control",NC="Alt",kC="Meta",yM=new Set([VC,FC,NC,kC]);function jC(J){return O1(J)&&J.tagName==="INPUT"}function hH(J){if(jC(J)&&J.selectionStart!=null)return!0;if(O1(J)&&J.tagName==="TEXTAREA")return!0;return!1}function vH(J,X,Y,W){if(!J||!X||!X.scrollTo)return;let{scrollLeft:K,scrollTop:U}=J,q=J.clientWidth<J.scrollWidth,H=J.clientHeight<J.scrollHeight;if(q&&W!=="vertical"){let L=IM(J,X,"left"),N=BG(J),F=BG(X);if(Y==="ltr"){if(L+X.offsetWidth+F.scrollMarginRight>J.scrollLeft+J.clientWidth-N.scrollPaddingRight)K=L+X.offsetWidth+F.scrollMarginRight-J.clientWidth+N.scrollPaddingRight;else if(L-F.scrollMarginLeft<J.scrollLeft+N.scrollPaddingLeft)K=L-F.scrollMarginLeft-N.scrollPaddingLeft}if(Y==="rtl"){if(L-F.scrollMarginRight<J.scrollLeft+N.scrollPaddingLeft)K=L-F.scrollMarginLeft-N.scrollPaddingLeft;else if(L+X.offsetWidth+F.scrollMarginRight>J.scrollLeft+J.clientWidth-N.scrollPaddingRight)K=L+X.offsetWidth+F.scrollMarginRight-J.clientWidth+N.scrollPaddingRight}}if(H&&W!=="horizontal"){let L=IM(J,X,"top"),N=BG(J),F=BG(X);if(L-F.scrollMarginTop<J.scrollTop+N.scrollPaddingTop)U=L-F.scrollMarginTop-N.scrollPaddingTop;else if(L+X.offsetHeight+F.scrollMarginBottom>J.scrollTop+J.clientHeight-N.scrollPaddingBottom)U=L+X.offsetHeight+F.scrollMarginBottom-J.clientHeight+N.scrollPaddingBottom}J.scrollTo({left:K,top:U,behavior:"auto"})}function IM(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 BG(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 RM=p(G0(),1);function Kw(J){let X=r1(AC,J).current;return X.next=J,k0(X.effect),X}function AC(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=Kw(Y),q=F0(K),H=Mz(W,Y);RM.useEffect(()=>{if(!X)return;H(()=>{if(Y===U.current)q()})},[X,Y,q,H,U])}var b5=p(G0(),1);function Tw(J){return J?.ownerDocument||document}var jX=0;class C5{static create(){return new C5}currentId=jX;start(J,X){this.clear(),this.currentId=setTimeout(()=>{this.currentId=jX,X()},J)}isStarted(){return this.currentId!==jX}clear=()=>{if(this.currentId!==jX)clearTimeout(this.currentId),this.currentId=jX};disposeEffect=()=>{return this.clear}}function a1(){let J=r1(C5.create).current;return Az(J.disposeEffect),J}var gM={},fM={},mM="";function MC(J){if(typeof document>"u")return!1;let X=Tw(J);return u1(X).innerWidth-X.documentElement.clientWidth>0}function OC(J){let X=Tw(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 DC(J){let X=Tw(J),Y=X.documentElement,W=X.body,K=u1(Y),U=0,q=0,H=x5.create(),L=typeof CSS<"u"&&CSS.supports?.("scrollbar-gutter","stable");if(GM&&(K.visualViewport?.scale??1)!==1)return()=>{};function N(){let k=K.getComputedStyle(Y),j=K.getComputedStyle(W),h=(k.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";U=Y.scrollTop,q=Y.scrollLeft,gM={scrollbarGutter:Y.style.scrollbarGutter,overflowY:Y.style.overflowY,overflowX:Y.style.overflowX},mM=Y.style.scrollBehavior,fM={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",v=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=h,c.style.overflowY="hidden",c.style.overflowX="hidden";return}if(Object.assign(Y.style,{scrollbarGutter:h,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||v?`calc(100vw - ${S+v}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),W.scrollTop=U,W.scrollLeft=q,Y.setAttribute("data-base-ui-scroll-locked",""),Y.style.scrollBehavior="unset"}function F(){if(Object.assign(Y.style,gM),Object.assign(W.style,fM),!L)Y.scrollTop=U,Y.scrollLeft=q,Y.removeAttribute("data-base-ui-scroll-locked"),Y.style.scrollBehavior=mM}function V(){F(),H.request(N)}return N(),K.addEventListener("resize",V),()=>{if(H.cancel(),F(),typeof K.removeEventListener==="function")K.removeEventListener("resize",V)}}class dM{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=Tw(J).documentElement,W=u1(Y).getComputedStyle(Y).overflowY;if(W==="hidden"||W==="clip"){this.restore=mY;return}let K=QM||!MC(J);this.restore=K?OC(J):DC(J)}}var TC=new dM;function VG(J=!0,X=null){k0(()=>{if(!J)return;return TC.acquire(X)},[J,X])}var C2=p(G0(),1);var NG=p(G0(),1);var y4=p(G0(),1);function FG(){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 s7{nodesRef={current:[]};events=FG();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 PH=p(x1(),1),IH=y4.createContext(null);IH.displayName="FloatingNodeContext";var CH=y4.createContext(null);CH.displayName="FloatingTreeContext";var tw=()=>y4.useContext(IH)?.id||null,$2=(J)=>{let X=y4.useContext(CH);return J??X};function AX(J){let X=J2(),Y=$2(J),W=tw();return k0(()=>{if(!X)return;let K={id:X,parentId:W};return Y?.addNode(K),()=>{Y?.removeNode(K)}},[Y,X,W]),X}function SH(J){let{children:X,id:Y}=J,W=tw();return PH.jsx(IH.Provider,{value:y4.useMemo(()=>({id:Y,parentId:W}),[Y,W]),children:X})}function bH(J){let{children:X,externalTree:Y}=J,W=r1(()=>Y??new s7).current;return PH.jsx(CH.Provider,{value:W,children:X})}function X5(J){return`data-base-ui-${J}`}var Xp=X5("safe-polygon"),$p=`button,[role="button"],select,[tabindex]:not([tabindex="-1"]),${xz}`;function Sz(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 uM=p(x1(),1),yH=C2.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new C5,currentIdRef:{current:null},currentContextRef:{current:null}});yH.displayName="FloatingDelayGroupContext";function RH(J){let{children:X,delay:Y,timeoutMs:W=0}=J,K=C2.useRef(Y),U=C2.useRef(Y),q=C2.useRef(null),H=C2.useRef(null),L=a1();return uM.jsx(yH.Provider,{value:C2.useMemo(()=>({hasProvider:!0,delayRef:K,initialDelayRef:U,currentIdRef:q,timeoutMs:W,currentContextRef:H,timeout:L}),[W,L]),children:X})}function gH(J,X={open:!1}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("floatingId"),{enabled:K=!0,open:U}=X,q=C2.useContext(yH),{currentIdRef:H,delayRef:L,timeoutMs:N,initialDelayRef:F,currentContextRef:V,hasProvider:k,timeout:j}=q,[O,M]=C2.useState(!1);return k0(()=>{function h(){M(!1),V.current?.setIsInstantPhase(!1),H.current=null,V.current=null,L.current=F.current}if(!K)return;if(!H.current)return;if(!U&&H.current===W){if(M(!1),N){let x=W;return j.start(N,()=>{if(Y.select("open")||H.current&&H.current!==x)return;h()}),()=>{j.clear()}}h()}return},[K,U,W,H,L,N,F,V,j,Y]),k0(()=>{if(!K)return;if(!U)return;let h=V.current,x=H.current;if(j.clear(),V.current={onOpenChange:Y.setOpen,setIsInstantPhase:M},H.current=W,L.current={open:0,close:Sz(F.current,"close")},x!==null&&x!==W)M(!0),h?.setIsInstantPhase(!0),h?.onOpenChange(!1,P0(B0.none));else M(!1),h?.setIsInstantPhase(!1)},[K,U,W,Y,H,L,N,F,V,j]),k0(()=>{return()=>{V.current=null}},[V]),C2.useMemo(()=>({hasProvider:k,delayRef:L,isInstantPhase:O}),[k,L,O])}var qw=p(G0(),1);var kG={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 jG=p(G0(),1);var pM=p(x1(),1),r8=jG.forwardRef(function(X,Y){let[W,K]=jG.useState();return k0(()=>{if(zG)K("button")},[]),pM.jsx("span",{...X,ref:Y,style:kG,"aria-hidden":W?void 0:!0,...{tabIndex:0,role:W},"data-base-ui-focus-guard":""})});r8.displayName="FocusGuard";var cM=0;function bz(J,X={}){let{preventScroll:Y=!1,cancelPrevious:W=!0,sync:K=!1}=X;if(W)cancelAnimationFrame(cM);let U=()=>J?.focus({preventScroll:Y});if(K)U();else cM=requestAnimationFrame(U)}var yz={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function lM(J){if(J==="inert")return yz.inert;if(J==="aria-hidden")return yz["aria-hidden"];return yz.none}var AG=new WeakSet,MG={},fH=0;var iM=(J)=>J&&(J.host||iM(J.parentNode)),xC=(J,X)=>X.map((Y)=>{if(J.contains(Y))return Y;let W=iM(Y);if(J.contains(W))return W;return null}).filter((Y)=>Y!=null);function EC(J,X,Y,W){let U=W?"inert":Y?"aria-hidden":null,q=xC(X,J),H=new Set,L=new Set(q),N=[];if(!MG["data-base-ui-inert"])MG["data-base-ui-inert"]=new WeakMap;let F=MG["data-base-ui-inert"];q.forEach(V),k(X),H.clear();function V(j){if(!j||H.has(j))return;if(H.add(j),j.parentNode)V(j.parentNode)}function k(j){if(!j||L.has(j))return;[].forEach.call(j.children,(O)=>{if(t5(O)==="script")return;if(H.has(O))k(O);else{let M=U?O.getAttribute(U):null,h=M!==null&&M!=="false",x=lM(U),E=(x.get(O)||0)+1,I=(F.get(O)||0)+1;if(x.set(O,E),F.set(O,I),N.push(O),E===1&&h)AG.add(O);if(I===1)O.setAttribute("data-base-ui-inert","");if(!h&&U)O.setAttribute(U,U==="inert"?"":"true")}})}return fH+=1,()=>{if(N.forEach((j)=>{let O=lM(U),h=(O.get(j)||0)-1,x=(F.get(j)||0)-1;if(O.set(j,h),F.set(j,x),!h){if(!AG.has(j)&&U)j.removeAttribute(U);AG.delete(j)}if(!x)j.removeAttribute("data-base-ui-inert")}),fH-=1,!fH)yz.inert=new WeakMap,yz["aria-hidden"]=new WeakMap,yz.none=new WeakMap,AG=new WeakSet,MG={}}}function rM(J,X=!1,Y=!1){let W=b1(J[0]).body;return EC(J.concat(Array.from(W.querySelectorAll("[aria-live]"))),W,X,Y)}var $w=p(G0(),1),mH=p(m8(),1);var o7=p(x1(),1),dH=$w.createContext(null);dH.displayName="PortalContext";var uH=()=>$w.useContext(dH),hC=X5("portal");function OG(J={}){let{ref:X,container:Y,componentProps:W=E1,elementProps:K,elementState:U}=J,q=J2(),L=uH()?.portalNode,[N,F]=$w.useState(null),[V,k]=$w.useState(null),j=$w.useRef(null);k0(()=>{if(Y===null){if(j.current)j.current=null,k(null),F(null);return}if(q==null)return;let h=(Y&&(sY(Y)?Y:Y.current))??L??document.body;if(h==null){if(j.current)j.current=null,k(null),F(null);return}if(j.current!==h)j.current=h,k(null),F(h)},[Y,L,q]);let O=h0("div",W,{ref:[X,k],state:U,props:[{id:q,[hC]:""},K]});return{portalNode:V,portalSubtree:N&&O?mH.createPortal(O,N):null}}var Rz=$w.forwardRef(function(X,Y){let{children:W,container:K,className:U,render:q,renderGuards:H,...L}=X,{portalNode:N,portalSubtree:F}=OG({container:K,ref:Y,componentProps:X,elementProps:L}),V=$w.useRef(null),k=$w.useRef(null),j=$w.useRef(null),O=$w.useRef(null),[M,h]=$w.useState(null),x=M?.modal,E=M?.open,I=typeof H==="boolean"?H:!!M&&!M.modal&&M.open&&!!N;$w.useEffect(()=>{if(!N||x)return;function v(m){if(N&&E6(m))(m.type==="focusin"?DH:PM)(N)}return N.addEventListener("focusin",v,!0),N.addEventListener("focusout",v,!0),()=>{N.removeEventListener("focusin",v,!0),N.removeEventListener("focusout",v,!0)}},[N,x]),$w.useEffect(()=>{if(!N||E)return;DH(N)},[E,N]);let C=$w.useMemo(()=>({beforeOutsideRef:V,afterOutsideRef:k,beforeInsideRef:j,afterInsideRef:O,portalNode:N,setFocusManagerState:h}),[N]);return o7.jsxs($w.Fragment,{children:[F,o7.jsxs(dH.Provider,{value:C,children:[I&&N&&o7.jsx(r8,{"data-type":"outside",ref:V,onFocus:(v)=>{if(E6(v,N))j.current?.focus();else{let m=M?M.domReference:null;qG(m)?.focus()}}}),I&&N&&o7.jsx("span",{"aria-owns":N.id,style:aA}),N&&mH.createPortal(W,N),I&&N&&o7.jsx(r8,{"data-type":"outside",ref:k,onFocus:(v)=>{if(E6(v,N))O.current?.focus();else{let m=M?M.domReference:null;if(vz(m)?.focus(),M?.closeOnFocusOut)M?.onOpenChange(!1,P0(B0.focusOut,v.nativeEvent))}}})]})]})});Rz.displayName="FloatingPortal";var MX=p(x1(),1);function vC(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 aM=20,R4=[];function cH(){R4=R4.filter((J)=>J.isConnected)}function PC(J){if(cH(),J&&t5(J)!=="body"){if(R4.push(J),R4.length>aM)R4=R4.slice(-aM)}}function pH(){return cH(),R4[R4.length-1]}function IC(J){if(!J)return null;let X=i7();if(OH(J,X))return J;return l7(J,X)[0]||J}function CC(J){if(!J||!J.isConnected)return!1;if(typeof J.checkVisibility==="function")return J.checkVisibility();return uw(J).display!=="none"}function sM(J,X){if(!X.current.includes("floating")&&!J.getAttribute("role")?.includes("dialog"))return;let Y=i7(),K=TM(J,Y).filter((q)=>{let H=q.getAttribute("data-tabindex")||"";return OH(q,Y)||q.hasAttribute("data-tabindex")&&!H.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 OX(J){let{context:X,children:Y,disabled:W=!1,order:K=["content"],initialFocus:U=!0,returnFocus:q=!0,restoreFocus:H=!1,modal:L=!0,closeOnFocusOut:N=!0,openInteractionType:F="",getInsideElements:V=()=>[],nextFocusableElement:k,previousFocusableElement:j,beforeContentFocusGuardRef:O,externalTree:M}=J,h="rootStore"in X?X.rootStore:X,x=h.useState("open"),E=h.useState("domReferenceElement"),I=h.useState("floatingElement"),{events:C,dataRef:v}=h.context,m=F0(()=>v.current.floatingContext?.nodeId),R=F0(V),S=U===!1,c=UX(E)&&S,d=Kw(K),w0=Kw(U),t=Kw(q),u=Kw(F),Q0=$2(M),r=uH(),e=qw.useRef(null),o=qw.useRef(null),g=qw.useRef(!1),X0=qw.useRef(!1),P=qw.useRef(!1),z0=qw.useRef(-1),U0=qw.useRef(""),J0=qw.useRef(""),L0=a1(),S0=a1(),V0=E5(),_0=r!=null,A0=u7(I),r0=F0((H0=A0)=>{return H0?l7(H0,i7()):[]}),n0=F0((H0)=>{let O0=r0(H0);return d.current.map(()=>O0).filter(Boolean).flat()});qw.useEffect(()=>{if(W)return;if(!L)return;function H0(j0){if(j0.key==="Tab"){if(t0(A0,X2(b1(A0)))&&r0().length===0&&!c)Xw(j0)}}let O0=b1(A0);return O0.addEventListener("keydown",H0),()=>{O0.removeEventListener("keydown",H0)}},[W,E,A0,L,d,c,r0,n0]),qw.useEffect(()=>{if(W)return;if(!I)return;function H0(O0){let j0=f1(O0),b0=r0().indexOf(j0);if(b0!==-1)z0.current=b0}return I.addEventListener("focusin",H0),()=>{I.removeEventListener("focusin",H0)}},[W,I,r0]),qw.useEffect(()=>{if(W||!x)return;let H0=b1(A0);function O0(){P.current=!1}function j0(b0){let v0=f1(b0),o0=t0(I,v0)||t0(E,v0)||t0(r?.portalNode,v0);P.current=!o0,J0.current=b0.pointerType||"keyboard"}function c0(){J0.current="keyboard"}return H0.addEventListener("pointerdown",j0,!0),H0.addEventListener("pointerup",O0,!0),H0.addEventListener("pointercancel",O0,!0),H0.addEventListener("keydown",c0,!0),()=>{H0.removeEventListener("pointerdown",j0,!0),H0.removeEventListener("pointerup",O0,!0),H0.removeEventListener("pointercancel",O0,!0),H0.removeEventListener("keydown",c0,!0)}},[W,I,E,A0,x,r]),qw.useEffect(()=>{if(W)return;if(!N)return;function H0(){X0.current=!0,S0.start(0,()=>{X0.current=!1})}function O0(v0){let{relatedTarget:o0,currentTarget:x0}=v0,l0=f1(v0);queueMicrotask(()=>{let y0=m(),q1=h.context.triggerElements,D1=!(t0(E,o0)||t0(I,o0)||t0(o0,I)||t0(r?.portalNode,o0)||o0!=null&&q1.hasElement(o0)||q1.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))||jH(Q0.nodesRef.current,y0).find((W1)=>[W1.context?.elements.floating,u7(W1.context?.elements.floating)].includes(o0)||W1.context?.elements.domReference===o0)));if(x0===E&&A0)sM(A0,d);if(H&&x0!==E&&!CC(l0)&&X2(b1(A0))===b1(A0).body){if(O1(A0)){if(A0.focus(),H==="popup"){V0.request(()=>{A0.focus()});return}}let W1=z0.current,Gw=r0(),zw=Gw[W1]||Gw[Gw.length-1]||A0;if(O1(zw))zw.focus()}if(v.current.insideReactTree){v.current.insideReactTree=!1;return}if((c?!0:!L)&&o0&&D1&&!X0.current&&(c||o0!==pH()))g.current=!0,h.setOpen(!1,P0(B0.focusOut,v0))})}function j0(){if(P.current)return;v.current.insideReactTree=!0,L0.start(0,()=>{v.current.insideReactTree=!1})}let c0=O1(E)?E:null,b0=[];if(!I&&!c0)return;if(c0)c0.addEventListener("focusout",O0),c0.addEventListener("pointerdown",H0),b0.push(()=>{c0.removeEventListener("focusout",O0),c0.removeEventListener("pointerdown",H0)});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((v0)=>{v0()})}},[W,E,I,A0,L,Q0,r,h,N,H,r0,c,m,d,v,L0,S0,V0]);let n=qw.useRef(null),R0=qw.useRef(null),I0=D5(n,O,r?.beforeInsideRef),A1=D5(R0,r?.afterInsideRef);qw.useEffect(()=>{if(W||!I||!x)return;let H0=Array.from(r?.portalNode?.querySelectorAll(`[${X5("portal")}]`)||[]),j0=(Q0?jH(Q0.nodesRef.current,m()):[]).find((v0)=>UX(v0.context?.elements.domReference||null))?.context?.elements.domReference,c0=[I,j0,...H0,...R(),e.current,o.current,n.current,R0.current,r?.beforeOutsideRef.current,r?.afterOutsideRef.current,O6(j),O6(k),c?E:null].filter((v0)=>v0!=null),b0=rM(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 H0=b1(A0),O0=X2(H0);queueMicrotask(()=>{let j0=n0(A0),c0=w0.current,b0=typeof c0==="function"?c0(u.current||""):c0;if(b0===void 0||b0===!1)return;let v0;if(b0===!0||b0===null)v0=j0[0]||A0;else v0=O6(b0);if(v0=v0||j0[0]||A0,t0(A0,O0))return;bz(v0,{preventScroll:v0===A0})})},[W,x,A0,S,n0,w0,u]),k0(()=>{if(W||!A0)return;let H0=b1(A0),O0=X2(H0);PC(O0);function j0(v0){if(!v0.open)U0.current=vC(v0.nativeEvent,J0.current);if(v0.reason===B0.triggerHover&&v0.nativeEvent.type==="mouseleave")g.current=!0;if(v0.reason!==B0.outsidePress)return;if(v0.nested)g.current=!1;else if(XG(v0.nativeEvent)||$G(v0.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=H0.createElement("span");if(c0.setAttribute("tabindex","-1"),c0.setAttribute("aria-hidden","true"),Object.assign(c0.style,kG),_0&&E)E.insertAdjacentElement("afterend",c0);function b0(){let v0=t.current,o0=typeof v0==="function"?v0(U0.current):v0;if(o0===void 0||o0===!1)return null;if(o0===null)o0=!0;if(typeof o0==="boolean"){let l0=E||pH();return l0&&l0.isConnected?l0:c0}let x0=E||pH()||c0;return O6(o0)||x0}return()=>{C.off("openchange",j0);let v0=X2(H0),o0=t0(I,v0)||Q0&&i8(Q0.nodesRef.current,m(),!1).some((l0)=>t0(l0.context?.elements.floating,v0)),x0=b0();queueMicrotask(()=>{let l0=IC(x0),y0=typeof t.current!=="boolean";if(t.current&&!g.current&&O1(l0)&&(!y0&&l0!==v0&&v0!==H0.body?o0:!0))l0.focus({preventScroll:!0});c0.remove()})}},[W,I,A0,t,v,C,Q0,_0,E,m]),qw.useEffect(()=>{queueMicrotask(()=>{g.current=!1})},[W]),qw.useEffect(()=>{if(W||!x)return;function H0(j0){if(f1(j0)?.closest(`[${dY}]`))X0.current=!0}let O0=b1(A0);return O0.addEventListener("pointerdown",H0,!0),()=>{O0.removeEventListener("pointerdown",H0,!0)}},[W,x,A0]),k0(()=>{if(W)return;if(!r)return;return r.setFocusManagerState({modal:L,closeOnFocusOut:N,open:x,onOpenChange:h.setOpen,domReference:E}),()=>{r.setFocusManagerState(null)}},[W,r,L,x,h,N,E]),k0(()=>{if(W||!A0)return;return sM(A0,d),()=>{queueMicrotask(cH)}},[W,A0,d]);let C0=!W&&(L?!c:!0)&&(_0||L);return MX.jsxs(qw.Fragment,{children:[C0&&MX.jsx(r8,{"data-type":"inside",ref:I0,onFocus:(H0)=>{if(L){let O0=n0();bz(O0[O0.length-1])}else if(r?.portalNode)if(g.current=!1,E6(H0,r.portalNode))vz(E)?.focus();else O6(j??r.beforeOutsideRef)?.focus()}}),Y,C0&&MX.jsx(r8,{"data-type":"inside",ref:A1,onFocus:(H0)=>{if(L)bz(n0()[0]);else if(r?.portalNode){if(N)g.current=!0;if(E6(H0,r.portalNode))qG(E)?.focus();else O6(k??r.afterOutsideRef)?.focus()}}})]})}var DX=p(G0(),1);function n7(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.context.dataRef,{enabled:K=!0,event:U="click",toggle:q=!0,ignoreMouse:H=!1,stickIfOpen:L=!0,touchOpenDelay:N=0}=X,F=DX.useRef(void 0),V=E5(),k=a1(),j=DX.useMemo(()=>({onPointerDown(O){F.current=O.pointerType},onMouseDown(O){let M=F.current,h=O.nativeEvent,x=Y.select("open");if(O.button!==0||U==="click"||P5(M,!0)&&H)return;let E=W.current.openEvent,I=E?.type,C=Y.select("domReferenceElement")!==O.currentTarget,v=x&&C||!(x&&q&&(E&&L?I==="click"||I==="mousedown":!0));if(KX(h.target)){let R=P0(B0.triggerPress,h,h.target);if(v&&M==="touch"&&N>0)k.start(N,()=>{Y.setOpen(!0,R)});else Y.setOpen(v,R);return}let m=O.currentTarget;V.request(()=>{let R=P0(B0.triggerPress,h,m);if(v&&M==="touch"&&N>0)k.start(N,()=>{Y.setOpen(!0,R)});else Y.setOpen(v,R)})},onClick(O){if(U==="mousedown-only")return;let M=F.current;if(U==="mousedown"&&M){F.current=void 0;return}if(P5(M,!0)&&H)return;let h=Y.select("open"),x=W.current.openEvent,E=Y.select("domReferenceElement")!==O.currentTarget,I=h&&E||!(h&&q&&(x&&L?YG(x):!0)),C=P0(B0.triggerPress,O.nativeEvent,O.currentTarget);if(I&&M==="touch"&&N>0)k.start(N,()=>{Y.setOpen(!0,C)});else Y.setOpen(I,C)},onKeyDown(){F.current=void 0}}),[W,U,H,Y,L,q,V,k,N]);return DX.useMemo(()=>K?{reference:j}:E1,[K,j])}var N2=p(G0(),1);function SC(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},q=X.axis==="x"||X.axis==="both",H=X.axis==="y"||X.axis==="both",L=["mouseenter","mousemove"].includes(X.dataRef.current.openEvent?.type||"")&&X.pointerType!=="touch",N=U.width,F=U.height,V=U.x,k=U.y;if(Y==null&&X.x&&q)Y=U.x-X.x;if(W==null&&X.y&&H)W=U.y-X.y;if(V-=Y||0,k-=W||0,N=0,F=0,!K||L)N=X.axis==="y"?U.width:0,F=X.axis==="x"?U.height:0,V=q&&X.x!=null?X.x:V,k=H&&X.y!=null?X.y:k;else if(K&&!L)F=X.axis==="x"?U.height:F,N=X.axis==="y"?U.width:N;return K=!0,{width:N,height:F,x:V,y:k,top:k,right:V+N,bottom:k+F,left:V}}}}function oM(J){return J!=null&&J.clientX!=null}function lH(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("domReferenceElement"),q=Y.context.dataRef,{enabled:H=!0,axis:L="both",x:N=null,y:F=null}=X,V=N2.useRef(!1),k=N2.useRef(null),[j,O]=N2.useState(),[M,h]=N2.useState([]),x=F0((m,R)=>{if(V.current)return;if(q.current.openEvent&&!oM(q.current.openEvent))return;Y.set("positionReference",SC(U,{x:m,y:R,axis:L,dataRef:q,pointerType:j}))}),E=F0((m)=>{if(N!=null||F!=null)return;if(!W)x(m.clientX,m.clientY);else if(!k.current)h([])}),I=P5(j)?K:W,C=N2.useCallback(()=>{if(!I||!H||N!=null||F!=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(!q.current.openEvent||oM(q.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,H,N,F,K,q,U,Y,x]);N2.useEffect(()=>{return C()},[C,M]),N2.useEffect(()=>{if(H&&!K)V.current=!1},[H,K]),N2.useEffect(()=>{if(!H&&W)V.current=!0},[H,W]),k0(()=>{if(H&&(N!=null||F!=null))V.current=!1,x(N,F)},[H,N,F,x]);let v=N2.useMemo(()=>{function m(R){O(R.pointerType)}return{onPointerDown:m,onPointerEnter:m,onMouseMove:E,onMouseEnter:E}},[E]);return N2.useMemo(()=>H?{reference:v}:{},[H,v])}var S5=p(G0(),1);function nM(J,X,Y){let{reference:W,floating:K}=J,U=I2(X),q=BX(X),H=qX(q),L=nw(X),N=U==="y",F=W.x+W.width/2-K.width/2,V=W.y+W.height/2-K.height/2,k=W[H]/2-K[H]/2,j;switch(L){case"top":j={x:F,y:W.y-K.height};break;case"bottom":j={x:F,y:W.y+W.height};break;case"right":j={x:W.x+W.width,y:V};break;case"left":j={x:W.x-K.width,y:V};break;default:j={x:W.x,y:W.y}}switch(Z8(X)){case"start":j[q]-=k*(Y&&N?-1:1);break;case"end":j[q]+=k*(Y&&N?-1:1);break}return j}var wO=async(J,X,Y)=>{let{placement:W="bottom",strategy:K="absolute",middleware:U=[],platform:q}=Y,H=U.filter(Boolean),L=await(q.isRTL==null?void 0:q.isRTL(X)),N=await q.getElementRects({reference:J,floating:X,strategy:K}),{x:F,y:V}=nM(N,W,L),k=W,j={},O=0;for(let M=0;M<H.length;M++){let{name:h,fn:x}=H[M],{x:E,y:I,data:C,reset:v}=await x({x:F,y:V,initialPlacement:W,placement:k,strategy:K,middlewareData:j,rects:N,platform:q,elements:{reference:J,floating:X}});if(F=E!=null?E:F,V=I!=null?I:V,j={...j,[h]:{...j[h],...C}},v&&O<=50){if(O++,typeof v==="object"){if(v.placement)k=v.placement;if(v.rects)N=v.rects===!0?await q.getElementRects({reference:J,floating:X,strategy:K}):v.rects;({x:F,y:V}=nM(N,k,L))}M=-1}}return{x:F,y:V,placement:k,strategy:K,middlewareData:j}};async function gz(J,X){var Y;if(X===void 0)X={};let{x:W,y:K,platform:U,rects:q,elements:H,strategy:L}=J,{boundary:N="clippingAncestors",rootBoundary:F="viewport",elementContext:V="floating",altBoundary:k=!1,padding:j=0}=z8(X,J),O=WG(j),h=H[k?V==="floating"?"reference":"floating":V],x=p7(await U.getClippingRect({element:((Y=await(U.isElement==null?void 0:U.isElement(h)))!=null?Y:!0)?h:h.contextElement||await(U.getDocumentElement==null?void 0:U.getDocumentElement(H.floating)),boundary:N,rootBoundary:F,strategy:L})),E=V==="floating"?{x:W,y:K,width:q.floating.width,height:q.floating.height}:q.reference,I=await(U.getOffsetParent==null?void 0:U.getOffsetParent(H.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},v=p7(U.convertOffsetParentRelativeRectToViewportRelativeRect?await U.convertOffsetParentRelativeRectToViewportRelativeRect({elements:H,rect:E,offsetParent:I,strategy:L}):E);return{top:(x.top-v.top+O.top)/C.y,bottom:(v.bottom-x.bottom+O.bottom)/C.y,left:(x.left-v.left+O.left)/C.x,right:(v.right-x.right+O.right)/C.x}}var zO=function(J){if(J===void 0)J={};return{name:"flip",options:J,async fn(X){var Y,W;let{placement:K,middlewareData:U,rects:q,initialPlacement:H,platform:L,elements:N}=X,{mainAxis:F=!0,crossAxis:V=!0,fallbackPlacements:k,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:M=!0,...h}=z8(J,X);if((Y=U.arrow)!=null&&Y.alignmentOffset)return{};let x=nw(K),E=I2(H),I=nw(H)===H,C=await(L.isRTL==null?void 0:L.isRTL(N.floating)),v=k||(I||!M?[_X(H)]:VM(H)),m=O!=="none";if(!k&&m)v.push(...FM(H,M,O,C));let R=[H,...v],S=await gz(X,h),c=[],d=((W=U.flip)==null?void 0:W.overflows)||[];if(F)c.push(S[x]);if(V){let Q0=LM(K,q,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(!(V==="alignment"?E!==I2(r):!1)||d.every((g)=>I2(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=I2(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=H;break}if(K!==e)return{reset:{placement:e}}}return{}}}};function tM(J,X){return{top:J.top-X.height,right:J.right-X.width,bottom:J.bottom-X.height,left:J.left-X.width}}function eM(J){return BM.some((X)=>J[X]>=0)}var ZO=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 gz(X,{...K,elementContext:"reference"}),q=tM(U,Y.reference);return{data:{referenceHiddenOffsets:q,referenceHidden:eM(q)}}}case"escaped":{let U=await gz(X,{...K,altBoundary:!0}),q=tM(U,Y.floating);return{data:{escapedOffsets:q,escaped:eM(q)}}}default:return{}}}}};var JO=new Set(["left","top"]);async function bC(J,X){let{placement:Y,platform:W,elements:K}=J,U=await(W.isRTL==null?void 0:W.isRTL(K.floating)),q=nw(Y),H=Z8(Y),L=I2(Y)==="y",N=JO.has(q)?-1:1,F=U&&L?-1:1,V=z8(X,J),{mainAxis:k,crossAxis:j,alignmentAxis:O}=typeof V==="number"?{mainAxis:V,crossAxis:0,alignmentAxis:null}:{mainAxis:V.mainAxis||0,crossAxis:V.crossAxis||0,alignmentAxis:V.alignmentAxis};if(H&&typeof O==="number")j=H==="end"?O*-1:O;return L?{x:j*F,y:k*N}:{x:k*N,y:j*F}}var XO=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:q,middlewareData:H}=X,L=await bC(X,J);if(q===((Y=H.offset)==null?void 0:Y.placement)&&(W=H.arrow)!=null&&W.alignmentOffset)return{};return{x:K+L.x,y:U+L.y,data:{...L,placement:q}}}}},$O=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:q=!1,limiter:H={fn:(h)=>{let{x,y:E}=h;return{x,y:E}}},...L}=z8(J,X),N={x:Y,y:W},F=await gz(X,L),V=I2(nw(K)),k=QG(V),j=N[k],O=N[V];if(U){let h=k==="y"?"top":"left",x=k==="y"?"bottom":"right",E=j+F[h],I=j-F[x];j=HX(E,j,I)}if(q){let h=V==="y"?"top":"left",x=V==="y"?"bottom":"right",E=O+F[h],I=O-F[x];O=HX(E,O,I)}let M=H.fn({...X,[k]:j,[V]:O});return{...M,data:{x:M.x-Y,y:M.y-W,enabled:{[k]:U,[V]:q}}}}}},YO=function(J){if(J===void 0)J={};return{options:J,fn(X){let{x:Y,y:W,placement:K,rects:U,middlewareData:q}=X,{offset:H=0,mainAxis:L=!0,crossAxis:N=!0}=z8(J,X),F={x:Y,y:W},V=I2(K),k=QG(V),j=F[k],O=F[V],M=z8(H,X),h=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]+h.mainAxis,v=U.reference[k]+U.reference[I]-h.mainAxis;if(j<C)j=C;else if(j>v)j=v}if(N){var x,E;let I=k==="y"?"width":"height",C=JO.has(nw(K)),v=U.reference[V]-U.floating[I]+(C?((x=q.offset)==null?void 0:x[V])||0:0)+(C?0:h.crossAxis),m=U.reference[V]+U.reference[I]+(C?0:((E=q.offset)==null?void 0:E[V])||0)-(C?h.crossAxis:0);if(O<v)O=v;else if(O>m)O=m}return{[k]:j,[V]:O}}}},GO=function(J){if(J===void 0)J={};return{name:"size",options:J,async fn(X){var Y,W;let{placement:K,rects:U,platform:q,elements:H}=X,{apply:L=()=>{},...N}=z8(J,X),F=await gz(X,N),V=nw(K),k=Z8(K),j=I2(K)==="y",{width:O,height:M}=U.floating,h,x;if(V==="top"||V==="bottom")h=V,x=k===(await(q.isRTL==null?void 0:q.isRTL(H.floating))?"start":"end")?"left":"right";else x=V,h=k==="end"?"top":"bottom";let E=M-F.top-F.bottom,I=O-F.left-F.right,C=I4(M-F[h],E),v=I4(O-F[x],I),m=!X.middlewareData.shift,R=C,S=v;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=F2(F.left,0),w0=F2(F.right,0),t=F2(F.top,0),u=F2(F.bottom,0);if(j)S=O-2*(d!==0||w0!==0?d+w0:F2(F.left,F.right));else R=M-2*(t!==0||u!==0?t+u:F2(F.top,F.bottom))}await L({...X,availableWidth:S,availableHeight:R});let c=await q.getDimensions(H.floating);if(O!==c.width||M!==c.height)return{reset:{rects:!0}};return{}}}};function UO(J){let X=uw(J),Y=parseFloat(X.width)||0,W=parseFloat(X.height)||0,K=O1(J),U=K?J.offsetWidth:Y,q=K?J.offsetHeight:W,H=C4(Y)!==U||C4(W)!==q;if(H)Y=U,W=q;return{width:Y,height:W,$:H}}function rH(J){return!L1(J)?J.contextElement:J}function fz(J){let X=rH(J);if(!O1(X))return w8(1);let Y=X.getBoundingClientRect(),{width:W,height:K,$:U}=UO(X),q=(U?C4(Y.width):Y.width)/W,H=(U?C4(Y.height):Y.height)/K;if(!q||!Number.isFinite(q))q=1;if(!H||!Number.isFinite(H))H=1;return{x:q,y:H}}var yC=w8(0);function _O(J){let X=u1(J);if(!Dz()||!X.visualViewport)return yC;return{x:X.visualViewport.offsetLeft,y:X.visualViewport.offsetTop}}function RC(J,X,Y){if(X===void 0)X=!1;if(!Y||X&&Y!==u1(J))return!1;return X}function t7(J,X,Y,W){if(X===void 0)X=!1;if(Y===void 0)Y=!1;let K=J.getBoundingClientRect(),U=rH(J),q=w8(1);if(X)if(W){if(L1(W))q=fz(W)}else q=fz(J);let H=RC(U,Y,W)?_O(U):w8(0),L=(K.left+H.x)/q.x,N=(K.top+H.y)/q.y,F=K.width/q.x,V=K.height/q.y;if(U){let k=u1(U),j=W&&L1(W)?u1(W):W,O=k,M=nY(O);while(M&&W&&j!==O){let h=fz(M),x=M.getBoundingClientRect(),E=uw(M),I=x.left+(M.clientLeft+parseFloat(E.paddingLeft))*h.x,C=x.top+(M.clientTop+parseFloat(E.paddingTop))*h.y;L*=h.x,N*=h.y,F*=h.x,V*=h.y,L+=I,N+=C,O=u1(M),M=nY(O)}}return p7({width:F,height:V,x:L,y:N})}function DG(J,X){let Y=GX(J).scrollLeft;if(!X)return t7(e5(J)).left+Y;return X.left+Y}function HO(J,X){let Y=J.getBoundingClientRect(),W=Y.left+X.scrollLeft-DG(J,Y),K=Y.top+X.scrollTop;return{x:W,y:K}}function gC(J){let{elements:X,rect:Y,offsetParent:W,strategy:K}=J,U=K==="fixed",q=e5(W),H=X?YX(X.floating):!1;if(W===q||H&&U)return Y;let L={scrollLeft:0,scrollTop:0},N=w8(1),F=w8(0),V=O1(W);if(V||!V&&!U){if(t5(W)!=="body"||T6(q))L=GX(W);if(O1(W)){let j=t7(W);N=fz(W),F.x=j.x+W.clientLeft,F.y=j.y+W.clientTop}}let k=q&&!V&&!U?HO(q,L):w8(0);return{width:Y.width*N.x,height:Y.height*N.y,x:Y.x*N.x-L.scrollLeft*N.x+F.x+k.x,y:Y.y*N.y-L.scrollTop*N.y+F.y+k.y}}function fC(J){return Array.from(J.getClientRects())}function mC(J){let X=e5(J),Y=GX(J),W=J.ownerDocument.body,K=F2(X.scrollWidth,X.clientWidth,W.scrollWidth,W.clientWidth),U=F2(X.scrollHeight,X.clientHeight,W.scrollHeight,W.clientHeight),q=-Y.scrollLeft+DG(J),H=-Y.scrollTop;if(uw(W).direction==="rtl")q+=F2(X.clientWidth,W.clientWidth)-K;return{width:K,height:U,x:q,y:H}}var QO=25;function dC(J,X){let Y=u1(J),W=e5(J),K=Y.visualViewport,U=W.clientWidth,q=W.clientHeight,H=0,L=0;if(K){U=K.width,q=K.height;let F=Dz();if(!F||F&&X==="fixed")H=K.offsetLeft,L=K.offsetTop}let N=DG(W);if(N<=0){let F=W.ownerDocument,V=F.body,k=getComputedStyle(V),j=F.compatMode==="CSS1Compat"?parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0:0,O=Math.abs(W.clientWidth-V.clientWidth-j);if(O<=QO)U-=O}else if(N<=QO)U+=N;return{width:U,height:q,x:H,y:L}}var uC=new Set(["absolute","fixed"]);function pC(J,X){let Y=t7(J,!0,X==="fixed"),W=Y.top+J.clientTop,K=Y.left+J.clientLeft,U=O1(J)?fz(J):w8(1),q=J.clientWidth*U.x,H=J.clientHeight*U.y,L=K*U.x,N=W*U.y;return{width:q,height:H,x:L,y:N}}function WO(J,X,Y){let W;if(X==="viewport")W=dC(J,Y);else if(X==="document")W=mC(e5(J));else if(L1(X))W=pC(X,Y);else{let K=_O(J);W={x:X.x-K.x,y:X.y-K.y,width:X.width,height:X.height}}return p7(W)}function qO(J,X){let Y=w5(J);if(Y===X||!L1(Y)||Z5(Y))return!1;return uw(Y).position==="fixed"||qO(Y,X)}function cC(J,X){let Y=X.get(J);if(Y)return Y;let W=z5(J,[],!1).filter((H)=>L1(H)&&t5(H)!=="body"),K=null,U=uw(J).position==="fixed",q=U?w5(J):J;while(L1(q)&&!Z5(q)){let H=uw(q),L=oY(q);if(!L&&H.position==="fixed")K=null;if(U?!L&&!K:!L&&H.position==="static"&&!!K&&uC.has(K.position)||T6(q)&&!L&&qO(J,q))W=W.filter((F)=>F!==q);else K=H;q=w5(q)}return X.set(J,W),W}function lC(J){let{element:X,boundary:Y,rootBoundary:W,strategy:K}=J,q=[...Y==="clippingAncestors"?YX(X)?[]:cC(X,this._c):[].concat(Y),W],H=q[0],L=q.reduce((N,F)=>{let V=WO(X,F,K);return N.top=F2(V.top,N.top),N.right=I4(V.right,N.right),N.bottom=I4(V.bottom,N.bottom),N.left=F2(V.left,N.left),N},WO(X,H,K));return{width:L.right-L.left,height:L.bottom-L.top,x:L.left,y:L.top}}function iC(J){let{width:X,height:Y}=UO(J);return{width:X,height:Y}}function rC(J,X,Y){let W=O1(X),K=e5(X),U=Y==="fixed",q=t7(J,!0,U,X),H={scrollLeft:0,scrollTop:0},L=w8(0);function N(){L.x=DG(K)}if(W||!W&&!U){if(t5(X)!=="body"||T6(K))H=GX(X);if(W){let j=t7(X,!0,U,X);L.x=j.x+X.clientLeft,L.y=j.y+X.clientTop}else if(K)N()}if(U&&!W&&K)N();let F=K&&!W&&!U?HO(K,H):w8(0),V=q.left+H.scrollLeft-L.x-F.x,k=q.top+H.scrollTop-L.y-F.y;return{x:V,y:k,width:q.width,height:q.height}}function iH(J){return uw(J).position==="static"}function KO(J,X){if(!O1(J)||uw(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 BO(J,X){let Y=u1(J);if(YX(J))return Y;if(!O1(J)){let K=w5(J);while(K&&!Z5(K)){if(L1(K)&&!iH(K))return K;K=w5(K)}return Y}let W=KO(J,X);while(W&&zM(W)&&iH(W))W=KO(W,X);if(W&&Z5(W)&&iH(W)&&!oY(W))return Y;return W||ZM(J)||Y}var aC=async function(J){let X=this.getOffsetParent||BO,Y=this.getDimensions,W=await Y(J.floating);return{reference:rC(J.reference,await X(J.floating),J.strategy),floating:{x:0,y:0,width:W.width,height:W.height}}};function sC(J){return uw(J).direction==="rtl"}var aH={convertOffsetParentRelativeRectToViewportRelativeRect:gC,getDocumentElement:e5,getClippingRect:lC,getOffsetParent:BO,getElementRects:aC,getClientRects:fC,getDimensions:iC,getScale:fz,isElement:L1,isRTL:sC};function LO(J,X){return J.x===X.x&&J.y===X.y&&J.width===X.width&&J.height===X.height}function oC(J,X){let Y=null,W,K=e5(J);function U(){var H;clearTimeout(W),(H=Y)==null||H.disconnect(),Y=null}function q(H,L){if(H===void 0)H=!1;if(L===void 0)L=1;U();let N=J.getBoundingClientRect(),{left:F,top:V,width:k,height:j}=N;if(!H)X();if(!k||!j)return;let O=S4(V),M=S4(K.clientWidth-(F+k)),h=S4(K.clientHeight-(V+j)),x=S4(F),I={rootMargin:-O+"px "+-M+"px "+-h+"px "+-x+"px",threshold:F2(0,I4(1,L))||1},C=!0;function v(m){let R=m[0].intersectionRatio;if(R!==L){if(!C)return q();if(!R)W=setTimeout(()=>{q(!1,0.0000001)},1000);else q(!1,R)}if(R===1&&!LO(N,J.getBoundingClientRect()))q();C=!1}try{Y=new IntersectionObserver(v,{...I,root:K.ownerDocument})}catch(m){Y=new IntersectionObserver(v,I)}Y.observe(J)}return q(!0),U}function TX(J,X,Y,W){if(W===void 0)W={};let{ancestorScroll:K=!0,ancestorResize:U=!0,elementResize:q=typeof ResizeObserver==="function",layoutShift:H=typeof IntersectionObserver==="function",animationFrame:L=!1}=W,N=rH(J),F=K||U?[...N?z5(N):[],...z5(X)]:[];F.forEach((x)=>{K&&x.addEventListener("scroll",Y,{passive:!0}),U&&x.addEventListener("resize",Y)});let V=N&&H?oC(N,Y):null,k=-1,j=null;if(q){if(j=new ResizeObserver((x)=>{let[E]=x;if(E&&E.target===N&&j)j.unobserve(X),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var I;(I=j)==null||I.observe(X)});Y()}),N&&!L)j.observe(N);j.observe(X)}let O,M=L?t7(J):null;if(L)h();function h(){let x=t7(J);if(M&&!LO(M,x))Y();M=x,O=requestAnimationFrame(h)}return Y(),()=>{var x;if(F.forEach((E)=>{K&&E.removeEventListener("scroll",Y),U&&E.removeEventListener("resize",Y)}),V==null||V(),(x=j)==null||x.disconnect(),j=null,L)cancelAnimationFrame(O)}}var VO=XO;var FO=$O,NO=zO,kO=GO,jO=ZO;var AO=YO,TG=(J,X,Y)=>{let W=new Map,K={platform:aH,...Y},U={...K.platform,_c:W};return wO(J,X,{...K,platform:U})};var xw=p(G0(),1),OO=p(G0(),1),DO=p(m8(),1),tC=typeof document<"u",eC=function(){},xG=tC?OO.useLayoutEffect:eC;function EG(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(!EG(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(!EG(J[U],X[U]))return!1}return!0}return J!==J&&X!==X}function TO(J){if(typeof window>"u")return 1;return(J.ownerDocument.defaultView||window).devicePixelRatio||1}function MO(J,X){let Y=TO(J);return Math.round(X*Y)/Y}function sH(J){let X=xw.useRef(J);return xG(()=>{X.current=J}),X}function xO(J){if(J===void 0)J={};let{placement:X="bottom",strategy:Y="absolute",middleware:W=[],platform:K,elements:{reference:U,floating:q}={},transform:H=!0,whileElementsMounted:L,open:N}=J,[F,V]=xw.useState({x:0,y:0,strategy:Y,placement:X,middlewareData:{},isPositioned:!1}),[k,j]=xw.useState(W);if(!EG(k,W))j(W);let[O,M]=xw.useState(null),[h,x]=xw.useState(null),E=xw.useCallback((g)=>{if(g!==m.current)m.current=g,M(g)},[]),I=xw.useCallback((g)=>{if(g!==R.current)R.current=g,x(g)},[]),C=U||O,v=q||h,m=xw.useRef(null),R=xw.useRef(null),S=xw.useRef(F),c=L!=null,d=sH(L),w0=sH(K),t=sH(N),u=xw.useCallback(()=>{if(!m.current||!R.current)return;let g={placement:X,strategy:Y,middleware:k};if(w0.current)g.platform=w0.current;TG(m.current,R.current,g).then((X0)=>{let P={...X0,isPositioned:t.current!==!1};if(Q0.current&&!EG(S.current,P))S.current=P,DO.flushSync(()=>{V(P)})})},[k,X,Y,w0,t]);xG(()=>{if(N===!1&&S.current.isPositioned)S.current.isPositioned=!1,V((g)=>({...g,isPositioned:!1}))},[N]);let Q0=xw.useRef(!1);xG(()=>{return Q0.current=!0,()=>{Q0.current=!1}},[]),xG(()=>{if(C)m.current=C;if(v)R.current=v;if(C&&v){if(d.current)return d.current(C,v,u);u()}},[C,v,u,d,c]);let r=xw.useMemo(()=>({reference:m,floating:R,setReference:E,setFloating:I}),[E,I]),e=xw.useMemo(()=>({reference:C,floating:v}),[C,v]),o=xw.useMemo(()=>{let g={position:Y,left:0,top:0};if(!e.floating)return g;let X0=MO(e.floating,F.x),P=MO(e.floating,F.y);if(H)return{...g,transform:"translate("+X0+"px, "+P+"px)",...TO(e.floating)>=1.5&&{willChange:"transform"}};return{position:Y,left:X0,top:P}},[Y,H,e.floating,F.x,F.y]);return xw.useMemo(()=>({...F,update:u,refs:r,elements:e,floatingStyles:o}),[F,u,r,e,o])}var oH=(J,X)=>({...VO(J),options:[J,X]}),nH=(J,X)=>({...FO(J),options:[J,X]}),tH=(J,X)=>({...AO(J),options:[J,X]}),eH=(J,X)=>({...NO(J),options:[J,X]}),wq=(J,X)=>({...kO(J),options:[J,X]});var zq=(J,X)=>({...jO(J),options:[J,X]});var wS={intentional:"onClick",sloppy:"onPointerDown"};function zS(J){return{escapeKey:typeof J==="boolean"?J:J?.escapeKey??!1,outsidePress:typeof J==="boolean"?J:J?.outsidePress??!0}}function e7(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("referenceElement"),q=Y.useState("domReferenceElement"),{onOpenChange:H,dataRef:L}=Y.context,{enabled:N=!0,escapeKey:F=!0,outsidePress:V=!0,outsidePressEvent:k="sloppy",referencePress:j=!1,referencePressEvent:O="sloppy",ancestorScroll:M=!1,bubbles:h,externalTree:x}=X,E=$2(x),I=F0(typeof V==="function"?V:()=>!1),C=typeof V==="function"?I:V,v=S5.useRef(!1),{escapeKey:m,outsidePress:R}=zS(h),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||!N||!F||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 H0=!0;if(I0.forEach((O0)=>{if(O0.context?.open&&!O0.context.dataRef.current.__escapeKeyBubbles)H0=!1}),!H0)return}}let A1=_M(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),H0=Y.context.triggerElements;if(I0&&(H0.hasElement(I0)||H0.hasMatchingElement((v0)=>t0(v0,I0))))return;let O0=L1(I0)?I0:null;while(O0&&!Z5(O0)){let v0=w5(O0);if(Z5(v0)||!L1(v0))break;O0=v0}if(C0.length&&L1(I0)&&!KM(I0)&&!t0(I0,Y.select("floatingElement"))&&Array.from(C0).every((v0)=>!t0(O0,v0)))return;if(O1(I0)&&!("touches"in n)){let v0=Z5(I0),o0=uw(I0),x0=/auto|scroll/,l0=v0||x0.test(o0.overflowX),y0=v0||x0.test(o0.overflowY),q1=l0&&I0.clientWidth>0&&I0.scrollWidth>I0.clientWidth,D1=y0&&I0.clientHeight>0&&I0.scrollHeight>I0.clientHeight,W1=o0.direction==="rtl",Gw=D1&&(W1?n.offsetX<=I0.offsetWidth-I0.clientWidth:n.offsetX>I0.clientWidth),zw=q1&&n.offsetY>I0.clientHeight;if(Gw||zw)return}let j0=L.current.floatingContext?.nodeId,c0=E&&i8(E.nodesRef.current,j0).some((v0)=>v5(n,v0.context?.elements.floating));if(v5(n,Y.select("floatingElement"))||v5(n,Y.select("domReferenceElement"))||c0)return;let b0=E?i8(E.nodesRef.current,j0):[];if(b0.length>0){let v0=!0;if(b0.forEach((o0)=>{if(o0.context?.open&&!o0.context.dataRef.current.__outsidePressBubbles)v0=!1}),!v0)return}Y.setOpen(!1,P0(B0.outsidePress,n)),w0()}),P=F0((n)=>{if(r()!=="sloppy"||n.pointerType==="touch"||!Y.select("open")||!N||v5(n,Y.select("floatingElement"))||v5(n,Y.select("domReferenceElement")))return;X0(n)}),z0=F0((n)=>{if(r()!=="sloppy"||!Y.select("open")||!N||v5(n,Y.select("floatingElement"))||v5(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=v.current;if(v.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||v5(n,Y.select("floatingElement"))||v5(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||v5(n,Y.select("floatingElement"))||v5(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||!N)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(Dz()?5:0,()=>{t.current=!1})}let C0=b1(K);if(C0.addEventListener("pointerdown",Q0,!0),F)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 H0=[];if(M){if(L1(q))H0=z5(q);if(L1(K))H0=H0.concat(z5(K));if(!L1(U)&&U&&U.contextElement)H0=H0.concat(z5(U.contextElement))}return H0=H0.filter((O0)=>O0!==C0.defaultView?.visualViewport),H0.forEach((O0)=>{O0.addEventListener("scroll",R0,{passive:!0})}),()=>{if(C0.removeEventListener("pointerdown",Q0,!0),F)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);H0.forEach((O0)=>{O0.removeEventListener("scroll",R0)}),n.clear()}},[L,K,U,q,F,C,W,H,M,N,m,R,e,X0,J0,P,U0,S0,_0,Q0,Y]),S5.useEffect(w0,[C,w0]);let A0=S5.useMemo(()=>({onKeyDown:e,...j&&{[wS[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;v.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(()=>N?{reference:A0,floating:n0,trigger:A0}:{},[N,A0,n0])}var k2=p(G0(),1);var ZS=(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})}}},JS=(J,X,Y)=>{let{memoize:W,memoizeOptions:K}=X,{inputSelectorResults:U,inputSelectorResultsCopy:q}=J,H=W(()=>({}),...K);if(H.apply(null,U)!==H.apply(null,q)){let N=void 0;try{throw Error()}catch(F){({stack:N}=F)}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:q,stack:N})}},XS={inputStabilityCheck:"once",identityFunctionCheck:"once"};var vG=Symbol("NOT_FOUND");function $S(J,X=`expected a function, instead received ${typeof J}`){if(typeof J!=="function")throw TypeError(X)}function YS(J,X=`expected an object, instead received ${typeof J}`){if(typeof J!=="object")throw TypeError(X)}function GS(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 EO=(J)=>{return Array.isArray(J)?J:[J]};function QS(J){let X=Array.isArray(J[0])?J[0]:J;return GS(X,"createSelector expects all input-selectors to be functions, but received the following types: "),X}function hO(J,X){let Y=[],{length:W}=J;for(let K=0;K<W;K++)Y.push(J[K].apply(null,X));return Y}var WS=(J,X)=>{let{identityFunctionCheck:Y,inputStabilityCheck:W}={...XS,...X};return{identityFunctionCheck:{shouldRun:Y==="always"||Y==="once"&&J,run:ZS},inputStabilityCheck:{shouldRun:W==="always"||W==="once"&&J,run:JS}}},vO=0,KS=null,IO=class{revision=vO;_value;_lastValue;_isEqual=Zq;constructor(J,X=Zq){this._value=this._lastValue=J,this._isEqual=X}get value(){return KS?.add(this),this._value}set value(J){if(this.value===J)return;this._value=J,this.revision=++vO}};function Zq(J,X){return J===X}function Jq(J){if(!(J instanceof IO))console.warn("Not a valid cell! ",J);return J.value}function US(J,X=Zq){return new IO(J,X)}var _S=(J,X)=>!1;function PG(){return US(null,_S)}var CO=(J)=>{let X=J.collectionTag;if(X===null)X=J.collectionTag=PG();Jq(X)};var dc=Symbol(),SO=0,HS=Object.getPrototypeOf({}),qS=class{constructor(J){this.value=J,this.value=J,this.tag.value=J}proxy=new Proxy(this,xX);tag=PG();tags={};children={};collectionTag=null;id=SO++},xX={get(J,X){function Y(){let{value:K}=J,U=Reflect.get(K,X);if(typeof X==="symbol")return U;if(X in HS)return U;if(typeof U==="object"&&U!==null){let q=J.children[X];if(q===void 0)q=J.children[X]=VS(U);if(q.tag)Jq(q.tag);return q.proxy}else{let q=J.tags[X];if(q===void 0)q=J.tags[X]=PG(),q.value=U;return Jq(q),U}}return Y()},ownKeys(J){return CO(J),Reflect.ownKeys(J.value)},getOwnPropertyDescriptor(J,X){return Reflect.getOwnPropertyDescriptor(J.value,X)},has(J,X){return Reflect.has(J.value,X)}},BS=class{constructor(J){this.value=J,this.value=J,this.tag.value=J}proxy=new Proxy([this],LS);tag=PG();tags={};children={};collectionTag=null;id=SO++},LS={get([J],X){if(X==="length")CO(J);return xX.get(J,X)},ownKeys([J]){return xX.ownKeys(J)},getOwnPropertyDescriptor([J],X){return xX.getOwnPropertyDescriptor(J,X)},has([J],X){return xX.has(J,X)}};function VS(J){if(Array.isArray(J))return new BS(J);return new qS(J)}function FS(J){let X;return{get(Y){if(X&&J(X.key,Y))return X.value;return vG},put(Y,W){X={key:Y,value:W}},getEntries(){return X?[X]:[]},clear(){X=void 0}}}function NS(J,X){let Y=[];function W(H){let L=Y.findIndex((N)=>X(H,N.key));if(L>-1){let N=Y[L];if(L>0)Y.splice(L,1),Y.unshift(N);return N.value}return vG}function K(H,L){if(W(H)===vG){if(Y.unshift({key:H,value:L}),Y.length>J)Y.pop()}}function U(){return Y}function q(){Y=[]}return{get:W,put:K,getEntries:U,clear:q}}var kS=(J,X)=>J===X;function jS(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 bO(J,X){let Y=typeof X==="object"?X:{equalityCheck:X},{equalityCheck:W=kS,maxSize:K=1,resultEqualityCheck:U}=Y,q=jS(W),H=0,L=K<=1?FS(q):NS(K,q);function N(){let F=L.get(arguments);if(F===vG){if(F=J.apply(null,arguments),H++,U){let k=L.getEntries().find((j)=>U(j.value,F));if(k)F=k.value,H!==0&&H--}L.put(arguments,F)}return F}return N.clearCache=()=>{L.clear(),N.resetResultsCount()},N.resultsCount=()=>H,N.resetResultsCount=()=>{H=0},N}var AS=class{constructor(J){this.value=J}deref(){return this.value}},MS=typeof WeakRef<"u"?WeakRef:AS,OS=0,PO=1;function hG(){return{s:OS,v:void 0,o:null,p:null}}function yO(J,X={}){let Y=hG(),{resultEqualityCheck:W}=X,K,U=0;function q(){let H=Y,{length:L}=arguments;for(let V=0,k=L;V<k;V++){let j=arguments[V];if(typeof j==="function"||typeof j==="object"&&j!==null){let O=H.o;if(O===null)H.o=O=new WeakMap;let M=O.get(j);if(M===void 0)H=hG(),O.set(j,H);else H=M}else{let O=H.p;if(O===null)H.p=O=new Map;let M=O.get(j);if(M===void 0)H=hG(),O.set(j,H);else H=M}}let N=H,F;if(H.s===PO)F=H.v;else if(F=J.apply(null,arguments),U++,W){let V=K?.deref?.()??K;if(V!=null&&W(V,F))F=V,U!==0&&U--;K=typeof F==="object"&&F!==null||typeof F==="function"?new MS(F):F}return N.s=PO,N.v=F,F}return q.clearCache=()=>{Y=hG(),q.resetResultsCount()},q.resultsCount=()=>U,q.resetResultsCount=()=>{U=0},q}function Xq(J,...X){let Y=typeof J==="function"?{memoize:J,memoizeOptions:X}:J,W=(...K)=>{let U=0,q=0,H,L={},N=K.pop();if(typeof N==="object")L=N,N=K.pop();$S(N,`createSelector expects an output function after the inputs, but received: [${typeof N}]`);let F={...Y,...L},{memoize:V,memoizeOptions:k=[],argsMemoize:j=yO,argsMemoizeOptions:O=[],devModeChecks:M={}}=F,h=EO(k),x=EO(O),E=QS(K),I=V(function(){return U++,N.apply(null,arguments)},...h),C=!0,v=j(function(){q++;let R=hO(E,arguments);H=I.apply(null,R);{let{identityFunctionCheck:S,inputStabilityCheck:c}=WS(C,M);if(S.shouldRun)S.run(N,R,H);if(c.shouldRun){let d=hO(E,arguments);c.run({inputSelectorResults:R,inputSelectorResultsCopy:d},{memoize:V,memoizeOptions:h},arguments)}if(C)C=!1}return H},...x);return Object.assign(v,{resultFunc:N,memoizedResultFunc:I,dependencies:E,dependencyRecomputations:()=>q,resetDependencyRecomputations:()=>{q=0},lastResult:()=>H,recomputations:()=>U,resetRecomputations:()=>{U=0},memoize:V,argsMemoize:j})};return Object.assign(W,{withTypes:()=>W}),W}var DS=Xq(yO),TS=Object.assign((J,X=DS)=>{YS(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((q,H,L)=>{return q[Y[L]]=H,q},{})})},{withTypes:()=>TS});var ac=Xq({memoize:bO,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),p0=(J,X,Y,W,K,U,...q)=>{if(q.length>0)throw Error("Unsupported number of selectors");let H;if(J&&X&&Y&&W&&K&&U)H=(L,N,F,V)=>{let k=J(L,N,F,V),j=X(L,N,F,V),O=Y(L,N,F,V),M=W(L,N,F,V),h=K(L,N,F,V);return U(k,j,O,M,h,N,F,V)};else if(J&&X&&Y&&W&&K)H=(L,N,F,V)=>{let k=J(L,N,F,V),j=X(L,N,F,V),O=Y(L,N,F,V),M=W(L,N,F,V);return K(k,j,O,M,N,F,V)};else if(J&&X&&Y&&W)H=(L,N,F,V)=>{let k=J(L,N,F,V),j=X(L,N,F,V),O=Y(L,N,F,V);return W(k,j,O,N,F,V)};else if(J&&X&&Y)H=(L,N,F,V)=>{let k=J(L,N,F,V),j=X(L,N,F,V);return Y(k,j,N,F,V)};else if(J&&X)H=(L,N,F,V)=>{let k=J(L,N,F,V);return X(k,N,F,V)};else if(J)H=J;else throw Error("Missing arguments");return H};var gO=p(G0(),1),fO=p($q(),1),mO=p(RO(),1);var hS=jz(19),vS=hS?PS:IS;function dO(J,X,Y,W,K){return vS(J,X,Y,W,K)}function PS(J,X,Y,W,K){let U=gO.useCallback(()=>X(J.getSnapshot(),Y,W,K),[J,X,Y,W,K]);return fO.useSyncExternalStore(J.subscribe,U,U)}function IS(J,X,Y,W,K){return mO.useSyncExternalStoreWithSelector(J.subscribe,J.getSnapshot,J.getSnapshot,(U)=>X(U,Y,W,K))}class mz{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])){mz.prototype.setState.call(this,{...this.state,...J});return}}set(J,X){if(!Object.is(this.state[J],X))mz.prototype.setState.call(this,{...this.state,[J]:X})}notifyAll(){let J={...this.state};mz.prototype.setState.call(this,J)}}var v6=p(G0(),1);class P6 extends mz{constructor(J,X={},Y){super(J);this.context=X,this.selectors=Y}controlledValues=new Map;useSyncedValue(J,X){v6.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){{v6.useDebugValue(J,(K)=>Object.keys(K));let Y=v6.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){v6.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)=>{v6.useDebugValue(J);let K=this.selectors[J];return dO(this,K,X,Y,W)};useContextCallback(J,X){v6.useDebugValue(J);let Y=F0(X??mY);this.context[J]=Y}useStateSetter(J){let X=v6.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 q=W;W=U,X(U,q,this)}})}}var IG=p(G0(),1);function uO(){let[,J]=IG.useState({});return IG.useCallback(()=>{J({})},[])}var CS={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 w9 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:FG(),nested:X,noEmit:Y,triggerElements:K},CS)}setOpen=(J,X)=>{if(!J||!this.state.open||YG(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 CG=p(G0(),1);function Yq(J,X){let Y=CG.useRef(null);return CG.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 dz(J,X,Y,W){let K=Y.useState("isMountedByTrigger",J),U=Yq(J,Y),q=F0((H)=>{if(U(H),H!==null&&Y.select("open")&&Y.select("activeTriggerId")==null)Y.update({activeTriggerId:J,activeTriggerElement:H,...W})});return k0(()=>{if(K)Y.update({activeTriggerElement:X.current,...W})},[K,Y,X,...Object.values(W)]),{registerTrigger:q,isMountedByThisTrigger:K}}function uz(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 pz(J,X,Y){let{mounted:W,setMounted:K,transitionStatus:U}=Oz(J);X.useSyncedValues({mounted:W,transitionStatus:U});let q=F0(()=>{K(!1),X.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),Y?.(),X.context.onOpenChangeComplete?.(!1)}),H=X.useState("preventUnmountingOnClose");return I5({enabled:!H,open:J,ref:X.context.popupRef,onComplete(){if(!J)q()}}),{forceUnmount:q,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 pO(){return new w9({open:!1,floatingElement:null,referenceElement:null,triggerElements:new X8,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function cz(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:pO(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:E1,inactiveTriggerProps:E1,popupProps:E1}}var lz={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 cO(J){let{open:X=!1,onOpenChange:Y,elements:W={}}=J,K=J2(),U=tw()!=null;{let H=W.reference;if(H&&!L1(H))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 q=r1(()=>new w9({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 H={open:X,floatingId:K};if(W.reference!==void 0)H.referenceElement=W.reference,H.domReferenceElement=L1(W.reference)?W.reference:null;if(W.floating!==void 0)H.floatingElement=W.floating;q.update(H)},[X,K,W.reference,W.floating,q]),q.context.onOpenChange=Y,q.context.nested=U,q.context.noEmit=J.noEmit||!1,q}function Gq(J={}){let{nodeId:X,externalTree:Y}=J,W=cO(J),K=J.rootContext||W,U={reference:K.useState("referenceElement"),floating:K.useState("floatingElement"),domReference:K.useState("domReferenceElement")},[q,H]=k2.useState(null),L=k2.useRef(null),N=$2(Y);k0(()=>{if(U.domReference)L.current=U.domReference},[U.domReference]);let F=xO({...J,elements:{...U,...q&&{reference:q}}}),V=k2.useCallback((R)=>{let S=L1(R)?{getBoundingClientRect:()=>R.getBoundingClientRect(),getClientRects:()=>R.getClientRects(),contextElement:R}:R;H(S),F.refs.setReference(S)},[F.refs]),[k,j]=k2.useState(null),[O,M]=k2.useState(null);K.useSyncedValue("referenceElement",k),K.useSyncedValue("domReferenceElement",L1(k)?k:null),K.useSyncedValue("floatingElement",O);let h=k2.useCallback((R)=>{if(L1(R)||R===null)L.current=R,j(R);if(L1(F.refs.reference.current)||F.refs.reference.current===null||R!==null&&!L1(R))F.refs.setReference(R)},[F.refs,j]),x=k2.useCallback((R)=>{M(R),F.refs.setFloating(R)},[F.refs]),E=k2.useMemo(()=>({...F.refs,setReference:h,setFloating:x,setPositionReference:V,domReference:L}),[F.refs,h,x,V]),I=k2.useMemo(()=>({...F.elements,domReference:U.domReference}),[F.elements,U.domReference]),C=K.useState("open"),v=K.useState("floatingId"),m=k2.useMemo(()=>({...F,dataRef:K.context.dataRef,open:C,onOpenChange:K.setOpen,events:K.context.events,floatingId:v,refs:E,elements:I,nodeId:X,rootStore:K}),[F,E,I,X,K,C,v]);return k0(()=>{K.context.dataRef.current.floatingContext=m;let R=N?.nodesRef.current.find((S)=>S.id===X);if(R)R.context=m}),k2.useMemo(()=>({...F,context:m,refs:E,elements:I,rootStore:K}),[F,E,I,m,K])}function z9(J){let{popupStore:X,noEmit:Y=!1,treatPopupAsFloatingElement:W=!1,onOpenChange:K}=J,U=J2(),q=tw()!=null,H=X.useState("open"),L=X.useState("activeTriggerElement"),N=X.useState(W?"popupElement":"positionerElement"),F=X.context.triggerElements,V=r1(()=>new w9({open:H,referenceElement:L,floatingElement:N,triggerElements:F,onOpenChange:K,floatingId:U,nested:q,noEmit:Y})).current;return k0(()=>{let k={open:H,floatingId:U,referenceElement:L,floatingElement:N};if(L1(L))k.domReferenceElement=L;V.update(k)},[H,U,L,N,V]),V.context.onOpenChange=K,V.context.nested=q,V.context.noEmit=Y,V}var I6=p(G0(),1);var Qq=WM&&zG;function EX(J,X={}){let Y="rootStore"in J?J.rootStore:J,{events:W,dataRef:K}=Y.context,{enabled:U=!0,visibleOnly:q=!0}=X,H=I6.useRef(!1),L=a1(),N=I6.useRef(!0);I6.useEffect(()=>{let V=Y.select("domReferenceElement");if(!U)return;let k=u1(V);function j(){if(!Y.select("open")&&O1(V)&&V===X2(b1(V)))H.current=!0}function O(){N.current=!0}function M(){N.current=!1}if(k.addEventListener("blur",j),Qq)k.addEventListener("keydown",O,!0),k.addEventListener("pointerdown",M,!0);return()=>{if(k.removeEventListener("blur",j),Qq)k.removeEventListener("keydown",O,!0),k.removeEventListener("pointerdown",M,!0)}},[Y,U]),I6.useEffect(()=>{if(!U)return;function V(k){if(k.reason===B0.triggerPress||k.reason===B0.escapeKey)H.current=!0}return W.on("openchange",V),()=>{W.off("openchange",V)}},[W,U]);let F=I6.useMemo(()=>({onMouseLeave(){H.current=!1},onFocus(V){if(H.current)return;let k=f1(V.nativeEvent);if(q&&L1(k)){if(Qq&&!V.relatedTarget){if(!N.current&&!KX(k))return}else if(!UM(k))return}Y.setOpen(!0,P0(B0.triggerFocus,V.nativeEvent,V.currentTarget))},onBlur(V){H.current=!1;let{relatedTarget:k,nativeEvent:j}=V,O=L1(k)&&k.hasAttribute(X5("focus-guard"))&&k.getAttribute("data-type")==="outside";L.start(0,()=>{let M=Y.select("domReferenceElement"),h=X2(M?M.ownerDocument:document);if(!k&&h===M)return;if(t0(K.current.floatingContext?.refs.floating.current,h)||t0(M,h)||O)return;if(Y.context.triggerElements.hasElement(V.relatedTarget))return;Y.setOpen(!1,P0(B0.triggerFocus,j))})}}),[K,Y,q,L]);return I6.useMemo(()=>U?{reference:F,trigger:F}:{},[U,F])}var iz=p(G0(),1);var $8=p(G0(),1);var hX=X5("safe-polygon"),SS=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${xz}`;function lO(J){return J?Boolean(J.closest(SS)):!1}function SG(J){let X=$8.useRef(void 0),Y=$8.useRef(!1),W=$8.useRef(void 0),K=$8.useRef(!0),U=$8.useRef(!1),q=$8.useRef(()=>{}),H=$8.useRef(!1),L=a1(),N=a1(),F=$8.useRef(void 0);return $8.useMemo(()=>{let V=J.context.dataRef.current;if(!V.hoverInteractionState)V.hoverInteractionState={pointerTypeRef:X,interactedInsideRef:Y,handlerRef:W,blockMouseMoveRef:K,performedPointerEventsMutationRef:U,unbindMouseMoveRef:q,restTimeoutPendingRef:H,openChangeTimeout:L,restTimeout:N,handleCloseOptionsRef:F};return V.hoverInteractionState},[J,X,Y,W,K,U,q,H,L,N,F])}var bS=new Set(["click","mousedown"]);function vX(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("domReferenceElement"),{dataRef:q}=Y.context,{enabled:H=!0,closeDelay:L=0,externalTree:N}=X,{pointerTypeRef:F,interactedInsideRef:V,handlerRef:k,performedPointerEventsMutationRef:j,unbindMouseMoveRef:O,restTimeoutPendingRef:M,openChangeTimeout:h,handleCloseOptionsRef:x}=SG(Y),E=$2(N),I=tw(),C=F0(()=>{if(V.current)return!0;return q.current.openEvent?bS.has(q.current.openEvent.type):!1}),v=F0(()=>{let d=q.current.openEvent?.type;return d?.includes("mouse")&&d!=="mousedown"}),m=iz.useCallback((d,w0=!0)=>{let t=yS(L,F.current);if(t&&!k.current)h.start(t,()=>Y.setOpen(!1,P0(B0.triggerHover,d)));else if(w0)h.clear(),Y.setOpen(!1,P0(B0.triggerHover,d))},[L,k,Y,F,h]),R=F0(()=>{O.current(),k.current=void 0}),S=F0(()=>{if(j.current){let d=b1(K).body;d.style.pointerEvents="",d.removeAttribute(hX),j.current=!1}}),c=F0((d)=>{let w0=f1(d);if(!lO(w0)){V.current=!1;return}V.current=!0});k0(()=>{if(!W)F.current=void 0,M.current=!1,V.current=!1,R(),S()},[W,F,M,V,R,S]),iz.useEffect(()=>{return()=>{R()}},[R]),iz.useEffect(()=>{return S},[S]),k0(()=>{if(!H)return;if(W&&x.current?.blockPointerEvents&&v()&&L1(U)&&K){j.current=!0;let d=b1(K).body;d.setAttribute(hX,"");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},[H,W,U,K,x,v,E,I,j]),iz.useEffect(()=>{if(!H)return;function d(Q0){if(C()||!q.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){h.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 yS(J,X){if(X&&!P5(X))return 0;if(typeof J==="function")return J();return J}var Z9=p(G0(),1),iO=p(m8(),1);function Wq(J){if(typeof J==="function")return J();return J}var RS={current:null};function J9(J,X={}){let Y="rootStore"in J?J.rootStore:J,{dataRef:W,events:K}=Y.context,{enabled:U=!0,delay:q=0,handleClose:H=null,mouseOnly:L=!1,restMs:N=0,move:F=!0,triggerElementRef:V=RS,externalTree:k,isActiveTrigger:j=!0}=X,O=$2(k),{pointerTypeRef:M,interactedInsideRef:h,handlerRef:x,blockMouseMoveRef:E,performedPointerEventsMutationRef:I,unbindMouseMoveRef:C,restTimeoutPendingRef:v,openChangeTimeout:m,restTimeout:R,handleCloseOptionsRef:S}=SG(Y),c=Kw(H),d=Kw(q),w0=Kw(N);if(j)S.current=c.current?.__options;let t=F0(()=>{if(h.current)return!0;return W.current.openEvent?["click","mousedown"].includes(W.current.openEvent.type):!1}),u=Z9.useCallback((o,g=!0)=>{let X0=Sz(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(hX),I.current=!1}});Z9.useEffect(()=>{if(!U)return;function o(g){if(!g.open)m.clear(),R.clear(),E.current=!0,v.current=!1}return K.on("openchange",o),()=>{K.off("openchange",o)}},[U,K,m,R,E,v]);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=V.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 Z9.useEffect(()=>{if(!U)return;let o=V.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(Wq(w0.current)>0&&!Sz(d.current,"open"))return;let U0=Sz(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(),v.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=V.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(F)o.addEventListener("mousemove",g,{once:!0});return o.addEventListener("mouseenter",g),o.addEventListener("mouseleave",X0),()=>{if(o.removeEventListener("mouseleave",P),F)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,F,M,w0,R,v,m,V,O,C,x]),Z9.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||Wq(w0.current)===0)return;if(!L0&&v.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")iO.flushSync(()=>{S0()});else if(L0&&J0)S0();else v.current=!0,R.start(Wq(w0.current),S0)}}},[E,L,Y,M,w0,R,v])}var X9=p(G0(),1);function Y5(J=[]){let X=J.map((N)=>N?.reference),Y=J.map((N)=>N?.floating),W=J.map((N)=>N?.item),K=J.map((N)=>N?.trigger),U=X9.useCallback((N)=>bG(N,J,"reference"),X),q=X9.useCallback((N)=>bG(N,J,"floating"),Y),H=X9.useCallback((N)=>bG(N,J,"item"),W),L=X9.useCallback((N)=>bG(N,J,"trigger"),K);return X9.useMemo(()=>({getReferenceProps:U,getFloatingProps:q,getItemProps:H,getTriggerProps:L}),[U,q,H,L])}function bG(J,X,Y){let W=new Map,K=Y==="item",U={};if(Y==="floating")U.tabIndex=-1,U[QX]="";for(let q in J){if(K&&J){if(q===NH||q===kH)continue}U[q]=J[q]}for(let q=0;q<X.length;q+=1){let H,L=X[q]?.[Y];if(typeof L==="function")H=J?L(J):null;else H=L;if(!H)continue;rO(U,H,K,W)}return rO(U,J,K,W),U}function rO(J,X,Y,W){for(let K in X){let U=X[K];if(Y&&(K===NH||K===kH))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]=(...q)=>{return W.get(K)?.map((H)=>H(...q)).find((H)=>H!==void 0)}}}}var Sw=p(G0(),1);var gS="Escape";function RG(J,X,Y){switch(J){case"vertical":return X;case"horizontal":return Y;default:return X||Y}}function yG(J,X){return RG(X,J===WX||J===d7,J===c8||J===l8)}function Kq(J,X,Y){return RG(X,J===d7,Y?J===c8:J===l8)||J==="Enter"||J===" "||J===""}function fS(J,X,Y){return RG(X,Y?J===c8:J===l8,J===d7)}function mS(J,X,Y,W){let K=Y?J===l8:J===c8,U=J===WX;if(X==="both"||X==="horizontal"&&W&&W>1)return J===gS;return RG(X,K,U)}function Uq(J,X){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("domReferenceElement"),q=Y.context.dataRef,{listRef:H,activeIndex:L,onNavigate:N=()=>{},enabled:F=!0,selectedIndex:V=null,allowEscape:k=!1,loopFocus:j=!1,nested:O=!1,rtl:M=!1,virtual:h=!1,focusItemOnOpen:x="auto",focusItemOnHover:E=!0,openOnArrowKeyDown:I=!0,disabledIndices:C=void 0,orientation:v="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(!h)console.warn("`useListNavigation` must be virtual to allow escaping.")}if(v==="vertical"&&R>1)console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".');let Q0=u7(K),r=Kw(Q0),e=tw(),o=$2(u);k0(()=>{q.current.orientation=v},[q,v]);let g=UX(U),X0=Sw.useRef(x),P=Sw.useRef(V??-1),z0=Sw.useRef(null),U0=Sw.useRef(!0),J0=F0((x0)=>{N(P.current===-1?null:P.current,x0)}),L0=Sw.useRef(J0),S0=Sw.useRef(!!K),V0=Sw.useRef(W),_0=Sw.useRef(!1),A0=Sw.useRef(!1),r0=Kw(C),n0=Kw(W),n=Kw(S),R0=Kw(V),I0=Kw(t),A1=F0(()=>{function x0(D1){if(h)o?.events.emit("virtualfocus",D1);else bz(D1,{sync:_0.current,preventScroll:!0})}let l0=H.current[P.current],y0=A0.current;if(l0)x0(l0);(_0.current?(D1)=>D1():requestAnimationFrame)(()=>{let D1=H.current[P.current]||l0;if(!D1)return;if(!l0)x0(D1);let W1=n.current;if(W1&&H0&&(y0||!U0.current))D1.scrollIntoView?.(typeof W1==="boolean"?{block:"nearest",inline:"nearest"}:W1)})});k0(()=>{if(!F)return;if(W&&K){if(P.current=V??-1,X0.current&&V!=null)A0.current=!0,J0()}else if(S0.current)P.current=-1,L0.current()},[F,W,K,V,J0]),k0(()=>{if(!F)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(H.current[0]==null){if(x0<2)(x0?requestAnimationFrame:queueMicrotask)(l0);x0+=1}else P.current=z0.current==null||Kq(z0.current,v,M)||O?c7(H):Ez(H),z0.current=null,J0()};l0()}}else if(!x6(H,L))P.current=L,A1(),A0.current=!1},[F,W,K,L,R0,O,H,v,M,J0,A1,r0]),k0(()=>{if(!F||K||!o||h||!S0.current)return;let x0=o.nodesRef.current,l0=x0.find((D1)=>D1.id===e)?.context?.elements.floating,y0=X2(b1(K)),q1=x0.some((D1)=>D1.context&&t0(D1.context.elements.floating,y0));if(l0&&!q1&&U0.current)l0.focus({preventScroll:!0})},[F,K,o,e,h]),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,H0=Sw.useMemo(()=>{function x0(y0){if(!n0.current)return;let q1=H.current.indexOf(y0.currentTarget);if(q1!==-1&&P.current!==q1)P.current=q1,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 q1=y0.relatedTarget;if(!E||H.current.includes(q1))return;if(!I0.current)return;if(P.current=-1,J0(y0),!h)r.current?.focus({preventScroll:!0})}}},[n0,r,E,H,J0,I0,h]),O0=Sw.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&&mS(x0.key,v,M,R)){if(!yG(x0.key,O0()))Xw(x0);if(Y.setOpen(!1,P0(B0.listNavigation,x0.nativeEvent)),O1(U))if(h)o?.events.emit("virtualfocus",U);else U.focus();return}let l0=P.current,y0=c7(H,C),q1=Ez(H,C);if(!g){if(x0.key==="Home")Xw(x0),P.current=y0,J0(x0);if(x0.key==="End")Xw(x0),P.current=q1,J0(x0)}if(R>1){let D1=c||Array.from({length:H.current.length},()=>({width:1,height:1})),W1=VX(D1,R,d),Gw=W1.findIndex((Uw)=>Uw!=null&&!J8(H,Uw,C)),zw=W1.reduce((Uw,hw,J1)=>hw!=null&&!J8(H,hw,C)?J1:Uw,-1),Lw=W1[LX({current:W1.map((Uw)=>Uw!=null?H.current[Uw]:null)},{event:x0,orientation:v,loopFocus:j,rtl:M,cols:R,disabledIndices:NX([...(typeof C!=="function"?C:null)||H.current.map((Uw,hw)=>J8(H,hw,C)?hw:void 0),void 0],W1),minIndex:Gw,maxIndex:zw,prevIndex:FX(P.current>q1?y0:P.current,D1,W1,R,x0.key===d7?"bl":x0.key===(M?c8:l8)?"tr":"tl"),stopEvent:!0})];if(Lw!=null)P.current=Lw,J0(x0);if(v==="both")return}if(yG(x0.key,v)){if(Xw(x0),W&&!h&&X2(x0.currentTarget.ownerDocument)===x0.currentTarget){P.current=Kq(x0.key,v,M)?y0:q1,J0(x0);return}if(Kq(x0.key,v,M))if(j)if(l0>=q1)if(k&&l0!==H.current.length)P.current=-1;else _0.current=!1,P.current=y0;else P.current=Dw(H,{startingIndex:l0,disabledIndices:C});else P.current=Math.min(q1,Dw(H,{startingIndex:l0,disabledIndices:C}));else if(j)if(l0<=y0)if(k&&l0!==-1)P.current=H.current.length;else _0.current=!1,P.current=q1;else P.current=Dw(H,{startingIndex:l0,decrement:!0,disabledIndices:C});else P.current=Math.max(y0,Dw(H,{startingIndex:l0,decrement:!0,disabledIndices:C}));if(x6(H,P.current))P.current=-1;J0(x0)}}),c0=Sw.useMemo(()=>{return h&&W&&C0&&{"aria-activedescendant":`${w0}-${L}`}},[h,W,C0,w0,L]),b0=Sw.useMemo(()=>{return{"aria-orientation":v==="both"?void 0:v,...!g?c0:{},onKeyDown(x0){if(x0.key==="Tab"&&x0.shiftKey&&W&&!h){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,v,g,Y,W,h,U]),v0=Sw.useMemo(()=>{function x0(y0){if(x==="auto"&&XG(y0.nativeEvent))X0.current=!h}function l0(y0){if(X0.current=x,x==="auto"&&$G(y0.nativeEvent))X0.current=!0}return{onKeyDown(y0){let q1=Y.select("open");U0.current=!1;let D1=y0.key.startsWith("Arrow"),W1=fS(y0.key,O0(),M),Gw=yG(y0.key,v),zw=(O?W1:Gw)||y0.key==="Enter"||y0.key.trim()==="";if(h&&q1)return j0(y0);if(!q1&&!I&&D1)return;if(zw){let Lw=yG(y0.key,O0());z0.current=O&&Lw?null:y0.key}if(O){if(W1)if(Xw(y0),q1)P.current=c7(H,r0.current),J0(y0);else Y.setOpen(!0,P0(B0.listNavigation,y0.nativeEvent,y0.currentTarget));return}if(Gw){if(R0.current!=null)P.current=R0.current;if(Xw(y0),!q1&&I)Y.setOpen(!0,P0(B0.listNavigation,y0.nativeEvent,y0.currentTarget));else j0(y0);if(q1)J0(y0)}return},onFocus(y0){if(Y.select("open")&&!h)P.current=-1,J0(y0)},onPointerDown:l0,onPointerEnter:l0,onMouseDown:x0,onClick:x0}},[j0,r0,x,H,O,J0,Y,I,v,O0,M,R0,h]),o0=Sw.useMemo(()=>{return{...c0,...v0}},[c0,v0]);return Sw.useMemo(()=>F?{reference:o0,floating:b0,item:H0,trigger:v0}:{},[F,o0,b0,v0,H0])}var g4=p(G0(),1);var dS=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function PX(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingId"),U=Y.useState("domReferenceElement"),q=Y.useState("floatingElement"),{enabled:H=!0,role:L="dialog"}=X,N=J2(),F=U?.id||N,V=g4.useMemo(()=>u7(q)?.id||K,[q,K]),k=dS.get(L)??L,O=tw()!=null,M=g4.useMemo(()=>{if(k==="tooltip"||L==="label")return E1;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]),h=g4.useMemo(()=>{if(k==="tooltip"||L==="label")return{[`aria-${L==="label"?"labelledby":"describedby"}`]:W?V:void 0};return{...M,"aria-expanded":W?"true":"false","aria-controls":W?V:void 0,...k==="menu"&&{id:F}}},[k,V,W,F,L,M]),x=g4.useMemo(()=>{let I={id:V,...k&&{role:k}};if(k==="tooltip"||L==="label")return I;return{...I,...k==="menu"&&{"aria-labelledby":F}}},[k,V,F,L]),E=g4.useCallback(({active:I,selected:C})=>{let v={role:"option",...I&&{id:`${V}-fui-option`}};switch(L){case"select":case"combobox":return{...v,"aria-selected":C};default:}return{}},[V,L]);return g4.useMemo(()=>H?{reference:h,floating:x,item:E,trigger:M}:{},[H,h,x,M,E])}var f4=p(G0(),1);function _q(J,X){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.context.dataRef,{listRef:U,activeIndex:q,onMatch:H,onTypingChange:L,enabled:N=!0,findMatch:F=null,resetMs:V=750,ignoreKeys:k=e2,selectedIndex:j=null}=X,O=a1(),M=f4.useRef(""),h=f4.useRef(j??q??-1),x=f4.useRef(null);k0(()=>{if(W)O.clear(),x.current=null,M.current=""},[W,O]),k0(()=>{if(W&&M.current==="")h.current=j??q??-1},[W,j,q]);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=F?F(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="",h.current=x.current;M.current+=m.key,O.start(V,()=>{M.current="",h.current=x.current,E(!1)});let d=h.current,w0=R(S,[...S.slice((d||0)+1),...S.slice(0,(d||0)+1)],M.current);if(w0!==-1)H?.(w0),x.current=w0;else if(m.key!==" ")M.current="",E(!1)}),C=f4.useMemo(()=>({onKeyDown:I}),[I]),v=f4.useMemo(()=>{return{onKeyDown:I,onKeyUp(m){if(m.key===" ")E(!1)}}},[I,E]);return f4.useMemo(()=>N?{reference:C,floating:v}:{},[N,C,v])}function aO(J,X){let[Y,W]=J,K=!1,U=X.length;for(let q=0,H=U-1;q<U;H=q++){let[L,N]=X[q]||[0,0],[F,V]=X[H]||[0,0];if(N>=W!==V>=W&&Y<=(F-L)*(W-N)/(V-N)+L)K=!K}return K}function uS(J,X){return J[0]>=X.x&&J[0]<=X.x+X.width&&J[1]>=X.y&&J[1]<=X.y+X.height}function $9(J={}){let{buffer:X=0.5,blockPointerEvents:Y=!1,requireIntent:W=!0}=J,K=new C5,U=!1,q=null,H=null,L=typeof performance<"u"?performance.now():0;function N(V,k){let j=performance.now(),O=j-L;if(q===null||H===null||O===0)return q=V,H=k,L=j,null;let M=V-q,h=k-H,E=Math.sqrt(M*M+h*h)/O;return q=V,H=k,L=j,E}let F=({x:V,y:k,placement:j,elements:O,onClose:M,nodeId:h,tree:x})=>{return function(I){function C(){K.clear(),M()}if(K.clear(),!O.domReference||!O.floating||j==null||V==null||k==null)return;let{clientX:v,clientY:m}=I,R=[v,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=V>u.right-u.width/2,e=k>u.bottom-u.height/2,o=uS(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,h).some(({context:V0})=>V0?.open))return;if(Q0==="top"&&k>=t.bottom-1||Q0==="bottom"&&k<=t.top+1||Q0==="left"&&V>=t.right-1||Q0==="right"&&V<=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(aO([v,m],L0))return;if(U&&!o)return C();if(!c&&W){let V0=N(I.clientX,I.clientY),_0=0.1;if(V0!==null&&V0<0.1)return C()}if(!aO([v,m],S0([V,k])))C();else if(!U&&W)K.start(40,C);return}};return F.__options={blockPointerEvents:Y},F}var rz=p(G0(),1);var IX=p(G0(),1);function sO(J){let X=IX.useRef(""),Y=IX.useCallback((K)=>{if(K.defaultPrevented)return;X.current=K.pointerType,J(K,K.pointerType)},[J]);return{onClick:IX.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 gG(J){let[X,Y]=rz.useState(null),W=F0((H,L)=>{if(!J)Y(L)}),K=rz.useCallback(()=>{Y(null)},[]),{onClick:U,onPointerDown:q}=sO(W);return rz.useMemo(()=>({openMethod:X,reset:K,triggerProps:{onClick:U,onPointerDown:q}}),[X,K,U,q])}function oO(J){let{store:X,parentContext:Y,actionsRef:W}=J,K=X.useState("open"),U=X.useState("disablePointerDismissal"),q=X.useState("modal"),H=X.useState("popupElement"),{openMethod:L,triggerProps:N,reset:F}=gG(K);uz(X);let{forceUnmount:V}=pz(K,X,()=>{F()}),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:V,close:j}),[V,j]);let O=z9({popupStore:X,onOpenChange:X.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[M,h]=b5.useState(0),x=M===0,E=PX(O),I=e7(O,{outsidePressEvent(){if(X.context.internalBackdropRef.current||X.context.backdropRef.current)return"intentional";return{mouse:q==="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(q)return X.context.internalBackdropRef.current||X.context.backdropRef.current?X.context.internalBackdropRef.current===t||X.context.backdropRef.current===t||t0(t,H)&&!t?.hasAttribute("data-base-ui-portal"):!0;return!0}return!1},escapeKey:x});VG(K&&q===!0,H);let{getReferenceProps:C,getFloatingProps:v,getTriggerProps:m}=Y5([E,I]);X.useContextCallback("onNestedDialogOpen",(d)=>{h(d+1)}),X.useContextCallback("onNestedDialogClose",()=>{h(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(N),[C,N]),S=b5.useMemo(()=>m(N),[m,N]),c=b5.useMemo(()=>v(),[v]);X.useSyncedValues({openMethod:L,activeTriggerProps:R,inactiveTriggerProps:S,popupProps:c,floatingRootContext:O,nestedOpenDialogCount:M})}var fG=p(G0(),1),mG=fG.createContext(void 0);mG.displayName="DialogRootContext";function pw(J){let X=fG.useContext(mG);if(J===!1&&X===void 0)throw Error("Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");return X}var dG=p(G0(),1);var pS={...lz,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 CX extends P6{constructor(J){super(cS(J),{popupRef:dG.createRef(),backdropRef:dG.createRef(),internalBackdropRef:dG.createRef(),triggerElements:new X8,onOpenChange:void 0,onOpenChangeComplete:void 0},pS)}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 cS(J={}){return{...cz(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...J}}var uG=p(G0(),1);var G5=function(J){return J.open="data-open",J.closed="data-closed",J[J.startingStyle=$X.startingStyle]="startingStyle",J[J.endingStyle=$X.endingStyle]="endingStyle",J.anchorHidden="data-anchor-hidden",J}({}),Hq=function(J){return J.popupOpen="data-popup-open",J.pressed="data-pressed",J}({}),lS={[Hq.popupOpen]:""},iS={[Hq.popupOpen]:"",[Hq.pressed]:""},rS={[G5.open]:""},aS={[G5.closed]:""},sS={[G5.anchorHidden]:""},az={open(J){if(J)return lS;return null}},SX={open(J){if(J)return iS;return null}},Ew={open(J){if(J)return rS;return aS},anchorHidden(J){if(J)return sS;return null}};var oS={...Ew,...P2},qq=uG.forwardRef(function(X,Y){let{render:W,className:K,forceRender:U=!1,...q}=X,{store:H}=pw(),L=H.useState("open"),N=H.useState("nested"),F=H.useState("mounted"),V=H.useState("transitionStatus"),k=uG.useMemo(()=>({open:L,transitionStatus:V}),[L,V]);return h0("div",X,{state:k,ref:[H.context.backdropRef,Y],stateAttributesMapping:oS,props:[{role:"presentation",hidden:!F,style:{userSelect:"none",WebkitUserSelect:"none"}},q],enabled:U||!N})});qq.displayName="DialogBackdrop";var pG=p(G0(),1);var Bq=pG.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,nativeButton:q=!0,...H}=X,{store:L}=pw(),N=L.useState("open");function F(O){if(N)L.setOpen(!1,P0(B0.closePress,O.nativeEvent))}let{getButtonProps:V,buttonRef:k}=J5({disabled:U,native:q}),j=pG.useMemo(()=>({disabled:U}),[U]);return h0("button",X,{state:j,ref:[Y,k],props:[{onClick:F},H,V]})});Bq.displayName="DialogClose";var nO=p(G0(),1);var Lq=nO.forwardRef(function(X,Y){let{render:W,className:K,id:U,...q}=X,{store:H}=pw(),L=ww(U);return H.useSyncedValueWithCleanup("descriptionElementId",L),h0("p",X,{ref:Y,props:[{id:L},q]})});Lq.displayName="DialogDescription";var rG=p(G0(),1);var tO=function(J){return J.nestedDialogs="--nested-dialogs",J}({});var eO=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 cG=p(G0(),1),lG=cG.createContext(void 0);lG.displayName="DialogPortalContext";function iG(){let J=cG.useContext(lG);if(J===void 0)throw Error("Base UI: <Dialog.Portal> is missing.");return J}var wD=p(x1(),1),nS={...Ew,...P2,nestedDialogOpen(J){return J?{[eO.nestedDialogOpen]:""}:null}},Vq=rG.forwardRef(function(X,Y){let{className:W,finalFocus:K,initialFocus:U,render:q,...H}=X,{store:L}=pw(),N=L.useState("descriptionElementId"),F=L.useState("disablePointerDismissal"),V=L.useState("floatingRootContext"),k=L.useState("popupProps"),j=L.useState("modal"),O=L.useState("mounted"),M=L.useState("nested"),h=L.useState("nestedOpenDialogCount"),x=L.useState("open"),E=L.useState("openMethod"),I=L.useState("titleElementId"),C=L.useState("transitionStatus"),v=L.useState("role");iG(),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=h>0,c=rG.useMemo(()=>({open:x,nested:M,transitionStatus:C,nestedDialogOpen:S}),[x,M,C,S]),d=h0("div",X,{state:c,props:[k,{"aria-labelledby":I??void 0,"aria-describedby":N??void 0,role:v,tabIndex:-1,hidden:!O,onKeyDown(w0){if(LG.has(w0.key))w0.stopPropagation()},style:{[tO.nestedDialogs]:h}},H],ref:[Y,L.context.popupRef,L.useStateSetter("popupElement")],stateAttributesMapping:nS});return wD.jsx(OX,{context:V,openInteractionType:E,disabled:!O,closeOnFocusOut:!F,initialFocus:R,returnFocus:K,modal:j!==!1,restoreFocus:"popup",children:d})});Vq.displayName="DialogPopup";var JD=p(G0(),1);function sz(J){if(jz(19))return J;return J?"true":void 0}var zD=p(G0(),1),ZD=p(x1(),1),bX=zD.forwardRef(function(X,Y){let{cutout:W,...K}=X,U;if(W){let q=W?.getBoundingClientRect();U=`polygon(
|
|
252
|
+
0% 0%,
|
|
253
|
+
100% 0%,
|
|
254
|
+
100% 100%,
|
|
255
|
+
0% 100%,
|
|
256
|
+
0% 0%,
|
|
257
|
+
${q.left}px ${q.top}px,
|
|
258
|
+
${q.left}px ${q.bottom}px,
|
|
259
|
+
${q.right}px ${q.bottom}px,
|
|
260
|
+
${q.right}px ${q.top}px,
|
|
261
|
+
${q.left}px ${q.top}px
|
|
262
|
+
)`}return ZD.jsx("div",{ref:Y,role:"presentation","data-base-ui-inert":"",...K,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:U}})});bX.displayName="InternalBackdrop";var yX=p(x1(),1),Fq=JD.forwardRef(function(X,Y){let{keepMounted:W=!1,...K}=X,{store:U}=pw(),q=U.useState("mounted"),H=U.useState("modal");if(!(q||W))return null;return yX.jsx(lG.Provider,{value:W,children:yX.jsxs(Rz,{ref:Y,...K,children:[q&&H===!0&&yX.jsx(bX,{ref:U.context.internalBackdropRef,inert:sz(!open)}),X.children]})})});Fq.displayName="DialogPortal";var XD=p(G0(),1);var Nq=XD.forwardRef(function(X,Y){let{render:W,className:K,id:U,...q}=X,{store:H}=pw(),L=ww(U);return H.useSyncedValueWithCleanup("titleElementId",L),h0("h2",X,{ref:Y,props:[{id:L},q]})});Nq.displayName="DialogTitle";var oz=p(G0(),1);var kq=oz.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,nativeButton:q=!0,id:H,payload:L,handle:N,...F}=X,V=pw(!0),k=N?.store??V?.store;if(!k)throw Error("Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");let j=ww(H),O=k.useState("floatingRootContext"),M=k.useState("isOpenedByTrigger",j),h=oz.useRef(null),{registerTrigger:x,isMountedByThisTrigger:E}=dz(j,h,k,{payload:L}),{getButtonProps:I,buttonRef:C}=J5({disabled:U,native:q}),v=n7(O,{enabled:O!=null}),m=Y5([v]),R=oz.useMemo(()=>({disabled:U,open:M}),[U,M]),S=k.useState("triggerProps",E);return h0("button",X,{state:R,ref:[C,Y,x,h],props:[m.getReferenceProps(),S,{[dY]:"",id:j},F,I],stateAttributesMapping:az})});kq.displayName="DialogTrigger";var aG=p(G0(),1);var jq=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 tS={...Ew,...P2,nested(J){return J?{[jq.nested]:""}:null},nestedDialogOpen(J){return J?{[jq.nestedDialogOpen]:""}:null}},Aq=aG.forwardRef(function(X,Y){let{className:W,render:K,children:U,...q}=X,H=iG(),{store:L}=pw(),N=L.useState("open"),F=L.useState("nested"),V=L.useState("transitionStatus"),k=L.useState("nestedOpenDialogCount"),j=L.useState("mounted"),O=k>0,M=aG.useMemo(()=>({open:N,nested:F,transitionStatus:V,nestedDialogOpen:O}),[N,F,V,O]);return h0("div",X,{enabled:H||j,state:M,ref:[Y,L.useStateSetter("viewportElement")],stateAttributesMapping:tS,props:[{role:"presentation",hidden:!j,children:U},q]})});Aq.displayName="DialogViewport";class sG{constructor(J){this.store=J??new CX}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 $D(){return new sG}function YD(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,q=parseFloat(Y.height)||0,H=parseFloat(W.width)||0,L=parseFloat(W.height)||0,N=Math.max(X.width,U,H),F=Math.max(X.height,q,L),V=N-X.width,k=F-X.height;return{left:X.left-V/2,right:X.right+V/2,top:X.top-k/2,bottom:X.bottom+k/2}}var Q5=p(G0(),1);var eS=(J)=>({name:"arrow",options:J,async fn(X){let{x:Y,y:W,placement:K,rects:U,platform:q,elements:H,middlewareData:L}=X,{element:N,padding:F=0,offsetParent:V="real"}=z8(J,X)||{};if(N==null)return{};let k=WG(F),j={x:Y,y:W},O=BX(K),M=qX(O),h=await q.getDimensions(N),x=O==="y",E=x?"top":"left",I=x?"bottom":"right",C=x?"clientHeight":"clientWidth",v=U.reference[M]+U.reference[O]-j[O]-U.floating[M],m=j[O]-U.reference[O],R=V==="real"?await q.getOffsetParent?.(N):H.floating,S=H.floating[C]||U.floating[M];if(!S||!await q.isElement?.(R))S=H.floating[C]||U.floating[M];let c=v/2-m/2,d=S/2-h[M]/2-1,w0=Math.min(k[E],d),t=Math.min(k[I],d),u=w0,Q0=S-h[M]-t,r=S/2-h[M]/2+c,e=HX(u,r,Q0),o=!L.arrow&&Z8(K)!=null&&r!==e&&U.reference[M]/2-(r<u?w0:t)-h[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}}}),GD=(J,X)=>({...eS(J),options:[J,X]});var QD={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 zq().fn(J)).data?.referenceHidden||U}}}};var RX={sideX:"left",sideY:"top"},WD={name:"adaptiveOrigin",async fn(J){let{x:X,y:Y,rects:{floating:W},elements:{floating:K},platform:U,strategy:q,placement:H}=J,L=u1(K),N=L.getComputedStyle(K);if(!(N.transitionDuration!=="0s"&&N.transitionDuration!==""))return{x:X,y:Y,data:RX};let V=await U.getOffsetParent?.(K),k={width:0,height:0};if(q==="fixed"&&L?.visualViewport)k={width:L.visualViewport.width,height:L.visualViewport.height};else if(V===L){let E=Tw(K);k={width:E.documentElement.clientWidth,height:E.documentElement.clientHeight}}else if(await U.isElement?.(V))k=await U.getDimensions(V);let j=nw(H),O=X,M=Y;if(j==="left")O=k.width-(X+W.width);if(j==="top")M=k.height-(Y+W.height);let h=j==="left"?"right":RX.sideX,x=j==="top"?"bottom":RX.sideY;return{x:O,y:M,data:{sideX:h,sideY:x}}}};function _D(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 KD(J,X,Y){let{rects:W,placement:K}=J;return{side:_D(X,nw(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 oG(J){let{anchor:X,positionMethod:Y="absolute",side:W="bottom",sideOffset:K=0,align:U="center",alignOffset:q=0,collisionBoundary:H,collisionPadding:L=5,sticky:N=!1,arrowPadding:F=5,disableAnchorTracking:V=!1,keepMounted:k=!1,floatingRootContext:j,mounted:O,collisionAvoidance:M,shiftCrossAxis:h=!1,nodeId:x,adaptiveOrigin:E,lazyFlip:I=!1,externalTree:C}=J,[v,m]=Q5.useState(null);if(!O&&v!==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=Kw(X),r=O5()==="rtl",e=v||{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:H==="clipping-ancestors"?"clippingAncestors":H,padding:g},S0=Q5.useRef(null),V0=Kw(K),_0=Kw(q),n0=[oH((s)=>{let K0=KD(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 q!=="function"?q:0,r,W])],n=S==="none"&&R!=="shift",R0=!n&&(N||h||R==="shift"),I0=R==="none"?null:eH({...L0,padding:{top:g.top+X0,right:g.right+X0,bottom:g.bottom+X0,left:g.left+X0},mainAxis:!h&&R==="flip",crossAxis:S==="flip"?"alignment":!1,fallbackAxisSideDirection:c}),A1=n?null:nH((s)=>{let K0=Tw(s.elements.floating).documentElement;return{...L0,rootBoundary:h?{x:0,y:0,width:K0.clientWidth,height:K0.clientHeight}:void 0,mainAxis:S!=="none",crossAxis:R0,limiter:N||h?void 0:tH((N0)=>{if(!S0.current)return{};let{width:T0,height:a0}=S0.current.getBoundingClientRect(),u0=I2(nw(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,N,h,g,S]);if(R==="shift"||S==="shift"||U==="center")n0.push(A1,I0);else n0.push(I0,A1);n0.push(wq({...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)})}}),GD(()=>({element:S0.current||document.createElement("div"),padding:F,offsetParent:"floating"}),[F]),{name:"transformOrigin",fn(s){let{elements:K0,middlewareData:N0,placement:T0,rects:a0,y:u0}=s,$1=nw(T0),d0=I2($1),vw=S0.current,Q2=N0.arrow?.x||0,K8=N0.arrow?.y||0,s4=vw?.clientWidth||0,W$=vw?.clientHeight||0,d6=Q2+s4/2,o4=K8+W$/2,f5=Math.abs(N0.shift?.y||0),j2=a0.reference.height/2,u6=typeof K==="function"?K(KD(s,W,r)):K,HW=f5>u6,NZ={top:`${d6}px calc(100% + ${u6}px)`,bottom:`${d6}px ${-u6}px`,left:`calc(100% + ${u6}px) ${o4}px`,right:`${-u6}px ${o4}px`}[$1],K$=`${d6}px ${a0.reference.y+j2-u0}px`;return K0.floating.style.setProperty("--transform-origin",R0&&d0==="y"&&HW?K$:NZ),{}}},QD,E),k0(()=>{if(!O&&j)j.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[O,j]);let C0=Q5.useMemo(()=>({elementResize:!V&&typeof ResizeObserver<"u",layoutShift:!V&&typeof IntersectionObserver<"u"}),[V]),{refs:H0,elements:O0,x:j0,y:c0,middlewareData:b0,update:v0,placement:o0,context:x0,isPositioned:l0,floatingStyles:y0}=Gq({rootContext:j,placement:o,middleware:n0,strategy:Y,whileElementsMounted:k?void 0:(...s)=>TX(...s,C0),nodeId:x,externalTree:C}),{sideX:q1,sideY:D1}=b0.adaptiveOrigin||RX,W1=l0?Y:"fixed",Gw=Q5.useMemo(()=>E?{position:W1,[q1]:j0,[D1]:c0}:{position:W1,...y0},[E,W1,q1,j0,D1,c0,y0]),zw=Q5.useRef(null);k0(()=>{if(!O)return;let s=u.current,K0=typeof s==="function"?s():s,T0=(UD(K0)?K0.current:K0)||null||null;if(T0!==zw.current)H0.setPositionReference(T0),zw.current=T0},[O,H0,t,u]),Q5.useEffect(()=>{if(!O)return;let s=u.current;if(typeof s==="function")return;if(UD(s)&&s.current!==zw.current)H0.setPositionReference(s.current),zw.current=s.current},[O,H0,t,u]),Q5.useEffect(()=>{if(k&&O&&O0.domReference&&O0.floating)return TX(O0.domReference,O0.floating,v0,C0);return},[k,O,O0,v0,C0]);let Lw=nw(o0),Uw=_D(W,Lw,r),hw=Z8(o0)||"center",J1=Boolean(b0.hide?.referenceHidden);k0(()=>{if(I&&O&&l0)m(Lw)},[I,O,l0,Lw]);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:Gw,arrowStyles:N1,arrowRef:S0,arrowUncentered:T,side:Uw,align:hw,physicalSide:Lw,anchorHidden:J1,refs:H0,context:x0,isPositioned:l0,update:v0}),[Gw,N1,S0,T,Uw,hw,Lw,J1,H0,x0,l0,v0])}function UD(J){return J!=null&&"current"in J}function nz(J){return J==="starting"?iA:E1}var nG=p(G0(),1);var gX=nG.forwardRef(function(X,Y){let{className:W,render:K,orientation:U="horizontal",...q}=X,H=nG.useMemo(()=>({orientation:U}),[U]);return h0("div",X,{state:H,ref:Y,props:[{role:"separator","aria-orientation":U},q]})});gX.displayName="Separator";var tG=p(G0(),1);var eG=tG.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,focusableWhenDisabled:q=!1,nativeButton:H=!0,...L}=X,N=Boolean(U),{getButtonProps:F,buttonRef:V}=J5({disabled:N,focusableWhenDisabled:q,native:H}),k=tG.useMemo(()=>({disabled:N}),[N]);return h0("button",X,{state:k,ref:[Y,V],props:[L,F]})});eG.displayName="Button";var C6={};qz(C6,{Trigger:()=>hq,SubmenuTrigger:()=>w$,SubmenuRoot:()=>xQ,Separator:()=>gX,Root:()=>CD,RadioItemIndicator:()=>nX,RadioItem:()=>oX,RadioGroup:()=>sX,Positioner:()=>aX,Portal:()=>rX,Popup:()=>iX,Item:()=>lX,GroupLabel:()=>cX,Group:()=>pX,CheckboxItemIndicator:()=>uX,CheckboxItem:()=>dX,Backdrop:()=>mX,Arrow:()=>fX});var G8=p(G0(),1);var wQ=p(G0(),1),zQ=wQ.createContext(void 0);zQ.displayName="ContextMenuRootContext";function y5(J=!0){let X=wQ.useContext(zQ);if(X===void 0&&!J)throw Error("Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.");return X}var CQ={};qz(CQ,{createHandle:()=>ID,Trigger:()=>Eq,SubmenuTrigger:()=>w$,SubmenuRoot:()=>xQ,Separator:()=>gX,Root:()=>TQ,RadioItemIndicator:()=>nX,RadioItem:()=>oX,RadioGroup:()=>sX,Positioner:()=>aX,Portal:()=>rX,Popup:()=>iX,Item:()=>lX,Handle:()=>IQ,GroupLabel:()=>cX,Group:()=>pX,CheckboxItemIndicator:()=>uX,CheckboxItem:()=>dX,Backdrop:()=>mX,Arrow:()=>fX});var $Q=p(G0(),1);var ZQ=p(G0(),1),JQ=ZQ.createContext(void 0);JQ.displayName="MenuPositionerContext";function R5(J){let X=ZQ.useContext(JQ);if(X===void 0&&!J)throw Error("Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.");return X}var XQ=p(G0(),1),tz=XQ.createContext(void 0);tz.displayName="MenuRootContext";function p1(J){let X=XQ.useContext(tz);if(X===void 0&&!J)throw Error("Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.");return X}var fX=$Q.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,{store:q}=p1(),{arrowRef:H,side:L,align:N,arrowUncentered:F,arrowStyles:V}=R5(),k=q.useState("open"),j=$Q.useMemo(()=>({open:k,side:L,align:N,uncentered:F}),[k,L,N,F]);return h0("div",X,{ref:[H,Y],stateAttributesMapping:Ew,state:j,props:{style:V,"aria-hidden":!0,...U}})});fX.displayName="MenuArrow";var YQ=p(G0(),1);var wb={...Ew,...P2},mX=YQ.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,{store:q}=p1(),H=q.useState("open"),L=q.useState("mounted"),N=q.useState("transitionStatus"),F=q.useState("lastOpenChangeReason"),V=y5(),k=YQ.useMemo(()=>({open:H,transitionStatus:N}),[H,N]);return h0("div",X,{ref:V?.backdropRef?[Y,V.backdropRef]:Y,state:k,stateAttributesMapping:wb,props:[{role:"presentation",hidden:!L,style:{pointerEvents:F===B0.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},U]})});mX.displayName="MenuBackdrop";var WQ=p(G0(),1);var GQ=p(G0(),1),QQ=GQ.createContext(void 0);QQ.displayName="MenuCheckboxItemContext";function HD(){let J=GQ.useContext(QQ);if(J===void 0)throw Error("Base UI: MenuCheckboxItemContext is missing. MenuCheckboxItem parts must be placed within <Menu.CheckboxItem>.");return J}var ez=p(G0(),1);var wZ={type:"regular-item"};function m4(J){let{closeOnClick:X,disabled:Y=!1,highlighted:W,id:K,store:U,nativeButton:q,itemMetadata:H,nodeId:L}=J,N=ez.useRef(null),F=y5(!0),V=F!==void 0,{events:k}=U.useState("floatingTreeRoot"),{getButtonProps:j,buttonRef:O}=J5({disabled:Y,focusableWhenDisabled:!0,native:q}),M=ez.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(H.type!=="submenu-trigger")return;H.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(F){let I=F.initialCursorPointRef.current;if(F.initialCursorPointRef.current=null,V&&I&&Math.abs(E.clientX-I.x)<=1&&Math.abs(E.clientY-I.y)<=1)return}if(N.current&&U.context.allowMouseUpTriggerRef.current&&(!V||E.button===2)){if(H.type==="regular-item")N.current.click()}}},x,j)},[K,W,j,X,k,U,V,F,H,L]),h=D5(N,O);return ez.useMemo(()=>({getItemProps:M,itemRef:h}),[M,h])}var Mq=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{[Mq.checked]:""};return{[Mq.unchecked]:""}},...P2};var qD=p(x1(),1),dX=WQ.forwardRef(function(X,Y){let{render:W,className:K,id:U,label:q,nativeButton:H=!1,disabled:L=!1,closeOnClick:N=!1,checked:F,defaultChecked:V,onCheckedChange:k,...j}=X,O=h5({label:q}),M=R5(!0),h=ww(U),{store:x}=p1(),E=x.useState("isActive",O.index),I=x.useState("itemProps"),[C,v]=Nz({controlled:F,default:V??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:m,itemRef:R}=m4({closeOnClick:N,disabled:L,highlighted:E,id:h,store:x,nativeButton:H,nodeId:M?.nodeId,itemMetadata:wZ}),S=WQ.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;v((u)=>!u)}),d=h0("div",X,{state:S,stateAttributesMapping:d4,props:[I,{role:"menuitemcheckbox","aria-checked":C,onClick:c},j,m],ref:[R,Y,O.ref]});return qD.jsx(QQ.Provider,{value:S,children:d})});dX.displayName="MenuCheckboxItem";var zZ=p(G0(),1);var uX=zZ.forwardRef(function(X,Y){let{render:W,className:K,keepMounted:U=!1,...q}=X,H=HD(),L=zZ.useRef(null),{transitionStatus:N,setMounted:F}=Oz(H.checked);I5({open:H.checked,ref:L,onComplete(){if(!H.checked)F(!1)}});let V=zZ.useMemo(()=>({checked:H.checked,disabled:H.disabled,highlighted:H.highlighted,transitionStatus:N}),[H.checked,H.disabled,H.highlighted,N]);return h0("span",X,{state:V,ref:[Y,L],stateAttributesMapping:d4,props:{"aria-hidden":!0,...q},enabled:U||H.checked})});uX.displayName="MenuCheckboxItemIndicator";var ZZ=p(G0(),1);var KQ=p(G0(),1),UQ=KQ.createContext(void 0);UQ.displayName="MenuGroupContext";function BD(){let J=KQ.useContext(UQ);if(J===void 0)throw Error("Base UI: MenuGroupRootContext is missing. Menu group parts must be used within <Menu.Group>.");return J}var LD=p(x1(),1),pX=ZZ.forwardRef(function(X,Y){let{render:W,className:K,...U}=X,[q,H]=ZZ.useState(void 0),L=ZZ.useMemo(()=>({setLabelId:H}),[H]),N=h0("div",X,{ref:Y,props:{role:"group","aria-labelledby":q,...U}});return LD.jsx(UQ.Provider,{value:L,children:N})});pX.displayName="MenuGroup";var VD=p(G0(),1);var cX=VD.forwardRef(function(X,Y){let{className:W,render:K,id:U,...q}=X,H=ww(U),{setLabelId:L}=BD();return k0(()=>{return L(H),()=>{L(void 0)}},[L,H]),h0("div",X,{ref:Y,props:{id:H,role:"presentation",...q}})});cX.displayName="MenuGroupLabel";var _Q=p(G0(),1);var lX=_Q.forwardRef(function(X,Y){let{render:W,className:K,id:U,label:q,nativeButton:H=!1,disabled:L=!1,closeOnClick:N=!0,...F}=X,V=h5({label:q}),k=R5(!0),j=ww(U),{store:O}=p1(),M=O.useState("isActive",V.index),h=O.useState("itemProps"),{getItemProps:x,itemRef:E}=m4({closeOnClick:N,disabled:L,highlighted:M,id:j,store:O,nativeButton:H,nodeId:k?.nodeId,itemMetadata:wZ}),I=_Q.useMemo(()=>({disabled:L,highlighted:M}),[L,M]);return h0("div",X,{state:I,props:[h,F,x],ref:[E,Y,V.ref]})});lX.displayName="MenuItem";var JZ=p(G0(),1);var HQ=p(G0(),1),FD=HQ.createContext(void 0);FD.displayName="ToolbarRootContext";function ND(J){let X=HQ.useContext(FD);if(X===void 0&&!J)throw Error("Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.");return X}var kD=p(x1(),1),zb={...Ew,...P2},iX=JZ.forwardRef(function(X,Y){let{render:W,className:K,finalFocus:U,...q}=X,{store:H}=p1(),{side:L,align:N}=R5(),F=ND(!0)!=null,V=H.useState("open"),k=H.useState("transitionStatus"),j=H.useState("popupProps"),O=H.useState("mounted"),M=H.useState("instantType"),h=H.useState("activeTriggerElement"),x=H.useState("parent"),E=H.useState("lastOpenChangeReason"),I=H.useState("rootId"),C=H.useState("floatingRootContext"),v=H.useState("floatingTreeRoot"),m=H.useState("closeDelay"),R=H.useState("activeTriggerElement");I5({open:V,ref:H.context.popupRef,onComplete(){if(V)H.context.onOpenChangeComplete?.(!0)}}),JZ.useEffect(()=>{function u(Q0){H.setOpen(!1,P0(Q0.reason,Q0.domEvent))}return v.events.on("close",u),()=>{v.events.off("close",u)}},[v.events,H]);let S=H.useState("hoverEnabled"),c=H.useState("disabled");vX(C,{enabled:S&&!c&&x.type!=="context-menu"&&x.type!=="menubar",closeDelay:m});let d=JZ.useMemo(()=>({transitionStatus:k,side:L,align:N,open:V,nested:x.type==="menu",instant:M}),[k,L,N,V,x.type,M]),w0=h0("div",X,{state:d,ref:[Y,H.context.popupRef],stateAttributesMapping:zb,props:[j,{onKeyDown(u){if(F&&LG.has(u.key))u.stopPropagation()}},nz(k),q,{"data-rootownerid":I}]}),t=x.type===void 0||x.type==="context-menu";if(h||x.type==="menubar"&&E!==B0.outsidePress)t=!0;return kD.jsx(OX,{context:C,modal:!1,disabled:!O,returnFocus:U===void 0?t:U,initialFocus:x.type!=="menu",restoreFocus:!0,externalTree:x.type!=="menubar"?v:void 0,previousFocusableElement:R,nextFocusableElement:x.type===void 0?H.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:x.type===void 0?H.context.beforeContentFocusGuardRef:void 0,children:w0})});iX.displayName="MenuPopup";var AD=p(G0(),1);var qQ=p(G0(),1),BQ=qQ.createContext(void 0);BQ.displayName="MenuPortalContext";function jD(){let J=qQ.useContext(BQ);if(J===void 0)throw Error("Base UI: <Menu.Portal> is missing.");return J}var Oq=p(x1(),1),rX=AD.forwardRef(function(X,Y){let{keepMounted:W=!1,...K}=X,{store:U}=p1();if(!(U.useState("mounted")||W))return null;return Oq.jsx(BQ.Provider,{value:W,children:Oq.jsx(Rz,{ref:Y,...K})})});rX.displayName="MenuPortal";var Y8=p(G0(),1);var XZ=p(x1(),1),aX=Y8.forwardRef(function(X,Y){let{anchor:W,positionMethod:K="absolute",className:U,render:q,side:H,align:L,sideOffset:N=0,alignOffset:F=0,collisionBoundary:V="clipping-ancestors",collisionPadding:k=5,arrowPadding:j=5,sticky:O=!1,disableAnchorTracking:M=!1,collisionAvoidance:h=rA,...x}=X,{store:E}=p1(),I=jD(),C=y5(!0),v=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=N,o=F,g=L,X0=h;if(v.type==="context-menu"){if(r=W??v.context?.anchor,g=g??"start",!H&&g!=="center")o=X.alignOffset??2,e=X.sideOffset??-5}let P=H,z0=g;if(v.type==="menu")P=P??"inline-end",z0=z0??"start",X0=X.collisionAvoidance??uY;else if(v.type==="menubar")P=P??"bottom",z0=z0??"start";let U0=v.type==="context-menu",J0=oG({anchor:r,floatingRootContext:m,positionMethod:C?"fixed":K,mounted:S,side:P,sideOffset:e,align:z0,alignOffset:o,arrowPadding:U0?0:j,collisionBoundary:V,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:v.type==="menu"}),[c,J0.side,J0.align,J0.anchorHidden,v.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=h0("div",X,{state:S0,stateAttributesMapping:Ew,ref:[Y,E.useStateSetter("positionerElement")],props:[L0,x]}),A0=S&&v.type!=="menu"&&(v.type!=="menubar"&&d&&t!==B0.triggerHover||v.type==="menubar"&&v.context.modal),r0=null;if(v.type==="menubar")r0=v.context.contentElement;else if(v.type===void 0)r0=w0;return XZ.jsxs(JQ.Provider,{value:V0,children:[A0&&XZ.jsx(bX,{ref:v.type==="context-menu"||v.type==="nested-context-menu"?v.context.internalBackdropRef:null,inert:sz(!c),cutout:r0}),XZ.jsx(SH,{id:u,children:XZ.jsx(kz,{elementsRef:E.context.itemDomElements,labelsRef:E.context.itemLabels,children:_0})})]})});aX.displayName="MenuPositioner";var Y9=p(G0(),1);var LQ=p(G0(),1),VQ=LQ.createContext(void 0);VQ.displayName="MenuRadioGroupContext";function MD(){let J=LQ.useContext(VQ);if(J===void 0)throw Error("Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>.");return J}var OD=p(x1(),1),sX=Y9.memo(Y9.forwardRef(function(X,Y){let{render:W,className:K,value:U,defaultValue:q,onValueChange:H,disabled:L=!1,...N}=X,[F,V]=Nz({controlled:U,default:q,name:"MenuRadioGroup"}),k=F0(H),j=F0((x,E)=>{if(k?.(x,E),E.isCanceled)return;V(x)}),O=Y9.useMemo(()=>({disabled:L}),[L]),M=h0("div",X,{state:O,ref:Y,props:{role:"group","aria-disabled":L||void 0,...N}}),h=Y9.useMemo(()=>({value:F,setValue:j,disabled:L}),[F,j,L]);return OD.jsx(VQ.Provider,{value:h,children:M})}));sX.displayName="MenuRadioGroup";var kQ=p(G0(),1);var FQ=p(G0(),1),NQ=FQ.createContext(void 0);NQ.displayName="MenuRadioItemContext";function DD(){let J=FQ.useContext(NQ);if(J===void 0)throw Error("Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>.");return J}var TD=p(x1(),1),oX=kQ.forwardRef(function(X,Y){let{render:W,className:K,id:U,label:q,nativeButton:H=!1,disabled:L=!1,closeOnClick:N=!1,value:F,...V}=X,k=h5({label:q}),j=R5(!0),O=ww(U),{store:M}=p1(),h=M.useState("isActive",k.index),x=M.useState("itemProps"),{value:E,setValue:I,disabled:C}=MD(),v=C||L,m=E===F,{getItemProps:R,itemRef:S}=m4({closeOnClick:N,disabled:v,highlighted:h,id:O,store:M,nativeButton:H,nodeId:j?.nodeId,itemMetadata:wZ}),c=kQ.useMemo(()=>({disabled:v,highlighted:h,checked:m}),[v,h,m]),d=F0((t)=>{let u={...P0(B0.itemPress,t.nativeEvent),preventUnmountOnClose:()=>{}};I(F,u)}),w0=h0("div",X,{state:c,stateAttributesMapping:d4,props:[x,{role:"menuitemradio","aria-checked":m,onClick:d},V,R],ref:[S,Y,k.ref]});return TD.jsx(NQ.Provider,{value:c,children:w0})});oX.displayName="MenuRadioItem";var $Z=p(G0(),1);var nX=$Z.forwardRef(function(X,Y){let{render:W,className:K,keepMounted:U=!1,...q}=X,H=DD(),L=$Z.useRef(null),{transitionStatus:N,setMounted:F}=Oz(H.checked);I5({open:H.checked,ref:L,onComplete(){if(!H.checked)F(!1)}});let V=$Z.useMemo(()=>({checked:H.checked,disabled:H.disabled,highlighted:H.highlighted,transitionStatus:N}),[H.checked,H.disabled,H.highlighted,N]);return h0("span",X,{state:V,stateAttributesMapping:d4,ref:[Y,L],props:{"aria-hidden":!0,...q},enabled:U||H.checked})});nX.displayName="MenuRadioItemIndicator";var Yw=p(G0(),1),ED=p(m8(),1);var jQ=p(G0(),1),xD=jQ.createContext(null);xD.displayName="MenubarContext";function AQ(J){let X=jQ.useContext(xD);if(X===null&&!J)throw Error("Base UI: MenubarContext is missing. Menubar parts must be placed within <Menubar>.");return X}var tX=p(G0(),1);var Zb={...lz,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 YZ extends P6{constructor(J){super({...Jb(),...J},{positionerRef:tX.createRef(),popupRef:tX.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:tX.createRef(),beforeContentFocusGuardRef:tX.createRef(),onOpenChangeComplete:void 0,triggerElements:new X8},Zb);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 YZ(X)}).current}unsubscribeParentListener=null}function Jb(){return{...cz(),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 s7,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:E1,keyboardEventRelay:void 0,closeDelay:0}}var MQ=p(G0(),1),OQ=MQ.createContext(void 0);OQ.displayName="MenuSubmenuRootContext";function DQ(){return MQ.useContext(OQ)}var Dq=p(x1(),1);function TQ(J){let{children:X,open:Y,onOpenChange:W,onOpenChangeComplete:K,defaultOpen:U=!1,disabled:q=!1,modal:H,loopFocus:L=!0,orientation:N="vertical",actionsRef:F,closeParentOnEsc:V=!1,handle:k,triggerId:j,defaultTriggerId:O=null,highlightItemOnHover:M=!0}=J,h=y5(!0),x=p1(!0),E=AQ(!0),I=DQ(),C=Yw.useMemo(()=>{if(I&&x)return{type:"menu",store:x.store};if(E)return{type:"menubar",context:E};if(h&&!x)return{type:"context-menu",context:h};return{type:void 0}},[h,x,E,I]),v=YZ.useStore(k?.store,{parent:C}),m=v.useState("floatingTreeRoot"),R=AX(m),S=tw();k0(()=>{if(h&&!x)v.update({parent:{type:"context-menu",context:h},floatingNodeId:R,floatingParentNodeId:S});else if(x)v.update({floatingNodeId:R,floatingParentNodeId:S})},[h,x,R,S,v]),v.useControlledProp("open",Y,U),v.useControlledProp("activeTriggerId",j,O),v.useContextCallback("onOpenChangeComplete",K);let c=v.useState("open"),d=v.useState("activeTriggerElement"),w0=v.useState("positionerElement"),t=v.useState("hoverEnabled"),u=v.useState("modal"),Q0=v.useState("disabled"),r=v.useState("lastOpenChangeReason"),e=v.useState("parent"),o=v.useState("activeIndex"),g=v.useState("payload"),X0=v.useState("floatingParentNodeId"),P=Yw.useRef(null),z0=X0!=null,U0;if(e.type!==void 0&&H!==void 0)console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");v.useSyncedValues({disabled:q,modal:e.type===void 0?H:void 0,rootId:J2()});let{openMethod:J0,triggerProps:L0,reset:S0}=gG(c);uz(v);let{forceUnmount:V0}=pz(c,v,()=>{v.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]),VG(c&&u&&r!==B0.triggerHover&&J0!=="touch",w0),k0(()=>{if(!c&&!t)v.set("hoverEnabled",!0)},[c,t,v]);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=()=>{v.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=v.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;v.update(u0)}if(T===B0.triggerHover)ED.flushSync(a0);else a0();if(e.type==="menubar"&&(T===B0.triggerFocus||T===B0.focusOut||T===B0.triggerHover||T===B0.listNavigation||T===B0.siblingOpen))v.set("instantType","group");else if(N0||T0)v.set("instantType",N0?"click":"dismiss");else v.set("instantType",void 0)}),R0=Yw.useCallback((J1)=>{let N1=P0(J1);return N1.preventUnmountOnClose=()=>{v.set("preventUnmountingOnClose",!0)},N1},[v]),I0=Yw.useCallback(()=>{v.setOpen(!1,R0(B0.imperativeAction))},[v,R0]);Yw.useImperativeHandle(F,()=>({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=z9({popupStore:v,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 H0=e7(C0,{enabled:!Q0,bubbles:V&&e.type==="menu",outsidePress(){if(e.type!=="context-menu"||P.current?.type==="contextmenu")return!0;return _0.current},externalTree:z0?m:void 0}),O0=PX(C0,{role:"menu"}),j0=O5(),c0=Yw.useCallback((J1)=>{if(v.select("activeIndex")===J1)return;v.set("activeIndex",J1)},[v]),b0=Uq(C0,{enabled:!Q0,listRef:v.context.itemDomElements,activeIndex:o,nested:e.type!==void 0,loopFocus:L,orientation:N,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}),v0=Yw.useCallback((J1)=>{v.context.typingRef.current=J1},[v]),o0=_q(C0,{listRef:v.context.itemLabels,activeIndex:o,resetMs:cA,onMatch:(J1)=>{if(c&&J1!==o)v.set("activeIndex",J1)},onTypingChange:v0}),{getReferenceProps:x0,getFloatingProps:l0,getItemProps:y0,getTriggerProps:q1}=Y5([H0,O0,b0,o0]),D1=Yw.useMemo(()=>{let J1=T5(x0(),{onMouseEnter(){v.set("hoverEnabled",!0)},onMouseMove(){v.set("allowMouseEnter",!0)}},L0);return delete J1.role,J1},[x0,v,L0]),W1=Yw.useMemo(()=>{let J1=q1();if(!J1)return J1;let N1=T5(J1,L0);return delete N1.role,delete N1["aria-controls"],N1},[q1,L0]),Gw=E5(),zw=Yw.useMemo(()=>l0({onMouseEnter(){if(e.type==="menu")Gw.request(()=>v.set("hoverEnabled",!1))},onMouseMove(){v.set("allowMouseEnter",!0)},onClick(){if(v.select("hoverEnabled"))v.set("hoverEnabled",!1)},onKeyDown(J1){let N1=v.select("keyboardEventRelay");if(N1&&!J1.isPropagationStopped())N1(J1)}}),[l0,e.type,Gw,v]),Lw=Yw.useMemo(()=>y0(),[y0]);v.useSyncedValues({floatingRootContext:C0,activeTriggerProps:D1,inactiveTriggerProps:W1,popupProps:zw,itemProps:Lw});let Uw=Yw.useMemo(()=>({store:v,parent:C}),[v,C]),hw=Dq.jsx(tz.Provider,{value:Uw,children:typeof X==="function"?X({payload:g}):X});if(e.type===void 0||e.type==="context-menu")return Dq.jsx(bH,{externalTree:m,children:hw});return hw}var hD=p(G0(),1);var Tq=p(x1(),1);function xQ(J){let X=p1().store,Y=hD.useMemo(()=>({parentMenu:X}),[X]);return Tq.jsx(OQ.Provider,{value:Y,children:Tq.jsx(TQ,{...J})})}var bw=p(G0(),1),xq=p(m8(),1);var EQ=p(G0(),1);function hQ(J={}){let{highlightItemOnHover:X,highlightedIndex:Y,onHighlightedIndexChange:W}=Tz(),{ref:K,index:U}=h5(J),q=Y===U,H=EQ.useRef(null),L=D5(K,H);return{compositeProps:EQ.useMemo(()=>({tabIndex:q?0:-1,onFocus(){W(U)},onMouseMove(){let F=H.current;if(!X||!F)return;let V=F.hasAttribute("disabled")||F.ariaDisabled==="true";if(!q&&!V)F.focus()}}),[q,W,U,X]),compositeRef:L,index:U}}function vD(J){let{render:X,className:Y,state:W=E1,props:K=e2,refs:U=e2,metadata:q,stateAttributesMapping:H,tag:L="div",...N}=J,{compositeProps:F,compositeRef:V}=hQ({metadata:q});return h0(L,J,{state:W,ref:[...U,V],props:[F,...K,N],stateAttributesMapping:H})}function eX(J){if(O1(J)&&J.hasAttribute("data-rootownerid"))return J.getAttribute("data-rootownerid")??void 0;if(Z5(J))return;return eX(w5(J))}var vQ=p(G0(),1);function PD(J){let{enabled:X=!0,mouseDownAction:Y,open:W}=J,K=vQ.useRef(!1);return vQ.useMemo(()=>{if(!X)return E1;return{onMouseDown:(U)=>{if(Y==="open"&&!W||Y==="close"&&W)K.current=!0,Tw(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(x1(),1),PQ=2,Eq=bw.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,nativeButton:q=!0,id:H,openOnHover:L,delay:N=100,closeDelay:F=0,handle:V,payload:k,...j}=X,O=p1(!0),M=V?.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 h=ww(H),x=M.useState("isTriggerActive",h),E=M.useState("floatingRootContext"),I=M.useState("isOpenedByTrigger",h),C=bw.useRef(null),v=$b(),m=Tz(!0),R=$2(),S=bw.useMemo(()=>{return R??new s7},[R]),c=AX(S),d=tw(),{registerTrigger:w0,isMountedByThisTrigger:t}=dz(h,C,M,{payload:k,closeDelay:F,parent:v,floatingTreeRoot:S,floatingNodeId:c,floatingParentNodeId:d,keyboardEventRelay:m?.relayKeyboardEvent}),u=M.useState("disabled"),Q0=U||u||v.type==="menubar"&&v.context.disabled,{getButtonProps:r,buttonRef:e}=J5({disabled:Q0,native:q});bw.useEffect(()=>{if(!I&&v.type===void 0)M.context.allowMouseUpTriggerRef.current=!1},[M,I,v.type]);let o=bw.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&&eX(j0)===M.select("rootId"))return;let c0=YD(o.current);if(O0.clientX>=c0.left-PQ&&O0.clientX<=c0.right+PQ&&O0.clientY>=c0.top-PQ&&O0.clientY<=c0.bottom+PQ)return;S.events.emit("close",{domEvent:O0,reason:B0.cancelOpen})});bw.useEffect(()=>{if(I&&M.select("lastOpenChangeReason")===B0.triggerHover)Tw(o.current).addEventListener("mouseup",X0,{once:!0})},[I,X0,M]);let P=v.type==="menubar"&&v.context.hasSubmenuOpen,U0=J9(E,{enabled:(L??P??!1)&&!Q0&&v.type!=="context-menu"&&(v.type!=="menubar"||P&&!t),handleClose:$9({blockPointerEvents:v.type!=="menubar"}),mouseOnly:!0,move:!1,restMs:v.type===void 0?N:void 0,delay:{close:F},triggerElementRef:C,externalTree:S,isActiveTrigger:x}),J0=Xb(I,M.select("lastOpenChangeReason")),L0=n7(E,{enabled:!Q0&&v.type!=="context-menu",event:I&&v.type==="menubar"?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:v.type===void 0?J0:!1}),S0=EX(E,{enabled:!Q0&&(v.type!=="menubar"&&I||P)}),V0=PD({open:I,enabled:v.type==="menubar",mouseDownAction:"open"}),_0=Y5([L0,S0]),A0=v.type==="menubar",r0=bw.useMemo(()=>({disabled:Q0,open:I}),[Q0,I]),n0=M.useState("triggerProps",t),n=[o,Y,e,w0,C],R0=[_0.getReferenceProps(),U0??E1,n0,{"aria-haspopup":"menu",id:h,onMouseDown:(O0)=>{if(M.select("open"))return;g.start(200,()=>{M.context.allowMouseUpTriggerRef.current=!0}),Tw(O0.currentTarget).addEventListener("mouseup",X0,{once:!0})}},A0?{role:"menuitem"}:{},V0,j,r],I0=bw.useRef(null),A1=F0((O0)=>{xq.flushSync(()=>{M.setOpen(!1,P0(B0.focusOut,O0.nativeEvent,O0.currentTarget))}),vM(I0.current)?.focus()}),C0=F0((O0)=>{let j0=M.select("positionerElement");if(j0&&E6(O0,j0))M.context.beforeContentFocusGuardRef.current?.focus();else{xq.flushSync(()=>{M.setOpen(!1,P0(B0.focusOut,O0.nativeEvent,O0.currentTarget))});let c0=hM(C.current);while(c0!==null&&t0(j0,c0)||c0?.hasAttribute("aria-hidden")){let b0=c0;if(c0=vz(c0),c0===b0)break}c0?.focus()}}),H0=h0("button",X,{enabled:!A0,stateAttributesMapping:SX,state:r0,ref:n,props:R0});if(A0)return u4.jsx(vD,{tag:"button",render:W,className:K,state:r0,refs:n,props:R0,stateAttributesMapping:SX});if(I)return u4.jsxs(bw.Fragment,{children:[u4.jsx(r8,{ref:I0,onFocus:A1},`${h}-pre-focus-guard`),u4.jsx(bw.Fragment,{children:H0},h),u4.jsx(r8,{ref:M.context.triggerFocusTargetRef,onFocus:C0},`${h}-post-focus-guard`)]});return u4.jsx(bw.Fragment,{children:H0},h)});Eq.displayName="MenuTrigger";function Xb(J,X){let Y=a1(),[W,K]=bw.useState(!1);return k0(()=>{if(J&&X==="trigger-hover")K(!0),Y.start(lA,()=>{K(!1)});else if(!J)Y.clear(),K(!1)},[J,X,Y]),W}function $b(){let J=y5(!0),X=p1(!0),Y=AQ(!0);return bw.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(G0(),1);var w$=a8.forwardRef(function(X,Y){let{render:W,className:K,label:U,id:q,nativeButton:H=!1,openOnHover:L=!0,delay:N=100,closeDelay:F=0,disabled:V=!1,...k}=X,j=h5(),O=R5(),{store:M}=p1(),h=ww(q),x=M.useState("open"),E=M.useState("floatingRootContext"),I=M.useState("floatingTreeRoot"),C=Yq(h,M),v=a8.useCallback((S0)=>{let V0=C(S0);if(S0!==null&&M.select("open")&&M.select("activeTriggerId")==null)M.update({activeTriggerId:h,activeTriggerElement:S0,closeDelay:F});return V0},[C,F,M,h]),m=a8.useRef(null),R=a8.useCallback((S0)=>{m.current=S0,M.set("activeTriggerElement",S0)},[M]),S=DQ();if(!S?.parentMenu)throw Error("Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>.");M.useSyncedValue("closeDelay",F);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=V||u,{getItemProps:r,itemRef:e}=m4({closeOnClick:!1,disabled:Q0,highlighted:w0,id:h,store:M,nativeButton:H,itemMetadata:t,nodeId:O?.nodeId}),o=M.useState("hoverEnabled"),g=M.useState("allowMouseEnter"),X0=J9(E,{enabled:o&&L&&!Q0&&g,handleClose:$9({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:N,delay:{open:N,close:F},triggerElementRef:m,externalTree:I}),P=n7(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 h0("div",X,{state:J0,stateAttributesMapping:az,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,v,R]})});w$.displayName="MenuSubmenuTrigger";class IQ{constructor(){this.store=new YZ}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 ID(){return new IQ}var SQ=p(x1(),1);function CD(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),q=G8.useRef(null),H=G8.useRef(!0),L=G8.useRef(null),N=J2(),F=G8.useMemo(()=>({anchor:X,setAnchor:Y,actionsRef:U,backdropRef:W,internalBackdropRef:K,positionerRef:q,allowMouseUpTriggerRef:H,initialCursorPointRef:L,rootId:N}),[X,N]);return SQ.jsx(zQ.Provider,{value:F,children:SQ.jsx(tz.Provider,{value:void 0,children:SQ.jsx(CQ.Root,{...J})})})}var s8=p(G0(),1);var SD=500,hq=s8.forwardRef(function(X,Y){let{render:W,className:K,...U}=X,{setAnchor:q,actionsRef:H,internalBackdropRef:L,backdropRef:N,positionerRef:F,allowMouseUpTriggerRef:V,initialCursorPointRef:k,rootId:j}=y5(!1),{store:O}=p1(!1),M=O.useState("open"),h=s8.useRef(null),x=s8.useRef(null),E=a1(),I=a1(),C=s8.useRef(!1);function v(t,u,Q0){let r=Q0.type.startsWith("touch");k.current={x:t,y:u},q({getBoundingClientRect(){return DOMRect.fromRect({width:r?10:0,height:r?10:0,x:t,y:u})}}),C.current=!1,H.current?.setOpen(!0,P0(B0.triggerPress,Q0)),I.start(SD,()=>{C.current=!0})}function m(t){V.current=!0,Xw(t),v(t.clientX,t.clientY,t.nativeEvent),Tw(h.current).addEventListener("mouseup",(Q0)=>{if(V.current=!1,!C.current)return;I.clear(),C.current=!1;let r=f1(Q0);if(t0(F.current,r))return;if(j&&r&&eX(r)===j)return;H.current?.setOpen(!1,P0(B0.cancelOpen,Q0))},{once:!0})}function R(t){if(V.current=!1,t.touches.length===1){t.stopPropagation();let u=t.touches[0];x.current={x:u.clientX,y:u.clientY},E.start(SD,()=>{if(x.current)v(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(h.current,e)||t0(L.current,e)||t0(N.current,e))Q0.preventDefault()}let u=Tw(h.current);return u.addEventListener("contextmenu",t),()=>{u.removeEventListener("contextmenu",t)}},[N,L]);let d=s8.useMemo(()=>({open:M}),[M]);return h0("div",X,{state:d,ref:[h,Y],props:[{onContextMenu:m,onTouchStart:R,onTouchMove:S,onTouchEnd:c,onTouchCancel:c,style:{WebkitTouchCallout:"none"}},U],stateAttributesMapping:SX})});hq.displayName="ContextMenuTrigger";var o8={};qz(o8,{createHandle:()=>$D,Viewport:()=>Aq,Trigger:()=>kq,Title:()=>Nq,Root:()=>RD,Portal:()=>Fq,Popup:()=>Vq,Handle:()=>sG,Description:()=>Lq,Close:()=>Bq,Backdrop:()=>qq});var bD=p(G0(),1);var yD=p(x1(),1);function RD(J){let{children:X,open:Y,defaultOpen:W=!1,onOpenChange:K,onOpenChangeComplete:U,disablePointerDismissal:q=!1,modal:H=!0,actionsRef:L,handle:N,triggerId:F,defaultTriggerId:V=null}=J,k=pw(!0),j=Boolean(k),O=r1(()=>{return N?.store??new CX({open:Y??W,activeTriggerId:F!==void 0?F:V,modal:H,disablePointerDismissal:q,nested:j})}).current;O.useControlledProp("open",Y,W),O.useControlledProp("activeTriggerId",F,V),O.useSyncedValues({disablePointerDismissal:q,nested:j,modal:H}),O.useContextCallback("onOpenChange",K),O.useContextCallback("onOpenChangeComplete",U);let M=O.useState("payload");oO({store:O,actionsRef:L,parentContext:k?.store.context,onOpenChange:K,triggerIdProp:F});let h=bD.useMemo(()=>({store:O}),[O]);return yD.jsx(mG.Provider,{value:h,children:typeof X==="function"?X({payload:M}):X})}var fD=p(G0(),1);var S6=p(G0(),1);var bQ="data-composite-item-active";var Yb=[];function gD(J){let{itemSizes:X,cols:Y=1,loopFocus:W=!0,dense:K=!1,orientation:U="both",direction:q,highlightedIndex:H,onHighlightedIndexChange:L,rootRef:N,enableHomeAndEndKeys:F=!1,stopEventPropagation:V=!1,disabledIndices:k,modifierKeys:j=Yb}=J,[O,M]=S6.useState(0),h=Y>1,x=S6.useRef(null),E=D5(x,N),I=S6.useRef([]),C=S6.useRef(!1),v=H??O,m=F0((c,d=!1)=>{if((L??M)(c),d){let w0=I.current[c];vH(x.current,w0,q,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(bQ))??null,t=w0?d.indexOf(w0):-1;if(t!==-1)m(t);vH(x.current,w0,q,U)}),S=S6.useMemo(()=>({"aria-orientation":U==="both"?void 0:U,ref:E,onFocus(c){if(!x.current||!hH(c.target))return;c.target.setSelectionRange(0,c.target.value.length??0)},onKeyDown(c){let d=F?bM:EH;if(!d.has(c.key))return;if(Gb(c,j))return;if(!x.current)return;let t=q==="rtl",u=t?Pz:a7,Q0={horizontal:u,vertical:b4,both:u}[U],r=t?a7:Pz,e={horizontal:r,vertical:r7,both:r}[U];if(hH(c.target)&&!wM(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=v,g=c7(I,k),X0=Ez(I,k);if(h){let J0=X||Array.from({length:I.current.length},()=>({width:1,height:1})),L0=VX(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[LX({current:L0.map((_0)=>_0?I.current[_0]:null)},{event:c,orientation:U,loopFocus:W,cols:Y,disabledIndices:NX([...k||I.current.map((_0,A0)=>J8(I,A0)?A0:void 0),void 0],L0),minIndex:S0,maxIndex:V0,prevIndex:FX(v>X0?g:v,J0,L0,Y,c.key===b4?"bl":c.key===a7?"tr":"tl"),rtl:t})]}let P={horizontal:[u],vertical:[b4],both:[u,b4]}[U],z0={horizontal:[r],vertical:[r7],both:[r,r7]}[U],U0=h?d:{horizontal:F?CM:TH,vertical:F?SM:xH,both:d}[U];if(F){if(c.key===Iz)o=g;else if(c.key===Cz)o=X0}if(o===v&&(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=Dw(I,{startingIndex:o,decrement:z0.includes(c.key),disabledIndices:k});if(o!==v&&!x6(I,o)){if(V)c.stopPropagation();if(U0.has(c.key))c.preventDefault();m(o,!0),queueMicrotask(()=>{I.current[o]?.focus()})}}}),[Y,K,q,k,I,F,v,h,X,W,E,j,m,U,V]);return S6.useMemo(()=>({props:S,highlightedIndex:v,onHighlightedIndexChange:m,elementsRef:I,disabledIndices:k,onMapChange:R,relayKeyboardEvent:S.onKeyDown}),[S,v,m,I,k,R])}function Gb(J,X){for(let Y of yM.values()){if(X.includes(Y))continue;if(J.getModifierState(Y))return!0}return!1}var vq=p(x1(),1);function mD(J){let{render:X,className:Y,refs:W=e2,props:K=e2,state:U=E1,stateAttributesMapping:q,highlightedIndex:H,onHighlightedIndexChange:L,orientation:N,dense:F,itemSizes:V,loopFocus:k,cols:j,enableHomeAndEndKeys:O,onMapChange:M,stopEventPropagation:h=!0,rootRef:x,disabledIndices:E,modifierKeys:I,highlightItemOnHover:C=!1,tag:v="div",...m}=J,R=O5(),{props:S,highlightedIndex:c,onHighlightedIndexChange:d,elementsRef:w0,onMapChange:t,relayKeyboardEvent:u}=gD({itemSizes:V,cols:j,loopFocus:k,dense:F,orientation:N,highlightedIndex:H,onHighlightedIndexChange:L,rootRef:x,stopEventPropagation:h,enableHomeAndEndKeys:O,direction:R,disabledIndices:E,modifierKeys:I}),Q0=h0(v,J,{state:U,ref:W,props:[S,...K,m],stateAttributesMapping:q}),r=fD.useMemo(()=>({highlightedIndex:c,onHighlightedIndexChange:d,highlightItemOnHover:C,relayKeyboardEvent:u}),[c,d,C,u]);return vq.jsx(eY.Provider,{value:r,children:vq.jsx(kz,{elementsRef:w0,onMapChange:(e)=>{M?.(e),t(e)},children:Q0})})}function GZ(J){let X=uw(J),Y=parseFloat(X.width)||0,W=parseFloat(X.height)||0,K=O1(J),U=K?J.offsetWidth:Y,q=K?J.offsetHeight:W;if(C4(Y)!==U||C4(W)!==q)Y=U,W=q;return{width:Y,height:W}}var Z$=p(G0(),1);var Qb=typeof ResizeObserver<"u",Wb=()=>!0;function dD(J){let{popupElement:X,positionerElement:Y,content:W,mounted:K,enabled:U=Wb,onMeasureLayout:q,onMeasureLayoutComplete:H,side:L,direction:N}=J,F=Z$.useRef(!0),V=Mz(X,!0,!1),k=E5(),j=Z$.useRef(null),O=F0(q),M=F0(H),h=Z$.useMemo(()=>{let x=L==="top",E=L==="left";if(N==="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"}:E1},[L,N]);k0(()=>{if(!K||!U()||!Qb){F.current=!0,j.current=null;return}if(!X||!Y)return;Object.entries(h).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=z$(X,"position","static"),I=z$(X,"transform","none"),C=z$(X,"scale","1"),v=z$(Y,"--available-width","max-content"),m=z$(Y,"--available-height","max-content");if(O?.(),F.current||j.current===null){Y.style.setProperty("--positioner-width","max-content"),Y.style.setProperty("--positioner-height","max-content");let c=GZ(X);return Y.style.setProperty("--positioner-width",`${c.width}px`),Y.style.setProperty("--positioner-height",`${c.height}px`),E(),I(),C(),v(),m(),M?.(null,c),F.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=GZ(X);X.style.setProperty("--popup-width",`${j.current.width}px`),X.style.setProperty("--popup-height",`${j.current.height}px`),E(),I(),v(),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`),V(()=>{X.style.setProperty("--popup-width","auto"),X.style.setProperty("--popup-height","auto")},S.signal)}),()=>{x.disconnect(),S.abort(),k.cancel()}},[W,X,Y,V,k,U,K,O,M,h])}function z$(J,X,Y){let W=J.style.getPropertyValue(X);return J.style.setProperty(X,Y),()=>{J.style.setProperty(X,W)}}var uD=p(G0(),1);function pD(J){let[X,Y]=uD.useState({current:J,previous:null});if(J!==X.current)Y({current:J,previous:X.current});return X.previous}var yQ=p(G0(),1),cD=p(m8(),1);var lD=p(x1(),1),Pq=yQ.forwardRef(function(X,Y){let{children:W,container:K,className:U,render:q,...H}=X,{portalNode:L,portalSubtree:N}=OG({container:K,ref:Y,componentProps:X,elementProps:H});if(!N&&!L)return null;return lD.jsxs(yQ.Fragment,{children:[N,L&&cD.createPortal(W,L)]})});Pq.displayName="FloatingPortalLite";var R6={};qz(R6,{Tab:()=>Sq,Root:()=>Cq,Panel:()=>yq,List:()=>gq,Indicator:()=>bq});var Y2=p(G0(),1);var RQ=p(G0(),1),gQ=RQ.createContext(void 0);gQ.displayName="TabsRootContext";function b6(){let J=RQ.useContext(gQ);if(J===void 0)throw Error("Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");return J}var iD=function(J){return J.activationDirection="data-activation-direction",J.orientation="data-orientation",J}({});var p4={tabActivationDirection:(J)=>({[iD.activationDirection]:J})};var Iq=p(x1(),1),Cq=Y2.forwardRef(function(X,Y){let{className:W,defaultValue:K=0,onValueChange:U,orientation:q="horizontal",render:H,value:L,...N}=X,F=O5(),V=Object.hasOwn(X,"defaultValue"),k=Y2.useRef([]),[j,O]=Y2.useState(()=>new Map),[M,h]=Nz({controlled:L,default:K,name:"Tabs",state:"value"}),x=L!==void 0,[E,I]=Y2.useState(()=>new Map),[C,v]=Y2.useState("none"),m=F0((o,g)=>{if(U?.(o,g),g.isCanceled)return;h(o),v(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=Y2.useCallback((o)=>{return j.get(o)},[j]),d=Y2.useCallback((o)=>{for(let g of E.values())if(o===g?.value)return g?.id;return},[E]),w0=Y2.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=Y2.useMemo(()=>({direction:F,getTabElementBySelectedValue:w0,getTabIdByPanelValue:d,getTabPanelIdByValue:c,onValueChange:m,orientation:q,registerMountedTabPanel:R,setTabMap:I,unregisterMountedTabPanel:S,tabActivationDirection:C,value:M}),[F,w0,d,c,m,q,R,I,S,C,M]),u=Y2.useMemo(()=>{for(let o of E.values())if(o!=null&&o.value===M)return o;return},[E,M]),Q0=Y2.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(V&&o&&M===K)return;if(!o&&!g)return;let P=Q0??null;if(M===P)return;h(P),v("none")},[K,Q0,V,x,u,v,h,E,M]);let e=h0("div",X,{state:{orientation:q,tabActivationDirection:C},ref:Y,props:N,stateAttributesMapping:p4});return Iq.jsx(gQ.Provider,{value:t,children:Iq.jsx(kz,{elementsRef:k,children:e})})});Cq.displayName="TabsRoot";var y6=p(G0(),1);var fQ=p(G0(),1),mQ=fQ.createContext(void 0);mQ.displayName="TabsListContext";function dQ(){let J=fQ.useContext(mQ);if(J===void 0)throw Error("Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");return J}var Sq=y6.forwardRef(function(X,Y){let{className:W,disabled:K=!1,render:U,value:q,id:H,nativeButton:L=!0,...N}=X,{value:F,getTabPanelIdByValue:V,orientation:k}=b6(),{activateOnFocus:j,highlightedTabIndex:O,onTabActivation:M,setHighlightedTabIndex:h,tabsListElement:x}=dQ(),E=ww(H),I=y6.useMemo(()=>({disabled:K,id:E,value:q}),[K,E,q]),{compositeProps:C,compositeRef:v,index:m}=hQ({metadata:I}),R=q===F,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=X2(Tw(X0));if(P&&t0(X0,P))return}if(!K)h(m)},[R,m,O,h,K,x]);let{getButtonProps:c,buttonRef:d}=J5({disabled:K,native:L,focusableWhenDisabled:!0}),w0=V(q),t=y6.useRef(!1),u=y6.useRef(!1);function Q0(X0){if(R||K)return;M(q,P0(B0.none,X0.nativeEvent,void 0,{activationDirection:"none"}))}function r(X0){if(R)return;if(m>-1&&!K)h(m);if(K)return;if(j&&(!t.current||t.current&&u.current))M(q,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,Tw(X0.currentTarget).addEventListener("pointerup",P,{once:!0})}let o=y6.useMemo(()=>({disabled:K,active:R,orientation:k}),[K,R,k]);return h0("button",X,{state:o,ref:[Y,d,v],props:[C,{role:"tab","aria-controls":w0,"aria-selected":R,id:E,onClick:Q0,onFocus:r,onPointerDown:e,[bQ]:R?"":void 0,onKeyDownCapture(){S.current=!0}},N,c]})});Sq.displayName="TabsTab";var W5=p(G0(),1);var rD='!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 G9=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 uQ=p(x1(),1),Kb={...p4,activeTabPosition:()=>null,activeTabSize:()=>null},bq=W5.forwardRef(function(X,Y){let{className:W,render:K,renderBeforeHydration:U=!1,...q}=X,{getTabElementBySelectedValue:H,orientation:L,tabActivationDirection:N,value:F}=b6(),{tabsListElement:V}=dQ(),[k,j]=W5.useState(!1),{value:O}=b6();Az(()=>j(!0));let M=uO();W5.useEffect(()=>{if(F!=null&&V!=null&&typeof ResizeObserver<"u"){let u=new ResizeObserver(M);return u.observe(V),()=>{u.disconnect()}}return},[F,V,M]);let h=0,x=0,E=0,I=0,C=0,v=0,m=!1;if(F!=null&&V!=null){let u=H(F);if(m=!0,u!=null){let{width:Q0,height:r}=GZ(u),{width:e,height:o}=GZ(V),g=u.getBoundingClientRect(),X0=V.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;h=J0/P+V.scrollLeft-V.clientLeft,E=L0/z0+V.scrollTop-V.clientTop}else h=u.offsetLeft,E=u.offsetTop;C=Q0,v=r,x=V.scrollWidth-h-C,I=V.scrollHeight-E-v}}let R=W5.useMemo(()=>m?{left:h,right:x,top:E,bottom:I}:null,[h,x,E,I,m]),S=W5.useMemo(()=>m?{width:C,height:v}:null,[C,v,m]),c=W5.useMemo(()=>{if(!m)return;return{[G9.activeTabLeft]:`${h}px`,[G9.activeTabRight]:`${x}px`,[G9.activeTabTop]:`${E}px`,[G9.activeTabBottom]:`${I}px`,[G9.activeTabWidth]:`${C}px`,[G9.activeTabHeight]:`${v}px`}},[h,x,E,I,C,v,m]),d=m&&C>0&&v>0,w0=W5.useMemo(()=>({orientation:L,activeTabPosition:R,activeTabSize:S,tabActivationDirection:N}),[L,R,S,N]),t=h0("span",X,{state:w0,ref:Y,props:[{role:"presentation",style:c,hidden:!d},q,{suppressHydrationWarning:!0}],stateAttributesMapping:Kb});if(O==null)return null;return uQ.jsxs(W5.Fragment,{children:[t,!k&&U&&uQ.jsx("script",{dangerouslySetInnerHTML:{__html:rD},suppressHydrationWarning:!0})]})});bq.displayName="TabsIndicator";var J$=p(G0(),1);var aD=function(J){return J.index="data-index",J.activationDirection="data-activation-direction",J.orientation="data-orientation",J.hidden="data-hidden",J}({});var yq=J$.forwardRef(function(X,Y){let{className:W,value:K,render:U,keepMounted:q=!1,...H}=X,{value:L,getTabIdByPanelValue:N,orientation:F,tabActivationDirection:V,registerMountedTabPanel:k,unregisterMountedTabPanel:j}=b6(),O=ww(),M=J$.useMemo(()=>({id:O,value:K}),[O,K]),{ref:h,index:x}=h5({metadata:M}),E=K!==L,I=N(K),C=J$.useMemo(()=>({hidden:E,orientation:F,tabActivationDirection:V}),[E,F,V]),v=h0("div",X,{state:C,ref:[Y,h],props:[{"aria-labelledby":I,hidden:E,id:O??void 0,role:"tabpanel",tabIndex:E?-1:0,[aD.index]:x},H],stateAttributesMapping:p4});if(k0(()=>{if(E&&!q)return;if(O==null)return;return k(K,O),()=>{j(K,O)}},[E,q,K,O,k,j]),!(!E||q))return null;return v});yq.displayName="TabsPanel";var Q8=p(G0(),1);var Rq=p(x1(),1),gq=Q8.forwardRef(function(X,Y){let{activateOnFocus:W=!1,className:K,loopFocus:U=!0,render:q,...H}=X,{getTabElementBySelectedValue:L,onValueChange:N,orientation:F,value:V,setTabMap:k,tabActivationDirection:j}=b6(),[O,M]=Q8.useState(0),[h,x]=Q8.useState(null),E=Ub(V,F,h,L),I=F0((R,S)=>{if(R!==V){let c=E(R);S.activationDirection=c,N(R,S)}}),C=Q8.useMemo(()=>({orientation:F,tabActivationDirection:j}),[F,j]),v={"aria-orientation":F==="vertical"?"vertical":void 0,role:"tablist"},m=Q8.useMemo(()=>({activateOnFocus:W,highlightedTabIndex:O,onTabActivation:I,setHighlightedTabIndex:M,tabsListElement:h,value:V}),[W,O,I,M,h,V]);return Rq.jsx(mQ.Provider,{value:m,children:Rq.jsx(mD,{render:q,className:K,state:C,refs:[Y,x],props:[v,H],stateAttributesMapping:p4,highlightedIndex:O,enableHomeAndEndKeys:!0,loopFocus:U,orientation:F,onHighlightedIndexChange:M,onMapChange:k,disabledIndices:e2})})});gq.displayName="TabsList";function sD(J,X){let{left:Y,top:W}=J.getBoundingClientRect(),{left:K,top:U}=X.getBoundingClientRect(),q=Y-K,H=W-U;return{left:q,top:H}}function Ub(J,X,Y,W){let[K,U]=Q8.useState(null);return k0(()=>{if(J==null||Y==null){U(null);return}let q=W(J);if(q==null){U(null);return}let{left:H,top:L}=sD(q,Y);U(X==="horizontal"?H:L)},[X,W,Y,J]),Q8.useCallback((q)=>{if(q===J)return"none";if(q==null)return U(null),"none";if(q!=null&&Y!=null){let H=W(q);if(H!=null){let{left:L,top:N}=sD(H,Y);if(K==null)return U(X==="horizontal"?L:N),"none";if(X==="horizontal"){if(L<K)return U(L),"left";if(L>K)return U(L),"right"}else if(N<K)return U(N),"up";else if(N>K)return U(N),"down"}}return"none"},[W,X,K,Y,J])}var t8={};qz(t8,{createHandle:()=>YT,Viewport:()=>sq,Trigger:()=>fq,Root:()=>eD,Provider:()=>rq,Positioner:()=>uq,Portal:()=>dq,Popup:()=>pq,Handle:()=>eQ,Arrow:()=>cq});var n8=p(G0(),1);var pQ=p(G0(),1),cQ=pQ.createContext(void 0);cQ.displayName="TooltipRootContext";function g5(J){let X=pQ.useContext(cQ);if(X===void 0&&!J)throw Error("Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.");return X}var oD=p(G0(),1),nD=p(m8(),1);var _b={...lz,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 QZ extends P6{constructor(J){super({...Hb(),...J},{popupRef:oD.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new X8},_b)}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 q=()=>{let H={open:J,openChangeReason:Y};if(K)H.instantType="focus";else if(U)H.instantType="dismiss";else if(Y===B0.triggerHover)H.instantType=void 0;let L=X.trigger?.id??null;if(L||J)H.activeTriggerId=L,H.activeTriggerElement=X.trigger??null;this.update(H)};if(W)nD.flushSync(q);else q()};static useStore(J,X){let Y=r1(()=>{return J??new QZ(X)}).current,W=z9({popupStore:Y,onOpenChange:Y.setOpen});return Y.state.floatingRootContext=W,Y}}function Hb(){return{...cz(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}var tD=p(x1(),1);function eD(J){let{disabled:X=!1,defaultOpen:Y=!1,open:W,disableHoverablePopup:K=!1,trackCursorAxis:U="none",actionsRef:q,onOpenChange:H,onOpenChangeComplete:L,handle:N,triggerId:F,defaultTriggerId:V=null,children:k}=J,j=QZ.useStore(N?.store,{open:W??Y,activeTriggerId:F!==void 0?F:V});j.useControlledProp("open",W,Y),j.useControlledProp("activeTriggerId",F,V),j.useContextCallback("onOpenChange",H),j.useContextCallback("onOpenChangeComplete",L);let O=j.useState("open"),M=j.useState("activeTriggerId"),h=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),uz(j);let{forceUnmount:E,transitionStatus:I}=pz(x,j),C=j.useState("isInstantPhase"),v=j.useState("instantType"),m=j.useState("lastOpenChangeReason"),R=n8.useRef(null);k0(()=>{if(I==="ending"&&m===B0.none||I!=="ending"&&C){if(v!=="delay")R.current=v;j.set("instantType","delay")}else if(R.current!==null)j.set("instantType",R.current),R.current=null},[I,C,m,v,j]),k0(()=>{if(x){if(M==null)j.set("payload",void 0)}},[j,M,x]);let S=n8.useCallback(()=>{j.setOpen(!1,qb(j,B0.imperativeAction))},[j]);n8.useImperativeHandle(q,()=>({unmount:E,close:S}),[E,S]);let c=j.useState("floatingRootContext"),d=EX(c,{enabled:!X}),w0=e7(c,{enabled:!X,referencePress:!0}),t=lH(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}),tD.jsx(cQ.Provider,{value:j,children:typeof k==="function"?k({payload:h}):k})}function qb(J,X){let Y=P0(X);return Y.preventUnmountOnClose=()=>{J.set("preventUnmountingOnClose",!0)},Y}var WZ=p(G0(),1);var lQ=p(G0(),1),iQ=lQ.createContext(void 0);iQ.displayName="TooltipProviderContext";function wT(){return lQ.useContext(iQ)}var zT=600;var fq=WZ.forwardRef(function(X,Y){let{className:W,render:K,handle:U,payload:q,disabled:H,delay:L,closeDelay:N,id:F,...V}=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(F),M=j.useState("isTriggerActive",O),h=j.useState("floatingRootContext"),x=j.useState("isOpenedByTrigger",O),E=WZ.useRef(null),I=L??zT,C=N??0,{registerTrigger:v,isMountedByThisTrigger:m}=dz(O,E,j,{payload:q,closeDelay:C}),R=wT(),{delayRef:S,isInstantPhase:c,hasProvider:d}=gH(h,{open:x});j.useSyncedValue("isInstantPhase",c);let w0=j.useState("disabled"),t=H??w0,u=j.useState("trackCursorAxis"),Q0=j.useState("disableHoverablePopup"),r=J9(h,{enabled:!t,mouseOnly:!0,move:!1,handleClose:!Q0&&u!=="both"?$9():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(N==null&&d)P=X0;return{close:P}},triggerElementRef:E,isActiveTrigger:M}),e=WZ.useMemo(()=>({open:x}),[x]),o=j.useState("triggerProps",m);return h0("button",X,{state:e,ref:[Y,v,E],props:[r,o,{id:O},V],stateAttributesMapping:az})});fq.displayName="TooltipTrigger";var JT=p(G0(),1);var rQ=p(G0(),1),aQ=rQ.createContext(void 0);aQ.displayName="TooltipPortalContext";function ZT(){let J=rQ.useContext(aQ);if(J===void 0)throw Error("Base UI: <Tooltip.Portal> is missing.");return J}var mq=p(x1(),1),dq=JT.forwardRef(function(X,Y){let{keepMounted:W=!1,...K}=X;if(!(g5().useState("mounted")||W))return null;return mq.jsx(aQ.Provider,{value:W,children:mq.jsx(Pq,{ref:Y,...K})})});dq.displayName="TooltipPortal";var KZ=p(G0(),1);var sQ=p(G0(),1),oQ=sQ.createContext(void 0);oQ.displayName="TooltipPositionerContext";function nQ(){let J=sQ.useContext(oQ);if(J===void 0)throw Error("Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.");return J}var XT=p(x1(),1),uq=KZ.forwardRef(function(X,Y){let{render:W,className:K,anchor:U,positionMethod:q="absolute",side:H="top",align:L="center",sideOffset:N=0,alignOffset:F=0,collisionBoundary:V="clipping-ancestors",collisionPadding:k=5,arrowPadding:j=5,sticky:O=!1,disableAnchorTracking:M=!1,collisionAvoidance:h=uY,...x}=X,E=g5(),I=ZT(),C=E.useState("open"),v=E.useState("mounted"),m=E.useState("trackCursorAxis"),R=E.useState("disableHoverablePopup"),S=E.useState("floatingRootContext"),c=E.useState("instantType"),d=E.useState("transitionStatus"),w0=oG({anchor:U,positionMethod:q,floatingRootContext:S,mounted:v,side:H,sideOffset:N,align:L,alignOffset:F,collisionBoundary:V,collisionPadding:k,sticky:O,arrowPadding:j,disableAnchorTracking:M,keepMounted:I,collisionAvoidance:h,adaptiveOrigin:WD}),t=KZ.useMemo(()=>{let e={};if(!C||m==="both"||R)e.pointerEvents="none";return{role:"presentation",hidden:!v,style:{...w0.positionerStyles,...e}}},[C,m,R,v,w0.positionerStyles]),u=KZ.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=KZ.useMemo(()=>({...u,arrowRef:w0.arrowRef,arrowStyles:w0.arrowStyles,arrowUncentered:w0.arrowUncentered}),[u,w0.arrowRef,w0.arrowStyles,w0.arrowUncentered]),r=h0("div",X,{state:u,props:[t,nz(d),x],ref:[Y,E.useStateSetter("positionerElement")],stateAttributesMapping:Ew});return XT.jsx(oQ.Provider,{value:Q0,children:r})});uq.displayName="TooltipPositioner";var UZ=p(G0(),1);var Bb={...Ew,...P2},pq=UZ.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,q=g5(),{side:H,align:L}=nQ(),N=q.useState("open"),F=q.useState("mounted"),V=q.useState("instantType"),k=q.useState("transitionStatus"),j=q.useState("popupProps"),O=q.useState("payload"),M=q.useState("popupElement"),h=q.useState("positionerElement"),x=q.useState("floatingRootContext"),E=O5();I5({open:N,ref:q.context.popupRef,onComplete(){if(N)q.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 v=UZ.useCallback(()=>q.context.triggerElements.size>1,[q]);dD({popupElement:M,positionerElement:h,mounted:F,content:O,enabled:v,onMeasureLayout:I,onMeasureLayoutComplete:C,side:H,direction:E});let m=q.useState("disabled"),R=q.useState("closeDelay");vX(x,{enabled:!m,closeDelay:R});let S=UZ.useMemo(()=>({open:N,side:H,align:L,instant:V,transitionStatus:k}),[N,H,L,V,k]);return h0("div",X,{state:S,ref:[Y,q.context.popupRef,q.useStateSetter("popupElement")],props:[j,nz(k),U],stateAttributesMapping:Bb})});pq.displayName="TooltipPopup";var tQ=p(G0(),1);var cq=tQ.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,H=g5().useState("instantType"),{open:L,arrowRef:N,side:F,align:V,arrowUncentered:k,arrowStyles:j}=nQ(),O=tQ.useMemo(()=>({open:L,side:F,align:V,uncentered:k,instant:H}),[L,F,V,k,H]);return h0("div",X,{state:O,ref:[Y,N],props:[{style:j,"aria-hidden":!0},U],stateAttributesMapping:Ew})});cq.displayName="TooltipArrow";var lq=p(G0(),1);var iq=p(x1(),1),rq=function(X){let{delay:Y,closeDelay:W,timeout:K=400}=X,U=lq.useMemo(()=>({delay:Y,closeDelay:W}),[Y,W]),q=lq.useMemo(()=>({open:Y,close:W}),[Y,W]);return iq.jsx(iQ.Provider,{value:U,children:iq.jsx(RH,{delay:q,timeoutMs:K,children:X.children})})};rq.displayName="TooltipProvider";var cw=p(G0(),1);var aq=function(J){return J.popupWidth="--popup-width",J.popupHeight="--popup-height",J}({});var _Z=p(x1(),1),Lb={activationDirection:(J)=>J?{"data-activation-direction":J}:null},sq=cw.forwardRef(function(X,Y){let{render:W,className:K,children:U,...q}=X,H=g5(),L=H.useState("activeTriggerElement"),N=H.useState("open"),F=H.useState("floatingRootContext"),V=H.useState("instantType"),k=pD(N?L:null),j=cw.useRef(null),[O,M]=cw.useState(null),[h,x]=cw.useState(null),E=cw.useRef(null),I=cw.useRef(null),C=Mz(E,!0,!1),v=E5(),[m,R]=cw.useState(null),[S,c]=cw.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)});cw.useEffect(()=>{return F.context.events.on("measure-layout",d),F.context.events.on("measure-layout-complete",w0),()=>{F.context.events.off("measure-layout",d),F.context.events.off("measure-layout-complete",w0)}},[F,d,w0]);let t=cw.useRef(null);k0(()=>{if(L&&k&&L!==k&&t.current!==L&&j.current){M(j.current),c(!0);let e=Fb(k,L);x(e),v.request(()=>{v.request(()=>{c(!1),C(()=>{M(null),R(null),j.current=null})})}),t.current=L}},[L,k,O,C,v]),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=_Z.jsx("div",{"data-current":!0,ref:E,children:U},"current");else Q0=_Z.jsxs(cw.Fragment,{children:[_Z.jsx("div",{"data-previous":!0,inert:sz(!0),ref:I,style:{[aq.popupWidth]:`${m?.width}px`,[aq.popupHeight]:`${m?.height}px`,position:"absolute"},"data-ending-style":S?void 0:""},"previous"),_Z.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=cw.useMemo(()=>{return{activationDirection:Vb(h),transitioning:u,instant:V}},[h,u,V]);return h0("div",X,{state:r,ref:Y,props:[q,{children:Q0}],stateAttributesMapping:Lb})});sq.displayName="TooltipViewport";function Vb(J){if(!J)return;return`${$T(J.horizontal,5,"right","left")} ${$T(J.vertical,5,"down","up")}`}function $T(J,X,Y,W){if(J>X)return Y;if(J<-X)return W;return""}function Fb(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 eQ{constructor(){this.store=new QZ}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 YT(){return new eQ}function oq(J){return h0(J.defaultTagName??"div",J,J)}var xx=p(G0(),1);function GT(J){let X=J.getLocation(),Y=new Set,W=(q)=>{X=J.getLocation(),Y.forEach((H)=>H({location:X,action:q}))},K=(q)=>{if(J.notifyOnIndexChange??!0)W(q);else X=J.getLocation()},U=async({task:q,navigateOpts:H,...L})=>{if(H?.ignoreBlocker??!1){q();return}let F=J.getBlockers?.()??[],V=L.type==="PUSH"||L.type==="REPLACE";if(typeof document<"u"&&F.length&&V)for(let k of F){let j=QT(L.path,L.state);if(await k.blockerFn({currentLocation:X,nextLocation:j,action:L.type})){J.onBlocked?.();return}}q()};return{get location(){return X},get length(){return J.getLength()},subscribers:Y,subscribe:(q)=>{return Y.add(q),()=>{Y.delete(q)}},push:(q,H,L)=>{let N=X.state.__TSR_index;H=nq(N+1,H),U({task:()=>{J.pushState(q,H),W({type:"PUSH"})},navigateOpts:L,type:"PUSH",path:q,state:H})},replace:(q,H,L)=>{let N=X.state.__TSR_index;H=nq(N,H),U({task:()=>{J.replaceState(q,H),W({type:"REPLACE"})},navigateOpts:L,type:"REPLACE",path:q,state:H})},go:(q,H)=>{U({task:()=>{J.go(q),K({type:"GO",index:q})},navigateOpts:H,type:"GO"})},back:(q)=>{U({task:()=>{J.back(q?.ignoreBlocker??!1),K({type:"BACK"})},navigateOpts:q,type:"BACK"})},forward:(q)=>{U({task:()=>{J.forward(q?.ignoreBlocker??!1),K({type:"FORWARD"})},navigateOpts:q,type:"FORWARD"})},canGoBack:()=>X.state.__TSR_index!==0,createHref:(q)=>J.createHref(q),block:(q)=>{if(!J.setBlockers)return()=>{};let H=J.getBlockers?.()??[];return J.setBlockers([...H,q]),()=>{let L=J.getBlockers?.()??[];J.setBlockers?.(L.filter((N)=>N!==q))}},flush:()=>J.flush?.(),destroy:()=>J.destroy?.(),notify:W}}function nq(J,X){if(!X)X={};let Y=WT();return{...X,key:Y,__TSR_key:Y,["__TSR_index"]:J}}function tq(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,q)=>nq(q,void 0));return GT({getLocation:()=>QT(X[Y],W[Y]),getLength:()=>X.length,pushState:(U,q)=>{if(Y<X.length-1)X.splice(Y+1),W.splice(Y+1);W.push(q),X.push(U),Y=Math.max(X.length-1,0)},replaceState:(U,q)=>{W[Y]=q,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 QT(J,X){let Y=J.indexOf("#"),W=J.indexOf("?"),K=WT();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 WT(){return(Math.random()+1).toString(36).substring(7)}function UT(J){return"init"in J}function eq(J){return!!J.write}function KT(J){return"v"in J||"e"in J}function wW(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 zW=new WeakMap;function _T(J){var X;return ZW(J)&&!!((X=zW.get(J))==null?void 0:X[0])}function Nb(J){let X=zW.get(J);if(X==null?void 0:X[0])X[0]=!1,X[1].forEach((Y)=>Y())}function JW(J,X){let Y=zW.get(J);if(!Y){Y=[!0,new Set],zW.set(J,Y);let W=()=>{Y[0]=!1};J.then(W,W)}Y[1].add(X)}function ZW(J){return typeof(J==null?void 0:J.then)==="function"}function HT(J,X,Y){if(!Y.p.has(J)){Y.p.add(J);let W=()=>Y.p.delete(J);X.then(W,W)}}function qT(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 kb=(J,X,...Y)=>X.read(...Y),jb=(J,X,...Y)=>X.write(...Y),Ab=(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)},Mb=(J,X,Y)=>{var W;return(W=X.onMount)==null?void 0:W.call(X,Y)},Ob=(J,X)=>{var Y;let W=G2(J),K=W[0],U=W[6],q=W[9];if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!X)throw Error("Atom is undefined or null");let H=K.get(X);if(!H)H={d:new Map,p:new Set,n:0},K.set(X,H),(Y=U.i)==null||Y.call(U,X),q==null||q(J,X);return H},Db=(J)=>{let X=G2(J),Y=X[1],W=X[3],K=X[4],U=X[5],q=X[6],H=X[13],L=[],N=(F)=>{try{F()}catch(V){L.push(V)}};do{if(q.f)N(q.f);let F=new Set,V=F.add.bind(F);if(W.forEach((k)=>{var j;return(j=Y.get(k))==null?void 0:j.l.forEach(V)}),W.clear(),U.forEach(V),U.clear(),K.forEach(V),K.clear(),F.forEach(N),W.size)H(J)}while(W.size||U.size||K.size);if(L.length)throw AggregateError(L)},Tb=(J)=>{let X=G2(J),Y=X[1],W=X[2],K=X[3],U=X[11],q=X[14],H=X[17],L=[],N=new WeakSet,F=new WeakSet,V=Array.from(K);while(V.length){let k=V[V.length-1],j=U(J,k);if(F.has(k)){V.pop();continue}if(N.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");F.add(k),V.pop();continue}N.add(k);for(let O of qT(k,j,Y))if(!N.has(O))V.push(O)}for(let k=L.length-1;k>=0;--k){let[j,O]=L[k],M=!1;for(let h of O.d.keys())if(h!==j&&K.has(h)){M=!0;break}if(M)q(J,j),H(J,j);W.delete(j)}},wB=new WeakSet,xb=(J,X)=>{var Y,W;let K=G2(J),U=K[1],q=K[2],H=K[3],L=K[6],N=K[7],F=K[11],V=K[12],k=K[13],j=K[14],O=K[16],M=K[17],h=K[20],x=F(J,X);if(KT(x)){if(U.has(X)&&q.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),V(J)}function C(c){var d;if(c===X){let t=F(J,c);if(!KT(t))if(UT(c))h(J,c,c.init);else throw Error("no atom init");return wW(t)}let w0=j(J,c);try{return wW(w0)}finally{if(x.d.set(c,w0.n),_T(x.v))HT(X,x.v,w0);if(U.has(X))(d=U.get(c))==null||d.t.add(X);if(!E)I()}}let v,m,R={get signal(){if(!v)v=new AbortController;return v.signal},get setSelf(){if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!eq(X))console.warn("setSelf function cannot be used with read-only atom");if(!m&&eq(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),V(J)}};return m}},S=x.n;try{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")wB.delete(J);let c=N(J,X,C,R);if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&wB.has(J))console.warn("Detected store mutation during atom read. This is not supported.");if(h(J,X,c),ZW(c))JW(c,()=>v==null?void 0:v.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&&q.get(X)===S)q.set(X,x.n),H.add(X),(W=L.c)==null||W.call(L,X)}},Eb=(J,X)=>{let Y=G2(J),W=Y[1],K=Y[2],U=Y[11],q=[X];while(q.length){let H=q.pop(),L=U(J,H);for(let N of qT(H,L,W)){let F=U(J,N);K.set(N,F.n),q.push(N)}}},hb=(J,X,...Y)=>{let W=G2(J),K=W[3],U=W[6],q=W[8],H=W[11],L=W[12],N=W[13],F=W[14],V=W[15],k=W[16],j=W[17],O=W[20],M=!0,h=(E)=>wW(F(J,E)),x=(E,...I)=>{var C;let v=H(J,E);try{if(E===X){if(!UT(E))throw Error("atom not writable");if((import.meta.env?import.meta.env.MODE:void 0)!=="production")wB.add(J);let m=v.n,R=I[0];if(O(J,E,R),j(J,E),m!==v.n)K.add(E),V(J,E),(C=U.c)==null||C.call(U,E);return}else return k(J,E,...I)}finally{if(!M)N(J),L(J)}};try{return q(J,X,h,x,...Y)}finally{M=!1}},vb=(J,X)=>{var Y;let W=G2(J),K=W[1],U=W[3],q=W[6],H=W[11],L=W[15],N=W[18],F=W[19],V=H(J,X),k=K.get(X);if(k&&!_T(V.v)){for(let[j,O]of V.d)if(!k.d.has(j)){let M=H(J,j);if(N(J,j).t.add(X),k.d.add(j),O!==M.n)U.add(j),L(J,j),(Y=q.c)==null||Y.call(q,j)}for(let j of k.d)if(!V.d.has(j)){k.d.delete(j);let O=F(J,j);O==null||O.t.delete(X)}}},Pb=(J,X)=>{var Y;let W=G2(J),K=W[1],U=W[4],q=W[6],H=W[10],L=W[11],N=W[12],F=W[13],V=W[14],k=W[16],j=W[18],O=L(J,X),M=K.get(X);if(!M){V(J,X);for(let h of O.d.keys())j(J,h).t.add(X);if(M={l:new Set,d:new Set(O.d.keys()),t:new Set},K.set(X,M),eq(X)){let h=()=>{let x=!0,E=(...I)=>{try{return k(J,X,...I)}finally{if(!x)F(J),N(J)}};try{let I=H(J,X,E);if(I)M.u=()=>{x=!0;try{I()}finally{x=!1}}}finally{x=!1}};U.add(h)}(Y=q.m)==null||Y.call(q,X)}return M},Ib=(J,X)=>{var Y,W;let K=G2(J),U=K[1],q=K[5],H=K[6],L=K[11],N=K[19],F=L(J,X),V=U.get(X);if(!V||V.l.size)return V;let k=!1;for(let j of V.t)if((Y=U.get(j))==null?void 0:Y.d.has(X)){k=!0;break}if(!k){if(V.u)q.add(V.u);V=void 0,U.delete(X);for(let j of F.d.keys()){let O=N(J,j);O==null||O.t.delete(X)}(W=H.u)==null||W.call(H,X);return}return V},Cb=(J,X,Y)=>{let W=G2(J)[11],K=W(J,X),U="v"in K,q=K.v;if(ZW(Y))for(let H of K.d.keys())HT(X,Y,W(J,H));if(K.v=Y,delete K.e,!U||!Object.is(q,K.v)){if(++K.n,ZW(q))Nb(q)}},Sb=(J,X)=>{let Y=G2(J)[14];return wW(Y(J,X))},bb=(J,X,...Y)=>{let W=G2(J),K=W[12],U=W[13],q=W[16];try{return q(J,X,...Y)}finally{U(J),K(J)}},yb=(J,X,Y)=>{let W=G2(J),K=W[12],U=W[18],q=W[19],L=U(J,X).l;return L.add(Y),K(J),()=>{L.delete(Y),q(J,X),K(J)}},BT=new WeakMap,G2=(J)=>{let X=BT.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 LT(...J){let X={get(W){let K=G2(X)[21];return K(X,W)},set(W,...K){let U=G2(X)[22];return U(X,W,...K)},sub(W,K){let U=G2(X)[23];return U(X,W,K)}},Y=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},kb,jb,Ab,Mb,Ob,Db,Tb,xb,Eb,hb,vb,Pb,Ib,Cb,Sb,bb,yb,void 0].map((W,K)=>J[K]||W);return BT.set(X,Object.freeze(Y)),X}var Rb=0;function HZ(J,X){let Y=`atom${++Rb}`,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=gb,W.write=fb;if(X)W.write=X;return W}function gb(J){return J(this)}function fb(J,X,Y){return X(this,typeof Y==="function"?Y(J(this)):Y)}var VT;function FT(){if(VT)return VT();return LT()}var X$;function NT(){if(!X$){if(X$=FT(),(import.meta.env?import.meta.env.MODE:void 0)!=="production"){if(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=X$),globalThis.__JOTAI_DEFAULT_STORE__!==X$)console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")}}return X$}var ew=p(G0(),1);var mb=ew.createContext(void 0);function jT(J){let X=ew.useContext(mb);return(J==null?void 0:J.store)||X||NT()}var ZB=(J)=>typeof(J==null?void 0:J.then)==="function",JB=(J)=>{if(!J.status)J.status="pending",J.then((X)=>{J.status="fulfilled",J.value=X},(X)=>{J.status="rejected",J.reason=X})},db=ew.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 JB(J),J}),zB=new WeakMap,kT=(J,X)=>{let Y=zB.get(J);if(!Y)Y=new Promise((W,K)=>{let U=J,q=(N)=>(F)=>{if(U===N)W(F)},H=(N)=>(F)=>{if(U===N)K(F)},L=()=>{try{let N=X();if(ZB(N))zB.set(N,Y),U=N,N.then(q(N),H(N)),JW(N,L);else W(N)}catch(N){K(N)}};J.then(q(J),H(J)),JW(J,L)}),zB.set(J,Y);return Y};function ub(J,X){let{delay:Y,unstable_promiseStatus:W=!ew.default.use}=X||{},K=jT(X),[[U,q,H],L]=ew.useReducer((F)=>{let V=K.get(J);if(Object.is(F[0],V)&&F[1]===K&&F[2]===J)return F;return[V,K,J]},void 0,()=>[K.get(J),K,J]),N=U;if(q!==K||H!==J)L(),N=K.get(J);if(ew.useEffect(()=>{let F=K.sub(J,()=>{if(W)try{let V=K.get(J);if(ZB(V))JB(kT(V,()=>K.get(J)))}catch(V){}if(typeof Y==="number"){setTimeout(L,Y);return}L()});return L(),F},[K,J,Y,W]),ew.useDebugValue(N),ZB(N)){let F=kT(N,()=>K.get(J));if(W)JB(F);return db(F)}return N}function pb(J,X){let Y=jT(X);return ew.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 S2(J,X){return[ub(J,X),pb(J,X)]}var cb=Symbol((import.meta.env?import.meta.env.MODE:void 0)!=="production"?"RESET":"");var AT=(J)=>typeof(J==null?void 0:J.then)==="function";function lb(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,N)=>{var F,V;let k=(O)=>{if(O=O||"",W!==O){try{K=JSON.parse(O,X==null?void 0:X.reviver)}catch(M){return N}W=O}return K},j=(V=(F=J())==null?void 0:F.getItem(L))!=null?V:null;if(AT(j))return j.then(k);return k(j)},setItem:(L,N)=>{var F;return(F=J())==null?void 0:F.setItem(L,JSON.stringify(N,X==null?void 0:X.replacer))},removeItem:(L)=>{var N;return(N=J())==null?void 0:N.removeItem(L)}},q=(L)=>(N,F,V)=>L(N,(k)=>{let j;try{j=JSON.parse(k||"")}catch(O){j=V}F(j)}),H;try{H=(Y=J())==null?void 0:Y.subscribe}catch(L){}if(!H&&typeof window<"u"&&typeof window.addEventListener==="function"&&window.Storage)H=(L,N)=>{if(!(J()instanceof window.Storage))return()=>{};let F=(V)=>{if(V.storageArea===J()&&V.key===L)N(V.newValue)};return window.addEventListener("storage",F),()=>{window.removeEventListener("storage",F)}};if(H)U.subscribe=q(H);return U}var ib=lb();function XB(J,X,Y=ib,W){let K=W==null?void 0:W.getOnInit,U=HZ(K?Y.getItem(J,X):X);if((import.meta.env?import.meta.env.MODE:void 0)!=="production")U.debugPrivate=!0;return U.onMount=(H)=>{H(Y.getItem(J,X));let L;if(Y.subscribe)L=Y.subscribe(J,H,X);return L},HZ((H)=>H(U),(H,L,N)=>{let F=typeof N==="function"?N(H(U)):N;if(F===cb)return L(U,X),Y.removeItem(J);if(AT(F))return F.then((V)=>{return L(U,V),Y.setItem(J,V)});return L(U,F),Y.setItem(J,F)})}var XW=XB("activeTabId",null),c4=XB("tabs",[]),rb=HZ((J)=>J(c4).reduce((X,Y)=>{return X[Y.id]=tq({initialEntries:[Y.path]}),X},{})),ab=HZ(null);function qZ(){return S2(c4)}function $W(){let[J]=S2(c4),[X,Y]=S2(XW),[W]=S2(rb),K=J.find((q)=>q.id===X)??null,U=X?W[X]:null;return{activeTab:K,setActiveTab:Y,tabHistory:U}}function MT(){let[,J]=S2(c4),[,X]=S2(XW);return(Y)=>{let W=crypto.randomUUID();return J((K)=>[...K,{...Y,id:W}]),X(W),W}}function OT(){let[J,X]=S2(c4);return(Y)=>{X(J.map((W)=>W.id===Y?{...W,temporary:!1}:W))}}function DT(){let[J,X]=S2(c4),[Y,W]=S2(XW);return(K)=>{if(X(J.filter((U)=>U.id!==K)),Y===K){let U=J.findIndex((H)=>H.id===K),q=J[U-1]||J[U+1]||null;W(q?q.id:null)}}}function TT(){let[J,X]=S2(c4);return(Y,W)=>{X(J.map((K)=>K.id===Y?{...W,id:Y}:K))}}function xT(){let[J,X]=S2(c4),[Y,W]=S2(XW),[K,U]=S2(ab);return(q)=>{let H=new Set;for(let F of Object.values(q))for(let V of F)H.add(V.path);let L=new Set;if(K)for(let F of Object.values(K))for(let V of F)L.add(V.path);if(J.filter((F)=>!H.has(F.path)).length>0){let F=[];for(let j of Object.values(q))for(let O of j)if(!L.has(O.path))F.push(O);let V=J.map((j)=>{if(!H.has(j.path)){let O=F.find((M)=>{let h=j.name.toLowerCase(),x=M.name.toLowerCase();return x.includes(h)||h.includes(x)||sb(h,x)<=3});if(O){let M=F.indexOf(O);if(M>-1)F.splice(M,1);return{...j,path:O.path,name:O.name}}}return j}),k=V.filter((j)=>H.has(j.path));if(k.length!==J.length||V.some((j,O)=>j.path!==J[O]?.path)){if(X(k),Y&&!k.find((j)=>j.id===Y))W(k[0]?.id??null)}}U(q)}}function sb(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 ET(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=ET(J[X]))&&(W&&(W+=" "),W+=Y)}else for(Y in J)J[Y]&&(W&&(W+=" "),W+=Y);return W}function YW(){for(var J,X,Y=0,W="",K=arguments.length;Y<K;Y++)(J=arguments[Y])&&(X=ET(J))&&(W&&(W+=" "),W+=X);return W}var hT=(J)=>typeof J==="boolean"?`${J}`:J===0?"0":J,vT=YW,GW=(J,X)=>(Y)=>{var W;if((X===null||X===void 0?void 0:X.variants)==null)return vT(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,q=Object.keys(K).map((N)=>{let F=Y===null||Y===void 0?void 0:Y[N],V=U===null||U===void 0?void 0:U[N];if(F===null)return null;let k=hT(F)||hT(V);return K[N][k]}),H=Y&&Object.entries(Y).reduce((N,F)=>{let[V,k]=F;if(k===void 0)return N;return N[V]=k,N},{}),L=X===null||X===void 0?void 0:(W=X.compoundVariants)===null||W===void 0?void 0:W.reduce((N,F)=>{let{class:V,className:k,...j}=F;return Object.entries(j).every((O)=>{let[M,h]=O;return Array.isArray(h)?h.includes({...U,...H}[M]):{...U,...H}[M]===h})?[...N,V,k]:N},[]);return vT(J,q,L,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className)};var ob=(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},nb=(J,X)=>({classGroupId:J,validator:X}),bT=(J=new Map,X=null,Y)=>({nextPart:J,validators:X,classGroupId:Y});var PT=[];var tb=(J)=>{let X=wy(J),{conflictingClassGroups:Y,conflictingClassGroupModifiers:W}=J;return{getClassGroupId:(q)=>{if(q.startsWith("[")&&q.endsWith("]"))return eb(q);let H=q.split("-"),L=H[0]===""&&H.length>1?1:0;return yT(H,L,X)},getConflictingClassGroupIds:(q,H)=>{if(H){let L=W[q],N=Y[q];if(L){if(N)return ob(N,L);return L}return N||PT}return Y[q]||PT}}},yT=(J,X,Y)=>{if(J.length-X===0)return Y.classGroupId;let K=J[X],U=Y.nextPart.get(K);if(U){let N=yT(J,X+1,U);if(N)return N}let q=Y.validators;if(q===null)return;let H=X===0?J.join("-"):J.slice(X).join("-"),L=q.length;for(let N=0;N<L;N++){let F=q[N];if(F.validator(H))return F.classGroupId}return},eb=(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})(),wy=(J)=>{let{theme:X,classGroups:Y}=J;return zy(Y,X)},zy=(J,X)=>{let Y=bT();for(let W in J){let K=J[W];GB(K,Y,W,X)}return Y},GB=(J,X,Y,W)=>{let K=J.length;for(let U=0;U<K;U++){let q=J[U];Zy(q,X,Y,W)}},Zy=(J,X,Y,W)=>{if(typeof J==="string"){Jy(J,X,Y);return}if(typeof J==="function"){Xy(J,X,Y,W);return}$y(J,X,Y,W)},Jy=(J,X,Y)=>{let W=J===""?X:RT(X,J);W.classGroupId=Y},Xy=(J,X,Y,W)=>{if(Yy(J)){GB(J(W),X,Y,W);return}if(X.validators===null)X.validators=[];X.validators.push(nb(Y,J))},$y=(J,X,Y,W)=>{let K=Object.entries(J),U=K.length;for(let q=0;q<U;q++){let[H,L]=K[q];GB(L,RT(X,H),Y,W)}},RT=(J,X)=>{let Y=J,W=X.split("-"),K=W.length;for(let U=0;U<K;U++){let q=W[U],H=Y.nextPart.get(q);if(!H)H=bT(),Y.nextPart.set(q,H);Y=H}return Y},Yy=(J)=>("isThemeGetter"in J)&&J.isThemeGetter===!0,Gy=(J)=>{if(J<1)return{get:()=>{return},set:()=>{}};let X=0,Y=Object.create(null),W=Object.create(null),K=(U,q)=>{if(Y[U]=q,X++,X>J)X=0,W=Y,Y=Object.create(null)};return{get(U){let q=Y[U];if(q!==void 0)return q;if((q=W[U])!==void 0)return K(U,q),q},set(U,q){if(U in Y)Y[U]=q;else K(U,q)}}};var Qy=[],IT=(J,X,Y,W,K)=>({modifiers:J,hasImportantModifier:X,baseClassName:Y,maybePostfixModifierPosition:W,isExternal:K}),Wy=(J)=>{let{prefix:X,experimentalParseClassName:Y}=J,W=(K)=>{let U=[],q=0,H=0,L=0,N,F=K.length;for(let M=0;M<F;M++){let h=K[M];if(q===0&&H===0){if(h===":"){U.push(K.slice(L,M)),L=M+1;continue}if(h==="/"){N=M;continue}}if(h==="[")q++;else if(h==="]")q--;else if(h==="(")H++;else if(h===")")H--}let V=U.length===0?K:K.slice(L),k=V,j=!1;if(V.endsWith("!"))k=V.slice(0,-1),j=!0;else if(V.startsWith("!"))k=V.slice(1),j=!0;let O=N&&N>L?N-L:void 0;return IT(U,j,k,O)};if(X){let K=X+":",U=W;W=(q)=>q.startsWith(K)?U(q.slice(K.length)):IT(Qy,!1,q,void 0,!0)}if(Y){let K=W;W=(U)=>Y({className:U,parseClassName:K})}return W},Ky=(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 q=Y[U],H=q[0]==="[",L=X.has(q);if(H||L){if(K.length>0)K.sort(),W.push(...K),K=[];W.push(q)}else K.push(q)}if(K.length>0)K.sort(),W.push(...K);return W}},Uy=(J)=>({cache:Gy(J.cacheSize),parseClassName:Wy(J),sortModifiers:Ky(J),...tb(J)}),_y=/\s+/,Hy=(J,X)=>{let{parseClassName:Y,getClassGroupId:W,getConflictingClassGroupIds:K,sortModifiers:U}=X,q=[],H=J.trim().split(_y),L="";for(let N=H.length-1;N>=0;N-=1){let F=H[N],{isExternal:V,modifiers:k,hasImportantModifier:j,baseClassName:O,maybePostfixModifierPosition:M}=Y(F);if(V){L=F+(L.length>0?" "+L:L);continue}let h=!!M,x=W(h?O.substring(0,M):O);if(!x){if(!h){L=F+(L.length>0?" "+L:L);continue}if(x=W(O),!x){L=F+(L.length>0?" "+L:L);continue}h=!1}let E=k.length===0?"":k.length===1?k[0]:U(k).join(":"),I=j?E+"!":E,C=I+x;if(q.indexOf(C)>-1)continue;q.push(C);let v=K(x,h);for(let m=0;m<v.length;++m){let R=v[m];q.push(I+R)}L=F+(L.length>0?" "+L:L)}return L},qy=(...J)=>{let X=0,Y,W,K="";while(X<J.length)if(Y=J[X++]){if(W=gT(Y))K&&(K+=" "),K+=W}return K},gT=(J)=>{if(typeof J==="string")return J;let X,Y="";for(let W=0;W<J.length;W++)if(J[W]){if(X=gT(J[W]))Y&&(Y+=" "),Y+=X}return Y},By=(J,...X)=>{let Y,W,K,U,q=(L)=>{let N=X.reduce((F,V)=>V(F),J());return Y=Uy(N),W=Y.cache.get,K=Y.cache.set,U=H,H(L)},H=(L)=>{let N=W(L);if(N)return N;let F=Hy(L,Y);return K(L,F),F};return U=q,(...L)=>U(qy(...L))},Ly=[],yw=(J)=>{let X=(Y)=>Y[J]||Ly;return X.isThemeGetter=!0,X},fT=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mT=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vy=/^\d+\/\d+$/,Fy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ny=/\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$/,ky=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ay=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,BZ=(J)=>Vy.test(J),V1=(J)=>!!J&&!Number.isNaN(Number(J)),l4=(J)=>!!J&&Number.isInteger(Number(J)),$B=(J)=>J.endsWith("%")&&V1(J.slice(0,-1)),g6=(J)=>Fy.test(J),My=()=>!0,Oy=(J)=>Ny.test(J)&&!ky.test(J),dT=()=>!1,Dy=(J)=>jy.test(J),Ty=(J)=>Ay.test(J),xy=(J)=>!g0(J)&&!f0(J),Ey=(J)=>LZ(J,cT,dT),g0=(J)=>fT.test(J),Q9=(J)=>LZ(J,lT,Oy),YB=(J)=>LZ(J,Cy,V1),CT=(J)=>LZ(J,uT,dT),hy=(J)=>LZ(J,pT,Ty),QW=(J)=>LZ(J,iT,Dy),f0=(J)=>mT.test(J),$$=(J)=>VZ(J,lT),vy=(J)=>VZ(J,Sy),ST=(J)=>VZ(J,uT),Py=(J)=>VZ(J,cT),Iy=(J)=>VZ(J,pT),WW=(J)=>VZ(J,iT,!0),LZ=(J,X,Y)=>{let W=fT.exec(J);if(W){if(W[1])return X(W[1]);return Y(W[2])}return!1},VZ=(J,X,Y=!1)=>{let W=mT.exec(J);if(W){if(W[1])return X(W[1]);return Y}return!1},uT=(J)=>J==="position"||J==="percentage",pT=(J)=>J==="image"||J==="url",cT=(J)=>J==="length"||J==="size"||J==="bg-size",lT=(J)=>J==="length",Cy=(J)=>J==="number",Sy=(J)=>J==="family-name",iT=(J)=>J==="shadow";var by=()=>{let J=yw("color"),X=yw("font"),Y=yw("text"),W=yw("font-weight"),K=yw("tracking"),U=yw("leading"),q=yw("breakpoint"),H=yw("container"),L=yw("spacing"),N=yw("radius"),F=yw("shadow"),V=yw("inset-shadow"),k=yw("text-shadow"),j=yw("drop-shadow"),O=yw("blur"),M=yw("perspective"),h=yw("aspect"),x=yw("ease"),E=yw("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"],v=()=>[...C(),f0,g0],m=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],S=()=>[f0,g0,L],c=()=>[BZ,"full","auto",...S()],d=()=>[l4,"none","subgrid",f0,g0],w0=()=>["auto",{span:["full",l4,f0,g0]},l4,f0,g0],t=()=>[l4,"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=()=>[BZ,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],g=()=>[J,f0,g0],X0=()=>[...C(),ST,CT,{position:[f0,g0]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z0=()=>["auto","cover","contain",Py,Ey,{size:[f0,g0]}],U0=()=>[$B,$$,Q9],J0=()=>["","none","full",N,f0,g0],L0=()=>["",V1,$$,Q9],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,$B,ST,CT],A0=()=>["","none",O,f0,g0],r0=()=>["none",V1,f0,g0],n0=()=>["none",V1,f0,g0],n=()=>[V1,f0,g0],R0=()=>[BZ,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[g6],breakpoint:[g6],color:[My],container:[g6],"drop-shadow":[g6],ease:["in","out","in-out"],font:[xy],"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",BZ,g0,f0,h]}],container:["container"],columns:[{columns:[V1,g0,f0,H]}],"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:v()}],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:[l4,"auto",f0,g0]}],basis:[{basis:[BZ,"full","auto",H,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[V1,BZ,"auto","initial","none",g0]}],grow:[{grow:["",V1,f0,g0]}],shrink:[{shrink:["",V1,f0,g0]}],order:[{order:[l4,"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:[H,"screen",...o()]}],"min-w":[{"min-w":[H,"screen","none",...o()]}],"max-w":[{"max-w":[H,"screen","none","prose",{screen:[q]},...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,$$,Q9]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[W,f0,YB]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$B,g0]}],"font-family":[{font:[vy,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,YB]}],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,Q9]}],"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"]},l4,f0,g0],radial:["",f0,g0],conic:[l4,f0,g0]},Iy,hy]}],"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,$$,Q9]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",F,WW,QW]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",V,WW,QW]}],"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,Q9]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":L0()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",k,WW,QW]}],"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,WW,QW]}],"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":v()}],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:v()}],"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,$$,Q9,YB]}],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 rT=By(by);function h1(...J){return rT(YW(J))}var aT=p(v1(),1),Ry=GW("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 aT.jsxDEV(eG,{"data-slot":"button",className:h1(Ry({variant:X,size:Y,className:J})),...W},void 0,!1,void 0,this)}var oT=p(v1(),1);function sT({className:J,...X}){return oT.jsxDEV("kbd",{"data-slot":"kbd",className:h1("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 UW=p(G0(),1);var nT=(J)=>J.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gy=(J)=>J.replace(/^([A-Z])|[\s-_]+(\w)/g,(X,Y,W)=>W?W.toUpperCase():Y.toLowerCase()),QB=(J)=>{let X=gy(J);return X.charAt(0).toUpperCase()+X.slice(1)},KW=(...J)=>J.filter((X,Y,W)=>{return Boolean(X)&&X.trim()!==""&&W.indexOf(X)===Y}).join(" ").trim(),tT=(J)=>{for(let X in J)if(X.startsWith("aria-")||X==="role"||X==="title")return!0};var Y$=p(G0(),1);var eT={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 wx=Y$.forwardRef(({color:J="currentColor",size:X=24,strokeWidth:Y=2,absoluteStrokeWidth:W,className:K="",children:U,iconNode:q,...H},L)=>Y$.createElement("svg",{ref:L,...eT,width:X,height:X,stroke:J,strokeWidth:W?Number(Y)*24/Number(X):Y,className:KW("lucide",K),...!U&&!tT(H)&&{"aria-hidden":"true"},...H},[...q.map(([N,F])=>Y$.createElement(N,F)),...Array.isArray(U)?U:[U]]));var i4=(J,X)=>{let Y=UW.forwardRef(({className:W,...K},U)=>UW.createElement(wx,{ref:U,iconNode:X,className:KW(`lucide-${nT(QB(J))}`,`lucide-${J}`,W),...K}));return Y.displayName=QB(J),Y};var fy=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],G$=i4("arrow-left",fy);var my=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Q$=i4("arrow-right",my);var dy=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],r4=i4("loader-circle",dy);var uy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],K9=i4("x",uy);var y2=p(G0(),1);var _W=p(G0(),1),WB=768;function zx(){let[J,X]=_W.useState(void 0);return _W.useEffect(()=>{let Y=window.matchMedia(`(max-width: ${WB-1}px)`),W=()=>{X(window.innerWidth<WB)};return Y.addEventListener("change",W),X(window.innerWidth<WB),()=>Y.removeEventListener("change",W)},[]),!!J}var py=p(v1(),1);var cy=p(v1(),1);var b2=p(v1(),1);function Zx({...J}){return b2.jsxDEV(o8.Root,{"data-slot":"sheet",...J},void 0,!1,void 0,this)}function ly({...J}){return b2.jsxDEV(o8.Portal,{"data-slot":"sheet-portal",...J},void 0,!1,void 0,this)}function iy({className:J,...X}){return b2.jsxDEV(o8.Backdrop,{"data-slot":"sheet-overlay",className:h1("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 Jx({className:J,children:X,side:Y="right",showCloseButton:W=!0,...K}){return b2.jsxDEV(ly,{children:[b2.jsxDEV(iy,{},void 0,!1,void 0,this),b2.jsxDEV(o8.Popup,{"data-slot":"sheet-content","data-side":Y,className:h1("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(K9,{},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 Xx({className:J,...X}){return b2.jsxDEV("div",{"data-slot":"sheet-header",className:h1("gap-1.5 p-6 flex flex-col",J),...X},void 0,!1,void 0,this)}function $x({className:J,...X}){return b2.jsxDEV(o8.Title,{"data-slot":"sheet-title",className:h1("text-foreground text-sm font-medium",J),...X},void 0,!1,void 0,this)}function Yx({className:J,...X}){return b2.jsxDEV(o8.Description,{"data-slot":"sheet-description",className:h1("text-muted-foreground text-xs/relaxed",J),...X},void 0,!1,void 0,this)}var ry=p(v1(),1);var m6=p(v1(),1);function ay({delay:J=0,...X}){return m6.jsxDEV(t8.Provider,{"data-slot":"tooltip-provider",delay:J,...X},void 0,!1,void 0,this)}function Gx({...J}){return m6.jsxDEV(ay,{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 Wx({className:J,side:X="top",sideOffset:Y=4,align:W="center",alignOffset:K=0,children:U,...q}){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:h1("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),...q,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 Bw=p(v1(),1),sy="sidebar_state",oy=604800,ny="16rem",ty="18rem",ey="3rem",wR="b",Kx=y2.createContext(null);function Ux(){let J=y2.useContext(Kx);if(!J)throw Error("useSidebar must be used within a SidebarProvider.");return J}function _x({defaultOpen:J=!0,open:X,onOpenChange:Y,className:W,style:K,children:U,...q}){let H=zx(),[L,N]=y2.useState(!1),[F,V]=y2.useState(J),k=X??F,j=y2.useCallback((x)=>{let E=typeof x==="function"?x(k):x;if(Y)Y(E);else V(E);document.cookie=`${sy}=${E}; path=/; max-age=${oy}`},[Y,k]),O=y2.useCallback(()=>{return H?N((x)=>!x):j((x)=>!x)},[H,j,N]);y2.useEffect(()=>{let x=(E)=>{if(E.key===wR&&(E.metaKey||E.ctrlKey))E.preventDefault(),O()};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[O]);let M=k?"expanded":"collapsed",h=y2.useMemo(()=>({state:M,open:k,setOpen:j,isMobile:H,openMobile:L,setOpenMobile:N,toggleSidebar:O}),[M,k,j,H,L,N,O]);return Bw.jsxDEV(Kx.Provider,{value:h,children:Bw.jsxDEV("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":ny,"--sidebar-width-icon":ey,...K},className:h1("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",W),...q,children:U},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Hx({side:J="left",variant:X="sidebar",collapsible:Y="offExamples",className:W,children:K,...U}){let{isMobile:q,state:H,openMobile:L,setOpenMobile:N}=Ux();if(Y==="none")return Bw.jsxDEV("div",{"data-slot":"sidebar",className:h1("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",W),...U,children:K},void 0,!1,void 0,this);if(q)return Bw.jsxDEV(Zx,{open:L,onOpenChange:N,...U,children:Bw.jsxDEV(Jx,{"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":ty},side:J,children:[Bw.jsxDEV(Xx,{className:"sr-only",children:[Bw.jsxDEV($x,{children:"Sidebar"},void 0,!1,void 0,this),Bw.jsxDEV(Yx,{children:"Displays the mobile sidebar."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Bw.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 Bw.jsxDEV("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":H,"data-collapsible":H==="collapsed"?Y:"","data-variant":X,"data-side":J,"data-slot":"sidebar",children:[Bw.jsxDEV("div",{"data-slot":"sidebar-gap",className:h1("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),Bw.jsxDEV("div",{"data-slot":"sidebar-container",className:h1("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:Bw.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 qx({className:J,...X}){return Bw.jsxDEV("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:h1("gap-2 p-2 flex flex-col",J),...X},void 0,!1,void 0,this)}function Bx({className:J,...X}){return Bw.jsxDEV("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:h1("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 Lx({className:J,...X}){return Bw.jsxDEV("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:h1("px-2 py-1 relative flex w-full min-w-0 flex-col",J),...X},void 0,!1,void 0,this)}function Vx({className:J,render:X,...Y}){return oq({defaultTagName:"div",props:T5({className:h1("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 Fx({className:J,...X}){return Bw.jsxDEV("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:h1("text-xs w-full",J),...X},void 0,!1,void 0,this)}function Nx({className:J,...X}){return Bw.jsxDEV("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:h1("gap-px flex w-full min-w-0 flex-col",J),...X},void 0,!1,void 0,this)}var zR=GW("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 kx({render:J,isActive:X=!1,variant:Y="default",size:W="default",tooltip:K,className:U,...q}){let{isMobile:H,state:L}=Ux(),N=oq({defaultTagName:"button",props:T5({className:h1(zR({variant:Y,size:W}),U)},q),render:!K?J:Qx,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:W,active:X}});if(!K)return N;if(typeof K==="string")K={children:K};return Bw.jsxDEV(Gx,{children:[N,Bw.jsxDEV(Wx,{side:"right",align:"center",hidden:L!=="collapsed"||H,...K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ax=p(v1(),1);function jx({className:J,...X}){return Ax.jsxDEV(r4,{role:"status","aria-label":"Loading",className:h1("size-4 animate-spin",J),...X},void 0,!1,void 0,this)}var U9=p(v1(),1);function Mx({...J}){return U9.jsxDEV(C6.Root,{"data-slot":"context-menu",...J},void 0,!1,void 0,this)}function Ox({className:J,...X}){return U9.jsxDEV(C6.Trigger,{"data-slot":"context-menu-trigger",className:h1("select-none",J),...X},void 0,!1,void 0,this)}function Dx({className:J,align:X="start",alignOffset:Y=4,side:W="right",sideOffset:K=0,...U}){return U9.jsxDEV(C6.Portal,{children:U9.jsxDEV(C6.Positioner,{className:"isolate z-50 outline-none",align:X,alignOffset:Y,side:W,sideOffset:K,children:U9.jsxDEV(C6.Popup,{"data-slot":"context-menu-content",className:h1("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 KB({className:J,inset:X,variant:Y="default",...W}){return U9.jsxDEV(C6.Item,{"data-slot":"context-menu-item","data-inset":X,"data-variant":Y,className:h1("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 _9=p(v1(),1);function Tx({story:J,...X}){let[Y]=qZ(),{activeTab:W,setActiveTab:K}=$W(),U=MT(),q=TT();function H(N){return()=>{let F=Y.find((V)=>V.path===J.id);if(F)return K(F.id);if(W?.temporary)return q(W.id,{name:J.name,path:J.id,temporary:N==="temporary"});return U({name:J.name,path:J.id,temporary:N==="temporary"})}}function L(){return()=>{U({name:J.name,path:J.id,temporary:!1})}}return _9.jsxDEV(Mx,{children:[_9.jsxDEV(Ox,{render:_9.jsxDEV(kx,{onClick:H("temporary"),onDoubleClick:H("permanent"),...X},void 0,!1,void 0,this)},void 0,!1,void 0,this),_9.jsxDEV(Dx,{children:[_9.jsxDEV(KB,{onSelect:H("permanent"),children:"Open"},void 0,!1,void 0,this),_9.jsxDEV(KB,{onSelect: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 lw=p(v1(),1);function Ex(){let{data:J,isLoading:X,error:Y}=QH({queryKey:["stories"],queryFn:xA}),W=xT();return xx.useEffect(()=>{if(J)W(J)},[J,W]),lw.jsxDEV(Hx,{children:[lw.jsxDEV(qx,{children:lw.jsxDEV(f6,{variant:"outline",size:"lg",className:"flex justify-between gap-1 w-full text-zinc-500 font-normal",children:[lw.jsxDEV("span",{children:"Search..."},void 0,!1,void 0,this),lw.jsxDEV(sT,{children:"⌘ K"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),lw.jsxDEV(Bx,{children:[X&&lw.jsxDEV("div",{className:"w-full py-8 flex items-center justify-center",children:lw.jsxDEV(jx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&lw.jsxDEV("div",{className:"w-full py-8 flex flex-col items-center justify-center text-center gap-2",children:[lw.jsxDEV("p",{className:"text-xs text-destructive font-medium",children:"Failed to load stories."},void 0,!1,void 0,this),lw.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)=>lw.jsxDEV(Lx,{children:[lw.jsxDEV(Vx,{children:K},void 0,!1,void 0,this),lw.jsxDEV(Fx,{children:lw.jsxDEV(Nx,{children:J[K]?.map((U)=>lw.jsxDEV(Tx,{story:{id:U.path,name:U.name},children:lw.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 FZ=p(v1(),1);function hx(){let[J]=qZ();return FZ.jsxDEV(FZ.Fragment,{children:J.map((X)=>FZ.jsxDEV(R6.Panel,{value:X.id,className:"flex-1 min-h-0 data-[hidden]:hidden",keepMounted:!0,children:FZ.jsxDEV("iframe",{src:`/iframe/${X.path}`,className:"w-full h-full border-none bg-white",title:X.name},void 0,!1,void 0,this)},X.id,!1,void 0,this))},void 0,!1,void 0,this)}var W8=p(v1(),1);function vx(){let[J]=qZ(),X=OT(),Y=DT();return W8.jsxDEV(R6.List,{className:"border-b h-8 bg-sidebar flex w-full",children:[J.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",children:W8.jsxDEV(G$,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W8.jsxDEV(f6,{variant:"ghost",size:"icon-sm",children:W8.jsxDEV(Q$,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.map((W)=>W8.jsxDEV(R6.Tab,{nativeButton:!1,render:W8.jsxDEV("div",{},void 0,!1,void 0,this),value:W.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":W.temporary,onClick:()=>{if(W.temporary)X(W.id)},children:[W.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:(K)=>{K.stopPropagation(),Y(W.id)},children:W8.jsxDEV(K9,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},W.id,!0,void 0,this))]},void 0,!0,void 0,this)}var a4=p(v1(),1);function Px(){let{activeTab:J,setActiveTab:X}=$W();return a4.jsxDEV(YH,{client:bY,children:a4.jsxDEV(_x,{children:[a4.jsxDEV(Ex,{},void 0,!1,void 0,this),a4.jsxDEV("main",{className:"flex flex-col w-full h-screen overflow-hidden",children:a4.jsxDEV(R6.Root,{className:"flex flex-col flex-1 min-h-0",value:J?.id??void 0,onValueChange:(Y)=>X(Y),children:[a4.jsxDEV(vx,{},void 0,!1,void 0,this),a4.jsxDEV(hx,{},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 Sx=p(v1(),1),Cx=document.getElementById("root");if(!Cx)throw Error("Root element not found");function ZR(){let J=0,X=10;function Y(){let K=document.querySelectorAll("iframe");K.forEach((U)=>{let q=U.src,H=new URL(q);H.searchParams.set("_hmr",Date.now().toString()),U.src=H.toString()}),console.log(`[HMR] Refreshed ${K.length} iframe(s)`),bY.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()}Ix.createRoot(Cx).render(Sx.jsxDEV(Px,{},void 0,!1,void 0,this));ZR();
|
|
263
|
+
|
|
264
|
+
//# debugId=4FB5566DDB85283864756E2164756E21
|
|
265
|
+
//# sourceMappingURL=chunk-we1qr50v.js.map
|