@ttmg/cli 0.1.3-beta.3 → 0.1.3
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/CHANGELOG.md +14 -1
- package/dist/index.js +687 -816
- package/dist/index.js.map +1 -1
- package/dist/public/assets/index-B05gzsFQ.css +1 -0
- package/dist/public/dev-setup.js +332 -0
- package/dist/public/index.html +24 -0
- package/dist/public/scripts/krypton.js +11 -0
- package/dist/public/scripts/ttmg-core.js +24 -0
- package/dist/template/open_context.html.hbs +30 -0
- package/dist/template/open_context_sdk.js.hbs +16 -0
- package/package.json +6 -3
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ==========================================
|
|
3
|
+
*
|
|
4
|
+
* 项目:游戏资源上传与调试环境初始化
|
|
5
|
+
* 说明:用于启动小游戏浏览器调试环境的脚本
|
|
6
|
+
* 作者:RedSheep
|
|
7
|
+
* 日期:2025-09-05 18:25:20
|
|
8
|
+
* 版本:1.0.0
|
|
9
|
+
* ==========================================
|
|
10
|
+
*/
|
|
11
|
+
function tk(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in e)){const c=Object.getOwnPropertyDescriptor(a,l);c&&Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(l){if(l.ep)return;l.ep=!0;const c=r(l);fetch(l.href,c)}})();function _1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dg={exports:{}},kl={};/**
|
|
12
|
+
* @license React
|
|
13
|
+
* react-jsx-runtime.production.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/var Ky;function nk(){if(Ky)return kl;Ky=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var f in l)f!=="key"&&(c[f]=l[f])}else c=l;return l=c.ref,{$$typeof:e,type:a,key:u,ref:l!==void 0?l:null,props:c}}return kl.Fragment=t,kl.jsx=r,kl.jsxs=r,kl}var Qy;function rk(){return Qy||(Qy=1,Dg.exports=nk()),Dg.exports}var F=rk(),Pg={exports:{}},Rl={},Vg={exports:{}},Mg={};/**
|
|
20
|
+
* @license React
|
|
21
|
+
* scheduler.production.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/var Zy;function ik(){return Zy||(Zy=1,(function(e){function t(L,J){var le=L.length;L.push(J);e:for(;0<le;){var ie=le-1>>>1,R=L[ie];if(0<l(R,J))L[ie]=J,L[le]=R,le=ie;else break e}}function r(L){return L.length===0?null:L[0]}function a(L){if(L.length===0)return null;var J=L[0],le=L.pop();if(le!==J){L[0]=le;e:for(var ie=0,R=L.length,U=R>>>1;ie<U;){var re=2*(ie+1)-1,ae=L[re],ue=re+1,ye=L[ue];if(0>l(ae,le))ue<R&&0>l(ye,ae)?(L[ie]=ye,L[ue]=le,ie=ue):(L[ie]=ae,L[re]=le,ie=re);else if(ue<R&&0>l(ye,le))L[ie]=ye,L[ue]=le,ie=ue;else break e}}return J}function l(L,J){var le=L.sortIndex-J.sortIndex;return le!==0?le:L.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],p=[],m=1,y=null,b=3,x=!1,E=!1,C=!1,T=!1,k=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function z(L){for(var J=r(p);J!==null;){if(J.callback===null)a(p);else if(J.startTime<=L)a(p),J.sortIndex=J.expirationTime,t(h,J);else break;J=r(p)}}function A(L){if(C=!1,z(L),!E)if(r(h)!==null)E=!0,B||(B=!0,P());else{var J=r(p);J!==null&&oe(A,J.startTime-L)}}var B=!1,j=-1,q=5,X=-1;function te(){return T?!0:!(e.unstable_now()-X<q)}function K(){if(T=!1,B){var L=e.unstable_now();X=L;var J=!0;try{e:{E=!1,C&&(C=!1,O(j),j=-1),x=!0;var le=b;try{t:{for(z(L),y=r(h);y!==null&&!(y.expirationTime>L&&te());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,b=y.priorityLevel;var R=ie(y.expirationTime<=L);if(L=e.unstable_now(),typeof R=="function"){y.callback=R,z(L),J=!0;break t}y===r(h)&&a(h),z(L)}else a(h);y=r(h)}if(y!==null)J=!0;else{var U=r(p);U!==null&&oe(A,U.startTime-L),J=!1}}break e}finally{y=null,b=le,x=!1}J=void 0}}finally{J?P():B=!1}}}var P;if(typeof N=="function")P=function(){N(K)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,se=Z.port2;Z.port1.onmessage=K,P=function(){se.postMessage(null)}}else P=function(){k(K,0)};function oe(L,J){j=k(function(){L(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(L){switch(b){case 1:case 2:case 3:var J=3;break;default:J=b}var le=b;b=J;try{return L()}finally{b=le}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(L,J){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var le=b;b=L;try{return J()}finally{b=le}},e.unstable_scheduleCallback=function(L,J,le){var ie=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?ie+le:ie):le=ie,L){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=le+R,L={id:m++,callback:J,priorityLevel:L,startTime:le,expirationTime:R,sortIndex:-1},le>ie?(L.sortIndex=le,t(p,L),r(h)===null&&L===r(p)&&(C?(O(j),j=-1):C=!0,oe(A,le-ie))):(L.sortIndex=R,t(h,L),E||x||(E=!0,B||(B=!0,P()))),L},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(L){var J=b;return function(){var le=b;b=J;try{return L.apply(this,arguments)}finally{b=le}}}})(Mg)),Mg}var Jy;function ak(){return Jy||(Jy=1,Vg.exports=ik()),Vg.exports}var Lg={exports:{}},Ee={};/**
|
|
28
|
+
* @license React
|
|
29
|
+
* react.production.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/var e0;function ok(){if(e0)return Ee;e0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function b(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function T(R,U,re){this.props=R,this.context=U,this.refs=C,this.updater=re||x}T.prototype.isReactComponent={},T.prototype.setState=function(R,U){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,U,"setState")},T.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function k(){}k.prototype=T.prototype;function O(R,U,re){this.props=R,this.context=U,this.refs=C,this.updater=re||x}var N=O.prototype=new k;N.constructor=O,E(N,T.prototype),N.isPureReactComponent=!0;var z=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},B=Object.prototype.hasOwnProperty;function j(R,U,re,ae,ue,ye){return re=ye.ref,{$$typeof:e,type:R,key:U,ref:re!==void 0?re:null,props:ye}}function q(R,U){return j(R.type,U,void 0,void 0,void 0,R.props)}function X(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function te(R){var U={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(re){return U[re]})}var K=/\/+/g;function P(R,U){return typeof R=="object"&&R!==null&&R.key!=null?te(""+R.key):U.toString(36)}function Z(){}function se(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Z,Z):(R.status="pending",R.then(function(U){R.status==="pending"&&(R.status="fulfilled",R.value=U)},function(U){R.status==="pending"&&(R.status="rejected",R.reason=U)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function oe(R,U,re,ae,ue){var ye=typeof R;(ye==="undefined"||ye==="boolean")&&(R=null);var fe=!1;if(R===null)fe=!0;else switch(ye){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(R.$$typeof){case e:case t:fe=!0;break;case m:return fe=R._init,oe(fe(R._payload),U,re,ae,ue)}}if(fe)return ue=ue(R),fe=ae===""?"."+P(R,0):ae,z(ue)?(re="",fe!=null&&(re=fe.replace(K,"$&/")+"/"),oe(ue,U,re,"",function(ee){return ee})):ue!=null&&(X(ue)&&(ue=q(ue,re+(ue.key==null||R&&R.key===ue.key?"":(""+ue.key).replace(K,"$&/")+"/")+fe)),U.push(ue)),1;fe=0;var lt=ae===""?".":ae+":";if(z(R))for(var Q=0;Q<R.length;Q++)ae=R[Q],ye=lt+P(ae,Q),fe+=oe(ae,U,re,ye,ue);else if(Q=b(R),typeof Q=="function")for(R=Q.call(R),Q=0;!(ae=R.next()).done;)ae=ae.value,ye=lt+P(ae,Q++),fe+=oe(ae,U,re,ye,ue);else if(ye==="object"){if(typeof R.then=="function")return oe(se(R),U,re,ae,ue);throw U=String(R),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return fe}function L(R,U,re){if(R==null)return R;var ae=[],ue=0;return oe(R,ae,"","",function(ye){return U.call(re,ye,ue++)}),ae}function J(R){if(R._status===-1){var U=R._result;U=U(),U.then(function(re){(R._status===0||R._status===-1)&&(R._status=1,R._result=re)},function(re){(R._status===0||R._status===-1)&&(R._status=2,R._result=re)}),R._status===-1&&(R._status=0,R._result=U)}if(R._status===1)return R._result.default;throw R._result}var le=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function ie(){}return Ee.Children={map:L,forEach:function(R,U,re){L(R,function(){U.apply(this,arguments)},re)},count:function(R){var U=0;return L(R,function(){U++}),U},toArray:function(R){return L(R,function(U){return U})||[]},only:function(R){if(!X(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Ee.Component=T,Ee.Fragment=r,Ee.Profiler=l,Ee.PureComponent=O,Ee.StrictMode=a,Ee.Suspense=h,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(R){return A.H.useMemoCache(R)}},Ee.cache=function(R){return function(){return R.apply(null,arguments)}},Ee.cloneElement=function(R,U,re){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var ae=E({},R.props),ue=R.key,ye=void 0;if(U!=null)for(fe in U.ref!==void 0&&(ye=void 0),U.key!==void 0&&(ue=""+U.key),U)!B.call(U,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&U.ref===void 0||(ae[fe]=U[fe]);var fe=arguments.length-2;if(fe===1)ae.children=re;else if(1<fe){for(var lt=Array(fe),Q=0;Q<fe;Q++)lt[Q]=arguments[Q+2];ae.children=lt}return j(R.type,ue,void 0,void 0,ye,ae)},Ee.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},Ee.createElement=function(R,U,re){var ae,ue={},ye=null;if(U!=null)for(ae in U.key!==void 0&&(ye=""+U.key),U)B.call(U,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ue[ae]=U[ae]);var fe=arguments.length-2;if(fe===1)ue.children=re;else if(1<fe){for(var lt=Array(fe),Q=0;Q<fe;Q++)lt[Q]=arguments[Q+2];ue.children=lt}if(R&&R.defaultProps)for(ae in fe=R.defaultProps,fe)ue[ae]===void 0&&(ue[ae]=fe[ae]);return j(R,ye,void 0,void 0,null,ue)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(R){return{$$typeof:f,render:R}},Ee.isValidElement=X,Ee.lazy=function(R){return{$$typeof:m,_payload:{_status:-1,_result:R},_init:J}},Ee.memo=function(R,U){return{$$typeof:p,type:R,compare:U===void 0?null:U}},Ee.startTransition=function(R){var U=A.T,re={};A.T=re;try{var ae=R(),ue=A.S;ue!==null&&ue(re,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(ie,le)}catch(ye){le(ye)}finally{A.T=U}},Ee.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},Ee.use=function(R){return A.H.use(R)},Ee.useActionState=function(R,U,re){return A.H.useActionState(R,U,re)},Ee.useCallback=function(R,U){return A.H.useCallback(R,U)},Ee.useContext=function(R){return A.H.useContext(R)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(R,U){return A.H.useDeferredValue(R,U)},Ee.useEffect=function(R,U,re){var ae=A.H;if(typeof re=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(R,U)},Ee.useId=function(){return A.H.useId()},Ee.useImperativeHandle=function(R,U,re){return A.H.useImperativeHandle(R,U,re)},Ee.useInsertionEffect=function(R,U){return A.H.useInsertionEffect(R,U)},Ee.useLayoutEffect=function(R,U){return A.H.useLayoutEffect(R,U)},Ee.useMemo=function(R,U){return A.H.useMemo(R,U)},Ee.useOptimistic=function(R,U){return A.H.useOptimistic(R,U)},Ee.useReducer=function(R,U,re){return A.H.useReducer(R,U,re)},Ee.useRef=function(R){return A.H.useRef(R)},Ee.useState=function(R){return A.H.useState(R)},Ee.useSyncExternalStore=function(R,U,re){return A.H.useSyncExternalStore(R,U,re)},Ee.useTransition=function(){return A.H.useTransition()},Ee.version="19.1.1",Ee}var t0;function np(){return t0||(t0=1,Lg.exports=ok()),Lg.exports}var Bg={exports:{}},Vt={};/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-dom.production.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/var n0;function lk(){if(n0)return Vt;n0=1;var e=np();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(h,p,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:h,containerInfo:p,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Vt.createPortal=function(h,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return c(h,p,null,m)},Vt.flushSync=function(h){var p=u.T,m=a.p;try{if(u.T=null,a.p=2,h)return h()}finally{u.T=p,a.p=m,a.d.f()}},Vt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(h,p))},Vt.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Vt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var m=p.as,y=f(m,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?a.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:x}):m==="script"&&a.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Vt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=f(p.as,p.crossOrigin);a.d.M(h,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(h)},Vt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,y=f(m,p.crossOrigin);a.d.L(h,m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Vt.preloadModule=function(h,p){if(typeof h=="string")if(p){var m=f(p.as,p.crossOrigin);a.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(h)},Vt.requestFormReset=function(h){a.d.r(h)},Vt.unstable_batchedUpdates=function(h,p){return h(p)},Vt.useFormState=function(h,p,m){return u.H.useFormState(h,p,m)},Vt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Vt.version="19.1.1",Vt}var r0;function I1(){if(r0)return Bg.exports;r0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Bg.exports=lk(),Bg.exports}/**
|
|
44
|
+
* @license React
|
|
45
|
+
* react-dom-client.production.js
|
|
46
|
+
*
|
|
47
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the MIT license found in the
|
|
50
|
+
* LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/var i0;function sk(){if(i0)return Rl;i0=1;var e=ak(),t=np(),r=I1();function a(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var i=n,o=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(o=i.return),n=i.return;while(n)}return i.tag===3?o:null}function u(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(c(n)!==n)throw Error(a(188))}function h(n){var i=n.alternate;if(!i){if(i=c(n),i===null)throw Error(a(188));return i!==n?null:n}for(var o=n,s=i;;){var d=o.return;if(d===null)break;var g=d.alternate;if(g===null){if(s=d.return,s!==null){o=s;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===o)return f(d),n;if(g===s)return f(d),i;g=g.sibling}throw Error(a(188))}if(o.return!==s.return)o=d,s=g;else{for(var v=!1,S=d.child;S;){if(S===o){v=!0,o=d,s=g;break}if(S===s){v=!0,s=d,o=g;break}S=S.sibling}if(!v){for(S=g.child;S;){if(S===o){v=!0,o=g,s=d;break}if(S===s){v=!0,s=g,o=d;break}S=S.sibling}if(!v)throw Error(a(189))}}if(o.alternate!==s)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?n:i}function p(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=p(n),i!==null)return i;n=n.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),N=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function P(n){return n===null||typeof n!="object"?null:(n=K&&n[K]||n["@@iterator"],typeof n=="function"?n:null)}var Z=Symbol.for("react.client.reference");function se(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Z?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case T:return"Profiler";case C:return"StrictMode";case A:return"Suspense";case B:return"SuspenseList";case X:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case x:return"Portal";case N:return(n.displayName||"Context")+".Provider";case O:return(n._context.displayName||"Context")+".Consumer";case z:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case j:return i=n.displayName||null,i!==null?i:se(n.type)||"Memo";case q:i=n._payload,n=n._init;try{return se(n(i))}catch{}}return null}var oe=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ie=[],R=-1;function U(n){return{current:n}}function re(n){0>R||(n.current=ie[R],ie[R]=null,R--)}function ae(n,i){R++,ie[R]=n.current,n.current=i}var ue=U(null),ye=U(null),fe=U(null),lt=U(null);function Q(n,i){switch(ae(fe,i),ae(ye,n),ae(ue,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?wy(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=wy(i),n=Oy(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}re(ue),ae(ue,n)}function ee(){re(ue),re(ye),re(fe)}function Se(n){n.memoizedState!==null&&ae(lt,n);var i=ue.current,o=Oy(i,n.type);i!==o&&(ae(ye,n),ae(ue,o))}function Re(n){ye.current===n&&(re(ue),re(ye)),lt.current===n&&(re(lt),El._currentValue=le)}var _e=Object.prototype.hasOwnProperty,it=e.unstable_scheduleCallback,Jt=e.unstable_cancelCallback,Zi=e.unstable_shouldYield,Ro=e.unstable_requestPaint,Sn=e.unstable_now,Sd=e.unstable_getCurrentPriorityLevel,No=e.unstable_ImmediatePriority,ys=e.unstable_UserBlockingPriority,vi=e.unstable_NormalPriority,xs=e.unstable_LowPriority,Ji=e.unstable_IdlePriority,Mw=e.log,Lw=e.unstable_setDisableYieldValue,Ao=null,en=null;function Dr(n){if(typeof Mw=="function"&&Lw(n),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(Ao,n)}catch{}}var tn=Math.clz32?Math.clz32:$w,Bw=Math.log,Hw=Math.LN2;function $w(n){return n>>>=0,n===0?32:31-(Bw(n)/Hw|0)|0}var Ss=256,Es=4194304;function bi(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Cs(n,i,o){var s=n.pendingLanes;if(s===0)return 0;var d=0,g=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var S=s&134217727;return S!==0?(s=S&~g,s!==0?d=bi(s):(v&=S,v!==0?d=bi(v):o||(o=S&~n,o!==0&&(d=bi(o))))):(S=s&~g,S!==0?d=bi(S):v!==0?d=bi(v):o||(o=s&~n,o!==0&&(d=bi(o)))),d===0?0:i!==0&&i!==d&&(i&g)===0&&(g=d&-d,o=i&-i,g>=o||g===32&&(o&4194048)!==0)?i:d}function _o(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function Fw(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lm(){var n=Ss;return Ss<<=1,(Ss&4194048)===0&&(Ss=256),n}function sm(){var n=Es;return Es<<=1,(Es&62914560)===0&&(Es=4194304),n}function Ed(n){for(var i=[],o=0;31>o;o++)i.push(n);return i}function Io(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function jw(n,i,o,s,d,g){var v=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var S=n.entanglements,_=n.expirationTimes,M=n.hiddenUpdates;for(o=v&~o;0<o;){var G=31-tn(o),Y=1<<G;S[G]=0,_[G]=-1;var H=M[G];if(H!==null)for(M[G]=null,G=0;G<H.length;G++){var $=H[G];$!==null&&($.lane&=-536870913)}o&=~Y}s!==0&&cm(n,s,0),g!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=g&~(v&~i))}function cm(n,i,o){n.pendingLanes|=i,n.suspendedLanes&=~i;var s=31-tn(i);n.entangledLanes|=i,n.entanglements[s]=n.entanglements[s]|1073741824|o&4194090}function um(n,i){var o=n.entangledLanes|=i;for(n=n.entanglements;o;){var s=31-tn(o),d=1<<s;d&i|n[s]&i&&(n[s]|=i),o&=~d}}function Cd(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function wd(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function dm(){var n=J.p;return n!==0?n:(n=window.event,n===void 0?32:Uy(n.type))}function Uw(n,i){var o=J.p;try{return J.p=n,i()}finally{J.p=o}}var Pr=Math.random().toString(36).slice(2),Dt="__reactFiber$"+Pr,Ft="__reactProps$"+Pr,ea="__reactContainer$"+Pr,Od="__reactEvents$"+Pr,Gw="__reactListeners$"+Pr,Ww="__reactHandles$"+Pr,fm="__reactResources$"+Pr,zo="__reactMarker$"+Pr;function Td(n){delete n[Dt],delete n[Ft],delete n[Od],delete n[Gw],delete n[Ww]}function ta(n){var i=n[Dt];if(i)return i;for(var o=n.parentNode;o;){if(i=o[ea]||o[Dt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(n=Ny(n);n!==null;){if(o=n[Dt])return o;n=Ny(n)}return i}n=o,o=n.parentNode}return null}function na(n){if(n=n[Dt]||n[ea]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}function Do(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function ra(n){var i=n[fm];return i||(i=n[fm]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function bt(n){n[zo]=!0}var gm=new Set,hm={};function yi(n,i){ia(n,i),ia(n+"Capture",i)}function ia(n,i){for(hm[n]=i,n=0;n<i.length;n++)gm.add(i[n])}var qw=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]*$"),pm={},mm={};function Yw(n){return _e.call(mm,n)?!0:_e.call(pm,n)?!1:qw.test(n)?mm[n]=!0:(pm[n]=!0,!1)}function ws(n,i,o){if(Yw(i))if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var s=i.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+o)}}function Os(n,i,o){if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+o)}}function cr(n,i,o,s){if(s===null)n.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(i,o,""+s)}}var kd,vm;function aa(n){if(kd===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);kd=i&&i[1]||"",vm=-1<o.stack.indexOf(`
|
|
52
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
53
|
+
`+kd+n+vm}var Rd=!1;function Nd(n,i){if(!n||Rd)return"";Rd=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(i){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($){var H=$}Reflect.construct(n,[],Y)}else{try{Y.call()}catch($){H=$}n.call(Y.prototype)}}else{try{throw Error()}catch($){H=$}(Y=n())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch($){if($&&H&&typeof $.stack=="string")return[$.stack,H.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=s.DetermineComponentFrameRoot(),v=g[0],S=g[1];if(v&&S){var _=v.split(`
|
|
54
|
+
`),M=S.split(`
|
|
55
|
+
`);for(d=s=0;s<_.length&&!_[s].includes("DetermineComponentFrameRoot");)s++;for(;d<M.length&&!M[d].includes("DetermineComponentFrameRoot");)d++;if(s===_.length||d===M.length)for(s=_.length-1,d=M.length-1;1<=s&&0<=d&&_[s]!==M[d];)d--;for(;1<=s&&0<=d;s--,d--)if(_[s]!==M[d]){if(s!==1||d!==1)do if(s--,d--,0>d||_[s]!==M[d]){var G=`
|
|
56
|
+
`+_[s].replace(" at new "," at ");return n.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",n.displayName)),G}while(1<=s&&0<=d);break}}}finally{Rd=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?aa(o):""}function Xw(n){switch(n.tag){case 26:case 27:case 5:return aa(n.type);case 16:return aa("Lazy");case 13:return aa("Suspense");case 19:return aa("SuspenseList");case 0:case 15:return Nd(n.type,!1);case 11:return Nd(n.type.render,!1);case 1:return Nd(n.type,!0);case 31:return aa("Activity");default:return""}}function bm(n){try{var i="";do i+=Xw(n),n=n.return;while(n);return i}catch(o){return`
|
|
57
|
+
Error generating stack: `+o.message+`
|
|
58
|
+
`+o.stack}}function En(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function ym(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Kw(n){var i=ym(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),s=""+n[i];if(!n.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,g=o.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(v){s=""+v,g.call(this,v)}}),Object.defineProperty(n,i,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(v){s=""+v},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ts(n){n._valueTracker||(n._valueTracker=Kw(n))}function xm(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var o=i.getValue(),s="";return n&&(s=ym(n)?n.checked?"true":"false":n.value),n=s,n!==o?(i.setValue(n),!0):!1}function ks(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Qw=/[\n"\\]/g;function Cn(n){return n.replace(Qw,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Ad(n,i,o,s,d,g,v,S){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),i!=null?v==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+En(i)):n.value!==""+En(i)&&(n.value=""+En(i)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),i!=null?_d(n,v,En(i)):o!=null?_d(n,v,En(o)):s!=null&&n.removeAttribute("value"),d==null&&g!=null&&(n.defaultChecked=!!g),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.name=""+En(S):n.removeAttribute("name")}function Sm(n,i,o,s,d,g,v,S){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),i!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||i!=null))return;o=o!=null?""+En(o):"",i=i!=null?""+En(i):o,S||i===n.value||(n.value=i),n.defaultValue=i}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=S?n.checked:!!s,n.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v)}function _d(n,i,o){i==="number"&&ks(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function oa(n,i,o,s){if(n=n.options,i){i={};for(var d=0;d<o.length;d++)i["$"+o[d]]=!0;for(o=0;o<n.length;o++)d=i.hasOwnProperty("$"+n[o].value),n[o].selected!==d&&(n[o].selected=d),d&&s&&(n[o].defaultSelected=!0)}else{for(o=""+En(o),i=null,d=0;d<n.length;d++){if(n[d].value===o){n[d].selected=!0,s&&(n[d].defaultSelected=!0);return}i!==null||n[d].disabled||(i=n[d])}i!==null&&(i.selected=!0)}}function Em(n,i,o){if(i!=null&&(i=""+En(i),i!==n.value&&(n.value=i),o==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=o!=null?""+En(o):""}function Cm(n,i,o,s){if(i==null){if(s!=null){if(o!=null)throw Error(a(92));if(oe(s)){if(1<s.length)throw Error(a(93));s=s[0]}o=s}o==null&&(o=""),i=o}o=En(i),n.defaultValue=o,s=n.textContent,s===o&&s!==""&&s!==null&&(n.value=s)}function la(n,i){if(i){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=i;return}}n.textContent=i}var Zw=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(" "));function wm(n,i,o){var s=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?s?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":s?n.setProperty(i,o):typeof o!="number"||o===0||Zw.has(i)?i==="float"?n.cssFloat=o:n[i]=(""+o).trim():n[i]=o+"px"}function Om(n,i,o){if(i!=null&&typeof i!="object")throw Error(a(62));if(n=n.style,o!=null){for(var s in o)!o.hasOwnProperty(s)||i!=null&&i.hasOwnProperty(s)||(s.indexOf("--")===0?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="");for(var d in i)s=i[d],i.hasOwnProperty(d)&&o[d]!==s&&wm(n,d,s)}else for(var g in i)i.hasOwnProperty(g)&&wm(n,g,i[g])}function Id(n){if(n.indexOf("-")===-1)return!1;switch(n){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}}var Jw=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"]]),eO=/^[\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;function Rs(n){return eO.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var zd=null;function Dd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var sa=null,ca=null;function Tm(n){var i=na(n);if(i&&(n=i.stateNode)){var o=n[Ft]||null;e:switch(n=i.stateNode,i.type){case"input":if(Ad(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Cn(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var s=o[i];if(s!==n&&s.form===n.form){var d=s[Ft]||null;if(!d)throw Error(a(90));Ad(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<o.length;i++)s=o[i],s.form===n.form&&xm(s)}break e;case"textarea":Em(n,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&oa(n,!!o.multiple,i,!1)}}}var Pd=!1;function km(n,i,o){if(Pd)return n(i,o);Pd=!0;try{var s=n(i);return s}finally{if(Pd=!1,(sa!==null||ca!==null)&&(gc(),sa&&(i=sa,n=ca,ca=sa=null,Tm(i),n)))for(i=0;i<n.length;i++)Tm(n[i])}}function Po(n,i){var o=n.stateNode;if(o===null)return null;var s=o[Ft]||null;if(s===null)return null;o=s[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(n=n.type,s=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!s;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(a(231,i,typeof o));return o}var ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vd=!1;if(ur)try{var Vo={};Object.defineProperty(Vo,"passive",{get:function(){Vd=!0}}),window.addEventListener("test",Vo,Vo),window.removeEventListener("test",Vo,Vo)}catch{Vd=!1}var Vr=null,Md=null,Ns=null;function Rm(){if(Ns)return Ns;var n,i=Md,o=i.length,s,d="value"in Vr?Vr.value:Vr.textContent,g=d.length;for(n=0;n<o&&i[n]===d[n];n++);var v=o-n;for(s=1;s<=v&&i[o-s]===d[g-s];s++);return Ns=d.slice(n,1<s?1-s:void 0)}function As(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function _s(){return!0}function Nm(){return!1}function jt(n){function i(o,s,d,g,v){this._reactName=o,this._targetInst=d,this.type=s,this.nativeEvent=g,this.target=v,this.currentTarget=null;for(var S in n)n.hasOwnProperty(S)&&(o=n[S],this[S]=o?o(g):g[S]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?_s:Nm,this.isPropagationStopped=Nm,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=_s)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=_s)},persist:function(){},isPersistent:_s}),i}var xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Is=jt(xi),Mo=m({},xi,{view:0,detail:0}),tO=jt(Mo),Ld,Bd,Lo,zs=m({},Mo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$d,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Lo&&(Lo&&n.type==="mousemove"?(Ld=n.screenX-Lo.screenX,Bd=n.screenY-Lo.screenY):Bd=Ld=0,Lo=n),Ld)},movementY:function(n){return"movementY"in n?n.movementY:Bd}}),Am=jt(zs),nO=m({},zs,{dataTransfer:0}),rO=jt(nO),iO=m({},Mo,{relatedTarget:0}),Hd=jt(iO),aO=m({},xi,{animationName:0,elapsedTime:0,pseudoElement:0}),oO=jt(aO),lO=m({},xi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),sO=jt(lO),cO=m({},xi,{data:0}),_m=jt(cO),uO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dO={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"},fO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gO(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=fO[n])?!!i[n]:!1}function $d(){return gO}var hO=m({},Mo,{key:function(n){if(n.key){var i=uO[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=As(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?dO[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$d,charCode:function(n){return n.type==="keypress"?As(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?As(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),pO=jt(hO),mO=m({},zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Im=jt(mO),vO=m({},Mo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$d}),bO=jt(vO),yO=m({},xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),xO=jt(yO),SO=m({},zs,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),EO=jt(SO),CO=m({},xi,{newState:0,oldState:0}),wO=jt(CO),OO=[9,13,27,32],Fd=ur&&"CompositionEvent"in window,Bo=null;ur&&"documentMode"in document&&(Bo=document.documentMode);var TO=ur&&"TextEvent"in window&&!Bo,zm=ur&&(!Fd||Bo&&8<Bo&&11>=Bo),Dm=" ",Pm=!1;function Vm(n,i){switch(n){case"keyup":return OO.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ua=!1;function kO(n,i){switch(n){case"compositionend":return Mm(i);case"keypress":return i.which!==32?null:(Pm=!0,Dm);case"textInput":return n=i.data,n===Dm&&Pm?null:n;default:return null}}function RO(n,i){if(ua)return n==="compositionend"||!Fd&&Vm(n,i)?(n=Rm(),Ns=Md=Vr=null,ua=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return zm&&i.locale!=="ko"?null:i.data;default:return null}}var NO={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};function Lm(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!NO[n.type]:i==="textarea"}function Bm(n,i,o,s){sa?ca?ca.push(s):ca=[s]:sa=s,i=yc(i,"onChange"),0<i.length&&(o=new Is("onChange","change",null,o,s),n.push({event:o,listeners:i}))}var Ho=null,$o=null;function AO(n){yy(n,0)}function Ds(n){var i=Do(n);if(xm(i))return n}function Hm(n,i){if(n==="change")return i}var $m=!1;if(ur){var jd;if(ur){var Ud="oninput"in document;if(!Ud){var Fm=document.createElement("div");Fm.setAttribute("oninput","return;"),Ud=typeof Fm.oninput=="function"}jd=Ud}else jd=!1;$m=jd&&(!document.documentMode||9<document.documentMode)}function jm(){Ho&&(Ho.detachEvent("onpropertychange",Um),$o=Ho=null)}function Um(n){if(n.propertyName==="value"&&Ds($o)){var i=[];Bm(i,$o,n,Dd(n)),km(AO,i)}}function _O(n,i,o){n==="focusin"?(jm(),Ho=i,$o=o,Ho.attachEvent("onpropertychange",Um)):n==="focusout"&&jm()}function IO(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ds($o)}function zO(n,i){if(n==="click")return Ds(i)}function DO(n,i){if(n==="input"||n==="change")return Ds(i)}function PO(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var nn=typeof Object.is=="function"?Object.is:PO;function Fo(n,i){if(nn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var o=Object.keys(n),s=Object.keys(i);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var d=o[s];if(!_e.call(i,d)||!nn(n[d],i[d]))return!1}return!0}function Gm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Wm(n,i){var o=Gm(n);n=0;for(var s;o;){if(o.nodeType===3){if(s=n+o.textContent.length,n<=i&&s>=i)return{node:o,offset:i-n};n=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Gm(o)}}function qm(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?qm(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Ym(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=ks(n.document);i instanceof n.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)n=i.contentWindow;else break;i=ks(n.document)}return i}function Gd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var VO=ur&&"documentMode"in document&&11>=document.documentMode,da=null,Wd=null,jo=null,qd=!1;function Xm(n,i,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;qd||da==null||da!==ks(s)||(s=da,"selectionStart"in s&&Gd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),jo&&Fo(jo,s)||(jo=s,s=yc(Wd,"onSelect"),0<s.length&&(i=new Is("onSelect","select",null,i,o),n.push({event:i,listeners:s}),i.target=da)))}function Si(n,i){var o={};return o[n.toLowerCase()]=i.toLowerCase(),o["Webkit"+n]="webkit"+i,o["Moz"+n]="moz"+i,o}var fa={animationend:Si("Animation","AnimationEnd"),animationiteration:Si("Animation","AnimationIteration"),animationstart:Si("Animation","AnimationStart"),transitionrun:Si("Transition","TransitionRun"),transitionstart:Si("Transition","TransitionStart"),transitioncancel:Si("Transition","TransitionCancel"),transitionend:Si("Transition","TransitionEnd")},Yd={},Km={};ur&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function Ei(n){if(Yd[n])return Yd[n];if(!fa[n])return n;var i=fa[n],o;for(o in i)if(i.hasOwnProperty(o)&&o in Km)return Yd[n]=i[o];return n}var Qm=Ei("animationend"),Zm=Ei("animationiteration"),Jm=Ei("animationstart"),MO=Ei("transitionrun"),LO=Ei("transitionstart"),BO=Ei("transitioncancel"),ev=Ei("transitionend"),tv=new Map,Xd="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(" ");Xd.push("scrollEnd");function Pn(n,i){tv.set(n,i),yi(i,[n])}var nv=new WeakMap;function wn(n,i){if(typeof n=="object"&&n!==null){var o=nv.get(n);return o!==void 0?o:(i={value:n,source:i,stack:bm(i)},nv.set(n,i),i)}return{value:n,source:i,stack:bm(i)}}var On=[],ga=0,Kd=0;function Ps(){for(var n=ga,i=Kd=ga=0;i<n;){var o=On[i];On[i++]=null;var s=On[i];On[i++]=null;var d=On[i];On[i++]=null;var g=On[i];if(On[i++]=null,s!==null&&d!==null){var v=s.pending;v===null?d.next=d:(d.next=v.next,v.next=d),s.pending=d}g!==0&&rv(o,d,g)}}function Vs(n,i,o,s){On[ga++]=n,On[ga++]=i,On[ga++]=o,On[ga++]=s,Kd|=s,n.lanes|=s,n=n.alternate,n!==null&&(n.lanes|=s)}function Qd(n,i,o,s){return Vs(n,i,o,s),Ms(n)}function ha(n,i){return Vs(n,null,null,i),Ms(n)}function rv(n,i,o){n.lanes|=o;var s=n.alternate;s!==null&&(s.lanes|=o);for(var d=!1,g=n.return;g!==null;)g.childLanes|=o,s=g.alternate,s!==null&&(s.childLanes|=o),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(d=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,d&&i!==null&&(d=31-tn(o),n=g.hiddenUpdates,s=n[d],s===null?n[d]=[i]:s.push(i),i.lane=o|536870912),g):null}function Ms(n){if(50<hl)throw hl=0,ig=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var pa={};function HO(n,i,o,s){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(n,i,o,s){return new HO(n,i,o,s)}function Zd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function dr(n,i){var o=n.alternate;return o===null?(o=rn(n.tag,i,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=i,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,i=n.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function iv(n,i){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,i=o.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Ls(n,i,o,s,d,g){var v=0;if(s=n,typeof n=="function")Zd(n)&&(v=1);else if(typeof n=="string")v=FT(n,o,ue.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case X:return n=rn(31,o,i,d),n.elementType=X,n.lanes=g,n;case E:return Ci(o.children,d,g,i);case C:v=8,d|=24;break;case T:return n=rn(12,o,i,d|2),n.elementType=T,n.lanes=g,n;case A:return n=rn(13,o,i,d),n.elementType=A,n.lanes=g,n;case B:return n=rn(19,o,i,d),n.elementType=B,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case k:case N:v=10;break e;case O:v=9;break e;case z:v=11;break e;case j:v=14;break e;case q:v=16,s=null;break e}v=29,o=Error(a(130,n===null?"null":typeof n,"")),s=null}return i=rn(v,o,i,d),i.elementType=n,i.type=s,i.lanes=g,i}function Ci(n,i,o,s){return n=rn(7,n,s,i),n.lanes=o,n}function Jd(n,i,o){return n=rn(6,n,null,i),n.lanes=o,n}function ef(n,i,o){return i=rn(4,n.children!==null?n.children:[],n.key,i),i.lanes=o,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var ma=[],va=0,Bs=null,Hs=0,Tn=[],kn=0,wi=null,fr=1,gr="";function Oi(n,i){ma[va++]=Hs,ma[va++]=Bs,Bs=n,Hs=i}function av(n,i,o){Tn[kn++]=fr,Tn[kn++]=gr,Tn[kn++]=wi,wi=n;var s=fr;n=gr;var d=32-tn(s)-1;s&=~(1<<d),o+=1;var g=32-tn(i)+d;if(30<g){var v=d-d%5;g=(s&(1<<v)-1).toString(32),s>>=v,d-=v,fr=1<<32-tn(i)+d|o<<d|s,gr=g+n}else fr=1<<g|o<<d|s,gr=n}function tf(n){n.return!==null&&(Oi(n,1),av(n,1,0))}function nf(n){for(;n===Bs;)Bs=ma[--va],ma[va]=null,Hs=ma[--va],ma[va]=null;for(;n===wi;)wi=Tn[--kn],Tn[kn]=null,gr=Tn[--kn],Tn[kn]=null,fr=Tn[--kn],Tn[kn]=null}var Bt=null,nt=null,ze=!1,Ti=null,jn=!1,rf=Error(a(519));function ki(n){var i=Error(a(418,""));throw Wo(wn(i,n)),rf}function ov(n){var i=n.stateNode,o=n.type,s=n.memoizedProps;switch(i[Dt]=n,i[Ft]=s,o){case"dialog":ke("cancel",i),ke("close",i);break;case"iframe":case"object":case"embed":ke("load",i);break;case"video":case"audio":for(o=0;o<ml.length;o++)ke(ml[o],i);break;case"source":ke("error",i);break;case"img":case"image":case"link":ke("error",i),ke("load",i);break;case"details":ke("toggle",i);break;case"input":ke("invalid",i),Sm(i,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),Ts(i);break;case"select":ke("invalid",i);break;case"textarea":ke("invalid",i),Cm(i,s.value,s.defaultValue,s.children),Ts(i)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||s.suppressHydrationWarning===!0||Cy(i.textContent,o)?(s.popover!=null&&(ke("beforetoggle",i),ke("toggle",i)),s.onScroll!=null&&ke("scroll",i),s.onScrollEnd!=null&&ke("scrollend",i),s.onClick!=null&&(i.onclick=xc),i=!0):i=!1,i||ki(n)}function lv(n){for(Bt=n.return;Bt;)switch(Bt.tag){case 5:case 13:jn=!1;return;case 27:case 3:jn=!0;return;default:Bt=Bt.return}}function Uo(n){if(n!==Bt)return!1;if(!ze)return lv(n),ze=!0,!1;var i=n.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||xg(n.type,n.memoizedProps)),o=!o),o&&nt&&ki(n),lv(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(o=n.data,o==="/$"){if(i===0){nt=Mn(n.nextSibling);break e}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++;n=n.nextSibling}nt=null}}else i===27?(i=nt,Zr(n.type)?(n=wg,wg=null,nt=n):nt=i):nt=Bt?Mn(n.stateNode.nextSibling):null;return!0}function Go(){nt=Bt=null,ze=!1}function sv(){var n=Ti;return n!==null&&(Wt===null?Wt=n:Wt.push.apply(Wt,n),Ti=null),n}function Wo(n){Ti===null?Ti=[n]:Ti.push(n)}var af=U(null),Ri=null,hr=null;function Mr(n,i,o){ae(af,i._currentValue),i._currentValue=o}function pr(n){n._currentValue=af.current,re(af)}function of(n,i,o){for(;n!==null;){var s=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,s!==null&&(s.childLanes|=i)):s!==null&&(s.childLanes&i)!==i&&(s.childLanes|=i),n===o)break;n=n.return}}function lf(n,i,o,s){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var g=d.dependencies;if(g!==null){var v=d.child;g=g.firstContext;e:for(;g!==null;){var S=g;g=d;for(var _=0;_<i.length;_++)if(S.context===i[_]){g.lanes|=o,S=g.alternate,S!==null&&(S.lanes|=o),of(g.return,o,n),s||(v=null);break e}g=S.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(a(341));v.lanes|=o,g=v.alternate,g!==null&&(g.lanes|=o),of(v,o,n),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===n){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function qo(n,i,o,s){n=null;for(var d=i,g=!1;d!==null;){if(!g){if((d.flags&524288)!==0)g=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(a(387));if(v=v.memoizedProps,v!==null){var S=d.type;nn(d.pendingProps.value,v.value)||(n!==null?n.push(S):n=[S])}}else if(d===lt.current){if(v=d.alternate,v===null)throw Error(a(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(El):n=[El])}d=d.return}n!==null&&lf(i,n,o,s),i.flags|=262144}function $s(n){for(n=n.firstContext;n!==null;){if(!nn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Ni(n){Ri=n,hr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Pt(n){return cv(Ri,n)}function Fs(n,i){return Ri===null&&Ni(n),cv(n,i)}function cv(n,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},hr===null){if(n===null)throw Error(a(308));hr=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else hr=hr.next=i;return o}var $O=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(o,s){n.push(s)}};this.abort=function(){i.aborted=!0,n.forEach(function(o){return o()})}},FO=e.unstable_scheduleCallback,jO=e.unstable_NormalPriority,ht={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sf(){return{controller:new $O,data:new Map,refCount:0}}function Yo(n){n.refCount--,n.refCount===0&&FO(jO,function(){n.controller.abort()})}var Xo=null,cf=0,ba=0,ya=null;function UO(n,i){if(Xo===null){var o=Xo=[];cf=0,ba=dg(),ya={status:"pending",value:void 0,then:function(s){o.push(s)}}}return cf++,i.then(uv,uv),i}function uv(){if(--cf===0&&Xo!==null){ya!==null&&(ya.status="fulfilled");var n=Xo;Xo=null,ba=0,ya=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function GO(n,i){var o=[],s={status:"pending",value:null,reason:null,then:function(d){o.push(d)}};return n.then(function(){s.status="fulfilled",s.value=i;for(var d=0;d<o.length;d++)(0,o[d])(i)},function(d){for(s.status="rejected",s.reason=d,d=0;d<o.length;d++)(0,o[d])(void 0)}),s}var dv=L.S;L.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&UO(n,i),dv!==null&&dv(n,i)};var Ai=U(null);function uf(){var n=Ai.current;return n!==null?n:We.pooledCache}function js(n,i){i===null?ae(Ai,Ai.current):ae(Ai,i.pool)}function fv(){var n=uf();return n===null?null:{parent:ht._currentValue,pool:n}}var Ko=Error(a(460)),gv=Error(a(474)),Us=Error(a(542)),df={then:function(){}};function hv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Gs(){}function pv(n,i,o){switch(o=n[o],o===void 0?n.push(i):o!==i&&(i.then(Gs,Gs),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,vv(n),n;default:if(typeof i.status=="string")i.then(Gs,Gs);else{if(n=We,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=i,n.status="pending",n.then(function(s){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=s}},function(s){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=s}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,vv(n),n}throw Qo=i,Ko}}var Qo=null;function mv(){if(Qo===null)throw Error(a(459));var n=Qo;return Qo=null,n}function vv(n){if(n===Ko||n===Us)throw Error(a(483))}var Lr=!1;function ff(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gf(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Br(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Hr(n,i,o){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,(Le&2)!==0){var d=s.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),s.pending=i,i=Ms(n),rv(n,null,o),i}return Vs(n,s,i,o),Ms(n)}function Zo(n,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var s=i.lanes;s&=n.pendingLanes,o|=s,i.lanes=o,um(n,o)}}function hf(n,i){var o=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var d=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var v={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?d=g=v:g=g.next=v,o=o.next}while(o!==null);g===null?d=g=i:g=g.next=i}else d=g=i;o={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=i:n.next=i,o.lastBaseUpdate=i}var pf=!1;function Jo(){if(pf){var n=ya;if(n!==null)throw n}}function el(n,i,o,s){pf=!1;var d=n.updateQueue;Lr=!1;var g=d.firstBaseUpdate,v=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var _=S,M=_.next;_.next=null,v===null?g=M:v.next=M,v=_;var G=n.alternate;G!==null&&(G=G.updateQueue,S=G.lastBaseUpdate,S!==v&&(S===null?G.firstBaseUpdate=M:S.next=M,G.lastBaseUpdate=_))}if(g!==null){var Y=d.baseState;v=0,G=M=_=null,S=g;do{var H=S.lane&-536870913,$=H!==S.lane;if($?(Ne&H)===H:(s&H)===H){H!==0&&H===ba&&(pf=!0),G!==null&&(G=G.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var be=n,pe=S;H=i;var Fe=o;switch(pe.tag){case 1:if(be=pe.payload,typeof be=="function"){Y=be.call(Fe,Y,H);break e}Y=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=pe.payload,H=typeof be=="function"?be.call(Fe,Y,H):be,H==null)break e;Y=m({},Y,H);break e;case 2:Lr=!0}}H=S.callback,H!==null&&(n.flags|=64,$&&(n.flags|=8192),$=d.callbacks,$===null?d.callbacks=[H]:$.push(H))}else $={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},G===null?(M=G=$,_=Y):G=G.next=$,v|=H;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;$=S,S=$.next,$.next=null,d.lastBaseUpdate=$,d.shared.pending=null}}while(!0);G===null&&(_=Y),d.baseState=_,d.firstBaseUpdate=M,d.lastBaseUpdate=G,g===null&&(d.shared.lanes=0),Yr|=v,n.lanes=v,n.memoizedState=Y}}function bv(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function yv(n,i){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)bv(o[n],i)}var xa=U(null),Ws=U(0);function xv(n,i){n=Er,ae(Ws,n),ae(xa,i),Er=n|i.baseLanes}function mf(){ae(Ws,Er),ae(xa,xa.current)}function vf(){Er=Ws.current,re(xa),re(Ws)}var $r=0,we=null,He=null,st=null,qs=!1,Sa=!1,_i=!1,Ys=0,tl=0,Ea=null,WO=0;function at(){throw Error(a(321))}function bf(n,i){if(i===null)return!1;for(var o=0;o<i.length&&o<n.length;o++)if(!nn(n[o],i[o]))return!1;return!0}function yf(n,i,o,s,d,g){return $r=g,we=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=n===null||n.memoizedState===null?rb:ib,_i=!1,g=o(s,d),_i=!1,Sa&&(g=Ev(i,o,s,d)),Sv(n),g}function Sv(n){L.H=ec;var i=He!==null&&He.next!==null;if($r=0,st=He=we=null,qs=!1,tl=0,Ea=null,i)throw Error(a(300));n===null||yt||(n=n.dependencies,n!==null&&$s(n)&&(yt=!0))}function Ev(n,i,o,s){we=n;var d=0;do{if(Sa&&(Ea=null),tl=0,Sa=!1,25<=d)throw Error(a(301));if(d+=1,st=He=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}L.H=JO,g=i(o,s)}while(Sa);return g}function qO(){var n=L.H,i=n.useState()[0];return i=typeof i.then=="function"?nl(i):i,n=n.useState()[0],(He!==null?He.memoizedState:null)!==n&&(we.flags|=1024),i}function xf(){var n=Ys!==0;return Ys=0,n}function Sf(n,i,o){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~o}function Ef(n){if(qs){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}qs=!1}$r=0,st=He=we=null,Sa=!1,tl=Ys=0,Ea=null}function Ut(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?we.memoizedState=st=n:st=st.next=n,st}function ct(){if(He===null){var n=we.alternate;n=n!==null?n.memoizedState:null}else n=He.next;var i=st===null?we.memoizedState:st.next;if(i!==null)st=i,He=n;else{if(n===null)throw we.alternate===null?Error(a(467)):Error(a(310));He=n,n={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},st===null?we.memoizedState=st=n:st=st.next=n}return st}function Cf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nl(n){var i=tl;return tl+=1,Ea===null&&(Ea=[]),n=pv(Ea,n,i),i=we,(st===null?i.memoizedState:st.next)===null&&(i=i.alternate,L.H=i===null||i.memoizedState===null?rb:ib),n}function Xs(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return nl(n);if(n.$$typeof===N)return Pt(n)}throw Error(a(438,String(n)))}function wf(n){var i=null,o=we.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var s=we.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(i={data:s.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=Cf(),we.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(n),s=0;s<n;s++)o[s]=te;return i.index++,o}function mr(n,i){return typeof i=="function"?i(n):i}function Ks(n){var i=ct();return Of(i,He,n)}function Of(n,i,o){var s=n.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=o;var d=n.baseQueue,g=s.pending;if(g!==null){if(d!==null){var v=d.next;d.next=g.next,g.next=v}i.baseQueue=d=g,s.pending=null}if(g=n.baseState,d===null)n.memoizedState=g;else{i=d.next;var S=v=null,_=null,M=i,G=!1;do{var Y=M.lane&-536870913;if(Y!==M.lane?(Ne&Y)===Y:($r&Y)===Y){var H=M.revertLane;if(H===0)_!==null&&(_=_.next={lane:0,revertLane:0,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Y===ba&&(G=!0);else if(($r&H)===H){M=M.next,H===ba&&(G=!0);continue}else Y={lane:0,revertLane:M.revertLane,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},_===null?(S=_=Y,v=g):_=_.next=Y,we.lanes|=H,Yr|=H;Y=M.action,_i&&o(g,Y),g=M.hasEagerState?M.eagerState:o(g,Y)}else H={lane:Y,revertLane:M.revertLane,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},_===null?(S=_=H,v=g):_=_.next=H,we.lanes|=Y,Yr|=Y;M=M.next}while(M!==null&&M!==i);if(_===null?v=g:_.next=S,!nn(g,n.memoizedState)&&(yt=!0,G&&(o=ya,o!==null)))throw o;n.memoizedState=g,n.baseState=v,n.baseQueue=_,s.lastRenderedState=g}return d===null&&(s.lanes=0),[n.memoizedState,s.dispatch]}function Tf(n){var i=ct(),o=i.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=n;var s=o.dispatch,d=o.pending,g=i.memoizedState;if(d!==null){o.pending=null;var v=d=d.next;do g=n(g,v.action),v=v.next;while(v!==d);nn(g,i.memoizedState)||(yt=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),o.lastRenderedState=g}return[g,s]}function Cv(n,i,o){var s=we,d=ct(),g=ze;if(g){if(o===void 0)throw Error(a(407));o=o()}else o=i();var v=!nn((He||d).memoizedState,o);v&&(d.memoizedState=o,yt=!0),d=d.queue;var S=Tv.bind(null,s,d,n);if(rl(2048,8,S,[n]),d.getSnapshot!==i||v||st!==null&&st.memoizedState.tag&1){if(s.flags|=2048,Ca(9,Qs(),Ov.bind(null,s,d,o,i),null),We===null)throw Error(a(349));g||($r&124)!==0||wv(s,i,o)}return o}function wv(n,i,o){n.flags|=16384,n={getSnapshot:i,value:o},i=we.updateQueue,i===null?(i=Cf(),we.updateQueue=i,i.stores=[n]):(o=i.stores,o===null?i.stores=[n]:o.push(n))}function Ov(n,i,o,s){i.value=o,i.getSnapshot=s,kv(i)&&Rv(n)}function Tv(n,i,o){return o(function(){kv(i)&&Rv(n)})}function kv(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!nn(n,o)}catch{return!0}}function Rv(n){var i=ha(n,2);i!==null&&cn(i,n,2)}function kf(n){var i=Ut();if(typeof n=="function"){var o=n;if(n=o(),_i){Dr(!0);try{o()}finally{Dr(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:n},i}function Nv(n,i,o,s){return n.baseState=o,Of(n,He,typeof s=="function"?s:mr)}function YO(n,i,o,s,d){if(Js(n))throw Error(a(485));if(n=i.action,n!==null){var g={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){g.listeners.push(v)}};L.T!==null?o(!0):g.isTransition=!1,s(g),o=i.pending,o===null?(g.next=i.pending=g,Av(i,g)):(g.next=o.next,i.pending=o.next=g)}}function Av(n,i){var o=i.action,s=i.payload,d=n.state;if(i.isTransition){var g=L.T,v={};L.T=v;try{var S=o(d,s),_=L.S;_!==null&&_(v,S),_v(n,i,S)}catch(M){Rf(n,i,M)}finally{L.T=g}}else try{g=o(d,s),_v(n,i,g)}catch(M){Rf(n,i,M)}}function _v(n,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(s){Iv(n,i,s)},function(s){return Rf(n,i,s)}):Iv(n,i,o)}function Iv(n,i,o){i.status="fulfilled",i.value=o,zv(i),n.state=o,i=n.pending,i!==null&&(o=i.next,o===i?n.pending=null:(o=o.next,i.next=o,Av(n,o)))}function Rf(n,i,o){var s=n.pending;if(n.pending=null,s!==null){s=s.next;do i.status="rejected",i.reason=o,zv(i),i=i.next;while(i!==s)}n.action=null}function zv(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function Dv(n,i){return i}function Pv(n,i){if(ze){var o=We.formState;if(o!==null){e:{var s=we;if(ze){if(nt){t:{for(var d=nt,g=jn;d.nodeType!==8;){if(!g){d=null;break t}if(d=Mn(d.nextSibling),d===null){d=null;break t}}g=d.data,d=g==="F!"||g==="F"?d:null}if(d){nt=Mn(d.nextSibling),s=d.data==="F!";break e}}ki(s)}s=!1}s&&(i=o[0])}}return o=Ut(),o.memoizedState=o.baseState=i,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dv,lastRenderedState:i},o.queue=s,o=eb.bind(null,we,s),s.dispatch=o,s=kf(!1),g=zf.bind(null,we,!1,s.queue),s=Ut(),d={state:i,dispatch:null,action:n,pending:null},s.queue=d,o=YO.bind(null,we,d,g,o),d.dispatch=o,s.memoizedState=n,[i,o,!1]}function Vv(n){var i=ct();return Mv(i,He,n)}function Mv(n,i,o){if(i=Of(n,i,Dv)[0],n=Ks(mr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var s=nl(i)}catch(v){throw v===Ko?Us:v}else s=i;i=ct();var d=i.queue,g=d.dispatch;return o!==i.memoizedState&&(we.flags|=2048,Ca(9,Qs(),XO.bind(null,d,o),null)),[s,g,n]}function XO(n,i){n.action=i}function Lv(n){var i=ct(),o=He;if(o!==null)return Mv(i,o,n);ct(),i=i.memoizedState,o=ct();var s=o.queue.dispatch;return o.memoizedState=n,[i,s,!1]}function Ca(n,i,o,s){return n={tag:n,create:o,deps:s,inst:i,next:null},i=we.updateQueue,i===null&&(i=Cf(),we.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=n.next=n:(s=o.next,o.next=n,n.next=s,i.lastEffect=n),n}function Qs(){return{destroy:void 0,resource:void 0}}function Bv(){return ct().memoizedState}function Zs(n,i,o,s){var d=Ut();s=s===void 0?null:s,we.flags|=n,d.memoizedState=Ca(1|i,Qs(),o,s)}function rl(n,i,o,s){var d=ct();s=s===void 0?null:s;var g=d.memoizedState.inst;He!==null&&s!==null&&bf(s,He.memoizedState.deps)?d.memoizedState=Ca(i,g,o,s):(we.flags|=n,d.memoizedState=Ca(1|i,g,o,s))}function Hv(n,i){Zs(8390656,8,n,i)}function $v(n,i){rl(2048,8,n,i)}function Fv(n,i){return rl(4,2,n,i)}function jv(n,i){return rl(4,4,n,i)}function Uv(n,i){if(typeof i=="function"){n=n();var o=i(n);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Gv(n,i,o){o=o!=null?o.concat([n]):null,rl(4,4,Uv.bind(null,i,n),o)}function Nf(){}function Wv(n,i){var o=ct();i=i===void 0?null:i;var s=o.memoizedState;return i!==null&&bf(i,s[1])?s[0]:(o.memoizedState=[n,i],n)}function qv(n,i){var o=ct();i=i===void 0?null:i;var s=o.memoizedState;if(i!==null&&bf(i,s[1]))return s[0];if(s=n(),_i){Dr(!0);try{n()}finally{Dr(!1)}}return o.memoizedState=[s,i],s}function Af(n,i,o){return o===void 0||($r&1073741824)!==0?n.memoizedState=i:(n.memoizedState=o,n=Kb(),we.lanes|=n,Yr|=n,o)}function Yv(n,i,o,s){return nn(o,i)?o:xa.current!==null?(n=Af(n,o,s),nn(n,i)||(yt=!0),n):($r&42)===0?(yt=!0,n.memoizedState=o):(n=Kb(),we.lanes|=n,Yr|=n,i)}function Xv(n,i,o,s,d){var g=J.p;J.p=g!==0&&8>g?g:8;var v=L.T,S={};L.T=S,zf(n,!1,i,o);try{var _=d(),M=L.S;if(M!==null&&M(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var G=GO(_,s);il(n,i,G,sn(n))}else il(n,i,s,sn(n))}catch(Y){il(n,i,{then:function(){},status:"rejected",reason:Y},sn())}finally{J.p=g,L.T=v}}function KO(){}function _f(n,i,o,s){if(n.tag!==5)throw Error(a(476));var d=Kv(n).queue;Xv(n,d,i,le,o===null?KO:function(){return Qv(n),o(s)})}function Kv(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:le},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:o},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function Qv(n){var i=Kv(n).next.queue;il(n,i,{},sn())}function If(){return Pt(El)}function Zv(){return ct().memoizedState}function Jv(){return ct().memoizedState}function QO(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var o=sn();n=Br(o);var s=Hr(i,n,o);s!==null&&(cn(s,i,o),Zo(s,i,o)),i={cache:sf()},n.payload=i;return}i=i.return}}function ZO(n,i,o){var s=sn();o={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Js(n)?tb(i,o):(o=Qd(n,i,o,s),o!==null&&(cn(o,n,s),nb(o,i,s)))}function eb(n,i,o){var s=sn();il(n,i,o,s)}function il(n,i,o,s){var d={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Js(n))tb(i,d);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var v=i.lastRenderedState,S=g(v,o);if(d.hasEagerState=!0,d.eagerState=S,nn(S,v))return Vs(n,i,d,0),We===null&&Ps(),!1}catch{}finally{}if(o=Qd(n,i,d,s),o!==null)return cn(o,n,s),nb(o,i,s),!0}return!1}function zf(n,i,o,s){if(s={lane:2,revertLane:dg(),action:s,hasEagerState:!1,eagerState:null,next:null},Js(n)){if(i)throw Error(a(479))}else i=Qd(n,o,s,2),i!==null&&cn(i,n,2)}function Js(n){var i=n.alternate;return n===we||i!==null&&i===we}function tb(n,i){Sa=qs=!0;var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}function nb(n,i,o){if((o&4194048)!==0){var s=i.lanes;s&=n.pendingLanes,o|=s,i.lanes=o,um(n,o)}}var ec={readContext:Pt,use:Xs,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at},rb={readContext:Pt,use:Xs,useCallback:function(n,i){return Ut().memoizedState=[n,i===void 0?null:i],n},useContext:Pt,useEffect:Hv,useImperativeHandle:function(n,i,o){o=o!=null?o.concat([n]):null,Zs(4194308,4,Uv.bind(null,i,n),o)},useLayoutEffect:function(n,i){return Zs(4194308,4,n,i)},useInsertionEffect:function(n,i){Zs(4,2,n,i)},useMemo:function(n,i){var o=Ut();i=i===void 0?null:i;var s=n();if(_i){Dr(!0);try{n()}finally{Dr(!1)}}return o.memoizedState=[s,i],s},useReducer:function(n,i,o){var s=Ut();if(o!==void 0){var d=o(i);if(_i){Dr(!0);try{o(i)}finally{Dr(!1)}}}else d=i;return s.memoizedState=s.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},s.queue=n,n=n.dispatch=ZO.bind(null,we,n),[s.memoizedState,n]},useRef:function(n){var i=Ut();return n={current:n},i.memoizedState=n},useState:function(n){n=kf(n);var i=n.queue,o=eb.bind(null,we,i);return i.dispatch=o,[n.memoizedState,o]},useDebugValue:Nf,useDeferredValue:function(n,i){var o=Ut();return Af(o,n,i)},useTransition:function(){var n=kf(!1);return n=Xv.bind(null,we,n.queue,!0,!1),Ut().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,o){var s=we,d=Ut();if(ze){if(o===void 0)throw Error(a(407));o=o()}else{if(o=i(),We===null)throw Error(a(349));(Ne&124)!==0||wv(s,i,o)}d.memoizedState=o;var g={value:o,getSnapshot:i};return d.queue=g,Hv(Tv.bind(null,s,g,n),[n]),s.flags|=2048,Ca(9,Qs(),Ov.bind(null,s,g,o,i),null),o},useId:function(){var n=Ut(),i=We.identifierPrefix;if(ze){var o=gr,s=fr;o=(s&~(1<<32-tn(s)-1)).toString(32)+o,i="«"+i+"R"+o,o=Ys++,0<o&&(i+="H"+o.toString(32)),i+="»"}else o=WO++,i="«"+i+"r"+o.toString(32)+"»";return n.memoizedState=i},useHostTransitionStatus:If,useFormState:Pv,useActionState:Pv,useOptimistic:function(n){var i=Ut();i.memoizedState=i.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=zf.bind(null,we,!0,o),o.dispatch=i,[n,i]},useMemoCache:wf,useCacheRefresh:function(){return Ut().memoizedState=QO.bind(null,we)}},ib={readContext:Pt,use:Xs,useCallback:Wv,useContext:Pt,useEffect:$v,useImperativeHandle:Gv,useInsertionEffect:Fv,useLayoutEffect:jv,useMemo:qv,useReducer:Ks,useRef:Bv,useState:function(){return Ks(mr)},useDebugValue:Nf,useDeferredValue:function(n,i){var o=ct();return Yv(o,He.memoizedState,n,i)},useTransition:function(){var n=Ks(mr)[0],i=ct().memoizedState;return[typeof n=="boolean"?n:nl(n),i]},useSyncExternalStore:Cv,useId:Zv,useHostTransitionStatus:If,useFormState:Vv,useActionState:Vv,useOptimistic:function(n,i){var o=ct();return Nv(o,He,n,i)},useMemoCache:wf,useCacheRefresh:Jv},JO={readContext:Pt,use:Xs,useCallback:Wv,useContext:Pt,useEffect:$v,useImperativeHandle:Gv,useInsertionEffect:Fv,useLayoutEffect:jv,useMemo:qv,useReducer:Tf,useRef:Bv,useState:function(){return Tf(mr)},useDebugValue:Nf,useDeferredValue:function(n,i){var o=ct();return He===null?Af(o,n,i):Yv(o,He.memoizedState,n,i)},useTransition:function(){var n=Tf(mr)[0],i=ct().memoizedState;return[typeof n=="boolean"?n:nl(n),i]},useSyncExternalStore:Cv,useId:Zv,useHostTransitionStatus:If,useFormState:Lv,useActionState:Lv,useOptimistic:function(n,i){var o=ct();return He!==null?Nv(o,He,n,i):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:wf,useCacheRefresh:Jv},wa=null,al=0;function tc(n){var i=al;return al+=1,wa===null&&(wa=[]),pv(wa,n,i)}function ol(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function nc(n,i){throw i.$$typeof===y?Error(a(525)):(n=Object.prototype.toString.call(i),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function ab(n){var i=n._init;return i(n._payload)}function ob(n){function i(D,I){if(n){var V=D.deletions;V===null?(D.deletions=[I],D.flags|=16):V.push(I)}}function o(D,I){if(!n)return null;for(;I!==null;)i(D,I),I=I.sibling;return null}function s(D){for(var I=new Map;D!==null;)D.key!==null?I.set(D.key,D):I.set(D.index,D),D=D.sibling;return I}function d(D,I){return D=dr(D,I),D.index=0,D.sibling=null,D}function g(D,I,V){return D.index=V,n?(V=D.alternate,V!==null?(V=V.index,V<I?(D.flags|=67108866,I):V):(D.flags|=67108866,I)):(D.flags|=1048576,I)}function v(D){return n&&D.alternate===null&&(D.flags|=67108866),D}function S(D,I,V,W){return I===null||I.tag!==6?(I=Jd(V,D.mode,W),I.return=D,I):(I=d(I,V),I.return=D,I)}function _(D,I,V,W){var ce=V.type;return ce===E?G(D,I,V.props.children,W,V.key):I!==null&&(I.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===q&&ab(ce)===I.type)?(I=d(I,V.props),ol(I,V),I.return=D,I):(I=Ls(V.type,V.key,V.props,null,D.mode,W),ol(I,V),I.return=D,I)}function M(D,I,V,W){return I===null||I.tag!==4||I.stateNode.containerInfo!==V.containerInfo||I.stateNode.implementation!==V.implementation?(I=ef(V,D.mode,W),I.return=D,I):(I=d(I,V.children||[]),I.return=D,I)}function G(D,I,V,W,ce){return I===null||I.tag!==7?(I=Ci(V,D.mode,W,ce),I.return=D,I):(I=d(I,V),I.return=D,I)}function Y(D,I,V){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Jd(""+I,D.mode,V),I.return=D,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return V=Ls(I.type,I.key,I.props,null,D.mode,V),ol(V,I),V.return=D,V;case x:return I=ef(I,D.mode,V),I.return=D,I;case q:var W=I._init;return I=W(I._payload),Y(D,I,V)}if(oe(I)||P(I))return I=Ci(I,D.mode,V,null),I.return=D,I;if(typeof I.then=="function")return Y(D,tc(I),V);if(I.$$typeof===N)return Y(D,Fs(D,I),V);nc(D,I)}return null}function H(D,I,V,W){var ce=I!==null?I.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return ce!==null?null:S(D,I,""+V,W);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case b:return V.key===ce?_(D,I,V,W):null;case x:return V.key===ce?M(D,I,V,W):null;case q:return ce=V._init,V=ce(V._payload),H(D,I,V,W)}if(oe(V)||P(V))return ce!==null?null:G(D,I,V,W,null);if(typeof V.then=="function")return H(D,I,tc(V),W);if(V.$$typeof===N)return H(D,I,Fs(D,V),W);nc(D,V)}return null}function $(D,I,V,W,ce){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return D=D.get(V)||null,S(I,D,""+W,ce);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case b:return D=D.get(W.key===null?V:W.key)||null,_(I,D,W,ce);case x:return D=D.get(W.key===null?V:W.key)||null,M(I,D,W,ce);case q:var Oe=W._init;return W=Oe(W._payload),$(D,I,V,W,ce)}if(oe(W)||P(W))return D=D.get(V)||null,G(I,D,W,ce,null);if(typeof W.then=="function")return $(D,I,V,tc(W),ce);if(W.$$typeof===N)return $(D,I,V,Fs(I,W),ce);nc(I,W)}return null}function be(D,I,V,W){for(var ce=null,Oe=null,de=I,me=I=0,St=null;de!==null&&me<V.length;me++){de.index>me?(St=de,de=null):St=de.sibling;var Ie=H(D,de,V[me],W);if(Ie===null){de===null&&(de=St);break}n&&de&&Ie.alternate===null&&i(D,de),I=g(Ie,I,me),Oe===null?ce=Ie:Oe.sibling=Ie,Oe=Ie,de=St}if(me===V.length)return o(D,de),ze&&Oi(D,me),ce;if(de===null){for(;me<V.length;me++)de=Y(D,V[me],W),de!==null&&(I=g(de,I,me),Oe===null?ce=de:Oe.sibling=de,Oe=de);return ze&&Oi(D,me),ce}for(de=s(de);me<V.length;me++)St=$(de,D,me,V[me],W),St!==null&&(n&&St.alternate!==null&&de.delete(St.key===null?me:St.key),I=g(St,I,me),Oe===null?ce=St:Oe.sibling=St,Oe=St);return n&&de.forEach(function(ri){return i(D,ri)}),ze&&Oi(D,me),ce}function pe(D,I,V,W){if(V==null)throw Error(a(151));for(var ce=null,Oe=null,de=I,me=I=0,St=null,Ie=V.next();de!==null&&!Ie.done;me++,Ie=V.next()){de.index>me?(St=de,de=null):St=de.sibling;var ri=H(D,de,Ie.value,W);if(ri===null){de===null&&(de=St);break}n&&de&&ri.alternate===null&&i(D,de),I=g(ri,I,me),Oe===null?ce=ri:Oe.sibling=ri,Oe=ri,de=St}if(Ie.done)return o(D,de),ze&&Oi(D,me),ce;if(de===null){for(;!Ie.done;me++,Ie=V.next())Ie=Y(D,Ie.value,W),Ie!==null&&(I=g(Ie,I,me),Oe===null?ce=Ie:Oe.sibling=Ie,Oe=Ie);return ze&&Oi(D,me),ce}for(de=s(de);!Ie.done;me++,Ie=V.next())Ie=$(de,D,me,Ie.value,W),Ie!==null&&(n&&Ie.alternate!==null&&de.delete(Ie.key===null?me:Ie.key),I=g(Ie,I,me),Oe===null?ce=Ie:Oe.sibling=Ie,Oe=Ie);return n&&de.forEach(function(ek){return i(D,ek)}),ze&&Oi(D,me),ce}function Fe(D,I,V,W){if(typeof V=="object"&&V!==null&&V.type===E&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case b:e:{for(var ce=V.key;I!==null;){if(I.key===ce){if(ce=V.type,ce===E){if(I.tag===7){o(D,I.sibling),W=d(I,V.props.children),W.return=D,D=W;break e}}else if(I.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===q&&ab(ce)===I.type){o(D,I.sibling),W=d(I,V.props),ol(W,V),W.return=D,D=W;break e}o(D,I);break}else i(D,I);I=I.sibling}V.type===E?(W=Ci(V.props.children,D.mode,W,V.key),W.return=D,D=W):(W=Ls(V.type,V.key,V.props,null,D.mode,W),ol(W,V),W.return=D,D=W)}return v(D);case x:e:{for(ce=V.key;I!==null;){if(I.key===ce)if(I.tag===4&&I.stateNode.containerInfo===V.containerInfo&&I.stateNode.implementation===V.implementation){o(D,I.sibling),W=d(I,V.children||[]),W.return=D,D=W;break e}else{o(D,I);break}else i(D,I);I=I.sibling}W=ef(V,D.mode,W),W.return=D,D=W}return v(D);case q:return ce=V._init,V=ce(V._payload),Fe(D,I,V,W)}if(oe(V))return be(D,I,V,W);if(P(V)){if(ce=P(V),typeof ce!="function")throw Error(a(150));return V=ce.call(V),pe(D,I,V,W)}if(typeof V.then=="function")return Fe(D,I,tc(V),W);if(V.$$typeof===N)return Fe(D,I,Fs(D,V),W);nc(D,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,I!==null&&I.tag===6?(o(D,I.sibling),W=d(I,V),W.return=D,D=W):(o(D,I),W=Jd(V,D.mode,W),W.return=D,D=W),v(D)):o(D,I)}return function(D,I,V,W){try{al=0;var ce=Fe(D,I,V,W);return wa=null,ce}catch(de){if(de===Ko||de===Us)throw de;var Oe=rn(29,de,null,D.mode);return Oe.lanes=W,Oe.return=D,Oe}finally{}}}var Oa=ob(!0),lb=ob(!1),Rn=U(null),Un=null;function Fr(n){var i=n.alternate;ae(pt,pt.current&1),ae(Rn,n),Un===null&&(i===null||xa.current!==null||i.memoizedState!==null)&&(Un=n)}function sb(n){if(n.tag===22){if(ae(pt,pt.current),ae(Rn,n),Un===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(Un=n)}}else jr()}function jr(){ae(pt,pt.current),ae(Rn,Rn.current)}function vr(n){re(Rn),Un===n&&(Un=null),re(pt)}var pt=U(0);function rc(n){for(var i=n;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||Cg(o)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Df(n,i,o,s){i=n.memoizedState,o=o(s,i),o=o==null?i:m({},i,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Pf={enqueueSetState:function(n,i,o){n=n._reactInternals;var s=sn(),d=Br(s);d.payload=i,o!=null&&(d.callback=o),i=Hr(n,d,s),i!==null&&(cn(i,n,s),Zo(i,n,s))},enqueueReplaceState:function(n,i,o){n=n._reactInternals;var s=sn(),d=Br(s);d.tag=1,d.payload=i,o!=null&&(d.callback=o),i=Hr(n,d,s),i!==null&&(cn(i,n,s),Zo(i,n,s))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var o=sn(),s=Br(o);s.tag=2,i!=null&&(s.callback=i),i=Hr(n,s,o),i!==null&&(cn(i,n,o),Zo(i,n,o))}};function cb(n,i,o,s,d,g,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(s,g,v):i.prototype&&i.prototype.isPureReactComponent?!Fo(o,s)||!Fo(d,g):!0}function ub(n,i,o,s){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,s),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,s),i.state!==n&&Pf.enqueueReplaceState(i,i.state,null)}function Ii(n,i){var o=i;if("ref"in i){o={};for(var s in i)s!=="ref"&&(o[s]=i[s])}if(n=n.defaultProps){o===i&&(o=m({},o));for(var d in n)o[d]===void 0&&(o[d]=n[d])}return o}var ic=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function db(n){ic(n)}function fb(n){console.error(n)}function gb(n){ic(n)}function ac(n,i){try{var o=n.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(s){setTimeout(function(){throw s})}}function hb(n,i,o){try{var s=n.onCaughtError;s(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Vf(n,i,o){return o=Br(o),o.tag=3,o.payload={element:null},o.callback=function(){ac(n,i)},o}function pb(n){return n=Br(n),n.tag=3,n}function mb(n,i,o,s){var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var g=s.value;n.payload=function(){return d(g)},n.callback=function(){hb(i,o,s)}}var v=o.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){hb(i,o,s),typeof d!="function"&&(Xr===null?Xr=new Set([this]):Xr.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})})}function eT(n,i,o,s,d){if(o.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(i=o.alternate,i!==null&&qo(i,o,d,!0),o=Rn.current,o!==null){switch(o.tag){case 13:return Un===null?og():o.alternate===null&&rt===0&&(rt=3),o.flags&=-257,o.flags|=65536,o.lanes=d,s===df?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([s]):i.add(s),sg(n,s,d)),!1;case 22:return o.flags|=65536,s===df?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([s])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([s]):o.add(s)),sg(n,s,d)),!1}throw Error(a(435,o.tag))}return sg(n,s,d),og(),!1}if(ze)return i=Rn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,s!==rf&&(n=Error(a(422),{cause:s}),Wo(wn(n,o)))):(s!==rf&&(i=Error(a(423),{cause:s}),Wo(wn(i,o))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,s=wn(s,o),d=Vf(n.stateNode,s,d),hf(n,d),rt!==4&&(rt=2)),!1;var g=Error(a(520),{cause:s});if(g=wn(g,o),gl===null?gl=[g]:gl.push(g),rt!==4&&(rt=2),i===null)return!0;s=wn(s,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,n=d&-d,o.lanes|=n,n=Vf(o.stateNode,s,n),hf(o,n),!1;case 1:if(i=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Xr===null||!Xr.has(g))))return o.flags|=65536,d&=-d,o.lanes|=d,d=pb(d),mb(d,n,o,s),hf(o,d),!1}o=o.return}while(o!==null);return!1}var vb=Error(a(461)),yt=!1;function Tt(n,i,o,s){i.child=n===null?lb(i,null,o,s):Oa(i,n.child,o,s)}function bb(n,i,o,s,d){o=o.render;var g=i.ref;if("ref"in s){var v={};for(var S in s)S!=="ref"&&(v[S]=s[S])}else v=s;return Ni(i),s=yf(n,i,o,v,g,d),S=xf(),n!==null&&!yt?(Sf(n,i,d),br(n,i,d)):(ze&&S&&tf(i),i.flags|=1,Tt(n,i,s,d),i.child)}function yb(n,i,o,s,d){if(n===null){var g=o.type;return typeof g=="function"&&!Zd(g)&&g.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=g,xb(n,i,g,s,d)):(n=Ls(o.type,null,s,i,i.mode,d),n.ref=i.ref,n.return=i,i.child=n)}if(g=n.child,!Uf(n,d)){var v=g.memoizedProps;if(o=o.compare,o=o!==null?o:Fo,o(v,s)&&n.ref===i.ref)return br(n,i,d)}return i.flags|=1,n=dr(g,s),n.ref=i.ref,n.return=i,i.child=n}function xb(n,i,o,s,d){if(n!==null){var g=n.memoizedProps;if(Fo(g,s)&&n.ref===i.ref)if(yt=!1,i.pendingProps=s=g,Uf(n,d))(n.flags&131072)!==0&&(yt=!0);else return i.lanes=n.lanes,br(n,i,d)}return Mf(n,i,o,s,d)}function Sb(n,i,o){var s=i.pendingProps,d=s.children,g=n!==null?n.memoizedState:null;if(s.mode==="hidden"){if((i.flags&128)!==0){if(s=g!==null?g.baseLanes|o:o,n!==null){for(d=i.child=n.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;i.childLanes=g&~s}else i.childLanes=0,i.child=null;return Eb(n,i,s,o)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&js(i,g!==null?g.cachePool:null),g!==null?xv(i,g):mf(),sb(i);else return i.lanes=i.childLanes=536870912,Eb(n,i,g!==null?g.baseLanes|o:o,o)}else g!==null?(js(i,g.cachePool),xv(i,g),jr(),i.memoizedState=null):(n!==null&&js(i,null),mf(),jr());return Tt(n,i,d,o),i.child}function Eb(n,i,o,s){var d=uf();return d=d===null?null:{parent:ht._currentValue,pool:d},i.memoizedState={baseLanes:o,cachePool:d},n!==null&&js(i,null),mf(),sb(i),n!==null&&qo(n,i,s,!0),null}function oc(n,i){var o=i.ref;if(o===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(n===null||n.ref!==o)&&(i.flags|=4194816)}}function Mf(n,i,o,s,d){return Ni(i),o=yf(n,i,o,s,void 0,d),s=xf(),n!==null&&!yt?(Sf(n,i,d),br(n,i,d)):(ze&&s&&tf(i),i.flags|=1,Tt(n,i,o,d),i.child)}function Cb(n,i,o,s,d,g){return Ni(i),i.updateQueue=null,o=Ev(i,s,o,d),Sv(n),s=xf(),n!==null&&!yt?(Sf(n,i,g),br(n,i,g)):(ze&&s&&tf(i),i.flags|=1,Tt(n,i,o,g),i.child)}function wb(n,i,o,s,d){if(Ni(i),i.stateNode===null){var g=pa,v=o.contextType;typeof v=="object"&&v!==null&&(g=Pt(v)),g=new o(s,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Pf,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=s,g.state=i.memoizedState,g.refs={},ff(i),v=o.contextType,g.context=typeof v=="object"&&v!==null?Pt(v):pa,g.state=i.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(Df(i,o,v,s),g.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(v=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),v!==g.state&&Pf.enqueueReplaceState(g,g.state,null),el(i,s,g,d),Jo(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),s=!0}else if(n===null){g=i.stateNode;var S=i.memoizedProps,_=Ii(o,S);g.props=_;var M=g.context,G=o.contextType;v=pa,typeof G=="object"&&G!==null&&(v=Pt(G));var Y=o.getDerivedStateFromProps;G=typeof Y=="function"||typeof g.getSnapshotBeforeUpdate=="function",S=i.pendingProps!==S,G||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S||M!==v)&&ub(i,g,s,v),Lr=!1;var H=i.memoizedState;g.state=H,el(i,s,g,d),Jo(),M=i.memoizedState,S||H!==M||Lr?(typeof Y=="function"&&(Df(i,o,Y,s),M=i.memoizedState),(_=Lr||cb(i,o,_,s,H,M,v))?(G||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=s,i.memoizedState=M),g.props=s,g.state=M,g.context=v,s=_):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),s=!1)}else{g=i.stateNode,gf(n,i),v=i.memoizedProps,G=Ii(o,v),g.props=G,Y=i.pendingProps,H=g.context,M=o.contextType,_=pa,typeof M=="object"&&M!==null&&(_=Pt(M)),S=o.getDerivedStateFromProps,(M=typeof S=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(v!==Y||H!==_)&&ub(i,g,s,_),Lr=!1,H=i.memoizedState,g.state=H,el(i,s,g,d),Jo();var $=i.memoizedState;v!==Y||H!==$||Lr||n!==null&&n.dependencies!==null&&$s(n.dependencies)?(typeof S=="function"&&(Df(i,o,S,s),$=i.memoizedState),(G=Lr||cb(i,o,G,s,H,$,_)||n!==null&&n.dependencies!==null&&$s(n.dependencies))?(M||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,$,_),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,$,_)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||v===n.memoizedProps&&H===n.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&H===n.memoizedState||(i.flags|=1024),i.memoizedProps=s,i.memoizedState=$),g.props=s,g.state=$,g.context=_,s=G):(typeof g.componentDidUpdate!="function"||v===n.memoizedProps&&H===n.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&H===n.memoizedState||(i.flags|=1024),s=!1)}return g=s,oc(n,i),s=(i.flags&128)!==0,g||s?(g=i.stateNode,o=s&&typeof o.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,n!==null&&s?(i.child=Oa(i,n.child,null,d),i.child=Oa(i,null,o,d)):Tt(n,i,o,d),i.memoizedState=g.state,n=i.child):n=br(n,i,d),n}function Ob(n,i,o,s){return Go(),i.flags|=256,Tt(n,i,o,s),i.child}var Lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bf(n){return{baseLanes:n,cachePool:fv()}}function Hf(n,i,o){return n=n!==null?n.childLanes&~o:0,i&&(n|=Nn),n}function Tb(n,i,o){var s=i.pendingProps,d=!1,g=(i.flags&128)!==0,v;if((v=g)||(v=n!==null&&n.memoizedState===null?!1:(pt.current&2)!==0),v&&(d=!0,i.flags&=-129),v=(i.flags&32)!==0,i.flags&=-33,n===null){if(ze){if(d?Fr(i):jr(),ze){var S=nt,_;if(_=S){e:{for(_=S,S=jn;_.nodeType!==8;){if(!S){S=null;break e}if(_=Mn(_.nextSibling),_===null){S=null;break e}}S=_}S!==null?(i.memoizedState={dehydrated:S,treeContext:wi!==null?{id:fr,overflow:gr}:null,retryLane:536870912,hydrationErrors:null},_=rn(18,null,null,0),_.stateNode=S,_.return=i,i.child=_,Bt=i,nt=null,_=!0):_=!1}_||ki(i)}if(S=i.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return Cg(S)?i.lanes=32:i.lanes=536870912,null;vr(i)}return S=s.children,s=s.fallback,d?(jr(),d=i.mode,S=lc({mode:"hidden",children:S},d),s=Ci(s,d,o,null),S.return=i,s.return=i,S.sibling=s,i.child=S,d=i.child,d.memoizedState=Bf(o),d.childLanes=Hf(n,v,o),i.memoizedState=Lf,s):(Fr(i),$f(i,S))}if(_=n.memoizedState,_!==null&&(S=_.dehydrated,S!==null)){if(g)i.flags&256?(Fr(i),i.flags&=-257,i=Ff(n,i,o)):i.memoizedState!==null?(jr(),i.child=n.child,i.flags|=128,i=null):(jr(),d=s.fallback,S=i.mode,s=lc({mode:"visible",children:s.children},S),d=Ci(d,S,o,null),d.flags|=2,s.return=i,d.return=i,s.sibling=d,i.child=s,Oa(i,n.child,null,o),s=i.child,s.memoizedState=Bf(o),s.childLanes=Hf(n,v,o),i.memoizedState=Lf,i=d);else if(Fr(i),Cg(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var M=v.dgst;v=M,s=Error(a(419)),s.stack="",s.digest=v,Wo({value:s,source:null,stack:null}),i=Ff(n,i,o)}else if(yt||qo(n,i,o,!1),v=(o&n.childLanes)!==0,yt||v){if(v=We,v!==null&&(s=o&-o,s=(s&42)!==0?1:Cd(s),s=(s&(v.suspendedLanes|o))!==0?0:s,s!==0&&s!==_.retryLane))throw _.retryLane=s,ha(n,s),cn(v,n,s),vb;S.data==="$?"||og(),i=Ff(n,i,o)}else S.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=_.treeContext,nt=Mn(S.nextSibling),Bt=i,ze=!0,Ti=null,jn=!1,n!==null&&(Tn[kn++]=fr,Tn[kn++]=gr,Tn[kn++]=wi,fr=n.id,gr=n.overflow,wi=i),i=$f(i,s.children),i.flags|=4096);return i}return d?(jr(),d=s.fallback,S=i.mode,_=n.child,M=_.sibling,s=dr(_,{mode:"hidden",children:s.children}),s.subtreeFlags=_.subtreeFlags&65011712,M!==null?d=dr(M,d):(d=Ci(d,S,o,null),d.flags|=2),d.return=i,s.return=i,s.sibling=d,i.child=s,s=d,d=i.child,S=n.child.memoizedState,S===null?S=Bf(o):(_=S.cachePool,_!==null?(M=ht._currentValue,_=_.parent!==M?{parent:M,pool:M}:_):_=fv(),S={baseLanes:S.baseLanes|o,cachePool:_}),d.memoizedState=S,d.childLanes=Hf(n,v,o),i.memoizedState=Lf,s):(Fr(i),o=n.child,n=o.sibling,o=dr(o,{mode:"visible",children:s.children}),o.return=i,o.sibling=null,n!==null&&(v=i.deletions,v===null?(i.deletions=[n],i.flags|=16):v.push(n)),i.child=o,i.memoizedState=null,o)}function $f(n,i){return i=lc({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function lc(n,i){return n=rn(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Ff(n,i,o){return Oa(i,n.child,null,o),n=$f(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function kb(n,i,o){n.lanes|=i;var s=n.alternate;s!==null&&(s.lanes|=i),of(n.return,i,o)}function jf(n,i,o,s,d){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:d}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=o,g.tailMode=d)}function Rb(n,i,o){var s=i.pendingProps,d=s.revealOrder,g=s.tail;if(Tt(n,i,s.children,o),s=pt.current,(s&2)!==0)s=s&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&kb(n,o,i);else if(n.tag===19)kb(n,o,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}s&=1}switch(ae(pt,s),d){case"forwards":for(o=i.child,d=null;o!==null;)n=o.alternate,n!==null&&rc(n)===null&&(d=o),o=o.sibling;o=d,o===null?(d=i.child,i.child=null):(d=o.sibling,o.sibling=null),jf(i,!1,d,o,g);break;case"backwards":for(o=null,d=i.child,i.child=null;d!==null;){if(n=d.alternate,n!==null&&rc(n)===null){i.child=d;break}n=d.sibling,d.sibling=o,o=d,d=n}jf(i,!0,o,null,g);break;case"together":jf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function br(n,i,o){if(n!==null&&(i.dependencies=n.dependencies),Yr|=i.lanes,(o&i.childLanes)===0)if(n!==null){if(qo(n,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(a(153));if(i.child!==null){for(n=i.child,o=dr(n,n.pendingProps),i.child=o,o.return=i;n.sibling!==null;)n=n.sibling,o=o.sibling=dr(n,n.pendingProps),o.return=i;o.sibling=null}return i.child}function Uf(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&$s(n)))}function tT(n,i,o){switch(i.tag){case 3:Q(i,i.stateNode.containerInfo),Mr(i,ht,n.memoizedState.cache),Go();break;case 27:case 5:Se(i);break;case 4:Q(i,i.stateNode.containerInfo);break;case 10:Mr(i,i.type,i.memoizedProps.value);break;case 13:var s=i.memoizedState;if(s!==null)return s.dehydrated!==null?(Fr(i),i.flags|=128,null):(o&i.child.childLanes)!==0?Tb(n,i,o):(Fr(i),n=br(n,i,o),n!==null?n.sibling:null);Fr(i);break;case 19:var d=(n.flags&128)!==0;if(s=(o&i.childLanes)!==0,s||(qo(n,i,o,!1),s=(o&i.childLanes)!==0),d){if(s)return Rb(n,i,o);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ae(pt,pt.current),s)break;return null;case 22:case 23:return i.lanes=0,Sb(n,i,o);case 24:Mr(i,ht,n.memoizedState.cache)}return br(n,i,o)}function Nb(n,i,o){if(n!==null)if(n.memoizedProps!==i.pendingProps)yt=!0;else{if(!Uf(n,o)&&(i.flags&128)===0)return yt=!1,tT(n,i,o);yt=(n.flags&131072)!==0}else yt=!1,ze&&(i.flags&1048576)!==0&&av(i,Hs,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var s=i.elementType,d=s._init;if(s=d(s._payload),i.type=s,typeof s=="function")Zd(s)?(n=Ii(s,n),i.tag=1,i=wb(null,i,s,n,o)):(i.tag=0,i=Mf(null,i,s,n,o));else{if(s!=null){if(d=s.$$typeof,d===z){i.tag=11,i=bb(null,i,s,n,o);break e}else if(d===j){i.tag=14,i=yb(null,i,s,n,o);break e}}throw i=se(s)||s,Error(a(306,i,""))}}return i;case 0:return Mf(n,i,i.type,i.pendingProps,o);case 1:return s=i.type,d=Ii(s,i.pendingProps),wb(n,i,s,d,o);case 3:e:{if(Q(i,i.stateNode.containerInfo),n===null)throw Error(a(387));s=i.pendingProps;var g=i.memoizedState;d=g.element,gf(n,i),el(i,s,null,o);var v=i.memoizedState;if(s=v.cache,Mr(i,ht,s),s!==g.cache&&lf(i,[ht],o,!0),Jo(),s=v.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:v.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=Ob(n,i,s,o);break e}else if(s!==d){d=wn(Error(a(424)),i),Wo(d),i=Ob(n,i,s,o);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(nt=Mn(n.firstChild),Bt=i,ze=!0,Ti=null,jn=!0,o=lb(i,null,s,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Go(),s===d){i=br(n,i,o);break e}Tt(n,i,s,o)}i=i.child}return i;case 26:return oc(n,i),n===null?(o=zy(i.type,null,i.pendingProps,null))?i.memoizedState=o:ze||(o=i.type,n=i.pendingProps,s=Sc(fe.current).createElement(o),s[Dt]=i,s[Ft]=n,Rt(s,o,n),bt(s),i.stateNode=s):i.memoizedState=zy(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Se(i),n===null&&ze&&(s=i.stateNode=Ay(i.type,i.pendingProps,fe.current),Bt=i,jn=!0,d=nt,Zr(i.type)?(wg=d,nt=Mn(s.firstChild)):nt=d),Tt(n,i,i.pendingProps.children,o),oc(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&ze&&((d=s=nt)&&(s=NT(s,i.type,i.pendingProps,jn),s!==null?(i.stateNode=s,Bt=i,nt=Mn(s.firstChild),jn=!1,d=!0):d=!1),d||ki(i)),Se(i),d=i.type,g=i.pendingProps,v=n!==null?n.memoizedProps:null,s=g.children,xg(d,g)?s=null:v!==null&&xg(d,v)&&(i.flags|=32),i.memoizedState!==null&&(d=yf(n,i,qO,null,null,o),El._currentValue=d),oc(n,i),Tt(n,i,s,o),i.child;case 6:return n===null&&ze&&((n=o=nt)&&(o=AT(o,i.pendingProps,jn),o!==null?(i.stateNode=o,Bt=i,nt=null,n=!0):n=!1),n||ki(i)),null;case 13:return Tb(n,i,o);case 4:return Q(i,i.stateNode.containerInfo),s=i.pendingProps,n===null?i.child=Oa(i,null,s,o):Tt(n,i,s,o),i.child;case 11:return bb(n,i,i.type,i.pendingProps,o);case 7:return Tt(n,i,i.pendingProps,o),i.child;case 8:return Tt(n,i,i.pendingProps.children,o),i.child;case 12:return Tt(n,i,i.pendingProps.children,o),i.child;case 10:return s=i.pendingProps,Mr(i,i.type,s.value),Tt(n,i,s.children,o),i.child;case 9:return d=i.type._context,s=i.pendingProps.children,Ni(i),d=Pt(d),s=s(d),i.flags|=1,Tt(n,i,s,o),i.child;case 14:return yb(n,i,i.type,i.pendingProps,o);case 15:return xb(n,i,i.type,i.pendingProps,o);case 19:return Rb(n,i,o);case 31:return s=i.pendingProps,o=i.mode,s={mode:s.mode,children:s.children},n===null?(o=lc(s,o),o.ref=i.ref,i.child=o,o.return=i,i=o):(o=dr(n.child,s),o.ref=i.ref,i.child=o,o.return=i,i=o),i;case 22:return Sb(n,i,o);case 24:return Ni(i),s=Pt(ht),n===null?(d=uf(),d===null&&(d=We,g=sf(),d.pooledCache=g,g.refCount++,g!==null&&(d.pooledCacheLanes|=o),d=g),i.memoizedState={parent:s,cache:d},ff(i),Mr(i,ht,d)):((n.lanes&o)!==0&&(gf(n,i),el(i,null,null,o),Jo()),d=n.memoizedState,g=i.memoizedState,d.parent!==s?(d={parent:s,cache:s},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),Mr(i,ht,s)):(s=g.cache,Mr(i,ht,s),s!==d.cache&&lf(i,[ht],o,!0))),Tt(n,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function yr(n){n.flags|=4}function Ab(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Ly(i)){if(i=Rn.current,i!==null&&((Ne&4194048)===Ne?Un!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||i!==Un))throw Qo=df,gv;n.flags|=8192}}function sc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?sm():536870912,n.lanes|=i,Na|=i)}function ll(n,i){if(!ze)switch(n.tailMode){case"hidden":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function Ze(n){var i=n.alternate!==null&&n.alternate.child===n.child,o=0,s=0;if(i)for(var d=n.child;d!==null;)o|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)o|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=s,n.childLanes=o,i}function nT(n,i,o){var s=i.pendingProps;switch(nf(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(i),null;case 1:return Ze(i),null;case 3:return o=i.stateNode,s=null,n!==null&&(s=n.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),pr(ht),ee(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(Uo(i)?yr(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,sv())),Ze(i),null;case 26:return o=i.memoizedState,n===null?(yr(i),o!==null?(Ze(i),Ab(i,o)):(Ze(i),i.flags&=-16777217)):o?o!==n.memoizedState?(yr(i),Ze(i),Ab(i,o)):(Ze(i),i.flags&=-16777217):(n.memoizedProps!==s&&yr(i),Ze(i),i.flags&=-16777217),null;case 27:Re(i),o=fe.current;var d=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==s&&yr(i);else{if(!s){if(i.stateNode===null)throw Error(a(166));return Ze(i),null}n=ue.current,Uo(i)?ov(i):(n=Ay(d,s,o),i.stateNode=n,yr(i))}return Ze(i),null;case 5:if(Re(i),o=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==s&&yr(i);else{if(!s){if(i.stateNode===null)throw Error(a(166));return Ze(i),null}if(n=ue.current,Uo(i))ov(i);else{switch(d=Sc(fe.current),n){case 1:n=d.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:n=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":n=d.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":n=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":n=d.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof s.is=="string"?d.createElement("select",{is:s.is}):d.createElement("select"),s.multiple?n.multiple=!0:s.size&&(n.size=s.size);break;default:n=typeof s.is=="string"?d.createElement(o,{is:s.is}):d.createElement(o)}}n[Dt]=i,n[Ft]=s;e:for(d=i.child;d!==null;){if(d.tag===5||d.tag===6)n.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i.stateNode=n;e:switch(Rt(n,o,s),o){case"button":case"input":case"select":case"textarea":n=!!s.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&yr(i)}}return Ze(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==s&&yr(i);else{if(typeof s!="string"&&i.stateNode===null)throw Error(a(166));if(n=fe.current,Uo(i)){if(n=i.stateNode,o=i.memoizedProps,s=null,d=Bt,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}n[Dt]=i,n=!!(n.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||Cy(n.nodeValue,o)),n||ki(i)}else n=Sc(n).createTextNode(s),n[Dt]=i,i.stateNode=n}return Ze(i),null;case 13:if(s=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Uo(i),s!==null&&s.dehydrated!==null){if(n===null){if(!d)throw Error(a(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[Dt]=i}else Go(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ze(i),d=!1}else d=sv(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return i.flags&256?(vr(i),i):(vr(i),null)}if(vr(i),(i.flags&128)!==0)return i.lanes=o,i;if(o=s!==null,n=n!==null&&n.memoizedState!==null,o){s=i.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool);var g=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==d&&(s.flags|=2048)}return o!==n&&o&&(i.child.flags|=8192),sc(i,i.updateQueue),Ze(i),null;case 4:return ee(),n===null&&pg(i.stateNode.containerInfo),Ze(i),null;case 10:return pr(i.type),Ze(i),null;case 19:if(re(pt),d=i.memoizedState,d===null)return Ze(i),null;if(s=(i.flags&128)!==0,g=d.rendering,g===null)if(s)ll(d,!1);else{if(rt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(g=rc(n),g!==null){for(i.flags|=128,ll(d,!1),n=g.updateQueue,i.updateQueue=n,sc(i,n),i.subtreeFlags=0,n=o,o=i.child;o!==null;)iv(o,n),o=o.sibling;return ae(pt,pt.current&1|2),i.child}n=n.sibling}d.tail!==null&&Sn()>dc&&(i.flags|=128,s=!0,ll(d,!1),i.lanes=4194304)}else{if(!s)if(n=rc(g),n!==null){if(i.flags|=128,s=!0,n=n.updateQueue,i.updateQueue=n,sc(i,n),ll(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!ze)return Ze(i),null}else 2*Sn()-d.renderingStartTime>dc&&o!==536870912&&(i.flags|=128,s=!0,ll(d,!1),i.lanes=4194304);d.isBackwards?(g.sibling=i.child,i.child=g):(n=d.last,n!==null?n.sibling=g:i.child=g,d.last=g)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=Sn(),i.sibling=null,n=pt.current,ae(pt,s?n&1|2:n&1),i):(Ze(i),null);case 22:case 23:return vr(i),vf(),s=i.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(i.flags|=8192):s&&(i.flags|=8192),s?(o&536870912)!==0&&(i.flags&128)===0&&(Ze(i),i.subtreeFlags&6&&(i.flags|=8192)):Ze(i),o=i.updateQueue,o!==null&&sc(i,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==o&&(i.flags|=2048),n!==null&&re(Ai),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),pr(ht),Ze(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function rT(n,i){switch(nf(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return pr(ht),ee(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Re(i),null;case 13:if(vr(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(a(340));Go()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return re(pt),null;case 4:return ee(),null;case 10:return pr(i.type),null;case 22:case 23:return vr(i),vf(),n!==null&&re(Ai),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return pr(ht),null;case 25:return null;default:return null}}function _b(n,i){switch(nf(i),i.tag){case 3:pr(ht),ee();break;case 26:case 27:case 5:Re(i);break;case 4:ee();break;case 13:vr(i);break;case 19:re(pt);break;case 10:pr(i.type);break;case 22:case 23:vr(i),vf(),n!==null&&re(Ai);break;case 24:pr(ht)}}function sl(n,i){try{var o=i.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var d=s.next;o=d;do{if((o.tag&n)===n){s=void 0;var g=o.create,v=o.inst;s=g(),v.destroy=s}o=o.next}while(o!==d)}}catch(S){je(i,i.return,S)}}function Ur(n,i,o){try{var s=i.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var g=d.next;s=g;do{if((s.tag&n)===n){var v=s.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,d=i;var _=o,M=S;try{M()}catch(G){je(d,_,G)}}}s=s.next}while(s!==g)}}catch(G){je(i,i.return,G)}}function Ib(n){var i=n.updateQueue;if(i!==null){var o=n.stateNode;try{yv(i,o)}catch(s){je(n,n.return,s)}}}function zb(n,i,o){o.props=Ii(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(s){je(n,i,s)}}function cl(n,i){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof o=="function"?n.refCleanup=o(s):o.current=s}}catch(d){je(n,i,d)}}function Gn(n,i){var o=n.ref,s=n.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(d){je(n,i,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(d){je(n,i,d)}else o.current=null}function Db(n){var i=n.type,o=n.memoizedProps,s=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(d){je(n,n.return,d)}}function Gf(n,i,o){try{var s=n.stateNode;wT(s,n.type,o,i),s[Ft]=i}catch(d){je(n,n.return,d)}}function Pb(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Zr(n.type)||n.tag===4}function Wf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Pb(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Zr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function qf(n,i,o){var s=n.tag;if(s===5||s===6)n=n.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(n),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=xc));else if(s!==4&&(s===27&&Zr(n.type)&&(o=n.stateNode,i=null),n=n.child,n!==null))for(qf(n,i,o),n=n.sibling;n!==null;)qf(n,i,o),n=n.sibling}function cc(n,i,o){var s=n.tag;if(s===5||s===6)n=n.stateNode,i?o.insertBefore(n,i):o.appendChild(n);else if(s!==4&&(s===27&&Zr(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(cc(n,i,o),n=n.sibling;n!==null;)cc(n,i,o),n=n.sibling}function Vb(n){var i=n.stateNode,o=n.memoizedProps;try{for(var s=n.type,d=i.attributes;d.length;)i.removeAttributeNode(d[0]);Rt(i,s,o),i[Dt]=n,i[Ft]=o}catch(g){je(n,n.return,g)}}var xr=!1,ot=!1,Yf=!1,Mb=typeof WeakSet=="function"?WeakSet:Set,xt=null;function iT(n,i){if(n=n.containerInfo,bg=kc,n=Ym(n),Gd(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var d=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var v=0,S=-1,_=-1,M=0,G=0,Y=n,H=null;t:for(;;){for(var $;Y!==o||d!==0&&Y.nodeType!==3||(S=v+d),Y!==g||s!==0&&Y.nodeType!==3||(_=v+s),Y.nodeType===3&&(v+=Y.nodeValue.length),($=Y.firstChild)!==null;)H=Y,Y=$;for(;;){if(Y===n)break t;if(H===o&&++M===d&&(S=v),H===g&&++G===s&&(_=v),($=Y.nextSibling)!==null)break;Y=H,H=Y.parentNode}Y=$}o=S===-1||_===-1?null:{start:S,end:_}}else o=null}o=o||{start:0,end:0}}else o=null;for(yg={focusedElem:n,selectionRange:o},kc=!1,xt=i;xt!==null;)if(i=xt,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,xt=n;else for(;xt!==null;){switch(i=xt,g=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,o=i,d=g.memoizedProps,g=g.memoizedState,s=o.stateNode;try{var be=Ii(o.type,d,o.elementType===o.type);n=s.getSnapshotBeforeUpdate(be,g),s.__reactInternalSnapshotBeforeUpdate=n}catch(pe){je(o,o.return,pe)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,o=n.nodeType,o===9)Eg(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Eg(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=i.sibling,n!==null){n.return=i.return,xt=n;break}xt=i.return}}function Lb(n,i,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:Gr(n,o),s&4&&sl(5,o);break;case 1:if(Gr(n,o),s&4)if(n=o.stateNode,i===null)try{n.componentDidMount()}catch(v){je(o,o.return,v)}else{var d=Ii(o.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(d,i,n.__reactInternalSnapshotBeforeUpdate)}catch(v){je(o,o.return,v)}}s&64&&Ib(o),s&512&&cl(o,o.return);break;case 3:if(Gr(n,o),s&64&&(n=o.updateQueue,n!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{yv(n,i)}catch(v){je(o,o.return,v)}}break;case 27:i===null&&s&4&&Vb(o);case 26:case 5:Gr(n,o),i===null&&s&4&&Db(o),s&512&&cl(o,o.return);break;case 12:Gr(n,o);break;case 13:Gr(n,o),s&4&&$b(n,o),s&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=gT.bind(null,o),_T(n,o))));break;case 22:if(s=o.memoizedState!==null||xr,!s){i=i!==null&&i.memoizedState!==null||ot,d=xr;var g=ot;xr=s,(ot=i)&&!g?Wr(n,o,(o.subtreeFlags&8772)!==0):Gr(n,o),xr=d,ot=g}break;case 30:break;default:Gr(n,o)}}function Bb(n){var i=n.alternate;i!==null&&(n.alternate=null,Bb(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Td(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Ke=null,Gt=!1;function Sr(n,i,o){for(o=o.child;o!==null;)Hb(n,i,o),o=o.sibling}function Hb(n,i,o){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ao,o)}catch{}switch(o.tag){case 26:ot||Gn(o,i),Sr(n,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:ot||Gn(o,i);var s=Ke,d=Gt;Zr(o.type)&&(Ke=o.stateNode,Gt=!1),Sr(n,i,o),bl(o.stateNode),Ke=s,Gt=d;break;case 5:ot||Gn(o,i);case 6:if(s=Ke,d=Gt,Ke=null,Sr(n,i,o),Ke=s,Gt=d,Ke!==null)if(Gt)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(o.stateNode)}catch(g){je(o,i,g)}else try{Ke.removeChild(o.stateNode)}catch(g){je(o,i,g)}break;case 18:Ke!==null&&(Gt?(n=Ke,Ry(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Tl(n)):Ry(Ke,o.stateNode));break;case 4:s=Ke,d=Gt,Ke=o.stateNode.containerInfo,Gt=!0,Sr(n,i,o),Ke=s,Gt=d;break;case 0:case 11:case 14:case 15:ot||Ur(2,o,i),ot||Ur(4,o,i),Sr(n,i,o);break;case 1:ot||(Gn(o,i),s=o.stateNode,typeof s.componentWillUnmount=="function"&&zb(o,i,s)),Sr(n,i,o);break;case 21:Sr(n,i,o);break;case 22:ot=(s=ot)||o.memoizedState!==null,Sr(n,i,o),ot=s;break;default:Sr(n,i,o)}}function $b(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Tl(n)}catch(o){je(i,i.return,o)}}function aT(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new Mb),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new Mb),i;default:throw Error(a(435,n.tag))}}function Xf(n,i){var o=aT(n);i.forEach(function(s){var d=hT.bind(null,n,s);o.has(s)||(o.add(s),s.then(d,d))})}function an(n,i){var o=i.deletions;if(o!==null)for(var s=0;s<o.length;s++){var d=o[s],g=n,v=i,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Zr(S.type)){Ke=S.stateNode,Gt=!1;break e}break;case 5:Ke=S.stateNode,Gt=!1;break e;case 3:case 4:Ke=S.stateNode.containerInfo,Gt=!0;break e}S=S.return}if(Ke===null)throw Error(a(160));Hb(g,v,d),Ke=null,Gt=!1,g=d.alternate,g!==null&&(g.return=null),d.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)Fb(i,n),i=i.sibling}var Vn=null;function Fb(n,i){var o=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:an(i,n),on(n),s&4&&(Ur(3,n,n.return),sl(3,n),Ur(5,n,n.return));break;case 1:an(i,n),on(n),s&512&&(ot||o===null||Gn(o,o.return)),s&64&&xr&&(n=n.updateQueue,n!==null&&(s=n.callbacks,s!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?s:o.concat(s))));break;case 26:var d=Vn;if(an(i,n),on(n),s&512&&(ot||o===null||Gn(o,o.return)),s&4){var g=o!==null?o.memoizedState:null;if(s=n.memoizedState,o===null)if(s===null)if(n.stateNode===null){e:{s=n.type,o=n.memoizedProps,d=d.ownerDocument||d;t:switch(s){case"title":g=d.getElementsByTagName("title")[0],(!g||g[zo]||g[Dt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=d.createElement(s),d.head.insertBefore(g,d.querySelector("head > title"))),Rt(g,s,o),g[Dt]=n,bt(g),s=g;break e;case"link":var v=Vy("link","href",d).get(s+(o.href||""));if(v){for(var S=0;S<v.length;S++)if(g=v[S],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){v.splice(S,1);break t}}g=d.createElement(s),Rt(g,s,o),d.head.appendChild(g);break;case"meta":if(v=Vy("meta","content",d).get(s+(o.content||""))){for(S=0;S<v.length;S++)if(g=v[S],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){v.splice(S,1);break t}}g=d.createElement(s),Rt(g,s,o),d.head.appendChild(g);break;default:throw Error(a(468,s))}g[Dt]=n,bt(g),s=g}n.stateNode=s}else My(d,n.type,n.stateNode);else n.stateNode=Py(d,s,n.memoizedProps);else g!==s?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,s===null?My(d,n.type,n.stateNode):Py(d,s,n.memoizedProps)):s===null&&n.stateNode!==null&&Gf(n,n.memoizedProps,o.memoizedProps)}break;case 27:an(i,n),on(n),s&512&&(ot||o===null||Gn(o,o.return)),o!==null&&s&4&&Gf(n,n.memoizedProps,o.memoizedProps);break;case 5:if(an(i,n),on(n),s&512&&(ot||o===null||Gn(o,o.return)),n.flags&32){d=n.stateNode;try{la(d,"")}catch($){je(n,n.return,$)}}s&4&&n.stateNode!=null&&(d=n.memoizedProps,Gf(n,d,o!==null?o.memoizedProps:d)),s&1024&&(Yf=!0);break;case 6:if(an(i,n),on(n),s&4){if(n.stateNode===null)throw Error(a(162));s=n.memoizedProps,o=n.stateNode;try{o.nodeValue=s}catch($){je(n,n.return,$)}}break;case 3:if(wc=null,d=Vn,Vn=Ec(i.containerInfo),an(i,n),Vn=d,on(n),s&4&&o!==null&&o.memoizedState.isDehydrated)try{Tl(i.containerInfo)}catch($){je(n,n.return,$)}Yf&&(Yf=!1,jb(n));break;case 4:s=Vn,Vn=Ec(n.stateNode.containerInfo),an(i,n),on(n),Vn=s;break;case 12:an(i,n),on(n);break;case 13:an(i,n),on(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(tg=Sn()),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Xf(n,s)));break;case 22:d=n.memoizedState!==null;var _=o!==null&&o.memoizedState!==null,M=xr,G=ot;if(xr=M||d,ot=G||_,an(i,n),ot=G,xr=M,on(n),s&8192)e:for(i=n.stateNode,i._visibility=d?i._visibility&-2:i._visibility|1,d&&(o===null||_||xr||ot||zi(n)),o=null,i=n;;){if(i.tag===5||i.tag===26){if(o===null){_=o=i;try{if(g=_.stateNode,d)v=g.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=_.stateNode;var Y=_.memoizedProps.style,H=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch($){je(_,_.return,$)}}}else if(i.tag===6){if(o===null){_=i;try{_.stateNode.nodeValue=d?"":_.memoizedProps}catch($){je(_,_.return,$)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}s&4&&(s=n.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,Xf(n,o))));break;case 19:an(i,n),on(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Xf(n,s)));break;case 30:break;case 21:break;default:an(i,n),on(n)}}function on(n){var i=n.flags;if(i&2){try{for(var o,s=n.return;s!==null;){if(Pb(s)){o=s;break}s=s.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var d=o.stateNode,g=Wf(n);cc(n,g,d);break;case 5:var v=o.stateNode;o.flags&32&&(la(v,""),o.flags&=-33);var S=Wf(n);cc(n,S,v);break;case 3:case 4:var _=o.stateNode.containerInfo,M=Wf(n);qf(n,M,_);break;default:throw Error(a(161))}}catch(G){je(n,n.return,G)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function jb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;jb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function Gr(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Lb(n,i.alternate,i),i=i.sibling}function zi(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Ur(4,i,i.return),zi(i);break;case 1:Gn(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&zb(i,i.return,o),zi(i);break;case 27:bl(i.stateNode);case 26:case 5:Gn(i,i.return),zi(i);break;case 22:i.memoizedState===null&&zi(i);break;case 30:zi(i);break;default:zi(i)}n=n.sibling}}function Wr(n,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var s=i.alternate,d=n,g=i,v=g.flags;switch(g.tag){case 0:case 11:case 15:Wr(d,g,o),sl(4,g);break;case 1:if(Wr(d,g,o),s=g,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(M){je(s,s.return,M)}if(s=g,d=s.updateQueue,d!==null){var S=s.stateNode;try{var _=d.shared.hiddenCallbacks;if(_!==null)for(d.shared.hiddenCallbacks=null,d=0;d<_.length;d++)bv(_[d],S)}catch(M){je(s,s.return,M)}}o&&v&64&&Ib(g),cl(g,g.return);break;case 27:Vb(g);case 26:case 5:Wr(d,g,o),o&&s===null&&v&4&&Db(g),cl(g,g.return);break;case 12:Wr(d,g,o);break;case 13:Wr(d,g,o),o&&v&4&&$b(d,g);break;case 22:g.memoizedState===null&&Wr(d,g,o),cl(g,g.return);break;case 30:break;default:Wr(d,g,o)}i=i.sibling}}function Kf(n,i){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&Yo(o))}function Qf(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Yo(n))}function Wn(n,i,o,s){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Ub(n,i,o,s),i=i.sibling}function Ub(n,i,o,s){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Wn(n,i,o,s),d&2048&&sl(9,i);break;case 1:Wn(n,i,o,s);break;case 3:Wn(n,i,o,s),d&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Yo(n)));break;case 12:if(d&2048){Wn(n,i,o,s),n=i.stateNode;try{var g=i.memoizedProps,v=g.id,S=g.onPostCommit;typeof S=="function"&&S(v,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(_){je(i,i.return,_)}}else Wn(n,i,o,s);break;case 13:Wn(n,i,o,s);break;case 23:break;case 22:g=i.stateNode,v=i.alternate,i.memoizedState!==null?g._visibility&2?Wn(n,i,o,s):ul(n,i):g._visibility&2?Wn(n,i,o,s):(g._visibility|=2,Ta(n,i,o,s,(i.subtreeFlags&10256)!==0)),d&2048&&Kf(v,i);break;case 24:Wn(n,i,o,s),d&2048&&Qf(i.alternate,i);break;default:Wn(n,i,o,s)}}function Ta(n,i,o,s,d){for(d=d&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var g=n,v=i,S=o,_=s,M=v.flags;switch(v.tag){case 0:case 11:case 15:Ta(g,v,S,_,d),sl(8,v);break;case 23:break;case 22:var G=v.stateNode;v.memoizedState!==null?G._visibility&2?Ta(g,v,S,_,d):ul(g,v):(G._visibility|=2,Ta(g,v,S,_,d)),d&&M&2048&&Kf(v.alternate,v);break;case 24:Ta(g,v,S,_,d),d&&M&2048&&Qf(v.alternate,v);break;default:Ta(g,v,S,_,d)}i=i.sibling}}function ul(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=n,s=i,d=s.flags;switch(s.tag){case 22:ul(o,s),d&2048&&Kf(s.alternate,s);break;case 24:ul(o,s),d&2048&&Qf(s.alternate,s);break;default:ul(o,s)}i=i.sibling}}var dl=8192;function ka(n){if(n.subtreeFlags&dl)for(n=n.child;n!==null;)Gb(n),n=n.sibling}function Gb(n){switch(n.tag){case 26:ka(n),n.flags&dl&&n.memoizedState!==null&&UT(Vn,n.memoizedState,n.memoizedProps);break;case 5:ka(n);break;case 3:case 4:var i=Vn;Vn=Ec(n.stateNode.containerInfo),ka(n),Vn=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=dl,dl=16777216,ka(n),dl=i):ka(n));break;default:ka(n)}}function Wb(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function fl(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var s=i[o];xt=s,Yb(s,n)}Wb(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)qb(n),n=n.sibling}function qb(n){switch(n.tag){case 0:case 11:case 15:fl(n),n.flags&2048&&Ur(9,n,n.return);break;case 3:fl(n);break;case 12:fl(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,uc(n)):fl(n);break;default:fl(n)}}function uc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var s=i[o];xt=s,Yb(s,n)}Wb(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Ur(8,i,i.return),uc(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,uc(i));break;default:uc(i)}n=n.sibling}}function Yb(n,i){for(;xt!==null;){var o=xt;switch(o.tag){case 0:case 11:case 15:Ur(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var s=o.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Yo(o.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,xt=s;else e:for(o=n;xt!==null;){s=xt;var d=s.sibling,g=s.return;if(Bb(s),s===o){xt=null;break e}if(d!==null){d.return=g,xt=d;break e}xt=g}}}var oT={getCacheForType:function(n){var i=Pt(ht),o=i.data.get(n);return o===void 0&&(o=n(),i.data.set(n,o)),o}},lT=typeof WeakMap=="function"?WeakMap:Map,Le=0,We=null,Te=null,Ne=0,Be=0,ln=null,qr=!1,Ra=!1,Zf=!1,Er=0,rt=0,Yr=0,Di=0,Jf=0,Nn=0,Na=0,gl=null,Wt=null,eg=!1,tg=0,dc=1/0,fc=null,Xr=null,kt=0,Kr=null,Aa=null,_a=0,ng=0,rg=null,Xb=null,hl=0,ig=null;function sn(){if((Le&2)!==0&&Ne!==0)return Ne&-Ne;if(L.T!==null){var n=ba;return n!==0?n:dg()}return dm()}function Kb(){Nn===0&&(Nn=(Ne&536870912)===0||ze?lm():536870912);var n=Rn.current;return n!==null&&(n.flags|=32),Nn}function cn(n,i,o){(n===We&&(Be===2||Be===9)||n.cancelPendingCommit!==null)&&(Ia(n,0),Qr(n,Ne,Nn,!1)),Io(n,o),((Le&2)===0||n!==We)&&(n===We&&((Le&2)===0&&(Di|=o),rt===4&&Qr(n,Ne,Nn,!1)),qn(n))}function Qb(n,i,o){if((Le&6)!==0)throw Error(a(327));var s=!o&&(i&124)===0&&(i&n.expiredLanes)===0||_o(n,i),d=s?uT(n,i):lg(n,i,!0),g=s;do{if(d===0){Ra&&!s&&Qr(n,i,0,!1);break}else{if(o=n.current.alternate,g&&!sT(o)){d=lg(n,i,!1),g=!1;continue}if(d===2){if(g=i,n.errorRecoveryDisabledLanes&g)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){i=v;e:{var S=n;d=gl;var _=S.current.memoizedState.isDehydrated;if(_&&(Ia(S,v).flags|=256),v=lg(S,v,!1),v!==2){if(Zf&&!_){S.errorRecoveryDisabledLanes|=g,Di|=g,d=4;break e}g=Wt,Wt=d,g!==null&&(Wt===null?Wt=g:Wt.push.apply(Wt,g))}d=v}if(g=!1,d!==2)continue}}if(d===1){Ia(n,0),Qr(n,i,0,!0);break}e:{switch(s=n,g=d,g){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Qr(s,i,Nn,!qr);break e;case 2:Wt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(d=tg+300-Sn(),10<d)){if(Qr(s,i,Nn,!qr),Cs(s,0,!0)!==0)break e;s.timeoutHandle=Ty(Zb.bind(null,s,o,Wt,fc,eg,i,Nn,Di,Na,qr,g,2,-0,0),d);break e}Zb(s,o,Wt,fc,eg,i,Nn,Di,Na,qr,g,0,-0,0)}}break}while(!0);qn(n)}function Zb(n,i,o,s,d,g,v,S,_,M,G,Y,H,$){if(n.timeoutHandle=-1,Y=i.subtreeFlags,(Y&8192||(Y&16785408)===16785408)&&(Sl={stylesheets:null,count:0,unsuspend:jT},Gb(i),Y=GT(),Y!==null)){n.cancelPendingCommit=Y(ay.bind(null,n,i,g,o,s,d,v,S,_,G,1,H,$)),Qr(n,g,v,!M);return}ay(n,i,g,o,s,d,v,S,_)}function sT(n){for(var i=n;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var s=0;s<o.length;s++){var d=o[s],g=d.getSnapshot;d=d.value;try{if(!nn(g(),d))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Qr(n,i,o,s){i&=~Jf,i&=~Di,n.suspendedLanes|=i,n.pingedLanes&=~i,s&&(n.warmLanes|=i),s=n.expirationTimes;for(var d=i;0<d;){var g=31-tn(d),v=1<<g;s[g]=-1,d&=~v}o!==0&&cm(n,o,i)}function gc(){return(Le&6)===0?(pl(0),!1):!0}function ag(){if(Te!==null){if(Be===0)var n=Te.return;else n=Te,hr=Ri=null,Ef(n),wa=null,al=0,n=Te;for(;n!==null;)_b(n.alternate,n),n=n.return;Te=null}}function Ia(n,i){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,TT(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),ag(),We=n,Te=o=dr(n.current,null),Ne=i,Be=0,ln=null,qr=!1,Ra=_o(n,i),Zf=!1,Na=Nn=Jf=Di=Yr=rt=0,Wt=gl=null,eg=!1,(i&8)!==0&&(i|=i&32);var s=n.entangledLanes;if(s!==0)for(n=n.entanglements,s&=i;0<s;){var d=31-tn(s),g=1<<d;i|=n[d],s&=~g}return Er=i,Ps(),o}function Jb(n,i){we=null,L.H=ec,i===Ko||i===Us?(i=mv(),Be=3):i===gv?(i=mv(),Be=4):Be=i===vb?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,ln=i,Te===null&&(rt=1,ac(n,wn(i,n.current)))}function ey(){var n=L.H;return L.H=ec,n===null?ec:n}function ty(){var n=L.A;return L.A=oT,n}function og(){rt=4,qr||(Ne&4194048)!==Ne&&Rn.current!==null||(Ra=!0),(Yr&134217727)===0&&(Di&134217727)===0||We===null||Qr(We,Ne,Nn,!1)}function lg(n,i,o){var s=Le;Le|=2;var d=ey(),g=ty();(We!==n||Ne!==i)&&(fc=null,Ia(n,i)),i=!1;var v=rt;e:do try{if(Be!==0&&Te!==null){var S=Te,_=ln;switch(Be){case 8:ag(),v=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(i=!0);var M=Be;if(Be=0,ln=null,za(n,S,_,M),o&&Ra){v=0;break e}break;default:M=Be,Be=0,ln=null,za(n,S,_,M)}}cT(),v=rt;break}catch(G){Jb(n,G)}while(!0);return i&&n.shellSuspendCounter++,hr=Ri=null,Le=s,L.H=d,L.A=g,Te===null&&(We=null,Ne=0,Ps()),v}function cT(){for(;Te!==null;)ny(Te)}function uT(n,i){var o=Le;Le|=2;var s=ey(),d=ty();We!==n||Ne!==i?(fc=null,dc=Sn()+500,Ia(n,i)):Ra=_o(n,i);e:do try{if(Be!==0&&Te!==null){i=Te;var g=ln;t:switch(Be){case 1:Be=0,ln=null,za(n,i,g,1);break;case 2:case 9:if(hv(g)){Be=0,ln=null,ry(i);break}i=function(){Be!==2&&Be!==9||We!==n||(Be=7),qn(n)},g.then(i,i);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:hv(g)?(Be=0,ln=null,ry(i)):(Be=0,ln=null,za(n,i,g,7));break;case 5:var v=null;switch(Te.tag){case 26:v=Te.memoizedState;case 5:case 27:var S=Te;if(!v||Ly(v)){Be=0,ln=null;var _=S.sibling;if(_!==null)Te=_;else{var M=S.return;M!==null?(Te=M,hc(M)):Te=null}break t}}Be=0,ln=null,za(n,i,g,5);break;case 6:Be=0,ln=null,za(n,i,g,6);break;case 8:ag(),rt=6;break e;default:throw Error(a(462))}}dT();break}catch(G){Jb(n,G)}while(!0);return hr=Ri=null,L.H=s,L.A=d,Le=o,Te!==null?0:(We=null,Ne=0,Ps(),rt)}function dT(){for(;Te!==null&&!Zi();)ny(Te)}function ny(n){var i=Nb(n.alternate,n,Er);n.memoizedProps=n.pendingProps,i===null?hc(n):Te=i}function ry(n){var i=n,o=i.alternate;switch(i.tag){case 15:case 0:i=Cb(o,i,i.pendingProps,i.type,void 0,Ne);break;case 11:i=Cb(o,i,i.pendingProps,i.type.render,i.ref,Ne);break;case 5:Ef(i);default:_b(o,i),i=Te=iv(i,Er),i=Nb(o,i,Er)}n.memoizedProps=n.pendingProps,i===null?hc(n):Te=i}function za(n,i,o,s){hr=Ri=null,Ef(i),wa=null,al=0;var d=i.return;try{if(eT(n,d,i,o,Ne)){rt=1,ac(n,wn(o,n.current)),Te=null;return}}catch(g){if(d!==null)throw Te=d,g;rt=1,ac(n,wn(o,n.current)),Te=null;return}i.flags&32768?(ze||s===1?n=!0:Ra||(Ne&536870912)!==0?n=!1:(qr=n=!0,(s===2||s===9||s===3||s===6)&&(s=Rn.current,s!==null&&s.tag===13&&(s.flags|=16384))),iy(i,n)):hc(i)}function hc(n){var i=n;do{if((i.flags&32768)!==0){iy(i,qr);return}n=i.return;var o=nT(i.alternate,i,Er);if(o!==null){Te=o;return}if(i=i.sibling,i!==null){Te=i;return}Te=i=n}while(i!==null);rt===0&&(rt=5)}function iy(n,i){do{var o=rT(n.alternate,n);if(o!==null){o.flags&=32767,Te=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(n=n.sibling,n!==null)){Te=n;return}Te=n=o}while(n!==null);rt=6,Te=null}function ay(n,i,o,s,d,g,v,S,_){n.cancelPendingCommit=null;do pc();while(kt!==0);if((Le&6)!==0)throw Error(a(327));if(i!==null){if(i===n.current)throw Error(a(177));if(g=i.lanes|i.childLanes,g|=Kd,jw(n,o,g,v,S,_),n===We&&(Te=We=null,Ne=0),Aa=i,Kr=n,_a=o,ng=g,rg=d,Xb=s,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,pT(vi,function(){return uy(),null})):(n.callbackNode=null,n.callbackPriority=0),s=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||s){s=L.T,L.T=null,d=J.p,J.p=2,v=Le,Le|=4;try{iT(n,i,o)}finally{Le=v,J.p=d,L.T=s}}kt=1,oy(),ly(),sy()}}function oy(){if(kt===1){kt=0;var n=Kr,i=Aa,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=L.T,L.T=null;var s=J.p;J.p=2;var d=Le;Le|=4;try{Fb(i,n);var g=yg,v=Ym(n.containerInfo),S=g.focusedElem,_=g.selectionRange;if(v!==S&&S&&S.ownerDocument&&qm(S.ownerDocument.documentElement,S)){if(_!==null&&Gd(S)){var M=_.start,G=_.end;if(G===void 0&&(G=M),"selectionStart"in S)S.selectionStart=M,S.selectionEnd=Math.min(G,S.value.length);else{var Y=S.ownerDocument||document,H=Y&&Y.defaultView||window;if(H.getSelection){var $=H.getSelection(),be=S.textContent.length,pe=Math.min(_.start,be),Fe=_.end===void 0?pe:Math.min(_.end,be);!$.extend&&pe>Fe&&(v=Fe,Fe=pe,pe=v);var D=Wm(S,pe),I=Wm(S,Fe);if(D&&I&&($.rangeCount!==1||$.anchorNode!==D.node||$.anchorOffset!==D.offset||$.focusNode!==I.node||$.focusOffset!==I.offset)){var V=Y.createRange();V.setStart(D.node,D.offset),$.removeAllRanges(),pe>Fe?($.addRange(V),$.extend(I.node,I.offset)):(V.setEnd(I.node,I.offset),$.addRange(V))}}}}for(Y=[],$=S;$=$.parentNode;)$.nodeType===1&&Y.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Y.length;S++){var W=Y[S];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}kc=!!bg,yg=bg=null}finally{Le=d,J.p=s,L.T=o}}n.current=i,kt=2}}function ly(){if(kt===2){kt=0;var n=Kr,i=Aa,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=L.T,L.T=null;var s=J.p;J.p=2;var d=Le;Le|=4;try{Lb(n,i.alternate,i)}finally{Le=d,J.p=s,L.T=o}}kt=3}}function sy(){if(kt===4||kt===3){kt=0,Ro();var n=Kr,i=Aa,o=_a,s=Xb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?kt=5:(kt=0,Aa=Kr=null,cy(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(Xr=null),wd(o),i=i.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Ao,i,void 0,(i.current.flags&128)===128)}catch{}if(s!==null){i=L.T,d=J.p,J.p=2,L.T=null;try{for(var g=n.onRecoverableError,v=0;v<s.length;v++){var S=s[v];g(S.value,{componentStack:S.stack})}}finally{L.T=i,J.p=d}}(_a&3)!==0&&pc(),qn(n),d=n.pendingLanes,(o&4194090)!==0&&(d&42)!==0?n===ig?hl++:(hl=0,ig=n):hl=0,pl(0)}}function cy(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Yo(i)))}function pc(n){return oy(),ly(),sy(),uy()}function uy(){if(kt!==5)return!1;var n=Kr,i=ng;ng=0;var o=wd(_a),s=L.T,d=J.p;try{J.p=32>o?32:o,L.T=null,o=rg,rg=null;var g=Kr,v=_a;if(kt=0,Aa=Kr=null,_a=0,(Le&6)!==0)throw Error(a(331));var S=Le;if(Le|=4,qb(g.current),Ub(g,g.current,v,o),Le=S,pl(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Ao,g)}catch{}return!0}finally{J.p=d,L.T=s,cy(n,i)}}function dy(n,i,o){i=wn(o,i),i=Vf(n.stateNode,i,2),n=Hr(n,i,2),n!==null&&(Io(n,2),qn(n))}function je(n,i,o){if(n.tag===3)dy(n,n,o);else for(;i!==null;){if(i.tag===3){dy(i,n,o);break}else if(i.tag===1){var s=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Xr===null||!Xr.has(s))){n=wn(o,n),o=pb(2),s=Hr(i,o,2),s!==null&&(mb(o,s,i,n),Io(s,2),qn(s));break}}i=i.return}}function sg(n,i,o){var s=n.pingCache;if(s===null){s=n.pingCache=new lT;var d=new Set;s.set(i,d)}else d=s.get(i),d===void 0&&(d=new Set,s.set(i,d));d.has(o)||(Zf=!0,d.add(o),n=fT.bind(null,n,i,o),i.then(n,n))}function fT(n,i,o){var s=n.pingCache;s!==null&&s.delete(i),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,We===n&&(Ne&o)===o&&(rt===4||rt===3&&(Ne&62914560)===Ne&&300>Sn()-tg?(Le&2)===0&&Ia(n,0):Jf|=o,Na===Ne&&(Na=0)),qn(n)}function fy(n,i){i===0&&(i=sm()),n=ha(n,i),n!==null&&(Io(n,i),qn(n))}function gT(n){var i=n.memoizedState,o=0;i!==null&&(o=i.retryLane),fy(n,o)}function hT(n,i){var o=0;switch(n.tag){case 13:var s=n.stateNode,d=n.memoizedState;d!==null&&(o=d.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(a(314))}s!==null&&s.delete(i),fy(n,o)}function pT(n,i){return it(n,i)}var mc=null,Da=null,cg=!1,vc=!1,ug=!1,Pi=0;function qn(n){n!==Da&&n.next===null&&(Da===null?mc=Da=n:Da=Da.next=n),vc=!0,cg||(cg=!0,vT())}function pl(n,i){if(!ug&&vc){ug=!0;do for(var o=!1,s=mc;s!==null;){if(n!==0){var d=s.pendingLanes;if(d===0)var g=0;else{var v=s.suspendedLanes,S=s.pingedLanes;g=(1<<31-tn(42|n)+1)-1,g&=d&~(v&~S),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,my(s,g))}else g=Ne,g=Cs(s,s===We?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(g&3)===0||_o(s,g)||(o=!0,my(s,g));s=s.next}while(o);ug=!1}}function mT(){gy()}function gy(){vc=cg=!1;var n=0;Pi!==0&&(OT()&&(n=Pi),Pi=0);for(var i=Sn(),o=null,s=mc;s!==null;){var d=s.next,g=hy(s,i);g===0?(s.next=null,o===null?mc=d:o.next=d,d===null&&(Da=o)):(o=s,(n!==0||(g&3)!==0)&&(vc=!0)),s=d}pl(n)}function hy(n,i){for(var o=n.suspendedLanes,s=n.pingedLanes,d=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var v=31-tn(g),S=1<<v,_=d[v];_===-1?((S&o)===0||(S&s)!==0)&&(d[v]=Fw(S,i)):_<=i&&(n.expiredLanes|=S),g&=~S}if(i=We,o=Ne,o=Cs(n,n===i?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s=n.callbackNode,o===0||n===i&&(Be===2||Be===9)||n.cancelPendingCommit!==null)return s!==null&&s!==null&&Jt(s),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||_o(n,o)){if(i=o&-o,i===n.callbackPriority)return i;switch(s!==null&&Jt(s),wd(o)){case 2:case 8:o=ys;break;case 32:o=vi;break;case 268435456:o=Ji;break;default:o=vi}return s=py.bind(null,n),o=it(o,s),n.callbackPriority=i,n.callbackNode=o,i}return s!==null&&s!==null&&Jt(s),n.callbackPriority=2,n.callbackNode=null,2}function py(n,i){if(kt!==0&&kt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(pc()&&n.callbackNode!==o)return null;var s=Ne;return s=Cs(n,n===We?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s===0?null:(Qb(n,s,i),hy(n,Sn()),n.callbackNode!=null&&n.callbackNode===o?py.bind(null,n):null)}function my(n,i){if(pc())return null;Qb(n,i,!0)}function vT(){kT(function(){(Le&6)!==0?it(No,mT):gy()})}function dg(){return Pi===0&&(Pi=lm()),Pi}function vy(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Rs(""+n)}function by(n,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,n.id&&o.setAttribute("form",n.id),i.parentNode.insertBefore(o,i),n=new FormData(n),o.parentNode.removeChild(o),n}function bT(n,i,o,s,d){if(i==="submit"&&o&&o.stateNode===d){var g=vy((d[Ft]||null).action),v=s.submitter;v&&(i=(i=v[Ft]||null)?vy(i.formAction):v.getAttribute("formAction"),i!==null&&(g=i,v=null));var S=new Is("action","action",null,s,d);n.push({event:S,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Pi!==0){var _=v?by(d,v):new FormData(d);_f(o,{pending:!0,data:_,method:d.method,action:g},null,_)}}else typeof g=="function"&&(S.preventDefault(),_=v?by(d,v):new FormData(d),_f(o,{pending:!0,data:_,method:d.method,action:g},g,_))},currentTarget:d}]})}}for(var fg=0;fg<Xd.length;fg++){var gg=Xd[fg],yT=gg.toLowerCase(),xT=gg[0].toUpperCase()+gg.slice(1);Pn(yT,"on"+xT)}Pn(Qm,"onAnimationEnd"),Pn(Zm,"onAnimationIteration"),Pn(Jm,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(MO,"onTransitionRun"),Pn(LO,"onTransitionStart"),Pn(BO,"onTransitionCancel"),Pn(ev,"onTransitionEnd"),ia("onMouseEnter",["mouseout","mouseover"]),ia("onMouseLeave",["mouseout","mouseover"]),ia("onPointerEnter",["pointerout","pointerover"]),ia("onPointerLeave",["pointerout","pointerover"]),yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yi("onBeforeInput",["compositionend","keypress","textInput","paste"]),yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="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(" "),ST=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ml));function yy(n,i){i=(i&4)!==0;for(var o=0;o<n.length;o++){var s=n[o],d=s.event;s=s.listeners;e:{var g=void 0;if(i)for(var v=s.length-1;0<=v;v--){var S=s[v],_=S.instance,M=S.currentTarget;if(S=S.listener,_!==g&&d.isPropagationStopped())break e;g=S,d.currentTarget=M;try{g(d)}catch(G){ic(G)}d.currentTarget=null,g=_}else for(v=0;v<s.length;v++){if(S=s[v],_=S.instance,M=S.currentTarget,S=S.listener,_!==g&&d.isPropagationStopped())break e;g=S,d.currentTarget=M;try{g(d)}catch(G){ic(G)}d.currentTarget=null,g=_}}}}function ke(n,i){var o=i[Od];o===void 0&&(o=i[Od]=new Set);var s=n+"__bubble";o.has(s)||(xy(i,n,2,!1),o.add(s))}function hg(n,i,o){var s=0;i&&(s|=4),xy(o,n,s,i)}var bc="_reactListening"+Math.random().toString(36).slice(2);function pg(n){if(!n[bc]){n[bc]=!0,gm.forEach(function(o){o!=="selectionchange"&&(ST.has(o)||hg(o,!1,n),hg(o,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[bc]||(i[bc]=!0,hg("selectionchange",!1,i))}}function xy(n,i,o,s){switch(Uy(i)){case 2:var d=YT;break;case 8:d=XT;break;default:d=Ng}o=d.bind(null,i,o,n),d=void 0,!Vd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),s?d!==void 0?n.addEventListener(i,o,{capture:!0,passive:d}):n.addEventListener(i,o,!0):d!==void 0?n.addEventListener(i,o,{passive:d}):n.addEventListener(i,o,!1)}function mg(n,i,o,s,d){var g=s;if((i&1)===0&&(i&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var S=s.stateNode.containerInfo;if(S===d)break;if(v===4)for(v=s.return;v!==null;){var _=v.tag;if((_===3||_===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;S!==null;){if(v=ta(S),v===null)return;if(_=v.tag,_===5||_===6||_===26||_===27){s=g=v;continue e}S=S.parentNode}}s=s.return}km(function(){var M=g,G=Dd(o),Y=[];e:{var H=tv.get(n);if(H!==void 0){var $=Is,be=n;switch(n){case"keypress":if(As(o)===0)break e;case"keydown":case"keyup":$=pO;break;case"focusin":be="focus",$=Hd;break;case"focusout":be="blur",$=Hd;break;case"beforeblur":case"afterblur":$=Hd;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=rO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=bO;break;case Qm:case Zm:case Jm:$=oO;break;case ev:$=xO;break;case"scroll":case"scrollend":$=tO;break;case"wheel":$=EO;break;case"copy":case"cut":case"paste":$=sO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Im;break;case"toggle":case"beforetoggle":$=wO}var pe=(i&4)!==0,Fe=!pe&&(n==="scroll"||n==="scrollend"),D=pe?H!==null?H+"Capture":null:H;pe=[];for(var I=M,V;I!==null;){var W=I;if(V=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||V===null||D===null||(W=Po(I,D),W!=null&&pe.push(vl(I,W,V))),Fe)break;I=I.return}0<pe.length&&(H=new $(H,be,null,o,G),Y.push({event:H,listeners:pe}))}}if((i&7)===0){e:{if(H=n==="mouseover"||n==="pointerover",$=n==="mouseout"||n==="pointerout",H&&o!==zd&&(be=o.relatedTarget||o.fromElement)&&(ta(be)||be[ea]))break e;if(($||H)&&(H=G.window===G?G:(H=G.ownerDocument)?H.defaultView||H.parentWindow:window,$?(be=o.relatedTarget||o.toElement,$=M,be=be?ta(be):null,be!==null&&(Fe=c(be),pe=be.tag,be!==Fe||pe!==5&&pe!==27&&pe!==6)&&(be=null)):($=null,be=M),$!==be)){if(pe=Am,W="onMouseLeave",D="onMouseEnter",I="mouse",(n==="pointerout"||n==="pointerover")&&(pe=Im,W="onPointerLeave",D="onPointerEnter",I="pointer"),Fe=$==null?H:Do($),V=be==null?H:Do(be),H=new pe(W,I+"leave",$,o,G),H.target=Fe,H.relatedTarget=V,W=null,ta(G)===M&&(pe=new pe(D,I+"enter",be,o,G),pe.target=V,pe.relatedTarget=Fe,W=pe),Fe=W,$&&be)t:{for(pe=$,D=be,I=0,V=pe;V;V=Pa(V))I++;for(V=0,W=D;W;W=Pa(W))V++;for(;0<I-V;)pe=Pa(pe),I--;for(;0<V-I;)D=Pa(D),V--;for(;I--;){if(pe===D||D!==null&&pe===D.alternate)break t;pe=Pa(pe),D=Pa(D)}pe=null}else pe=null;$!==null&&Sy(Y,H,$,pe,!1),be!==null&&Fe!==null&&Sy(Y,Fe,be,pe,!0)}}e:{if(H=M?Do(M):window,$=H.nodeName&&H.nodeName.toLowerCase(),$==="select"||$==="input"&&H.type==="file")var ce=Hm;else if(Lm(H))if($m)ce=DO;else{ce=IO;var Oe=_O}else $=H.nodeName,!$||$.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?M&&Id(M.elementType)&&(ce=Hm):ce=zO;if(ce&&(ce=ce(n,M))){Bm(Y,ce,o,G);break e}Oe&&Oe(n,H,M),n==="focusout"&&M&&H.type==="number"&&M.memoizedProps.value!=null&&_d(H,"number",H.value)}switch(Oe=M?Do(M):window,n){case"focusin":(Lm(Oe)||Oe.contentEditable==="true")&&(da=Oe,Wd=M,jo=null);break;case"focusout":jo=Wd=da=null;break;case"mousedown":qd=!0;break;case"contextmenu":case"mouseup":case"dragend":qd=!1,Xm(Y,o,G);break;case"selectionchange":if(VO)break;case"keydown":case"keyup":Xm(Y,o,G)}var de;if(Fd)e:{switch(n){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else ua?Vm(n,o)&&(me="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(me="onCompositionStart");me&&(zm&&o.locale!=="ko"&&(ua||me!=="onCompositionStart"?me==="onCompositionEnd"&&ua&&(de=Rm()):(Vr=G,Md="value"in Vr?Vr.value:Vr.textContent,ua=!0)),Oe=yc(M,me),0<Oe.length&&(me=new _m(me,n,null,o,G),Y.push({event:me,listeners:Oe}),de?me.data=de:(de=Mm(o),de!==null&&(me.data=de)))),(de=TO?kO(n,o):RO(n,o))&&(me=yc(M,"onBeforeInput"),0<me.length&&(Oe=new _m("onBeforeInput","beforeinput",null,o,G),Y.push({event:Oe,listeners:me}),Oe.data=de)),bT(Y,n,M,o,G)}yy(Y,i)})}function vl(n,i,o){return{instance:n,listener:i,currentTarget:o}}function yc(n,i){for(var o=i+"Capture",s=[];n!==null;){var d=n,g=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||g===null||(d=Po(n,o),d!=null&&s.unshift(vl(n,d,g)),d=Po(n,i),d!=null&&s.push(vl(n,d,g))),n.tag===3)return s;n=n.return}return[]}function Pa(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Sy(n,i,o,s,d){for(var g=i._reactName,v=[];o!==null&&o!==s;){var S=o,_=S.alternate,M=S.stateNode;if(S=S.tag,_!==null&&_===s)break;S!==5&&S!==26&&S!==27||M===null||(_=M,d?(M=Po(o,g),M!=null&&v.unshift(vl(o,M,_))):d||(M=Po(o,g),M!=null&&v.push(vl(o,M,_)))),o=o.return}v.length!==0&&n.push({event:i,listeners:v})}var ET=/\r\n?/g,CT=/\u0000|\uFFFD/g;function Ey(n){return(typeof n=="string"?n:""+n).replace(ET,`
|
|
59
|
+
`).replace(CT,"")}function Cy(n,i){return i=Ey(i),Ey(n)===i}function xc(){}function $e(n,i,o,s,d,g){switch(o){case"children":typeof s=="string"?i==="body"||i==="textarea"&&s===""||la(n,s):(typeof s=="number"||typeof s=="bigint")&&i!=="body"&&la(n,""+s);break;case"className":Os(n,"class",s);break;case"tabIndex":Os(n,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Os(n,o,s);break;case"style":Om(n,s,g);break;case"data":if(i!=="object"){Os(n,"data",s);break}case"src":case"href":if(s===""&&(i!=="a"||o!=="href")){n.removeAttribute(o);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(o);break}s=Rs(""+s),n.setAttribute(o,s);break;case"action":case"formAction":if(typeof s=="function"){n.setAttribute(o,"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 g=="function"&&(o==="formAction"?(i!=="input"&&$e(n,i,"name",d.name,d,null),$e(n,i,"formEncType",d.formEncType,d,null),$e(n,i,"formMethod",d.formMethod,d,null),$e(n,i,"formTarget",d.formTarget,d,null)):($e(n,i,"encType",d.encType,d,null),$e(n,i,"method",d.method,d,null),$e(n,i,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(o);break}s=Rs(""+s),n.setAttribute(o,s);break;case"onClick":s!=null&&(n.onclick=xc);break;case"onScroll":s!=null&&ke("scroll",n);break;case"onScrollEnd":s!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(o=s.__html,o!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"multiple":n.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":n.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){n.removeAttribute("xlink:href");break}o=Rs(""+s),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(o,""+s):n.removeAttribute(o);break;case"inert":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":s&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":s===!0?n.setAttribute(o,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(o,s):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?n.setAttribute(o,s):n.removeAttribute(o);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?n.removeAttribute(o):n.setAttribute(o,s);break;case"popover":ke("beforetoggle",n),ke("toggle",n),ws(n,"popover",s);break;case"xlinkActuate":cr(n,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":cr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":cr(n,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":cr(n,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":cr(n,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":cr(n,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":cr(n,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":cr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":cr(n,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ws(n,"is",s);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Jw.get(o)||o,ws(n,o,s))}}function vg(n,i,o,s,d,g){switch(o){case"style":Om(n,s,g);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(o=s.__html,o!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"children":typeof s=="string"?la(n,s):(typeof s=="number"||typeof s=="bigint")&&la(n,""+s);break;case"onScroll":s!=null&&ke("scroll",n);break;case"onScrollEnd":s!=null&&ke("scrollend",n);break;case"onClick":s!=null&&(n.onclick=xc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hm.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(d=o.endsWith("Capture"),i=o.slice(2,d?o.length-7:void 0),g=n[Ft]||null,g=g!=null?g[o]:null,typeof g=="function"&&n.removeEventListener(i,g,d),typeof s=="function")){typeof g!="function"&&g!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(i,s,d);break e}o in n?n[o]=s:s===!0?n.setAttribute(o,""):ws(n,o,s)}}}function Rt(n,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var s=!1,d=!1,g;for(g in o)if(o.hasOwnProperty(g)){var v=o[g];if(v!=null)switch(g){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:$e(n,i,g,v,o,null)}}d&&$e(n,i,"srcSet",o.srcSet,o,null),s&&$e(n,i,"src",o.src,o,null);return;case"input":ke("invalid",n);var S=g=v=d=null,_=null,M=null;for(s in o)if(o.hasOwnProperty(s)){var G=o[s];if(G!=null)switch(s){case"name":d=G;break;case"type":v=G;break;case"checked":_=G;break;case"defaultChecked":M=G;break;case"value":g=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,i));break;default:$e(n,i,s,G,o,null)}}Sm(n,g,S,_,M,v,d,!1),Ts(n);return;case"select":ke("invalid",n),s=v=g=null;for(d in o)if(o.hasOwnProperty(d)&&(S=o[d],S!=null))switch(d){case"value":g=S;break;case"defaultValue":v=S;break;case"multiple":s=S;default:$e(n,i,d,S,o,null)}i=g,o=v,n.multiple=!!s,i!=null?oa(n,!!s,i,!1):o!=null&&oa(n,!!s,o,!0);return;case"textarea":ke("invalid",n),g=d=s=null;for(v in o)if(o.hasOwnProperty(v)&&(S=o[v],S!=null))switch(v){case"value":s=S;break;case"defaultValue":d=S;break;case"children":g=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:$e(n,i,v,S,o,null)}Cm(n,s,d,g),Ts(n);return;case"option":for(_ in o)if(o.hasOwnProperty(_)&&(s=o[_],s!=null))switch(_){case"selected":n.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:$e(n,i,_,s,o,null)}return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(s=0;s<ml.length;s++)ke(ml[s],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in o)if(o.hasOwnProperty(M)&&(s=o[M],s!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:$e(n,i,M,s,o,null)}return;default:if(Id(i)){for(G in o)o.hasOwnProperty(G)&&(s=o[G],s!==void 0&&vg(n,i,G,s,o,void 0));return}}for(S in o)o.hasOwnProperty(S)&&(s=o[S],s!=null&&$e(n,i,S,s,o,null))}function wT(n,i,o,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,g=null,v=null,S=null,_=null,M=null,G=null;for($ in o){var Y=o[$];if(o.hasOwnProperty($)&&Y!=null)switch($){case"checked":break;case"value":break;case"defaultValue":_=Y;default:s.hasOwnProperty($)||$e(n,i,$,null,s,Y)}}for(var H in s){var $=s[H];if(Y=o[H],s.hasOwnProperty(H)&&($!=null||Y!=null))switch(H){case"type":g=$;break;case"name":d=$;break;case"checked":M=$;break;case"defaultChecked":G=$;break;case"value":v=$;break;case"defaultValue":S=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,i));break;default:$!==Y&&$e(n,i,H,$,s,Y)}}Ad(n,v,S,_,M,G,g,d);return;case"select":$=v=S=H=null;for(g in o)if(_=o[g],o.hasOwnProperty(g)&&_!=null)switch(g){case"value":break;case"multiple":$=_;default:s.hasOwnProperty(g)||$e(n,i,g,null,s,_)}for(d in s)if(g=s[d],_=o[d],s.hasOwnProperty(d)&&(g!=null||_!=null))switch(d){case"value":H=g;break;case"defaultValue":S=g;break;case"multiple":v=g;default:g!==_&&$e(n,i,d,g,s,_)}i=S,o=v,s=$,H!=null?oa(n,!!o,H,!1):!!s!=!!o&&(i!=null?oa(n,!!o,i,!0):oa(n,!!o,o?[]:"",!1));return;case"textarea":$=H=null;for(S in o)if(d=o[S],o.hasOwnProperty(S)&&d!=null&&!s.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:$e(n,i,S,null,s,d)}for(v in s)if(d=s[v],g=o[v],s.hasOwnProperty(v)&&(d!=null||g!=null))switch(v){case"value":H=d;break;case"defaultValue":$=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==g&&$e(n,i,v,d,s,g)}Em(n,H,$);return;case"option":for(var be in o)if(H=o[be],o.hasOwnProperty(be)&&H!=null&&!s.hasOwnProperty(be))switch(be){case"selected":n.selected=!1;break;default:$e(n,i,be,null,s,H)}for(_ in s)if(H=s[_],$=o[_],s.hasOwnProperty(_)&&H!==$&&(H!=null||$!=null))switch(_){case"selected":n.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:$e(n,i,_,H,s,$)}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 pe in o)H=o[pe],o.hasOwnProperty(pe)&&H!=null&&!s.hasOwnProperty(pe)&&$e(n,i,pe,null,s,H);for(M in s)if(H=s[M],$=o[M],s.hasOwnProperty(M)&&H!==$&&(H!=null||$!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,i));break;default:$e(n,i,M,H,s,$)}return;default:if(Id(i)){for(var Fe in o)H=o[Fe],o.hasOwnProperty(Fe)&&H!==void 0&&!s.hasOwnProperty(Fe)&&vg(n,i,Fe,void 0,s,H);for(G in s)H=s[G],$=o[G],!s.hasOwnProperty(G)||H===$||H===void 0&&$===void 0||vg(n,i,G,H,s,$);return}}for(var D in o)H=o[D],o.hasOwnProperty(D)&&H!=null&&!s.hasOwnProperty(D)&&$e(n,i,D,null,s,H);for(Y in s)H=s[Y],$=o[Y],!s.hasOwnProperty(Y)||H===$||H==null&&$==null||$e(n,i,Y,H,s,$)}var bg=null,yg=null;function Sc(n){return n.nodeType===9?n:n.ownerDocument}function wy(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Oy(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function xg(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Sg=null;function OT(){var n=window.event;return n&&n.type==="popstate"?n===Sg?!1:(Sg=n,!0):(Sg=null,!1)}var Ty=typeof setTimeout=="function"?setTimeout:void 0,TT=typeof clearTimeout=="function"?clearTimeout:void 0,ky=typeof Promise=="function"?Promise:void 0,kT=typeof queueMicrotask=="function"?queueMicrotask:typeof ky<"u"?function(n){return ky.resolve(null).then(n).catch(RT)}:Ty;function RT(n){setTimeout(function(){throw n})}function Zr(n){return n==="head"}function Ry(n,i){var o=i,s=0,d=0;do{var g=o.nextSibling;if(n.removeChild(o),g&&g.nodeType===8)if(o=g.data,o==="/$"){if(0<s&&8>s){o=s;var v=n.ownerDocument;if(o&1&&bl(v.documentElement),o&2&&bl(v.body),o&4)for(o=v.head,bl(o),v=o.firstChild;v;){var S=v.nextSibling,_=v.nodeName;v[zo]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&v.rel.toLowerCase()==="stylesheet"||o.removeChild(v),v=S}}if(d===0){n.removeChild(g),Tl(i);return}d--}else o==="$"||o==="$?"||o==="$!"?d++:s=o.charCodeAt(0)-48;else s=0;o=g}while(o);Tl(i)}function Eg(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Eg(o),Td(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function NT(n,i,o,s){for(;n.nodeType===1;){var d=o;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!s&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(s){if(!n[zo])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var g=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=Mn(n.nextSibling),n===null)break}return null}function AT(n,i,o){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=Mn(n.nextSibling),n===null))return null;return n}function Cg(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function _T(n,i){var o=n.ownerDocument;if(n.data!=="$?"||o.readyState==="complete")i();else{var s=function(){i(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),n._reactRetry=s}}function Mn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}var wg=null;function Ny(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(i===0)return n;i--}else o==="/$"&&i++}n=n.previousSibling}return null}function Ay(n,i,o){switch(i=Sc(o),n){case"html":if(n=i.documentElement,!n)throw Error(a(452));return n;case"head":if(n=i.head,!n)throw Error(a(453));return n;case"body":if(n=i.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function bl(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Td(n)}var An=new Map,_y=new Set;function Ec(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Cr=J.d;J.d={f:IT,r:zT,D:DT,C:PT,L:VT,m:MT,X:BT,S:LT,M:HT};function IT(){var n=Cr.f(),i=gc();return n||i}function zT(n){var i=na(n);i!==null&&i.tag===5&&i.type==="form"?Qv(i):Cr.r(n)}var Va=typeof document>"u"?null:document;function Iy(n,i,o){var s=Va;if(s&&typeof i=="string"&&i){var d=Cn(i);d='link[rel="'+n+'"][href="'+d+'"]',typeof o=="string"&&(d+='[crossorigin="'+o+'"]'),_y.has(d)||(_y.add(d),n={rel:n,crossOrigin:o,href:i},s.querySelector(d)===null&&(i=s.createElement("link"),Rt(i,"link",n),bt(i),s.head.appendChild(i)))}}function DT(n){Cr.D(n),Iy("dns-prefetch",n,null)}function PT(n,i){Cr.C(n,i),Iy("preconnect",n,i)}function VT(n,i,o){Cr.L(n,i,o);var s=Va;if(s&&n&&i){var d='link[rel="preload"][as="'+Cn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(d+='[imagesrcset="'+Cn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(d+='[imagesizes="'+Cn(o.imageSizes)+'"]')):d+='[href="'+Cn(n)+'"]';var g=d;switch(i){case"style":g=Ma(n);break;case"script":g=La(n)}An.has(g)||(n=m({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:n,as:i},o),An.set(g,n),s.querySelector(d)!==null||i==="style"&&s.querySelector(yl(g))||i==="script"&&s.querySelector(xl(g))||(i=s.createElement("link"),Rt(i,"link",n),bt(i),s.head.appendChild(i)))}}function MT(n,i){Cr.m(n,i);var o=Va;if(o&&n){var s=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+Cn(s)+'"][href="'+Cn(n)+'"]',g=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=La(n)}if(!An.has(g)&&(n=m({rel:"modulepreload",href:n},i),An.set(g,n),o.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(xl(g)))return}s=o.createElement("link"),Rt(s,"link",n),bt(s),o.head.appendChild(s)}}}function LT(n,i,o){Cr.S(n,i,o);var s=Va;if(s&&n){var d=ra(s).hoistableStyles,g=Ma(n);i=i||"default";var v=d.get(g);if(!v){var S={loading:0,preload:null};if(v=s.querySelector(yl(g)))S.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},o),(o=An.get(g))&&Og(n,o);var _=v=s.createElement("link");bt(_),Rt(_,"link",n),_._p=new Promise(function(M,G){_.onload=M,_.onerror=G}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Cc(v,i,s)}v={type:"stylesheet",instance:v,count:1,state:S},d.set(g,v)}}}function BT(n,i){Cr.X(n,i);var o=Va;if(o&&n){var s=ra(o).hoistableScripts,d=La(n),g=s.get(d);g||(g=o.querySelector(xl(d)),g||(n=m({src:n,async:!0},i),(i=An.get(d))&&Tg(n,i),g=o.createElement("script"),bt(g),Rt(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(d,g))}}function HT(n,i){Cr.M(n,i);var o=Va;if(o&&n){var s=ra(o).hoistableScripts,d=La(n),g=s.get(d);g||(g=o.querySelector(xl(d)),g||(n=m({src:n,async:!0,type:"module"},i),(i=An.get(d))&&Tg(n,i),g=o.createElement("script"),bt(g),Rt(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(d,g))}}function zy(n,i,o,s){var d=(d=fe.current)?Ec(d):null;if(!d)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Ma(o.href),o=ra(d).hoistableStyles,s=o.get(i),s||(s={type:"style",instance:null,count:0,state:null},o.set(i,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Ma(o.href);var g=ra(d).hoistableStyles,v=g.get(n);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,v),(g=d.querySelector(yl(n)))&&!g._p&&(v.instance=g,v.state.loading=5),An.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},An.set(n,o),g||$T(d,n,o,v.state))),i&&s===null)throw Error(a(528,""));return v}if(i&&s!==null)throw Error(a(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=La(o),o=ra(d).hoistableScripts,s=o.get(i),s||(s={type:"script",instance:null,count:0,state:null},o.set(i,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function Ma(n){return'href="'+Cn(n)+'"'}function yl(n){return'link[rel="stylesheet"]['+n+"]"}function Dy(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function $T(n,i,o,s){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=n.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),Rt(i,"link",o),bt(i),n.head.appendChild(i))}function La(n){return'[src="'+Cn(n)+'"]'}function xl(n){return"script[async]"+n}function Py(n,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var s=n.querySelector('style[data-href~="'+Cn(o.href)+'"]');if(s)return i.instance=s,bt(s),s;var d=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),bt(s),Rt(s,"style",d),Cc(s,o.precedence,n),i.instance=s;case"stylesheet":d=Ma(o.href);var g=n.querySelector(yl(d));if(g)return i.state.loading|=4,i.instance=g,bt(g),g;s=Dy(o),(d=An.get(d))&&Og(s,d),g=(n.ownerDocument||n).createElement("link"),bt(g);var v=g;return v._p=new Promise(function(S,_){v.onload=S,v.onerror=_}),Rt(g,"link",s),i.state.loading|=4,Cc(g,o.precedence,n),i.instance=g;case"script":return g=La(o.src),(d=n.querySelector(xl(g)))?(i.instance=d,bt(d),d):(s=o,(d=An.get(g))&&(s=m({},o),Tg(s,d)),n=n.ownerDocument||n,d=n.createElement("script"),bt(d),Rt(d,"link",s),n.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(s=i.instance,i.state.loading|=4,Cc(s,o.precedence,n));return i.instance}function Cc(n,i,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,g=d,v=0;v<s.length;v++){var S=s[v];if(S.dataset.precedence===i)g=S;else if(g!==d)break}g?g.parentNode.insertBefore(n,g.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(n,i.firstChild))}function Og(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Tg(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var wc=null;function Vy(n,i,o){if(wc===null){var s=new Map,d=wc=new Map;d.set(o,s)}else d=wc,s=d.get(o),s||(s=new Map,d.set(o,s));if(s.has(n))return s;for(s.set(n,null),o=o.getElementsByTagName(n),d=0;d<o.length;d++){var g=o[d];if(!(g[zo]||g[Dt]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var v=g.getAttribute(i)||"";v=n+v;var S=s.get(v);S?S.push(g):s.set(v,[g])}}return s}function My(n,i,o){n=n.ownerDocument||n,n.head.insertBefore(o,i==="title"?n.querySelector("head > title"):null)}function FT(n,i,o){if(o===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Ly(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Sl=null;function jT(){}function UT(n,i,o){if(Sl===null)throw Error(a(475));var s=Sl;if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=Ma(o.href),g=n.querySelector(yl(d));if(g){n=g._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(s.count++,s=Oc.bind(s),n.then(s,s)),i.state.loading|=4,i.instance=g,bt(g);return}g=n.ownerDocument||n,o=Dy(o),(d=An.get(d))&&Og(o,d),g=g.createElement("link"),bt(g);var v=g;v._p=new Promise(function(S,_){v.onload=S,v.onerror=_}),Rt(g,"link",o),i.instance=g}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(s.count++,i=Oc.bind(s),n.addEventListener("load",i),n.addEventListener("error",i))}}function GT(){if(Sl===null)throw Error(a(475));var n=Sl;return n.stylesheets&&n.count===0&&kg(n,n.stylesheets),0<n.count?function(i){var o=setTimeout(function(){if(n.stylesheets&&kg(n,n.stylesheets),n.unsuspend){var s=n.unsuspend;n.unsuspend=null,s()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(o)}}:null}function Oc(){if(this.count--,this.count===0){if(this.stylesheets)kg(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Tc=null;function kg(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Tc=new Map,i.forEach(WT,n),Tc=null,Oc.call(n))}function WT(n,i){if(!(i.state.loading&4)){var o=Tc.get(n);if(o)var s=o.get(null);else{o=new Map,Tc.set(n,o);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<d.length;g++){var v=d[g];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(o.set(v.dataset.precedence,v),s=v)}s&&o.set(null,s)}d=i.instance,v=d.getAttribute("data-precedence"),g=o.get(v)||s,g===s&&o.set(null,d),o.set(v,d),this.count++,s=Oc.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),g?g.parentNode.insertBefore(d,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),i.state.loading|=4}}var El={$$typeof:N,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function qT(n,i,o,s,d,g,v,S){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ed(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ed(0),this.hiddenUpdates=Ed(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=g,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function By(n,i,o,s,d,g,v,S,_,M,G,Y){return n=new qT(n,i,o,v,S,_,M,Y),i=1,g===!0&&(i|=24),g=rn(3,null,null,i),n.current=g,g.stateNode=n,i=sf(),i.refCount++,n.pooledCache=i,i.refCount++,g.memoizedState={element:s,isDehydrated:o,cache:i},ff(g),n}function Hy(n){return n?(n=pa,n):pa}function $y(n,i,o,s,d,g){d=Hy(d),s.context===null?s.context=d:s.pendingContext=d,s=Br(i),s.payload={element:o},g=g===void 0?null:g,g!==null&&(s.callback=g),o=Hr(n,s,i),o!==null&&(cn(o,n,i),Zo(o,n,i))}function Fy(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<i?o:i}}function Rg(n,i){Fy(n,i),(n=n.alternate)&&Fy(n,i)}function jy(n){if(n.tag===13){var i=ha(n,67108864);i!==null&&cn(i,n,67108864),Rg(n,67108864)}}var kc=!0;function YT(n,i,o,s){var d=L.T;L.T=null;var g=J.p;try{J.p=2,Ng(n,i,o,s)}finally{J.p=g,L.T=d}}function XT(n,i,o,s){var d=L.T;L.T=null;var g=J.p;try{J.p=8,Ng(n,i,o,s)}finally{J.p=g,L.T=d}}function Ng(n,i,o,s){if(kc){var d=Ag(s);if(d===null)mg(n,i,s,Rc,o),Gy(n,s);else if(QT(d,n,i,o,s))s.stopPropagation();else if(Gy(n,s),i&4&&-1<KT.indexOf(n)){for(;d!==null;){var g=na(d);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var v=bi(g.pendingLanes);if(v!==0){var S=g;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var _=1<<31-tn(v);S.entanglements[1]|=_,v&=~_}qn(g),(Le&6)===0&&(dc=Sn()+500,pl(0))}}break;case 13:S=ha(g,2),S!==null&&cn(S,g,2),gc(),Rg(g,2)}if(g=Ag(s),g===null&&mg(n,i,s,Rc,o),g===d)break;d=g}d!==null&&s.stopPropagation()}else mg(n,i,s,null,o)}}function Ag(n){return n=Dd(n),_g(n)}var Rc=null;function _g(n){if(Rc=null,n=ta(n),n!==null){var i=c(n);if(i===null)n=null;else{var o=i.tag;if(o===13){if(n=u(i),n!==null)return n;n=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Rc=n,null}function Uy(n){switch(n){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 2;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 8;case"message":switch(Sd()){case No:return 2;case ys:return 8;case vi:case xs:return 32;case Ji:return 268435456;default:return 32}default:return 32}}var Ig=!1,Jr=null,ei=null,ti=null,Cl=new Map,wl=new Map,ni=[],KT="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(" ");function Gy(n,i){switch(n){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":ei=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Cl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":wl.delete(i.pointerId)}}function Ol(n,i,o,s,d,g){return n===null||n.nativeEvent!==g?(n={blockedOn:i,domEventName:o,eventSystemFlags:s,nativeEvent:g,targetContainers:[d]},i!==null&&(i=na(i),i!==null&&jy(i)),n):(n.eventSystemFlags|=s,i=n.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),n)}function QT(n,i,o,s,d){switch(i){case"focusin":return Jr=Ol(Jr,n,i,o,s,d),!0;case"dragenter":return ei=Ol(ei,n,i,o,s,d),!0;case"mouseover":return ti=Ol(ti,n,i,o,s,d),!0;case"pointerover":var g=d.pointerId;return Cl.set(g,Ol(Cl.get(g)||null,n,i,o,s,d)),!0;case"gotpointercapture":return g=d.pointerId,wl.set(g,Ol(wl.get(g)||null,n,i,o,s,d)),!0}return!1}function Wy(n){var i=ta(n.target);if(i!==null){var o=c(i);if(o!==null){if(i=o.tag,i===13){if(i=u(o),i!==null){n.blockedOn=i,Uw(n.priority,function(){if(o.tag===13){var s=sn();s=Cd(s);var d=ha(o,s);d!==null&&cn(d,o,s),Rg(o,s)}});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Nc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var o=Ag(n.nativeEvent);if(o===null){o=n.nativeEvent;var s=new o.constructor(o.type,o);zd=s,o.target.dispatchEvent(s),zd=null}else return i=na(o),i!==null&&jy(i),n.blockedOn=o,!1;i.shift()}return!0}function qy(n,i,o){Nc(n)&&o.delete(i)}function ZT(){Ig=!1,Jr!==null&&Nc(Jr)&&(Jr=null),ei!==null&&Nc(ei)&&(ei=null),ti!==null&&Nc(ti)&&(ti=null),Cl.forEach(qy),wl.forEach(qy)}function Ac(n,i){n.blockedOn===i&&(n.blockedOn=null,Ig||(Ig=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ZT)))}var _c=null;function Yy(n){_c!==n&&(_c=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){_c===n&&(_c=null);for(var i=0;i<n.length;i+=3){var o=n[i],s=n[i+1],d=n[i+2];if(typeof s!="function"){if(_g(s||o)===null)continue;break}var g=na(o);g!==null&&(n.splice(i,3),i-=3,_f(g,{pending:!0,data:d,method:o.method,action:s},s,d))}}))}function Tl(n){function i(_){return Ac(_,n)}Jr!==null&&Ac(Jr,n),ei!==null&&Ac(ei,n),ti!==null&&Ac(ti,n),Cl.forEach(i),wl.forEach(i);for(var o=0;o<ni.length;o++){var s=ni[o];s.blockedOn===n&&(s.blockedOn=null)}for(;0<ni.length&&(o=ni[0],o.blockedOn===null);)Wy(o),o.blockedOn===null&&ni.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(s=0;s<o.length;s+=3){var d=o[s],g=o[s+1],v=d[Ft]||null;if(typeof g=="function")v||Yy(o);else if(v){var S=null;if(g&&g.hasAttribute("formAction")){if(d=g,v=g[Ft]||null)S=v.formAction;else if(_g(d)!==null)continue}else S=v.action;typeof S=="function"?o[s+1]=S:(o.splice(s,3),s-=3),Yy(o)}}}function zg(n){this._internalRoot=n}Ic.prototype.render=zg.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var o=i.current,s=sn();$y(o,s,n,i,null,null)},Ic.prototype.unmount=zg.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;$y(n.current,2,null,n,null,null),gc(),i[ea]=null}};function Ic(n){this._internalRoot=n}Ic.prototype.unstable_scheduleHydration=function(n){if(n){var i=dm();n={blockedOn:null,target:n,priority:i};for(var o=0;o<ni.length&&i!==0&&i<ni[o].priority;o++);ni.splice(o,0,n),o===0&&Wy(n)}};var Xy=t.version;if(Xy!=="19.1.1")throw Error(a(527,Xy,"19.1.1"));J.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=h(i),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var JT={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zc.isDisabled&&zc.supportsFiber)try{Ao=zc.inject(JT),en=zc}catch{}}return Rl.createRoot=function(n,i){if(!l(n))throw Error(a(299));var o=!1,s="",d=db,g=fb,v=gb,S=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(s=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(S=i.unstable_transitionCallbacks)),i=By(n,1,!1,null,null,o,s,d,g,v,S,null),n[ea]=i.current,pg(n),new zg(i)},Rl.hydrateRoot=function(n,i,o){if(!l(n))throw Error(a(299));var s=!1,d="",g=db,v=fb,S=gb,_=null,M=null;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(S=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(_=o.unstable_transitionCallbacks),o.formState!==void 0&&(M=o.formState)),i=By(n,1,!0,i,o??null,s,d,g,v,S,_,M),i.context=Hy(null),o=i.current,s=sn(),s=Cd(s),d=Br(s),d.callback=null,Hr(o,d,s),o=s,i.current.lanes=o,Io(i,o),qn(i),n[ea]=i.current,pg(n),new Ic(i)},Rl.version="19.1.1",Rl}var a0;function ck(){if(a0)return Pg.exports;a0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pg.exports=sk(),Pg.exports}var uk=ck();function z1(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var dk=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,fk=z1(function(e){return dk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),w=np();const It=_1(w),o0=tk({__proto__:null,default:It},[w]);function gk(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function hk(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var pk=(function(){function e(r){var a=this;this._insertTag=function(l){var c;a.tags.length===0?a.insertionPoint?c=a.insertionPoint.nextSibling:a.prepend?c=a.container.firstChild:c=a.before:c=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(l,c),a.tags.push(l)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hk(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var c=gk(l);try{c.insertRule(a,c.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),this.tags=[],this.ctr=0},e})(),Mt="-ms-",vu="-moz-",De="-webkit-",D1="comm",rp="rule",ip="decl",mk="@import",P1="@keyframes",vk="@layer",bk=Math.abs,Bu=String.fromCharCode,yk=Object.assign;function xk(e,t){return _t(e,0)^45?(((t<<2^_t(e,0))<<2^_t(e,1))<<2^_t(e,2))<<2^_t(e,3):0}function V1(e){return e.trim()}function Sk(e,t){return(e=t.exec(e))?e[0]:e}function Pe(e,t,r){return e.replace(t,r)}function Sh(e,t){return e.indexOf(t)}function _t(e,t){return e.charCodeAt(t)|0}function Ql(e,t,r){return e.slice(t,r)}function Kn(e){return e.length}function ap(e){return e.length}function Dc(e,t){return t.push(e),e}function Ek(e,t){return e.map(t).join("")}var Hu=1,ao=1,M1=0,Zt=0,dt=0,vo="";function $u(e,t,r,a,l,c,u){return{value:e,root:t,parent:r,type:a,props:l,children:c,line:Hu,column:ao,length:u,return:""}}function Nl(e,t){return yk($u("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ck(){return dt}function wk(){return dt=Zt>0?_t(vo,--Zt):0,ao--,dt===10&&(ao=1,Hu--),dt}function pn(){return dt=Zt<M1?_t(vo,Zt++):0,ao++,dt===10&&(ao=1,Hu++),dt}function er(){return _t(vo,Zt)}function Qc(){return Zt}function ls(e,t){return Ql(vo,e,t)}function Zl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function L1(e){return Hu=ao=1,M1=Kn(vo=e),Zt=0,[]}function B1(e){return vo="",e}function Zc(e){return V1(ls(Zt-1,Eh(e===91?e+2:e===40?e+1:e)))}function Ok(e){for(;(dt=er())&&dt<33;)pn();return Zl(e)>2||Zl(dt)>3?"":" "}function Tk(e,t){for(;--t&&pn()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return ls(e,Qc()+(t<6&&er()==32&&pn()==32))}function Eh(e){for(;pn();)switch(dt){case e:return Zt;case 34:case 39:e!==34&&e!==39&&Eh(dt);break;case 40:e===41&&Eh(e);break;case 92:pn();break}return Zt}function kk(e,t){for(;pn()&&e+dt!==57;)if(e+dt===84&&er()===47)break;return"/*"+ls(t,Zt-1)+"*"+Bu(e===47?e:pn())}function Rk(e){for(;!Zl(er());)pn();return ls(e,Zt)}function Nk(e){return B1(Jc("",null,null,null,[""],e=L1(e),0,[0],e))}function Jc(e,t,r,a,l,c,u,f,h){for(var p=0,m=0,y=u,b=0,x=0,E=0,C=1,T=1,k=1,O=0,N="",z=l,A=c,B=a,j=N;T;)switch(E=O,O=pn()){case 40:if(E!=108&&_t(j,y-1)==58){Sh(j+=Pe(Zc(O),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:j+=Zc(O);break;case 9:case 10:case 13:case 32:j+=Ok(E);break;case 92:j+=Tk(Qc()-1,7);continue;case 47:switch(er()){case 42:case 47:Dc(Ak(kk(pn(),Qc()),t,r),h);break;default:j+="/"}break;case 123*C:f[p++]=Kn(j)*k;case 125*C:case 59:case 0:switch(O){case 0:case 125:T=0;case 59+m:k==-1&&(j=Pe(j,/\f/g,"")),x>0&&Kn(j)-y&&Dc(x>32?s0(j+";",a,r,y-1):s0(Pe(j," ","")+";",a,r,y-2),h);break;case 59:j+=";";default:if(Dc(B=l0(j,t,r,p,m,l,f,N,z=[],A=[],y),c),O===123)if(m===0)Jc(j,t,B,B,z,c,y,f,A);else switch(b===99&&_t(j,3)===110?100:b){case 100:case 108:case 109:case 115:Jc(e,B,B,a&&Dc(l0(e,B,B,0,0,l,f,N,l,z=[],y),A),l,A,y,f,a?z:A);break;default:Jc(j,B,B,B,[""],A,0,f,A)}}p=m=x=0,C=k=1,N=j="",y=u;break;case 58:y=1+Kn(j),x=E;default:if(C<1){if(O==123)--C;else if(O==125&&C++==0&&wk()==125)continue}switch(j+=Bu(O),O*C){case 38:k=m>0?1:(j+="\f",-1);break;case 44:f[p++]=(Kn(j)-1)*k,k=1;break;case 64:er()===45&&(j+=Zc(pn())),b=er(),m=y=Kn(N=j+=Rk(Qc())),O++;break;case 45:E===45&&Kn(j)==2&&(C=0)}}return c}function l0(e,t,r,a,l,c,u,f,h,p,m){for(var y=l-1,b=l===0?c:[""],x=ap(b),E=0,C=0,T=0;E<a;++E)for(var k=0,O=Ql(e,y+1,y=bk(C=u[E])),N=e;k<x;++k)(N=V1(C>0?b[k]+" "+O:Pe(O,/&\f/g,b[k])))&&(h[T++]=N);return $u(e,t,r,l===0?rp:f,h,p,m)}function Ak(e,t,r){return $u(e,t,r,D1,Bu(Ck()),Ql(e,2,-2),0)}function s0(e,t,r,a){return $u(e,t,r,ip,Ql(e,0,a),Ql(e,a+1,-1),a)}function no(e,t){for(var r="",a=ap(e),l=0;l<a;l++)r+=t(e[l],l,e,t)||"";return r}function _k(e,t,r,a){switch(e.type){case vk:if(e.children.length)break;case mk:case ip:return e.return=e.return||e.value;case D1:return"";case P1:return e.return=e.value+"{"+no(e.children,a)+"}";case rp:e.value=e.props.join(",")}return Kn(r=no(e.children,a))?e.return=e.value+"{"+r+"}":""}function Ik(e){var t=ap(e);return function(r,a,l,c){for(var u="",f=0;f<t;f++)u+=e[f](r,a,l,c)||"";return u}}function zk(e){return function(t){t.root||(t=t.return)&&e(t)}}var Dk=function(t,r,a){for(var l=0,c=0;l=c,c=er(),l===38&&c===12&&(r[a]=1),!Zl(c);)pn();return ls(t,Zt)},Pk=function(t,r){var a=-1,l=44;do switch(Zl(l)){case 0:l===38&&er()===12&&(r[a]=1),t[a]+=Dk(Zt-1,r,a);break;case 2:t[a]+=Zc(l);break;case 4:if(l===44){t[++a]=er()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Bu(l)}while(l=pn());return t},Vk=function(t,r){return B1(Pk(L1(t),r))},c0=new WeakMap,Mk=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,l=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!c0.get(a))&&!l){c0.set(t,!0);for(var c=[],u=Vk(r,c),f=a.props,h=0,p=0;h<u.length;h++)for(var m=0;m<f.length;m++,p++)t.props[p]=c[h]?u[h].replace(/&\f/g,f[m]):f[m]+" "+u[h]}}},Lk=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function H1(e,t){switch(xk(e,t)){case 5103:return De+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return De+e+vu+e+Mt+e+e;case 6828:case 4268:return De+e+Mt+e+e;case 6165:return De+e+Mt+"flex-"+e+e;case 5187:return De+e+Pe(e,/(\w+).+(:[^]+)/,De+"box-$1$2"+Mt+"flex-$1$2")+e;case 5443:return De+e+Mt+"flex-item-"+Pe(e,/flex-|-self/,"")+e;case 4675:return De+e+Mt+"flex-line-pack"+Pe(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+Mt+Pe(e,"shrink","negative")+e;case 5292:return De+e+Mt+Pe(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Pe(e,"-grow","")+De+e+Mt+Pe(e,"grow","positive")+e;case 4554:return De+Pe(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Pe(Pe(Pe(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Pe(e,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return Pe(Pe(e,/(.+:)(flex-)?(.*)/,De+"box-pack:$3"+Mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+De+e+e;case 4095:case 3583:case 4068:case 2532:return Pe(e,/(.+)-inline(.+)/,De+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Kn(e)-1-t>6)switch(_t(e,t+1)){case 109:if(_t(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+vu+(_t(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Sh(e,"stretch")?H1(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_t(e,t+1)!==115)break;case 6444:switch(_t(e,Kn(e)-3-(~Sh(e,"!important")&&10))){case 107:return Pe(e,":",":"+De)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(_t(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+Mt+"$2box$3")+e}break;case 5936:switch(_t(e,t+11)){case 114:return De+e+Mt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+Mt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+Mt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+Mt+e+e}return e}var Bk=function(t,r,a,l){if(t.length>-1&&!t.return)switch(t.type){case ip:t.return=H1(t.value,t.length);break;case P1:return no([Nl(t,{value:Pe(t.value,"@","@"+De)})],l);case rp:if(t.length)return Ek(t.props,function(c){switch(Sk(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return no([Nl(t,{props:[Pe(c,/:(read-\w+)/,":"+vu+"$1")]})],l);case"::placeholder":return no([Nl(t,{props:[Pe(c,/:(plac\w+)/,":"+De+"input-$1")]}),Nl(t,{props:[Pe(c,/:(plac\w+)/,":"+vu+"$1")]}),Nl(t,{props:[Pe(c,/:(plac\w+)/,Mt+"input-$1")]})],l)}return""})}},Hk=[Bk],$k=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(C){var T=C.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var l=t.stylisPlugins||Hk,c={},u,f=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(C){for(var T=C.getAttribute("data-emotion").split(" "),k=1;k<T.length;k++)c[T[k]]=!0;f.push(C)});var h,p=[Mk,Lk];{var m,y=[_k,zk(function(C){m.insert(C)})],b=Ik(p.concat(l,y)),x=function(T){return no(Nk(T),b)};h=function(T,k,O,N){m=O,x(T?T+"{"+k.styles+"}":k.styles),N&&(E.inserted[k.name]=!0)}}var E={key:r,sheet:new pk({key:r,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:c,registered:{},insert:h};return E.sheet.hydrate(f),E},Hg={exports:{}},Ve={};/** @license React v16.13.1
|
|
60
|
+
* react-is.production.min.js
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/var u0;function Fk(){if(u0)return Ve;u0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function N(A){if(typeof A=="object"&&A!==null){var B=A.$$typeof;switch(B){case t:switch(A=A.type,A){case h:case p:case a:case c:case l:case y:return A;default:switch(A=A&&A.$$typeof,A){case f:case m:case E:case x:case u:return A;default:return B}}case r:return B}}}function z(A){return N(A)===p}return Ve.AsyncMode=h,Ve.ConcurrentMode=p,Ve.ContextConsumer=f,Ve.ContextProvider=u,Ve.Element=t,Ve.ForwardRef=m,Ve.Fragment=a,Ve.Lazy=E,Ve.Memo=x,Ve.Portal=r,Ve.Profiler=c,Ve.StrictMode=l,Ve.Suspense=y,Ve.isAsyncMode=function(A){return z(A)||N(A)===h},Ve.isConcurrentMode=z,Ve.isContextConsumer=function(A){return N(A)===f},Ve.isContextProvider=function(A){return N(A)===u},Ve.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},Ve.isForwardRef=function(A){return N(A)===m},Ve.isFragment=function(A){return N(A)===a},Ve.isLazy=function(A){return N(A)===E},Ve.isMemo=function(A){return N(A)===x},Ve.isPortal=function(A){return N(A)===r},Ve.isProfiler=function(A){return N(A)===c},Ve.isStrictMode=function(A){return N(A)===l},Ve.isSuspense=function(A){return N(A)===y},Ve.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===p||A===c||A===l||A===y||A===b||typeof A=="object"&&A!==null&&(A.$$typeof===E||A.$$typeof===x||A.$$typeof===u||A.$$typeof===f||A.$$typeof===m||A.$$typeof===T||A.$$typeof===k||A.$$typeof===O||A.$$typeof===C)},Ve.typeOf=N,Ve}var d0;function jk(){return d0||(d0=1,Hg.exports=Fk()),Hg.exports}var $g,f0;function Uk(){if(f0)return $g;f0=1;var e=jk(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[e.ForwardRef]=a,c[e.Memo]=l;function u(E){return e.isMemo(E)?l:c[E.$$typeof]||t}var f=Object.defineProperty,h=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=Object.prototype;function x(E,C,T){if(typeof C!="string"){if(b){var k=y(C);k&&k!==b&&x(E,k,T)}var O=h(C);p&&(O=O.concat(p(C)));for(var N=u(E),z=u(C),A=0;A<O.length;++A){var B=O[A];if(!r[B]&&!(T&&T[B])&&!(z&&z[B])&&!(N&&N[B])){var j=m(C,B);try{f(E,B,j)}catch{}}}}return E}return $g=x,$g}Uk();var Gk=!0;function $1(e,t,r){var a="";return r.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(a+=l+" ")}),a}var op=function(t,r,a){var l=t.key+"-"+r.name;(a===!1||Gk===!1)&&t.registered[l]===void 0&&(t.registered[l]=r.styles)},lp=function(t,r,a){op(t,r,a);var l=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var c=r;do t.insert(r===c?"."+l:"",c,t.sheet,!0),c=c.next;while(c!==void 0)}};function Wk(e){for(var t=0,r,a=0,l=e.length;l>=4;++a,l-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var qk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Yk=/[A-Z]|^ms/g,Xk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F1=function(t){return t.charCodeAt(1)===45},g0=function(t){return t!=null&&typeof t!="boolean"},Fg=z1(function(e){return F1(e)?e:e.replace(Yk,"-$&").toLowerCase()}),h0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Xk,function(a,l,c){return Qn={name:l,styles:c,next:Qn},l})}return qk[t]!==1&&!F1(t)&&typeof r=="number"&&r!==0?r+"px":r};function Jl(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var l=r;if(l.anim===1)return Qn={name:l.name,styles:l.styles,next:Qn},l.name;var c=r;if(c.styles!==void 0){var u=c.next;if(u!==void 0)for(;u!==void 0;)Qn={name:u.name,styles:u.styles,next:Qn},u=u.next;var f=c.styles+";";return f}return Kk(e,t,r)}case"function":{if(e!==void 0){var h=Qn,p=r(e);return Qn=h,Jl(e,t,p)}break}}var m=r;if(t==null)return m;var y=t[m];return y!==void 0?y:m}function Kk(e,t,r){var a="";if(Array.isArray(r))for(var l=0;l<r.length;l++)a+=Jl(e,t,r[l])+";";else for(var c in r){var u=r[c];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?a+=c+"{"+t[f]+"}":g0(f)&&(a+=Fg(c)+":"+h0(c,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var h=0;h<u.length;h++)g0(u[h])&&(a+=Fg(c)+":"+h0(c,u[h])+";");else{var p=Jl(e,t,u);switch(c){case"animation":case"animationName":{a+=Fg(c)+":"+p+";";break}default:a+=c+"{"+p+"}"}}}return a}var p0=/label:\s*([^\s;{]+)\s*(;|$)/g,Qn;function sp(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,l="";Qn=void 0;var c=e[0];if(c==null||c.raw===void 0)a=!1,l+=Jl(r,t,c);else{var u=c;l+=u[0]}for(var f=1;f<e.length;f++)if(l+=Jl(r,t,e[f]),a){var h=c;l+=h[f]}p0.lastIndex=0;for(var p="",m;(m=p0.exec(l))!==null;)p+="-"+m[1];var y=Wk(l)+p;return{name:y,styles:l,next:Qn}}var Qk=function(t){return t()},j1=o0.useInsertionEffect?o0.useInsertionEffect:!1,U1=j1||Qk,m0=j1||w.useLayoutEffect,G1=w.createContext(typeof HTMLElement<"u"?$k({key:"css"}):null);G1.Provider;var cp=function(t){return w.forwardRef(function(r,a){var l=w.useContext(G1);return t(r,l,a)})},up=w.createContext({}),dp={}.hasOwnProperty,Ch="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zk=function(t,r){var a={};for(var l in r)dp.call(r,l)&&(a[l]=r[l]);return a[Ch]=t,a},Jk=function(t){var r=t.cache,a=t.serialized,l=t.isStringTag;return op(r,a,l),U1(function(){return lp(r,a,l)}),null},eR=cp(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var l=e[Ch],c=[a],u="";typeof e.className=="string"?u=$1(t.registered,c,e.className):e.className!=null&&(u=e.className+" ");var f=sp(c,void 0,w.useContext(up));u+=t.key+"-"+f.name;var h={};for(var p in e)dp.call(e,p)&&p!=="css"&&p!==Ch&&(h[p]=e[p]);return h.className=u,r&&(h.ref=r),w.createElement(w.Fragment,null,w.createElement(Jk,{cache:t,serialized:f,isStringTag:typeof l=="string"}),w.createElement(l,h))}),tR=eR,v0=function(t,r){var a=arguments;if(r==null||!dp.call(r,"css"))return w.createElement.apply(void 0,a);var l=a.length,c=new Array(l);c[0]=tR,c[1]=Zk(t,r);for(var u=2;u<l;u++)c[u]=a[u];return w.createElement.apply(null,c)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(v0||(v0={}));var b0=cp(function(e,t){var r=e.styles,a=sp([r],void 0,w.useContext(up)),l=w.useRef();return m0(function(){var c=t.key+"-global",u=new t.sheet.constructor({key:c,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,h=document.querySelector('style[data-emotion="'+c+" "+a.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),h!==null&&(f=!0,h.setAttribute("data-emotion",c),u.hydrate([h])),l.current=[u,f],function(){u.flush()}},[t]),m0(function(){var c=l.current,u=c[0],f=c[1];if(f){c[1]=!1;return}if(a.next!==void 0&&lp(t,a.next,!0),u.tags.length){var h=u.tags[u.tags.length-1].nextElementSibling;u.before=h,u.flush()}t.insert("",a,u,!1)},[t,a.name]),null});function nR(...e){return function(...r){e.forEach(a=>a?.(...r))}}const rR=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),iR=/^on[A-Z]/;function es(...e){let t={};for(let r of e){for(let a in t){if(iR.test(a)&&typeof t[a]=="function"&&typeof r[a]=="function"){t[a]=nR(t[a],r[a]);continue}if(a==="className"||a==="class"){t[a]=rR(t[a],r[a]);continue}if(a==="style"){t[a]=Object.assign({},t[a]??{},r[a]??{});continue}t[a]=r[a]!==void 0?r[a]:t[a]}for(let a in r)t[a]===void 0&&(t[a]=r[a])}return t}function aR(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function oR(...e){return t=>{e.forEach(r=>{aR(r,t)})}}function ss(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}const zn=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function lR(e){return e.default||e}const Xt=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),nr=e=>typeof e=="string",fp=e=>typeof e=="function";function sR(e){const t=w.version;return!nr(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const W1=(...e)=>{const t=e.reduce((r,a)=>(a?.forEach(l=>r.add(l)),r),new Set([]));return Array.from(t)};function cR(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Wl(e={}){const{name:t,strict:r=!0,hookName:a="useContext",providerName:l="Provider",errorMessage:c,defaultValue:u}=e,f=w.createContext(u);f.displayName=t;function h(){const p=w.useContext(f);if(!p&&r){const m=new Error(c??cR(a,l));throw m.name="ContextError",Error.captureStackTrace?.(m,h),m}return p}return[f.Provider,h,f]}const[uR,Fu]=Wl({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function dR(e){const{value:t,children:r}=e;return F.jsxs(uR,{value:t,children:[!t._config.disableLayers&&F.jsx(b0,{styles:t.layers.atRule}),F.jsx(b0,{styles:t._global}),r]})}const fR=(e,t)=>{const r={},a={},l=Object.keys(e);for(const c of l)t(c)?a[c]=e[c]:r[c]=e[c];return[a,r]},ro=(e,t)=>{const r=fp(t)?t:a=>t.includes(a);return fR(e,r)},gR=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function hR(e){return typeof e=="string"&&gR.has(e)}function pR(e,t,r){const{css:a,isValidProperty:l}=Fu(),{children:c,...u}=e,f=w.useMemo(()=>{const[b,x]=ro(u,O=>r(O,t.variantKeys)),[E,C]=ro(x,t.variantKeys),[T,k]=ro(C,l);return{forwardedProps:b,variantProps:E,styleProps:T,elementProps:k}},[t.variantKeys,r,u,l]),{css:h,...p}=f.styleProps,m=w.useMemo(()=>{const b={...f.variantProps};return t.variantKeys.includes("colorPalette")||(b.colorPalette=u.colorPalette),t.variantKeys.includes("orientation")||(b.orientation=u.orientation),t(b)},[t,f.variantProps,u.colorPalette,u.orientation]);return{styles:w.useMemo(()=>a(m,...mR(h),p),[a,m,h,p]),props:{...f.forwardedProps,...f.elementProps,children:c}}}const mR=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),vR=lR(fk),bR=vR,yR=e=>e!=="theme",xR=(e,t,r)=>{let a;if(t){const l=t.shouldForwardProp;a=e.__emotion_forwardProp&&l?c=>e.__emotion_forwardProp(c)&&l(c):l}return typeof a!="function"&&r&&(a=e.__emotion_forwardProp),a};let SR=typeof document<"u";const y0=({cache:e,serialized:t,isStringTag:r})=>{op(e,t,r);const a=U1(()=>lp(e,t,r));if(!SR&&a!==void 0){let l=t.name,c=t.next;for(;c!==void 0;)l=zn(l,c.name),c=c.next;return F.jsx("style",{"data-emotion":zn(e.key,l),dangerouslySetInnerHTML:{__html:a},nonce:e.sheet.nonce})}return null},x0={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},ER=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),CR=(e,t={},r={})=>{if(ER(x0,e)){r.forwardProps||(r.forwardProps=[]);const p=x0[e];r.forwardProps=W1([...r.forwardProps,...p])}const a=e.__emotion_real===e,l=a&&e.__emotion_base||e;let c,u;r!==void 0&&(c=r.label,u=r.target);let f=[];const h=cp((p,m,y)=>{const{cva:b,isValidProperty:x}=Fu(),E=t.__cva__?t:b(t),C=OR(e.__emotion_cva,E),T=oe=>(L,J)=>oe.includes(L)?!0:!J?.includes(L)&&!x(L);!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=T(r.forwardProps));const k=(oe,L)=>{const J=typeof e=="string"&&e.charCodeAt(0)>96?bR:yR,le=!L?.includes(oe)&&!x(oe);return J(oe)&&le},O=xR(e,r,a)||k,N=w.useMemo(()=>Object.assign({},r.defaultProps,ss(p)),[p]),{props:z,styles:A}=pR(N,C,O);let B="",j=[A],q=z;if(z.theme==null){q={};for(let oe in z)q[oe]=z[oe];q.theme=w.useContext(up)}typeof z.className=="string"?B=$1(m.registered,j,z.className):z.className!=null&&(B=zn(B,z.className));const X=sp(f.concat(j),m.registered,q);X.styles&&(B=zn(B,`${m.key}-${X.name}`)),u!==void 0&&(B=zn(B,u));const te=!O("as");let K=te&&z.as||l,P={};for(let oe in z)if(!(te&&oe==="as")){if(hR(oe)){const L=oe.replace("html","").toLowerCase();P[L]=z[oe];continue}O(oe)&&(P[oe]=z[oe])}let Z=B.trim();Z?P.className=Z:Reflect.deleteProperty(P,"className"),P.ref=y;const se=r.forwardAsChild||r.forwardProps?.includes("asChild");if(z.asChild&&!se){const oe=w.isValidElement(z.children)?w.Children.only(z.children):w.Children.toArray(z.children).find(w.isValidElement);if(!oe)throw new Error("[chakra-ui > factory] No valid child found");K=oe.type,P.children=null,Reflect.deleteProperty(P,"asChild"),P=es(P,oe.props),P.ref=oR(y,sR(oe))}return P.as&&se?(P.as=void 0,F.jsxs(w.Fragment,{children:[F.jsx(y0,{cache:m,serialized:X,isStringTag:typeof K=="string"}),F.jsx(K,{asChild:!0,...P,children:F.jsx(z.as,{children:P.children})})]})):F.jsxs(w.Fragment,{children:[F.jsx(y0,{cache:m,serialized:X,isStringTag:typeof K=="string"}),F.jsx(K,{...P})]})});return h.displayName=c!==void 0?c:`chakra(${typeof l=="string"?l:l.displayName||l.name||"Component"})`,h.__emotion_real=h,h.__emotion_base=l,h.__emotion_forwardProp=r.shouldForwardProp,h.__emotion_cva=t,Object.defineProperty(h,"toString",{value(){return`.${u}`}}),h},jg=CR.bind(),Ug=new Map,wR=new Proxy(jg,{apply(e,t,r){return jg(...r)},get(e,t){return Ug.has(t)||Ug.set(t,jg(t)),Ug.get(t)}}),vn=wR,OR=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),cs=vn("div");cs.displayName="Box";const TR=w.forwardRef(function(t,r){const{size:a,...l}=t;return F.jsx(cs,{...l,ref:r,boxSize:a,css:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexGrow:0,...t.css}})}),kR=w.forwardRef(function(t,r){const{size:a,...l}=t;return F.jsx(TR,{size:a,ref:r,borderRadius:"9999px",...l})}),RR=Object.freeze({}),NR=Object.freeze({});function AR(e){const{key:t,recipe:r}=e,a=Fu();return w.useMemo(()=>{const l=r||(t!=null?a.getRecipe(t):{});return a.cva(structuredClone(l))},[t,r,a])}const _R=e=>e.charAt(0).toUpperCase()+e.slice(1);function us(e){const{key:t,recipe:r}=e,a=_R(t||r.className||"Component"),[l,c]=Wl({strict:!1,name:`${a}PropsContext`,providerName:`${a}PropsContext`});function u(p){const{unstyled:m,...y}=p,b=AR({key:t,recipe:y.recipe||r}),[x,E]=w.useMemo(()=>b.splitVariantProps(y),[b,y]);return{styles:m?RR:b(x),className:b.className,props:E}}const f=(p,m)=>{const y=vn(p,{},m),b=w.forwardRef((x,E)=>{const C=c(),T=w.useMemo(()=>es(C,x),[x,C]),{styles:k,className:O,props:N}=u(T);return F.jsx(y,{...N,ref:E,css:[k,T.css],className:zn(O,T.className)})});return b.displayName=p.displayName||p.name,b};function h(){return l}return{withContext:f,PropsProvider:l,withPropsProvider:h,usePropsContext:c,useRecipeResult:u}}function eu(e){return e==null?[]:Array.isArray(e)?e:[e]}var ql=e=>e[0],gp=e=>e[e.length-1],IR=(e,t)=>e.indexOf(t)!==-1,ji=(e,...t)=>e.concat(t),Wi=(e,...t)=>e.filter(r=>!t.includes(r)),Qa=e=>Array.from(new Set(e)),Gg=(e,t)=>{const r=new Set(t);return e.filter(a=>!r.has(a))},oo=(e,t)=>IR(e,t)?Wi(e,t):ji(e,t);function q1(e,t,r={}){const{step:a=1,loop:l=!0}=r,c=t+a,u=e.length,f=u-1;return t===-1?a>0?0:f:c<0?l?f:0:c>=u?l?0:t>u?u:t:c}function zR(e,t,r={}){return e[q1(e,t,r)]}function DR(e,t,r={}){const{step:a=1,loop:l=!0}=r;return q1(e,t,{step:-a,loop:l})}function PR(e,t,r={}){return e[DR(e,t,r)]}function S0(e,t){return e.reduce(([r,a],l)=>(t(l)?r.push(l):a.push(l),[r,a]),[[],[]])}var E0=e=>e?.constructor.name==="Array",VR=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Bn(e[r],t[r]))return!1;return!0},Bn=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(E0(e)&&E0(t))return VR(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),a=r.length;for(let l=0;l<a;l++)if(!Reflect.has(e,r[l]))return!1;for(let l=0;l<a;l++){const c=r[l];if(!Bn(e[c],t[c]))return!1}return!0},$l=e=>Array.isArray(e),MR=e=>e===!0||e===!1,Y1=e=>e!=null&&typeof e=="object",Ui=e=>Y1(e)&&!$l(e),tu=e=>typeof e=="string",ci=e=>typeof e=="function",LR=e=>e==null,ui=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),BR=e=>Object.prototype.toString.call(e),X1=Function.prototype.toString,HR=X1.call(Object),$R=e=>{if(!Y1(e)||BR(e)!="[object Object]"||UR(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=ui(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&X1.call(r)==HR},FR=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,jR=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,UR=e=>FR(e)||jR(e),Pc=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,GR=e=>e(),WR=()=>{},bu=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})},K1=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Or(e,t,...r){if(e in t){const l=t[e];return ci(l)?l(...r):l}const a=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(a,Or),a}var Q1=(e,t)=>{try{return e()}catch(r){return r instanceof Error&&Error.captureStackTrace?.(r,Q1),t?.()}},{floor:Z1,abs:C0,round:ju,min:qR,max:YR,pow:XR,sign:KR}=Math,wh=e=>Number.isNaN(e),mi=e=>wh(e)?0:e,J1=(e,t)=>(e%t+t)%t,QR=(e,t)=>(e%t+t)%t,ZR=(e,t)=>mi(e)>=t,JR=(e,t)=>mi(e)<=t,eN=(e,t,r)=>{const a=mi(e),l=t==null||a>=t,c=r==null||a<=r;return l&&c},tN=(e,t,r)=>ju((mi(e)-t)/r)*r+t,Kt=(e,t,r)=>qR(YR(mi(e),t),r),nN=(e,t,r)=>(mi(e)-t)/(r-t),rN=(e,t,r,a)=>Kt(tN(e*(r-t)+t,t,a),t,r),w0=(e,t)=>{let r=e,a=t.toString(),l=a.indexOf("."),c=l>=0?a.length-l:0;if(c>0){let u=XR(10,c);r=ju(r*u)/u}return r},Wg=(e,t)=>typeof t=="number"?Z1(e*t+.5)/t:ju(e),O0=(e,t,r,a)=>{const l=t!=null?Number(t):0,c=Number(r),u=(e-l)%a;let f=C0(u)*2>=a?e+KR(u)*(a-C0(u)):e-u;if(f=w0(f,a),!wh(l)&&f<l)f=l;else if(!wh(c)&&f>c){const h=Z1((c-l)/a),p=l+h*a;f=h<=0||p<l?c:p}return w0(f,a)},qe=(e,t=0,r=10)=>{const a=Math.pow(r,t);return ju(e*a)/a},T0=e=>{if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r},eS=(e,t,r)=>{let a=t==="+"?e+r:e-r;if(e%1!==0||r%1!==0){const l=10**Math.max(T0(e),T0(r));e=Math.round(e*l),r=Math.round(r*l),a=t==="+"?e+r:e-r,a/=l}return a},iN=(e,t)=>eS(mi(e),"+",t),aN=(e,t)=>eS(mi(e),"-",t);function Uu(e){if(!$R(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(a=>typeof a=="string"),r={};for(const a of t){const l=e[a];l!==void 0&&(r[a]=Uu(l))}return r}function oN(e,t=Object.is){let r={...e};const a=new Set,l=m=>(a.add(m),()=>a.delete(m)),c=()=>{a.forEach(m=>m())};return{subscribe:l,get:m=>r[m],set:(m,y)=>{t(r[m],y)||(r[m]=y,c())},update:m=>{let y=!1;for(const b in m){const x=m[b];x!==void 0&&!t(r[b],x)&&(r[b]=x,y=!0)}y&&c()},snapshot:()=>({...r})}}function qg(e,t){const r=performance.now();let a;function l(c){if(c-r>=t){e();return}a=requestAnimationFrame(l)}return a=requestAnimationFrame(l),()=>cancelAnimationFrame(a)}function lo(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function tS(e,t){if(e==null)throw new Error(t())}function lN(e,t,r){let a=[];for(const l of t)e[l]==null&&a.push(l);if(a.length>0)throw new Error(`[zag-js${` > ${r}`}] missing required props: ${a.join(", ")}`)}function sN(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ds(e={}){const{name:t,strict:r=!0,hookName:a="useContext",providerName:l="Provider",errorMessage:c,defaultValue:u}=e,f=w.createContext(u);f.displayName=t;function h(){const p=w.useContext(f);if(!p&&r){const m=new Error(c??sN(a,l));throw m.name="ContextError",Error.captureStackTrace?.(m,h),m}return p}return[f.Provider,h,f]}const[jB,Gu]=ds({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function cN(e){if(!e)return;const t=e.selectionStart??0,r=e.selectionEnd??0;Math.abs(r-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var k0=e=>Math.max(0,Math.min(1,e)),uN=(e,t)=>e.map((r,a)=>e[(Math.max(t,0)+a)%e.length]),nS=()=>{},Wu=e=>typeof e=="object"&&e!==null,rS=2147483647,Fi=e=>e?"":void 0,dN=1,fN=9,gN=11,Ht=e=>Wu(e)&&e.nodeType===dN&&typeof e.nodeName=="string",hp=e=>Wu(e)&&e.nodeType===fN,hN=e=>Wu(e)&&e===e.window,iS=e=>Ht(e)?e.localName||"":"#document";function pN(e){return["html","body","#document"].includes(iS(e))}var mN=e=>Wu(e)&&e.nodeType!==void 0,so=e=>mN(e)&&e.nodeType===gN&&"host"in e,vN=e=>Ht(e)&&e.localName==="input",bN=e=>Ht(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,yN=/(textarea|select)/;function aS(e){if(e==null||!Ht(e))return!1;try{return vN(e)&&e.selectionStart!=null||yN.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function di(e,t){if(!e||!t||!Ht(e)||!Ht(t))return!1;const r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&so(r)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function yn(e){return hp(e)?e:hN(e)?e.document:e?.ownerDocument??document}function xN(e){return yn(e).documentElement}function zt(e){return so(e)?zt(e.host):hp(e)?e.defaultView??window:Ht(e)?e.ownerDocument?.defaultView??window:window}function oS(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function SN(e){if(iS(e)==="html")return e;const t=e.assignedSlot||e.parentNode||so(e)&&e.host||xN(e);return so(t)?t.host:t}var Yg=new WeakMap;function lS(e){return Yg.has(e)||Yg.set(e,zt(e).getComputedStyle(e)),Yg.get(e)}var qu=()=>typeof document<"u";function EN(){return navigator.userAgentData?.platform??navigator.platform}function CN(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var pp=e=>qu()&&e.test(EN()),sS=e=>qu()&&e.test(CN()),wN=e=>qu()&&e.test(navigator.vendor),R0=()=>qu()&&!!navigator.maxTouchPoints,ON=()=>pp(/^iPhone/i),TN=()=>pp(/^iPad/i)||Xu()&&navigator.maxTouchPoints>1,Yu=()=>ON()||TN(),kN=()=>Xu()||Yu(),Xu=()=>pp(/^Mac/i),mp=()=>kN()&&wN(/apple/i),RN=()=>sS(/Firefox/i),NN=()=>sS(/Android/i);function AN(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function hn(e){return AN(e)?.[0]??e.target}function _N(e){return VN(e).isComposing||e.keyCode===229}function IN(e){return e.pointerType===""&&e.isTrusted?!0:NN()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var zN=e=>e.button===0,DN=e=>e.button===2||Xu()&&e.ctrlKey&&e.button===0,PN=e=>"touches"in e&&e.touches.length>0;function VN(e){return e.nativeEvent??e}function MN(e,t="client"){const r=PN(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var Ye=(e,t,r,a)=>{const l=typeof e=="function"?e():e;return l?.addEventListener(t,r,a),()=>{l?.removeEventListener(t,r,a)}};function LN(e,t){const{type:r="HTMLInputElement",property:a="value"}=t,l=zt(e)[r].prototype;return Object.getOwnPropertyDescriptor(l,a)??{}}function BN(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Ku(e,t,r="value"){if(!e)return;const a=BN(e);a&&LN(e,{type:a,property:r}).set?.call(e,t),e.setAttribute(r,t)}function HN(e,t){const{value:r,bubbles:a=!0}=t;if(!e)return;const l=zt(e);e instanceof l.HTMLInputElement&&(Ku(e,`${r}`),e.dispatchEvent(new l.Event("input",{bubbles:a})))}function $N(e){return FN(e)?e.form:e.closest("form")}function FN(e){return e.matches("textarea, input, select, button")}function jN(e,t){if(!e)return;const r=$N(e),a=l=>{l.defaultPrevented||t()};return r?.addEventListener("reset",a,{passive:!0}),()=>r?.removeEventListener("reset",a)}function UN(e,t){const r=e?.closest("fieldset");if(!r)return;t(r.disabled);const a=zt(r),l=new a.MutationObserver(()=>t(r.disabled));return l.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>l.disconnect()}function vp(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:a}=t,l=[jN(e,a),UN(e,r)];return()=>l.forEach(c=>c?.())}var cS=e=>Ht(e)&&e.tagName==="IFRAME",GN=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),WN=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,bp="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",uS=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(bp));(t==!0||t=="if-empty"&&r.length===0)&&Ht(e)&&fi(e)&&r.unshift(e);const l=r.filter(fi);return l.forEach((c,u)=>{if(cS(c)&&c.contentDocument){const f=c.contentDocument.body;l.splice(u,1,...uS(f))}}),l};function fi(e){return!e||e.closest("[inert]")?!1:e.matches(bp)&&bN(e)}function fs(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(bp)),a=r.filter(si);return t&&si(e)&&a.unshift(e),a.forEach((l,c)=>{if(cS(l)&&l.contentDocument){const u=l.contentDocument.body,f=fs(u);a.splice(c,1,...f)}}),!a.length&&t?r:a}function si(e){return e!=null&&e.tabIndex>0?!0:fi(e)&&!WN(e)}function qN(e,t){const r=fs(e,t),a=r[0]||null,l=r[r.length-1]||null;return[a,l]}function YN(e,t){const r=fs(e),a=e?.ownerDocument||document,l=t??a.activeElement;if(!l)return null;const c=r.indexOf(l);return r[c+1]||null}function Al(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||aS(e))&&!GN(e)?0:e.tabIndex}function ts(e){const{root:t,getInitialEl:r,filter:a,enabled:l=!0}=e;if(!l)return;let c=null;if(c||(c=typeof r=="function"?r():r),c||(c=t?.querySelector("[data-autofocus],[autofocus]")),!c){const u=fs(t);c=a?u.filter(a)[0]:u[0]}return c||t||void 0}function yp(e){const t=new Set;function r(a){const l=globalThis.requestAnimationFrame(a);t.add(()=>globalThis.cancelAnimationFrame(l))}return r(()=>r(e)),function(){t.forEach(l=>l())}}function xe(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t?.()}}function XN(e,t,r){const a=xe(()=>{e.removeEventListener(t,l,!0),r()}),l=()=>{a(),r()};return e.addEventListener(t,l,{once:!0,capture:!0}),a}function KN(e,t){if(!e)return;const{attributes:r,callback:a}=t,l=e.ownerDocument.defaultView||window,c=new l.MutationObserver(u=>{for(const f of u)f.type==="attributes"&&f.attributeName&&r.includes(f.attributeName)&&a(f)});return c.observe(e,{attributes:!0,attributeFilter:r}),()=>c.disconnect()}function Qu(e,t){const{defer:r}=t,a=r?xe:c=>c(),l=[];return l.push(a(()=>{const c=typeof e=="function"?e():e;l.push(KN(c,t))})),()=>{l.forEach(c=>c?.())}}function dS(e){const t=()=>{const r=zt(e);e.dispatchEvent(new r.MouseEvent("click"))};RN()?XN(e,"keyup",t):queueMicrotask(t)}function yu(e){const t=SN(e);return pN(t)?yn(t).body:Ht(t)&&xp(t)?t:yu(t)}function fS(e,t=[]){const r=yu(e),a=r===e.ownerDocument.body,l=zt(r);return a?t.concat(l,l.visualViewport||[],xp(r)?r:[]):t.concat(r,fS(r,[]))}var QN=/auto|scroll|overlay|hidden|clip/,ZN=new Set(["inline","contents"]);function xp(e){const t=zt(e),{overflow:r,overflowX:a,overflowY:l,display:c}=t.getComputedStyle(e);return QN.test(r+l+a)&&!ZN.has(c)}function JN(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function xu(e,t){const{rootEl:r,...a}=t||{};!e||!r||!xp(r)||!JN(r)||e.scrollIntoView(a)}function gS(e,t){const{left:r,top:a,width:l,height:c}=t.getBoundingClientRect(),u={x:e.x-r,y:e.y-a},f={x:k0(u.x/l),y:k0(u.y/c)};function h(p={}){const{dir:m="ltr",orientation:y="horizontal",inverted:b}=p,x=typeof b=="object"?b.x:b,E=typeof b=="object"?b.y:b;return y==="horizontal"?m==="rtl"||x?1-f.x:f.x:E?1-f.y:f.y}return{offset:u,percent:f,getPercentValue:h}}function e2(e,t){const r=e.body,a="pointerLockElement"in e||"mozPointerLockElement"in e,l=()=>!!e.pointerLockElement;function c(){}function u(h){l(),console.error("PointerLock error occurred:",h),e.exitPointerLock()}if(!a)return;try{r.requestPointerLock()}catch{}const f=[Ye(e,"pointerlockchange",c,!1),Ye(e,"pointerlockerror",u,!1)];return()=>{f.forEach(h=>h()),e.exitPointerLock()}}var Za="default",Oh="",nu=new WeakMap;function t2(e={}){const{target:t,doc:r}=e,a=r??document,l=a.documentElement;return Yu()?(Za==="default"&&(Oh=l.style.webkitUserSelect,l.style.webkitUserSelect="none"),Za="disabled"):t&&(nu.set(t,t.style.userSelect),t.style.userSelect="none"),()=>n2({target:t,doc:a})}function n2(e={}){const{target:t,doc:r}=e,l=(r??document).documentElement;if(Yu()){if(Za!=="disabled")return;Za="restoring",setTimeout(()=>{yp(()=>{Za==="restoring"&&(l.style.webkitUserSelect==="none"&&(l.style.webkitUserSelect=Oh||""),Oh="",Za="default")})},300)}else if(t&&nu.has(t)){const c=nu.get(t);t.style.userSelect==="none"&&(t.style.userSelect=c??""),t.getAttribute("style")===""&&t.removeAttribute("style"),nu.delete(t)}}function hS(e={}){const{defer:t,target:r,...a}=e,l=t?xe:u=>u(),c=[];return c.push(l(()=>{const u=typeof r=="function"?r():r;c.push(t2({...a,target:u}))})),()=>{c.forEach(u=>u?.())}}function r2(e,t){const{onPointerMove:r,onPointerUp:a}=t,c=[Ye(e,"pointermove",u=>{const f=MN(u),h=Math.sqrt(f.x**2+f.y**2),p=u.pointerType==="touch"?10:5;if(!(h<p)){if(u.pointerType==="mouse"&&u.button===0){a();return}r({point:f,event:u})}},!1),Ye(e,"pointerup",a,!1),Ye(e,"pointercancel",a,!1),Ye(e,"contextmenu",a,!1),hS({doc:e})];return()=>{c.forEach(u=>u())}}function i2(e,t={}){const{triggerElement:r,onFocus:a,onFocusEnter:l}=t,c=e?.ownerDocument||document,u=c.body;function f(h){if(h.key!=="Tab")return;let p=null;const[m,y]=qN(e,!0),b=YN(u,r),x=!m&&!y;h.shiftKey&&b===c.activeElement?(l?.(),p=y):h.shiftKey&&(c.activeElement===m||x)?p=r:!h.shiftKey&&c.activeElement===r?(l?.(),p=m):!h.shiftKey&&(c.activeElement===y||x)&&(p=b),p&&(h.preventDefault(),typeof a=="function"?a(p):p.focus())}return Ye(c,"keydown",f,!0)}function a2(e,t){const{defer:r,triggerElement:a,...l}=t,c=r?xe:f=>f(),u=[];return u.push(c(()=>{const f=typeof e=="function"?e():e,h=typeof a=="function"?a():a;u.push(i2(f,{triggerElement:h,...l}))})),()=>{u.forEach(f=>f?.())}}function Su(e,t){return Array.from(e?.querySelectorAll(t)??[])}function o2(e,t){return e?.querySelector(t)??null}var Sp=e=>e.id;function l2(e,t,r=Sp){return e.find(a=>r(a)===t)}function Ep(e,t,r=Sp){const a=l2(e,t,r);return a?e.indexOf(a):-1}function s2(e,t,r=!0){let a=Ep(e,t);return a=r?(a+1)%e.length:Math.min(a+1,e.length-1),e[a]}function c2(e,t,r=!0){let a=Ep(e,t);return a===-1?r?e[e.length-1]:null:(a=r?(a-1+e.length)%e.length:Math.max(0,a-1),e[a])}var u2=e=>e.split("").map(t=>{const r=t.charCodeAt(0);return r>0&&r<128?t:r>=128&&r<=255?`/x${r.toString(16)}`.replace("/","\\"):""}).join("").trim(),d2=e=>u2(e.dataset?.valuetext??e.textContent??""),f2=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function g2(e,t,r,a=Sp){const l=r?Ep(e,r,a):-1;let c=r?uN(e,l):e;return t.length===1&&(c=c.filter(f=>a(f)!==r)),c.find(f=>f2(d2(f),t))}function Eu(e,t){if(!e)return nS;const r=Object.keys(t).reduce((a,l)=>(a[l]=e.style.getPropertyValue(l),a),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")}}function h2(e,t,r){if(!e)return nS;const a=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,a),e.style.length===0&&e.removeAttribute("style")}}function p2(e,t){const{state:r,activeId:a,key:l,timeout:c=350,itemToId:u}=t,f=r.keysSoFar+l,p=f.length>1&&Array.from(f).every(E=>E===f[0])?f[0]:f;let m=e.slice();const y=g2(m,p,a,u);function b(){clearTimeout(r.timer),r.timer=-1}function x(E){r.keysSoFar=E,b(),E!==""&&(r.timer=+setTimeout(()=>{x(""),b()},c))}return x(f),y}var ns=Object.assign(p2,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:m2});function m2(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function v2(e,t,r){const{signal:a}=t;return[new Promise((u,f)=>{const h=setTimeout(()=>{f(new Error(`Timeout of ${r}ms exceeded`))},r);a.addEventListener("abort",()=>{clearTimeout(h),f(new Error("Promise aborted"))}),e.then(p=>{a.aborted||(clearTimeout(h),u(p))}).catch(p=>{a.aborted||(clearTimeout(h),f(p))})}),()=>t.abort()]}function b2(e,t){const{timeout:r,rootNode:a}=t,l=zt(a),c=yn(a),u=new l.AbortController;return v2(new Promise(f=>{const h=e();if(h){f(h);return}const p=new l.MutationObserver(()=>{const m=e();m&&m.isConnected&&(p.disconnect(),f(m))});p.observe(c.body,{childList:!0,subtree:!0})}),u,r)}var y2=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),x2=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,N0=e=>{const t={};let r;for(;r=x2.exec(e);)t[r[1]]=r[2];return t},S2=(e,t)=>{if(tu(e)){if(tu(t))return`${e};${t}`;e=N0(e)}else tu(t)&&(t=N0(t));return Object.assign({},e??{},t??{})};function mt(...e){let t={};for(let r of e){for(let a in t){if(a.startsWith("on")&&typeof t[a]=="function"&&typeof r[a]=="function"){t[a]=bu(r[a],t[a]);continue}if(a==="className"||a==="class"){t[a]=y2(t[a],r[a]);continue}if(a==="style"){t[a]=S2(t[a],r[a]);continue}t[a]=r[a]!==void 0?r[a]:t[a]}for(let a in r)t[a]===void 0&&(t[a]=r[a])}return t}function A0(e,t,r){let a=[],l;return c=>{const u=e(c);return(u.length!==a.length||u.some((h,p)=>!Bn(a[p],h)))&&(a=u,l=t(...u)),l}}function Ir(){return{and:(...e)=>function(r){return e.every(a=>r.guard(a))},or:(...e)=>function(r){return e.some(a=>r.guard(a))},not:e=>function(r){return!r.guard(e)}}}function pS(){return{guards:Ir(),createMachine:e=>e,choose:e=>function({choose:r}){return r(e)?.actions}}}var Wa=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Wa||{}),Xg="__init__";function E2(e){const t=()=>e.getRootNode?.()??document,r=()=>yn(t()),a=()=>r().defaultView??window,l=()=>oS(t());return{...e,getRootNode:t,getDoc:r,getWin:a,getActiveElement:l,isActiveElement:f=>f===l(),getById:f=>t().getElementById(f)}}function mS(...e){return t=>{const r=[];for(const a of e)if(typeof a=="function"){const l=a(t);typeof l=="function"&&r.push(l)}else a&&(a.current=t);if(r.length)return()=>{for(const a of r)a()}}}function C2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Kg=e=>{const t=w.memo(w.forwardRef((r,a)=>{const{asChild:l,children:c,...u}=r;if(!l)return w.createElement(e,{...u,ref:a},c);if(!w.isValidElement(c))return null;const f=w.Children.only(c),h=C2(f);return w.cloneElement(f,{...mt(u,f.props),ref:a?mS(a,h):h})}));return t.displayName=e.displayName||e.name,t},w2=()=>{const e=new Map;return new Proxy(Kg,{apply(t,r,a){return Kg(a[0])},get(t,r){const a=r;return e.has(a)||e.set(a,Kg(a)),e.get(a)}})},$t=w2(),[UB,vS]=ds({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),O2=()=>(e,t)=>t.reduce((r,a)=>{const[l,c]=r,u=a;return c[u]!==void 0&&(l[u]=c[u]),delete c[u],[l,c]},[{},{...e}]),bS=e=>O2()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function T2(e){return new Proxy({},{get(t,r){return r==="style"?a=>e({style:a}).style:e}})}var he=()=>e=>Array.from(new Set(e));function k2(e,t){const{state:r,send:a,context:l}=e,c=r.matches("mounted","unmountSuspended");return{skip:!l.get("initial"),present:c,setNode(u){u&&a({type:"NODE.SET",node:u})},unmount(){a({type:"UNMOUNT"})}}}var R2={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:r}){e([()=>t("present")],()=>{r({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",lS(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:r,prop:a})=>{const l=a("present");if(l)return r({type:"MOUNT",src:"presence.changed"});const c=t.get("node");if(!l&&c?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});xe(()=>{const u=Vc(t.get("styles"));e.set("unmountAnimationName",u),u==="none"||u===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{xe(()=>{e.set("prevAnimationName",Vc(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{const a=t.get("node");if(!a)return;const l=f=>{(f.composedPath?.()?.[0]??f.target)===a&&e.set("prevAnimationName",Vc(t.get("styles")))},c=f=>{const h=Vc(t.get("styles"));hn(f)===a&&h===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};a.addEventListener("animationstart",l),a.addEventListener("animationcancel",c),a.addEventListener("animationend",c);const u=Eu(a,{animationFillMode:"forwards"});return()=>{a.removeEventListener("animationstart",l),a.removeEventListener("animationcancel",c),a.removeEventListener("animationend",c),yp(()=>u())}}}}};function Vc(e){return e?.animationName||"none"}he()(["onExitComplete","present","immediate"]);var Zu=I1(),yS=typeof globalThis.document<"u"?w.useLayoutEffect:w.useEffect;function Cu(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[a]=w.useState(t),[l,c]=w.useState(a),u=e().value!==void 0,f=w.useRef(l);f.current=u?e().value:l;const h=w.useRef(f.current);yS(()=>{h.current=f.current},[l,e().value]);const p=y=>{const b=h.current,x=ci(y)?y(b):y;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:x,prev:b}),u||c(x),r(x,b)||e().onChange?.(x,b)};function m(){return u?e().value:l}return{initial:a,ref:f,get:m,set(y){(e().sync?Zu.flushSync:GR)(()=>p(y))},invoke(y,b){e().onChange?.(y,b)},hash(y){return e().hash?.(y)??String(y)}}}Cu.cleanup=e=>{w.useEffect(()=>e,[])};Cu.ref=e=>{const t=w.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function N2(e){const t=w.useRef(e);return{get(r){return t.current[r]},set(r,a){t.current[r]=a}}}var A2=(e,t)=>{const r=w.useRef(!1),a=w.useRef(!1);w.useEffect(()=>{if(r.current&&a.current)return t();a.current=!0},[...(e??[]).map(l=>typeof l=="function"?l():l)]),w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function Ju(e,t={}){const r=w.useMemo(()=>{const{id:K,ids:P,getRootNode:Z}=t;return E2({id:K,ids:P,getRootNode:Z})},[t]),a=(...K)=>{e.debug&&console.log(...K)},l=e.props?.({props:Uu(t),scope:r})??t,c=_2(l),u=e.context?.({prop:c,bindable:Cu,scope:r,flush:_0,getContext(){return h},getComputed(){return A},getRefs(){return C},getEvent(){return x()}}),f=xS(u),h={get(K){return f.current?.[K].ref.current},set(K,P){f.current?.[K].set(P)},initial(K){return f.current?.[K].initial},hash(K){const P=f.current?.[K].get();return f.current?.[K].hash(P)}},p=w.useRef(new Map),m=w.useRef(null),y=w.useRef(null),b=w.useRef({type:""}),x=()=>({...b.current,current(){return b.current},previous(){return y.current}}),E=()=>({...B,matches(...K){return K.includes(B.ref.current)},hasTag(K){return!!e.states[B.ref.current]?.tags?.includes(K)}}),C=N2(e.refs?.({prop:c,context:h})??{}),T=()=>({state:E(),context:h,event:x(),prop:c,send:te,action:k,guard:O,track:A2,refs:C,computed:A,flush:_0,scope:r,choose:z}),k=K=>{const P=ci(K)?K(T()):K;if(!P)return;const Z=P.map(se=>{const oe=e.implementations?.actions?.[se];return oe||lo(`[zag-js] No implementation found for action "${JSON.stringify(se)}"`),oe});for(const se of Z)se?.(T())},O=K=>ci(K)?K(T()):e.implementations?.guards?.[K](T()),N=K=>{const P=ci(K)?K(T()):K;if(!P)return;const Z=P.map(oe=>{const L=e.implementations?.effects?.[oe];return L||lo(`[zag-js] No implementation found for effect "${JSON.stringify(oe)}"`),L}),se=[];for(const oe of Z){const L=oe?.(T());L&&se.push(L)}return()=>se.forEach(oe=>oe?.())},z=K=>eu(K).find(P=>{let Z=!P.guard;return tu(P.guard)?Z=!!O(P.guard):ci(P.guard)&&(Z=P.guard(T())),Z}),A=K=>{tS(e.computed,()=>"[zag-js] No computed object found on machine");const P=e.computed[K];return P({context:h,event:x(),prop:c,refs:C,scope:r,computed:A})},B=Cu(()=>({defaultValue:e.initialState({prop:c}),onChange(K,P){P&&(p.current.get(P)?.(),p.current.delete(P)),P&&k(e.states[P]?.exit),k(m.current?.actions);const Z=N(e.states[K]?.effects);if(Z&&p.current.set(K,Z),P===Xg){k(e.entry);const se=N(e.effects);se&&p.current.set(Xg,se)}k(e.states[K]?.entry)}})),j=w.useRef(void 0),q=w.useRef(Wa.NotStarted);yS(()=>{queueMicrotask(()=>{const Z=q.current===Wa.Started;q.current=Wa.Started,a(Z?"rehydrating...":"initializing...");const se=j.current??B.initial;B.invoke(se,Z?B.get():Xg)});const K=p.current,P=B.ref.current;return()=>{a("unmounting..."),j.current=P,q.current=Wa.Stopped,K.forEach(Z=>Z?.()),p.current=new Map,m.current=null,queueMicrotask(()=>{k(e.exit)})}},[]);const X=()=>"ref"in B?B.ref.current:B.get(),te=K=>{queueMicrotask(()=>{if(q.current!==Wa.Started)return;y.current=b.current,b.current=K;let P=X();const Z=e.states[P].on?.[K.type]??e.on?.[K.type],se=z(Z);if(!se)return;m.current=se;const oe=se.target??P;a("transition",K.type,se.target||P,`(${se.actions})`);const L=oe!==P;L?Zu.flushSync(()=>B.set(oe)):se.reenter&&!L?B.invoke(P,P):k(se.actions??[])})};return e.watch?.(T()),{state:E(),send:te,context:h,prop:c,scope:r,refs:C,computed:A,event:x(),getStatus:()=>q.current}}function xS(e){const t=w.useRef(e);return t.current=e,t}function _2(e){const t=xS(e);return function(a){return t.current[a]}}function _0(e){queueMicrotask(()=>{Zu.flushSync(()=>e())})}var Cp=T2(e=>e);function I2(e,t={}){const{sync:r=!1}=t,a=z2(e);return w.useCallback((...l)=>r?queueMicrotask(()=>a.current?.(...l)):a.current?.(...l),[r,a])}function z2(e){const t=w.useRef(e);return t.current=e,t}const SS=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:a,skipAnimationOnMount:l=!1,...c}=e,u=w.useRef(!1),f={...c,present:a,onExitComplete:I2(e.onExitComplete)},h=Ju(R2,f),p=k2(h);p.present&&(u.current=!0);const m=!p.present&&!u.current&&t||r&&!p.present&&u.current,y=()=>({"data-state":p.skip&&l?void 0:a?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:y,present:p.present,unmounted:m}},[ES,wp]=ds({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),Ja=vn("span"),{withContext:D2}=us({key:"text"}),CS=D2("p");var ge=(e,t=[])=>({parts:(...r)=>{if(P2(t))return ge(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>ge(e,[...t,...r]),omit:(...r)=>ge(e,t.filter(a=>!r.includes(a))),rename:r=>ge(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,a)=>Object.assign(r,{[a]:{selector:[`&[data-scope="${Ba(e)}"][data-part="${Ba(a)}"]`,`& [data-scope="${Ba(e)}"][data-part="${Ba(a)}"]`].join(", "),attrs:{"data-scope":Ba(e),"data-part":Ba(a)}}}),{})}),Ba=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),P2=e=>e.length===0,wS=ge("collapsible").parts("root","trigger","content","indicator");wS.build();he()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var V2=Object.defineProperty,M2=(e,t,r)=>t in e?V2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Op=(e,t,r)=>M2(e,t+"",r),L2=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},Tp=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const r=t??this.getChannelValue(e),{minValue:a,maxValue:l}=this.getChannelRange(e);return nN(r,a,l)}getChannelPercentValue(e,t){const{minValue:r,maxValue:a,step:l}=this.getChannelRange(e),c=rN(t,r,a,l);return O0(c,r,a,l)}withChannelValue(e,t){const{minValue:r,maxValue:a}=this.getChannelRange(e);if(e in this){let l=this.clone();return l[e]=Kt(t,r,a),l}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,a=t||this.getChannels().find(u=>u!==r),l=r||this.getChannels().find(u=>u!==a),c=this.getChannels().find(u=>u!==a&&u!==l);return{xChannel:a,yChannel:l,zChannel:c}}incrementChannel(e,t){const{minValue:r,maxValue:a,step:l}=this.getChannelRange(e),c=O0(Kt(this.getChannelValue(e)+t,r,a),r,a,l);return this.withChannelValue(e,c)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return L2(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},B2=/^#[\da-f]+$/i,H2=/^rgba?\((.*)\)$/,$2=/[^#]/gi,OS=class ru extends Tp{constructor(t,r,a,l){super(),this.red=t,this.green=r,this.blue=a,this.alpha=l}static parse(t){let r=[];if(B2.test(t)&&[4,5,7,9].includes(t.length)){const l=(t.length<6?t.replace($2,"$&$&"):t).slice(1).split("");for(;l.length>0;)r.push(parseInt(l.splice(0,2).join(""),16));r[3]=r[3]!==void 0?r[3]/255:void 0}const a=t.match(H2);return a?.[1]&&(r=a[1].split(",").map(l=>Number(l.trim())).map((l,c)=>Kt(l,0,c<3?255:1))),r.length<3?void 0:new ru(r[0],r[1],r[2],r[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,r=this.green/255,a=this.blue/255,l=Math.min(t,r,a),c=Math.max(t,r,a),u=c-l,f=c===0?0:u/c;let h=0;if(u!==0){switch(c){case t:h=(r-a)/u+(r<a?6:0);break;case r:h=(a-t)/u+2;break;case a:h=(t-r)/u+4;break}h/=6}return new Np(qe(h*360,2),qe(f*100,2),qe(c*100,2),qe(this.alpha,2))}toHSL(){const t=this.red/255,r=this.green/255,a=this.blue/255,l=Math.min(t,r,a),c=Math.max(t,r,a),u=(c+l)/2,f=c-l;let h=-1,p=-1;if(f===0)h=p=0;else{switch(p=f/(u<.5?c+l:2-c-l),c){case t:h=(r-a)/f+(r<a?6:0);break;case r:h=(a-t)/f+2;break;case a:h=(t-r)/f+4;break}h/=6}return new Rp(qe(h*360,2),qe(p*100,2),qe(u*100,2),qe(this.alpha,2))}clone(){return new ru(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let a=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return new Intl.NumberFormat(r,a).format(l)}getChannelRange(t){switch(t){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return ru.colorChannels}};Op(OS,"colorChannels",["red","green","blue"]);var kp=OS,F2=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,TS=class iu extends Tp{constructor(t,r,a,l){super(),this.hue=t,this.saturation=r,this.lightness=a,this.alpha=l}static parse(t){let r;if(r=t.match(F2)){const[a,l,c,u]=(r[1]??r[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new iu(J1(a,360),Kt(l,0,100),Kt(c,0,100),Kt(u??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${qe(this.saturation,2)}%, ${qe(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${qe(this.saturation,2)}%, ${qe(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,r=this.lightness/100,a=r+t*Math.min(r,1-r);return t=a===0?0:2*(1-r/a),new Np(qe(this.hue,2),qe(t*100,2),qe(a*100,2),qe(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,a=this.lightness/100,l=r*Math.min(a,1-a),c=(u,f=(u+t/30)%12)=>a-l*Math.max(Math.min(f-3,9-f,1),-1);return new kp(Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255),qe(this.alpha,2))}clone(){return new iu(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let a=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(l/=100),new Intl.NumberFormat(r,a).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return iu.colorChannels}};Op(TS,"colorChannels",["hue","saturation","lightness"]);var Rp=TS,j2=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,kS=class au extends Tp{constructor(t,r,a,l){super(),this.hue=t,this.saturation=r,this.brightness=a,this.alpha=l}static parse(t){let r;if(r=t.match(j2)){const[a,l,c,u]=(r[1]??r[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new au(J1(a,360),Kt(l,0,100),Kt(c,0,100),Kt(u??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${qe(this.saturation,2)}%, ${qe(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${qe(this.saturation,2)}%, ${qe(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,r=this.brightness/100,a=r*(1-t/2);return t=a===0||a===1?0:(r-a)/Math.min(a,1-a),new Rp(qe(this.hue,2),qe(t*100,2),qe(a*100,2),qe(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,a=this.brightness/100,l=(c,u=(c+t/60)%6)=>a-r*a*Math.max(Math.min(u,4-u,1),0);return new kp(Math.round(l(5)*255),Math.round(l(3)*255),Math.round(l(1)*255),qe(this.alpha,2))}clone(){return new au(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,r){let a=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(l/=100),new Intl.NumberFormat(r,a).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return au.colorChannels}};Op(kS,"colorChannels",["hue","saturation","brightness"]);var Np=kS,U2="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",G2=e=>{const t=new Map,r=e.split(",");for(let a=0;a<r.length;a++){const[l,c]=r[a].split(":");t.set(l,`#${c}`),l.includes("gray")&&t.set(l.replace("gray","grey"),`#${c}`)}return t},I0=G2(U2),wu=e=>{if(I0.has(e))return wu(I0.get(e));const t=kp.parse(e)||Np.parse(e)||Rp.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(r,wu),r}return t};const W2=["top","right","bottom","left"],hi=Math.min,gn=Math.max,Ou=Math.round,Mc=Math.floor,tr=e=>({x:e,y:e}),q2={left:"right",right:"left",bottom:"top",top:"bottom"},Y2={start:"end",end:"start"};function Th(e,t,r){return gn(e,hi(t,r))}function Nr(e,t){return typeof e=="function"?e(t):e}function Ar(e){return e.split("-")[0]}function bo(e){return e.split("-")[1]}function Ap(e){return e==="x"?"y":"x"}function _p(e){return e==="y"?"height":"width"}const X2=new Set(["top","bottom"]);function Jn(e){return X2.has(Ar(e))?"y":"x"}function Ip(e){return Ap(Jn(e))}function K2(e,t,r){r===void 0&&(r=!1);const a=bo(e),l=Ip(e),c=_p(l);let u=l==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=Tu(u)),[u,Tu(u)]}function Q2(e){const t=Tu(e);return[kh(e),t,kh(t)]}function kh(e){return e.replace(/start|end/g,t=>Y2[t])}const z0=["left","right"],D0=["right","left"],Z2=["top","bottom"],J2=["bottom","top"];function eA(e,t,r){switch(e){case"top":case"bottom":return r?t?D0:z0:t?z0:D0;case"left":case"right":return t?Z2:J2;default:return[]}}function tA(e,t,r,a){const l=bo(e);let c=eA(Ar(e),r==="start",a);return l&&(c=c.map(u=>u+"-"+l),t&&(c=c.concat(c.map(kh)))),c}function Tu(e){return e.replace(/left|right|bottom|top/g,t=>q2[t])}function nA(e){return{top:0,right:0,bottom:0,left:0,...e}}function RS(e){return typeof e!="number"?nA(e):{top:e,right:e,bottom:e,left:e}}function ku(e){const{x:t,y:r,width:a,height:l}=e;return{width:a,height:l,top:r,left:t,right:t+a,bottom:r+l,x:t,y:r}}function P0(e,t,r){let{reference:a,floating:l}=e;const c=Jn(t),u=Ip(t),f=_p(u),h=Ar(t),p=c==="y",m=a.x+a.width/2-l.width/2,y=a.y+a.height/2-l.height/2,b=a[f]/2-l[f]/2;let x;switch(h){case"top":x={x:m,y:a.y-l.height};break;case"bottom":x={x:m,y:a.y+a.height};break;case"right":x={x:a.x+a.width,y};break;case"left":x={x:a.x-l.width,y};break;default:x={x:a.x,y:a.y}}switch(bo(t)){case"start":x[u]-=b*(r&&p?-1:1);break;case"end":x[u]+=b*(r&&p?-1:1);break}return x}const rA=async(e,t,r)=>{const{placement:a="bottom",strategy:l="absolute",middleware:c=[],platform:u}=r,f=c.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:l}),{x:m,y}=P0(p,a,h),b=a,x={},E=0;for(let C=0;C<f.length;C++){const{name:T,fn:k}=f[C],{x:O,y:N,data:z,reset:A}=await k({x:m,y,initialPlacement:a,placement:b,strategy:l,middlewareData:x,rects:p,platform:u,elements:{reference:e,floating:t}});m=O??m,y=N??y,x={...x,[T]:{...x[T],...z}},A&&E<=50&&(E++,typeof A=="object"&&(A.placement&&(b=A.placement),A.rects&&(p=A.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:l}):A.rects),{x:m,y}=P0(p,b,h)),C=-1)}return{x:m,y,placement:b,strategy:l,middlewareData:x}};async function rs(e,t){var r;t===void 0&&(t={});const{x:a,y:l,platform:c,rects:u,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=Nr(t,e),E=RS(x),T=f[b?y==="floating"?"reference":"floating":y],k=ku(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(T)))==null||r?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:p,rootBoundary:m,strategy:h})),O=y==="floating"?{x:a,y:l,width:u.floating.width,height:u.floating.height}:u.reference,N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),z=await(c.isElement==null?void 0:c.isElement(N))?await(c.getScale==null?void 0:c.getScale(N))||{x:1,y:1}:{x:1,y:1},A=ku(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:N,strategy:h}):O);return{top:(k.top-A.top+E.top)/z.y,bottom:(A.bottom-k.bottom+E.bottom)/z.y,left:(k.left-A.left+E.left)/z.x,right:(A.right-k.right+E.right)/z.x}}const iA=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:l,rects:c,platform:u,elements:f,middlewareData:h}=t,{element:p,padding:m=0}=Nr(e,t)||{};if(p==null)return{};const y=RS(m),b={x:r,y:a},x=Ip(l),E=_p(x),C=await u.getDimensions(p),T=x==="y",k=T?"top":"left",O=T?"bottom":"right",N=T?"clientHeight":"clientWidth",z=c.reference[E]+c.reference[x]-b[x]-c.floating[E],A=b[x]-c.reference[x],B=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let j=B?B[N]:0;(!j||!await(u.isElement==null?void 0:u.isElement(B)))&&(j=f.floating[N]||c.floating[E]);const q=z/2-A/2,X=j/2-C[E]/2-1,te=hi(y[k],X),K=hi(y[O],X),P=te,Z=j-C[E]-K,se=j/2-C[E]/2+q,oe=Th(P,se,Z),L=!h.arrow&&bo(l)!=null&&se!==oe&&c.reference[E]/2-(se<P?te:K)-C[E]/2<0,J=L?se<P?se-P:se-Z:0;return{[x]:b[x]+J,data:{[x]:oe,centerOffset:se-oe-J,...L&&{alignmentOffset:J}},reset:L}}}),aA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;const{placement:l,middlewareData:c,rects:u,initialPlacement:f,platform:h,elements:p}=t,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...T}=Nr(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const k=Ar(l),O=Jn(f),N=Ar(f)===f,z=await(h.isRTL==null?void 0:h.isRTL(p.floating)),A=b||(N||!C?[Tu(f)]:Q2(f)),B=E!=="none";!b&&B&&A.push(...tA(f,C,E,z));const j=[f,...A],q=await rs(t,T),X=[];let te=((a=c.flip)==null?void 0:a.overflows)||[];if(m&&X.push(q[k]),y){const se=K2(l,u,z);X.push(q[se[0]],q[se[1]])}if(te=[...te,{placement:l,overflows:X}],!X.every(se=>se<=0)){var K,P;const se=(((K=c.flip)==null?void 0:K.index)||0)+1,oe=j[se];if(oe&&(!(y==="alignment"?O!==Jn(oe):!1)||te.every(le=>Jn(le.placement)===O?le.overflows[0]>0:!0)))return{data:{index:se,overflows:te},reset:{placement:oe}};let L=(P=te.filter(J=>J.overflows[0]<=0).sort((J,le)=>J.overflows[1]-le.overflows[1])[0])==null?void 0:P.placement;if(!L)switch(x){case"bestFit":{var Z;const J=(Z=te.filter(le=>{if(B){const ie=Jn(le.placement);return ie===O||ie==="y"}return!0}).map(le=>[le.placement,le.overflows.filter(ie=>ie>0).reduce((ie,R)=>ie+R,0)]).sort((le,ie)=>le[1]-ie[1])[0])==null?void 0:Z[0];J&&(L=J);break}case"initialPlacement":L=f;break}if(l!==L)return{reset:{placement:L}}}return{}}}};function V0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function M0(e){return W2.some(t=>e[t]>=0)}const oA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:a="referenceHidden",...l}=Nr(e,t);switch(a){case"referenceHidden":{const c=await rs(t,{...l,elementContext:"reference"}),u=V0(c,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:M0(u)}}}case"escaped":{const c=await rs(t,{...l,altBoundary:!0}),u=V0(c,r.floating);return{data:{escapedOffsets:u,escaped:M0(u)}}}default:return{}}}}},NS=new Set(["left","top"]);async function lA(e,t){const{placement:r,platform:a,elements:l}=e,c=await(a.isRTL==null?void 0:a.isRTL(l.floating)),u=Ar(r),f=bo(r),h=Jn(r)==="y",p=NS.has(u)?-1:1,m=c&&h?-1:1,y=Nr(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof E=="number"&&(x=f==="end"?E*-1:E),h?{x:x*m,y:b*p}:{x:b*p,y:x*m}}const sA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:l,y:c,placement:u,middlewareData:f}=t,h=await lA(t,e);return u===((r=f.offset)==null?void 0:r.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:l+h.x,y:c+h.y,data:{...h,placement:u}}}}},cA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:l}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:T=>{let{x:k,y:O}=T;return{x:k,y:O}}},...h}=Nr(e,t),p={x:r,y:a},m=await rs(t,h),y=Jn(Ar(l)),b=Ap(y);let x=p[b],E=p[y];if(c){const T=b==="y"?"top":"left",k=b==="y"?"bottom":"right",O=x+m[T],N=x-m[k];x=Th(O,x,N)}if(u){const T=y==="y"?"top":"left",k=y==="y"?"bottom":"right",O=E+m[T],N=E-m[k];E=Th(O,E,N)}const C=f.fn({...t,[b]:x,[y]:E});return{...C,data:{x:C.x-r,y:C.y-a,enabled:{[b]:c,[y]:u}}}}}},uA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:l,rects:c,middlewareData:u}=t,{offset:f=0,mainAxis:h=!0,crossAxis:p=!0}=Nr(e,t),m={x:r,y:a},y=Jn(l),b=Ap(y);let x=m[b],E=m[y];const C=Nr(f,t),T=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(h){const N=b==="y"?"height":"width",z=c.reference[b]-c.floating[N]+T.mainAxis,A=c.reference[b]+c.reference[N]-T.mainAxis;x<z?x=z:x>A&&(x=A)}if(p){var k,O;const N=b==="y"?"width":"height",z=NS.has(Ar(l)),A=c.reference[y]-c.floating[N]+(z&&((k=u.offset)==null?void 0:k[y])||0)+(z?0:T.crossAxis),B=c.reference[y]+c.reference[N]+(z?0:((O=u.offset)==null?void 0:O[y])||0)-(z?T.crossAxis:0);E<A?E=A:E>B&&(E=B)}return{[b]:x,[y]:E}}}},dA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:l,rects:c,platform:u,elements:f}=t,{apply:h=()=>{},...p}=Nr(e,t),m=await rs(t,p),y=Ar(l),b=bo(l),x=Jn(l)==="y",{width:E,height:C}=c.floating;let T,k;y==="top"||y==="bottom"?(T=y,k=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(k=y,T=b==="end"?"top":"bottom");const O=C-m.top-m.bottom,N=E-m.left-m.right,z=hi(C-m[T],O),A=hi(E-m[k],N),B=!t.middlewareData.shift;let j=z,q=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(q=N),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(j=O),B&&!b){const te=gn(m.left,0),K=gn(m.right,0),P=gn(m.top,0),Z=gn(m.bottom,0);x?q=E-2*(te!==0||K!==0?te+K:gn(m.left,m.right)):j=C-2*(P!==0||Z!==0?P+Z:gn(m.top,m.bottom))}await h({...t,availableWidth:q,availableHeight:j});const X=await u.getDimensions(f.floating);return E!==X.width||C!==X.height?{reset:{rects:!0}}:{}}}};function ed(){return typeof window<"u"}function yo(e){return AS(e)?(e.nodeName||"").toLowerCase():"#document"}function mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function or(e){var t;return(t=(AS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function AS(e){return ed()?e instanceof Node||e instanceof mn(e).Node:!1}function $n(e){return ed()?e instanceof Element||e instanceof mn(e).Element:!1}function rr(e){return ed()?e instanceof HTMLElement||e instanceof mn(e).HTMLElement:!1}function L0(e){return!ed()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mn(e).ShadowRoot}const fA=new Set(["inline","contents"]);function gs(e){const{overflow:t,overflowX:r,overflowY:a,display:l}=Fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!fA.has(l)}const gA=new Set(["table","td","th"]);function hA(e){return gA.has(yo(e))}const pA=[":popover-open",":modal"];function td(e){return pA.some(t=>{try{return e.matches(t)}catch{return!1}})}const mA=["transform","translate","scale","rotate","perspective"],vA=["transform","translate","scale","rotate","perspective","filter"],bA=["paint","layout","strict","content"];function zp(e){const t=Dp(),r=$n(e)?Fn(e):e;return mA.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||vA.some(a=>(r.willChange||"").includes(a))||bA.some(a=>(r.contain||"").includes(a))}function yA(e){let t=pi(e);for(;rr(t)&&!co(t);){if(zp(t))return t;if(td(t))return null;t=pi(t)}return null}function Dp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xA=new Set(["html","body","#document"]);function co(e){return xA.has(yo(e))}function Fn(e){return mn(e).getComputedStyle(e)}function nd(e){return $n(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pi(e){if(yo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||L0(e)&&e.host||or(e);return L0(t)?t.host:t}function _S(e){const t=pi(e);return co(t)?e.ownerDocument?e.ownerDocument.body:e.body:rr(t)&&gs(t)?t:_S(t)}function is(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const l=_S(e),c=l===((a=e.ownerDocument)==null?void 0:a.body),u=mn(l);if(c){const f=Rh(u);return t.concat(u,u.visualViewport||[],gs(l)?l:[],f&&r?is(f):[])}return t.concat(l,is(l,[],r))}function Rh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function IS(e){const t=Fn(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const l=rr(e),c=l?e.offsetWidth:r,u=l?e.offsetHeight:a,f=Ou(r)!==c||Ou(a)!==u;return f&&(r=c,a=u),{width:r,height:a,$:f}}function Pp(e){return $n(e)?e:e.contextElement}function io(e){const t=Pp(e);if(!rr(t))return tr(1);const r=t.getBoundingClientRect(),{width:a,height:l,$:c}=IS(t);let u=(c?Ou(r.width):r.width)/a,f=(c?Ou(r.height):r.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const SA=tr(0);function zS(e){const t=mn(e);return!Dp()||!t.visualViewport?SA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function EA(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==mn(e)?!1:t}function Yi(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),c=Pp(e);let u=tr(1);t&&(a?$n(a)&&(u=io(a)):u=io(e));const f=EA(c,r,a)?zS(c):tr(0);let h=(l.left+f.x)/u.x,p=(l.top+f.y)/u.y,m=l.width/u.x,y=l.height/u.y;if(c){const b=mn(c),x=a&&$n(a)?mn(a):a;let E=b,C=Rh(E);for(;C&&a&&x!==E;){const T=io(C),k=C.getBoundingClientRect(),O=Fn(C),N=k.left+(C.clientLeft+parseFloat(O.paddingLeft))*T.x,z=k.top+(C.clientTop+parseFloat(O.paddingTop))*T.y;h*=T.x,p*=T.y,m*=T.x,y*=T.y,h+=N,p+=z,E=mn(C),C=Rh(E)}}return ku({width:m,height:y,x:h,y:p})}function rd(e,t){const r=nd(e).scrollLeft;return t?t.left+r:Yi(or(e)).left+r}function DS(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-rd(e,r),l=r.top+t.scrollTop;return{x:a,y:l}}function CA(e){let{elements:t,rect:r,offsetParent:a,strategy:l}=e;const c=l==="fixed",u=or(a),f=t?td(t.floating):!1;if(a===u||f&&c)return r;let h={scrollLeft:0,scrollTop:0},p=tr(1);const m=tr(0),y=rr(a);if((y||!y&&!c)&&((yo(a)!=="body"||gs(u))&&(h=nd(a)),rr(a))){const x=Yi(a);p=io(a),m.x=x.x+a.clientLeft,m.y=x.y+a.clientTop}const b=u&&!y&&!c?DS(u,h):tr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-h.scrollLeft*p.x+m.x+b.x,y:r.y*p.y-h.scrollTop*p.y+m.y+b.y}}function wA(e){return Array.from(e.getClientRects())}function OA(e){const t=or(e),r=nd(e),a=e.ownerDocument.body,l=gn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),c=gn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let u=-r.scrollLeft+rd(e);const f=-r.scrollTop;return Fn(a).direction==="rtl"&&(u+=gn(t.clientWidth,a.clientWidth)-l),{width:l,height:c,x:u,y:f}}const B0=25;function TA(e,t){const r=mn(e),a=or(e),l=r.visualViewport;let c=a.clientWidth,u=a.clientHeight,f=0,h=0;if(l){c=l.width,u=l.height;const m=Dp();(!m||m&&t==="fixed")&&(f=l.offsetLeft,h=l.offsetTop)}const p=rd(a);if(p<=0){const m=a.ownerDocument,y=m.body,b=getComputedStyle(y),x=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(a.clientWidth-y.clientWidth-x);E<=B0&&(c-=E)}else p<=B0&&(c+=p);return{width:c,height:u,x:f,y:h}}const kA=new Set(["absolute","fixed"]);function RA(e,t){const r=Yi(e,!0,t==="fixed"),a=r.top+e.clientTop,l=r.left+e.clientLeft,c=rr(e)?io(e):tr(1),u=e.clientWidth*c.x,f=e.clientHeight*c.y,h=l*c.x,p=a*c.y;return{width:u,height:f,x:h,y:p}}function H0(e,t,r){let a;if(t==="viewport")a=TA(e,r);else if(t==="document")a=OA(or(e));else if($n(t))a=RA(t,r);else{const l=zS(e);a={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return ku(a)}function PS(e,t){const r=pi(e);return r===t||!$n(r)||co(r)?!1:Fn(r).position==="fixed"||PS(r,t)}function NA(e,t){const r=t.get(e);if(r)return r;let a=is(e,[],!1).filter(f=>$n(f)&&yo(f)!=="body"),l=null;const c=Fn(e).position==="fixed";let u=c?pi(e):e;for(;$n(u)&&!co(u);){const f=Fn(u),h=zp(u);!h&&f.position==="fixed"&&(l=null),(c?!h&&!l:!h&&f.position==="static"&&!!l&&kA.has(l.position)||gs(u)&&!h&&PS(e,u))?a=a.filter(m=>m!==u):l=f,u=pi(u)}return t.set(e,a),a}function AA(e){let{element:t,boundary:r,rootBoundary:a,strategy:l}=e;const u=[...r==="clippingAncestors"?td(t)?[]:NA(t,this._c):[].concat(r),a],f=u[0],h=u.reduce((p,m)=>{const y=H0(t,m,l);return p.top=gn(y.top,p.top),p.right=hi(y.right,p.right),p.bottom=hi(y.bottom,p.bottom),p.left=gn(y.left,p.left),p},H0(t,f,l));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function _A(e){const{width:t,height:r}=IS(e);return{width:t,height:r}}function IA(e,t,r){const a=rr(t),l=or(t),c=r==="fixed",u=Yi(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const h=tr(0);function p(){h.x=rd(l)}if(a||!a&&!c)if((yo(t)!=="body"||gs(l))&&(f=nd(t)),a){const x=Yi(t,!0,c,t);h.x=x.x+t.clientLeft,h.y=x.y+t.clientTop}else l&&p();c&&!a&&l&&p();const m=l&&!a&&!c?DS(l,f):tr(0),y=u.left+f.scrollLeft-h.x-m.x,b=u.top+f.scrollTop-h.y-m.y;return{x:y,y:b,width:u.width,height:u.height}}function Qg(e){return Fn(e).position==="static"}function $0(e,t){if(!rr(e)||Fn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return or(e)===r&&(r=r.ownerDocument.body),r}function VS(e,t){const r=mn(e);if(td(e))return r;if(!rr(e)){let l=pi(e);for(;l&&!co(l);){if($n(l)&&!Qg(l))return l;l=pi(l)}return r}let a=$0(e,t);for(;a&&hA(a)&&Qg(a);)a=$0(a,t);return a&&co(a)&&Qg(a)&&!zp(a)?r:a||yA(e)||r}const zA=async function(e){const t=this.getOffsetParent||VS,r=this.getDimensions,a=await r(e.floating);return{reference:IA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function DA(e){return Fn(e).direction==="rtl"}const PA={convertOffsetParentRelativeRectToViewportRelativeRect:CA,getDocumentElement:or,getClippingRect:AA,getOffsetParent:VS,getElementRects:zA,getClientRects:wA,getDimensions:_A,getScale:io,isElement:$n,isRTL:DA};function MS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function VA(e,t){let r=null,a;const l=or(e);function c(){var f;clearTimeout(a),(f=r)==null||f.disconnect(),r=null}function u(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),c();const p=e.getBoundingClientRect(),{left:m,top:y,width:b,height:x}=p;if(f||t(),!b||!x)return;const E=Mc(y),C=Mc(l.clientWidth-(m+b)),T=Mc(l.clientHeight-(y+x)),k=Mc(m),N={rootMargin:-E+"px "+-C+"px "+-T+"px "+-k+"px",threshold:gn(0,hi(1,h))||1};let z=!0;function A(B){const j=B[0].intersectionRatio;if(j!==h){if(!z)return u();j?u(!1,j):a=setTimeout(()=>{u(!1,1e-7)},1e3)}j===1&&!MS(p,e.getBoundingClientRect())&&u(),z=!1}try{r=new IntersectionObserver(A,{...N,root:l.ownerDocument})}catch{r=new IntersectionObserver(A,N)}r.observe(e)}return u(!0),c}function MA(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,p=Pp(e),m=l||c?[...p?is(p):[],...is(t)]:[];m.forEach(k=>{l&&k.addEventListener("scroll",r,{passive:!0}),c&&k.addEventListener("resize",r)});const y=p&&f?VA(p,r):null;let b=-1,x=null;u&&(x=new ResizeObserver(k=>{let[O]=k;O&&O.target===p&&x&&(x.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=x)==null||N.observe(t)})),r()}),p&&!h&&x.observe(p),x.observe(t));let E,C=h?Yi(e):null;h&&T();function T(){const k=Yi(e);C&&!MS(C,k)&&r(),C=k,E=requestAnimationFrame(T)}return r(),()=>{var k;m.forEach(O=>{l&&O.removeEventListener("scroll",r),c&&O.removeEventListener("resize",r)}),y?.(),(k=x)==null||k.disconnect(),x=null,h&&cancelAnimationFrame(E)}}const LA=sA,BA=cA,HA=aA,$A=dA,FA=oA,jA=iA,UA=uA,GA=(e,t,r)=>{const a=new Map,l={platform:PA,...r},c={...l.platform,_c:a};return rA(e,t,{...l,platform:c})};function F0(e=0,t=0,r=0,a=0){if(typeof DOMRect=="function")return new DOMRect(e,t,r,a);const l={x:e,y:t,width:r,height:a,top:t,right:e+r,bottom:t+a,left:e};return{...l,toJSON:()=>l}}function WA(e){if(!e)return F0();const{x:t,y:r,width:a,height:l}=e;return F0(t,r,a,l)}function qA(e,t){return{contextElement:Ht(e)?e:void 0,getBoundingClientRect:()=>{const r=e,a=t?.(r);return a||!r?WA(a):r.getBoundingClientRect()}}}var _l=e=>({variable:e,reference:`var(${e})`}),Tr={arrowSize:_l("--arrow-size"),arrowSizeHalf:_l("--arrow-size-half"),arrowBg:_l("--arrow-background"),transformOrigin:_l("--transform-origin"),arrowOffset:_l("--arrow-offset")},YA=e=>e==="top"||e==="bottom"?"y":"x";function XA(e,t){return{name:"transformOrigin",fn(r){const{elements:a,middlewareData:l,placement:c,rects:u,y:f}=r,h=c.split("-")[0],p=YA(h),m=l.arrow?.x||0,y=l.arrow?.y||0,b=t?.clientWidth||0,x=t?.clientHeight||0,E=m+b/2,C=y+x/2,T=Math.abs(l.shift?.y||0),k=u.reference.height/2,O=x/2,N=e.offset?.mainAxis??e.gutter,z=typeof N=="number"?N+O:N??O,A=T>z,B={top:`${E}px calc(100% + ${z}px)`,bottom:`${E}px ${-z}px`,left:`calc(100% + ${z}px) ${C}px`,right:`${-z}px ${C}px`}[h],j=`${E}px ${u.reference.y+k-f}px`,q=!!e.overlap&&p==="y"&&A;return a.floating.style.setProperty(Tr.transformOrigin.variable,q?j:B),{data:{transformOrigin:q?j:B}}}}}var KA={name:"rects",fn({rects:e}){return{data:e}}},QA=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:a,y:l}=r.arrow,c=t.split("-")[0];return Object.assign(e.style,{left:a!=null?`${a}px`:"",top:l!=null?`${l}px`:"",[c]:`calc(100% + ${Tr.arrowOffset.reference})`}),{}}}};function ZA(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function JA(e){return e.split("-")[0]}var e_={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function j0(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function Vp(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function t_(e,t,r){const a=e||t.createElement("div");return jA({element:a,padding:r.arrowPadding})}function n_(e,t){if(!LR(t.offset??t.gutter))return LA(({placement:r})=>{const a=(e?.clientHeight||0)/2,l=t.offset?.mainAxis??t.gutter,c=typeof l=="number"?l+a:l??a,{hasAlign:u}=ZA(r),f=u?void 0:t.shift,h=t.offset?.crossAxis??f;return Uu({crossAxis:h,mainAxis:c,alignmentAxis:t.shift})})}function r_(e){if(!e.flip)return;const t=Vp(e.boundary);return HA({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function i_(e){if(!e.slide&&!e.overlap)return;const t=Vp(e.boundary);return BA({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:UA()})}function a_(e){return $A({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:a,availableWidth:l}){const c=t.floating,u=Math.round(r.reference.width),f=Math.round(r.reference.height);l=Math.floor(l),a=Math.floor(a),c.style.setProperty("--reference-width",`${u}px`),c.style.setProperty("--reference-height",`${f}px`),c.style.setProperty("--available-width",`${l}px`),c.style.setProperty("--available-height",`${a}px`)}})}function o_(e){if(e.hideWhenDetached)return FA({strategy:"referenceHidden",boundary:Vp(e.boundary)??"clippingAncestors"})}function l_(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function s_(e,t,r={}){const a=qA(e,r.getAnchorRect);if(!t||!a)return;const l=Object.assign({},e_,r),c=t.querySelector("[data-part=arrow]"),u=[n_(c,l),r_(l),i_(l),t_(c,t.ownerDocument,l),QA(c),XA({gutter:l.gutter,offset:l.offset,overlap:l.overlap},c),a_(l),o_(l),KA],{placement:f,strategy:h,onComplete:p,onPositioned:m}=l,y=async()=>{if(!a||!t)return;const C=await GA(a,t,{placement:f,middleware:u,strategy:h});p?.(C),m?.({placed:!0});const T=zt(t),k=j0(T,C.x),O=j0(T,C.y);t.style.setProperty("--x",`${k}px`),t.style.setProperty("--y",`${O}px`),l.hideWhenDetached&&(C.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const N=t.firstElementChild;if(N){const z=lS(N);t.style.setProperty("--z-index",z.zIndex)}},b=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:y,floatingElement:t}),m?.({placed:!0})):await y()},x=l_(l.listeners),E=l.listeners?MA(a,t,b,x):WR;return b(),()=>{E?.(),m?.({placed:!1})}}function bn(e,t,r={}){const{defer:a,...l}=r,c=a?xe:f=>f(),u=[];return u.push(c(()=>{const f=typeof e=="function"?e():e,h=typeof t=="function"?t():t;u.push(s_(f,h,l))})),()=>{u.forEach(f=>f?.())}}var c_={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function u_(e={}){const{placement:t,sameWidth:r,fitViewport:a,strategy:l="absolute"}=e;return{arrow:{position:"absolute",width:Tr.arrowSize.reference,height:Tr.arrowSize.reference,[Tr.arrowSizeHalf.variable]:`calc(${Tr.arrowSize.reference} / 2)`,[Tr.arrowOffset.variable]:`calc(${Tr.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?c_[t.split("-")[0]]:void 0,background:Tr.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:l,isolation:"isolate",minWidth:r?void 0:"max-content",width:r?"var(--reference-width)":void 0,maxWidth:a?"var(--available-width)":void 0,maxHeight:a?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}function d_(e){const t={each(r){for(let a=0;a<e.frames?.length;a+=1){const l=e.frames[a];l&&r(l)}},addEventListener(r,a,l){return t.each(c=>{try{c.document.addEventListener(r,a,l)}catch{}}),()=>{try{t.removeEventListener(r,a,l)}catch{}}},removeEventListener(r,a,l){t.each(c=>{try{c.document.removeEventListener(r,a,l)}catch{}})}};return t}function f_(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,a,l)=>{try{t?.addEventListener(r,a,l)}catch{}return()=>{try{t?.removeEventListener(r,a,l)}catch{}}},removeEventListener:(r,a,l)=>{try{t?.removeEventListener(r,a,l)}catch{}}}}var U0="pointerdown.outside",G0="focus.outside";function g_(e){for(const t of e)if(Ht(t)&&fi(t))return!0;return!1}var LS=e=>"clientY"in e;function h_(e,t){if(!LS(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function p_(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function W0(e,t){if(!t||!LS(e))return!1;const r=t.scrollHeight>t.clientHeight,a=r&&e.clientX>t.offsetLeft+t.clientWidth,l=t.scrollWidth>t.clientWidth,c=l&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(l?16:0)},f={x:e.clientX,y:e.clientY};return p_(u,f)?a||c:!1}function m_(e,t){const{exclude:r,onFocusOutside:a,onPointerDownOutside:l,onInteractOutside:c,defer:u}=t;if(!e)return;const f=yn(e),h=zt(e),p=d_(h),m=f_(h);function y(O,N){if(!Ht(N)||!N.isConnected||di(e,N)||h_(e,O))return!1;const z=f.querySelector(`[aria-controls="${e.id}"]`);if(z){const B=yu(z);if(W0(O,B))return!1}const A=yu(e);return W0(O,A)?!1:!r?.(N)}const b=new Set,x=so(e?.getRootNode());function E(O){function N(z){const A=u&&!R0()?xe:q=>q(),B=z??O,j=B?.composedPath?.()??[B?.target];A(()=>{const q=x?j[0]:hn(O);if(!(!e||!y(O,q))){if(l||c){const X=bu(l,c);e.addEventListener(U0,X,{once:!0})}q0(e,U0,{bubbles:!1,cancelable:!0,detail:{originalEvent:B,contextmenu:DN(B),focusable:g_(j),target:q}})}})}O.pointerType==="touch"?(b.forEach(z=>z()),b.add(Ye(f,"click",N,{once:!0})),b.add(m.addEventListener("click",N,{once:!0})),b.add(p.addEventListener("click",N,{once:!0}))):N()}const C=new Set,T=setTimeout(()=>{C.add(Ye(f,"pointerdown",E,!0)),C.add(m.addEventListener("pointerdown",E,!0)),C.add(p.addEventListener("pointerdown",E,!0))},0);function k(O){(u?xe:z=>z())(()=>{const z=hn(O);if(!(!e||!y(O,z))){if(a||c){const A=bu(a,c);e.addEventListener(G0,A,{once:!0})}q0(e,G0,{bubbles:!1,cancelable:!0,detail:{originalEvent:O,contextmenu:!1,focusable:fi(z),target:z}})}})}return R0()||(C.add(Ye(f,"focusin",k,!0)),C.add(m.addEventListener("focusin",k,!0)),C.add(p.addEventListener("focusin",k,!0))),()=>{clearTimeout(T),b.forEach(O=>O()),C.forEach(O=>O())}}function v_(e,t){const{defer:r}=t,a=r?xe:c=>c(),l=[];return l.push(a(()=>{const c=typeof e=="function"?e():e;l.push(m_(c,t))})),()=>{l.forEach(c=>c?.())}}function q0(e,t,r){const a=e.ownerDocument.defaultView||window,l=new a.CustomEvent(t,r);return e.dispatchEvent(l)}function b_(e,t){const r=a=>{a.key==="Escape"&&(a.isComposing||t?.(a))};return Ye(yn(e),"keydown",r,{capture:!0})}var Y0="layer:request-dismiss",Yt={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<r},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>di(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>di(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(a=>Yt.dismiss(a.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const r=this.indexOf(e);if(r===-1)return;const a=this.layers[r];x_(e,Y0,l=>{a.requestDismiss?.(l),l.defaultPrevented||a?.dismiss()}),y_(e,Y0,{originalLayer:e,targetLayer:t,originalIndex:r,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function y_(e,t,r){const a=e.ownerDocument.defaultView||window,l=new a.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:r});return e.dispatchEvent(l)}function x_(e,t,r){e.addEventListener(t,r,{once:!0})}var X0;function K0(){Yt.layers.forEach(({node:e})=>{e.style.pointerEvents=Yt.isBelowPointerBlockingLayer(e)?"none":"auto"})}function S_(e){e.style.pointerEvents=""}function E_(e,t){const r=yn(e),a=[];return Yt.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(X0=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t?.forEach(l=>{const[c,u]=b2(()=>{const f=l();return Ht(f)?f:null},{timeout:1e3});c.then(f=>a.push(Eu(f,{pointerEvents:"auto"}))),a.push(u)}),()=>{Yt.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=X0,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),a.forEach(l=>l()))}}function C_(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){lo("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:a,onRequestDismiss:l,pointerBlocking:c,exclude:u,debug:f}=t,h={dismiss:a,node:e,pointerBlocking:c,requestDismiss:l};Yt.add(h),K0();function p(E){const C=hn(E.detail.originalEvent);Yt.isBelowPointerBlockingLayer(e)||Yt.isInBranch(C)||(t.onPointerDownOutside?.(E),t.onInteractOutside?.(E),!E.defaultPrevented&&(f&&console.log("onPointerDownOutside:",E.detail.originalEvent),a?.()))}function m(E){const C=hn(E.detail.originalEvent);Yt.isInBranch(C)||(t.onFocusOutside?.(E),t.onInteractOutside?.(E),!E.defaultPrevented&&(f&&console.log("onFocusOutside:",E.detail.originalEvent),a?.()))}function y(E){Yt.isTopMost(e)&&(t.onEscapeKeyDown?.(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))}function b(E){if(!e)return!1;const C=typeof u=="function"?u():u,T=Array.isArray(C)?C:[C],k=t.persistentElements?.map(O=>O()).filter(Ht);return k&&T.push(...k),T.some(O=>di(O,E))||Yt.isInNestedLayer(e,E)}const x=[c?E_(e,t.persistentElements):void 0,b_(e,y),v_(e,{exclude:b,onFocusOutside:m,onPointerDownOutside:p,defer:t.defer})];return()=>{Yt.remove(e),K0(),S_(e),x.forEach(E=>E?.())}}function xo(e,t){const{defer:r}=t,a=r?xe:c=>c(),l=[];return l.push(a(()=>{const c=ci(e)?e():e;l.push(C_(c,t))})),()=>{l.forEach(c=>c?.())}}function w_(e,t={}){const{defer:r}=t,a=r?xe:c=>c(),l=[];return l.push(a(()=>{const c=ci(e)?e():e;if(!c){lo("[@zag-js/dismissable] branch node is `null` or `undefined`");return}Yt.addBranch(c),l.push(()=>{Yt.removeBranch(c)})})),()=>{l.forEach(c=>c?.())}}var BS=ge("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);BS.build();var O_=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,T_=e=>e.ids?.control??`color-picker:${e.id}:control`,k_=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,R_=e=>e.ids?.content??`color-picker:${e.id}:content`,N_=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,A_=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,__=e=>e.ids?.area??`color-picker:${e.id}:area`,I_=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,z_=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,D_=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,ou=e=>e.getById(R_(e)),P_=e=>e.getById(I_(e)),V_=(e,t)=>e.getById(D_(e,t)),M_=e=>e.getById(A_(e)),Q0=e=>e.getById(O_(e)),L_=e=>e.getById(__(e)),B_=(e,t,r)=>{const a=L_(e);if(!a)return;const{getPercentValue:l}=gS(t,a);return{x:l({dir:r,orientation:"horizontal"}),y:l({orientation:"vertical"})}},H_=e=>e.getById(T_(e)),Zg=e=>e.getById(k_(e)),$_=e=>e.getById(N_(e)),F_=(e,t)=>e.getById(z_(e,t)),j_=(e,t,r,a)=>{const l=F_(e,r);if(!l)return;const{getPercentValue:c}=gS(t,l);return{x:c({dir:a,orientation:"horizontal"}),y:c({orientation:"vertical"})}},U_=e=>[...Su(ou(e),"input[data-channel]"),...Su(H_(e),"input[data-channel]")];function G_(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const r=e.getFormat()==="hsla";switch(t){case"hue":return r?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return r?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Z0=e=>wu(e),W_=/^[0-9a-fA-F]{3,8}$/;function q_(e){return W_.test(e)}function Y_(e){return e.startsWith("#")?e:q_(e)?`#${e}`:e}var{and:X_}=Ir();X_("isOpenControlled","closeOnSelect");function J0(e,t,r){const a=U_(e);xe(()=>{a.forEach(l=>{const c=l.dataset.channel;Ku(l,G_(r||t,c))})})}function K_(e,t){const r=M_(e);r&&xe(()=>Ku(r,t))}he()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);he()(["xChannel","yChannel"]);he()(["channel","orientation"]);he()(["value","disabled"]);he()(["value","respectAlpha"]);he()(["size"]);var HS=ge("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");HS.build();var $S=e=>e.ids?.root??`accordion:${e.id}`,FS=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,Q_=e=>e.getById($S(e)),id=e=>{const r=`[aria-controls][data-ownedby='${CSS.escape($S(e))}']:not([disabled])`;return Su(Q_(e),r)},Z_=e=>ql(id(e)),J_=e=>gp(id(e)),eI=(e,t)=>s2(id(e),FS(e,t)),tI=(e,t)=>c2(id(e),FS(e,t)),{and:nI,not:rI}=Ir();nI("isExpanded","canToggle"),rI("isExpanded");he()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);he()(["value","disabled"]);var Fl=(e,t)=>({x:e,y:t});function iI(e){const{x:t,y:r,width:a,height:l}=e,c=t+a/2,u=r+l/2;return{x:t,y:r,width:a,height:l,minX:t,minY:r,maxX:t+a,maxY:r+l,midX:c,midY:u,center:Fl(c,u)}}function aI(e){const t=Fl(e.minX,e.minY),r=Fl(e.maxX,e.minY),a=Fl(e.maxX,e.maxY),l=Fl(e.minX,e.maxY);return{top:t,right:r,bottom:a,left:l}}function oI(e,t){const r=iI(e),{top:a,right:l,left:c,bottom:u}=aI(r),[f]=t.split("-");return{top:[c,a,l,u],right:[a,l,u,c],bottom:[a,c,u,l],left:[l,a,c,u]}[f]}function lI(e,t){const{x:r,y:a}=t;let l=!1;for(let c=0,u=e.length-1;c<e.length;u=c++){const f=e[c].x,h=e[c].y,p=e[u].x,m=e[u].y;h>a!=m>a&&r<(p-f)*(a-h)/(m-h)+f&&(l=!l)}return l}var jS=ge("avatar").parts("root","image","fallback");jS.build();he()(["dir","id","ids","onStatusChange","getRootNode"]);function sI(e){return!(e.metaKey||!Xu()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var cI=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function uI(e,t,r){const a=r?hn(r):null,l=zt(a);return e=e||a instanceof l.HTMLInputElement&&!cI.has(a?.type)||a instanceof l.HTMLTextAreaElement||a instanceof l.HTMLElement&&a.isContentEditable,!(e&&t==="keyboard"&&r instanceof l.KeyboardEvent&&!Reflect.has(dI,r.key))}var Ki=null,Nh=new Set,Yl=new Map,Xi=!1,Ah=!1,dI={Tab:!0,Escape:!0};function ad(e,t){for(let r of Nh)r(e,t)}function Ru(e){Xi=!0,sI(e)&&(Ki="keyboard",ad("keyboard",e))}function In(e){Ki="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Xi=!0,ad("pointer",e))}function US(e){IN(e)&&(Xi=!0,Ki="virtual")}function GS(e){const t=hn(e);t===zt(t)||t===yn(t)||(!Xi&&!Ah&&(Ki="virtual",ad("virtual",e)),Xi=!1,Ah=!1)}function WS(){Xi=!1,Ah=!0}function fI(e){if(typeof window>"u"||Yl.get(zt(e)))return;const t=zt(e),r=yn(e);let a=t.HTMLElement.prototype.focus;function l(){Ki="virtual",ad("virtual",null),Xi=!0,a.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:l}),r.addEventListener("keydown",Ru,!0),r.addEventListener("keyup",Ru,!0),r.addEventListener("click",US,!0),t.addEventListener("focus",GS,!0),t.addEventListener("blur",WS,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",In,!0),r.addEventListener("pointermove",In,!0),r.addEventListener("pointerup",In,!0)):(r.addEventListener("mousedown",In,!0),r.addEventListener("mousemove",In,!0),r.addEventListener("mouseup",In,!0)),t.addEventListener("beforeunload",()=>{gI(e)},{once:!0}),Yl.set(t,{focus:a})}var gI=(e,t)=>{const r=zt(e),a=yn(e);Yl.has(r)&&(r.HTMLElement.prototype.focus=Yl.get(r).focus,a.removeEventListener("keydown",Ru,!0),a.removeEventListener("keyup",Ru,!0),a.removeEventListener("click",US,!0),r.removeEventListener("focus",GS,!0),r.removeEventListener("blur",WS,!1),typeof r.PointerEvent<"u"?(a.removeEventListener("pointerdown",In,!0),a.removeEventListener("pointermove",In,!0),a.removeEventListener("pointerup",In,!0)):(a.removeEventListener("mousedown",In,!0),a.removeEventListener("mousemove",In,!0),a.removeEventListener("mouseup",In,!0)),Yl.delete(r))};function ex(){return Ki==="keyboard"}function hI(e={}){const{isTextInput:t,autoFocus:r,onChange:a,root:l}=e;fI(l),a?.({isFocusVisible:r||ex(),modality:Ki});const c=(u,f)=>{uI(!!t,u,f)&&a?.({isFocusVisible:ex(),modality:u})};return Nh.add(c),()=>{Nh.delete(c)}}var qS=ge("checkbox").parts("root","label","control","indicator");qS.build();he()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const pI=qS.extendWith("group");var YS=ge("clipboard").parts("root","control","trigger","indicator","input","label");YS.build();he()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);he()(["copied"]);const mI=BS.extendWith("view");var vI=Object.defineProperty,bI=(e,t,r)=>t in e?vI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ne=(e,t,r)=>bI(e,typeof t!="symbol"?t+"":t,r),lu={itemToValue(e){return typeof e=="string"?e:Ui(e)&&ui(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Ui(e)&&ui(e,"label")?e.label:lu.itemToValue(e)},isItemDisabled(e){return Ui(e)&&ui(e,"disabled")?!!e.disabled:!1}},od=class XS{constructor(t){this.options=t,ne(this,"items"),ne(this,"indexMap",null),ne(this,"copy",r=>new XS({...this.options,items:r??[...this.items]})),ne(this,"isEqual",r=>Bn(this.items,r.items)),ne(this,"setItems",r=>this.copy(r)),ne(this,"getValues",(r=this.items)=>{const a=[];for(const l of r){const c=this.getItemValue(l);c!=null&&a.push(c)}return a}),ne(this,"find",r=>{if(r==null)return null;const a=this.indexOf(r);return a!==-1?this.at(a):null}),ne(this,"findMany",r=>{const a=[];for(const l of r){const c=this.find(l);c!=null&&a.push(c)}return a}),ne(this,"at",r=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[r]??null;let a=0;const l=this.group();for(const[,c]of l)for(const u of c){if(a===r)return u;a++}return null}),ne(this,"sortFn",(r,a)=>{const l=this.indexOf(r),c=this.indexOf(a);return(l??0)-(c??0)}),ne(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),ne(this,"getItemValue",r=>r==null?null:this.options.itemToValue?.(r)??lu.itemToValue(r)),ne(this,"getItemDisabled",r=>r==null?!1:this.options.isItemDisabled?.(r)??lu.isItemDisabled(r)),ne(this,"stringifyItem",r=>r==null?null:this.options.itemToString?.(r)??lu.itemToString(r)),ne(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),ne(this,"stringifyItems",(r,a=", ")=>{const l=[];for(const c of r){const u=this.stringifyItem(c);u!=null&&l.push(u)}return l.join(a)}),ne(this,"stringifyMany",(r,a)=>this.stringifyItems(this.findMany(r),a)),ne(this,"has",r=>this.indexOf(r)!==-1),ne(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),ne(this,"group",()=>{const{groupBy:r,groupSort:a}=this.options;if(!r)return[["",[...this.items]]];const l=new Map;this.items.forEach((u,f)=>{const h=r(u,f);l.has(h)||l.set(h,[]),l.get(h).push(u)});let c=Array.from(l.entries());return a&&c.sort(([u],[f])=>{if(typeof a=="function")return a(u,f);if(Array.isArray(a)){const h=a.indexOf(u),p=a.indexOf(f);return h===-1?1:p===-1?-1:h-p}return a==="asc"?u.localeCompare(f):a==="desc"?f.localeCompare(u):0}),c}),ne(this,"getNextValue",(r,a=1,l=!1)=>{let c=this.indexOf(r);if(c===-1)return null;for(c=l?Math.min(c+a,this.size-1):c+a;c<=this.size&&this.getItemDisabled(this.at(c));)c++;return this.getItemValue(this.at(c))}),ne(this,"getPreviousValue",(r,a=1,l=!1)=>{let c=this.indexOf(r);if(c===-1)return null;for(c=l?Math.max(c-a,0):c-a;c>=0&&this.getItemDisabled(this.at(c));)c--;return this.getItemValue(this.at(c))}),ne(this,"indexOf",r=>{if(r==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(a=>this.getItemValue(a)===r);if(!this.indexMap){this.indexMap=new Map;let a=0;const l=this.group();for(const[,c]of l)for(const u of c){const f=this.getItemValue(u);f!=null&&this.indexMap.set(f,a),a++}}return this.indexMap.get(r)??-1}),ne(this,"getByText",(r,a)=>{const l=a!=null?this.indexOf(a):-1,c=r.length===1;for(let u=0;u<this.items.length;u++){const f=this.items[(l+u+1)%this.items.length];if(!(c&&this.getItemValue(f)===a)&&!this.getItemDisabled(f)&&yI(this.stringifyItem(f),r))return f}}),ne(this,"search",(r,a)=>{const{state:l,currentValue:c,timeout:u=350}=a,f=l.keysSoFar+r,p=f.length>1&&Array.from(f).every(E=>E===f[0])?f[0]:f,m=this.getByText(p,c),y=this.getItemValue(m);function b(){clearTimeout(l.timer),l.timer=-1}function x(E){l.keysSoFar=E,b(),E!==""&&(l.timer=+setTimeout(()=>{x(""),b()},u))}return x(f),y}),ne(this,"update",(r,a)=>{let l=this.indexOf(r);return l===-1?this:this.copy([...this.items.slice(0,l),a,...this.items.slice(l+1)])}),ne(this,"upsert",(r,a,l="append")=>{let c=this.indexOf(r);return c===-1?(l==="append"?this.append:this.prepend)(a):this.copy([...this.items.slice(0,c),a,...this.items.slice(c+1)])}),ne(this,"insert",(r,...a)=>this.copy(Il(this.items,r,...a))),ne(this,"insertBefore",(r,...a)=>{let l=this.indexOf(r);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(Il(this.items,l,...a))}),ne(this,"insertAfter",(r,...a)=>{let l=this.indexOf(r);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(Il(this.items,l+1,...a))}),ne(this,"prepend",(...r)=>this.copy(Il(this.items,0,...r))),ne(this,"append",(...r)=>this.copy(Il(this.items,this.items.length,...r))),ne(this,"filter",r=>{const a=this.items.filter((l,c)=>r(this.stringifyItem(l),c,l));return this.copy(a)}),ne(this,"remove",(...r)=>{const a=r.map(l=>typeof l=="string"?l:this.getItemValue(l));return this.copy(this.items.filter(l=>{const c=this.getItemValue(l);return c==null?!1:!a.includes(c)}))}),ne(this,"move",(r,a)=>{const l=this.indexOf(r);return l===-1?this:this.copy(Lc(this.items,[l],a))}),ne(this,"moveBefore",(r,...a)=>{let l=this.items.findIndex(u=>this.getItemValue(u)===r);if(l===-1)return this;let c=a.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(Lc(this.items,c,l))}),ne(this,"moveAfter",(r,...a)=>{let l=this.items.findIndex(u=>this.getItemValue(u)===r);if(l===-1)return this;let c=a.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(Lc(this.items,c,l+1))}),ne(this,"reorder",(r,a)=>this.copy(Lc(this.items,[r],a))),ne(this,"compareValue",(r,a)=>{const l=this.indexOf(r),c=this.indexOf(a);return l<c?-1:l>c?1:0}),ne(this,"range",(r,a)=>{let l=[],c=r;for(;c!=null;){if(this.find(c)&&l.push(c),c===a)return l;c=this.getNextValue(c)}return[]}),ne(this,"getValueRange",(r,a)=>r&&a?this.compareValue(r,a)<=0?this.range(r,a):this.range(a,r):[]),ne(this,"toString",()=>{let r="";for(const a of this.items){const l=this.getItemValue(a),c=this.stringifyItem(a),u=this.getItemDisabled(a),f=[l,c,u].filter(Boolean).join(":");r+=f+","}return r}),ne(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},yI=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Il(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function Lc(e,t,r){t=[...t].sort((l,c)=>l-c);const a=t.map(l=>e[l]);for(let l=t.length-1;l>=0;l--)e=[...e.slice(0,t[l]),...e.slice(t[l]+1)];return r=Math.max(0,r-t.filter(l=>l<r).length),[...e.slice(0,r),...a,...e.slice(r)]}function KS(e,t,r){for(let a=0;a<t.length;a++)e=r.getChildren(e,t.slice(a+1))[t[a]];return e}function xI(e){const t=SI(e),r=[],a=new Set;for(const l of t){const c=l.join();a.has(c)||(a.add(c),r.push(l))}return r}function QS(e,t){for(let r=0;r<Math.min(e.length,t.length);r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return e.length-t.length}function SI(e){return e.sort(QS)}function EI(e,t){let r;return fn(e,{...t,onEnter:(a,l)=>{if(t.predicate(a,l))return r=a,"stop"}}),r}function CI(e,t){const r=[];return fn(e,{onEnter:(a,l)=>{t.predicate(a,l)&&r.push(a)},getChildren:t.getChildren}),r}function tx(e,t){let r;return fn(e,{onEnter:(a,l)=>{if(t.predicate(a,l))return r=[...l],"stop"},getChildren:t.getChildren}),r}function wI(e,t){let r=t.initialResult;return fn(e,{...t,onEnter:(a,l)=>{r=t.nextResult(r,a,l)}}),r}function OI(e,t){return wI(e,{...t,initialResult:[],nextResult:(r,a,l)=>(r.push(...t.transform(a,l)),r)})}function TI(e,t){const{predicate:r,create:a,getChildren:l}=t,c=(u,f)=>{const h=l(u,f),p=[];h.forEach((x,E)=>{const C=[...f,E],T=c(x,C);T&&p.push(T)});const m=f.length===0,y=r(u,f),b=p.length>0;return m||y||b?a(u,p,f):null};return c(e,[])||a(e,[],[])}function kI(e,t){const r=[];let a=0;const l=new Map,c=new Map;return fn(e,{getChildren:t.getChildren,onEnter:(u,f)=>{l.has(u)||l.set(u,a++);const h=t.getChildren(u,f);h.forEach(x=>{c.has(x)||c.set(x,u),l.has(x)||l.set(x,a++)});const p=h.length>0?h.map(x=>l.get(x)):void 0,m=c.get(u),y=m?l.get(m):void 0,b=l.get(u);r.push({...u,_children:p,_parent:y,_index:b})}}),r}function RI(e,t){return{type:"insert",index:e,nodes:t}}function NI(e){return{type:"remove",indexes:e}}function Mp(){return{type:"replace"}}function ZS(e){return[e.slice(0,-1),e[e.length-1]]}function JS(e,t,r=new Map){const[a,l]=ZS(e);for(let u=a.length-1;u>=0;u--){const f=a.slice(0,u).join();switch(r.get(f)?.type){case"remove":continue}r.set(f,Mp())}const c=r.get(a.join());switch(c?.type){case"remove":r.set(a.join(),{type:"removeThenInsert",removeIndexes:c.indexes,insertIndex:l,insertNodes:t});break;default:r.set(a.join(),RI(l,t))}return r}function eE(e){const t=new Map,r=new Map;for(const a of e){const l=a.slice(0,-1).join(),c=r.get(l)??[];c.push(a[a.length-1]),r.set(l,c.sort((u,f)=>u-f))}for(const a of e)for(let l=a.length-2;l>=0;l--){const c=a.slice(0,l).join();t.has(c)||t.set(c,Mp())}for(const[a,l]of r)t.set(a,NI(l));return t}function AI(e,t){const r=new Map,[a,l]=ZS(e);for(let c=a.length-1;c>=0;c--){const u=a.slice(0,c).join();r.set(u,Mp())}return r.set(a.join(),{type:"removeThenInsert",removeIndexes:[l],insertIndex:l,insertNodes:[t]}),r}function ld(e,t,r){return _I(e,{...r,getChildren:(a,l)=>{const c=l.join();switch(t.get(c)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(a,l);default:return[]}},transform:(a,l,c)=>{const u=c.join(),f=t.get(u);switch(f?.type){case"remove":return r.create(a,l.filter((m,y)=>!f.indexes.includes(y)),c);case"removeThenInsert":const h=l.filter((m,y)=>!f.removeIndexes.includes(y)),p=f.removeIndexes.reduce((m,y)=>y<m?m-1:m,f.insertIndex);return r.create(a,nx(h,p,0,...f.insertNodes),c);case"insert":return r.create(a,nx(l,f.index,0,...f.nodes),c);case"replace":return r.create(a,l,c);default:return a}}})}function nx(e,t,r,...a){return[...e.slice(0,t),...a,...e.slice(t+r)]}function _I(e,t){const r={};return fn(e,{...t,onLeave:(a,l)=>{const c=[0,...l],u=c.join(),f=t.transform(a,r[u]??[],l),h=c.slice(0,-1).join(),p=r[h]??[];p.push(f),r[h]=p}}),r[""][0]}function II(e,t){const{nodes:r,at:a}=t;if(a.length===0)throw new Error("Can't insert nodes at the root");const l=JS(a,r);return ld(e,l,t)}function zI(e,t){if(t.at.length===0)return t.node;const r=AI(t.at,t.node);return ld(e,r,t)}function DI(e,t){if(t.indexPaths.length===0)return e;for(const a of t.indexPaths)if(a.length===0)throw new Error("Can't remove the root node");const r=eE(t.indexPaths);return ld(e,r,t)}function PI(e,t){if(t.indexPaths.length===0)return e;for(const c of t.indexPaths)if(c.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const r=xI(t.indexPaths),a=r.map(c=>KS(e,c,t)),l=JS(t.to,a,eE(r));return ld(e,l,t)}function fn(e,t){const{onEnter:r,onLeave:a,getChildren:l}=t;let c=[],u=[{node:e}];const f=t.reuseIndexPath?()=>c:()=>c.slice();for(;u.length>0;){let h=u[u.length-1];if(h.state===void 0){const m=r?.(h.node,f());if(m==="stop")return;h.state=m==="skip"?-1:0}const p=h.children||l(h.node,f());if(h.children||(h.children=p),h.state!==-1){if(h.state<p.length){let y=h.state;c.push(y),u.push({node:p[y]}),h.state=y+1;continue}if(a?.(h.node,f())==="stop")return}c.pop(),u.pop()}}var tE=class nE{constructor(t){this.options=t,ne(this,"rootNode"),ne(this,"isEqual",r=>Bn(this.rootNode,r.rootNode)),ne(this,"getNodeChildren",r=>this.options.nodeToChildren?.(r)??qa.nodeToChildren(r)??[]),ne(this,"resolveIndexPath",r=>typeof r=="string"?this.getIndexPath(r):r),ne(this,"resolveNode",r=>{const a=this.resolveIndexPath(r);return a?this.at(a):void 0}),ne(this,"getNodeChildrenCount",r=>this.options.nodeToChildrenCount?.(r)??qa.nodeToChildrenCount(r)),ne(this,"getNodeValue",r=>this.options.nodeToValue?.(r)??qa.nodeToValue(r)),ne(this,"getNodeDisabled",r=>this.options.isNodeDisabled?.(r)??qa.isNodeDisabled(r)),ne(this,"stringify",r=>{const a=this.findNode(r);return a?this.stringifyNode(a):null}),ne(this,"stringifyNode",r=>this.options.nodeToString?.(r)??qa.nodeToString(r)),ne(this,"getFirstNode",(r=this.rootNode)=>{let a;return fn(r,{getChildren:this.getNodeChildren,onEnter:(l,c)=>{if(!a&&c.length>0&&!this.getNodeDisabled(l))return a=l,"stop"}}),a}),ne(this,"getLastNode",(r=this.rootNode,a={})=>{let l;return fn(r,{getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(!this.isSameNode(c,r)){if(a.skip?.({value:this.getNodeValue(c),node:c,indexPath:u}))return"skip";u.length>0&&!this.getNodeDisabled(c)&&(l=c)}}}),l}),ne(this,"at",r=>KS(this.rootNode,r,{getChildren:this.getNodeChildren})),ne(this,"findNode",(r,a=this.rootNode)=>EI(a,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===r})),ne(this,"findNodes",(r,a=this.rootNode)=>{const l=new Set(r.filter(c=>c!=null));return CI(a,{getChildren:this.getNodeChildren,predicate:c=>l.has(this.getNodeValue(c))})}),ne(this,"sort",r=>r.reduce((a,l)=>{const c=this.getIndexPath(l);return c&&a.push({value:l,indexPath:c}),a},[]).sort((a,l)=>QS(a.indexPath,l.indexPath)).map(({value:a})=>a)),ne(this,"getIndexPath",r=>tx(this.rootNode,{getChildren:this.getNodeChildren,predicate:a=>this.getNodeValue(a)===r})),ne(this,"getValue",r=>{const a=this.at(r);return a?this.getNodeValue(a):void 0}),ne(this,"getValuePath",r=>{if(!r)return[];const a=[];let l=[...r];for(;l.length>0;){const c=this.at(l);c&&a.unshift(this.getNodeValue(c)),l.pop()}return a}),ne(this,"getDepth",r=>tx(this.rootNode,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===r})?.length??0),ne(this,"isSameNode",(r,a)=>this.getNodeValue(r)===this.getNodeValue(a)),ne(this,"isRootNode",r=>this.isSameNode(r,this.rootNode)),ne(this,"contains",(r,a)=>!r||!a?!1:a.slice(0,r.length).every((l,c)=>r[c]===a[c])),ne(this,"getNextNode",(r,a={})=>{let l=!1,c;return fn(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const h=this.getNodeValue(u);if(a.skip?.({value:h,node:u,indexPath:f}))return h===r&&(l=!0),"skip";if(l&&!this.getNodeDisabled(u))return c=u,"stop";h===r&&(l=!0)}}),c}),ne(this,"getPreviousNode",(r,a={})=>{let l,c=!1;return fn(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const h=this.getNodeValue(u);if(a.skip?.({value:h,node:u,indexPath:f}))return"skip";if(h===r)return c=!0,"stop";this.getNodeDisabled(u)||(l=u)}}),c?l:void 0}),ne(this,"getParentNodes",r=>{const a=this.resolveIndexPath(r)?.slice();if(!a)return[];const l=[];for(;a.length>0;){a.pop();const c=this.at(a);c&&!this.isRootNode(c)&&l.unshift(c)}return l}),ne(this,"getDescendantNodes",(r,a)=>{const l=this.resolveNode(r);if(!l)return[];const c=[];return fn(l,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{f.length!==0&&(!a?.withBranch&&this.isBranchNode(u)||c.push(u))}}),c}),ne(this,"getDescendantValues",(r,a)=>this.getDescendantNodes(r,a).map(c=>this.getNodeValue(c))),ne(this,"getParentIndexPath",r=>r.slice(0,-1)),ne(this,"getParentNode",r=>{const a=this.resolveIndexPath(r);return a?this.at(this.getParentIndexPath(a)):void 0}),ne(this,"visit",r=>{const{skip:a,...l}=r;fn(this.rootNode,{...l,getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(!this.isRootNode(c))return a?.({value:this.getNodeValue(c),node:c,indexPath:u})?"skip":l.onEnter?.(c,u)}})}),ne(this,"getPreviousSibling",r=>{const a=this.getParentNode(r);if(!a)return;const l=this.getNodeChildren(a);let c=r[r.length-1];for(;--c>=0;){const u=l[c];if(!this.getNodeDisabled(u))return u}}),ne(this,"getNextSibling",r=>{const a=this.getParentNode(r);if(!a)return;const l=this.getNodeChildren(a);let c=r[r.length-1];for(;++c<l.length;){const u=l[c];if(!this.getNodeDisabled(u))return u}}),ne(this,"getSiblingNodes",r=>{const a=this.getParentNode(r);return a?this.getNodeChildren(a):[]}),ne(this,"getValues",(r=this.rootNode)=>OI(r,{getChildren:this.getNodeChildren,transform:l=>[this.getNodeValue(l)]}).slice(1)),ne(this,"isValidDepth",(r,a)=>a==null?!0:typeof a=="function"?a(r.length):r.length===a),ne(this,"isBranchNode",r=>this.getNodeChildren(r).length>0||this.getNodeChildrenCount(r)!=null),ne(this,"getBranchValues",(r=this.rootNode,a={})=>{let l=[];return fn(r,{getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(u.length===0)return;const f=this.getNodeValue(c);if(a.skip?.({value:f,node:c,indexPath:u}))return"skip";this.isBranchNode(c)&&this.isValidDepth(u,a.depth)&&l.push(this.getNodeValue(c))}}),l}),ne(this,"flatten",(r=this.rootNode)=>kI(r,{getChildren:this.getNodeChildren})),ne(this,"_create",(r,a)=>this.getNodeChildren(r).length>0||a.length>0?{...r,children:a}:{...r}),ne(this,"_insert",(r,a,l)=>this.copy(II(r,{at:a,nodes:l,getChildren:this.getNodeChildren,create:this._create}))),ne(this,"copy",r=>new nE({...this.options,rootNode:r})),ne(this,"_replace",(r,a,l)=>this.copy(zI(r,{at:a,node:l,getChildren:this.getNodeChildren,create:this._create}))),ne(this,"_move",(r,a,l)=>this.copy(PI(r,{indexPaths:a,to:l,getChildren:this.getNodeChildren,create:this._create}))),ne(this,"_remove",(r,a)=>this.copy(DI(r,{indexPaths:a,getChildren:this.getNodeChildren,create:this._create}))),ne(this,"replace",(r,a)=>this._replace(this.rootNode,r,a)),ne(this,"remove",r=>this._remove(this.rootNode,r)),ne(this,"insertBefore",(r,a)=>this.getParentNode(r)?this._insert(this.rootNode,r,a):void 0),ne(this,"insertAfter",(r,a)=>{if(!this.getParentNode(r))return;const c=[...r.slice(0,-1),r[r.length-1]+1];return this._insert(this.rootNode,c,a)}),ne(this,"move",(r,a)=>this._move(this.rootNode,r,a)),ne(this,"filter",r=>{const a=TI(this.rootNode,{predicate:r,getChildren:this.getNodeChildren,create:this._create});return this.copy(a)}),ne(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},qa={nodeToValue(e){return typeof e=="string"?e:Ui(e)&&ui(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Ui(e)&&ui(e,"label")?e.label:qa.nodeToValue(e)},isNodeDisabled(e){return Ui(e)&&ui(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Ui(e)&&ui(e,"childrenCount"))return e.childrenCount}},Ha=new WeakMap,Bc=new WeakMap,Hc={},Jg=0,rE=e=>e&&(e.host||rE(e.parentNode)),VI=(e,t)=>t.map(r=>{if(e.contains(r))return r;const a=rE(r);return a&&e.contains(a)?a:(console.error("[zag-js > ariaHidden] target",r,"in not contained inside",e,". Doing nothing"),null)}).filter(r=>!!r),MI=new Set(["script","output","status","next-route-announcer"]),LI=e=>MI.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),BI=(e,t)=>{const{parentNode:r,markerName:a,controlAttribute:l}=t,c=VI(r,Array.isArray(e)?e:[e]);Hc[a]||(Hc[a]=new WeakMap);const u=Hc[a],f=[],h=new Set,p=new Set(c),m=b=>{!b||h.has(b)||(h.add(b),m(b.parentNode))};c.forEach(m);const y=b=>{!b||p.has(b)||Array.prototype.forEach.call(b.children,x=>{if(h.has(x))y(x);else try{if(LI(x))return;const C=x.getAttribute(l)==="true",T=(Ha.get(x)||0)+1,k=(u.get(x)||0)+1;Ha.set(x,T),u.set(x,k),f.push(x),T===1&&C&&Bc.set(x,!0),k===1&&x.setAttribute(a,""),C||x.setAttribute(l,"true")}catch(E){console.error("[zag-js > ariaHidden] cannot operate on ",x,E)}})};return y(r),h.clear(),Jg++,()=>{f.forEach(b=>{const x=Ha.get(b)-1,E=u.get(b)-1;Ha.set(b,x),u.set(b,E),x||(Bc.has(b)||b.removeAttribute(l),Bc.delete(b)),E||b.removeAttribute(a)}),Jg--,Jg||(Ha=new WeakMap,Ha=new WeakMap,Bc=new WeakMap,Hc={})}},HI=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,$I=(e,t=HI(e),r="data-aria-hidden")=>{if(t)return BI(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})},FI=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function iE(e,t={}){const{defer:r=!0}=t,a=r?FI:c=>c(),l=[];return l.push(a(()=>{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&l.push($I(u))})),()=>{l.forEach(c=>c?.())}}var aE=ge("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");aE.build();var oE=e=>new od(e);oE.empty=()=>new od({items:[]});var jI=e=>e.ids?.control??`combobox:${e.id}:control`,UI=e=>e.ids?.input??`combobox:${e.id}:input`,GI=e=>e.ids?.content??`combobox:${e.id}:content`,WI=e=>e.ids?.positioner??`combobox:${e.id}:popper`,qI=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,YI=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,ai=e=>e.getById(GI(e)),Ya=e=>e.getById(UI(e)),rx=e=>e.getById(WI(e)),ix=e=>e.getById(jI(e)),jl=e=>e.getById(qI(e)),ax=e=>e.getById(YI(e)),zl=(e,t)=>{if(t==null)return null;const r=`[role=option][data-value="${CSS.escape(t)}"]`;return o2(ai(e),r)},ox=e=>{const t=Ya(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},XI=e=>{const t=jl(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:KI,createMachine:QI,choose:ZI}=pS(),{and:Et,not:un}=KI;QI({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){dS(t)},collection:oE.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:r,getEvent:a}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Bn,hash(l){return l.join(",")},onChange(l){const c=r(),u=c.get("selectedItems"),f=e("collection"),h=l.map(p=>u.find(y=>f.getItemValue(y)===p)||f.find(p));c.set("selectedItems",h),e("onValueChange")?.({value:l,items:h})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){const c=e("collection").find(l);e("onHighlightChange")?.({highlightedValue:l,highlightedItem:c})}})),inputValue:t(()=>{let l=e("inputValue")||e("defaultInputValue")||"";const c=e("defaultValue")||e("value")||[];if(!l.trim()&&!e("multiple")){const u=e("collection").stringifyMany(c);l=Or(e("selectionBehavior"),{preserve:l||u,replace:u,clear:""})}return{defaultValue:l,value:e("inputValue"),onChange(u){const f=a(),h=(f.previousEvent||f).src;e("onInputValueChange")?.({inputValue:u,reason:h})}}}),highlightedItem:t(()=>{const l=e("highlightedValue");return{defaultValue:e("collection").find(l)}}),selectedItems:t(()=>{const l=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(l)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:r,action:a,send:l}){r([()=>e.hash("value")],()=>{a(["syncSelectedItems"])}),r([()=>e.get("inputValue")],()=>{a(["syncInputValue"])}),r([()=>e.get("highlightedValue")],()=>{a(["syncHighlightedItem","autofillInputValue"])}),r([()=>t("open")],()=>{a(["toggleVisibility"])}),r([()=>t("collection").toString()],()=>{l({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:ZI([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:Et("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Et("isCustomValue",un("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Et("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Et("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Et("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Et("isOpenControlled","isCustomValue",un("hasHighlightedItem"),un("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Et("isCustomValue",un("hasHighlightedItem"),un("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Et("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:Et("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Et("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Et("isOpenControlled","isCustomValue",un("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Et("isCustomValue",un("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Et("isOpenControlled","isCustomValue",un("hasHighlightedItem"),un("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Et("isCustomValue",un("hasHighlightedItem"),un("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Et("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:Et("isOpenControlled","isCustomValue",un("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Et("isCustomValue",un("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:Et("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const r=e("openOnChange");return MR(r)?r:!!r?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:r}){return t("disableLayer")?void 0:xo(()=>ai(r),{defer:!0,exclude:()=>[Ya(r),jl(r),ax(r)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(l){l.preventDefault(),l.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return iE([Ya(e),ai(e),jl(e),ax(e)])},trackPlacement({context:e,prop:t,scope:r}){const a=()=>ix(r)||jl(r),l=()=>rx(r);return e.set("currentPlacement",t("positioning").placement),bn(a,l,{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:a}){const l=Ya(r);let c=[];const u=p=>{const m=a.current().type.includes("POINTER"),y=e.get("highlightedValue");if(m||!y)return;const b=ai(r),x=t("scrollToIndexFn");if(x){const T=t("collection").indexOf(y);x({index:T,immediate:p,getElement:()=>zl(r,y)});return}const E=zl(r,y),C=xe(()=>{xu(E,{rootEl:b,block:"nearest"})});c.push(C)},f=xe(()=>u(!0));c.push(f);const h=Qu(l,{attributes:["aria-activedescendant"],callback:()=>u(!1)});return c.push(h),()=>{c.forEach(p=>p())}}},actions:{reposition({context:e,prop:t,scope:r,event:a}){bn(()=>ix(r),()=>rx(r),{...t("positioning"),...a.options,defer:!0,listeners:!1,onComplete(u){e.set("currentPlacement",u.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:r}=e,a=r("collection"),l=t.get("highlightedValue");if(!l||!a.has(l))return;const c=r("multiple")?oo(t.get("value"),l):[l];r("onSelect")?.({value:c,itemValue:l}),t.set("value",c);const u=Or(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:a.stringifyMany(c),clear:""});t.set("inputValue",u)},scrollToHighlightedItem({context:e,prop:t,scope:r}){yp(()=>{const a=e.get("highlightedValue");if(a==null)return;const l=zl(r,a),c=ai(r),u=t("scrollToIndexFn");if(u){const f=t("collection").indexOf(a);u({index:f,immediate:!0,getElement:()=>zl(r,a)});return}xu(l,{rootEl:c,block:"nearest"})})},selectItem(e){const{context:t,event:r,flush:a,prop:l}=e;r.value!=null&&a(()=>{const c=l("multiple")?oo(t.get("value"),r.value):[r.value];l("onSelect")?.({value:c,itemValue:r.value}),t.set("value",c);const u=Or(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(c),clear:""});t.set("inputValue",u)})},clearItem(e){const{context:t,event:r,flush:a,prop:l}=e;r.value!=null&&a(()=>{const c=Wi(t.get("value"),r.value);t.set("value",c);const u=Or(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(c),clear:""});t.set("inputValue",u)})},setInitialFocus({scope:e}){xe(()=>{ox(e)})},setFinalFocus({scope:e}){xe(()=>{jl(e)?.dataset.focusable==null?ox(e):XI(e)})},syncInputValue({context:e,scope:t,event:r}){const a=Ya(t);a&&(a.value=e.get("inputValue"),queueMicrotask(()=>{r.current().type!=="INPUT.CHANGE"&&cN(a)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:r}){const a=t("selectionBehavior"),l=Or(a,{replace:r("hasSelectedItems")?r("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",l)},setValue(e){const{context:t,flush:r,event:a,prop:l}=e;r(()=>{t.set("value",a.value);const c=Or(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(a.value),clear:""});t.set("inputValue",c)})},clearSelectedItems(e){const{context:t,flush:r,prop:a}=e;r(()=>{t.set("value",[]);const l=Or(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany([]),clear:""});t.set("inputValue",l)})},scrollContentToTop({prop:e,scope:t}){const r=e("scrollToIndexFn");if(r){const a=e("collection").firstValue;r({index:0,immediate:!0,getElement:()=>zl(t,a)})}else{const a=ai(t);if(!a)return;a.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const r=lx(t);e("onOpenChange")?.({open:!0,reason:r})},invokeOnClose({prop:e,event:t}){const r=lx(t);e("onOpenChange")?.({open:!1,reason:r})},highlightFirstItem({context:e,prop:t,scope:r}){(ai(r)?queueMicrotask:xe)(()=>{const l=t("collection").firstValue;l&&e.set("highlightedValue",l)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:r}){(ai(r)?queueMicrotask:xe)(()=>{const l=t("collection").lastValue;l&&e.set("highlightedValue",l)})},highlightNextItem({context:e,prop:t}){let r=null;const a=e.get("highlightedValue"),l=t("collection");a?(r=l.getNextValue(a),!r&&t("loopFocus")&&(r=l.firstValue)):r=l.firstValue,r&&e.set("highlightedValue",r)},highlightPrevItem({context:e,prop:t}){let r=null;const a=e.get("highlightedValue"),l=t("collection");a?(r=l.getPreviousValue(a),!r&&t("loopFocus")&&(r=l.lastValue)):r=l.lastValue,r&&e.set("highlightedValue",r)},highlightFirstSelectedItem({context:e,prop:t}){xe(()=>{const[r]=t("collection").sort(e.get("value"));r&&e.set("highlightedValue",r)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:r}){xe(()=>{let a=null;r("hasSelectedItems")?a=t("collection").sort(e.get("value"))[0]:a=t("collection").firstValue,a&&e.set("highlightedValue",a)})},highlightLastOrSelectedItem({context:e,prop:t,computed:r}){xe(()=>{const a=t("collection");let l=null;r("hasSelectedItems")?l=a.sort(e.get("value"))[0]:l=a.lastValue,l&&e.set("highlightedValue",l)})},autofillInputValue({context:e,computed:t,prop:r,event:a,scope:l}){const c=Ya(l),u=r("collection");if(!t("autoComplete")||!c||!a.keypress)return;const f=u.stringify(e.get("highlightedValue"));xe(()=>{c.value=f||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:r}=e,a=r("collection"),l=t.get("value"),c=l.map(f=>t.get("selectedItems").find(p=>a.getItemValue(p)===f)||a.find(f));t.set("selectedItems",c);const u=Or(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:a.stringifyMany(l),clear:""});t.set("inputValue",u)})},syncHighlightedItem({context:e,prop:t}){const r=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",r)},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function lx(e){return(e.previousEvent||e).src}he()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]);he()(["htmlFor"]);he()(["id"]);he()(["item","persistFocus"]);const JI=aE.extendWith("empty");var ez=Object.defineProperty,tz=(e,t,r)=>t in e?ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Je=(e,t,r)=>tz(e,typeof t!="symbol"?t+"":t,r),sx={activateTrap(e,t){if(e.length>0){const a=e[e.length-1];a!==t&&a.pause()}const r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},nz=[],rz=class{constructor(e,t){Je(this,"trapStack"),Je(this,"config"),Je(this,"doc"),Je(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),Je(this,"listenerCleanups",[]),Je(this,"handleFocus",a=>{const l=hn(a),c=this.findContainerIndex(l,a)>=0;if(c||hp(l))c&&(this.state.mostRecentlyFocusedNode=l);else{a.stopImmediatePropagation();let u,f=!0;if(this.state.mostRecentlyFocusedNode)if(Al(this.state.mostRecentlyFocusedNode)>0){const h=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:p}=this.state.containerGroups[h];if(p.length>0){const m=p.findIndex(y=>y===this.state.mostRecentlyFocusedNode);m>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?m+1<p.length&&(u=p[m+1],f=!1):m-1>=0&&(u=p[m-1],f=!1))}}else this.state.containerGroups.some(h=>h.tabbableNodes.some(p=>Al(p)>0))||(f=!1);else f=!1;f&&(u=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),u?this.tryFocus(u):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),Je(this,"handlePointerDown",a=>{const l=hn(a);if(!(this.findContainerIndex(l,a)>=0)){if(Pl(this.config.clickOutsideDeactivates,a)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Pl(this.config.allowOutsideClick,a)||a.preventDefault()}}),Je(this,"handleClick",a=>{const l=hn(a);this.findContainerIndex(l,a)>=0||Pl(this.config.clickOutsideDeactivates,a)||Pl(this.config.allowOutsideClick,a)||(a.preventDefault(),a.stopImmediatePropagation())}),Je(this,"handleTabKey",a=>{if(this.config.isKeyForward(a)||this.config.isKeyBackward(a)){this.state.recentNavEvent=a;const l=this.config.isKeyBackward(a),c=this.findNextNavNode({event:a,isBackward:l});if(!c)return;Dl(a)&&a.preventDefault(),this.tryFocus(c)}}),Je(this,"handleEscapeKey",a=>{iz(a)&&Pl(this.config.escapeDeactivates,a)!==!1&&(a.preventDefault(),this.deactivate())}),Je(this,"_mutationObserver"),Je(this,"setupMutationObserver",()=>{const a=this.doc.defaultView||window;this._mutationObserver=new a.MutationObserver(l=>{l.some(u=>Array.from(u.removedNodes).some(h=>h===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),Je(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(a=>{this._mutationObserver?.observe(a,{subtree:!0,childList:!0})})}),Je(this,"getInitialFocusNode",()=>{let a=this.getNodeForOption("initialFocus",{hasFallback:!0});if(a===!1)return!1;if(a===void 0||a&&!fi(a))if(this.findContainerIndex(this.doc.activeElement)>=0)a=this.doc.activeElement;else{const l=this.state.tabbableGroups[0];a=l&&l.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else a===null&&(a=this.getNodeForOption("fallbackFocus"));if(!a)throw new Error("Your focus-trap needs to have at least one focusable element");return a.isConnected||(a=this.getNodeForOption("fallbackFocus")),a}),Je(this,"tryFocus",a=>{if(a!==!1&&a!==oS(this.doc)){if(!a||!a.focus){this.tryFocus(this.getInitialFocusNode());return}a.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=a,az(a)&&a.select()}}),Je(this,"deactivate",a=>{if(!this.state.active)return this;const l={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...a};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),sx.deactivateTrap(this.trapStack,this);const c=this.getOption(l,"onDeactivate"),u=this.getOption(l,"onPostDeactivate"),f=this.getOption(l,"checkCanReturnFocus"),h=this.getOption(l,"returnFocus","returnFocusOnDeactivate");c?.();const p=()=>{cx(()=>{if(h){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(m)}u?.()})};if(h&&f){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return f(m).then(p,p),this}return p(),this}),Je(this,"pause",a=>{if(this.state.paused||!this.state.active)return this;const l=this.getOption(a,"onPause"),c=this.getOption(a,"onPostPause");return this.state.paused=!0,l?.(),this.removeListeners(),this.updateObservedNodes(),c?.(),this}),Je(this,"unpause",a=>{if(!this.state.paused||!this.state.active)return this;const l=this.getOption(a,"onUnpause"),c=this.getOption(a,"onPostUnpause");return this.state.paused=!1,l?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),c?.(),this}),Je(this,"updateContainerElements",a=>(this.state.containers=Array.isArray(a)?a.filter(Boolean):[a].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),Je(this,"getReturnFocusNode",a=>{const l=this.getNodeForOption("setReturnFocus",{params:[a]});return l||(l===!1?!1:a)}),Je(this,"getOption",(a,l,c)=>a&&a[l]!==void 0?a[l]:this.config[c||l]),Je(this,"getNodeForOption",(a,{hasFallback:l=!1,params:c=[]}={})=>{let u=this.config[a];if(typeof u=="function"&&(u=u(...c)),u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error(`\`${a}\` was specified but was not a node, or did not return a node`)}let f=u;if(typeof u=="string"){try{f=this.doc.querySelector(u)}catch(h){throw new Error(`\`${a}\` appears to be an invalid selector; error="${h.message}"`)}if(!f&&!l)throw new Error(`\`${a}\` as selector refers to no known node`)}return f}),Je(this,"findNextNavNode",a=>{const{event:l,isBackward:c=!1}=a,u=a.target||hn(l);this.updateTabbableNodes();let f=null;if(this.state.tabbableGroups.length>0){const h=this.findContainerIndex(u,l),p=h>=0?this.state.containerGroups[h]:void 0;if(h<0)c?f=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:f=this.state.tabbableGroups[0].firstTabbableNode;else if(c){let m=this.state.tabbableGroups.findIndex(({firstTabbableNode:y})=>u===y);if(m<0&&(p?.container===u||fi(u)&&!si(u)&&!p?.nextTabbableNode(u,!1))&&(m=h),m>=0){const y=m===0?this.state.tabbableGroups.length-1:m-1,b=this.state.tabbableGroups[y];f=Al(u)>=0?b.lastTabbableNode:b.lastDomTabbableNode}else Dl(l)||(f=p?.nextTabbableNode(u,!1))}else{let m=this.state.tabbableGroups.findIndex(({lastTabbableNode:y})=>u===y);if(m<0&&(p?.container===u||fi(u)&&!si(u)&&!p?.nextTabbableNode(u))&&(m=h),m>=0){const y=m===this.state.tabbableGroups.length-1?0:m+1,b=this.state.tabbableGroups[y];f=Al(u)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else Dl(l)||(f=p?.nextTabbableNode(u))}}else f=this.getNodeForOption("fallbackFocus");return f}),this.trapStack=t.trapStack||nz;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(a){return Dl(a)&&!a.shiftKey},isKeyBackward(a){return Dl(a)&&a.shiftKey},...t};this.doc=r.document||yn(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:a,tabbableNodes:l})=>a.contains(e)||r?.includes(a)||l.find(c=>c===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=fs(e),r=uS(e),a=t.length>0?t[0]:void 0,l=t.length>0?t[t.length-1]:void 0,c=r.find(p=>si(p)),u=r.slice().reverse().find(p=>si(p)),f=!!t.find(p=>Al(p)>0);function h(p,m=!0){const y=t.indexOf(p);return y<0?m?r.slice(r.indexOf(p)+1).find(b=>si(b)):r.slice(0,r.indexOf(p)).reverse().find(b=>si(b)):t[y+(m?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:f,firstTabbableNode:a,lastTabbableNode:l,firstDomTabbableNode:c,lastDomTabbableNode:u,nextTabbableNode:h}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return sx.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?cx(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(Ye(this.doc,"focusin",this.handleFocus,!0),Ye(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),Ye(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),Ye(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),Ye(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),Ye(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),a=this.getOption(e,"checkCanFocusTrap");a||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t?.();const l=()=>{a&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return a?(a(this.state.containers.concat()).then(l,l),this):(l(),this)}},Dl=e=>e.key==="Tab",Pl=(e,...t)=>typeof e=="function"?e(...t):e,iz=e=>!e.isComposing&&e.key==="Escape",cx=e=>setTimeout(e,0),az=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function oz(e,t={}){let r;const a=xe(()=>{const l=typeof e=="function"?e():e;if(l){r=new rz(l,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:l,...t,document:yn(l)});try{r.activate()}catch{}}});return function(){r?.deactivate(),a()}}var eh="data-scroll-lock";function lz(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function sz(e){const t=e??document,r=t.defaultView??window,{documentElement:a,body:l}=t;if(l.hasAttribute(eh))return;const u=r.innerWidth-a.clientWidth;l.setAttribute(eh,"");const f=()=>h2(a,"--scrollbar-width",`${u}px`),h=lz(a),p=()=>Eu(l,{overflow:"hidden",[h]:`${u}px`}),m=()=>{const{scrollX:b,scrollY:x,visualViewport:E}=r,C=E?.offsetLeft??0,T=E?.offsetTop??0,k=Eu(l,{position:"fixed",overflow:"hidden",top:`${-(x-Math.floor(T))}px`,left:`${-(b-Math.floor(C))}px`,right:"0",[h]:`${u}px`});return()=>{k?.(),r.scrollTo({left:b,top:x,behavior:"instant"})}},y=[f(),Yu()?m():p()];return()=>{y.forEach(b=>b?.()),l.removeAttribute(eh)}}var Lp=ge("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");Lp.build();he()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var lE=ge("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");lE.build();he()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const sE=ge("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");sE.build();const cE=ge("fieldset").parts("root","errorText","helperText","legend");cE.build();var uE=ge("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");uE.build();he()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);he()(["file"]);var dE=ge("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");dE.build();var cz=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,uz=e=>e.ids?.content??`hover-card:${e.id}:content`,dz=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,th=e=>e.getById(cz(e)),fz=e=>e.getById(uz(e)),ux=e=>e.getById(dz(e)),{not:$c,and:dx}=Ir();dx("isOpenControlled",$c("isPointer")),$c("isPointer"),dx("isOpenControlled",$c("isPointer")),$c("isPointer");he()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var fE=ge("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");fE.build();var gE=e=>new tE(e);gE.empty=()=>new tE({rootNode:{children:[]}});var gz=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,Vi=(e,t)=>{t!=null&&e.getById(gz(e,t))?.focus()};function hz(e,t,r){const a=e.getDescendantValues(t),l=a.every(c=>r.includes(c));return Qa(l?Wi(r,...a):ji(r,...a))}function Fc(e,t){const{context:r,prop:a,refs:l}=e;if(!a("loadChildren")){r.set("expandedValue",C=>Qa(ji(C,...t)));return}const c=r.get("loadingStatus"),[u,f]=S0(t,C=>c[C]==="loaded");if(u.length>0&&r.set("expandedValue",C=>Qa(ji(C,...u))),f.length===0)return;const h=a("collection"),[p,m]=S0(f,C=>{const T=h.findNode(C);return h.getNodeChildren(T).length>0});if(p.length>0&&r.set("expandedValue",C=>Qa(ji(C,...p))),m.length===0)return;r.set("loadingStatus",C=>({...C,...m.reduce((T,k)=>({...T,[k]:"loading"}),{})}));const y=m.map(C=>{const T=h.getIndexPath(C),k=h.getValuePath(T),O=h.findNode(C);return{id:C,indexPath:T,valuePath:k,node:O}}),b=l.get("pendingAborts"),x=a("loadChildren");tS(x,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const E=y.map(({id:C,indexPath:T,valuePath:k,node:O})=>{const N=b.get(C);N&&(N.abort(),b.delete(C));const z=new AbortController;return b.set(C,z),x({valuePath:k,indexPath:T,node:O,signal:z.signal})});Promise.allSettled(E).then(C=>{const T=[],k=[],O=r.get("loadingStatus");let N=a("collection");C.forEach((z,A)=>{const{id:B,indexPath:j,node:q,valuePath:X}=y[A];z.status==="fulfilled"?(O[B]="loaded",T.push(B),N=N.replace(j,{...q,children:z.value})):(b.delete(B),Reflect.deleteProperty(O,B),k.push({node:q,error:z.reason,indexPath:j,valuePath:X}))}),r.set("loadingStatus",O),T.length&&(r.set("expandedValue",z=>Qa(ji(z,...T))),a("onLoadChildrenComplete")?.({collection:N})),k.length&&a("onLoadChildrenError")?.({nodes:k})})}function ii(e){const{prop:t,context:r}=e;return function({indexPath:l}){return t("collection").getValuePath(l).slice(0,-1).some(u=>!r.get("expandedValue").includes(u))}}var{and:Yn}=Ir();Yn("isMultipleSelection","moveFocus"),Yn("isShiftKey","isMultipleSelection"),Yn("isShiftKey","isMultipleSelection"),Yn("isBranchFocused","isBranchExpanded"),Yn("isShiftKey","isMultipleSelection"),Yn("isShiftKey","isMultipleSelection"),Yn("isCtrlKey","isMultipleSelection"),Yn("isShiftKey","isMultipleSelection"),Yn("isCtrlKey","isMultipleSelection"),Yn("isShiftKey","isMultipleSelection");he()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]);he()(["node","indexPath"]);var hE=ge("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");hE.build();he()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);he()(["item","highlightOnHover"]);he()(["id"]);he()(["htmlFor"]);const pz=hE.extendWith("empty");var pE=ge("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");pE.build();var mE=e=>e.ids?.trigger??`menu:${e.id}:trigger`,mz=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,vE=e=>e.ids?.content??`menu:${e.id}:content`,vz=e=>e.ids?.positioner??`menu:${e.id}:popper`,_h=(e,t)=>`${e.id}/${t}`,Mi=e=>e?.dataset.value??null,oi=e=>e.getById(vE(e)),fx=e=>e.getById(vz(e)),jc=e=>e.getById(mE(e)),bz=(e,t)=>t?e.getById(_h(e,t)):null,nh=e=>e.getById(mz(e)),hs=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(vE(e))}]:not([data-disabled])`;return Su(oi(e),r)},yz=e=>ql(hs(e)),xz=e=>gp(hs(e)),Bp=(e,t)=>t?e.id===t||e.dataset.value===t:!1,Sz=(e,t)=>{const r=hs(e),a=r.findIndex(l=>Bp(l,t.value));return zR(r,a,{loop:t.loop??t.loopFocus})},Ez=(e,t)=>{const r=hs(e),a=r.findIndex(l=>Bp(l,t.value));return PR(r,a,{loop:t.loop??t.loopFocus})},Cz=(e,t)=>{const r=hs(e),a=r.find(l=>Bp(l,t.value));return ns(r,{state:t.typeaheadState,key:t.key,activeId:a?.id??null})},wz=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),Oz="menu:select";function Tz(e,t){if(!e)return;const r=zt(e),a=new r.CustomEvent(Oz,{detail:{value:t}});e.dispatchEvent(a)}var{not:_n,and:$a,or:kz}=Ir();_n("isSubmenu"),kz("isOpenAutoFocusEvent","isArrowDownEvent"),$a(_n("isTriggerItem"),"isOpenControlled"),_n("isTriggerItem"),$a("isSubmenu","isOpenControlled"),_n("isPointerSuspended"),$a(_n("isPointerSuspended"),_n("isTriggerItem")),$a(_n("isTriggerItemHighlighted"),_n("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),$a(_n("isTriggerItemHighlighted"),_n("isHighlightedItemEditable"),"closeOnSelect"),$a(_n("isTriggerItemHighlighted"),_n("isHighlightedItemEditable"));function gx(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function Rz(e,t){return e?lI(e,t):!1}function Nz(e,t,r){const a=Object.keys(e).length>0;if(!t)return null;if(!a)return _h(r,t);for(const l in e){const c=e[l],u=mE(c.scope);if(u===t)return u}return _h(r,t)}he()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]);he()(["closeOnSelect","disabled","value","valueText"]);he()(["htmlFor"]);he()(["id"]);he()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let rh=new Map,Ih=!1;try{Ih=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Nu=!1;try{Nu=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const bE={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Az{format(t){let r="";if(!Ih&&this.options.signDisplay!=null?r=Iz(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Nu){var a;let{unit:l,unitDisplay:c="short",locale:u}=this.resolvedOptions();if(!l)return r;let f=(a=bE[l])===null||a===void 0?void 0:a[c];r+=f[u]||f.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let a=this.numberFormatter.formatToParts(t),l=this.numberFormatter.formatToParts(r);return[...a.map(c=>({...c,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...l.map(c=>({...c,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ih&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Nu&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=_z(t,r),this.options=r}}function _z(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Nu){var a;let{unit:u,unitDisplay:f="short"}=t;if(!u)throw new Error('unit option must be provided with style: "unit"');if(!(!((a=bE[u])===null||a===void 0)&&a[f]))throw new Error(`Unsupported unit ${u} with unitDisplay = ${f}`);t={...t,style:"decimal"}}let l=e+(t?Object.entries(t).sort((u,f)=>u[0]<f[0]?-1:1).join():"");if(rh.has(l))return rh.get(l);let c=new Intl.NumberFormat(e,t);return rh.set(l,c),c}function Iz(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let a=!1;if(t==="always"?a=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):a=r>0),a){let l=e.format(-r),c=e.format(r),u=l.replace(c,"").replace(/\u200e|\u061C/,"");return[...u].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),l.replace(c,"!!!").replace(u,"+").replace("!!!",c)}else return e.format(r)}}const zz=new RegExp("^.*\\(.*\\).*$"),Dz=["latn","arab","hanidec","deva","beng","fullwide"];class yE{parse(t){return ih(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,a){return ih(this.locale,this.options,t).isValidPartialNumber(t,r,a)}getNumberingSystem(t){return ih(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const hx=new Map;function ih(e,t,r){let a=px(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(r)){for(let l of Dz)if(l!==a.options.numberingSystem){let c=px(e+(e.includes("-u-")?"-nu-":"-u-nu-")+l,t);if(c.isValidPartialNumber(r))return c}}return a}function px(e,t){let r=e+(t?Object.entries(t).sort((l,c)=>l[0]<c[0]?-1:1).join():""),a=hx.get(r);return a||(a=new Pz(e,t),hx.set(r,a)),a}class Pz{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=Vl(r,this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let u=r.indexOf("-");r=r.replace("-",""),r=r.replace("+","");let f=r.indexOf(".");f===-1&&(f=r.length),r=r.replace(".",""),f-2===0?r=`0.${r}`:f-2===-1?r=`0.0${r}`:f-2===-2?r="0.00":r=`${r.slice(0,f-2)}.${r.slice(f-2)}`,u>-1&&(r=`-${r}`)}let a=r?+r:NaN;if(isNaN(a))return NaN;if(this.options.style==="percent"){var l,c;let u={...this.options,style:"decimal",minimumFractionDigits:Math.min(((l=this.options.minimumFractionDigits)!==null&&l!==void 0?l:0)+2,20),maximumFractionDigits:Math.min(((c=this.options.maximumFractionDigits)!==null&&c!==void 0?c:0)+2,20)};return new yE(this.locale,u).parse(new Az(this.locale,u).format(a))}return this.options.currencySign==="accounting"&&zz.test(t)&&(a=-1*a),a}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Vl(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Vl(t," ",this.symbols.group),t=Vl(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,r=-1/0,a=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&a>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Vl(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,r={}){this.locale=t,r.roundingIncrement!==1&&r.roundingIncrement!=null&&(r.maximumFractionDigits==null&&r.minimumFractionDigits==null?(r.maximumFractionDigits=0,r.minimumFractionDigits=0):r.maximumFractionDigits==null?r.maximumFractionDigits=r.minimumFractionDigits:r.minimumFractionDigits==null&&(r.minimumFractionDigits=r.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=Mz(t,this.formatter,this.options,r);var a,l;this.options.style==="percent"&&(((a=this.options.minimumFractionDigits)!==null&&a!==void 0?a:0)>18||((l=this.options.maximumFractionDigits)!==null&&l!==void 0?l:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const mx=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Vz=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Mz(e,t,r,a){var l,c,u,f;let h=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),p=h.formatToParts(-10000.111),m=h.formatToParts(10000.111),y=Vz.map(te=>h.formatToParts(te));var b;let x=(b=(l=p.find(te=>te.type==="minusSign"))===null||l===void 0?void 0:l.value)!==null&&b!==void 0?b:"-",E=(c=m.find(te=>te.type==="plusSign"))===null||c===void 0?void 0:c.value;!E&&(a?.signDisplay==="exceptZero"||a?.signDisplay==="always")&&(E="+");let T=(u=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(te=>te.type==="decimal"))===null||u===void 0?void 0:u.value,k=(f=p.find(te=>te.type==="group"))===null||f===void 0?void 0:f.value,O=p.filter(te=>!mx.has(te.type)).map(te=>vx(te.value)),N=y.flatMap(te=>te.filter(K=>!mx.has(K.type)).map(K=>vx(K.value))),z=[...new Set([...O,...N])].sort((te,K)=>K.length-te.length),A=z.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${z.join("|")}|[\\p{White_Space}]`,"gu"),B=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),j=new Map(B.map((te,K)=>[te,K])),q=new RegExp(`[${B.join("")}]`,"g");return{minusSign:x,plusSign:E,decimal:T,group:k,literals:A,numeral:q,index:te=>String(j.get(te))}}function Vl(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function vx(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var xE=ge("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");xE.build();var Lz=e=>e.ids?.input??`number-input:${e.id}:input`,Bz=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,Hz=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,SE=e=>`number-input:${e.id}:cursor`,Uc=e=>e.getById(Lz(e)),$z=e=>e.getById(Bz(e)),Fz=e=>e.getById(Hz(e)),EE=e=>e.getDoc().getElementById(SE(e)),jz=(e,t)=>{let r=null;return t==="increment"&&(r=$z(e)),t==="decrement"&&(r=Fz(e)),r},Uz=(e,t)=>{if(!mp())return qz(e,t),()=>{EE(e)?.remove()}},Gz=e=>{const t=e.getDoc(),r=t.documentElement,a=t.body;return a.style.pointerEvents="none",r.style.userSelect="none",r.style.cursor="ew-resize",()=>{a.style.pointerEvents="",r.style.userSelect="",r.style.cursor="",r.style.length||r.removeAttribute("style"),a.style.length||a.removeAttribute("style")}},Wz=(e,t)=>{const{point:r,isRtl:a,event:l}=t,c=e.getWin(),u=Wg(l.movementX,c.devicePixelRatio),f=Wg(l.movementY,c.devicePixelRatio);let h=u>0?"increment":u<0?"decrement":null;a&&h==="increment"&&(h="decrement"),a&&h==="decrement"&&(h="increment");const p={x:r.x+u,y:r.y+f},m=c.innerWidth,y=Wg(7.5,c.devicePixelRatio);return p.x=QR(p.x+y,m)-y,{hint:h,point:p}},qz=(e,t)=>{const r=e.getDoc(),a=r.createElement("div");a.className="scrubber--cursor",a.id=SE(e),Object.assign(a.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:rS,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),a.innerHTML=`
|
|
67
|
+
<svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
|
|
68
|
+
<g transform="translate(2 3)">
|
|
69
|
+
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
|
|
70
|
+
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
|
|
71
|
+
</g>
|
|
72
|
+
</svg>`,r.body.appendChild(a)};function Yz(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:r,value:a}=e,l=a.substring(0,t),c=a.substring(r);return{start:t,end:r,value:a,beforeTxt:l,afterTxt:c}}catch{}}function Xz(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:r}=e,{beforeTxt:a="",afterTxt:l="",start:c}=t;let u=r.length;if(r.endsWith(l))u=r.length-l.length;else if(r.startsWith(a))u=a.length;else if(c!=null){const f=a[c-1],h=r.indexOf(f,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch{}}}var Kz=(e,t={})=>new Intl.NumberFormat(e,t),Qz=(e,t={})=>new yE(e,t),ah=(e,t)=>{const{prop:r,computed:a}=t;return r("formatOptions")?e===""?Number.NaN:a("parser").parse(e):parseFloat(e)},Li=(e,t)=>{const{prop:r,computed:a}=t;return Number.isNaN(e)?"":r("formatOptions")?a("formatter").format(e):e.toString()},Zz=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r},{choose:Jz,guards:e5,createMachine:t5}=pS(),{not:bx,and:yx}=e5;t5({props({props:e}){const t=Zz(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:r}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(a){const l=r(),c=ah(a,{computed:l,prop:e});e("onValueChange")?.({value:a,valueAsNumber:c})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(a){return a?`x:${a.x}, y:${a.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:r})=>ah(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>Li(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>JR(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>ZR(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!eN(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:A0(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>Kz(e,t)),parser:A0(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>Qz(e,t))},watch({track:e,action:t,context:r,computed:a,prop:l}){e([()=>r.get("value"),()=>l("locale")],()=>{t(["syncInputElement"])}),e([()=>a("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:yx("clampValueOnBlur",bx("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:bx("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:Jz([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:yx("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const r=Uc(t);return vp(r,{onFieldsetDisabledChange(a){e.set("fieldsetDisabled",a)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const r=e.get("scrubberCursorPoint");return Uz(t,r)},preventTextSelection({scope:e}){return Gz(e)},trackButtonDisabled({context:e,scope:t,send:r}){const a=e.get("hint"),l=jz(t,a);return Qu(l,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){const a=Uc(e);if(!a||!e.isActiveElement(a)||!r("allowMouseWheel"))return;function l(c){c.preventDefault();const u=Math.sign(c.deltaY)*-1;u===1?t({type:"VALUE.INCREMENT"}):u===-1&&t({type:"VALUE.DECREMENT"})}return Ye(a,"wheel",l,{passive:!1})},activatePointerLock({scope:e}){if(!mp())return e2(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:a}){const l=e.getDoc();function c(f){const h=r.get("scrubberCursorPoint"),p=a("isRtl"),m=Wz(e,{point:h,isRtl:p,event:f});m.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:m.hint,point:m.point})}function u(){t({type:"SCRUBBER.POINTER_UP"})}return bu(Ye(l,"mousemove",c,!1),Ye(l,"mouseup",u,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=Uc(e);e.isActiveElement(r)||xe(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:a}){let l=iN(a("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(l=Kt(l,r("min"),r("max"))),e.set("value",Li(l,{computed:a,prop:r}))},decrement({context:e,event:t,prop:r,computed:a}){let l=aN(a("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(l=Kt(l,r("min"),r("max"))),e.set("value",Li(l,{computed:a,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const a=Kt(r("valueAsNumber"),t("min"),t("max"));e.set("value",Li(a,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:a}){let l=ah(t.value,{computed:a,prop:r});r("allowOverflow")||(l=Kt(l,r("min"),r("max"))),e.set("value",Li(l,{computed:a,prop:r}))},setValue({context:e,event:t}){const r=t.target?.value??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){const a=Li(t("max"),{computed:r,prop:t});e.set("value",a)},decrementToMin({context:e,prop:t,computed:r}){const a=Li(t("min"),{computed:r,prop:t});e.set("value",a)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){if(r.type==="INPUT.CHANGE")return;const a=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:a,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:a}){const l=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),c=Uc(a),u=Yz(c);xe(()=>{Ku(c,l),Xz(c,u)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const r=EE(t),a=e.get("scrubberCursorPoint");!r||!a||(r.style.transform=`translate3d(${a.x}px, ${a.y}px, 0px)`)}}}});he()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var CE=ge("pinInput").parts("root","label","input","control");CE.build();he()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);const[wE,lr]=ds({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),OE=w.forwardRef((e,t)=>{const r=lr(),a=mt(r.getAnchorProps(),e);return F.jsx($t.div,{...a,ref:t})});OE.displayName="PopoverAnchor";const TE=w.forwardRef((e,t)=>{const r=lr(),a=mt(r.getArrowProps(),e);return F.jsx($t.div,{...a,ref:t})});TE.displayName="PopoverArrow";const kE=w.forwardRef((e,t)=>{const r=lr(),a=mt(r.getArrowTipProps(),e);return F.jsx($t.div,{...a,ref:t})});kE.displayName="PopoverArrowTip";const RE=w.forwardRef((e,t)=>{const r=lr(),a=mt(r.getCloseTriggerProps(),e);return F.jsx($t.button,{...a,ref:t})});RE.displayName="PopoverCloseTrigger";const NE=w.forwardRef((e,t)=>{const r=lr(),a=wp(),l=mt(r.getContentProps(),a.getPresenceProps(),e);return a.unmounted?null:F.jsx($t.div,{...l,ref:mS(a.ref,t)})});NE.displayName="PopoverContent";const AE=w.forwardRef((e,t)=>{const r=lr(),a=mt(r.getDescriptionProps(),e);return F.jsx($t.div,{...a,ref:t})});AE.displayName="PopoverDescription";const _E=w.forwardRef((e,t)=>{const r=lr(),a=mt(r.getIndicatorProps(),e);return F.jsx($t.div,{...a,ref:t})});_E.displayName="PopoverIndicator";const IE=w.forwardRef((e,t)=>{const r=lr(),a=wp(),l=mt(r.getPositionerProps(),e);return a.unmounted?null:F.jsx($t.div,{...l,ref:t})});IE.displayName="PopoverPositioner";var zE=ge("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),Xn=zE.build(),DE=e=>e.ids?.anchor??`popover:${e.id}:anchor`,PE=e=>e.ids?.trigger??`popover:${e.id}:trigger`,zh=e=>e.ids?.content??`popover:${e.id}:content`,VE=e=>e.ids?.positioner??`popover:${e.id}:popper`,n5=e=>e.ids?.arrow??`popover:${e.id}:arrow`,Dh=e=>e.ids?.title??`popover:${e.id}:title`,Ph=e=>e.ids?.description??`popover:${e.id}:desc`,r5=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,xx=e=>e.getById(DE(e)),Fa=e=>e.getById(PE(e)),ja=e=>e.getById(zh(e)),Sx=e=>e.getById(VE(e)),i5=e=>e.getById(Dh(e)),a5=e=>e.getById(Ph(e));function o5(e,t){const{state:r,context:a,send:l,computed:c,prop:u,scope:f}=e,h=r.matches("open"),p=a.get("currentPlacement"),m=c("currentPortalled"),y=a.get("renderedElements"),b=u_({...u("positioning"),placement:p});return{portalled:m,open:h,setOpen(x){r.matches("open")!==x&&l({type:x?"OPEN":"CLOSE"})},reposition(x={}){l({type:"POSITIONING.SET",options:x})},getArrowProps(){return t.element({id:n5(f),...Xn.arrow.attrs,dir:u("dir"),style:b.arrow})},getArrowTipProps(){return t.element({...Xn.arrowTip.attrs,dir:u("dir"),style:b.arrowTip})},getAnchorProps(){return t.element({...Xn.anchor.attrs,dir:u("dir"),id:DE(f)})},getTriggerProps(){return t.button({...Xn.trigger.attrs,dir:u("dir"),type:"button","data-placement":p,id:PE(f),"aria-haspopup":"dialog","aria-expanded":h,"data-state":h?"open":"closed","aria-controls":zh(f),onPointerDown(x){zN(x)&&mp()&&x.currentTarget.focus()},onClick(x){x.defaultPrevented||l({type:"TOGGLE"})},onBlur(x){l({type:"TRIGGER_BLUR",target:x.relatedTarget})}})},getIndicatorProps(){return t.element({...Xn.indicator.attrs,dir:u("dir"),"data-state":h?"open":"closed"})},getPositionerProps(){return t.element({id:VE(f),...Xn.positioner.attrs,dir:u("dir"),style:b.floating})},getContentProps(){return t.element({...Xn.content.attrs,dir:u("dir"),id:zh(f),tabIndex:-1,role:"dialog",hidden:!h,"data-state":h?"open":"closed","data-expanded":Fi(h),"aria-labelledby":y.title?Dh(f):void 0,"aria-describedby":y.description?Ph(f):void 0,"data-placement":p})},getTitleProps(){return t.element({...Xn.title.attrs,id:Dh(f),dir:u("dir")})},getDescriptionProps(){return t.element({...Xn.description.attrs,id:Ph(f),dir:u("dir")})},getCloseTriggerProps(){return t.button({...Xn.closeTrigger.attrs,dir:u("dir"),id:r5(f),type:"button","aria-label":"close",onClick(x){x.defaultPrevented||(x.stopPropagation(),l({type:"CLOSE"}))}})}}}var l5={props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:r}){e.set("currentPlacement",t("positioning").placement);const a=xx(r)??Fa(r);return bn(a,()=>Sx(r),{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},trackDismissableElement({send:e,prop:t,scope:r}){const a=()=>ja(r);let l=!0;return xo(a,{pointerBlocking:t("modal"),exclude:Fa(r),defer:!0,onEscapeKeyDown(c){t("onEscapeKeyDown")?.(c),!t("closeOnEscape")&&c.preventDefault()},onInteractOutside(c){t("onInteractOutside")?.(c),!c.defaultPrevented&&(l=!(c.detail.focusable||c.detail.contextmenu),t("closeOnInteractOutside")||c.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:l})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:a2(()=>ja(t),{triggerElement:Fa(t),defer:!0,onFocus(a){a.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?iE(()=>[ja(t),Fa(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return sz(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?oz(()=>ja(t),{initialFocus:()=>ts({root:ja(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})}):void 0}},actions:{reposition({event:e,prop:t,scope:r,context:a}){const l=xx(r)??Fa(r);bn(l,()=>Sx(r),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(u){a.set("currentPlacement",u.placement)}})},checkRenderedElements({context:e,scope:t}){xe(()=>{Object.assign(e.get("renderedElements"),{title:!!i5(t),description:!!a5(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||xe(()=>{ts({root:ja(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){const r=e.restoreFocus??e.previousEvent?.restoreFocus;r!=null&&!r||xe(()=>{Fa(t)?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}};he()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const s5=e=>{const t=w.useId(),{getRootNode:r}=Gu(),{dir:a}=vS(),l={id:t,dir:a,getRootNode:r,...e},c=Ju(l5,l);return o5(c,Cp)},c5=e=>{const[t,{children:r,...a}]=bS(e),l=s5(a),c=SS(mt({present:l.open},t));return F.jsx(wE,{value:l,children:F.jsx(ES,{value:c,children:r})})},u5=e=>{const[t,{value:r,children:a}]=bS(e),l=SS(mt({present:r.open},t));return F.jsx(wE,{value:r,children:F.jsx(ES,{value:l,children:a})})},ME=w.forwardRef((e,t)=>{const r=lr(),a=mt(r.getTitleProps(),e);return F.jsx($t.div,{...a,ref:t})});ME.displayName="PopoverTitle";const LE=w.forwardRef((e,t)=>{const r=lr(),a=wp(),l=mt({...r.getTriggerProps(),"aria-controls":a.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return F.jsx($t.button,{...l,ref:t})});LE.displayName="PopoverTrigger";const BE=e=>{const{children:t,disabled:r}=e,[a,l]=w.useState(e.container?.current),c=w.useSyncExternalStore(f5,()=>!1,()=>!0),{getRootNode:u}=Gu();if(w.useEffect(()=>{l(()=>e.container?.current)},[e.container]),c||r)return F.jsx(F.Fragment,{children:t});const f=a??d5(u);return F.jsx(F.Fragment,{children:w.Children.map(t,h=>Zu.createPortal(h,f))})},d5=e=>{const t=e?.(),r=t.getRootNode();return so(r)?r:yn(t).body},f5=()=>()=>{};var Hp=ge("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Hp.build();he()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var HE=ge("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");HE.build();he()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var $p=ge("radio-group").parts("root","label","item","itemText","itemControl","indicator");$p.build();he()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);he()(["value","disabled","invalid"]);var $E=ge("rating-group").parts("root","label","item","control");$E.build();he()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);he()(["index"]);var FE=ge("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");FE.build();he()(["dir","getRootNode","ids","id"]);const jE=$p.rename("segment-group");jE.build();var UE=ge("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");UE.build();var GE=e=>new od(e);GE.empty=()=>new od({items:[]});var g5=e=>e.ids?.content??`select:${e.id}:content`,h5=e=>e.ids?.trigger??`select:${e.id}:trigger`,p5=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,m5=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,v5=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,b5=e=>e.ids?.positioner??`select:${e.id}:positioner`,oh=e=>e.getById(v5(e)),Ml=e=>e.getById(g5(e)),Gc=e=>e.getById(h5(e)),y5=e=>e.getById(p5(e)),Ex=e=>e.getById(b5(e)),lh=(e,t)=>t==null?null:e.getById(m5(e,t)),{and:Ll,not:Bi,or:x5}=Ir();x5("isTriggerArrowDownEvent","isTriggerEnterEvent"),Ll(Bi("multiple"),"hasSelectedItems"),Bi("multiple"),Ll(Bi("multiple"),"hasSelectedItems"),Bi("multiple"),Bi("multiple"),Bi("multiple"),Bi("multiple"),Ll("closeOnSelect","isOpenControlled"),Ll("hasHighlightedItem","loop","isLastItemHighlighted"),Ll("hasHighlightedItem","loop","isFirstItemHighlighted");function Cx(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}he()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);he()(["item","persistFocus"]);he()(["id"]);he()(["htmlFor"]);var WE=ge("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");WE.build();he()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);he()(["index","name"]);var qE=ge("switch").parts("root","label","control","thumb");qE.build();he()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var S5=ge("toast").parts("group","root","title","description","actionTrigger","closeTrigger"),Xa=S5.build(),E5=e=>`toast-group:${e}`,wx=(e,t)=>e.getById(`toast-group:${t}`),YE=e=>`toast:${e.id}`,Ox=e=>e.getById(YE(e)),Tx=e=>`toast:${e.id}:title`,kx=e=>`toast:${e.id}:description`,C5=e=>`toast${e.id}:close`,Rx={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function sh(e,t){return e??Rx[t]??Rx.DEFAULT}var w5=e=>typeof e=="string"?{left:e,right:e,bottom:e,top:e}:e;function O5(e,t){const{prop:r,computed:a,context:l}=e,{offsets:c,gap:u}=r("store").attrs,f=l.get("heights"),h=w5(c),p=r("dir")==="rtl",m=t.replace("-start",p?"-right":"-left").replace("-end",p?"-left":"-right"),y=m.includes("right"),b=m.includes("left"),x={position:"fixed",pointerEvents:a("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${u}px`,"--first-height":`${f[0]?.height||0}px`,zIndex:rS};let E="center";if(y&&(E="flex-end"),b&&(E="flex-start"),x.alignItems=E,m.includes("top")){const C=h.top;x.top=`max(env(safe-area-inset-top, 0px), ${C})`}if(m.includes("bottom")){const C=h.bottom;x.bottom=`max(env(safe-area-inset-bottom, 0px), ${C})`}if(!m.includes("left")){const C=h.right;x.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${C})`}if(!m.includes("right")){const C=h.left;x.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${C})`}return x}function T5(e,t){const{prop:r,context:a,computed:l}=e,c=r("parent"),u=c.computed("placement"),{gap:f}=c.prop("store").attrs,[h]=u.split("-"),p=a.get("mounted"),m=a.get("remainingTime"),y=l("height"),b=l("frontmost"),x=!b,E=!r("stacked"),C=r("stacked"),k=r("type")==="loading"?Number.MAX_SAFE_INTEGER:m,O=l("heightIndex")*f+l("heightBefore"),N={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${r("removeDelay")}ms`,"--duration":`${k}ms`,"--initial-height":`${y}px`,"--offset":`${O}px`,"--index":r("index"),"--z-index":l("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},z=A=>Object.assign(N,A);return h==="top"?z({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):h==="bottom"&&z({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),p&&(z({"--y":"0","--opacity":"1"}),C&&z({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||z({"--opacity":"0",pointerEvents:"none"}),x&&E&&(z({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||z({"--y":"calc(var(--sign) * 40%)"})),x&&C&&!t&&z({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),b&&!t&&z({"--y":"calc(var(--lift) * -100%)"}),N}function k5(e,t){const{computed:r}=e,a={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"},l=c=>Object.assign(a,c);return r("frontmost")&&!t&&l({height:"calc(var(--initial-height) + 80%)"}),a}function R5(){return{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}function N5(e,t){const{context:r,prop:a,send:l,refs:c,computed:u}=e;return{getCount(){return r.get("toasts").length},getToasts(){return r.get("toasts")},getGroupProps(f={}){const{label:h="Notifications"}=f,{hotkey:p}=a("store").attrs,m=p.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=u("placement"),[b,x="center"]=y.split("-");return t.element({...Xa.group.attrs,dir:a("dir"),tabIndex:-1,"aria-label":`${y} ${h} ${m}`,id:E5(y),"data-placement":y,"data-side":b,"data-align":x,"aria-live":"polite",role:"region",style:O5(e,y),onMouseMove(){l({type:"REGION.POINTER_ENTER",placement:y})},onMouseLeave(){l({type:"REGION.POINTER_LEAVE",placement:y})},onFocus(E){l({type:"REGION.FOCUS",target:E.relatedTarget})},onBlur(E){c.get("isFocusWithin")&&!di(E.currentTarget,E.relatedTarget)&&queueMicrotask(()=>l({type:"REGION.BLUR"}))}})},subscribe(f){return a("store").subscribe(()=>f(r.get("toasts")))}}}var A5={props({props:e}){return{dir:"ltr",id:K1(),...e,store:e.store}},initialState({prop:e}){return e("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:t=>t.map(r=>r.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:r}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{r(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:"isOverlapping",target:"overlap",actions:["collapseToasts","resumeToasts","restoreLastFocusedEl"]},{target:"stack",actions:["resumeToasts","restoreLastFocusedEl"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts","collapseToasts"]},{actions:["resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap")},effects:{subscribeToStore({context:e,prop:t}){return t("store").subscribe(r=>{if(r.dismiss){e.set("toasts",a=>a.filter(l=>l.id!==r.id));return}e.set("toasts",a=>{const l=a.findIndex(c=>c.id===r.id);return l!==-1?[...a.slice(0,l),{...a[l],...r},...a.slice(l+1)]:[r,...a]})})},trackHotKeyPress({prop:e,send:t}){return Ye(document,"keydown",a=>{const{hotkey:l}=e("store").attrs;l.every(u=>a[u]||a.code===u)&&t({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:r}){const{pauseOnPageIdle:a}=e("store").attrs;if(!a)return;const l=r.getDoc();return Ye(l,"visibilitychange",()=>{const c=l.visibilityState==="hidden";t({type:c?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:r,scope:a}){const l=t.get("toasts"),c=r("placement"),u=l.length>0;if(!u){e.get("dismissableCleanup")?.();return}if(u&&e.get("dismissableCleanup"))return;const h=w_(()=>wx(a,c),{defer:!0});e.set("dismissableCleanup",h)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{wx(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",r=>r.filter(a=>a.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){e.get("isFocusWithin")||!t.target||(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))}}}};function _5(e,t){const{state:r,send:a,prop:l,scope:c,context:u,computed:f}=e,h=r.hasTag("visible"),p=r.hasTag("paused"),m=u.get("mounted"),y=f("frontmost"),b=l("parent").computed("placement"),x=l("type"),E=l("stacked"),C=l("title"),T=l("description"),k=l("action"),[O,N="center"]=b.split("-");return{type:x,title:C,description:T,placement:b,visible:h,paused:p,closable:!!l("closable"),pause(){a({type:"PAUSE"})},resume(){a({type:"RESUME"})},dismiss(){a({type:"DISMISS",src:"programmatic"})},getRootProps(){return t.element({...Xa.root.attrs,dir:l("dir"),id:YE(c),"data-state":h?"open":"closed","data-type":x,"data-placement":b,"data-align":N,"data-side":O,"data-mounted":Fi(m),"data-paused":Fi(p),"data-first":Fi(y),"data-sibling":Fi(!y),"data-stack":Fi(E),"data-overlap":Fi(!E),role:"status","aria-atomic":"true","aria-describedby":T?kx(c):void 0,"aria-labelledby":C?Tx(c):void 0,tabIndex:0,style:T5(e,h),onKeyDown(z){z.defaultPrevented||z.key=="Escape"&&(a({type:"DISMISS",src:"keyboard"}),z.preventDefault())}})},getGhostBeforeProps(){return t.element({"data-ghost":"before",style:k5(e,h)})},getGhostAfterProps(){return t.element({"data-ghost":"after",style:R5()})},getTitleProps(){return t.element({...Xa.title.attrs,id:Tx(c)})},getDescriptionProps(){return t.element({...Xa.description.attrs,id:kx(c)})},getActionTriggerProps(){return t.button({...Xa.actionTrigger.attrs,type:"button",onClick(z){z.defaultPrevented||(k?.onClick?.(),a({type:"DISMISS",src:"user"}))}})},getCloseTriggerProps(){return t.button({id:C5(c),...Xa.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(z){z.defaultPrevented||a({type:"DISMISS",src:"user"})}})}}}var{not:I5}=Ir(),z5={props({props:e}){return lN(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:sh(e.duration,e.type)}},initialState({prop:e}){return e("type")==="loading"||e("duration")===1/0?"visible:persist":"visible"},context({prop:e,bindable:t}){return{remainingTime:t(()=>({defaultValue:sh(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}},refs(){return{closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}},computed:{zIndex:({prop:e})=>{const t=e("parent").context.get("toasts"),r=t.findIndex(a=>a.id===e("id"));return t.length-r},height:({prop:e})=>e("parent").context.get("heights").find(a=>a.id===e("id"))?.height??0,heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(r=>r.id===e("id")),frontmost:({prop:e})=>e("index")===0,heightBefore:({prop:e})=>{const t=e("parent").context.get("heights"),r=t.findIndex(a=>a.id===e("id"));return t.reduce((a,l,c)=>c>=r?a:a+l.height,0)},shouldPersist:({prop:e})=>e("type")==="loading"||e("duration")===1/0},watch({track:e,prop:t,send:r}){e([()=>t("message")],()=>{const a=t("message");a&&r({type:a,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{r({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:I5("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay({prop:e,send:t}){return qg(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay"))},waitForDuration({send:e,context:t,computed:r}){if(!r("shouldPersist"))return qg(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick({send:e}){return qg(()=>{e({type:"SHOW",src:"timer"})},0)},trackHeight({scope:e,prop:t}){let r;return xe(()=>{const a=Ox(e);if(!a)return;const l=()=>{const f=a.style.height;a.style.height="auto";const h=a.getBoundingClientRect().height;a.style.height=f;const p={id:t("id"),height:h};Nx(t("parent"),p)},c=e.getWin(),u=new c.MutationObserver(l);u.observe(a,{childList:!0,subtree:!0,characterData:!0}),r=()=>u.disconnect()}),()=>r?.()}},guards:{isLoadingType:({prop:e})=>e("type")==="loading",shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){xe(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:r}){queueMicrotask(()=>{const a=Ox(e);if(!a)return;const l=a.style.height;a.style.height="auto";const c=a.getBoundingClientRect().height;a.style.height=l,r.set("initialHeight",c);const u={id:t("id"),height:c};Nx(t("parent"),u)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:r}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",sh(r("duration"),r("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",r=>{const a=t.get("closeTimerStartTime"),l=Date.now()-a;return t.set("lastCloseStartTimerStartTime",Date.now()),r-l})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}};function Nx(e,t){const{id:r,height:a}=t;e.context.set("heights",l=>l.find(u=>u.id===r)?l.map(u=>u.id===r?{...u,height:a}:u):[{id:r,height:a},...l])}var D5=(e,t)=>({...t,...Uu(e)});function P5(e){const t=D5(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let r=[],a=[],l=new Set,c=[];const u=P=>(r.push(P),()=>{const Z=r.indexOf(P);r.splice(Z,1)}),f=P=>(r.forEach(Z=>Z(P)),P),h=P=>{if(a.length>=t.max){c.push(P);return}f(P),a.unshift(P)},p=()=>{for(;c.length>0&&a.length<t.max;){const P=c.shift();P&&(f(P),a.unshift(P))}},m=P=>{const Z=P.id??`toast:${K1()}`,se=a.find(oe=>oe.id===Z);return l.has(Z)&&l.delete(Z),se?a=a.map(oe=>oe.id===Z?f({...oe,...P,id:Z}):oe):h({id:Z,duration:t.duration,removeDelay:t.removeDelay,type:"info",...P,stacked:!t.overlap,gap:t.gap}),Z},y=P=>(l.add(P),P?(r.forEach(Z=>Z({id:P,dismiss:!0})),a=a.filter(Z=>Z.id!==P),p()):(a.forEach(Z=>{r.forEach(se=>se({id:Z.id,dismiss:!0}))}),a=[],c=[]),P);return{attrs:t,subscribe:u,create:m,update:(P,Z)=>m({id:P,...Z}),remove:y,dismiss:P=>{P!=null?a=a.map(Z=>Z.id===P?f({...Z,message:"DISMISS"}):Z):a=a.map(Z=>f({...Z,message:"DISMISS"}))},error:P=>m({...P,type:"error"}),success:P=>m({...P,type:"success"}),info:P=>m({...P,type:"info"}),warning:P=>m({...P,type:"warning"}),loading:P=>m({...P,type:"loading"}),getVisibleToasts:()=>a.filter(P=>!l.has(P.id)),getCount:()=>a.length,promise:(P,Z,se={})=>{if(!Z||!Z.loading){lo("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const oe=m({...se,...Z.loading,promise:P,type:"loading"});let L=!0,J;const le=Pc(P).then(async R=>{if(J=["resolve",R],V5(R)&&!R.ok){L=!1;const U=Pc(Z.error,`HTTP Error! status: ${R.status}`);m({...se,...U,id:oe,type:"error"})}else if(Z.success!==void 0){L=!1;const U=Pc(Z.success,R);m({...se,...U,id:oe,type:"success"})}}).catch(async R=>{if(J=["reject",R],Z.error!==void 0){L=!1;const U=Pc(Z.error,R);m({...se,...U,id:oe,type:"error"})}}).finally(()=>{L&&y(oe),Z.finally?.()});return{id:oe,unwrap:()=>new Promise((R,U)=>le.then(()=>J[0]==="reject"?U(J[1]):R(J[1])).catch(U))}},pause:P=>{P!=null?a=a.map(Z=>Z.id===P?f({...Z,message:"PAUSE"}):Z):a=a.map(Z=>f({...Z,message:"PAUSE"}))},resume:P=>{P!=null?a=a.map(Z=>Z.id===P?f({...Z,message:"RESUME"}):Z):a=a.map(Z=>f({...Z,message:"RESUME"}))},isVisible:P=>!l.has(P)&&!!a.find(Z=>Z.id===P),isDismissed:P=>l.has(P),expand:()=>{a=a.map(P=>f({...P,stacked:!0}))},collapse:()=>{a=a.map(P=>f({...P,stacked:!1}))}}}var V5=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ax={connect:N5,machine:A5};const M5=e=>P5(e),[L5,So]=ds({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),XE=w.forwardRef((e,t)=>{const r=So(),a=mt(r.getActionTriggerProps(),e);return F.jsx($t.button,{...a,ref:t})});XE.displayName="ToastActionTrigger";const KE=w.forwardRef((e,t)=>{const r=So(),a=mt(r.getCloseTriggerProps(),e);return F.jsx($t.button,{...a,ref:t})});KE.displayName="ToastCloseTrigger";const QE=w.forwardRef((e,t)=>{const r=So(),a=mt(r.getDescriptionProps(),e);return F.jsx($t.div,{...a,ref:t})});QE.displayName="ToastDescription";const ZE=w.forwardRef((e,t)=>{const r=So(),a=mt(r.getRootProps(),e);return F.jsxs("div",{...a,ref:t,children:[F.jsx("div",{...r.getGhostBeforeProps()}),e.children,F.jsx("div",{...r.getGhostAfterProps()})]})});ZE.displayName="ToastRoot";const JE=w.forwardRef((e,t)=>{const r=So(),a=mt(r.getTitleProps(),e);return F.jsx($t.div,{...a,ref:t})});JE.displayName="ToastTitle";const eC=w.forwardRef((e,t)=>{const{toaster:r,children:a,...l}=e,c=vS(),u=Gu(),f=Ju(Ax.machine,{store:r,id:w.useId(),dir:c?.dir,getRootNode:u?.getRootNode}),h=Ax.connect(f,Cp),p=mt(h.getGroupProps(),l);return F.jsx($t.div,{...p,ref:t,children:h.getToasts().map((m,y)=>F.jsx(tC,{value:m,parent:f,index:y,children:b=>a(b)},m.id))})});eC.displayName="Toaster";const tC=e=>{const t=Gu(),r={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},a=Ju(z5,{...r}),l=_5(a,Cp);return F.jsx(L5,{value:l,children:e.children(e.value)})};tC.displayName="ToastActor";var nC=ge("tooltip").parts("trigger","arrow","arrowTip","positioner","content");nC.build();var B5=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,H5=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,ch=e=>e.getById(B5(e)),_x=e=>e.getById(H5(e)),Hi=oN({id:null}),{and:$5,not:Ix}=Ir();$5("noVisibleTooltip",Ix("hasPointerMoveOpened")),Ix("hasPointerMoveOpened");he()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function rC(e,t=[]){const r=Object.assign({},e);for(const a of t)a in r&&delete r[a];return r}const F5=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[r,a]=e.split("/");if(!r||!a||r==="currentBg")return{invalid:!0,value:r};const l=t(`colors.${r}`),c=t.raw(`opacity.${a}`)?.value;if(!c&&isNaN(Number(a)))return{invalid:!0,value:r};const u=c?Number(c)*100+"%":`${a}%`,f=l??r;return{invalid:!1,color:f,value:`color-mix(in srgb, ${f} ${u}, transparent)`}},Ge=e=>(t,r)=>{const a=r.utils.colorMix(t);if(a.invalid)return{[e]:t};const l="--mix-"+e;return{[l]:a.value,[e]:`var(${l}, ${a.color})`}};function Vh(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Vh(r));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=Vh(e[r]);return t}function Mh(e,t){if(t==null)return e;for(const r of Object.keys(t))if(!(t[r]===void 0||r==="__proto__"))if(!Xt(e[r])&&Xt(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Xt(t[r]))Mh(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let a=0;for(;a<t[r].length;a++)Xt(e[r][a])&&Xt(t[r][a])?Mh(e[r][a],t[r][a]):e[r][a]=t[r][a]}else Object.assign(e,{[r]:t[r]});return e}function Eo(e,...t){for(const r of t)Mh(e,r);return e}const Lh=e=>e!=null;function ir(e,t,r={}){const{stop:a,getKey:l}=r;function c(u,f=[]){if(Xt(u)||Array.isArray(u)){const h={};for(const[p,m]of Object.entries(u)){const y=l?.(p,m)??p,b=[...f,y];if(a?.(u,b))return t(u,f);const x=c(m,b);Lh(x)&&(h[y]=x)}return h}return t(u,f)}return c(e)}function iC(e,t){return Array.isArray(e)?e.map(r=>Lh(r)?t(r):r):Xt(e)?ir(e,r=>t(r)):Lh(e)?t(e):e}const Wc=["value","type","description"],j5=e=>e&&typeof e=="object"&&!Array.isArray(e),aC=(...e)=>{const t=Eo({},...e.map(Vh));return t.theme?.tokens&&ir(t.theme.tokens,r=>{const c=Object.keys(r).filter(f=>!Wc.includes(f)).length>0,u=Wc.some(f=>r[f]!=null);return c&&u&&(r.DEFAULT||(r.DEFAULT={}),Wc.forEach(f=>{var h;r[f]!=null&&((h=r.DEFAULT)[f]||(h[f]=r[f]),delete r[f])})),r},{stop(r){return j5(r)&&Object.keys(r).some(a=>Wc.includes(a)||a!==a.toLowerCase()&&a!==a.toUpperCase())}}),t},U5=e=>e,vt=e=>e,ve=e=>e,G5=e=>e,W5=e=>e,Co=e=>e,q5=e=>e,Y5=e=>e,X5=e=>e;function oC(){const e=t=>t;return new Proxy(e,{get(){return e}})}const gt=oC(),Fp=oC(),lC=e=>e,K5=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function Q5(e){return`${e}`.replace(K5,t=>`\\${t}`)}const Z5=/[A-Z]/g;function J5(e){return e.replace(Z5,t=>`-${t.toLowerCase()}`)}function sC(e,t={}){const{fallback:r="",prefix:a=""}=t,l=J5(["-",a,Q5(e)].filter(Boolean).join("-"));return{var:l,ref:`var(${l}${r?`, ${r}`:""})`}}const eD=e=>/^var\(--.+\)$/.test(e),Ct=(e,t)=>t!=null?`${e}(${t})`:t,$i=e=>{if(eD(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},zx=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){const a=r("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":a,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":a,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":a,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":a,[e]:{outline:"none"}}}[t]??{}}}),tD=Ge("borderColor"),wr=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),nD=U5({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),eo=sC("bg-currentcolor"),Dx=e=>e===eo.ref||e==="currentBg",Ue=e=>({...e("colors"),currentBg:eo}),rD=lC({conditions:nD,utilities:{background:{values:Ue,shorthand:["bg"],transform(e,t){if(Dx(t.raw))return{background:eo.ref};const r=Ge("background")(e,t);return{...r,[eo.var]:r?.background}}},backgroundColor:{values:Ue,shorthand:["bgColor"],transform(e,t){if(Dx(t.raw))return{backgroundColor:eo.ref};const r=Ge("backgroundColor")(e,t);return{...r,[eo.var]:r?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:Ue,transform:Ge("--gradient-from")},gradientTo:{values:Ue,transform:Ge("--gradient-to")},gradientVia:{values:Ue,transform(e,t){return{...Ge("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:Ue,transform:Ge("borderColor")},borderTopColor:{values:Ue,transform:Ge("borderTopColor")},borderBlockStartColor:{values:Ue,transform:Ge("borderBlockStartColor")},borderBottomColor:{values:Ue,transform:Ge("borderBottomColor")},borderBlockEndColor:{values:Ue,transform:Ge("borderBlockEndColor")},borderLeftColor:{values:Ue,transform:Ge("borderLeftColor")},borderInlineStartColor:{values:Ue,shorthand:["borderStartColor"],transform:Ge("borderInlineStartColor")},borderRightColor:{values:Ue,transform:Ge("borderRightColor")},borderInlineEndColor:{values:Ue,shorthand:["borderEndColor"],transform:Ge("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:Ue,transform:Ge("color")},fill:{values:Ue,transform:Ge("fill")},stroke:{values:Ue,transform:Ge("stroke")},accentColor:{values:Ue,transform:Ge("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:Ue,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":tD(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:Ue,transform:Ge("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Ct("blur",e)})},brightness:{transform:e=>({"--brightness":Ct("brightness",e)})},contrast:{transform:e=>({"--contrast":Ct("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Ct("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Ct("hue-rotate",$i(e))})},invert:{transform:e=>({"--invert":Ct("invert",e)})},saturate:{transform:e=>({"--saturate":Ct("saturate",e)})},sepia:{transform:e=>({"--sepia":Ct("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Ct("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Ct("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Ct("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Ct("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Ct("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Ct("hue-rotate",$i(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Ct("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Ct("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Ct("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Ct("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:Ue,transform:Ge("outlineColor")},focusRing:zx("&:is(:focus, [data-focus])"),focusVisibleRing:zx("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:Ue,transform:Ge("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:r})=>({[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:r}){return{[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:Ue,transform:Ge("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:Ue,transform:Ge("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:Ue,transform:Ge("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:Ue,transform:Ge("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":$i(e)})},skewY:{transform:e=>({"--skew-y":$i(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:$i(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":$i(e)}}},rotateY:{transform(e){return{"--rotate-y":$i(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return wr("all");case"position":return wr("left, right, top, bottom, inset-inline, inset-block");case"colors":return wr("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return wr("opacity");case"shadow":return wr("box-shadow");case"transform":return wr("transform");case"size":return wr("width, height");case"backgrounds":return wr("background, background-color, background-image, background-position");case"common":return wr("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return iD[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:Ue,transform:Ge("caretColor")},cursor:{values:"cursor"}}}),iD={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var aD="",oD=aD.split(","),lD="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",sD=lD.split(",").concat(oD),cD=new Map(sD.map(e=>[e,!0]));function uD(e){const t=Object.create(null);return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var dD=/&|@/,fD=uD(e=>cD.has(e)||e.startsWith("--")||dD.test(e));function cC(e,t){const r={};return ir(e,(a,l)=>{a&&(r[l.join(".")]=a.value)},{stop:t}),r}var uh,Px;function gD(){if(Px)return uh;Px=1,uh=c,c.default=c,c.stable=p,c.stableStringify=p;var e="[...]",t="[Circular]",r=[],a=[];function l(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function c(b,x,E,C){typeof C>"u"&&(C=l()),f(b,"",0,[],void 0,0,C);var T;try{a.length===0?T=JSON.stringify(b,x,E):T=JSON.stringify(b,y(x),E)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var k=r.pop();k.length===4?Object.defineProperty(k[0],k[1],k[3]):k[0][k[1]]=k[2]}}return T}function u(b,x,E,C){var T=Object.getOwnPropertyDescriptor(C,E);T.get!==void 0?T.configurable?(Object.defineProperty(C,E,{value:b}),r.push([C,E,x,T])):a.push([x,E,b]):(C[E]=b,r.push([C,E,x]))}function f(b,x,E,C,T,k,O){k+=1;var N;if(typeof b=="object"&&b!==null){for(N=0;N<C.length;N++)if(C[N]===b){u(t,b,x,T);return}if(typeof O.depthLimit<"u"&&k>O.depthLimit){u(e,b,x,T);return}if(typeof O.edgesLimit<"u"&&E+1>O.edgesLimit){u(e,b,x,T);return}if(C.push(b),Array.isArray(b))for(N=0;N<b.length;N++)f(b[N],N,N,C,b,k,O);else{var z=Object.keys(b);for(N=0;N<z.length;N++){var A=z[N];f(b[A],A,N,C,b,k,O)}}C.pop()}}function h(b,x){return b<x?-1:b>x?1:0}function p(b,x,E,C){typeof C>"u"&&(C=l());var T=m(b,"",0,[],void 0,0,C)||b,k;try{a.length===0?k=JSON.stringify(T,x,E):k=JSON.stringify(T,y(x),E)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var O=r.pop();O.length===4?Object.defineProperty(O[0],O[1],O[3]):O[0][O[1]]=O[2]}}return k}function m(b,x,E,C,T,k,O){k+=1;var N;if(typeof b=="object"&&b!==null){for(N=0;N<C.length;N++)if(C[N]===b){u(t,b,x,T);return}try{if(typeof b.toJSON=="function")return}catch{return}if(typeof O.depthLimit<"u"&&k>O.depthLimit){u(e,b,x,T);return}if(typeof O.edgesLimit<"u"&&E+1>O.edgesLimit){u(e,b,x,T);return}if(C.push(b),Array.isArray(b))for(N=0;N<b.length;N++)m(b[N],N,N,C,b,k,O);else{var z={},A=Object.keys(b).sort(h);for(N=0;N<A.length;N++){var B=A[N];m(b[B],B,N,C,b,k,O),z[B]=b[B]}if(typeof T<"u")r.push([T,x,b]),T[x]=z;else return z}C.pop()}}function y(b){return b=typeof b<"u"?b:function(x,E){return E},function(x,E){if(a.length>0)for(var C=0;C<a.length;C++){var T=a[C];if(T[1]===x&&T[0]===E){E=T[2],a.splice(C,1);break}}return b.call(this,x,E)}}return uh}var hD=gD();const pD=_1(hD),Ln=e=>{const t=Object.create(null);function r(...a){const l=a.map(c=>pD(c)).join("|");return t[l]===void 0&&(t[l]=e(...a)),t[l]}return r},uC=16,Au="px",jp="em",Xl="rem";function dC(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Au}|${jp}|${Xl}`);return e.match(new RegExp(`${t.source}(${r.source})`))?.[1]}function fC(e=""){if(typeof e=="number")return`${e}px`;const t=dC(e);if(!t||t===Au)return e;if(t===jp||t===Xl)return`${parseFloat(e)*uC}${Au}`}function gC(e=""){const t=dC(e);if(!t||t===Xl)return e;if(t===jp)return`${parseFloat(e)}${Xl}`;if(t===Au)return`${parseFloat(e)/uC}${Xl}`}const mD=e=>e.charAt(0).toUpperCase()+e.slice(1);function vD(e){const t=bD(e),r=Object.fromEntries(t);function a(b){return r[b]}function l(b){return Ua(a(b))}function c(){const b=Object.keys(r),x=yD(b),E=b.flatMap(C=>{const T=a(C),k=[`${C}Down`,Ua({max:su(T.min)})],O=[C,Ua({min:T.min})],N=[`${C}Only`,l(C)];return[O,N,k]}).filter(([,C])=>C!=="").concat(x.map(([C,T])=>{const k=a(C),O=a(T);return[`${C}To${mD(T)}`,Ua({min:k.min,max:su(O.min)})]}));return Object.fromEntries(E)}function u(){const b=c();return Object.fromEntries(Object.entries(b))}const f=u(),h=b=>f[b];function p(){return["base",...Object.keys(r)]}function m(b){return Ua({min:a(b).min})}function y(b){return Ua({max:su(a(b).min)})}return{values:Object.values(r),only:l,keys:p,conditions:f,getCondition:h,up:m,down:y}}function su(e){const t=parseFloat(fC(e)??"")-.04;return gC(`${t}px`)}function bD(e){return Object.entries(e).sort(([,r],[,a])=>parseInt(r,10)<parseInt(a,10)?-1:1).map(([r,a],l,c)=>{let u=null;return l<=c.length-1&&(u=c[l+1]?.[1]),u!=null&&(u=su(u)),[r,{name:r,min:gC(a),max:u}]})}function yD(e){const t=[];return e.forEach((r,a)=>{let l=a;l++;let c=e[l];for(;c;)t.push([r,c]),l++,c=e[l]}),t}function Ua({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const xD=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,a])=>t(r,a))),SD=e=>{const{breakpoints:t,conditions:r={}}=e,a=xD(r,(m,y)=>[`_${m}`,y]),l=Object.assign({},a,t.conditions);function c(){return Object.keys(l)}function u(m){return c().includes(m)||/^@|&|&$/.test(m)||m.startsWith("_")}function f(m){return m.filter(y=>y!=="base").sort((y,b)=>{const x=u(y),E=u(b);return x&&!E?1:!x&&E?-1:0})}function h(m){return m.startsWith("@breakpoint")?t.getCondition(m.replace("@breakpoint ","")):m}function p(m){return Reflect.get(l,m)||m}return{keys:c,sort:f,has:u,resolve:p,breakpoints:t.keys(),expandAtRule:h}},hC=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
|
|
73
|
+
)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
|
|
74
|
+
)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),ED=hC("width"),CD=hC("height"),pC=e=>({isMin:$x(e.minMax,e.maxMin,e.min),isMax:$x(e.maxMin,e.minMax,e.max)}),{isMin:Bh,isMax:Vx}=pC(ED),{isMin:Hh,isMax:Mx}=pC(CD),Lx=/print/i,Bx=/^print$/i,wD=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,OD=/(\d)/,Ul=Number.MAX_VALUE,TD={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function Hx(e){const t=wD.exec(e)||(Bh(e)||Hh(e)?OD.exec(e):null);if(!t)return Ul;if(t[0]==="0")return 0;const r=parseFloat(t[1]),a=t[2];return r*(TD[a]||1)}function $x(e,t,r){return a=>e.test(a)||!t.test(a)&&r.test(a)}function kD(e,t){const r=Lx.test(e),a=Bx.test(e),l=Lx.test(t),c=Bx.test(t);return r&&l?!a&&c?1:a&&!c?-1:e.localeCompare(t):r?1:l?-1:null}const RD=Ln((e,t)=>{const r=kD(e,t);if(r!==null)return r;const a=Bh(e)||Hh(e),l=Vx(e)||Mx(e),c=Bh(t)||Hh(t),u=Vx(t)||Mx(t);if(a&&u)return-1;if(l&&c)return 1;const f=Hx(e),h=Hx(t);return f===Ul&&h===Ul?e.localeCompare(t):f===Ul?1:h===Ul?-1:f!==h?f>h?l?-1:1:l?1:-1:e.localeCompare(t)});function Fx(e){return e.sort(([t],[r])=>RD(t,r))}function mC(e){const t=[],r=[],a={};for(const[u,f]of Object.entries(e))u.startsWith("@media")?t.push([u,f]):u.startsWith("@container")?r.push([u,f]):Xt(f)?a[u]=mC(f):a[u]=f;const l=Fx(t),c=Fx(r);return{...a,...Object.fromEntries(l),...Object.fromEntries(c)}}const vC=/\s*!(important)?/i,ND=e=>nr(e)?vC.test(e):!1,AD=e=>nr(e)?e.replace(vC,"").trim():e;function bC(e){const{transform:t,conditions:r,normalize:a}=e,l=zD(e);return Ln(function(...u){const f=l(...u),h=a(f),p=Object.create(null);return ir(h,(m,y)=>{const b=ND(m);if(m==null)return;const[x,...E]=r.sort(y).map(r.resolve);b&&(m=AD(m));let C=t(x,m)??Object.create(null);C=ir(C,T=>nr(T)&&b?`${T} !important`:T,{getKey:T=>r.expandAtRule(T)}),_D(p,E.flat(),C)}),mC(p)})}function _D(e,t,r){let a=e;for(const l of t)l&&(a[l]||(a[l]=Object.create(null)),a=a[l]);Eo(a,r)}function ID(...e){return e.filter(t=>Xt(t)&&Object.keys(ss(t)).length>0)}function zD(e){function t(r){const a=ID(...r);return a.length===1?a:a.map(l=>e.normalize(l))}return Ln(function(...a){return Eo({},...t(a))})}const yC=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function DD(e){const{css:t,conditions:r,normalize:a,layers:l}=e;function c(f={}){const{base:h,variants:p,defaultVariants:m,compoundVariants:y}=yC(f),b=bC({conditions:r,normalize:a,transform(O,N){return p[O]?.[N]}}),x=(O={})=>{const N=a({...m,...ss(O)});let z={...h};Eo(z,b(N));const A=u(y,N);return l.wrap("recipes",t(z,A))},E=Object.keys(p),C=O=>{const N=rC(O,["recipe"]),[z,A]=ro(N,E);return E.includes("colorPalette")||(z.colorPalette=O.colorPalette||m.colorPalette),E.includes("orientation")&&(A.orientation=O.orientation),[z,A]},T=Object.fromEntries(Object.entries(p).map(([O,N])=>[O,Object.keys(N)]));return Object.assign(O=>t(x(O)),{className:f.className,__cva__:!0,variantMap:T,variantKeys:E,raw:x,config:f,splitVariantProps:C,merge(O){return c(PD(e)(this,O))}})}function u(f,h){let p={};return f.forEach(m=>{Object.entries(m).every(([b,x])=>b==="css"?!0:(Array.isArray(x)?x:[x]).some(C=>h[b]===C))&&(p=t(p,m.css))}),p}return c}function PD(e){const{css:t}=e;return function(a,l){const c=yC(l.config),u=W1(a.variantKeys,Object.keys(l.variants)),f=t(a.base,c.base),h=Object.fromEntries(u.map(b=>[b,t(a.config.variants[b],c.variants[b])])),p=Eo(a.config.defaultVariants,c.defaultVariants),m=[...a.compoundVariants,...c.compoundVariants];return{className:zn(a.className,l.className),base:f,variants:h,defaultVariants:p,compoundVariants:m}}}const VD={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},jx={reset:0,base:1,tokens:2,recipes:3};function MD(e){const t=e.layers??VD,a=Object.values(t).sort((l,c)=>jx[l]-jx[c]);return{names:a,atRule:`@layer ${a.join(", ")};`,wrap(l,c){return e.disableLayers?c:{[`@layer ${t[l]}`]:c}}}}function LD(e){const{utility:t,normalize:r}=e,{hasShorthand:a,resolveShorthand:l}=t;return function(c){return ir(c,r,{stop:u=>Array.isArray(u),getKey:a?l:void 0})}}function BD(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:a="parent"}=Xt(t)?t:{};let l="";r&&a==="parent"?l=`${r} `:r&&a==="element"&&(l=`&${r}`);const c={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},u={[r||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(a==="element"){const f=Object.entries(c).reduce((h,[p,m])=>(h[p]={[l]:m},h),{});Object.assign(u,f)}else l?u[l]=c:Object.assign(u,c);return u}function HD(e){const{conditions:t,isValidProperty:r}=e;return function(l){return ir(l,c=>c,{getKey:(c,u)=>Xt(u)&&!t.has(c)&&!r(c)?$D(c).map(f=>"&"+f).join(", "):c})}}function $D(e){const t=[];let r=0,a="",l=!1;for(let c=0;c<e.length;c++){const u=e[c];if(u==="\\"&&!l){l=!0,a+=u;continue}if(l){l=!1,a+=u;continue}u==="("?r++:u===")"&&r--,u===","&&r===0?(t.push(a.trim()),a=""):a+=u}return a&&t.push(a.trim()),t}const FD=(e={})=>{const t=l=>({base:e.base?.[l]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?jD(e.compoundVariants,l):[]}),a=(e.slots??[]).map(l=>[l,t(l)]);for(const[l,c]of Object.entries(e.variants??{}))for(const[u,f]of Object.entries(c))a.forEach(([h,p])=>{var m;(m=p.variants)[l]??(m[l]={}),p.variants[l][u]=f[h]??{}});return Object.fromEntries(a)},jD=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function UD(e){const{cva:t}=e;return function(a={}){const l=Object.entries(FD(a)).map(([y,b])=>[y,t(b)]);function c(y){const b=l.map(([x,E])=>[x,E(y)]);return Object.fromEntries(b)}const u=a.variants??{},f=Object.keys(u);function h(y){const b=rC(y,["recipe"]),[x,E]=ro(b,f);return f.includes("colorPalette")||(x.colorPalette=y.colorPalette||a.defaultVariants?.colorPalette),f.includes("orientation")&&(E.orientation=y.orientation),[x,E]}const p=Object.fromEntries(Object.entries(u).map(([y,b])=>[y,Object.keys(b)]));let m={};return a.className&&(m=Object.fromEntries(a.slots.map(y=>[y,`${a.className}__${y}`]))),Object.assign(c,{variantMap:p,variantKeys:f,splitVariantProps:h,classNameMap:m})}}const GD=()=>e=>Array.from(new Set(e)),WD=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,qD=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},xC=e=>(e+"").replace(WD,qD),SC=(e,t)=>{let r="",a=0,l="char",c="",u="";const f=[];for(;a<e.length;){const h=e[a];if(h==="{"){const m=e.indexOf("}",a);if(m===-1)break;const y=e.slice(a+1,m),b=t(y);r+=b??y,a=m+1;continue}if(l==="token"&&h===","){e[a]===""&&a++,l="fallback",f.push(l);const m=t(c);m?.endsWith(")")&&(r+=m.slice(0,-1)),c="",u="";continue}if(l==="fallback"&&u+h===", var("){const b=YD(e.slice(a+1))+a+1,x=e.slice(a+1,b);if(b===-1)break;r+=", var("+x+")",a=b+1,l=f.pop()??l,u="";continue}if(l==="token"||l==="fallback"){if(a++,h===")"){l=f.pop()??l??"char",u+=h;const m=c&&(t(c)??xC(c));if(u){if(u=u.slice(1).trim(),!u.startsWith("token(")&&u.endsWith(")")&&(u=u.slice(0,-1)),u.includes("token(")){const b=SC(u,t);b&&(u=b.slice(0,-1))}else if(u){const b=t(u);b&&(u=b)}}const y=r.at(-1);u?y?.trim()?r+=m.slice(0,-1)+(", "+u+")"):r+=u:r+=m||")",c="",u="",l="char";continue}l==="token"&&(c+=h),l==="fallback"&&(u+=h);continue}const p=e.indexOf("token(",a);if(p!==-1){const m=p+6;r+=e.slice(a,p),a=m,l="token",f.push(l);continue}r+=h,a++}return r},YD=e=>{let t=0;const r=["("];for(;t<e.length;){const a=e[t];if(a==="(")r.push(a);else if(a===")"&&(r.pop(),r.length===0))return t;t++}return t};function EC(e){const t={};return e.forEach((r,a)=>{r instanceof Map?t[a]=Object.fromEntries(r):t[a]=r}),t}const CC=/({([^}]*)})/g,XD=/[{}]/g,KD=/\w+\.\w+/,wC=e=>{if(!nr(e))return[];const t=e.match(CC);return t?t.map(r=>r.replace(XD,"")).map(r=>r.trim()):[]},QD=e=>CC.test(e);function OC(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((r,a)=>{const l=t[a];if(l.extensions.conditions)return r;const c=OC(l);return r.replace(`{${a}}`,c)},e.value),delete e.extensions.references,e.value}function TC(e){return Xt(e)&&e.reference?e.reference:String(e)}const sd=(e,...t)=>t.map(TC).join(` ${e} `).replace(/calc/g,""),Ux=(...e)=>`calc(${sd("+",...e)})`,Gx=(...e)=>`calc(${sd("-",...e)})`,$h=(...e)=>`calc(${sd("*",...e)})`,Wx=(...e)=>`calc(${sd("/",...e)})`,qx=e=>{const t=TC(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:$h(t,-1)},Ka=Object.assign(e=>({add:(...t)=>Ka(Ux(e,...t)),subtract:(...t)=>Ka(Gx(e,...t)),multiply:(...t)=>Ka($h(e,...t)),divide:(...t)=>Ka(Wx(e,...t)),negate:()=>Ka(qx(e)),toString:()=>e.toString()}),{add:Ux,subtract:Gx,multiply:$h,divide:Wx,negate:qx}),ZD={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:a,formatTokenName:l,registerToken:c}=e;r.filter(({extensions:f})=>f.category==="spacing").forEach(f=>{const h=f.path.slice(),p=a(h,t);if(nr(f.value)&&f.value==="0rem")return;const m=structuredClone(f);Object.assign(m.extensions,{negative:!0,prop:`-${f.extensions.prop}`,originalPath:h}),m.value=Ka.negate(p.ref);const y=m.path[m.path.length-1];y!=null&&(m.path[m.path.length-1]=`-${y}`),m.path&&(m.name=l(m.path)),c(m)})}},JD=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),eP={enforce:"post",transform(e){e.allTokens.filter(r=>JD.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:fC(r.value)})})}},tP={enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:a}=e,l=t.filter(({extensions:f})=>f.category==="colors"),c=new Map,u=new Map;l.forEach(f=>{const{colorPalette:h}=f.extensions;h&&(h.keys.forEach(p=>{c.set(a(p),p)}),h.roots.forEach(p=>{const m=a(p),y=u.get(m)||[];if(y.push(f),u.set(m,y),f.extensions.default&&p.length===1){const b=h.keys[0]?.filter(Boolean);if(!b.length)return;const x=p.concat(b);c.set(a(x),[])}}))}),c.forEach(f=>{const h=["colors","colorPalette",...f].filter(Boolean),p=a(h),m=a(h.slice(1));r({name:p,value:p,originalValue:p,path:h,extensions:{condition:"base",originalPath:h,category:"colors",prop:m,virtual:!0}},"pre")})}},nP={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},rP=[ZD,tP,eP,nP],iP={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:a}=t,{negative:l,originalPath:c}=e.extensions,u=l?c:e.path;return{cssVar:a(u.filter(Boolean),r)}}},aP={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:a}=t,l=wC(e.value);return l.length&&l.forEach(c=>{const u=a(c.split("."),r);e.value=e.value.replace(`{${u.ref}}`,u)}),e.value}},oP={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let r=e.path.slice();if(r.pop(),r.shift(),r.length===0){const f=[...e.path];f.shift(),r=f}if(r.length===0)return{};const a=r.reduce((f,h,p,m)=>{const y=m.slice(0,p+1);return f.push(y),f},[]),l=r[0],c=t.formatTokenName(r),u=e.path.slice(e.path.indexOf(l)+1).reduce((f,h,p,m)=>(f.push(m.slice(p)),f),[]);return u.length===0&&u.push([""]),{colorPalette:{value:c,roots:a,keys:u}}}},lP=[iP,aP,oP],Yx=e=>Xt(e)&&Object.prototype.hasOwnProperty.call(e,"value");function sP(e){return e?{breakpoints:iC(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,r])=>[`breakpoint-${t}`,{value:r}]))}:{breakpoints:{},sizes:{}}}function cP(e){const{prefix:t="",tokens:r={},semanticTokens:a={},breakpoints:l={}}=e,c=Q=>Q.join("."),u=(Q,ee)=>sC(Q.join("-"),{prefix:ee}),f=[],h=new Map,p=new Map,m=new Map,y=new Map,b=new Map,x=new Map,E=new Map,C=new Map,T=[];function k(Q,ee){f.push(Q),h.set(Q.name,Q),ee&&C.forEach(Se=>{Se.enforce===ee&&R(Se,Q)})}const O=sP(l),N=ss({...r,breakpoints:O.breakpoints,sizes:{...r.sizes,...O.sizes}});function z(){ir(N,(Q,ee)=>{const Se=ee.includes("DEFAULT");ee=Xx(ee);const Re=ee[0],_e=c(ee),it=nr(Q)?{value:Q}:Q,Jt={value:it.value,originalValue:it.value,name:_e,path:ee,extensions:{condition:"base",originalPath:ee,category:Re,prop:c(ee.slice(1))}};Se&&(Jt.extensions.default=!0),k(Jt)},{stop:Yx}),ir(a,(Q,ee)=>{const Se=ee.includes("DEFAULT");ee=kC(Xx(ee));const Re=ee[0],_e=c(ee),it=nr(Q.value)?{value:{base:Q.value}}:Q,Jt={value:it.value.base||"",originalValue:it.value.base||"",name:_e,path:ee,extensions:{originalPath:ee,category:Re,conditions:it.value,condition:"base",prop:c(ee.slice(1))}};Se&&(Jt.extensions.default=!0),k(Jt)},{stop:Yx})}function A(Q){return h.get(Q)}function B(Q){const{condition:ee}=Q.extensions;ee&&(p.has(ee)||p.set(ee,new Set),p.get(ee).add(Q))}function j(Q){const{category:ee,prop:Se}=Q.extensions;ee&&(E.has(ee)||E.set(ee,new Map),E.get(ee).set(Se,Q))}function q(Q){const{condition:ee,negative:Se,virtual:Re,cssVar:_e}=Q.extensions;Se||Re||!ee||!_e||(m.has(ee)||m.set(ee,new Map),m.get(ee).set(_e.var,Q.value))}function X(Q){const{category:ee,prop:Se,cssVar:Re,negative:_e}=Q.extensions;if(!ee)return;x.has(ee)||x.set(ee,new Map);const it=_e?Q.extensions.conditions?Q.originalValue:Q.value:Re.ref;x.get(ee).set(Se,it),b.set([ee,Se].join("."),it)}function te(Q){const{colorPalette:ee,virtual:Se,default:Re}=Q.extensions;!ee||Se||ee.roots.forEach(_e=>{const it=c(_e);y.has(it)||y.set(it,new Map);const Jt=dP([...Q.path],[..._e]),Zi=c(Jt),Ro=A(Zi);if(!Ro||!Ro.extensions.cssVar)return;const{var:Sn}=Ro.extensions.cssVar;if(y.get(it).set(Sn,Q.extensions.cssVar.ref),Re&&_e.length===1){const Sd=c(["colors","colorPalette"]),No=A(Sd);if(!No)return;const ys=c(Q.path),vi=A(ys);if(!vi)return;const xs=ee.keys[0]?.filter(Boolean);if(!xs.length)return;const Ji=c(_e.concat(xs));y.has(Ji)||y.set(Ji,new Map),y.get(Ji).set(No.extensions.cssVar.var,vi.extensions.cssVar.ref)}})}let K={};function P(){f.forEach(Q=>{B(Q),j(Q),q(Q),X(Q),te(Q)}),K=EC(x)}const Z=(Q,ee)=>{if(!Q||typeof Q!="string")return{invalid:!0,value:Q};const[Se,Re]=Q.split("/");if(!Se||!Re)return{invalid:!0,value:Se};const _e=ee(Se),it=A(`opacity.${Re}`)?.value;if(!it&&isNaN(Number(Re)))return{invalid:!0,value:Se};const Jt=it?Number(it)*100+"%":`${Re}%`,Zi=_e??Se;return{invalid:!1,color:Zi,value:`color-mix(in srgb, ${Zi} ${Jt}, transparent)`}},se=Ln((Q,ee)=>b.get(Q)??ee),oe=Ln(Q=>K[Q]||null),L=Ln(Q=>SC(Q,ee=>{if(!ee)return;if(ee.includes("/")){const Re=Z(ee,_e=>se(_e));if(Re.invalid)throw new Error("Invalid color mix at "+ee+": "+Re.value);return Re.value}const Se=se(ee);return Se||(KD.test(ee)?xC(ee):ee)})),J={prefix:t,allTokens:f,tokenMap:h,registerToken:k,getByName:A,formatTokenName:c,formatCssVar:u,flatMap:b,cssVarMap:m,categoryMap:E,colorPaletteMap:y,getVar:se,getCategoryValues:oe,expandReferenceInValue:L};function le(...Q){Q.forEach(ee=>{C.set(ee.name,ee)})}function ie(...Q){T.push(...Q)}function R(Q,ee){if(ee.extensions.references||fp(Q.match)&&!Q.match(ee))return;const Re=(_e=>Q.transform(_e,J))(ee);switch(!0){case Q.type==="extensions":Object.assign(ee.extensions,Re);break;case Q.type==="value":ee.value=Re;break;default:ee[Q.type]=Re;break}}function U(Q){T.forEach(ee=>{ee.enforce===Q&&ee.transform(J)})}function re(Q){C.forEach(ee=>{ee.enforce===Q&&f.forEach(Se=>{R(ee,Se)})})}function ae(){f.forEach(Q=>{const ee=uP(Q);!ee||ee.length===0||ee.forEach(Se=>{k(Se)})})}function ue(Q){return wC(Q).map(Se=>A(Se)).filter(Boolean)}function ye(){f.forEach(Q=>{if(!QD(Q.value))return;const ee=ue(Q.value);Q.extensions.references=ee.reduce((Se,Re)=>(Se[Re.name]=Re,Se),{})})}function fe(){f.forEach(Q=>{OC(Q)})}function lt(){U("pre"),re("pre"),ae(),ye(),fe(),U("post"),re("post"),P()}return z(),le(...lP),ie(...rP),lt(),J}function Xx(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function kC(e){return e.filter(t=>t!=="base")}function uP(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return ir(t,(a,l)=>{const c=kC(l);if(!c.length)return;const u=structuredClone(e);u.value=a,u.extensions.condition=c.join(":"),r.push(u)}),r}function dP(e,t){const r=e.findIndex((a,l)=>t.every((c,u)=>e[l+u]===c));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}GD()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function fP(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,r]))}function gP(e){const t=fP(e.config),r=e.tokens,a=new Map,l=new Map;function c(q,X){t[q]=X,u(q,X)}const u=(q,X)=>{const te=C(X);te&&(l.set(q,te),y(q,X))},f=()=>{for(const[q,X]of Object.entries(t))X&&u(q,X)},h=()=>{for(const[q,X]of Object.entries(t)){const{shorthand:te}=X??{};if(!te)continue;(Array.isArray(te)?te:[te]).forEach(P=>a.set(P,q))}},p=()=>{const q=EC(r.colorPaletteMap);c("colorPalette",{values:Object.keys(q),transform:Ln(X=>q[X])})},m=new Map,y=(q,X)=>{if(!X)return;const te=C(X,P=>`type:Tokens["${P}"]`);if(typeof te=="object"&&te.type){m.set(q,new Set([`type:${te.type}`]));return}if(te){const P=new Set(Object.keys(te));m.set(q,P)}const K=m.get(q)??new Set;X.property&&m.set(q,K.add(`CssProperties["${X.property}"]`))},b=()=>{for(const[q,X]of Object.entries(t))X&&y(q,X)},x=(q,X)=>{const te=m.get(q)??new Set;m.set(q,new Set([...te,...X]))},E=()=>{const q=new Map;for(const[X,te]of m.entries()){if(te.size===0){q.set(X,["string"]);continue}const K=Array.from(te).map(P=>P.startsWith("CssProperties")?P:P.startsWith("type:")?P.replace("type:",""):JSON.stringify(P));q.set(X,K)}return q},C=(q,X)=>{const{values:te}=q,K=P=>{const Z=X?.(P);return Z?{[Z]:Z}:void 0};return nr(te)?K?.(te)??r.getCategoryValues(te)??{}:Array.isArray(te)?te.reduce((P,Z)=>(P[Z]=Z,P),{}):fp(te)?te(X?K:r.getCategoryValues):te},T=Ln((q,X)=>({[q]:q.startsWith("--")?r.getVar(X,X):X})),k=Object.assign(r.getVar,{raw:q=>r.getByName(q)}),O=Ln((q,X)=>{const te=A(q);nr(X)&&!X.includes("_EMO_")&&(X=r.expandReferenceInValue(X));const K=t[te];if(!K)return T(te,X);const P=l.get(te)?.[X];if(!K.transform)return T(q,P??X);const Z=se=>F5(se,k);return K.transform(P??X,{raw:X,token:k,utils:{colorMix:Z}})});function N(){h(),p(),f(),b()}N();const z=a.size>0,A=Ln(q=>a.get(q)??q);return{keys:()=>[...Array.from(a.keys()),...Object.keys(t)],hasShorthand:z,transform:O,shorthands:a,resolveShorthand:A,register:c,getTypes:E,addPropertyType:x}}const qt={};function hP(...e){const t=aC(...e),{theme:r={},utilities:a={},globalCss:l={},cssVarsRoot:c=":where(:root, :host)",cssVarsPrefix:u="chakra",preflight:f}=t,h=MD(t),p=cP({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:u}),m=vD(r.breakpoints??qt),y=SD({conditions:t.conditions??qt,breakpoints:m}),b=gP({config:a,tokens:p});function x(){const{textStyles:ie,layerStyles:R,animationStyles:U}=r,re=ss({textStyle:ie,layerStyle:R,animationStyle:U});for(const[ae,ue]of Object.entries(re)){const ye=cC(ue??qt,RC);b.register(ae,{values:Object.keys(ye),transform(fe){return N(ye[fe])}})}}x(),b.addPropertyType("animationName",Object.keys(r.keyframes??qt));const E=new Set(["css",...b.keys(),...y.keys()]),C=Ln(ie=>E.has(ie)||fD(ie)),T=ie=>Array.isArray(ie)?ie.reduce((R,U,re)=>{const ae=y.breakpoints[re];return U!=null&&(R[ae]=U),R},{}):ie,k=LD({utility:b,normalize:T}),O=HD({conditions:y,isValidProperty:C}),N=bC({transform:b.transform,conditions:y,normalize:k}),z=DD({css:N,conditions:y,normalize:k,layers:h}),A=UD({cva:z});function B(){const ie={};for(const[R,U]of p.cssVarMap.entries()){const re=Object.fromEntries(U);if(Object.keys(re).length===0)continue;const ae=R==="base"?c:y.resolve(R),ue=ae.startsWith("@"),ye=N(O({[ae]:ue?{[c]:re}:re}));Eo(ie,ye)}return h.wrap("tokens",ie)}function j(){const ie=Object.fromEntries(Object.entries(r.keyframes??qt).map(([U,re])=>[`@keyframes ${U}`,re])),R=Object.assign({},ie,N(O(l)));return h.wrap("base",R)}function q(ie){return ro(ie,C)}function X(){const ie=BD({preflight:f});return h.wrap("reset",ie)}const te=pP(p),K=(ie,R)=>te.get(ie)?.value||R;K.var=(ie,R)=>te.get(ie)?.variable||R;function P(ie,R){return r.recipes?.[ie]??R}function Z(ie,R){return r.slotRecipes?.[ie]??R}function se(ie){return Object.hasOwnProperty.call(r.recipes??qt,ie)}function oe(ie){return Object.hasOwnProperty.call(r.slotRecipes??qt,ie)}function L(ie){return se(ie)||oe(ie)}const J=[X(),j(),B()],le={layerStyles:dh(r.layerStyles??qt),textStyles:dh(r.textStyles??qt),animationStyles:dh(r.animationStyles??qt),tokens:Kx(p,Object.keys(r.tokens??qt),(ie,R)=>!ie.extensions.conditions&&!R.includes("colorPalette")),semanticTokens:Kx(p,Object.keys(r.semanticTokens??qt),ie=>!!ie.extensions.conditions),keyframes:Qx(r.keyframes??qt),breakpoints:Qx(r.breakpoints??qt)};return{$$chakra:!0,_config:t,_global:J,breakpoints:m,tokens:p,conditions:y,utility:b,token:K,properties:E,layers:h,isValidProperty:C,splitCssProps:q,normalizeValue:T,getTokenCss:B,getGlobalCss:j,getPreflightCss:X,css:N,cva:z,sva:A,getRecipe:P,getSlotRecipe:Z,hasRecipe:L,isRecipe:se,isSlotRecipe:oe,query:le}}function pP(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:a,virtual:l,conditions:c}=r.extensions,u=c||l?a.ref:r.value;t.set(r.name,{value:u,variable:a.ref})}),t}const RC=e=>Xt(e)&&"value"in e,dh=e=>({list(){return Object.keys(cC(e,RC))},search(t){return this.list().filter(r=>r.includes(t))}}),Kx=(e,t,r)=>({categoryKeys:t,list(a){return Array.from(e.categoryMap.get(a)?.entries()??[]).reduce((l,[c,u])=>(r(u,c)&&l.push(c),l),[])},search(a,l){return this.list(a).filter(c=>c.includes(l))}}),Qx=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(r=>r.includes(t))}}),mP={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},fh="var(--chakra-empty,/*!*/ /*!*/)",vP=W5({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":fh,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,fh])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,fh])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),bP=X5({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),yP=Y5({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Up=vt({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),xP=vt({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Nt=vt({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:SP,defaultVariants:EP}=Up,CP=vt({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:SP,defaultVariants:EP}),NC=vt({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),wP=vt({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),OP=vt({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),TP=vt({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),ut=vt({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),kP=vt({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:ut.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),RP=vt({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),NP=vt({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),AP=vt({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),At=vt({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),_P=vt({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),IP=vt({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),zP=vt({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),DP=vt({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),PP=vt({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),VP={badge:Up,button:xP,code:CP,container:wP,heading:OP,input:ut,inputAddon:kP,kbd:RP,link:NP,mark:AP,separator:_P,skeleton:IP,skipNavLink:zP,spinner:DP,textarea:PP,icon:TP,checkmark:Nt,radiomark:At,colorSwatch:NC},MP=Fp.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),LP=Fp.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),BP=Fp.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),HP=HS.extendWith("itemBody"),$P=ge("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),FP=ge("alert").parts("title","description","root","indicator","content"),jP=ge("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),UP=ge("blockquote").parts("root","icon","content","caption"),GP=ge("card").parts("root","header","body","footer","title","description"),WP=ge("checkbox-card",["root","control","label","description","addon","indicator","content"]),qP=ge("data-list").parts("root","item","itemLabel","itemValue"),YP=Lp.extendWith("header","body","footer","backdrop"),XP=Lp.extendWith("header","body","footer","backdrop"),KP=lE.extendWith("textarea"),QP=ge("empty-state",["root","content","indicator","title","description"]),ZP=sE.extendWith("requiredIndicator"),JP=cE.extendWith("content"),eV=uE.extendWith("itemContent","dropzoneContent","fileText"),tV=ge("list").parts("root","item","indicator"),nV=pE.extendWith("itemCommand"),rV=ge("select").parts("root","field","indicator"),iV=zE.extendWith("header","body","footer"),AC=$p.extendWith("itemAddon","itemIndicator"),aV=AC.extendWith("itemContent","itemDescription"),oV=$E.extendWith("itemIndicator"),lV=UE.extendWith("indicatorGroup"),sV=JI.extendWith("indicatorGroup","empty"),cV=WE.extendWith("markerIndicator"),uV=ge("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),dV=ge("status").parts("root","indicator"),fV=ge("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),gV=qE.extendWith("indicator"),hV=ge("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),pV=ge("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),mV=ge("tabs").parts("root","trigger","list","content","contentGroup","indicator"),vV=ge("tag").parts("root","label","closeTrigger","startElement","endElement"),bV=ge("timeline").parts("root","item","content","separator","indicator","connector","title","description"),yV=mI.extendWith("channelText"),xV=ge("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);YS.extendWith("valueText");const SV=pz,EV=ve({className:"chakra-accordion",slots:HP.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),CV=ve({className:"chakra-action-bar",slots:$P.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),wV=ve({slots:FP.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),OV=ve({slots:jS.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),TV=ve({className:"chakra-blockquote",slots:UP.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),kV=ve({className:"chakra-breadcrumb",slots:jP.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),RV=ve({className:"chakra-card",slots:GP.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),NV=ve({slots:pI.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Nt.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Nt.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Nt.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Nt.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Nt.variants?.size?.lg}},variant:{outline:{control:Nt.variants?.variant?.outline},solid:{control:Nt.variants?.variant?.solid},subtle:{control:Nt.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),AV=ve({slots:WP.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Nt.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:Nt.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Nt.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Nt.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:Nt.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Nt.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:Nt.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Nt.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),_V=ve({slots:xV.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),IV=ve({slots:wS.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),zV=ve({className:"colorPicker",slots:yV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...NC.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...ut.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:ut.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:ut.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:ut.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:ut.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:ut.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:ut.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:ut.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:ut.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:ut.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),DV=ve({className:"chakra-combobox",slots:sV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),PV=ve({slots:qP.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),VV=ve({slots:YP.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),MV=ve({slots:XP.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),Zx=Co({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),LV=ve({slots:KP.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Zx,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Zx,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),BV=ve({slots:QP.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),HV=ve({className:"chakra-field",slots:ZP.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),$V=ve({className:"fieldset",slots:JP.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),FV=ve({className:"chakra-file-upload",slots:eV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),jV=ve({className:"chakra-hover-card",slots:dE.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),UV=ve({className:"chakra-list",slots:tV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),GV=ve({className:"chakra-listbox",slots:SV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),WV=ve({className:"chakra-menu",slots:nV.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),cu=ve({className:"chakra-select",slots:lV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),qV=ve({className:"chakra-native-select",slots:rV.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:cu.variants?.variant.outline.trigger},subtle:{field:cu.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:cu.defaultVariants});function Fh(e,t){const r={};for(const a in e){const l=t(a,e[a]);r[l[0]]=l[1]}return r}const Jx=Co({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),YV=ve({className:"chakra-number-input",slots:xE.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...ut.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...Jx,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Jx,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:ut.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:ut.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:ut.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:ut.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Fh(ut.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:e1,defaultVariants:XV}=ut,KV=ve({className:"chakra-pin-input",slots:CE.keys(),base:{input:{...ut.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Fh(e1.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Fh(e1.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:XV}),QV=ve({className:"chakra-popover",slots:iV.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),ZV=ve({slots:Hp.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),JV=ve({className:"chakra-progress-circle",slots:Hp.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),eM=ve({slots:HE.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),tM=ve({className:"chakra-radio-card",slots:aV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:At.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:At.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:At.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:At.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:At.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:At.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:At.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:At.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),nM=ve({className:"chakra-radio-group",slots:AC.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:At.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:At.variants?.variant?.outline},subtle:{itemControl:At.variants?.variant?.subtle},solid:{itemControl:At.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:At.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:At.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:At.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:At.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),rM=ve({className:"chakra-rating-group",slots:oV.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),iM=ve({className:"chakra-scroll-area",slots:FE.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),aM=ve({className:"chakra-segment-group",slots:jE.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),oM=ve({className:"chakra-slider",slots:cV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),lM=ve({className:"chakra-stat",slots:uV.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),sM=ve({className:"chakra-status",slots:dV.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),cM=ve({className:"chakra-steps",slots:fV.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),uM=ve({slots:gV.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),dM=ve({className:"chakra-table",slots:hV.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),fM=ve({slots:mV.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),qc=Up.variants?.variant,gM=ve({slots:vV.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:qc?.subtle},solid:{root:qc?.solid},outline:{root:qc?.outline},surface:{root:qc?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),hM=ve({slots:bV.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),pM=ve({slots:pV.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),mM=ve({slots:nC.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),t1=Co({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),n1=Co({flex:"1"}),r1=Co({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),i1=Co({_selected:{layerStyle:"fill.solid"}}),vM=ve({slots:fE.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:t1,item:t1,itemText:n1,branchText:n1,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:r1,item:r1},solid:{branchControl:i1,item:i1}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),bM={accordion:EV,actionBar:CV,alert:wV,avatar:OV,blockquote:TV,breadcrumb:kV,card:RV,checkbox:NV,checkboxCard:AV,codeBlock:_V,collapsible:IV,dataList:PV,dialog:VV,drawer:MV,editable:LV,emptyState:BV,field:HV,fieldset:$V,fileUpload:FV,hoverCard:jV,list:UV,listbox:GV,menu:WV,nativeSelect:qV,numberInput:YV,pinInput:KV,popover:QV,progress:ZV,progressCircle:JV,radioCard:tM,radioGroup:nM,ratingGroup:rM,scrollArea:iM,segmentGroup:aM,select:cu,combobox:DV,slider:oM,stat:lM,steps:cM,switch:uM,table:dM,tabs:fM,tag:gM,toast:pM,tooltip:mM,status:sM,timeline:hM,colorPicker:zV,qrCode:eM,treeView:vM},yM=q5({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),xM=gt.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),SM=gt.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),EM=gt.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),CM=gt.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),wM=gt.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),OM=gt.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),TM=gt.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),kM=gt.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),RM=gt.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),NM=gt.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),a1='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',AM=gt.fonts({heading:{value:`Inter, ${a1}`},body:{value:`Inter, ${a1}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),_M=G5({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),IM=gt.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),zM=gt.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),DM=gt.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),_C=gt.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),PM=gt.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),VM=gt.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),MM=gt.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),LM=gt.sizes({...PM,..._C,...MM,...VM}),BM=gt.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),HM={aspectRatios:SM,animations:xM,blurs:EM,borders:CM,colors:wM,durations:TM,easings:kM,fonts:AM,fontSizes:RM,fontWeights:NM,letterSpacings:IM,lineHeights:zM,radii:DM,spacing:_C,sizes:LM,zIndex:BM,cursor:OM},$M={colors:MP,shadows:BP,radii:LP},FM="chakra",jM=":where(html, .chakra-theme)",UM=lC({preflight:!0,cssVarsPrefix:FM,cssVarsRoot:jM,globalCss:vP,theme:{breakpoints:mP,keyframes:_M,tokens:HM,semanticTokens:$M,recipes:VP,slotRecipes:bM,textStyles:yM,layerStyles:bP,animationStyles:yP}}),GM=aC(rD,UM),WM=hP(GM);function qM(e){const{key:t,recipe:r}=e,a=Fu();return w.useMemo(()=>{const l=r||(t!=null?a.getSlotRecipe(t):{});return a.sva(structuredClone(l))},[t,r,a])}const YM=e=>e.charAt(0).toUpperCase()+e.slice(1),IC=e=>{const{key:t,recipe:r}=e,a=YM(t||r.className||"Component"),[l,c]=Wl({name:`${a}StylesContext`,errorMessage:`use${a}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${a}.Root />" `}),[u,f]=Wl({name:`${a}ClassNameContext`,errorMessage:`use${a}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${a}.Root />" `,strict:!1}),[h,p]=Wl({strict:!1,name:`${a}PropsContext`,providerName:`${a}PropsContext`,defaultValue:{}});function m(E){const{unstyled:C,...T}=E,k=qM({key:t,recipe:T.recipe||r}),[O,N]=w.useMemo(()=>k.splitVariantProps(T),[T,k]);return{styles:w.useMemo(()=>C?NR:k(O),[C,O,k]),classNames:k.classNameMap,props:N}}function y(E,C={}){const{defaultProps:T}=C,k=O=>{const N=p(),z=w.useMemo(()=>es(T,N,O),[N,O]),{styles:A,classNames:B,props:j}=m(z);return F.jsx(l,{value:A,children:F.jsx(u,{value:B,children:F.jsx(E,{...j})})})};return k.displayName=E.displayName||E.name,k}return{StylesProvider:l,ClassNamesProvider:u,PropsProvider:h,usePropsContext:p,useRecipeResult:m,withProvider:(E,C,T)=>{const{defaultProps:k,...O}=T??{},N=vn(E,{},O),z=w.forwardRef((A,B)=>{const j=p(),q=w.useMemo(()=>es(k??{},j,A),[j,A]),{styles:X,props:te,classNames:K}=m(q),P=K[C],Z=F.jsx(l,{value:X,children:F.jsx(u,{value:K,children:F.jsx(N,{ref:B,...te,css:[X[C],q.css],className:zn(q.className,P)})})});return T?.wrapElement?.(Z,q)??Z});return z.displayName=E.displayName||E.name,z},withContext:(E,C,T)=>{const k=vn(E,{},T),O=w.forwardRef((N,z)=>{const{unstyled:A,...B}=N,j=c(),X=f()?.[C];return F.jsx(k,{...B,css:[!A&&C?j[C]:void 0,N.css],ref:z,className:zn(N.className,X)})});return O.displayName=E.displayName||E.name,O},withRootProvider:y,useStyles:c,useClassNames:f}},zC=vn("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});zC.displayName="AbsoluteCenter";const XM=e=>F.jsx(vn.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:F.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),o1=e=>F.jsx(vn.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:F.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),KM=e=>F.jsx(vn.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:F.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),QM=e=>e?"":void 0,{withContext:ZM}=us({key:"badge"}),l1=ZM("span"),{withContext:JM}=us({key:"spinner"}),DC=JM("span"),e3=w.forwardRef(function(t,r){const{spinner:a=F.jsx(DC,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:l="start",children:c,text:u,visible:f=!0,...h}=t;return f?u?F.jsxs(Ja,{ref:r,display:"contents",...h,children:[l==="start"&&a,u,l==="end"&&a]}):a?F.jsxs(Ja,{ref:r,display:"contents",...h,children:[F.jsx(zC,{display:"inline-flex",children:a}),F.jsx(Ja,{visibility:"hidden",display:"contents",children:c})]}):F.jsx(Ja,{ref:r,display:"contents",...h,children:c}):c}),{useRecipeResult:t3,usePropsContext:n3}=us({key:"button"}),r3=w.forwardRef(function(t,r){const a=n3(),l=w.useMemo(()=>es(a,t),[a,t]),c=t3(l),{loading:u,loadingText:f,children:h,spinner:p,spinnerPlacement:m,...y}=c.props;return F.jsx(vn.button,{type:"button",ref:r,...y,"data-loading":QM(u),disabled:u||y.disabled,className:zn(c.className,l.className),css:[c.styles,l.css],children:!l.asChild&&u?F.jsx(e3,{spinner:p,text:f,spinnerPlacement:m,children:h}):h})}),i3=w.forwardRef(function(t,r){return F.jsx(r3,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:r,...t})});function a3(e){const{when:t,fallback:r,children:a}=e;let l;return t?l=typeof a=="function"?a(t):a:l=r,w.isValidElement(l)?l:F.jsx(F.Fragment,{children:l})}const o3=e=>{const{children:t,fallback:r}=e,[a,l]=w.useState(!1);return w.useEffect(()=>{l(!0)},[]),F.jsx(a3,{when:a,fallback:r,children:t})};function l3(e){const{gap:t,direction:r}=e,a={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":iC(r,l=>a[l])}}function s3(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}const PC=w.forwardRef(function(t,r){const{direction:a="column",align:l,justify:c,gap:u="0.5rem",wrap:f,children:h,separator:p,className:m,...y}=t,b=w.useMemo(()=>l3({gap:u,direction:a}),[u,a]),x=w.useMemo(()=>w.isValidElement(p)?s3(h).map((E,C,T)=>{const k=typeof E.key<"u"?E.key:C,O=p,N=w.cloneElement(O,{css:[b,O.props.css]});return F.jsxs(w.Fragment,{children:[E,C===T.length-1?null:N]},k)}):h,[h,p,b]);return F.jsx(vn.div,{ref:r,display:"flex",alignItems:l,justifyContent:c,flexDirection:a,flexWrap:f,gap:p?void 0:u,className:zn("chakra-stack",m),...y,children:x})}),VC=w.forwardRef(function(t,r){const{align:a,fit:l="cover",...c}=t;return F.jsx(vn.img,{ref:r,objectFit:l,objectPosition:a,className:zn("chakra-image",t.className),...c})}),{withRootProvider:MC,withContext:xn}=IC({key:"popover"});MC(u5);const c3=MC(c5),u3=xn(LE,"trigger",{forwardAsChild:!0}),d3=xn(IE,"positioner",{forwardAsChild:!0}),f3=xn(NE,"content",{forwardAsChild:!0}),g3=xn(kE,"arrowTip",{forwardAsChild:!0}),h3=xn(TE,"arrow",{forwardAsChild:!0,defaultProps:{children:F.jsx(g3,{})}});xn(RE,"closeTrigger",{forwardAsChild:!0});xn(_E,"indicator",{forwardAsChild:!0});const p3=xn(ME,"title",{forwardAsChild:!0});xn(AE,"description",{forwardAsChild:!0});xn("footer","footer");xn("header","header");const m3=xn("div","body");xn(OE,void 0,{forwardAsChild:!0});const{withContext:v3}=us({key:"skeleton"}),Gp=v3("div");w.forwardRef(function(t,r){const{size:a,...l}=t;return F.jsx(kR,{size:a,asChild:!0,ref:r,children:F.jsx(Gp,{...l})})});w.forwardRef(function(t,r){const{noOfLines:a=3,gap:l,rootProps:c,...u}=t;return F.jsx(PC,{gap:l,width:"full",ref:r,...c,children:Array.from({length:a}).map((f,h)=>F.jsx(Gp,{height:"4",_last:{maxW:a===1?"100%":"80%"},...u},h))})});const{withProvider:b3,withContext:cd,useStyles:y3}=IC({key:"toast"}),x3=vn(eC,{},{forwardAsChild:!0}),S3=b3(ZE,"root",{forwardAsChild:!0}),E3=cd(KE,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:F.jsx(KM,{})}}),C3=cd(JE,"title",{forwardAsChild:!0}),w3=cd(QE,"description",{forwardAsChild:!0}),O3=cd(XE,"actionTrigger",{forwardAsChild:!0}),T3={warning:o1,success:XM,error:o1},k3=w.forwardRef(function(t,r){const{unstyled:a,...l}=t,c=So(),u=y3(),f=T3[c.type];return f?F.jsx(f,{ref:r,...l,css:[a?void 0:u.indicator,t.css]}):null});var R3=(e,t,r,a,l,c,u,f)=>{let h=document.documentElement,p=["light","dark"];function m(x){(Array.isArray(e)?e:[e]).forEach(E=>{let C=E==="class",T=C&&c?l.map(k=>c[k]||k):l;C?(h.classList.remove(...T),h.classList.add(c&&c[x]?c[x]:x)):h.setAttribute(E,x)}),y(x)}function y(x){f&&p.includes(x)&&(h.style.colorScheme=x)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)m(a);else try{let x=localStorage.getItem(t)||r,E=u&&x==="system"?b():x;m(E)}catch{}},s1=["light","dark"],LC="(prefers-color-scheme: dark)",N3=typeof window>"u",Wp=w.createContext(void 0),A3={setTheme:e=>{},themes:[]},_3=()=>{var e;return(e=w.useContext(Wp))!=null?e:A3},I3=e=>w.useContext(Wp)?w.createElement(w.Fragment,null,e.children):w.createElement(D3,{...e}),z3=["light","dark"],D3=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:c=z3,defaultTheme:u=r?"system":"light",attribute:f="data-theme",value:h,children:p,nonce:m,scriptProps:y})=>{let[b,x]=w.useState(()=>V3(l,u)),[E,C]=w.useState(()=>b==="system"?gh():b),T=h?Object.values(h):c,k=w.useCallback(A=>{let B=A;if(!B)return;A==="system"&&r&&(B=gh());let j=h?h[B]:B,q=t?M3(m):null,X=document.documentElement,te=K=>{K==="class"?(X.classList.remove(...T),j&&X.classList.add(j)):K.startsWith("data-")&&(j?X.setAttribute(K,j):X.removeAttribute(K))};if(Array.isArray(f)?f.forEach(te):te(f),a){let K=s1.includes(u)?u:null,P=s1.includes(B)?B:K;X.style.colorScheme=P}q?.()},[m]),O=w.useCallback(A=>{let B=typeof A=="function"?A(b):A;x(B);try{localStorage.setItem(l,B)}catch{}},[b]),N=w.useCallback(A=>{let B=gh(A);C(B),b==="system"&&r&&!e&&k("system")},[b,e]);w.useEffect(()=>{let A=window.matchMedia(LC);return A.addListener(N),N(A),()=>A.removeListener(N)},[N]),w.useEffect(()=>{let A=B=>{B.key===l&&(B.newValue?x(B.newValue):O(u))};return window.addEventListener("storage",A),()=>window.removeEventListener("storage",A)},[O]),w.useEffect(()=>{k(e??b)},[e,b]);let z=w.useMemo(()=>({theme:b,setTheme:O,forcedTheme:e,resolvedTheme:b==="system"?E:b,themes:r?[...c,"system"]:c,systemTheme:r?E:void 0}),[b,O,e,E,r,c]);return w.createElement(Wp.Provider,{value:z},w.createElement(P3,{forcedTheme:e,storageKey:l,attribute:f,enableSystem:r,enableColorScheme:a,defaultTheme:u,value:h,themes:c,nonce:m,scriptProps:y}),p)},P3=w.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:l,defaultTheme:c,value:u,themes:f,nonce:h,scriptProps:p})=>{let m=JSON.stringify([r,t,c,e,f,u,a,l]).slice(1,-1);return w.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${R3.toString()})(${m})`}})}),V3=(e,t)=>{if(N3)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},M3=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},gh=e=>(e||(e=window.matchMedia(LC)),e.matches?"dark":"light"),BC={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},c1=It.createContext&&It.createContext(BC),L3=["attr","size","title"];function B3(e,t){if(e==null)return{};var r=H3(e,t),a,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(l=0;l<c.length;l++)a=c[l],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function H3(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_u.apply(this,arguments)}function u1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,a)}return r}function Iu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u1(Object(r),!0).forEach(function(a){$3(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u1(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function $3(e,t,r){return t=F3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F3(e){var t=j3(e,"string");return typeof t=="symbol"?t:t+""}function j3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HC(e){return e&&e.map((t,r)=>It.createElement(t.tag,Iu({key:r},t.attr),HC(t.child)))}function wo(e){return t=>It.createElement(U3,_u({attr:Iu({},e.attr)},t),HC(e.child))}function U3(e){var t=r=>{var{attr:a,size:l,title:c}=e,u=B3(e,L3),f=l||r.size||"1em",h;return r.className&&(h=r.className),e.className&&(h=(h?h+" ":"")+e.className),It.createElement("svg",_u({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,u,{className:h,style:Iu(Iu({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),c&&It.createElement("title",null,c),e.children)};return c1!==void 0?It.createElement(c1.Consumer,null,r=>t(r)):t(BC)}function G3(e){return wo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"},child:[]}]})(e)}function W3(e){return wo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"4"},child:[]},{tag:"path",attr:{d:"M12 2v2"},child:[]},{tag:"path",attr:{d:"M12 20v2"},child:[]},{tag:"path",attr:{d:"m4.93 4.93 1.41 1.41"},child:[]},{tag:"path",attr:{d:"m17.66 17.66 1.41 1.41"},child:[]},{tag:"path",attr:{d:"M2 12h2"},child:[]},{tag:"path",attr:{d:"M20 12h2"},child:[]},{tag:"path",attr:{d:"m6.34 17.66-1.41 1.41"},child:[]},{tag:"path",attr:{d:"m19.07 4.93-1.41 1.41"},child:[]}]})(e)}function q3(e){return F.jsx(I3,{attribute:"class",disableTransitionOnChange:!0,...e})}function $C(){const{resolvedTheme:e,setTheme:t,forcedTheme:r}=_3();return{colorMode:r||e,setColorMode:t,toggleColorMode:()=>{t(e==="dark"?"light":"dark")}}}function Y3(){const{colorMode:e}=$C();return e==="dark"?F.jsx(G3,{}):F.jsx(W3,{})}w.forwardRef(function(t,r){const{toggleColorMode:a}=$C();return F.jsx(o3,{fallback:F.jsx(Gp,{boxSize:"8"}),children:F.jsx(i3,{onClick:a,variant:"ghost","aria-label":"Toggle color mode",size:"sm",ref:r,...t,css:{_icon:{width:"5",height:"5"}},children:F.jsx(Y3,{})})})});w.forwardRef(function(t,r){return F.jsx(Ja,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:r,...t})});w.forwardRef(function(t,r){return F.jsx(Ja,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:r,...t})});function X3(e){return F.jsx(dR,{value:WM,children:F.jsx(q3,{...e})})}const FC=M5({placement:"top",pauseOnPageIdle:!0}),K3=()=>F.jsx(BE,{children:F.jsx(x3,{toaster:FC,insetInline:{mdDown:"4"},children:e=>F.jsxs(S3,{width:{md:"sm"},children:[e.type==="loading"?F.jsx(DC,{size:"sm",color:"blue.solid"}):F.jsx(k3,{}),F.jsxs(PC,{gap:"1",flex:"1",maxWidth:"100%",children:[e.title&&F.jsx(C3,{children:e.title}),e.description&&F.jsx(w3,{children:e.description})]}),e.action&&F.jsx(O3,{children:e.action.label}),e.closable&&F.jsx(E3,{})]})})}),qp=w.createContext(void 0),ud=()=>{const e=w.useContext(qp);if(!e)throw new Error("useAppContext must be used within ContextProvider");return e},Q3="TTMG DevTool",Z3="Connected",J3="Disconnected",e4="Switch Current Debugging Device",t4="Use TikTok Scan QR Code to Debug",n4="Client connection disconnected, please scan the QR code to reconnect",r4="Node service connection disconnected, please restart the debugging service in the terminal",i4="Start Debug",a4="Welcome to the TikTok Mini Game Debugging Environment. Press F12 or Ctrl+Shift+I to open the browser console to view more debugging information.",o4="Upload Game Package",l4="Uploading game resource...",s4="Uploading game resource, current progress:",c4="Game resource package uploaded successfully, client is loading the game...",u4="Game resource package upload failed, please check the current environment",d4="Initializing game environment...",f4="Game environment initialization failed, please check the current environment",g4="Getting game debugging environment configuration",h4="Game environment configuration obtained successfully",p4="Failed to get game environment configuration",m4="Getting game scripts",v4="Game scripts run successfully",b4="Game environment runtime environment initialization successful, uploading game resources to the client...",y4="Uploading game package to the client...",x4="Upload game package to the client successfully, client is loading the game...",S4="Upload game package to the client failed",E4="Upload content is empty, please select the game file directory to upload",C4="Re-upload mini game",w4="Re-launch mini game",O4="Close debugging",T4="Launching...",k4="Connection to CLI debugging service failed, please check if ttmg dev is running in the game root directory",R4="Connection to local Node debugging service failed",N4="Connecting to local Node debugging service...",A4="Connected to local Node debugging service successfully",_4="Connection to local Node debugging service failed, please check if ttmg dev is running in the game root directory",I4="Node debugging service disconnected",z4="Connected to client debugging service successfully",D4="Connection to client debugging service failed",P4="Client debugging service disconnected",V4="Failed to start client debugging service, please check if ttmg dev is running in the game root directory",M4="Failed to get game scripts",L4="Do you want to refresh the current page or re-upload the game resource to debug?",B4="Game resource updated!",H4="Upload",$4={title:Q3,deviceConnected:Z3,deviceDisconnected:J3,switchDevice:e4,scanQRCode:t4,clientDisconnected:n4,nodeDisconnected:r4,startDebug:i4,welcome:a4,uploadBtn:o4,uploadStart:l4,uploadProcess:s4,uploadSuccess:c4,uploadError:u4,setupDevEnv:d4,devEnvSetupError:f4,getDevEnvStart:g4,getDevEnvSuccess:h4,getDevEnvFailed:p4,getDevScriptsStart:m4,getDevScriptsSuccess:v4,devEnvSetupSuccess:b4,uploadGameStart:y4,uploadGameSuccess:x4,uploadGameFailed:S4,uploadEmpty:E4,reUploadGame:C4,relaunchGame:w4,closeGame:O4,loading:T4,localDevServerError:k4,nodeServerConnectedFailed:R4,nodeServerStartConnect:N4,nodeServerConnectedSuccess:A4,nodeServerStartError:_4,nodeServerDisconnect:I4,clientConnectedSuccess:z4,clientServerStartError:D4,clientServerDisconnected:P4,startDebugFailed:V4,getDevScriptsFailed:M4,gameResourceChange:L4,gameResourceUpdated:B4,uploadToClient:H4},F4="小游戏调试工具",j4="设备已连接",U4="设备未连接",G4="客户端连接已断开,请重新扫码连接",W4="Node 服务连接已断开,请在终端重新启动调试",q4="切换当前调试设备",Y4="使用 TikTok 扫码调试",X4="启动调试",K4="欢迎来到 TikTok 小游戏调试环境,按 F12 或 Ctrl+Shift+I 打开浏览器控制台,查看更多调试信息。",Q4="重新上传代码包到客户端",Z4="游戏资源包上传中...",J4="游戏资源包上传中,当前进度:",eL="游戏资源包上传成功,客户端开始加载游戏...",tL="游戏资源包上传失败,请检查当前环境",nL="正在初始化游戏环境...",rL="当前游戏资源已更新,是否刷新当前页面或重新上传游戏资源进行调试?",iL="游戏资源已更新!",aL="游戏环境初始化失败,请检查当前环境",oL="获取游戏调试环境配置",lL="获取游戏环境配置成功",sL="获取游戏环境配置失败",cL="获取游戏脚本",uL="游戏脚本运行成功",dL="游戏环境运行环境初始化成功,正在上传游戏资源至客户端",fL="开始上传游戏包至客户端",gL="上传游戏包至客户端成功, 客户端开始加载游戏...",hL="上传游戏包至客户端失败",pL="上传内容为空,请选择要上传的游戏文件目录",mL="重新上传小游戏",vL="重新启动小游戏",bL="关闭调试",yL="启动中...",xL="连接 CLI 调试服务出错,请检查是否在游戏根目录下运行 ttmg dev",SL="连接本地 Node 调试服务失败",EL="正在连接本地 Node 调试服务...",CL="连接本地 Node 调试服务成功",wL="连接本地 Node 调试服务失败,请检查是否在游戏根目录下运行 ttmg dev",OL="Node 调试服务已断开",TL="链接客户端调试服务成功",kL="链接客户端调试服务失败",RL="客户端调试服务已断开",NL="客户端启动调试环境失败,请重新扫码开启调试服务",AL="加载游戏脚本失败",_L="上传",IL={title:F4,deviceConnected:j4,deviceDisconnected:U4,clientDisconnected:G4,nodeDisconnected:W4,switchDevice:q4,scanQRCode:Y4,startDebug:X4,welcome:K4,uploadBtn:Q4,uploadStart:Z4,uploadProcess:J4,uploadSuccess:eL,uploadError:tL,setupDevEnv:nL,gameResourceChange:rL,gameResourceUpdated:iL,devEnvSetupError:aL,getDevEnvStart:oL,getDevEnvSuccess:lL,getDevEnvFailed:sL,getDevScriptsStart:cL,getDevScriptsSuccess:uL,devEnvSetupSuccess:dL,uploadGameStart:fL,uploadGameSuccess:gL,uploadGameFailed:hL,uploadEmpty:pL,reUploadGame:mL,relaunchGame:vL,closeGame:bL,loading:yL,localDevServerError:xL,nodeServerConnectedFailed:SL,nodeServerStartConnect:EL,nodeServerConnectedSuccess:CL,nodeServerStartError:wL,nodeServerDisconnect:OL,clientConnectedSuccess:TL,clientServerStartError:kL,clientServerDisconnected:RL,startDebugFailed:NL,getDevScriptsFailed:AL,uploadToClient:_L},jC="en-US",jh={"en-US":$4,"zh-CN":IL};function zL(){const e=navigator.language;return e in jh?e:e.split("-")[0]==="zh"?"zh-CN":jC}const DL=zL(),Ae=e=>jh[DL][e]??jh[jC][e],PL={stage:"loading",isConnected:!1,loading:{visible:!1,text:Ae("loading")},message:{theme:"info",text:"",visible:!1},error:{visible:!1,text:""}};function VL(e,t){switch(t.type){case"SHOW_LOADING":return{...e,loading:{visible:!0,text:t.payload??Ae("loading")}};case"HIDE_LOADING":return{...e,loading:{...e.loading,visible:!1}};case"SHOW_MESSAGE":return{...e,message:{...t.payload,visible:!0}};case"HIDE_MESSAGE":return{...e,message:{...e.message,visible:!1}};case"SET_STAGE":return{...e,stage:t.payload};case"SET_IS_CONNECTED":return{...e,isConnected:t.payload};default:return e}}const ML=({children:e})=>{const[t,r]=w.useReducer(VL,PL),a=w.useCallback(m=>{r({type:"SET_IS_CONNECTED",payload:m})},[]),l=w.useCallback(m=>{r({type:"SHOW_LOADING",payload:m})},[]),c=w.useCallback(()=>{setTimeout(()=>{r({type:"HIDE_LOADING"})},500)},[]),u=w.useCallback(({theme:m,text:y})=>{r({type:"SHOW_MESSAGE",payload:{theme:m,text:y}})},[]),f=w.useCallback(()=>{r({type:"HIDE_MESSAGE"})},[]),h=w.useCallback(m=>{r({type:"SET_STAGE",payload:m})},[]),p=w.useMemo(()=>({state:t,showLoading:l,hideLoading:c,showMessage:u,hideMessage:f,setStage:h,setIsConnected:a}),[t,l,c,u,f,h,a]);return F.jsx(qp.Provider,{value:p,children:e})};var Lt=function(){return Lt=Object.assign||function(t){for(var r,a=1,l=arguments.length;a<l;a++){r=arguments[a];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(t[c]=r[c])}return t},Lt.apply(this,arguments)};function uo(e,t,r){if(r||arguments.length===2)for(var a=0,l=t.length,c;a<l;a++)(c||!(a in t))&&(c||(c=Array.prototype.slice.call(t,0,a)),c[a]=t[a]);return e.concat(c||Array.prototype.slice.call(t))}var Xe="-ms-",Kl="-moz-",Me="-webkit-",UC="comm",dd="rule",Yp="decl",LL="@import",GC="@keyframes",BL="@layer",WC=Math.abs,Xp=String.fromCharCode,Uh=Object.assign;function HL(e,t){return wt(e,0)^45?(((t<<2^wt(e,0))<<2^wt(e,1))<<2^wt(e,2))<<2^wt(e,3):0}function qC(e){return e.trim()}function kr(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,r){return e.replace(t,r)}function uu(e,t,r){return e.indexOf(t,r)}function wt(e,t){return e.charCodeAt(t)|0}function fo(e,t,r){return e.slice(t,r)}function Zn(e){return e.length}function YC(e){return e.length}function Gl(e,t){return t.push(e),e}function $L(e,t){return e.map(t).join("")}function d1(e,t){return e.filter(function(r){return!kr(r,t)})}var fd=1,go=1,XC=0,Dn=0,ft=0,Oo="";function gd(e,t,r,a,l,c,u,f){return{value:e,root:t,parent:r,type:a,props:l,children:c,line:fd,column:go,length:u,return:"",siblings:f}}function li(e,t){return Uh(gd("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ga(e){for(;e.root;)e=li(e.root,{children:[e]});Gl(e,e.siblings)}function FL(){return ft}function jL(){return ft=Dn>0?wt(Oo,--Dn):0,go--,ft===10&&(go=1,fd--),ft}function Hn(){return ft=Dn<XC?wt(Oo,Dn++):0,go++,ft===10&&(go=1,fd++),ft}function qi(){return wt(Oo,Dn)}function du(){return Dn}function hd(e,t){return fo(Oo,e,t)}function Gh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function UL(e){return fd=go=1,XC=Zn(Oo=e),Dn=0,[]}function GL(e){return Oo="",e}function hh(e){return qC(hd(Dn-1,Wh(e===91?e+2:e===40?e+1:e)))}function WL(e){for(;(ft=qi())&&ft<33;)Hn();return Gh(e)>2||Gh(ft)>3?"":" "}function qL(e,t){for(;--t&&Hn()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return hd(e,du()+(t<6&&qi()==32&&Hn()==32))}function Wh(e){for(;Hn();)switch(ft){case e:return Dn;case 34:case 39:e!==34&&e!==39&&Wh(ft);break;case 40:e===41&&Wh(e);break;case 92:Hn();break}return Dn}function YL(e,t){for(;Hn()&&e+ft!==57;)if(e+ft===84&&qi()===47)break;return"/*"+hd(t,Dn-1)+"*"+Xp(e===47?e:Hn())}function XL(e){for(;!Gh(qi());)Hn();return hd(e,Dn)}function KL(e){return GL(fu("",null,null,null,[""],e=UL(e),0,[0],e))}function fu(e,t,r,a,l,c,u,f,h){for(var p=0,m=0,y=u,b=0,x=0,E=0,C=1,T=1,k=1,O=0,N="",z=l,A=c,B=a,j=N;T;)switch(E=O,O=Hn()){case 40:if(E!=108&&wt(j,y-1)==58){uu(j+=Ce(hh(O),"&","&\f"),"&\f",WC(p?f[p-1]:0))!=-1&&(k=-1);break}case 34:case 39:case 91:j+=hh(O);break;case 9:case 10:case 13:case 32:j+=WL(E);break;case 92:j+=qL(du()-1,7);continue;case 47:switch(qi()){case 42:case 47:Gl(QL(YL(Hn(),du()),t,r,h),h);break;default:j+="/"}break;case 123*C:f[p++]=Zn(j)*k;case 125*C:case 59:case 0:switch(O){case 0:case 125:T=0;case 59+m:k==-1&&(j=Ce(j,/\f/g,"")),x>0&&Zn(j)-y&&Gl(x>32?g1(j+";",a,r,y-1,h):g1(Ce(j," ","")+";",a,r,y-2,h),h);break;case 59:j+=";";default:if(Gl(B=f1(j,t,r,p,m,l,f,N,z=[],A=[],y,c),c),O===123)if(m===0)fu(j,t,B,B,z,c,y,f,A);else switch(b===99&&wt(j,3)===110?100:b){case 100:case 108:case 109:case 115:fu(e,B,B,a&&Gl(f1(e,B,B,0,0,l,f,N,l,z=[],y,A),A),l,A,y,f,a?z:A);break;default:fu(j,B,B,B,[""],A,0,f,A)}}p=m=x=0,C=k=1,N=j="",y=u;break;case 58:y=1+Zn(j),x=E;default:if(C<1){if(O==123)--C;else if(O==125&&C++==0&&jL()==125)continue}switch(j+=Xp(O),O*C){case 38:k=m>0?1:(j+="\f",-1);break;case 44:f[p++]=(Zn(j)-1)*k,k=1;break;case 64:qi()===45&&(j+=hh(Hn())),b=qi(),m=y=Zn(N=j+=XL(du())),O++;break;case 45:E===45&&Zn(j)==2&&(C=0)}}return c}function f1(e,t,r,a,l,c,u,f,h,p,m,y){for(var b=l-1,x=l===0?c:[""],E=YC(x),C=0,T=0,k=0;C<a;++C)for(var O=0,N=fo(e,b+1,b=WC(T=u[C])),z=e;O<E;++O)(z=qC(T>0?x[O]+" "+N:Ce(N,/&\f/g,x[O])))&&(h[k++]=z);return gd(e,t,r,l===0?dd:f,h,p,m,y)}function QL(e,t,r,a){return gd(e,t,r,UC,Xp(FL()),fo(e,2,-2),0,a)}function g1(e,t,r,a,l){return gd(e,t,r,Yp,fo(e,0,a),fo(e,a+1,-1),a,l)}function KC(e,t,r){switch(HL(e,t)){case 5103:return Me+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Me+e+e;case 4789:return Kl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+Kl+e+Xe+e+e;case 5936:switch(wt(e,t+11)){case 114:return Me+e+Xe+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+Xe+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+Xe+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Me+e+Xe+e+e;case 6165:return Me+e+Xe+"flex-"+e+e;case 5187:return Me+e+Ce(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return Me+e+Xe+"flex-item-"+Ce(e,/flex-|-self/g,"")+(kr(e,/flex-|baseline/)?"":Xe+"grid-row-"+Ce(e,/flex-|-self/g,""))+e;case 4675:return Me+e+Xe+"flex-line-pack"+Ce(e,/align-content|flex-|-self/g,"")+e;case 5548:return Me+e+Xe+Ce(e,"shrink","negative")+e;case 5292:return Me+e+Xe+Ce(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Ce(e,"-grow","")+Me+e+Xe+Ce(e,"grow","positive")+e;case 4554:return Me+Ce(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4200:if(!kr(e,/flex-|baseline/))return Xe+"grid-column-align"+fo(e,t)+e;break;case 2592:case 3360:return Xe+Ce(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(a,l){return t=l,kr(a.props,/grid-\w+-end/)})?~uu(e+(r=r[t].value),"span",0)?e:Xe+Ce(e,"-start","")+e+Xe+"grid-row-span:"+(~uu(r,"span",0)?kr(r,/\d+/):+kr(r,/\d+/)-+kr(e,/\d+/))+";":Xe+Ce(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(a){return kr(a.props,/grid-\w+-start/)})?e:Xe+Ce(Ce(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,Me+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zn(e)-1-t>6)switch(wt(e,t+1)){case 109:if(wt(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+Kl+(wt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~uu(e,"stretch",0)?KC(Ce(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ce(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(a,l,c,u,f,h,p){return Xe+l+":"+c+p+(u?Xe+l+"-span:"+(f?h:+h-+c)+p:"")+e});case 4949:if(wt(e,t+6)===121)return Ce(e,":",":"+Me)+e;break;case 6444:switch(wt(e,wt(e,14)===45?18:11)){case 120:return Ce(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Me+(wt(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+Xe+"$2box$3")+e;case 100:return Ce(e,":",":"+Xe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ce(e,"scroll-","scroll-snap-")+e}return e}function zu(e,t){for(var r="",a=0;a<e.length;a++)r+=t(e[a],a,e,t)||"";return r}function ZL(e,t,r,a){switch(e.type){case BL:if(e.children.length)break;case LL:case Yp:return e.return=e.return||e.value;case UC:return"";case GC:return e.return=e.value+"{"+zu(e.children,a)+"}";case dd:if(!Zn(e.value=e.props.join(",")))return""}return Zn(r=zu(e.children,a))?e.return=e.value+"{"+r+"}":""}function JL(e){var t=YC(e);return function(r,a,l,c){for(var u="",f=0;f<t;f++)u+=e[f](r,a,l,c)||"";return u}}function e6(e){return function(t){t.root||(t=t.return)&&e(t)}}function t6(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case Yp:e.return=KC(e.value,e.length,r);return;case GC:return zu([li(e,{value:Ce(e.value,"@","@"+Me)})],a);case dd:if(e.length)return $L(r=e.props,function(l){switch(kr(l,a=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ga(li(e,{props:[Ce(l,/:(read-\w+)/,":"+Kl+"$1")]})),Ga(li(e,{props:[l]})),Uh(e,{props:d1(r,a)});break;case"::placeholder":Ga(li(e,{props:[Ce(l,/:(plac\w+)/,":"+Me+"input-$1")]})),Ga(li(e,{props:[Ce(l,/:(plac\w+)/,":"+Kl+"$1")]})),Ga(li(e,{props:[Ce(l,/:(plac\w+)/,Xe+"input-$1")]})),Ga(li(e,{props:[l]})),Uh(e,{props:d1(r,a)});break}return""})}}var n6={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dn={},ho=typeof process<"u"&&dn!==void 0&&(dn.REACT_APP_SC_ATTR||dn.SC_ATTR)||"data-styled",QC="active",ZC="data-styled-version",pd="6.1.19",Kp=`/*!sc*/
|
|
75
|
+
`,Du=typeof window<"u"&&typeof document<"u",r6=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&dn!==void 0&&dn.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&dn.REACT_APP_SC_DISABLE_SPEEDY!==""?dn.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&dn.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&dn!==void 0&&dn.SC_DISABLE_SPEEDY!==void 0&&dn.SC_DISABLE_SPEEDY!==""&&dn.SC_DISABLE_SPEEDY!=="false"&&dn.SC_DISABLE_SPEEDY),i6={},md=Object.freeze([]),po=Object.freeze({});function JC(e,t,r){return r===void 0&&(r=po),e.theme!==r.theme&&e.theme||t||r.theme}var ew=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),a6=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,o6=/(^-|-$)/g;function h1(e){return e.replace(a6,"-").replace(o6,"")}var l6=/(a)(d)/gi,Yc=52,p1=function(e){return String.fromCharCode(e+(e>25?39:97))};function qh(e){var t,r="";for(t=Math.abs(e);t>Yc;t=t/Yc|0)r=p1(t%Yc)+r;return(p1(t%Yc)+r).replace(l6,"$1-$2")}var ph,tw=5381,to=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},nw=function(e){return to(tw,e)};function Qp(e){return qh(nw(e)>>>0)}function s6(e){return e.displayName||e.name||"Component"}function mh(e){return typeof e=="string"&&!0}var rw=typeof Symbol=="function"&&Symbol.for,iw=rw?Symbol.for("react.memo"):60115,c6=rw?Symbol.for("react.forward_ref"):60112,u6={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},d6={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},aw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f6=((ph={})[c6]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ph[iw]=aw,ph);function m1(e){return("type"in(t=e)&&t.type.$$typeof)===iw?aw:"$$typeof"in e?f6[e.$$typeof]:u6;var t}var g6=Object.defineProperty,h6=Object.getOwnPropertyNames,v1=Object.getOwnPropertySymbols,p6=Object.getOwnPropertyDescriptor,m6=Object.getPrototypeOf,b1=Object.prototype;function ow(e,t,r){if(typeof t!="string"){if(b1){var a=m6(t);a&&a!==b1&&ow(e,a,r)}var l=h6(t);v1&&(l=l.concat(v1(t)));for(var c=m1(e),u=m1(t),f=0;f<l.length;++f){var h=l[f];if(!(h in d6||r&&r[h]||u&&h in u||c&&h in c)){var p=p6(t,h);try{g6(e,h,p)}catch{}}}}return e}function mo(e){return typeof e=="function"}function Zp(e){return typeof e=="object"&&"styledComponentId"in e}function Gi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Pu(e,t){if(e.length===0)return"";for(var r=e[0],a=1;a<e.length;a++)r+=e[a];return r}function as(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Yh(e,t,r){if(r===void 0&&(r=!1),!r&&!as(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var a=0;a<t.length;a++)e[a]=Yh(e[a],t[a]);else if(as(t))for(var a in t)e[a]=Yh(e[a],t[a]);return e}function Jp(e,t){Object.defineProperty(e,"toString",{value:t})}function ps(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var v6=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,a=0;a<t;a++)r+=this.groupSizes[a];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var a=this.groupSizes,l=a.length,c=l;t>=c;)if((c<<=1)<0)throw ps(16,"".concat(t));this.groupSizes=new Uint32Array(c),this.groupSizes.set(a),this.length=c;for(var u=l;u<c;u++)this.groupSizes[u]=0}for(var f=this.indexOfGroup(t+1),h=(u=0,r.length);u<h;u++)this.tag.insertRule(f,r[u])&&(this.groupSizes[t]++,f++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],a=this.indexOfGroup(t),l=a+r;this.groupSizes[t]=0;for(var c=a;c<l;c++)this.tag.deleteRule(a)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var a=this.groupSizes[t],l=this.indexOfGroup(t),c=l+a,u=l;u<c;u++)r+="".concat(this.tag.getRule(u)).concat(Kp);return r},e})(),gu=new Map,Vu=new Map,hu=1,Xc=function(e){if(gu.has(e))return gu.get(e);for(;Vu.has(hu);)hu++;var t=hu++;return gu.set(e,t),Vu.set(t,e),t},b6=function(e,t){hu=t+1,gu.set(e,t),Vu.set(t,e)},y6="style[".concat(ho,"][").concat(ZC,'="').concat(pd,'"]'),x6=new RegExp("^".concat(ho,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),S6=function(e,t,r){for(var a,l=r.split(","),c=0,u=l.length;c<u;c++)(a=l[c])&&e.registerName(t,a)},E6=function(e,t){for(var r,a=((r=t.textContent)!==null&&r!==void 0?r:"").split(Kp),l=[],c=0,u=a.length;c<u;c++){var f=a[c].trim();if(f){var h=f.match(x6);if(h){var p=0|parseInt(h[1],10),m=h[2];p!==0&&(b6(m,p),S6(e,m,h[3]),e.getTag().insertRules(p,l)),l.length=0}else l.push(f)}}},y1=function(e){for(var t=document.querySelectorAll(y6),r=0,a=t.length;r<a;r++){var l=t[r];l&&l.getAttribute(ho)!==QC&&(E6(e,l),l.parentNode&&l.parentNode.removeChild(l))}};function C6(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var lw=function(e){var t=document.head,r=e||t,a=document.createElement("style"),l=(function(f){var h=Array.from(f.querySelectorAll("style[".concat(ho,"]")));return h[h.length-1]})(r),c=l!==void 0?l.nextSibling:null;a.setAttribute(ho,QC),a.setAttribute(ZC,pd);var u=C6();return u&&a.setAttribute("nonce",u),r.insertBefore(a,c),a},w6=(function(){function e(t){this.element=lw(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var a=document.styleSheets,l=0,c=a.length;l<c;l++){var u=a[l];if(u.ownerNode===r)return u}throw ps(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),O6=(function(){function e(t){this.element=lw(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var a=document.createTextNode(r);return this.element.insertBefore(a,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),T6=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),x1=Du,k6={isServer:!Du,useCSSOMInjection:!r6},Mu=(function(){function e(t,r,a){t===void 0&&(t=po),r===void 0&&(r={});var l=this;this.options=Lt(Lt({},k6),t),this.gs=r,this.names=new Map(a),this.server=!!t.isServer,!this.server&&Du&&x1&&(x1=!1,y1(this)),Jp(this,function(){return(function(c){for(var u=c.getTag(),f=u.length,h="",p=function(y){var b=(function(k){return Vu.get(k)})(y);if(b===void 0)return"continue";var x=c.names.get(b),E=u.getGroup(y);if(x===void 0||!x.size||E.length===0)return"continue";var C="".concat(ho,".g").concat(y,'[id="').concat(b,'"]'),T="";x!==void 0&&x.forEach(function(k){k.length>0&&(T+="".concat(k,","))}),h+="".concat(E).concat(C,'{content:"').concat(T,'"}').concat(Kp)},m=0;m<f;m++)p(m);return h})(l)})}return e.registerId=function(t){return Xc(t)},e.prototype.rehydrate=function(){!this.server&&Du&&y1(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(Lt(Lt({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var a=r.useCSSOMInjection,l=r.target;return r.isServer?new T6(l):a?new w6(l):new O6(l)})(this.options),new v6(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Xc(t),this.names.has(t))this.names.get(t).add(r);else{var a=new Set;a.add(r),this.names.set(t,a)}},e.prototype.insertRules=function(t,r,a){this.registerName(t,r),this.getTag().insertRules(Xc(t),a)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Xc(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),R6=/&/g,N6=/^\s*\/\/.*$/gm;function sw(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(a){return"".concat(t," ").concat(a)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=sw(r.children,t)),r})}function A6(e){var t,r,a,l=po,c=l.options,u=c===void 0?po:c,f=l.plugins,h=f===void 0?md:f,p=function(b,x,E){return E.startsWith(r)&&E.endsWith(r)&&E.replaceAll(r,"").length>0?".".concat(t):b},m=h.slice();m.push(function(b){b.type===dd&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(R6,r).replace(a,p))}),u.prefix&&m.push(t6),m.push(ZL);var y=function(b,x,E,C){x===void 0&&(x=""),E===void 0&&(E=""),C===void 0&&(C="&"),t=C,r=x,a=new RegExp("\\".concat(r,"\\b"),"g");var T=b.replace(N6,""),k=KL(E||x?"".concat(E," ").concat(x," { ").concat(T," }"):T);u.namespace&&(k=sw(k,u.namespace));var O=[];return zu(k,JL(m.concat(e6(function(N){return O.push(N)})))),O};return y.hash=h.length?h.reduce(function(b,x){return x.name||ps(15),to(b,x.name)},tw).toString():"",y}var _6=new Mu,Xh=A6(),cw=It.createContext({shouldForwardProp:void 0,styleSheet:_6,stylis:Xh});cw.Consumer;It.createContext(void 0);function Kh(){return w.useContext(cw)}var uw=(function(){function e(t,r){var a=this;this.inject=function(l,c){c===void 0&&(c=Xh);var u=a.name+c.hash;l.hasNameForId(a.id,u)||l.insertRules(a.id,u,c(a.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Jp(this,function(){throw ps(12,String(a.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Xh),this.name+t.hash},e})(),I6=function(e){return e>="A"&&e<="Z"};function S1(e){for(var t="",r=0;r<e.length;r++){var a=e[r];if(r===1&&a==="-"&&e[0]==="-")return e;I6(a)?t+="-"+a.toLowerCase():t+=a}return t.startsWith("ms-")?"-"+t:t}var dw=function(e){return e==null||e===!1||e===""},fw=function(e){var t,r,a=[];for(var l in e){var c=e[l];e.hasOwnProperty(l)&&!dw(c)&&(Array.isArray(c)&&c.isCss||mo(c)?a.push("".concat(S1(l),":"),c,";"):as(c)?a.push.apply(a,uo(uo(["".concat(l," {")],fw(c),!1),["}"],!1)):a.push("".concat(S1(l),": ").concat((t=l,(r=c)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in n6||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return a};function gi(e,t,r,a){if(dw(e))return[];if(Zp(e))return[".".concat(e.styledComponentId)];if(mo(e)){if(!mo(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return[e];var l=e(t);return gi(l,t,r,a)}var c;return e instanceof uw?r?(e.inject(r,a),[e.getName(a)]):[e]:as(e)?fw(e):Array.isArray(e)?Array.prototype.concat.apply(md,e.map(function(u){return gi(u,t,r,a)})):[e.toString()]}function gw(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(mo(r)&&!Zp(r))return!1}return!0}var z6=nw(pd),D6=(function(){function e(t,r,a){this.rules=t,this.staticRulesId="",this.isStatic=(a===void 0||a.isStatic)&&gw(t),this.componentId=r,this.baseHash=to(z6,r),this.baseStyle=a,Mu.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,a){var l=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,a):"";if(this.isStatic&&!a.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))l=Gi(l,this.staticRulesId);else{var c=Pu(gi(this.rules,t,r,a)),u=qh(to(this.baseHash,c)>>>0);if(!r.hasNameForId(this.componentId,u)){var f=a(c,".".concat(u),void 0,this.componentId);r.insertRules(this.componentId,u,f)}l=Gi(l,u),this.staticRulesId=u}else{for(var h=to(this.baseHash,a.hash),p="",m=0;m<this.rules.length;m++){var y=this.rules[m];if(typeof y=="string")p+=y;else if(y){var b=Pu(gi(y,t,r,a));h=to(h,b+m),p+=b}}if(p){var x=qh(h>>>0);r.hasNameForId(this.componentId,x)||r.insertRules(this.componentId,x,a(p,".".concat(x),void 0,this.componentId)),l=Gi(l,x)}}return l},e})(),em=It.createContext(void 0);em.Consumer;var vh={};function P6(e,t,r){var a=Zp(e),l=e,c=!mh(e),u=t.attrs,f=u===void 0?md:u,h=t.componentId,p=h===void 0?(function(z,A){var B=typeof z!="string"?"sc":h1(z);vh[B]=(vh[B]||0)+1;var j="".concat(B,"-").concat(Qp(pd+B+vh[B]));return A?"".concat(A,"-").concat(j):j})(t.displayName,t.parentComponentId):h,m=t.displayName,y=m===void 0?(function(z){return mh(z)?"styled.".concat(z):"Styled(".concat(s6(z),")")})(e):m,b=t.displayName&&t.componentId?"".concat(h1(t.displayName),"-").concat(t.componentId):t.componentId||p,x=a&&l.attrs?l.attrs.concat(f).filter(Boolean):f,E=t.shouldForwardProp;if(a&&l.shouldForwardProp){var C=l.shouldForwardProp;if(t.shouldForwardProp){var T=t.shouldForwardProp;E=function(z,A){return C(z,A)&&T(z,A)}}else E=C}var k=new D6(r,b,a?l.componentStyle:void 0);function O(z,A){return(function(B,j,q){var X=B.attrs,te=B.componentStyle,K=B.defaultProps,P=B.foldedComponentIds,Z=B.styledComponentId,se=B.target,oe=It.useContext(em),L=Kh(),J=B.shouldForwardProp||L.shouldForwardProp,le=JC(j,oe,K)||po,ie=(function(ye,fe,lt){for(var Q,ee=Lt(Lt({},fe),{className:void 0,theme:lt}),Se=0;Se<ye.length;Se+=1){var Re=mo(Q=ye[Se])?Q(ee):Q;for(var _e in Re)ee[_e]=_e==="className"?Gi(ee[_e],Re[_e]):_e==="style"?Lt(Lt({},ee[_e]),Re[_e]):Re[_e]}return fe.className&&(ee.className=Gi(ee.className,fe.className)),ee})(X,j,le),R=ie.as||se,U={};for(var re in ie)ie[re]===void 0||re[0]==="$"||re==="as"||re==="theme"&&ie.theme===le||(re==="forwardedAs"?U.as=ie.forwardedAs:J&&!J(re,R)||(U[re]=ie[re]));var ae=(function(ye,fe){var lt=Kh(),Q=ye.generateAndInjectStyles(fe,lt.styleSheet,lt.stylis);return Q})(te,ie),ue=Gi(P,Z);return ae&&(ue+=" "+ae),ie.className&&(ue+=" "+ie.className),U[mh(R)&&!ew.has(R)?"class":"className"]=ue,q&&(U.ref=q),w.createElement(R,U)})(N,z,A)}O.displayName=y;var N=It.forwardRef(O);return N.attrs=x,N.componentStyle=k,N.displayName=y,N.shouldForwardProp=E,N.foldedComponentIds=a?Gi(l.foldedComponentIds,l.styledComponentId):"",N.styledComponentId=b,N.target=a?l.target:e,Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(z){this._foldedDefaultProps=a?(function(A){for(var B=[],j=1;j<arguments.length;j++)B[j-1]=arguments[j];for(var q=0,X=B;q<X.length;q++)Yh(A,X[q],!0);return A})({},l.defaultProps,z):z}}),Jp(N,function(){return".".concat(N.styledComponentId)}),c&&ow(N,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),N}function E1(e,t){for(var r=[e[0]],a=0,l=t.length;a<l;a+=1)r.push(t[a],e[a+1]);return r}var C1=function(e){return Object.assign(e,{isCss:!0})};function vd(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(mo(e)||as(e))return C1(gi(E1(md,uo([e],t,!0))));var a=e;return t.length===0&&a.length===1&&typeof a[0]=="string"?gi(a):C1(gi(E1(a,t)))}function Qh(e,t,r){if(r===void 0&&(r=po),!t)throw ps(1,t);var a=function(l){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];return e(t,r,vd.apply(void 0,uo([l],c,!1)))};return a.attrs=function(l){return Qh(e,t,Lt(Lt({},r),{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},a.withConfig=function(l){return Qh(e,t,Lt(Lt({},r),l))},a}var hw=function(e){return Qh(P6,e)},Qe=hw;ew.forEach(function(e){Qe[e]=hw(e)});var V6=(function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=gw(t),Mu.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,a,l){var c=l(Pu(gi(this.rules,r,a,l)),""),u=this.componentId+t;a.insertRules(u,u,c)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,a,l){t>2&&Mu.registerId(this.componentId+t),this.removeStyles(t,a),this.createStyles(t,r,a,l)},e})();function M6(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var a=vd.apply(void 0,uo([e],t,!1)),l="sc-global-".concat(Qp(JSON.stringify(a))),c=new V6(a,l),u=function(h){var p=Kh(),m=It.useContext(em),y=It.useRef(p.styleSheet.allocateGSInstance(l)).current;return p.styleSheet.server&&f(y,h,p.styleSheet,m,p.stylis),It.useLayoutEffect(function(){if(!p.styleSheet.server)return f(y,h,p.styleSheet,m,p.stylis),function(){return c.removeStyles(y,p.styleSheet)}},[y,h,p.styleSheet,m,p.stylis]),null};function f(h,p,m,y,b){if(c.isStatic)c.renderStyles(h,i6,m,b);else{var x=Lt(Lt({},p),{theme:JC(p,y,u.defaultProps)});c.renderStyles(h,x,m,b)}}return It.memo(u)}function pw(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var a=Pu(vd.apply(void 0,uo([e],t,!1))),l=Qp(a);return new uw(l,a)}class L6{listeners=new Map;on(t,r){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(r),()=>this.off(t,r)}off(t,r){const a=this.listeners.get(t);a&&(a.delete(r),a.size===0&&this.listeners.delete(t))}emit(t,r){const a=this.listeners.get(t);a&&a.forEach(l=>{try{l(r)}catch(c){console.error(`Error in listener for event "${String(t)}":`,c)}})}removeAllListeners(t){this.listeners.delete(t)}clearAll(){this.listeners.clear()}}const et=new L6;function tm(e){const{url:t,method:r="GET",data:a=void 0,headers:l={},timeout:c=1e4}=e;let u=t;const f={method:r,headers:{"Content-Type":"application/json",...l}};if(r.toUpperCase()==="GET"&&a){const h=new URLSearchParams(a).toString();u+=(u.includes("?")?"&":"?")+h}else a&&(f.body=JSON.stringify(a));return Promise.race([fetch(u,f).then(async h=>{if(!h.ok)return{isSuccess:!1,msg:h.statusText};const p=h.headers.get("content-type");if(p&&p.includes("application/json"))try{const m=await h.text();return m.trim()?JSON.parse(m):{isSuccess:!0,data:{}}}catch(m){throw new Error(`Failed to parse JSON response: ${m instanceof Error?m.message:"Unknown error"}`)}else return h.text()}),new Promise((h,p)=>setTimeout(()=>p(new Error("Request timeout")),c))])}function B6(e){return new URLSearchParams(window.location.search).get(e)}function bd(e,...t){Number(B6("enableLog"))&&console[e](...t)}const Qt=(...e)=>bd("log",...e);Qt.info=(...e)=>bd("info",...e);Qt.warn=(...e)=>bd("warn",...e);Qt.error=(...e)=>bd("error",...e);const Bl={isNodeWSConnected:!1,isClientWSConnected:!1,clientHost:null,clientWsPort:null,clientHttpPort:null,clientKey:"",isResourcesReady:!1,isScriptsReady:!1,packages:{}};class H6{data;constructor(t){this.data={...Bl,...t}}get(t){return this.data[t]}set(t,r){this.data[t]=r,this.logUpdate({[t]:r})}setMultiple(t){this.data={...this.data,...t},this.logUpdate(t)}getMultiple(t){return t.reduce((r,a)=>(r[a]=this.data[a],r),{})}getAll(){return{...this.data}}resetField(t){this.data[t]=Bl[t],this.logUpdate({[t]:Bl[t]})}clear(){this.data={...Bl},this.logUpdate(Bl,!0)}init(t){this.data=t,this.logUpdate(t,!0)}logUpdate(t,r=!1){r?Qt("Store has been reset/initialized."):Qt("Store updated with batch:",t)}}const Ot=new H6,mw=()=>`http://${Ot.get("clientHost")}:${Ot.get("clientHttpPort")}`,$6={allowed_domains:[],app_version:"",client_key_type:0,description:"TTMG Dev Game",entity:"--",icon_big_url:"https://connect.tiktok-minis.com/assets/icon.png",icon_url:"https://connect.tiktok-minis.com/assets/icon.png",minis_category:"mini_game",minis_status:1,minis_tech_type:0,minis_type:2,name:"TTMG Dev Game",privacy_url:"--",scopes:["user.info.open_id","user.info.basic"],tos_url:"--",update_time:Date.now(),status_code:0,status_msg:""};async function F6(){const e=mw(),t=Ot.get("clientKey");if(!t)return;const r={...$6,client_key:t,minis_url:`https://minis-${t}-vdebug-minigame.tiktok-minis.us/`,package_config:JSON.stringify({packages:Ot.get("packages")})};return await tm({url:`${e}/game/meta`,method:"POST",data:r,headers:{"Content-Type":"application/json"}})}async function j6(){const e=document.getElementById("dev-iframe");return new Promise(t=>{e.onload=()=>{e.onload=null,t(e)},e.contentWindow?.location.reload()})}const U6=document.getElementById("dev-iframe"),w1=U6.contentWindow;class G6{ws;init(t){const r=new WebSocket(`ws://${t.clientHost}:${t.clientWsPort||t.clientHttpPort-1}`);r.onclose=()=>{console.error(Ae("clientServerDisconnected")),Ot.set("isClientWSConnected",!1),et.emit("connectionChange",{node:Ot.get("isNodeWSConnected"),client:!1,isClientDisconnected:!0})},r.onerror=()=>{const a=Ae("clientServerStartError");console.error(a)},this.ws=r,r.onopen=function(){console.log(Ae("clientConnectedSuccess")),Ot.set("isClientWSConnected",!0),et.emit("connectionChange",{node:Ot.get("isNodeWSConnected"),client:!0,isClientDisconnected:!1}),r.send(JSON.stringify({stage:"connecting",status:"success",message:"Browser connected to Client Server Successfully"}))},r.onmessage=function(a){try{const l=JSON.parse(a.data);switch(l?.method){case"subscribeHandler":w1.__DEV__?.subscribeHandler?.(l?.payload?.event,l?.payload?.data);break;case"invokeHandler":w1.__DEV__?.invokeHandler?.(l?.payload?.callbackId,l?.payload?.data);break;default:break}}catch(l){console.error(l)}}}send(t){t.from="browser",this.ws?.send(JSON.stringify(t))}close(){this.ws?.close(),this.ws=void 0}}const Zh=new G6,W6={start:{msgKey:"uploadGameStart"},success:{msgKey:"uploadGameSuccess",handle:e=>{const{packages:t,clientKey:r}=e||{};Ot.setMultiple({packages:t,clientKey:r,isResourcesReady:!0}),et.emit("setupStatusChange",{isScriptsReady:Ot.get("isScriptsReady"),isResourcesReady:!0})}},process:{msgKey:"uploadProcess"},error:{msgKey:"uploadError"},restart:{msgKey:"uploadGameRestart"}};function q6(e){const{status:t,payload:r}=e,a=W6[t];if(!a){console.warn(`Unknown upload status: ${t}`);return}const l=Ae(a.msgKey);et.emit("uploadGame",{status:t,msg:l,progress:r?.progress}),a.handle&&a.handle(r)}class Y6{ws;init(){return tm({url:"/game/config",method:"GET"}).then(t=>{const{nodeWsPort:r}=t;console.log(Ae("nodeServerStartConnect")),this.ws=new WebSocket(`ws://localhost:${r}`),this.ws.onclose=()=>{console.error(Ae("nodeServerDisconnect")),Ot.set("isNodeWSConnected",!1),et.emit("connectionChange",{node:!1,client:Ot.get("isClientWSConnected"),isNodeDisconnected:!0})},this.ws.onerror=()=>{const a=Ae("nodeServerStartError");console.error(a)},this.ws.onopen=()=>{console.log(Ae("nodeServerConnectedSuccess")),Ot.set("isNodeWSConnected",!0),et.emit("connectionChange",{node:!0,client:Ot.get("isClientWSConnected"),isNodeDisconnected:!1}),this.ws?.send(JSON.stringify({event:"connected",method:"connected",from:"browser"}))},this.ws.onmessage=a=>{if(a.data){const l=JSON.parse(a.data);switch(l.method){case"uploadStatus":{q6(l);break}case"resourceChange":{Qt.info("Node WS resourceChange",l?.payload),et.emit("resourceChange",{type:l?.payload?.type,path:l?.payload?.path});break}case"clientDebugInfo":{const{clientWsPort:u,clientHost:f,clientHttpPort:h}=l.payload;Ot.setMultiple({clientWsPort:u,clientHost:f,clientHttpPort:h}),Zh.init({clientWsPort:u,clientHost:f,clientHttpPort:h});break}case"scanQRCodeSuccess":{const{clientWsPort:u,clientHost:f,clientHttpPort:h}=l.payload;Ot.setMultiple({clientHost:f,clientWsPort:u,clientHttpPort:h}),Zh.init({clientWsPort:u,clientHost:f,clientHttpPort:h}),et.emit("scanQRCode",{status:"success"});break}case"scanQRCodeFailed":{const{msg:u}=l.payload;et.emit("scanQRCode",{status:"failed",msg:u});break}case"scanQRCodeStart":{et.emit("scanQRCode",{status:"start"});break}}}}}),!0}send(t){t.from="browser",this.ws?.send(JSON.stringify(t))}close(){this.ws?.close(),this.ws=void 0}}const Jh=new Y6,X6=["krypton.js","ttmg-core.js"];async function O1(){const e=mw();await j6();try{console.log(Ae("startDebug"));const t=await tm({url:`${e}/game/cwd`,method:"POST",data:{command:"start"}});Qt.info("客户端启动调试环境成功"),Jh.send({method:"startUpload"})}catch(t){throw console.log(Ae("startDebugFailed"),t?.message??t),new Error(Ae("startDebugFailed"))}try{console.log(Ae("getDevEnvStart"));const r=await(await fetch(`${e}/game/env`)).json();Qt.info("获取游戏环境配置成功",r);const l=document.getElementById("dev-iframe").contentWindow;globalThis.__DEV__={isEnable:!0,server:e},l.__DEV__={isEnable:!0,server:e},await K6(l,X6,e),Qt.info("加载游戏脚本成功"),Ot.set("isScriptsReady",!0),et.emit("setupStatusChange",{isScriptsReady:!0,isResourcesReady:Ot.get("isResourcesReady")}),console.log(Ae("getDevScriptsSuccess"))}catch(t){throw console.log(Ae("getDevEnvFailed"),t),new Error(Ae("getDevEnvFailed"))}}async function K6(e,t,r){for(const a of t){const c=await(await fetch(`${r}/game/scripts/${a}`)).text(),u=e.document.createElement("script");u.id=a,u.innerHTML=c,e.document.body.appendChild(u)}}Qe.div`
|
|
76
|
+
position: fixed;
|
|
77
|
+
top: 0;
|
|
78
|
+
left: 0;
|
|
79
|
+
width: 100vw;
|
|
80
|
+
height: 100vh;
|
|
81
|
+
background: rgba(0, 0, 0, 0.3);
|
|
82
|
+
z-index: 999;
|
|
83
|
+
`;Qe.div`
|
|
84
|
+
position: fixed;
|
|
85
|
+
top: 50%;
|
|
86
|
+
left: 50%;
|
|
87
|
+
transform: translate(-50%, -50%);
|
|
88
|
+
width: 400px;
|
|
89
|
+
background: #fff;
|
|
90
|
+
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
|
|
91
|
+
z-index: 1000;
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
padding: 16px 24px;
|
|
95
|
+
border-radius: 16px;
|
|
96
|
+
`;Qe.button`
|
|
97
|
+
align-self: flex-end;
|
|
98
|
+
background: none;
|
|
99
|
+
border: none;
|
|
100
|
+
font-size: 2.4rem;
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
margin-bottom: 8px;
|
|
103
|
+
`;Qe.div`
|
|
104
|
+
margin-bottom: 24px;
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
`;Qe.label`
|
|
108
|
+
margin-bottom: 8px;
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
color: #333;
|
|
111
|
+
`;Qe.select`
|
|
112
|
+
padding: 8px;
|
|
113
|
+
font-size: 1.6rem;
|
|
114
|
+
border-radius: 6px;
|
|
115
|
+
border: 1px solid #ccc;
|
|
116
|
+
`;Qe.input`
|
|
117
|
+
padding: 8px;
|
|
118
|
+
font-size: 1.6rem;
|
|
119
|
+
border-radius: 6px;
|
|
120
|
+
border: 1px solid #ccc;
|
|
121
|
+
`;Qe.button`
|
|
122
|
+
padding: 10px 24px;
|
|
123
|
+
background: #007bff;
|
|
124
|
+
color: #fff;
|
|
125
|
+
border: none;
|
|
126
|
+
border-radius: 6px;
|
|
127
|
+
font-size: 1.6rem;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
margin-top: 16px;
|
|
130
|
+
align-self: flex-end;
|
|
131
|
+
`;Qe.div`
|
|
132
|
+
visibility: true;
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: 24px;
|
|
135
|
+
right: 12px;
|
|
136
|
+
background: #21252b;
|
|
137
|
+
border: 1.5px solid #3e4451;
|
|
138
|
+
border-radius: 12px;
|
|
139
|
+
box-shadow: 0 4px 24px rgba(46, 52, 64, 0.18);
|
|
140
|
+
z-index: 999;
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
align-items: stretch;
|
|
144
|
+
`;Qe.div`
|
|
145
|
+
font-size: 1.2rem;
|
|
146
|
+
color: #abb2bf;
|
|
147
|
+
padding: 12px 16px;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
transition:
|
|
150
|
+
background 0.18s,
|
|
151
|
+
color 0.18s;
|
|
152
|
+
${({$nob:e})=>e===1?"border-bottom: none;":"border-bottom: 1px solid #3e4451"}
|
|
153
|
+
`;const Q6=()=>{const{state:{isConnected:e},setIsConnected:t,showMessage:r}=ud(),a=({client:l,node:c,isClientDisconnected:u,isNodeDisconnected:f})=>{Qt.info("connectionChange",l,c),u&&r({theme:"error",text:Ae("clientDisconnected")}),f&&r({theme:"error",text:Ae("nodeDisconnected")}),t(l&&c)};return w.useEffect(()=>(et.on("connectionChange",a),()=>{et.off("connectionChange",a)}),[t]),F.jsxs(cs,{borderBottom:"1px solid",borderColor:"gray.200",width:"100%",height:"80px",fontSize:22,fontWeight:"bold",display:"flex",alignItems:"center",px:8,py:4,children:[F.jsx(_B,{}),F.jsxs(c3,{lazyMount:!0,unmountOnExit:!0,children:[F.jsx(u3,{asChild:!0,children:e?F.jsx(l1,{size:"md",colorPalette:"green",mr:2,ml:2,children:Ae("deviceConnected")}):F.jsx(l1,{size:"md",mr:2,ml:2,children:Ae("deviceDisconnected")})}),F.jsx(BE,{children:F.jsx(d3,{children:F.jsxs(f3,{width:"200px",children:[F.jsx(h3,{}),F.jsxs(m3,{display:"flex",alignItems:"center",flexDirection:"column",children:[F.jsx(p3,{fontWeight:"medium",mb:2,children:Ae(e?"switchDevice":"scanQRCode")}),F.jsx(VC,{src:`${window.location.origin}/game/qrcode`,alt:"切换设备图标",ml:2})]})]})})})]})]})},Z6="rgba(40, 44, 52, 0.8)",J6=pw`
|
|
154
|
+
from { opacity: 0; }
|
|
155
|
+
to { opacity: 1; }
|
|
156
|
+
`,e8=Qe.div`
|
|
157
|
+
position: fixed;
|
|
158
|
+
top: 0;
|
|
159
|
+
left: 0;
|
|
160
|
+
width: 100vw;
|
|
161
|
+
height: 100vh;
|
|
162
|
+
background: ${Z6};
|
|
163
|
+
z-index: 9999;
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
align-items: center;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
animation: ${J6} 0.2s;
|
|
169
|
+
`,t8=Qe.div`
|
|
170
|
+
border: 6px solid #ddd;
|
|
171
|
+
border-top: 6px solid #f9d423;
|
|
172
|
+
border-radius: 50%;
|
|
173
|
+
width: 48px;
|
|
174
|
+
height: 48px;
|
|
175
|
+
animation: spin 1s linear infinite;
|
|
176
|
+
margin-bottom: 16px;
|
|
177
|
+
|
|
178
|
+
@keyframes spin {
|
|
179
|
+
to {
|
|
180
|
+
transform: rotate(360deg);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
`,n8=Qe.div`
|
|
184
|
+
color: #fff;
|
|
185
|
+
font-size: 1.8rem;
|
|
186
|
+
margin-top: 8px;
|
|
187
|
+
`,r8=()=>{const{state:e}=ud(),{visible:t,text:r}=e.loading;return t?F.jsxs(e8,{children:[F.jsx(t8,{}),F.jsx(n8,{children:r})]}):null};M6`
|
|
188
|
+
html {
|
|
189
|
+
/*
|
|
190
|
+
默认浏览器字体大小是 16px。
|
|
191
|
+
16px * 62.5% = 10px。
|
|
192
|
+
这样设置后,1rem 就等于 10px,计算起来非常方便。
|
|
193
|
+
例如,你想设置 24px,直接写 2.4rem 即可。
|
|
194
|
+
*/
|
|
195
|
+
font-size: 62.5%;
|
|
196
|
+
}
|
|
197
|
+
body {
|
|
198
|
+
background: #000;
|
|
199
|
+
color: #abb2bf;
|
|
200
|
+
margin: 0;
|
|
201
|
+
padding: 0;
|
|
202
|
+
height: 100vh;
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
font-family: 'Menlo', 'Fira Mono', 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
|
|
205
|
+
}
|
|
206
|
+
#root {
|
|
207
|
+
height: 100%;
|
|
208
|
+
}
|
|
209
|
+
`;const i8=()=>(w.useEffect(()=>(Jh.init(),()=>{Jh.close()}),[]),null);/**
|
|
210
|
+
* react-router v7.8.2
|
|
211
|
+
*
|
|
212
|
+
* Copyright (c) Remix Software Inc.
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the MIT license found in the
|
|
215
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
216
|
+
*
|
|
217
|
+
* @license MIT
|
|
218
|
+
*/var T1="popstate";function a8(e={}){function t(a,l){let{pathname:c,search:u,hash:f}=a.location;return ep("",{pathname:c,search:u,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(a,l){return typeof l=="string"?l:os(l)}return l8(t,r,null,e)}function tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ar(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function o8(){return Math.random().toString(36).substring(2,10)}function k1(e,t){return{usr:e.state,key:e.key,idx:t}}function ep(e,t,r=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?To(t):t,state:r,key:t&&t.key||a||o8()}}function os({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function To(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function l8(e,t,r,a={}){let{window:l=document.defaultView,v5Compat:c=!1}=a,u=l.history,f="POP",h=null,p=m();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function m(){return(u.state||{idx:null}).idx}function y(){f="POP";let T=m(),k=T==null?null:T-p;p=T,h&&h({action:f,location:C.location,delta:k})}function b(T,k){f="PUSH";let O=ep(C.location,T,k);p=m()+1;let N=k1(O,p),z=C.createHref(O);try{u.pushState(N,"",z)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;l.location.assign(z)}c&&h&&h({action:f,location:C.location,delta:1})}function x(T,k){f="REPLACE";let O=ep(C.location,T,k);p=m();let N=k1(O,p),z=C.createHref(O);u.replaceState(N,"",z),c&&h&&h({action:f,location:C.location,delta:0})}function E(T){return s8(T)}let C={get action(){return f},get location(){return e(l,u)},listen(T){if(h)throw new Error("A history only accepts one active listener");return l.addEventListener(T1,y),h=T,()=>{l.removeEventListener(T1,y),h=null}},createHref(T){return t(l,T)},createURL:E,encodeLocation(T){let k=E(T);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:b,replace:x,go(T){return u.go(T)}};return C}function s8(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),tt(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:os(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function vw(e,t,r="/"){return c8(e,t,r,!1)}function c8(e,t,r,a){let l=typeof t=="string"?To(t):t,c=_r(l.pathname||"/",r);if(c==null)return null;let u=bw(e);u8(u);let f=null;for(let h=0;f==null&&h<u.length;++h){let p=S8(c);f=y8(u[h],p,a)}return f}function bw(e,t=[],r=[],a="",l=!1){let c=(u,f,h=l,p)=>{let m={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(a)&&h)return;tt(m.relativePath.startsWith(a),`Absolute route path "${m.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(a.length)}let y=Rr([a,m.relativePath]),b=r.concat(m);u.children&&u.children.length>0&&(tt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),bw(u.children,t,b,y,h)),!(u.path==null&&!u.index)&&t.push({path:y,score:v8(y,u.index),routesMeta:b})};return e.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))c(u,f);else for(let h of yw(u.path))c(u,f,!0,h)}),t}function yw(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,l=r.endsWith("?"),c=r.replace(/\?$/,"");if(a.length===0)return l?[c,""]:[c];let u=yw(a.join("/")),f=[];return f.push(...u.map(h=>h===""?c:[c,h].join("/"))),l&&f.push(...u),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function u8(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:b8(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var d8=/^:[\w-]+$/,f8=3,g8=2,h8=1,p8=10,m8=-2,R1=e=>e==="*";function v8(e,t){let r=e.split("/"),a=r.length;return r.some(R1)&&(a+=m8),t&&(a+=g8),r.filter(l=>!R1(l)).reduce((l,c)=>l+(d8.test(c)?f8:c===""?h8:p8),a)}function b8(e,t){return e.length===t.length&&e.slice(0,-1).every((a,l)=>a===t[l])?e[e.length-1]-t[t.length-1]:0}function y8(e,t,r=!1){let{routesMeta:a}=e,l={},c="/",u=[];for(let f=0;f<a.length;++f){let h=a[f],p=f===a.length-1,m=c==="/"?t:t.slice(c.length)||"/",y=Lu({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},m),b=h.route;if(!y&&p&&r&&!a[a.length-1].route.index&&(y=Lu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!y)return null;Object.assign(l,y.params),u.push({params:l,pathname:Rr([c,y.pathname]),pathnameBase:O8(Rr([c,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(c=Rr([c,y.pathnameBase]))}return u}function Lu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=x8(e.path,e.caseSensitive,e.end),l=t.match(r);if(!l)return null;let c=l[0],u=c.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:a.reduce((p,{paramName:m,isOptional:y},b)=>{if(m==="*"){let E=f[b]||"";u=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const x=f[b];return y&&!x?p[m]=void 0:p[m]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:e}}function x8(e,t=!1,r=!0){ar(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,h)=>(a.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),a]}function S8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ar(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _r(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function E8(e,t="/"){let{pathname:r,search:a="",hash:l=""}=typeof e=="string"?To(e):e;return{pathname:r?r.startsWith("/")?r:C8(r,t):t,search:T8(a),hash:k8(l)}}function C8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function bh(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function w8(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function xw(e){let t=w8(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function Sw(e,t,r,a=!1){let l;typeof e=="string"?l=To(e):(l={...e},tt(!l.pathname||!l.pathname.includes("?"),bh("?","pathname","search",l)),tt(!l.pathname||!l.pathname.includes("#"),bh("#","pathname","hash",l)),tt(!l.search||!l.search.includes("#"),bh("#","search","hash",l)));let c=e===""||l.pathname==="",u=c?"/":l.pathname,f;if(u==null)f=r;else{let y=t.length-1;if(!a&&u.startsWith("..")){let b=u.split("/");for(;b[0]==="..";)b.shift(),y-=1;l.pathname=b.join("/")}f=y>=0?t[y]:"/"}let h=E8(l,f),p=u&&u!=="/"&&u.endsWith("/"),m=(c||u===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(p||m)&&(h.pathname+="/"),h}var Rr=e=>e.join("/").replace(/\/\/+/g,"/"),O8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,k8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function R8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ew=["POST","PUT","PATCH","DELETE"];new Set(Ew);var N8=["GET",...Ew];new Set(N8);var ko=w.createContext(null);ko.displayName="DataRouter";var yd=w.createContext(null);yd.displayName="DataRouterState";w.createContext(!1);var Cw=w.createContext({isTransitioning:!1});Cw.displayName="ViewTransition";var A8=w.createContext(new Map);A8.displayName="Fetchers";var _8=w.createContext(null);_8.displayName="Await";var sr=w.createContext(null);sr.displayName="Navigation";var ms=w.createContext(null);ms.displayName="Location";var zr=w.createContext({outlet:null,matches:[],isDataRoute:!1});zr.displayName="Route";var nm=w.createContext(null);nm.displayName="RouteError";function I8(e,{relative:t}={}){tt(vs(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=w.useContext(sr),{hash:l,pathname:c,search:u}=bs(e,{relative:t}),f=c;return r!=="/"&&(f=c==="/"?r:Rr([r,c])),a.createHref({pathname:f,search:u,hash:l})}function vs(){return w.useContext(ms)!=null}function Qi(){return tt(vs(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(ms).location}var ww="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ow(e){w.useContext(sr).static||w.useLayoutEffect(e)}function Tw(){let{isDataRoute:e}=w.useContext(zr);return e?G8():z8()}function z8(){tt(vs(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(ko),{basename:t,navigator:r}=w.useContext(sr),{matches:a}=w.useContext(zr),{pathname:l}=Qi(),c=JSON.stringify(xw(a)),u=w.useRef(!1);return Ow(()=>{u.current=!0}),w.useCallback((h,p={})=>{if(ar(u.current,ww),!u.current)return;if(typeof h=="number"){r.go(h);return}let m=Sw(h,JSON.parse(c),l,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Rr([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,c,l,e])}w.createContext(null);function bs(e,{relative:t}={}){let{matches:r}=w.useContext(zr),{pathname:a}=Qi(),l=JSON.stringify(xw(r));return w.useMemo(()=>Sw(e,JSON.parse(l),a,t==="path"),[e,l,a,t])}function D8(e,t){return kw(e,t)}function kw(e,t,r,a,l){tt(vs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=w.useContext(sr),{matches:u}=w.useContext(zr),f=u[u.length-1],h=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let O=y&&y.path||"";Rw(p,!y||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
219
|
+
|
|
220
|
+
Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let b=Qi(),x;if(t){let O=typeof t=="string"?To(t):t;tt(m==="/"||O.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${O.pathname}" was given in the \`location\` prop.`),x=O}else x=b;let E=x.pathname||"/",C=E;if(m!=="/"){let O=m.replace(/^\//,"").split("/");C="/"+E.replace(/^\//,"").split("/").slice(O.length).join("/")}let T=vw(e,{pathname:C});ar(y||T!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),ar(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=B8(T&&T.map(O=>Object.assign({},O,{params:Object.assign({},h,O.params),pathname:Rr([m,c.encodeLocation?c.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?m:Rr([m,c.encodeLocation?c.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),u,r,a,l);return t&&k?w.createElement(ms.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},k):k}function P8(){let e=U8(),t=R8(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:a},c={padding:"2px 4px",backgroundColor:a},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:c},"ErrorBoundary")," or"," ",w.createElement("code",{style:c},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:l},r):null,u)}var V8=w.createElement(P8,null),M8=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?w.createElement(zr.Provider,{value:this.props.routeContext},w.createElement(nm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function L8({routeContext:e,match:t,children:r}){let a=w.useContext(ko);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(zr.Provider,{value:e},r)}function B8(e,t=[],r=null,a=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let c=e,u=r?.errors;if(u!=null){let p=c.findIndex(m=>m.route.id&&u?.[m.route.id]!==void 0);tt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,p+1))}let f=!1,h=-1;if(r)for(let p=0;p<c.length;p++){let m=c[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=p),m.route.id){let{loaderData:y,errors:b}=r,x=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||x){f=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}return c.reduceRight((p,m,y)=>{let b,x=!1,E=null,C=null;r&&(b=u&&m.route.id?u[m.route.id]:void 0,E=m.route.errorElement||V8,f&&(h<0&&y===0?(Rw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,C=null):h===y&&(x=!0,C=m.route.hydrateFallbackElement||null)));let T=t.concat(c.slice(0,y+1)),k=()=>{let O;return b?O=E:x?O=C:m.route.Component?O=w.createElement(m.route.Component,null):m.route.element?O=m.route.element:O=p,w.createElement(L8,{match:m,routeContext:{outlet:p,matches:T,isDataRoute:r!=null},children:O})};return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?w.createElement(M8,{location:r.location,revalidation:r.revalidation,component:E,error:b,children:k(),routeContext:{outlet:null,matches:T,isDataRoute:!0},unstable_onError:a}):k()},null)}function rm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function H8(e){let t=w.useContext(ko);return tt(t,rm(e)),t}function $8(e){let t=w.useContext(yd);return tt(t,rm(e)),t}function F8(e){let t=w.useContext(zr);return tt(t,rm(e)),t}function im(e){let t=F8(e),r=t.matches[t.matches.length-1];return tt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function j8(){return im("useRouteId")}function U8(){let e=w.useContext(nm),t=$8("useRouteError"),r=im("useRouteError");return e!==void 0?e:t.errors?.[r]}function G8(){let{router:e}=H8("useNavigate"),t=im("useNavigate"),r=w.useRef(!1);return Ow(()=>{r.current=!0}),w.useCallback(async(l,c={})=>{ar(r.current,ww),r.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:t,...c}))},[e,t])}var N1={};function Rw(e,t,r){!t&&!N1[e]&&(N1[e]=!0,ar(!1,r))}w.memo(W8);function W8({routes:e,future:t,state:r,unstable_onError:a}){return kw(e,void 0,r,a,t)}function Nw(e){tt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function q8({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:l,static:c=!1}){tt(!vs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=w.useMemo(()=>({basename:u,navigator:l,static:c,future:{}}),[u,l,c]);typeof r=="string"&&(r=To(r));let{pathname:h="/",search:p="",hash:m="",state:y=null,key:b="default"}=r,x=w.useMemo(()=>{let E=_r(h,u);return E==null?null:{location:{pathname:E,search:p,hash:m,state:y,key:b},navigationType:a}},[u,h,p,m,y,b,a]);return ar(x!=null,`<Router basename="${u}"> is not able to match the URL "${h}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:w.createElement(sr.Provider,{value:f},w.createElement(ms.Provider,{children:t,value:x}))}function Y8({children:e,location:t}){return D8(tp(e),t)}function tp(e,t=[]){let r=[];return w.Children.forEach(e,(a,l)=>{if(!w.isValidElement(a))return;let c=[...t,l];if(a.type===w.Fragment){r.push.apply(r,tp(a.props.children,c));return}tt(a.type===Nw,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),tt(!a.props.index||!a.props.children,"An index route cannot have child routes.");let u={id:a.props.id||c.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(u.children=tp(a.props.children,c)),r.push(u)}),r}var pu="get",mu="application/x-www-form-urlencoded";function xd(e){return e!=null&&typeof e.tagName=="string"}function X8(e){return xd(e)&&e.tagName.toLowerCase()==="button"}function K8(e){return xd(e)&&e.tagName.toLowerCase()==="form"}function Q8(e){return xd(e)&&e.tagName.toLowerCase()==="input"}function Z8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function J8(e,t){return e.button===0&&(!t||t==="_self")&&!Z8(e)}var Kc=null;function eB(){if(Kc===null)try{new FormData(document.createElement("form"),0),Kc=!1}catch{Kc=!0}return Kc}var tB=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yh(e){return e!=null&&!tB.has(e)?(ar(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${mu}"`),null):e}function nB(e,t){let r,a,l,c,u;if(K8(e)){let f=e.getAttribute("action");a=f?_r(f,t):null,r=e.getAttribute("method")||pu,l=yh(e.getAttribute("enctype"))||mu,c=new FormData(e)}else if(X8(e)||Q8(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||f.getAttribute("action");if(a=h?_r(h,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||pu,l=yh(e.getAttribute("formenctype"))||yh(f.getAttribute("enctype"))||mu,c=new FormData(f,e),!eB()){let{name:p,type:m,value:y}=e;if(m==="image"){let b=p?`${p}.`:"";c.append(`${b}x`,"0"),c.append(`${b}y`,"0")}else p&&c.append(p,y)}}else{if(xd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=pu,a=null,l=mu,u=e}return c&&l==="text/plain"&&(u=c,c=void 0),{action:a,method:r.toLowerCase(),encType:l,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function am(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rB(e,t,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a.pathname==="/"?a.pathname=`_root.${r}`:t&&_r(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}async function iB(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function aB(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function oB(e,t,r){let a=await Promise.all(e.map(async l=>{let c=t.routes[l.route.id];if(c){let u=await iB(c,r);return u.links?u.links():[]}return[]}));return uB(a.flat(1).filter(aB).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function A1(e,t,r,a,l,c){let u=(h,p)=>r[p]?h.route.id!==r[p].route.id:!0,f=(h,p)=>r[p].pathname!==h.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==h.params["*"];return c==="assets"?t.filter((h,p)=>u(h,p)||f(h,p)):c==="data"?t.filter((h,p)=>{let m=a.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(u(h,p)||f(h,p))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function lB(e,t,{includeHydrateFallback:r}={}){return sB(e.map(a=>{let l=t.routes[a.route.id];if(!l)return[];let c=[l.module];return l.clientActionModule&&(c=c.concat(l.clientActionModule)),l.clientLoaderModule&&(c=c.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(c=c.concat(l.hydrateFallbackModule)),l.imports&&(c=c.concat(l.imports)),c}).flat(1))}function sB(e){return[...new Set(e)]}function cB(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function uB(e,t){let r=new Set;return new Set(t),e.reduce((a,l)=>{let c=JSON.stringify(cB(l));return r.has(c)||(r.add(c),a.push({key:c,link:l})),a},[])}function Aw(){let e=w.useContext(ko);return am(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dB(){let e=w.useContext(yd);return am(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var om=w.createContext(void 0);om.displayName="FrameworkContext";function _w(){let e=w.useContext(om);return am(e,"You must render this element inside a <HydratedRouter> element"),e}function fB(e,t){let r=w.useContext(om),[a,l]=w.useState(!1),[c,u]=w.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:p,onMouseLeave:m,onTouchStart:y}=t,b=w.useRef(null);w.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let C=k=>{k.forEach(O=>{u(O.isIntersecting)})},T=new IntersectionObserver(C,{threshold:.5});return b.current&&T.observe(b.current),()=>{T.disconnect()}}},[e]),w.useEffect(()=>{if(a){let C=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(C)}}},[a]);let x=()=>{l(!0)},E=()=>{l(!1),u(!1)};return r?e!=="intent"?[c,b,{}]:[c,b,{onFocus:Hl(f,x),onBlur:Hl(h,E),onMouseEnter:Hl(p,x),onMouseLeave:Hl(m,E),onTouchStart:Hl(y,x)}]:[!1,b,{}]}function Hl(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function gB({page:e,...t}){let{router:r}=Aw(),a=w.useMemo(()=>vw(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?w.createElement(pB,{page:e,matches:a,...t}):null}function hB(e){let{manifest:t,routeModules:r}=_w(),[a,l]=w.useState([]);return w.useEffect(()=>{let c=!1;return oB(e,t,r).then(u=>{c||l(u)}),()=>{c=!0}},[e,t,r]),a}function pB({page:e,matches:t,...r}){let a=Qi(),{manifest:l,routeModules:c}=_w(),{basename:u}=Aw(),{loaderData:f,matches:h}=dB(),p=w.useMemo(()=>A1(e,t,h,l,a,"data"),[e,t,h,l,a]),m=w.useMemo(()=>A1(e,t,h,l,a,"assets"),[e,t,h,l,a]),y=w.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let E=new Set,C=!1;if(t.forEach(k=>{let O=l.routes[k.route.id];!O||!O.hasLoader||(!p.some(N=>N.route.id===k.route.id)&&k.route.id in f&&c[k.route.id]?.shouldRevalidate||O.hasClientLoader?C=!0:E.add(k.route.id))}),E.size===0)return[];let T=rB(e,u,"data");return C&&E.size>0&&T.searchParams.set("_routes",t.filter(k=>E.has(k.route.id)).map(k=>k.route.id).join(",")),[T.pathname+T.search]},[u,f,a,l,p,t,e,c]),b=w.useMemo(()=>lB(m,l),[m,l]),x=hB(m);return w.createElement(w.Fragment,null,y.map(E=>w.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>w.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),x.map(({key:E,link:C})=>w.createElement("link",{key:E,nonce:r.nonce,...C})))}function mB(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Iw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Iw&&(window.__reactRouterVersion="7.8.2")}catch{}function vB({basename:e,children:t,window:r}){let a=w.useRef();a.current==null&&(a.current=a8({window:r,v5Compat:!0}));let l=a.current,[c,u]=w.useState({action:l.action,location:l.location}),f=w.useCallback(h=>{w.startTransition(()=>u(h))},[u]);return w.useLayoutEffect(()=>l.listen(f),[l,f]),w.createElement(q8,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:l})}var zw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dw=w.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:l,reloadDocument:c,replace:u,state:f,target:h,to:p,preventScrollReset:m,viewTransition:y,...b},x){let{basename:E}=w.useContext(sr),C=typeof p=="string"&&zw.test(p),T,k=!1;if(typeof p=="string"&&C&&(T=p,Iw))try{let X=new URL(window.location.href),te=p.startsWith("//")?new URL(X.protocol+p):new URL(p),K=_r(te.pathname,E);te.origin===X.origin&&K!=null?p=K+te.search+te.hash:k=!0}catch{ar(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let O=I8(p,{relative:l}),[N,z,A]=fB(a,b),B=SB(p,{replace:u,state:f,target:h,preventScrollReset:m,relative:l,viewTransition:y});function j(X){t&&t(X),X.defaultPrevented||B(X)}let q=w.createElement("a",{...b,...A,href:T||O,onClick:k||c?t:j,ref:mB(x,z),target:h,"data-discover":!C&&r==="render"?"true":void 0});return N&&!C?w.createElement(w.Fragment,null,q,w.createElement(gB,{page:O})):q});Dw.displayName="Link";var bB=w.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:l=!1,style:c,to:u,viewTransition:f,children:h,...p},m){let y=bs(u,{relative:p.relative}),b=Qi(),x=w.useContext(yd),{navigator:E,basename:C}=w.useContext(sr),T=x!=null&&TB(y)&&f===!0,k=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,O=b.pathname,N=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(O=O.toLowerCase(),N=N?N.toLowerCase():null,k=k.toLowerCase()),N&&C&&(N=_r(N,C)||N);const z=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let A=O===k||!l&&O.startsWith(k)&&O.charAt(z)==="/",B=N!=null&&(N===k||!l&&N.startsWith(k)&&N.charAt(k.length)==="/"),j={isActive:A,isPending:B,isTransitioning:T},q=A?t:void 0,X;typeof a=="function"?X=a(j):X=[a,A?"active":null,B?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let te=typeof c=="function"?c(j):c;return w.createElement(Dw,{...p,"aria-current":q,className:X,ref:m,style:te,to:u,viewTransition:f},typeof h=="function"?h(j):h)});bB.displayName="NavLink";var yB=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:l,state:c,method:u=pu,action:f,onSubmit:h,relative:p,preventScrollReset:m,viewTransition:y,...b},x)=>{let E=wB(),C=OB(f,{relative:p}),T=u.toLowerCase()==="get"?"get":"post",k=typeof f=="string"&&zw.test(f),O=N=>{if(h&&h(N),N.defaultPrevented)return;N.preventDefault();let z=N.nativeEvent.submitter,A=z?.getAttribute("formmethod")||u;E(z||N.currentTarget,{fetcherKey:t,method:A,navigate:r,replace:l,state:c,relative:p,preventScrollReset:m,viewTransition:y})};return w.createElement("form",{ref:x,method:T,action:C,onSubmit:a?h:O,...b,"data-discover":!k&&e==="render"?"true":void 0})});yB.displayName="Form";function xB(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pw(e){let t=w.useContext(ko);return tt(t,xB(e)),t}function SB(e,{target:t,replace:r,state:a,preventScrollReset:l,relative:c,viewTransition:u}={}){let f=Tw(),h=Qi(),p=bs(e,{relative:c});return w.useCallback(m=>{if(J8(m,t)){m.preventDefault();let y=r!==void 0?r:os(h)===os(p);f(e,{replace:y,state:a,preventScrollReset:l,relative:c,viewTransition:u})}},[h,f,p,r,a,t,e,l,c,u])}var EB=0,CB=()=>`__${String(++EB)}__`;function wB(){let{router:e}=Pw("useSubmit"),{basename:t}=w.useContext(sr),r=j8();return w.useCallback(async(a,l={})=>{let{action:c,method:u,encType:f,formData:h,body:p}=nB(a,t);if(l.navigate===!1){let m=l.fetcherKey||CB();await e.fetch(m,r,l.action||c,{preventScrollReset:l.preventScrollReset,formData:h,body:p,formMethod:l.method||u,formEncType:l.encType||f,flushSync:l.flushSync})}else await e.navigate(l.action||c,{preventScrollReset:l.preventScrollReset,formData:h,body:p,formMethod:l.method||u,formEncType:l.encType||f,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,t,r])}function OB(e,{relative:t}={}){let{basename:r}=w.useContext(sr),a=w.useContext(zr);tt(a,"useFormAction must be used inside a RouteContext");let[l]=a.matches.slice(-1),c={...bs(e||".",{relative:t})},u=Qi();if(e==null){c.search=u.search;let f=new URLSearchParams(c.search),h=f.getAll("index");if(h.some(m=>m==="")){f.delete("index"),h.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();c.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:Rr([r,c.pathname])),os(c)}function TB(e,{relative:t}={}){let r=w.useContext(Cw);tt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Pw("useViewTransitionState"),l=bs(e,{relative:t});if(!r.isTransitioning)return!1;let c=_r(r.currentLocation.pathname,a)||r.currentLocation.pathname,u=_r(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Lu(l.pathname,u)!=null||Lu(l.pathname,c)!=null}function kB(e){return wo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"12",y2:"13"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(e)}function RB(e){return wo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},child:[]},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"},child:[]}]})(e)}function NB(e){return wo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(e)}function AB(e){return wo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(e)}const _B=()=>F.jsxs(cs,{display:"flex",alignItems:"center",justifyContent:"center",children:[F.jsx(VC,{src:"https://connect.tiktok-minis.com/game/icon.png",alt:"logo",width:"42px",height:"42px",mr:2}),F.jsx(CS,{color:"gray.600",fontSize:"20px",fontWeight:"bold",children:Ae("title")})]});Qe.div`
|
|
221
|
+
width: 60%;
|
|
222
|
+
margin-bottom: 24px;
|
|
223
|
+
display: flex;
|
|
224
|
+
justify-content: center;
|
|
225
|
+
`;Qe.div`
|
|
226
|
+
font-size: 3.4rem;
|
|
227
|
+
font-weight: 600;
|
|
228
|
+
font-family: 'TikTok Sans', sans-serif;
|
|
229
|
+
`;const Vw={success:{color:"#43a047",icon:RB},error:{color:"#e53935",icon:AB},warning:{color:"#f57c00",icon:kB},info:{color:"#1e88e5",icon:NB}},IB=Qe.div`
|
|
230
|
+
display: flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
position: absolute;
|
|
233
|
+
top: 24px;
|
|
234
|
+
padding: 12px 20px;
|
|
235
|
+
font-size: 18px;
|
|
236
|
+
font-weight: 500;
|
|
237
|
+
border-radius: 2px;
|
|
238
|
+
margin: 32px 0;
|
|
239
|
+
/* --- 动画效果 --- */
|
|
240
|
+
/* isVisible 属性直接控制透明度和位置 */
|
|
241
|
+
opacity: ${({isVisible:e})=>e?1:0};
|
|
242
|
+
transform: ${({isVisible:e})=>e?"translateY(0)":"translateY(-20px)"};
|
|
243
|
+
|
|
244
|
+
/* 过渡效果应用于多个属性,实现平滑切换 */
|
|
245
|
+
transition:
|
|
246
|
+
opacity 0.3s ease-out,
|
|
247
|
+
transform 0.3s ease-out,
|
|
248
|
+
color 0.3s ease-out,
|
|
249
|
+
background-color 0.3s ease-out,
|
|
250
|
+
border-color 0.3s ease-out;
|
|
251
|
+
|
|
252
|
+
/* --- 根据 theme 设置颜色 --- */
|
|
253
|
+
${({theme:e})=>{const t=Vw[e];return vd`
|
|
254
|
+
color: ${t.color};
|
|
255
|
+
background-color: ${t.color}1A; /* 使用颜色的 10% 透明度作为背景 */
|
|
256
|
+
border: 1px solid ${t.color}4D; /* 使用颜色的 30% 透明度作为边框 */
|
|
257
|
+
`}}
|
|
258
|
+
|
|
259
|
+
/* --- 图标样式 --- */
|
|
260
|
+
svg {
|
|
261
|
+
margin-right: 10px;
|
|
262
|
+
font-size: 20px;
|
|
263
|
+
flex-shrink: 0; /* 防止图标在 flex 布局中被压缩 */
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* --- 宽度和换行处理 --- */
|
|
267
|
+
/* 确保消息框不会过宽,并且长文本能正确换行 */
|
|
268
|
+
max-width: 90%;
|
|
269
|
+
min-width: 50%;
|
|
270
|
+
/* overflow-wrap: break-word; */
|
|
271
|
+
`,zB=()=>{const{state:e}=ud(),t=e.message,r=300,[a,l]=w.useState(!1),[c,u]=w.useState(t),f=w.useRef(null);if(w.useEffect(()=>(f.current&&clearTimeout(f.current),t.text?(u(t),l(!0)):a&&(l(!1),f.current=setTimeout(()=>{u({text:"",theme:"info",visible:!1})},r)),()=>{f.current&&clearTimeout(f.current)}),[t,a]),!c.text)return null;const{text:h,theme:p="info"}=c,m=Vw[p];return m?(m.icon,F.jsx(IB,{theme:p,isVisible:a,children:F.jsx("span",{children:h})})):null};function DB(){const e=()=>typeof document<"u"?document.hidden:!1,[t,r]=w.useState(e);return w.useEffect(()=>{const a=()=>{r(document.hidden),Zh.send({method:"sendPageVisibility",payload:{isHidden:document.hidden}})};return document.addEventListener("visibilitychange",a),()=>{document.removeEventListener("visibilitychange",a)}},[]),t}const PB=()=>{DB();const[e,t]=w.useState({node:!1,client:!1}),{showMessage:r,hideLoading:a,hideMessage:l}=ud(),c=w.useCallback(({status:h,msg:p,progress:m})=>{switch(h){case"success":r({theme:"success",text:Ae("uploadSuccess")});break;case"error":r({theme:"error",text:Ae("uploadError")});break;case"restart":break;case"process":r({theme:"info",text:`${Ae("uploadProcess")} ${(m*100).toFixed(2)}%`});break}},[]),u=w.useCallback(()=>{Qt.info("handleResourceChange,resourceChange"),FC.success({duration:1e4,title:Ae("gameResourceUpdated"),description:Ae("gameResourceChange"),action:{label:Ae("uploadToClient"),onClick:()=>{Qt.info("upload"),Qt.info("upload iframe onload, 开始重新初始化"),O1()}}})},[]),f=w.useCallback(({isScriptsReady:h,isResourcesReady:p})=>{h&&p&&(Qt.info("scripts and resources are ready, send meta"),F6())},[]);return w.useEffect(()=>(et.on("connectionChange",t),()=>{et.off("connectionChange",t)}),[]),w.useEffect(()=>(et.on("uploadGame",c),et.on("resourceChange",u),et.on("setupStatusChange",f),()=>{et.off("resourceChange",u),et.off("setupStatusChange",f),et.off("uploadGame",c)}),[u,f,c]),w.useEffect(()=>{const h=async()=>{a(),r({theme:"success",text:Ae("setupDevEnv")});try{await O1(),r({theme:"success",text:Ae("devEnvSetupSuccess")})}catch(p){console.error("Setup failed:",p),r({theme:"error",text:Ae("devEnvSetupError")})}};e.client&&e.node&&h()},[e,a,r]),null};Qe.div`
|
|
272
|
+
display: flex;
|
|
273
|
+
justify-content: center;
|
|
274
|
+
align-items: center;
|
|
275
|
+
min-height: 100vh;
|
|
276
|
+
background-color: #f0f2f5; /* 一个柔和的背景色 */
|
|
277
|
+
font-family:
|
|
278
|
+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
279
|
+
Arial, sans-serif;
|
|
280
|
+
`;Qe.div`
|
|
281
|
+
border-radius: 12px;
|
|
282
|
+
padding: 2rem;
|
|
283
|
+
text-align: center;
|
|
284
|
+
max-width: 600px;
|
|
285
|
+
width: 90%;
|
|
286
|
+
transition:
|
|
287
|
+
transform 0.3s ease,
|
|
288
|
+
box-shadow 0.3s ease;
|
|
289
|
+
|
|
290
|
+
/* &:hover {
|
|
291
|
+
transform: translateY(-5px);
|
|
292
|
+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
|
|
293
|
+
} */
|
|
294
|
+
`;Qe.h1`
|
|
295
|
+
font-size: 2rem;
|
|
296
|
+
color: #333;
|
|
297
|
+
margin-bottom: 1.5rem;
|
|
298
|
+
`;const VB=Qe.div`
|
|
299
|
+
width: 300px;
|
|
300
|
+
height: 300px;
|
|
301
|
+
margin: 0 auto; /* 水平居中 */
|
|
302
|
+
|
|
303
|
+
border-radius: 8px;
|
|
304
|
+
display: flex;
|
|
305
|
+
justify-content: center;
|
|
306
|
+
align-items: center;
|
|
307
|
+
`,MB=pw`
|
|
308
|
+
from {
|
|
309
|
+
opacity: 0;
|
|
310
|
+
}
|
|
311
|
+
to {
|
|
312
|
+
opacity: 1;
|
|
313
|
+
}
|
|
314
|
+
`,LB=Qe.img`
|
|
315
|
+
width: 100%;
|
|
316
|
+
height: 100%;
|
|
317
|
+
border-radius: 8px; /* 保持圆角一致 */
|
|
318
|
+
animation: ${MB} 0.5s ease-in-out; /* 应用淡入动画 */
|
|
319
|
+
`,xh=Qe.p`
|
|
320
|
+
color: #888;
|
|
321
|
+
font-size: 1.5rem;
|
|
322
|
+
`,BB=()=>{Tw();const[e,t]=w.useState(!1),[r,a]=w.useState(!1),[l,c]=w.useState(!1),[u,f]=w.useState(""),h=x=>{x.status==="success"&&t(!0),x.status==="failed"&&a(!0),x.status==="start"&&c(!0)};w.useEffect(()=>(et.on("scanQRCode",h),()=>{et.off("scanQRCode",h)}),[]);const[p,m]=w.useState("loading"),y=`${window.location.origin}/game/qrcode`;w.useEffect(()=>{m("loading");const x=new Image;return x.src=y,x.onload=()=>{m("loaded")},x.onerror=()=>{m("error")},()=>{x.onload=null,x.onerror=null}},[]);const b=()=>{switch(p){case"loading":return F.jsx(xh,{children:"二维码加载中..."});case"error":return F.jsx(xh,{children:"无法加载二维码,请检查链接或网络。"});case"loaded":return F.jsx(LB,{src:y,alt:"QR Code"});default:return null}};return F.jsxs(cs,{p:4,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",bg:"white",borderRadius:"12px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",children:[F.jsx(CS,{color:"gray.500",fontWeight:"bold",fontSize:"xl",mb:2,children:"使用 TikTok 扫码下方二维码开启调试"}),F.jsx(VB,{children:b()}),u&&F.jsx(xh,{children:u})]})},HB=Qe.div`
|
|
323
|
+
position: relative;
|
|
324
|
+
width: 100%;
|
|
325
|
+
height: 100%;
|
|
326
|
+
flex: 1;
|
|
327
|
+
overflow: hidden;
|
|
328
|
+
display: flex;
|
|
329
|
+
flex-direction: column;
|
|
330
|
+
align-items: center;
|
|
331
|
+
justify-content: center;
|
|
332
|
+
`,$B=()=>{const{state:{isConnected:e}}=w.useContext(qp);return F.jsx(F.Fragment,{children:F.jsxs(HB,{children:[F.jsx(zB,{}),!e&&F.jsx(BB,{}),F.jsx(PB,{})]})})};function FB(){return F.jsxs(vB,{children:[F.jsx(i8,{}),F.jsx("div",{className:"main-layout",children:F.jsxs("div",{className:"content-container",children:[F.jsx(Q6,{}),F.jsx("div",{className:"routes-content",children:F.jsx(Y8,{children:F.jsx(Nw,{path:"/",element:F.jsx($B,{})})})})]})})]})}uk.createRoot(document.getElementById("root")).render(F.jsxs(X3,{children:[F.jsxs(ML,{children:[F.jsx(r8,{}),F.jsx(FB,{})]}),F.jsx(K3,{})]}));
|